/* SurgeX · components. Owner: foundation.
   Every control and surface the areas compose from. See components.html for every state.
   Areas: append new shared components at the end in a block marked with your area name
   (append only; never edit another block) and add them to components.html too. */

/* ═════════ Buttons ═════════
   .btn + .btn-p (primary: cream on dark / green on light) · .btn-s (secondary: s3 surface)
   · .btn-t (tertiary: underlined text) · .btn-d (destructive) · .btn-dq (quiet destructive)
   sizes: .btn-sm 32 · default 38 · .btn-lg 46 · .btn-block · states: :disabled, .is-loading */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 14px;border-radius:var(--r-btn);font:600 13px/1 var(--ui);letter-spacing:.005em;white-space:nowrap;text-decoration:none;transition:transform var(--t-fast) ease,background-color 150ms ease,box-shadow 150ms ease;user-select:none}
.btn svg.i{width:16px;height:16px}
.btn:active:not(:disabled):not(.is-loading){transform:scale(var(--press))}
.btn-p{background:var(--btn);color:var(--btn-ink)}
.btn-s{background:var(--s3);color:var(--ink);box-shadow:inset 0 0 0 1px var(--hair-2)}
.btn-s .pr,.btn-p .pr{font-weight:500;opacity:.72}
.btn-t{height:auto;padding:2px 0;border-radius:4px;color:var(--ink);text-decoration:underline;text-decoration-color:var(--hair-2);text-underline-offset:4px;text-decoration-thickness:1px}
.btn-d{background:var(--err-btn);color:#FFF7F4}
.btn-dq{background:transparent;color:var(--err);box-shadow:inset 0 0 0 1px var(--hair-2)}
.btn-ghost{background:transparent;color:var(--ink-2)}
.btn-sm{height:32px;padding:0 11px;font-size:13px;gap:6px}
.btn-sm svg.i{width:14px;height:14px}
.btn-lg{height:46px;padding:0 18px;font-size:15px;gap:8px}
.btn-block{display:flex;width:100%}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.42;cursor:not-allowed}
.btn.is-loading{color:transparent !important;pointer-events:none}
.btn.is-loading::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:999px;border:1.5px solid currentColor;border-color:var(--btn-ink) var(--btn-ink) transparent transparent;animation:sx-spin 700ms linear infinite !important;animation-duration:700ms !important;animation-iteration-count:infinite !important}
.btn-s.is-loading::after,.btn-t.is-loading::after,.btn-ghost.is-loading::after{border-color:var(--ink) var(--ink) transparent transparent}
.btn-d.is-loading::after{border-color:#FFF7F4 #FFF7F4 transparent transparent}
.btn .kbd{display:none}
/* icon button */
.ib{width:32px;height:32px;border-radius:8px;display:inline-grid;place-items:center;color:var(--ink-2);flex:none;transition:background-color var(--t-fast),transform var(--t-fast);position:relative}
.ib:active:not(:disabled){transform:scale(var(--press))}
.ib-sm{width:28px;height:28px;border-radius:6px}
.ib-lg{width:40px;height:40px}
.ib:disabled{opacity:.4}
.ib[aria-pressed="true"]{background:var(--s3);color:var(--ink)}
/* round play button (transport, voice notes) */
.play{width:38px;height:38px;border-radius:999px;background:var(--btn);color:var(--btn-ink);display:inline-grid;place-items:center;flex:none;transition:transform var(--t-fast),background-color 150ms}
.play:active{transform:scale(var(--press))}
.play svg{width:14px;height:14px}
.play-lg{width:56px;height:56px}.play-lg svg{width:18px;height:18px}
/* text link */
.link{display:inline-flex;align-items:center;gap:6px;font:600 13px/18px var(--ui);color:var(--ink);text-decoration:underline;text-decoration-color:var(--hair-2);text-underline-offset:4px;text-decoration-thickness:1px;border-radius:4px}
.link svg.i{width:14px;height:14px}
.link-quiet{color:var(--ink-2);font-weight:500}
@media (hover:hover){
  .btn-p:hover:not(:disabled),.play:hover{background:var(--btn-hover)}
  .btn-s:hover:not(:disabled){background:var(--s2);box-shadow:inset 0 0 0 1px var(--ink-3)}
  .btn-t:hover,.link:hover{text-decoration-color:currentColor}
  .btn-d:hover:not(:disabled){background:var(--err-btn-hover)}
  .btn-dq:hover:not(:disabled){background:var(--err-bg);box-shadow:none}
  .btn-ghost:hover:not(:disabled){background:var(--s3);color:var(--ink)}
  .ib:hover:not(:disabled){background:var(--s3);color:var(--ink)}
}
/* forced states for the component sheet */
.is-hover.btn-p{background:var(--btn-hover)} .is-hover.btn-s{background:var(--s2);box-shadow:inset 0 0 0 1px var(--ink-3)}
.is-hover.btn-t{text-decoration-color:currentColor} .is-hover.btn-d{background:var(--err-btn-hover)} .is-hover.btn-dq{background:var(--err-bg);box-shadow:none}
.is-focus{box-shadow:var(--focus) !important}

/* ═════════ Form fields ═════════ */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.label{font:600 13px/18px var(--ui);color:var(--ink);display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.label .opt{font-weight:500;color:var(--ink-3)}
.label a{font-weight:500;color:var(--ink-2);text-underline-offset:3px;text-decoration-color:var(--hair-2)}
.help{font:500 12px/16px var(--ui);color:var(--ink-3)}
.error{display:flex;align-items:flex-start;gap:6px;font:500 12px/16px var(--ui);color:var(--err)}
.error svg.i{width:14px;height:14px;margin-top:1px}
.input,.textarea,.select{width:100%;height:42px;padding:0 12px;border-radius:var(--r-card);background:var(--s3);border:0;box-shadow:inset 0 0 0 1px var(--hair-2);font:500 15px/20px var(--ui);color:var(--ink);transition:box-shadow var(--t-fast)}
.input::placeholder,.textarea::placeholder{color:var(--ink-3);opacity:1}
.textarea{height:auto;min-height:96px;padding:10px 12px;line-height:22px;resize:vertical}
.input:focus,.textarea:focus,.select:focus{box-shadow:inset 0 0 0 1px var(--ink-2),var(--focus);outline:none}
.input:disabled,.textarea:disabled,.select:disabled{opacity:.5;cursor:not-allowed}
.input[readonly]{background:var(--s2)}
.field.has-error .input,.field.has-error .textarea,.field.has-error .select,.input[aria-invalid="true"],.textarea[aria-invalid="true"]{box-shadow:inset 0 0 0 1.5px var(--err)}
.field.has-error .input:focus,.input[aria-invalid="true"]:focus{box-shadow:inset 0 0 0 1.5px var(--err),var(--focus)}
.select{appearance:none;-webkit-appearance:none;padding-right:36px;background-image:none;cursor:pointer}
.select-wrap{position:relative;display:block}
.select-wrap svg.i{position:absolute;right:12px;top:50%;margin-top:-8px;color:var(--ink-3);pointer-events:none}
.input-wrap{position:relative;display:flex;align-items:center}
.input-wrap .input{padding-right:44px}
.input-wrap .ib{position:absolute;right:5px}
.input-wrap .suffix{position:absolute;right:12px;font:500 13px/1 var(--ui);color:var(--ink-3);pointer-events:none}
.input-wrap.has-prefix .input{padding-left:36px}
.input-wrap .prefix{position:absolute;left:12px;color:var(--ink-3);pointer-events:none;display:grid}
.search{max-width:360px}
.form-error{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-card);background:var(--err-bg);color:var(--ink);font:500 13px/20px var(--ui)}
.form-error svg.i{color:var(--err);margin-top:2px}
.form-error b{display:block;font-weight:600}

/* segmented control (speeds, theme, views) */
.seg{display:inline-flex;background:var(--inset);border-radius:8px;padding:3px;gap:2px;flex:none}
.seg button{height:28px;padding:0 11px;border-radius:6px;font:600 12px/1 var(--ui);color:var(--ink-3);white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.seg.num-seg button{font-family:var(--display);font-variant-numeric:tabular-nums}
.seg button[aria-pressed="true"],.seg button[aria-selected="true"]{background:var(--s3);color:var(--ink);box-shadow:0 1px 0 rgba(0,0,0,.12),0 0 0 1px var(--edge)}
.seg button:disabled{opacity:.4}
.seg-lg button{height:34px;padding:0 14px;font-size:13px}
@media (hover:hover){.seg button:not([aria-pressed="true"]):not([aria-selected="true"]):not(:disabled):hover{color:var(--ink)}}

/* checkbox + radio (custom, real inputs underneath) */
.check,.radio{display:inline-flex;align-items:flex-start;gap:10px;font:500 14px/20px var(--ui);color:var(--ink);cursor:pointer;position:relative}
.check input,.radio input,.switch input{position:absolute;opacity:0;width:18px;height:18px;margin:0;cursor:pointer}
.check .box,.radio .box{width:18px;height:18px;flex:none;margin-top:1px;border-radius:5px;background:var(--s3);box-shadow:inset 0 0 0 1.5px var(--ink-3);display:grid;place-items:center;color:var(--btn-ink);transition:background-color var(--t-fast)}
.radio .box{border-radius:999px}
.check .box svg{width:12px;height:12px;opacity:0;stroke-width:2.2}
.check input:checked + .box{background:var(--btn);box-shadow:none}
.check input:checked + .box svg{opacity:1}
.radio input:checked + .box{box-shadow:inset 0 0 0 5px var(--btn)}
.check input:focus-visible + .box,.radio input:focus-visible + .box,.switch input:focus-visible + .track-sw{box-shadow:var(--focus)}
.check input:disabled ~ *,.radio input:disabled ~ *,.switch input:disabled ~ *{opacity:.45}
.check small,.radio small{display:block;font:500 12px/16px var(--ui);color:var(--ink-3);margin-top:2px}
/* toggle switch */
.switch{display:inline-flex;align-items:center;gap:10px;cursor:pointer;position:relative;font:500 14px/20px var(--ui)}
.switch input{width:36px;height:22px}
.track-sw{width:36px;height:22px;border-radius:999px;background:var(--inset);box-shadow:inset 0 0 0 1px var(--hair-2);position:relative;flex:none;transition:background-color var(--t)}
.track-sw::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:999px;background:var(--ink-3);transition:transform var(--t) var(--ease-out),background-color var(--t)}
.switch input:checked + .track-sw{background:var(--btn);box-shadow:none}
.switch input:checked + .track-sw::after{transform:translateX(14px);background:var(--btn-ink)}

/* number stepper (− value +) */
.stepper{display:inline-flex;align-items:center;height:38px;border-radius:8px;background:var(--inset);padding:3px}
.stepper button{width:32px;height:32px;border-radius:6px;display:grid;place-items:center;color:var(--ink-2)}
.stepper button:active{transform:scale(var(--press))}
.stepper output,.stepper .v{min-width:40px;text-align:center;font:600 17px/1 var(--display);font-variant-numeric:tabular-nums;color:var(--ink)}
.stepper .v small{font:500 11px/1 var(--ui);color:var(--ink-3);margin-left:2px}
@media (hover:hover){.stepper button:hover{background:var(--s3);color:var(--ink)}}

/* ═════════ Chips, counts, filter chips ═════════ */
.chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:var(--r-chip);font:600 12px/1 var(--ui);white-space:nowrap;background:var(--s3);color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--hair)}
.chip svg.i{width:13px;height:13px}
.chip .tc{font-size:12px}
.chip-sm{height:22px;padding:0 8px;font-size:11px;gap:5px}
.chip-ok{background:var(--ok-bg);color:var(--ok);box-shadow:none}
.chip-due{background:var(--due-bg);color:var(--due);box-shadow:none}
.chip-err{background:var(--err-bg);color:var(--err);box-shadow:none}
.chip-n{background:var(--s3);color:var(--ink-2)}
.chip-ghost{background:transparent;color:var(--ink-3);box-shadow:inset 0 0 0 1px var(--hair-2)}
/* earned: "Sam's answer is in" (gold as metal, same in both themes) */
.chip-earned{background:var(--metal-bg);color:var(--metal-ink);box-shadow:inset 0 0 0 1px var(--metal-ring)}
/* the coach's cue chip (ring-bell + timecode): gold, coach attention only */
.chip-cue{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px 0 6px;border-radius:var(--r-chip);background:var(--gold);color:var(--gold-ink);font:600 13px/1 var(--display);font-variant-numeric:tabular-nums;white-space:nowrap}
.chip-cue svg.rb{width:12px;height:14px}
.chip-cue .av{width:16px;height:16px}
/* "due in" countdown (coach's time) */
.due-in{display:inline-flex;align-items:center;gap:6px;font:600 12px/16px var(--ui);color:var(--gold-text);white-space:nowrap}
.due-in .tc{font-size:13px}
.due-in.late{color:var(--err)}
.due-in svg.i{width:13px;height:13px}
/* counts in nav: neutral, or gold only for a new coach answer */
.count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:5px;font:600 11px/1 var(--display);font-variant-numeric:tabular-nums;background:var(--s3);color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--hair-2)}
.count-gold{background:var(--gold);color:var(--gold-ink);box-shadow:none}
/* filter chips (toggle) */
.fchip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:999px;font:500 13px/1 var(--ui);color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--hair-2);background:transparent;white-space:nowrap}
.fchip .count{height:16px;min-width:16px;font-size:10px;box-shadow:none;background:var(--inset)}
.fchip[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink);box-shadow:none}
.fchip[aria-pressed="true"] .count{background:rgba(127,127,127,.22);color:inherit}
@media (hover:hover){.fchip:not([aria-pressed="true"]):hover{background:var(--s3);color:var(--ink)}}
/* status text with icon (in rows) */
.st{display:inline-flex;align-items:center;gap:6px;font:600 12px/16px var(--ui);white-space:nowrap}
.st svg.i{width:13px;height:13px}
.st-ok{color:var(--ok)} .st-due{color:var(--due)} .st-err{color:var(--err)} .st-n{color:var(--ink-2)}

/* ═════════ Tabs ═════════ */
.tabs{display:flex;gap:4px;box-shadow:inset 0 -1px 0 var(--hair);overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{position:relative;display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 10px;font:500 13px/18px var(--ui);color:var(--ink-3);text-decoration:none;white-space:nowrap;border-radius:6px 6px 0 0}
.tab .count{height:17px;min-width:17px;font-size:10px}
.tab[aria-selected="true"],.tab[aria-current="page"]{color:var(--ink)}
.tab[aria-selected="true"]::after,.tab[aria-current="page"]::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:var(--ink)}
@media (hover:hover){.tab:not([aria-selected="true"]):not([aria-current="page"]):hover{color:var(--ink)}}

/* ═════════ Menu (floating layer) ═════════ */
.menu{position:fixed;z-index:var(--z-menu);min-width:220px;max-width:300px;padding:6px;border-radius:var(--r-card);background:var(--s3);box-shadow:var(--shadow-float);animation:sx-scale var(--t-fast) var(--ease-out) both;transform-origin:top right}
.menu.static{position:relative;z-index:auto;animation:none}
.menu-head{padding:8px 10px 10px;display:flex;gap:10px;align-items:center}
.menu-head b{display:block;font:600 13px/18px var(--ui)}
.menu-head small{display:block;font:500 12px/16px var(--ui);color:var(--ink-3)}
.menu-item{display:flex;align-items:center;gap:10px;width:100%;height:34px;padding:0 10px;border-radius:6px;font:500 13px/18px var(--ui);color:var(--ink);text-decoration:none;text-align:left}
.menu-item svg.i{color:var(--ink-3)}
.menu-item .sp{flex:1}
.menu-item .meta{color:var(--ink-3)}
.menu-item.danger{color:var(--err)} .menu-item.danger svg.i{color:var(--err)}
.menu-item[aria-checked="true"]::after{content:"";width:6px;height:6px;border-radius:9px;background:var(--ink);margin-left:auto}
.menu-item:focus-visible{box-shadow:var(--focus-inset)}
.menu-item.is-active{background:var(--s2)}
.menu-sep{height:1px;background:var(--hair);margin:6px 4px}
.menu-label{padding:8px 10px 4px;font:500 12px/16px var(--ui);color:var(--ink-3)}
.menu-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 4px 4px 10px;font:500 13px/18px var(--ui)}
@media (hover:hover){.menu-item:hover{background:var(--s2)}}

/* ═════════ Toast ═════════ */
.toasts{position:fixed;left:0;right:0;bottom:24px;z-index:var(--z-toast);display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding:0 16px}
.toast{pointer-events:auto;display:flex;align-items:center;gap:12px;min-height:44px;max-width:520px;padding:8px 8px 8px 14px;border-radius:var(--r-card);background:var(--s3);color:var(--ink);box-shadow:var(--shadow-float);font:500 13px/18px var(--ui);animation:sx-rise var(--t-slow) var(--ease-out) both}
.toast.static{animation:none}
.toast .ic{display:grid;place-items:center;width:20px;height:20px;border-radius:999px;background:var(--ok-bg);color:var(--ok);flex:none}
.toast .ic svg.i{width:12px;height:12px;stroke-width:2}
.toast.err .ic{background:var(--err-bg);color:var(--err)}
.toast .toast-msg{flex:1;min-width:0;padding:4px 0}
.toast .act{height:28px;padding:0 10px;border-radius:6px;font:600 13px/1 var(--ui);color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--hair-2)}
.toast .x{width:28px;height:28px;border-radius:6px;display:grid;place-items:center;color:var(--ink-3)}
.toast.out{opacity:0;transform:translateY(6px);transition:opacity var(--t-fast),transform var(--t-fast)}
@media (hover:hover){.toast .act:hover,.toast .x:hover{background:var(--s2)}}
@media (max-width:760px){.toasts{bottom:84px}}

/* ═════════ Sheet / dialog (floating layer) ═════════ */
.scrim{position:fixed;inset:0;z-index:var(--z-sheet);background:var(--scrim);display:flex;align-items:center;justify-content:center;padding:24px;animation:sx-fade var(--t-fast) ease-out both}
.sheet{position:relative;width:100%;max-width:520px;max-height:min(760px,calc(100dvh - 48px));display:flex;flex-direction:column;background:var(--s2);border-radius:var(--r-panel);box-shadow:var(--shadow-float);animation:sx-scale var(--t) var(--ease-out) both;overflow:hidden}
.sheet.wide{max-width:720px}
.sheet.static{animation:none;max-height:none}
.sheet-head{display:flex;align-items:flex-start;gap:12px;padding:20px 20px 4px 24px}
.sheet-head h2{font-size:21px;line-height:26px;flex:1}
.sheet-head .sub{display:block;margin-top:4px;font:500 13px/18px var(--ui);color:var(--ink-3)}
.sheet-body{padding:12px 24px 20px;overflow:auto;flex:1;min-height:0}
.sheet-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 24px 20px;border-top:1px solid var(--hair);flex-wrap:wrap}
.sheet-foot .grow{flex:1}
.sheet-grab{display:none}
@media (max-width:760px){
  .scrim{align-items:flex-end;padding:0}
  .sheet,.sheet.wide{max-width:none;border-radius:var(--r-panel) var(--r-panel) 0 0;max-height:calc(100dvh - 40px);animation:sx-sheet var(--t-slow) var(--ease-out) both;padding-bottom:env(safe-area-inset-bottom)}
  .sheet.static{animation:none}
  .sheet-grab{display:block;width:36px;height:4px;border-radius:4px;background:var(--hair-2);margin:8px auto 0}
  .sheet-head{padding:12px 16px 4px 20px}
  .sheet-body{padding:10px 20px 16px}
  .sheet-foot{padding:12px 20px 16px}
  .sheet-foot .btn{flex:1}
}

/* ═════════ Lists and tables ═════════ */
.rows{background:var(--s1);border-radius:var(--r-panel);box-shadow:var(--panel-shadow);overflow:hidden}
.rows.flat{background:transparent;box-shadow:none;border-radius:0}
.row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;min-height:52px;padding:8px 16px;font:500 13px/18px var(--ui);border-top:1px solid var(--hair);text-decoration:none;color:var(--ink);transition:background-color var(--t-fast);width:100%;text-align:left}
.row:first-child{border-top:0}
.row .t b{display:block;font-weight:600}
.row .t small{display:block;font-size:12px;line-height:16px;color:var(--ink-3)}
.row .r{color:var(--ink-3);text-align:right;font-variant-numeric:tabular-nums}
.row .who{display:flex;align-items:center;gap:8px;color:var(--ink-2)}
.row[aria-selected="true"],.row.sel{background:var(--s3)}
.row.unread .t b::after{content:"";display:inline-block;width:6px;height:6px;border-radius:9px;background:var(--ink);margin-left:8px;vertical-align:middle}
.row-dense{min-height:40px;padding:6px 14px}
a.row,button.row{cursor:pointer}
.row.is-hover{background:var(--s2)}
@media (hover:hover){a.row:not(.sel):not([aria-selected="true"]):hover,button.row:not(.sel):not([aria-selected="true"]):hover,.row.hoverable:not(.sel):hover{background:var(--s2)}}

.tbl-wrap{background:var(--s1);border-radius:var(--r-panel);box-shadow:var(--panel-shadow);overflow:auto;max-width:100%}
.tbl{width:100%;font:500 13px/18px var(--ui);color:var(--ink)}
.tbl thead th{position:sticky;top:0;z-index:1;background:var(--s1);height:40px;padding:0 12px;text-align:left;font:500 12px/16px var(--ui);color:var(--ink-3);white-space:nowrap;box-shadow:inset 0 -1px 0 var(--hair)}
.tbl thead th:first-child,.tbl td:first-child{padding-left:16px}
.tbl thead th:last-child,.tbl td:last-child{padding-right:16px}
.tbl th.num,.tbl td.num{text-align:right;font-family:var(--display);font-stretch:100%;font-weight:600;font-variant-numeric:tabular-nums}
.tbl thead th.num{font-family:var(--ui);font-weight:500}
.tbl .sort{display:inline-flex;align-items:center;gap:4px;height:28px;margin:0 -6px;padding:0 6px;border-radius:6px;font:inherit;color:inherit}
.tbl th.num .sort{flex-direction:row-reverse}
.tbl .sort svg.i{width:12px;height:12px;opacity:.35}
.tbl th[aria-sort="ascending"] .sort,.tbl th[aria-sort="descending"] .sort{color:var(--ink)}
.tbl th[aria-sort="ascending"] .sort svg.i,.tbl th[aria-sort="descending"] .sort svg.i{opacity:1}
.tbl th[aria-sort="ascending"] .sort svg.i{transform:rotate(180deg)}
.tbl td{height:52px;padding:6px 12px;border-top:1px solid var(--hair);vertical-align:middle}
.tbl tbody tr:first-child td{border-top:0}
.tbl td .sub{display:block;font-size:12px;line-height:16px;color:var(--ink-3)}
.tbl td.muted{color:var(--ink-2)}
.tbl tr.sel td{background:var(--s3)}
.tbl tr.is-hover td{background:var(--s2)}
.tbl tbody tr{transition:background-color var(--t-fast)}
.tbl .cellwho{display:flex;align-items:center;gap:10px;min-width:0}
.tbl .cellwho b{font-weight:600;display:block}
.tbl-dense td{height:40px}
@media (hover:hover){.tbl .sort:hover{background:var(--s2);color:var(--ink)}.tbl tbody tr.clickable{cursor:pointer}.tbl tbody tr.clickable:not(.sel):hover td{background:var(--s2)}}

/* key–value facts */
.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 20px;font:500 13px/18px var(--ui)}
.kv dt{color:var(--ink-3)}
.kv dd{color:var(--ink);font-variant-numeric:tabular-nums}
.facts{display:flex;flex-wrap:wrap;gap:6px 16px;font:500 13px/18px var(--ui);color:var(--ink-2)}
.facts span{display:inline-flex;align-items:center;gap:6px}
.facts svg.i{width:14px;height:14px;color:var(--ink-3)}

/* ═════════ Empty state, banner, skeleton, spinner ═════════ */
.empty{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:32px 28px;border-radius:var(--r-panel);background:var(--s1);box-shadow:var(--panel-shadow)}
.empty.flat{background:transparent;box-shadow:none;padding:24px 0}
.empty .glyph{width:44px;height:44px;border-radius:999px;display:grid;place-items:center;background:var(--inset);color:var(--ink-3);margin-bottom:10px}
.empty .glyph svg.i{width:20px;height:20px;stroke-width:1.2}
.empty h3{font-size:18px;line-height:24px}
.empty p{font:400 14px/22px var(--ui);color:var(--ink-2);max-width:46ch}
.empty .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.banner{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:var(--r-card);background:var(--s2);font:500 13px/20px var(--ui);color:var(--ink-2);box-shadow:0 0 0 1px var(--edge)}
.banner > svg.i{margin-top:2px;color:var(--ink-3)}
.banner b{color:var(--ink);font-weight:600}
.banner .grow{flex:1;min-width:0}
.banner .acts{display:flex;gap:8px;flex-wrap:wrap;align-self:center}
.banner-err{background:var(--err-bg);box-shadow:none}.banner-err > svg.i{color:var(--err)}
.banner-due{background:var(--due-bg);box-shadow:none}.banner-due > svg.i{color:var(--due)}
.banner-ok{background:var(--ok-bg);box-shadow:none}.banner-ok > svg.i{color:var(--ok)}
.skel{display:block;border-radius:6px;background:var(--skeleton) linear-gradient(90deg,transparent,var(--skeleton-hi),transparent) no-repeat;background-size:200px 100%;animation:sx-shimmer 1.2s ease-in-out infinite;animation-iteration-count:infinite}
.skel-line{height:12px;margin:6px 0}
.skel-title{height:28px;width:60%}
.skel-av{width:28px;height:28px;border-radius:999px}
.skel-stage{aspect-ratio:16/9;border-radius:var(--r-card)}
.spin{width:16px;height:16px;border-radius:999px;border:1.5px solid var(--ink-3);border-right-color:transparent;animation:sx-spin 700ms linear infinite !important;animation-iteration-count:infinite !important}

/* ═════════ Avatars ═════════ */
.av{width:28px;height:28px;border-radius:999px;display:inline-grid;place-items:center;flex:none;font:600 11px/1 var(--ui);letter-spacing:.02em;background:var(--s3);color:var(--ink-2);overflow:hidden;box-shadow:inset 0 0 0 1px var(--edge);vertical-align:middle}
.av img{width:100%;height:100%;object-fit:cover}
.av-16{width:16px;height:16px;font-size:7px}
.av-20{width:20px;height:20px;font-size:8px}
.av-22{width:22px;height:22px;font-size:9px}
.av-32{width:32px;height:32px;font-size:12px}
.av-40{width:40px;height:40px;font-size:14px}
.av-56{width:56px;height:56px;font-size:18px;font-family:var(--display)}
.av-stack{display:inline-flex}
.av-stack .av{box-shadow:0 0 0 2px var(--s1)}
.av-stack .av + .av{margin-left:-6px}

/* ═════════ The stage (always dark) ═════════ */
.stage{position:relative;aspect-ratio:16/9;border-radius:var(--r-card);overflow:hidden;background:var(--stage-bg);color:var(--stage-ink)}
.stage > img,.stage > video{width:100%;height:100%;object-fit:cover}
.stage .hud{position:absolute;left:12px;top:12px;display:flex;gap:6px;flex-wrap:wrap}
.stage .hud > span{height:26px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border-radius:6px;background:var(--stage-hud);color:#ECE8E0;font:500 12px/1 var(--ui);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.stage .hud .tc{font-size:13px;color:#ECE8E0}
.stage .cam{position:absolute;right:12px;bottom:12px;height:26px;display:inline-flex;align-items:center;padding:0 9px;border-radius:6px;background:rgba(7,16,11,.6);color:#C9D0C9;font:500 12px/1 var(--ui);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.stage .note{position:absolute;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px;height:26px;padding:0 9px;border-radius:6px;background:rgba(244,241,236,.94);color:#14251B;font:600 12px/1 var(--ui);white-space:nowrap}
.stage .hipline{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.stage .hipline .ln{stroke:#F4F1EC;stroke-width:1.5;fill:none;vector-effect:non-scaling-stroke;opacity:.92}
.stage .hipline .ln.d{stroke-dasharray:3 5;opacity:.7}
.stage .hipline .j{fill:#F4F1EC}
/* placeholder frame when no footage exists yet */
.stage-empty{display:grid;place-items:center;text-align:center;background:var(--stage-bg) radial-gradient(120% 90% at 30% 20%,#13261B 0%,#07100B 70%)}
.stage-empty .ph-in{display:flex;flex-direction:column;align-items:center;gap:8px;color:#9AA69C;font:500 13px/18px var(--ui);padding:16px}
.stage-empty .ph-in b{font:600 18px/24px var(--display);color:#ECE8E0}
.stage-empty svg.i{width:24px;height:24px;stroke-width:1.2}
@media (max-width:760px){.stage{border-radius:0}.stage .cam{display:none}.stage.keep-radius{border-radius:var(--r-card)}}

/* ═════════ Ring-bell pin (reserved for the coach's cue) ═════════ */
.rb .body{fill:currentColor}
.pin{position:absolute;left:50%;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;color:var(--gold);transform-origin:50% 100%;cursor:pointer;border-radius:4px}
.pin .lab{display:flex;align-items:center;gap:6px;height:22px;padding:0 8px 0 4px;border-radius:6px;background:var(--gold);color:var(--gold-ink);font:600 12px/1 var(--ui);white-space:nowrap;position:absolute;top:-1px;right:22px}
.pin .lab .tc{font-size:12px}
.pin .lab .av{width:16px;height:16px;box-shadow:none}
.pin.lab-right .lab{right:auto;left:22px}
.pin svg.rb{width:18px;height:20px;display:block}
.pin .stem{width:1px;height:8px;background:var(--gold)}
.pin.draft{color:var(--ink-2)} .pin.draft .stem{background:var(--ink-2)} .pin.draft .lab{background:var(--s3);color:var(--ink);box-shadow:0 0 0 1px var(--hair-2)}
.pin.drop{animation:sx-drop 180ms var(--ease-pin) both}

/* ═════════ Status strikes: three gold discs on a hairline ═════════ */
.strikes{position:relative;display:grid;grid-template-columns:repeat(3,1fr);padding-bottom:18px;border-bottom:1px solid var(--hair)}
.strikes.bare{border-bottom:0;padding-bottom:0}
.strikes::before{content:"";position:absolute;left:5px;right:calc(33.33% - 5px);top:5px;height:1px;background:var(--hair-2)}
.strikes .rung-line{position:absolute;left:5px;top:5px;height:1px;background:var(--gold);width:calc(66.66%);transform-origin:0 50%;transform:scaleX(var(--rung,1));transition:transform 160ms ease-out}
.strike{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0}
.strike .b{width:10px;height:10px;border-radius:999px;background:var(--s2);box-shadow:inset 0 0 0 1.5px var(--ink-3)}
.strike.rung .b{background:var(--gold);box-shadow:none}
.strike.ringing .b{animation:sx-ring 160ms ease-out both}
.strike b{font:600 13px/18px var(--ui);color:var(--ink)}
.strike:not(.rung) b{color:var(--ink-2)}
.strike span{font:500 12px/16px var(--ui);color:var(--ink-3);font-variant-numeric:tabular-nums}
/* compact strikes for rows: three discs only */
.strikes-mini{display:inline-flex;align-items:center;gap:0;position:relative}
.strikes-mini i{width:8px;height:8px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--ink-3);background:transparent;position:relative}
.strikes-mini i + i{margin-left:8px}
.strikes-mini i + i::before{content:"";position:absolute;right:8px;top:3.5px;width:8px;height:1px;background:var(--hair-2)}
.strikes-mini i.rung{background:var(--gold);box-shadow:none}

/* ═════════ Cue timeline (replaces a video player + comments) ═════════ */
.tl{margin-top:20px;--t:50%}
.tl .lane{position:relative;height:52px;cursor:pointer;touch-action:none;border-radius:4px}
.tl .track{position:absolute;left:0;right:0;top:30px;height:8px;border-radius:4px;background:var(--track);overflow:hidden}
.tl .played{position:absolute;left:0;top:0;bottom:0;width:var(--t);background:var(--track-played)}
.tl.seeking .played,.tl.seeking .ph{transition:width 200ms var(--ease-out),left 200ms var(--ease-out)}
.tl .reps{position:absolute;inset:0}
.tl .reps i{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--page);opacity:.9}
.tl .ph{position:absolute;left:var(--t);top:24px;height:22px;width:2px;margin-left:-1px;background:var(--gold);border-radius:1px;pointer-events:none}
.tl .ph::after{content:"";position:absolute;left:-5px;top:5px;width:12px;height:12px;border-radius:999px;background:var(--gold);box-shadow:0 0 0 2px var(--s1)}
.tl .qmark{position:absolute;top:12px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;color:var(--ink-3)}
.tl .qmark svg.i{width:14px;height:14px}
.tl .qmark .stem{width:1px;height:6px;background:var(--hair-2)}
.tl .ticks{position:relative;height:16px;margin-top:6px;font:600 12px/16px var(--display);font-variant-numeric:tabular-nums;color:var(--ink-3)}
.tl .ticks span{position:absolute;transform:translateX(-50%)}
.tl .ticks span:first-child{transform:none}
.tl .ticks span:last-child{transform:translateX(-100%)}
.tl .ticks .on{color:var(--gold-text)}
.transport{display:flex;align-items:center;flex-wrap:wrap;gap:6px;row-gap:10px;margin-top:14px}
.transport .tcbig{font:600 17px/1 var(--display);font-variant-numeric:tabular-nums;margin-left:10px;white-space:nowrap;color:var(--ink);letter-spacing:-.005em}
.transport .tcbig span{color:var(--ink-3);font-weight:500}
.transport .rep{font:500 12px/16px var(--ui);color:var(--ink-3);margin-left:8px;white-space:nowrap}
.transport .seg{margin-left:auto}
.honest{display:flex;align-items:center;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid var(--hair);font:500 12px/16px var(--ui);color:var(--ink-3);letter-spacing:.01em;flex-wrap:wrap}
.honest .sp{flex:1}
@media (max-width:760px){
  .split .tl{margin-top:4px;padding:0 var(--gutter)}
  .tl .lane{height:46px}.tl .track{top:26px}.tl .ph{top:20px}.tl .ph::after{box-shadow:0 0 0 2px var(--page)}
  .tl .ticks{margin-top:2px}
  .split .transport{padding:0 var(--gutter) 10px;margin-top:8px;gap:2px}
  .transport .tcbig{font-size:14px;margin-left:6px}
  .transport .seg button{padding:0 7px}
  .transport .rep{display:none}
  .split .honest{margin:4px var(--gutter) 0;padding:12px 0 0;border-top:0;flex-direction:column;align-items:flex-start;gap:8px}
}

/* ═════════ Cue card (replaces a chat bubble) ═════════ */
.cuecard{background:var(--s3);border-radius:var(--r-card);padding:16px;box-shadow:0 1px 0 rgba(0,0,0,.18),0 0 0 1px var(--edge);transform-origin:50% 0}
.cuecard .head{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap}
.cuecard .head .av{width:32px;height:32px}
.cuecard .head .who{flex:1;min-width:130px;display:flex;flex-direction:column;font:600 13px/18px var(--ui)}
.cuecard .head .who span{font:500 12px/16px var(--ui);color:var(--ink-3);font-variant-numeric:tabular-nums}
.cuecard .cue{margin-top:14px;font:500 17px/26px var(--ui);letter-spacing:-.003em;color:var(--ink)}
.cuecard .pull{margin-top:6px;font:500 13px/18px var(--ui);color:var(--ink-2)}
.cuecard .work{margin-top:14px;font:500 13px/18px var(--ui);color:var(--ink-2)}
.cuecard .work b{color:var(--ink);font-weight:600}
.cuecard .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cuecard.slide-in{animation:sx-rise 240ms var(--ease-out) both}
.cuecard.compact{padding:12px 14px}
.cuecard.compact .cue{margin-top:8px;font-size:15px;line-height:22px}
/* voice note */
.voice-wrap{margin-top:14px}
.voice{display:flex;align-items:center;gap:10px;height:44px;padding:0 12px 0 6px;border-radius:var(--r-card);background:var(--s2)}
.voice .pb{width:32px;height:32px;border-radius:999px;background:var(--btn);color:var(--btn-ink);display:grid;place-items:center;flex:none}
.voice .pb svg{width:12px;height:12px}
.voice .wave{display:flex;align-items:center;gap:2px;flex:1;height:22px;min-width:0;overflow:hidden}
.voice .wave i{width:2px;flex:none;border-radius:1px;background:var(--ink-3)}
.voice .wave i.on{background:var(--ink)}
.voice .tc{font-size:13px;color:var(--ink-2)}
.transcript{margin-top:8px;font:400 13px/20px var(--ui);color:var(--ink-2)}
.transcript .tc{color:var(--ink);font-size:12px}
/* member's question / thread message */
.msg{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px}
.msg .who{font:600 13px/18px var(--ui);display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.msg .who span{font-weight:500;color:var(--ink-3);font-size:12px;font-variant-numeric:tabular-nums}
.msg .q{margin-top:2px;font:400 14px/22px var(--ui);color:var(--ink-2)}
.msg .q .tc{color:var(--ink);font-size:13px}
.msg.mine .q{color:var(--ink)}

/* ═════════ Allowance meter (replaces a stat tile) ═════════ */
.allow{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.allow.ruled{padding-top:16px;border-top:1px solid var(--hair)}
.meter{display:inline-flex;gap:4px;flex:none}
.meter i{width:20px;height:6px;border-radius:3px;background:var(--inset);box-shadow:inset 0 0 0 1px var(--hair-2)}
.meter i.left{background:var(--ink);box-shadow:none}
.meter.unlimited i{width:12px}
.allow-t{font:500 13px/18px var(--ui);color:var(--ink-2)}
.allow-t b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.allow-t small{display:block;font-size:12px;line-height:16px;color:var(--ink-3)}
.allow-t a{color:var(--ink-2);text-underline-offset:3px;text-decoration-color:var(--hair-2)}

/* ═════════ Notice: "Sam's answer is in" ═════════ */
.notice{display:flex;align-items:center;gap:12px;padding:10px 10px 10px 12px;border-radius:var(--r-card);background:var(--s3);box-shadow:0 0 0 1px var(--edge);text-decoration:none;color:var(--ink)}
.notice .av{width:32px;height:32px}
.notice p{flex:1;min-width:0;font:500 13px/18px var(--ui);color:var(--ink-2)}
.notice p b{display:block;color:var(--ink);font-weight:600}
.notice .chip-cue{flex:none}
@media (max-width:480px){.notice .chip-cue{display:none}}

/* ═════════ KB set row: prev · kg stepper chips · reps · ✓ ═════════ */
.sets{display:flex;flex-direction:column;background:var(--s1);border-radius:var(--r-panel);box-shadow:var(--panel-shadow);overflow:hidden}
.sets-head{display:grid;grid-template-columns:52px 96px minmax(0,1fr) 128px 44px;gap:12px;padding:10px 14px;font:500 12px/16px var(--ui);color:var(--ink-3);box-shadow:inset 0 -1px 0 var(--hair)}
.setrow{display:grid;grid-template-columns:52px 96px minmax(0,1fr) 128px 44px;gap:12px;align-items:center;min-height:60px;padding:8px 14px;border-top:1px solid var(--hair);transition:background-color var(--t-fast)}
.sets-head + .setrow{border-top:0}
.setrow .n{font:600 15px/1 var(--display);font-variant-numeric:tabular-nums;color:var(--ink-2)}
.setrow .n small{display:block;font:500 11px/14px var(--ui);color:var(--ink-3);margin-top:3px}
.setrow .prev{font:500 13px/18px var(--ui);color:var(--ink-3);font-variant-numeric:tabular-nums}
.setrow .prev b{font:600 13px/18px var(--display);color:var(--ink-2)}
.kgs{display:flex;gap:4px;flex-wrap:wrap}
.kg{height:32px;min-width:44px;padding:0 8px;border-radius:6px;font:600 13px/1 var(--display);font-variant-numeric:tabular-nums;color:var(--ink-2);background:var(--inset);display:inline-flex;align-items:center;justify-content:center;gap:2px}
.kg small{font:500 10px/1 var(--ui);opacity:.75}
.kg[aria-pressed="true"]{background:var(--btn);color:var(--btn-ink)}
.kg:active{transform:scale(var(--press))}
.setrow .stepper{height:36px}
.setrow .stepper button{width:30px;height:30px}
.done-btn{width:40px;height:40px;border-radius:999px;display:grid;place-items:center;color:var(--ink-3);box-shadow:inset 0 0 0 1.5px var(--hair-2);transition:background-color var(--t-fast),transform var(--t-fast)}
.done-btn svg.i{width:18px;height:18px;stroke-width:1.8}
.done-btn:active{transform:scale(var(--press))}
.done-btn[aria-pressed="true"]{background:var(--ok);color:var(--page);box-shadow:none}
.setrow.current{background:var(--s2)}
.setrow.done .n,.setrow.done .kgs,.setrow.done .stepper{opacity:.62}
.setrow .film{display:inline-flex;align-items:center;gap:5px;font:600 11px/14px var(--ui);color:var(--ink-2);margin-top:4px}
.setrow .film svg.i{width:12px;height:12px}
@media (hover:hover){.kg:not([aria-pressed="true"]):hover{background:var(--s3);color:var(--ink)}.done-btn:not([aria-pressed="true"]):hover{background:var(--s3);color:var(--ink)}}
@media (max-width:760px){
  .sets-head{display:none}
  .setrow{grid-template-columns:44px minmax(0,1fr) 44px;grid-template-areas:"n prev ok" "kg kg kg" "reps reps reps";row-gap:10px;padding:12px 14px}
  .setrow .n{grid-area:n}.setrow .prev{grid-area:prev}.setrow .kgs{grid-area:kg}.setrow .stepper{grid-area:reps;justify-self:start}.setrow .done-btn{grid-area:ok}
}

/* ═════════ Round timer readout (Muay Thai) ═════════ */
.timer{position:relative;display:flex;flex-direction:column;gap:14px;padding:24px;border-radius:var(--r-panel);background:var(--s1);box-shadow:var(--panel-shadow)}
.timer .phase{display:flex;align-items:center;gap:10px;font:600 13px/18px var(--ui);color:var(--ink-2)}
.timer .phase .chip{height:24px}
.timer .clock{font:600 96px/1 var(--display);font-stretch:100%;font-variant-numeric:tabular-nums;letter-spacing:-.02em;color:var(--ink)}
.timer .clock small{font-size:.36em;color:var(--ink-3);font-weight:500;letter-spacing:0;margin-left:10px}
.timer .rounds{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}
.timer .rounds i{height:6px;border-radius:3px;background:var(--inset);box-shadow:inset 0 0 0 1px var(--hair-2);position:relative;overflow:hidden}
.timer .rounds i.done{background:var(--ink);box-shadow:none}
.timer .rounds i.now{box-shadow:none;background:var(--inset)}
.timer .rounds i.now::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--p,40%);background:var(--ink-2)}
.timer .tmeta{display:flex;justify-content:space-between;gap:12px;font:500 12px/16px var(--ui);color:var(--ink-3)}
.timer.rest .clock{color:var(--ink-2)}
.timer.warn .clock{color:var(--due)}
.timer .acts{display:flex;gap:8px;align-items:center}
@media (max-width:760px){.timer{padding:18px}.timer .clock{font-size:72px}}

/* ═════════ Week strip (Mon–Sun) ═════════ */
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.day{position:relative;display:flex;flex-direction:column;gap:3px;min-height:92px;padding:8px 6px 8px 8px;border-radius:var(--r-card);background:var(--s2);text-decoration:none;color:var(--ink);min-width:0;transition:background-color var(--t-fast)}
.day .dn{display:flex;align-items:baseline;justify-content:space-between;gap:4px;font:500 12px/16px var(--ui);color:var(--ink-3)}
.day .dn .tc{font-size:13px;color:var(--ink-2)}
.day .what{font:600 12px/15px var(--ui);color:var(--ink);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;hyphens:auto;-webkit-box-orient:vertical}
.day .state{margin-top:auto;display:flex;align-items:center;gap:3px;font:500 11px/14px var(--ui);color:var(--ink-3);white-space:nowrap;overflow:hidden}
.day .state svg.i{width:12px;height:12px}
.day.done .state{color:var(--ok)}
.day.rest{background:transparent;box-shadow:inset 0 0 0 1px var(--hair)}
.day.rest .what{color:var(--ink-3);font-weight:500}
.day.today{background:var(--s3);box-shadow:inset 0 0 0 1.5px var(--ink)}
.day.today .dn{color:var(--ink)}
.day.moved .what{text-decoration:line-through;text-decoration-color:var(--ink-3);color:var(--ink-3)}
.day.next{background:var(--s3);box-shadow:0 0 0 1px var(--edge)}
@media (hover:hover){a.day:hover{background:var(--s3)}}
@media (max-width:760px){
  .week{gap:3px}
  .day{min-height:68px;padding:6px 5px 7px;align-items:center;text-align:center}
  .day .dn{flex-direction:column;align-items:center;gap:0}
  .day .what{display:none}
  .day .state{margin-top:auto;justify-content:center}
  .day .state .lbl{display:none}
}

/* ═════════ Programme progress: one pill per session ═════════ */
.progress{display:flex;flex-direction:column;gap:10px}
.progress .bar{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px}
.progress .bar i{height:6px;border-radius:3px;background:var(--inset);box-shadow:inset 0 0 0 1px var(--hair-2)}
.progress .bar i.done{background:var(--ink);box-shadow:none}
.progress .bar i.wk{background:var(--s3);box-shadow:inset 0 0 0 1px var(--ink-3)}
.progress .bar i.gap{margin-left:5px}
.progress .lbl{display:flex;justify-content:space-between;gap:12px;font:500 13px/18px var(--ui);color:var(--ink-2)}
.progress .lbl b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}

/* ═════════ Session block list ═════════ */
.blocks{display:flex;flex-direction:column}
.block{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;padding:14px 0;border-top:1px solid var(--hair)}
.block:first-child{border-top:0;padding-top:0}
.block .key{width:24px;height:24px;border-radius:6px;display:grid;place-items:center;background:var(--inset);font:600 12px/1 var(--display);color:var(--ink-2)}
.block h4{font:600 14px/20px var(--ui)}
.block h4 span{font-weight:500;color:var(--ink-3)}
.mv{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:6px;font:500 13px/18px var(--ui);color:var(--ink-2)}
.mv .rx{font:600 13px/18px var(--display);font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.mv .rx small{font:500 12px/16px var(--ui);color:var(--ink-3)}

/* thumbnail (dark, small stage) */
.thumb{position:relative;border-radius:6px;overflow:hidden;aspect-ratio:16/9;background:var(--stage-bg)}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb .tc{position:absolute;left:6px;bottom:6px;height:20px;padding:0 6px;border-radius:5px;display:inline-flex;align-items:center;background:var(--stage-hud);color:#ECE8E0;font-size:11px}

/* ═════════ Minimal timeline (rows) ═════════ */
.minitl{position:relative;height:22px}
.minitl .tr{position:absolute;left:0;right:0;top:14px;height:4px;border-radius:2px;background:var(--track)}
.minitl .p{position:absolute;top:0;transform:translateX(-50%);color:var(--gold)}
.minitl .p svg.rb{width:12px;height:13px;display:block}

/* ═════════ Brand mark ═════════ */
.logo{display:block;width:96px;height:auto;color:var(--mark)}
.xmark{display:block;width:20px;height:20px}
