.row, .conf, .key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.space { justify-content: space-between; }
.presets { margin: .8rem 0; }
button, select, input[type=text] { min-height: 38px; }
button:disabled { opacity: .45; }
.action { color: var(--field); background: var(--green); }
.small, label, summary { font-size: .91rem; }
.dim, .key, .ey { color: var(--muted); }
.ey { font-size: .78rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.turnRow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); text-align: center; margin: .6rem 0; }
.turnRow svg { display: block; width: 100%; max-width: 110px; margin: auto; }
.mini { font-size: .84rem; }
.opening-detail { max-width: 48rem; margin-top: 1rem; }
.opening-detail summary { color: var(--green); font-weight: 600; cursor: pointer; }
.opening-detail p, .opening-detail strong { margin-top: .6rem; }
.panel { min-width: 0; padding: clamp(12px,2vw,22px); border: 1px solid var(--line); border-radius: 6px; background: var(--field); }
.wash { background: var(--wash); }
.conf { align-items: end; gap: .6rem 1rem; margin: 1rem 0 .5rem; }
.conf label { display: grid; min-width: 0; gap: .25rem; font-weight: 600; }
.conf select { min-width: 0; width: 100%; font-weight: 400; }
#note { margin-bottom: 1rem; }
.stats { font: 1.35rem/1.5 Georgia, serif; overflow-wrap: anywhere; }
.scroll { max-width: 100%; overflow: auto; margin: .7rem 0; }
.plot { display: grid; gap: 2px 0; align-items: center; justify-items: center; grid-auto-rows: 32px; }
.plot button { display: grid; place-content: center; padding: 0; width: 100%; height: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); min-height: 0; }
.plot i, .dot { background: var(--green); width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.plot .front i, .dot.gold { background: var(--pw-ochre); border-radius: 1px; transform: rotate(45deg); }
.plot .picked i, .plot button:hover i { outline: 2px solid var(--ink); outline-offset: 3px; }
.tick { font-size: .8rem; font-variant-numeric: tabular-nums; }
.strip { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; }
.key { font-size: .8rem; }
.key b { width: .8rem; height: .8rem; border-radius: 2px; margin-left: .3rem; }
.keypath { margin-top: .5rem; }
.keypath button { font: .88rem ui-monospace,monospace; }
#rank { max-width: 100%; padding: .25rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--field); }
.strip label { min-width: 0; max-width: 100%; }
.controls { margin: .9rem 0; font-variant-numeric: tabular-nums; }
.controls input { min-width: 65px; flex: 1; accent-color: var(--green); }
.schedule-lab { display: grid; grid-template-columns: minmax(170px,1fr) minmax(0,2fr); gap: .8rem; }
.wall svg { display: block; width: 100%; height: auto; max-height: 215px; }
.wall h3 { font-size: 1.35rem; margin: .25rem 0; }
.draw { display: block; width: 100%; background: #fffdf7; border-radius: 4px; }
#view p, .panel > .dim { margin: .7rem 0 .3rem; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .88rem; }
td, th { padding: .35rem; text-align: right; border-bottom: 1px solid var(--line); }
td:first-child, th:first-child { text-align: left; }
.hi { background: var(--wash); }
.callout { padding-left: .8rem; border-left: 3px solid var(--pw-ochre); }
.fe-return { margin-top: .8rem; padding-top: .55rem; border-top: 1px solid var(--line); }
@media(max-width: 750px) {
  .schedule-lab { grid-template-columns: minmax(0,1fr); }
  .wall { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: .6rem; }
  .wall svg { max-height: 155px; }
  .stats { font-size: 1.12rem; }
  .draw text { font-size: 18px; }
}
@media(max-width: 580px) {
  .conf { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .conf label:nth-child(2), .conf label:nth-child(3) { grid-column: 1/-1; }
  .conf label:nth-child(4) { grid-column: 2; grid-row: 1; }
  select { max-width: 100%; }
  .strip > label { width: 100%; }
  #pick { display: block; width: 100%; }
  .keypath { gap: .3rem; }
}
.opening-picture .ey { color: #475f52; }
html[data-site-theme=dark] .wall svg { background: #fbfaf6; border-radius: 4px; }
@media(max-width: 580px) {
  .draw text { font-size: 23px; }
}
