:root {
  --ink: #17132B;
  --well: #1D1836;
  --panel: #262046;
  --rule: #3B3361;
  --paper: #F4EFFF;
  --mute: #A9A1CC;
  --brass: #F4B740;
  --sharp: #FF8098;
  --flat: #7CC4FF;
  --face: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink); color: var(--paper);
  font: 400 16px/1.4 var(--face); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
h1, h2, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }

.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }

.bar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 18px 8px;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; font-variation-settings: "wdth" 85; }
.clock { margin-left: auto; color: var(--mute); font-size: 14px; font-variant-numeric: tabular-nums; }
.mic {
  min-width: 84px; height: 40px; padding: 0 18px; border-radius: 20px;
  background: var(--brass); color: var(--ink); font-weight: 700; font-size: 16px;
}
.mic.is-live { background: none; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--rule); }

main { flex: 1; min-height: 0; position: relative; }
.view { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 18px 18px; }
.view[hidden] { display: none; }
#view-sing { display: block; overflow-y: auto; }
.sing-live { height: 100%; display: flex; flex-direction: column; }
#view-sing[hidden] { display: none; }

/* Sing */
.now { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 0; }
.note {
  display: flex; align-items: stretch; line-height: 0.8;
  font-size: clamp(92px, 33vw, 170px); font-weight: 800; letter-spacing: -0.04em;
  font-variation-settings: "wdth" 75; color: var(--mute);
  padding: 6px 0 4px; min-height: calc(0.8em + 10px);
}
.note.is-voiced { color: var(--paper); }
.note.is-tuned { color: var(--brass); }
.note-side { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.34em; line-height: 1; margin-left: 0.12em; padding: 0.08em 0 0.02em; letter-spacing: 0; }
.tune { text-align: right; padding-bottom: 8px; min-width: 120px; }
.sargam { font-size: 24px; font-weight: 750; font-variation-settings: "wdth" 85; line-height: 1.1; min-height: 27px; color: var(--paper); }
.cents { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; min-height: 33px; }
.verdict { color: var(--mute); font-size: 15px; }
.verdict.is-sharp { color: var(--sharp); }
.verdict.is-flat { color: var(--flat); }
.verdict.is-tuned { color: var(--brass); }

.strip { position: relative; height: 12px; margin: 8px 0 10px; border-radius: 6px; background: var(--panel); }
.strip-zone { position: absolute; left: 40%; width: 20%; top: 0; bottom: 0; background: rgba(244, 183, 64, 0.22); }
.strip-mid { position: absolute; left: calc(50% - 1px); width: 2px; top: -3px; bottom: -3px; background: var(--brass); border-radius: 1px; }
.strip-needle {
  position: absolute; top: -3px; width: 18px; height: 18px; margin-left: -9px; left: 50%;
  border-radius: 50%; background: var(--paper); opacity: 0; transition: opacity 0.15s;
}
.strip-needle.is-on { opacity: 1; }

.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.opts button { height: 38px; border-radius: 19px; background: var(--panel); color: var(--paper); font-size: 14px; font-weight: 600; white-space: nowrap; }
.opts button:active { background: var(--rule); }
.opts button b { font-weight: 800; color: var(--brass); margin-left: 2px; }
.opts button[aria-pressed="false"] { color: var(--mute); }
.opts button[aria-pressed="true"], .opts button[aria-expanded="true"] { background: var(--brass); color: var(--ink); }
.opts button[aria-expanded="true"] b { color: var(--ink); }

.roll { position: relative; flex: 1; min-height: 140px; border-radius: 14px; background: var(--well); overflow: hidden; }
.roll canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.roll-msg { position: absolute; left: 0; right: 0; bottom: 14px; padding: 0 44px; text-align: center; color: var(--mute); font-size: 14px; }
.roll-msg[hidden] { display: none; }
.roll.is-spin { box-shadow: inset 0 0 0 2px var(--brass); }
.pick { position: absolute; inset: 0; padding: 10px 12px; background: var(--well); overflow-y: auto; z-index: 2; }
.pick[hidden] { display: none; }
.pick-head { display: flex; align-items: center; justify-content: space-between; color: var(--mute); font-size: 14px; height: 32px; margin-bottom: 8px; }
.pick-head button { height: 32px; padding: 0 14px; border-radius: 16px; background: var(--panel); color: var(--paper); font-size: 14px; font-weight: 600; }
.pick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pick-grid button { height: 38px; border-radius: 10px; background: var(--panel); font-size: 16px; font-weight: 700; }
.pick-grid button.is-on, .pick-head button.is-on { background: var(--brass); color: var(--ink); }
.level { position: absolute; left: 0; bottom: 0; width: 3px; height: 0; background: var(--mute); opacity: 0.7; }

.reads { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.reads > div { padding: 2px 0 2px 12px; border-left: 1px solid var(--rule); }
.reads > div:first-child { padding-left: 0; border-left: 0; }
.reads dt { color: var(--mute); font-size: 13px; }
.reads dd { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.25; }
.reads dd small { font-size: 13px; font-weight: 500; color: var(--mute); margin-left: 2px; }
.reads dd.is-good { color: var(--brass); }
.reads dd.is-wide { color: var(--sharp); }

.drill { display: flex; align-items: center; gap: 12px; margin-top: 10px; min-height: 48px; }
.drill[hidden] { display: none; }
.ring { width: 48px; height: 48px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--panel); }
.ring-arc { stroke: var(--paper); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
.drill.is-spin .ring-arc { stroke: var(--brass); }
.drill.is-spin .ring { animation: spin-cue 0.36s ease-in-out infinite alternate; }
@keyframes spin-cue { from { transform: rotate(-90deg) scale(1); } to { transform: rotate(-90deg) scale(1.12); } }
.drill-cue { font-size: 18px; font-weight: 700; line-height: 1.2; }
.drill.is-spin .drill-cue { color: var(--brass); }
.drill.is-ok .drill-cue { color: var(--brass); }
.drill-info { color: var(--mute); font-size: 13px; margin-top: 2px; }

.hint { color: var(--mute); font-size: 13px; margin-top: 10px; max-width: 46ch; }
#vibHint { height: 55px; overflow: hidden; }
#vibHint[hidden], #agcNote:empty { display: none; }
.today { font-size: 14px; margin-top: 8px; min-height: 20px; }

/* Shared */
h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 80; line-height: 1.1; margin-top: 6px; }
.lede { color: var(--mute); font-size: 15px; margin: 6px 0 14px; max-width: 44ch; }
.wide { height: 44px; padding: 0 18px; border-radius: 22px; background: var(--panel); font-weight: 600; }
.wide:active { background: var(--rule); }
.quiet { height: 44px; padding: 0 12px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }

/* Climb */
.map { display: grid; gap: 3px; cursor: pointer; }
.map-row { display: grid; grid-template-columns: 44px 1fr; align-items: center; }
.map-row > span { color: var(--mute); font-size: 12px; }
.cells { display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; height: 22px; }
.cells i { background: var(--panel); border-radius: 2px; }
.cells i.is-one { background: var(--rule); }
.cells i.is-held { background: var(--mute); }
.cells i.is-clear { background: var(--brass); }
.cells i.is-miss { background: var(--sharp); }
.cells i.is-target { box-shadow: inset 0 -4px 0 var(--paper); }
.cells i.is-sel { outline: 1.5px solid var(--paper); outline-offset: 1px; }
.axis { position: relative; height: 16px; }
.axis b { position: absolute; top: 1px; transform: translateX(-50%); font-size: 11px; font-weight: 500; color: var(--mute); }
.map-note { margin: 6px 0 10px; }
.map-pick { font-size: 14px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--well); max-width: 52ch; }
.map-pick[hidden] { display: none; }
.ladder li { display: grid; grid-template-columns: 44px 62px 1fr 92px; align-items: center; gap: 8px; height: 50px; border-top: 1px solid var(--rule); }
.ladder li:last-child { border-bottom: 1px solid var(--rule); }
.tone { width: 40px; height: 40px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; }
.tone::before { content: ""; border-left: 11px solid var(--paper); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.tone:active { background: var(--rule); }
.rung-name { font-size: 22px; font-weight: 700; font-variation-settings: "wdth" 80; }
.ladder li.is-target .rung-name { color: var(--brass); }
.rung-bar { position: relative; height: 8px; border-radius: 4px; background: var(--panel); overflow: hidden; }
.rung-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.rung-bar .best { background: var(--rule); }
.rung-bar .live { background: var(--paper); }
.ladder li.is-clear .rung-bar .best { background: var(--brass); }
.rung-best { text-align: right; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.ladder li.is-clear .rung-best { color: var(--brass); }
.ladder li.is-live { background: linear-gradient(90deg, rgba(244, 239, 255, 0.06), transparent 70%); }
.target-set, .scale-set { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--mute); font-size: 15px; flex-wrap: wrap; }
.target-set strong, .scale-set strong { color: var(--paper); font-size: 18px; min-width: 44px; text-align: center; }
.target-set button:not(.wide), .scale-set button:not(.wide) { width: 44px; height: 44px; border-radius: 50%; background: var(--panel); font-size: 22px; line-height: 1; }
.target-set button:not(.wide):active, .scale-set button:not(.wide):active { background: var(--rule); }

/* Warm up */
.steps li { border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps button { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; width: 100%; text-align: left; padding: 13px 0; }
.step-n { color: var(--mute); font-variant-numeric: tabular-nums; }
.step-t { font-weight: 650; font-size: 17px; }
.step-d { display: block; color: var(--mute); font-size: 14px; font-weight: 400; margin-top: 2px; }
.step-c { font-variant-numeric: tabular-nums; color: var(--mute); font-size: 17px; }
.steps li.is-on .step-n, .steps li.is-on .step-c { color: var(--brass); }
.steps li.is-on .step-c { font-weight: 700; font-size: 22px; }
.steps li.is-done .step-t { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; }

/* Log */
.days li { border-top: 1px solid var(--rule); padding: 12px 0; }
.days li:last-child { border-bottom: 1px solid var(--rule); }
.day-date { font-weight: 700; font-size: 17px; }
.day-line { color: var(--mute); font-size: 14px; margin-top: 2px; }
.days .empty { color: var(--mute); border: 0; }
.log-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.log-actions + .log-actions { margin-top: 10px; justify-content: flex-start; }
.bak-panel { margin-top: 10px; display: grid; gap: 8px; }
.bak-panel[hidden] { display: none; }
.bak-panel textarea {
  width: 100%; border: 1px solid var(--rule); border-radius: 10px; background: var(--well); color: var(--paper);
  font: 400 16px/1.35 var(--face); padding: 10px 12px; resize: vertical; -webkit-user-select: text; user-select: text;
}
.bak-panel textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.bak-panel .wide { justify-self: start; }

.tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); background: var(--ink); }
.tabs button { height: 54px; color: var(--mute); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; position: relative; }
.tabs button.is-on { color: var(--paper); }
.tabs button.is-on::before { content: ""; position: absolute; top: -1px; left: 28%; right: 28%; height: 3px; background: var(--brass); border-radius: 0 0 3px 3px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom) + 70px);
  margin: 0; max-width: min(90vw, 420px); padding: 10px 16px; border-radius: 12px;
  background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; text-align: center; z-index: 5;
}
.toast[hidden] { display: none; }

@media (max-height: 700px) { .today { display: none; } }
@media (max-height: 600px) {
  .note { font-size: clamp(76px, 26vw, 120px); }
  #vibHint { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Takes */
.takes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.takes-acts { display: flex; gap: 8px; }
.rec { min-width: 92px; height: 40px; padding: 0 18px; border-radius: 20px; background: var(--sharp); color: var(--ink); font-weight: 700; }
.rec.is-live { background: none; color: var(--sharp); box-shadow: inset 0 0 0 1.5px var(--sharp); }
.arm { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--panel); color: var(--paper); font-weight: 700; }
.arm.is-live { background: var(--brass); color: var(--ink); }
.troll { position: relative; height: 46vh; min-height: 240px; max-height: 460px; border-radius: 14px; background: var(--well); overflow: hidden; }
.troll canvas { position: absolute; inset: 0; display: block; touch-action: none; }
.tzoom { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; z-index: 2; }
.tzoom button { min-width: 34px; height: 30px; padding: 0 8px; border-radius: 15px; background: rgba(38,32,70,0.88); color: var(--paper); font-weight: 700; font-size: 15px; }
.tbusy { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70%; text-align: center; color: var(--paper); font-size: 14px; z-index: 3; background: rgba(23,19,43,0.86); padding: 12px; border-radius: 12px; }
.tbusy[hidden] { display: none; }
.tbusy i { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.tbusy b { display: block; height: 100%; width: 0; background: var(--brass); }
.tplay { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tplay .wide { min-width: 90px; }
.tplay .wide:disabled { opacity: 0.45; }
.tchip { height: 36px; padding: 0 12px; border-radius: 18px; background: var(--panel); font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; }
.tchip[aria-pressed="true"] { background: var(--brass); color: var(--ink); }
.ttime { margin-left: auto; color: var(--mute); font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; }
.topts { margin-top: 10px; }
.tset { margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--panel); }
.tset[hidden] { display: none; }
.tset-row { margin-bottom: 10px; font-size: 13px; color: var(--mute); }
.tset-row > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tset-row button { height: 32px; padding: 0 11px; border-radius: 16px; background: var(--rule); color: var(--paper); font-size: 13px; font-weight: 600; }
.tset-row button.is-on { background: var(--brass); color: var(--ink); }
.tcard { margin-top: 10px; font-size: 14px; line-height: 1.35; }
.tcard[hidden] { display: none; }
.tcard p + p { margin-top: 4px; }
.tcard-warn { color: var(--brass); font-size: 13px; }
.tcard-src { color: var(--mute); font-size: 12px; }
.tsel { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); font-size: 14px; }
.tsel[hidden], #tNotesWrap[hidden] { display: none; }
.tsel-btns { display: flex; gap: 6px; margin-top: 8px; }
.tsel-btns .wide { height: 38px; flex: 1; padding: 0 8px; background: var(--rule); font-size: 14px; }
.tsel-btns .wide[hidden] { display: none; }
.tnotes-head { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--mute); font-size: 13px; }
.tnotes-head .quiet { height: 32px; }
.tnotes-head .quiet[hidden] { display: none; }
.tnotes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tnotes button { display: flex; align-items: baseline; gap: 4px; height: 32px; padding: 0 9px; border-radius: 10px; background: var(--panel); font-size: 14px; }
.tnotes button.is-on { box-shadow: inset 0 0 0 1.5px var(--paper); }
.tnotes small { color: var(--mute); font-size: 11px; font-variant-numeric: tabular-nums; }
.tnotes .is-slide b { color: var(--brass); }
.tnotes .is-orn b { color: var(--flat); }
.tnotes .is-creak b { color: var(--sharp); }
.twords { display: block; margin-top: 12px; color: var(--mute); font-size: 13px; }
.twords input { display: block; width: 100%; margin-top: 4px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--well); color: var(--paper); font: 500 16px var(--face); -webkit-user-select: text; user-select: text; }
.tlist-head { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.tlist-head .wide { height: 38px; }
.tlist-h { margin: 0; font-size: 17px; }
.tlist { margin-top: 6px; }
.tlist li { padding: 10px 0; border-top: 1px solid var(--rule); }
.tlist li.is-open .tl-open b { color: var(--brass); }
.tl-open { display: block; text-align: left; width: 100%; }
.tl-open b { display: block; font-size: 15px; }
.tl-open span { display: block; color: var(--mute); font-size: 13px; }
.tl-btns { display: flex; gap: 16px; margin-top: 6px; }
.tl-btns button { color: var(--mute); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 28px; }
.tlist .empty { color: var(--mute); font-size: 14px; border-top: 0; }

/* Drills (version 7) */
.dpick, .dvowel { flex-wrap: wrap; }
.dcue { color: var(--paper); font-size: 15px; margin: 12px 0 0; max-width: 46ch; }
.dlesson { display: block; color: var(--mute); font-size: 13px; margin-top: 4px; }
.dvowel { margin-top: 12px; }
.dkeys strong { min-width: 40px; }
.dstage { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--well); display: grid; gap: 8px; }
.dphase { font-size: 20px; font-weight: 700; color: var(--paper); margin: 0; }
.dstage.is-sing .dphase { color: var(--brass); }
.dkeyline { color: var(--mute); font-size: 14px; margin: 0; font-variant-numeric: tabular-nums; }
.dbar, .dlvl { display: block; position: relative; height: 6px; border-radius: 3px; background: var(--panel); overflow: hidden; }
.dbar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--paper); }
.dstage.is-sing .dbar b { background: var(--brass); }
.dlvl { height: 4px; }
.dlvl b { position: absolute; inset: 0; background: var(--flat); transform-origin: left center; transform: scaleX(0); }
.dstage:not(.is-sing) .dlvl { visibility: hidden; }
.dgo { justify-self: start; min-width: 120px; background: var(--brass); color: var(--ink); }
.dgo.is-live { background: var(--panel); color: var(--paper); }
.dresult { margin-top: 14px; }
.dcells { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; }
.dcell { border-radius: 8px; padding: 5px 0 4px; text-align: center; background: var(--panel); }
.dcell b { display: block; font-size: 15px; font-weight: 700; }
.dcell i { display: block; min-height: 12px; font-style: normal; font-size: 10px; color: var(--mute); font-variant-numeric: tabular-nums; }
.dcell.s-ok { background: rgba(244, 183, 64, 0.16); }
.dcell.s-ok b { color: var(--brass); }
.dcell.s-sharp { background: rgba(255, 128, 152, 0.18); }
.dcell.s-sharp b { color: var(--sharp); }
.dcell.s-flat { background: rgba(124, 196, 255, 0.18); }
.dcell.s-flat b { color: var(--flat); }
.dcell.s-miss { background: transparent; border: 1px dashed var(--rule); }
.dcell.s-miss b { color: var(--mute); }
.dcell.s-smear { background: repeating-linear-gradient(135deg, var(--panel) 0 4px, var(--rule) 4px 8px); }
.dcell.is-fix { outline: 2px solid var(--paper); outline-offset: 1px; }
.dcells.dhold { display: block; }
.dbig b { display: block; font-size: 34px; font-weight: 800; color: var(--paper); font-variant-numeric: tabular-nums; }
.dbig span { color: var(--mute); font-size: 14px; }
.dresult.z-in .dbig b { color: var(--brass); }
.dresult.z-wide .dbig b, .dresult.z-slow .dbig b, .dresult.z-fast .dbig b { color: var(--flat); }
.dverdict { margin: 10px 0 0; font-size: 16px; color: var(--paper); max-width: 46ch; }
.dbtns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dbtns[hidden], .dbtns .wide[hidden] { display: none; }
.dbtns .wide { height: 40px; }
.dlist { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.dlist li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--paper); padding: 8px 12px; background: var(--well); border-radius: 12px; }
.dlist li span { color: var(--mute); font-variant-numeric: tabular-nums; }
.dpick button { flex: none; padding: 0 14px; }
.dvowel button { flex: none; min-width: 64px; padding: 0 14px; }
.scale-set.dkeys { gap: 6px; flex-wrap: nowrap; }
.scale-set.dkeys button:not(.wide) { width: 38px; height: 38px; font-size: 20px; flex: none; }
.scale-set.dkeys strong { min-width: 38px; font-size: 17px; }
.scale-set.dkeys span { white-space: nowrap; }
.opts.dpick, .opts.dvowel { display: flex; flex-wrap: wrap; }

/* Version 8: the takes sit under the Sing tab */
.view-joined { border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 16px; }
.view-joined[hidden] { display: none; }
.takes-acts[hidden], .tset-row[hidden] { display: none; }
#view-takes.is-rec .troll, #view-takes.is-rec .tplay, #view-takes.is-rec .topts, #view-takes.is-rec .tcard, #view-takes.is-rec .tsel, #view-takes.is-rec #tNotesWrap { display: none; }

/* Version 9: coach scores on the take card, the Today card on Drills, score trends on the Log */
.coach { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--well); }
.coach-none { color: var(--mute); font-size: 13px; }
.coach-top { display: flex; align-items: center; gap: 6px; }
.radar { width: 200px; max-width: 64%; height: auto; flex: none; }
.rd-grid { fill: none; stroke: var(--rule); stroke-width: 1; }
.rd-axis { stroke: var(--rule); stroke-width: 1; }
.rd-val { fill: rgba(244, 183, 64, 0.28); stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; }
.rd-lab { fill: var(--paper); font-family: var(--face); font-size: 13px; font-weight: 600; }
.rd-lab.is-none { fill: var(--mute); }
.coach-score { margin-left: auto; text-align: right; }
.coach-score b { display: block; font-size: 42px; font-weight: 800; color: var(--brass); line-height: 1; font-variant-numeric: tabular-nums; }
.coach-score span { color: var(--mute); font-size: 13px; }
.coach-tab { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 13px; }
.coach-tab th { text-align: left; font-weight: 600; color: var(--paper); padding: 3px 8px 3px 0; white-space: nowrap; width: 1%; }
.coach-tab td { padding: 3px 0; color: var(--mute); }
.coach-tab td:nth-child(2) { width: 36px; font-weight: 750; color: var(--paper); font-variant-numeric: tabular-nums; }
.coach-tab td.is-good { color: var(--brass); }
.coach-tab td.is-low { color: var(--sharp); }
.coach-one { margin-top: 10px; font-size: 14px; }
.coach-one b { color: var(--brass); }
.coach-h { margin-top: 10px; color: var(--mute); font-size: 13px; }
.coach-fix { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.coach-fix li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.coach-fix button { flex: none; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--panel); color: var(--brass); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.coach-key { margin-top: 10px; font-size: 13px; color: var(--mute); }
.tsel-btns .wide { font-size: 13px; padding: 0 4px; }
.dplan { margin: 6px 0 14px; padding: 14px; border-radius: 18px; background: var(--well); }
.dplan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dplan-top b { font-size: 18px; }
.dplan-top span { color: var(--brass); font-size: 14px; font-weight: 650; }
.dplan-goal { display: block; width: 100%; text-align: left; margin-top: 8px; color: var(--mute); font-size: 13px; }
.dplan-goal i { display: block; height: 6px; margin-top: 5px; border-radius: 3px; background: var(--panel); overflow: hidden; }
.dplan-goal b { display: block; height: 100%; background: var(--brass); }
.dplan-focus { margin: 10px 0 0; font-size: 14px; max-width: 46ch; }
.dplan-focus b { color: var(--brass); }
.dplan-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.dplan-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; background: var(--panel); }
.dplan-list button b { display: block; font-size: 15px; }
.dplan-list button span { display: block; color: var(--mute); font-size: 13px; }
.dplan-list button.is-done b { color: var(--brass); }
.scorebox { margin: 4px 0 16px; }
.scorebox[hidden] { display: none; }
.strend { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.strend li { display: grid; grid-template-columns: 96px 1fr 34px 30px; align-items: center; gap: 8px; font-size: 14px; }
.strend li.is-all { border-top: 1px solid var(--rule); padding-top: 6px; }
.st-lab { color: var(--paper); }
.spark { width: 100%; height: 26px; display: block; }
.spark polyline { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.strend b { text-align: right; font-variant-numeric: tabular-nums; }
.strend small { color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.voice-line:empty { display: none; }

/* Version 10: his own drills, the drill maker on takes, the guided warm-up */
.tsel-btns { flex-wrap: wrap; }
.tsel-btns .wide { flex: 1 1 28%; }
.tsel-btns[hidden], .tmk[hidden], .twords[hidden] { display: none; }
.tmk { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
.tmk p { font-size: 14px; }
.tsel-btns .wide.is-go { background: var(--brass); color: var(--ink); }
.dmine { margin-top: 10px; }
.dmine[hidden], .ddel[hidden] { display: none; }
.dmine-h { color: var(--mute); font-size: 13px; margin: 0 0 6px; }
.ddel { height: 32px; padding: 0; font-size: 13px; }
.dplan-warm { display: block; width: 100%; text-align: left; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(244, 183, 64, 0.16); }
.dplan-warm b { display: block; font-size: 15px; color: var(--brass); }
.dplan-warm span { display: block; color: var(--mute); font-size: 13px; }
.wcard { margin: 6px 0 14px; padding: 16px; border-radius: 18px; background: var(--well); display: grid; gap: 6px; }
.wcard.is-on .wbig { color: var(--brass); }
.wstep { margin: 0; font-size: 18px; font-weight: 700; }
.wcue { margin: 0; color: var(--mute); font-size: 14px; max-width: 46ch; min-height: 38px; }
.wbig { margin: 6px 0 0; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.wsub { margin: 0; color: var(--mute); font-size: 14px; min-height: 19px; }
.wbtns { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.wbtns .wide[hidden] { display: none; }
.wleft { margin-left: auto; color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.wlist { list-style: none; padding: 0; margin: 0 0 14px; }
.wlist li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.wlist li:last-child { border-bottom: 1px solid var(--rule); }
.wlist .step-t { font-size: 15px; }
.wlist .step-c { font-size: 14px; }
.wlist li.is-on .step-n, .wlist li.is-on .step-t { color: var(--brass); }
.wlist li.is-done .step-t { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; }
