/* Sensei redesign v3. Loaded by index.html, active only for signed-in trainers
   on the app page while body.v3-on is set. Everything is scoped under #v3. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,300..800&display=swap');

/* ── Neutralise the classic app's global element and .btn rules inside #v3 ── */
#v3 label { font-size: inherit; font-weight: inherit; color: inherit; }
#v3 input, #v3 select, #v3 textarea { width: auto; padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; color: inherit; transition: none; }
#v3 select { appearance: auto; background-image: none; padding-right: 0; }
#v3 .btn { width: auto; margin-top: 0; transform: none; }
#v3 table { border-spacing: 0; }

#v3 {--mineral: #2C3440;
  --steel: #6E86A6;
  --fog: #E7ECF1;
  --paper: #F5F3EE;
  --torii: #C2524A;
  --squash: #D4864A;

  --ink: var(--mineral);
  --ink-2: #566579;
  --ink-3: #7A8698;
  --torii-text: #A8443C;
  --ice: #FFFFFF;
  --ice-line: rgba(110,134,166,0.28);
  --rule: rgba(44,52,64,0.12);
  --rule-strong: rgba(44,52,64,0.22);
  --rail-ink: #C9D2DD;
  --rail-ink-2: #8E9BAD;
  --white: #FFFFFF;
  --good: #3A7D44;

  --face: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-12: 0.75rem; --fs-13: 0.8125rem; --fs-14: 0.875rem; --fs-16: 1rem; --fs-18: 1.125rem;
  --fs-22: 1.375rem; --fs-28: 1.75rem; --fs-40: 2.5rem; --fs-56: 3.5rem;
  color-scheme: light;}
#v3, #v3 * {box-sizing: border-box;}
#v3 {background: var(--paper);}
#v3 {margin: 0; color: var(--ink); font-family: var(--face); font-size: var(--fs-14); line-height: 1.5;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;}
#v3 button {font: inherit; color: inherit;}
#v3 a {color: inherit;}
#v3 :focus-visible {outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 4px;}
@media (prefers-reduced-motion: reduce) {
#v3, #v3 * {transition: none !important; animation: none !important;}
 }
#v3 .num {font-variant-numeric: tabular-nums;}
#v3 .score {font-stretch: 75%; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1;}
#v3 .mockbar {display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; justify-content: space-between;
  padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid var(--rule); background: var(--white); color: var(--ink-2); font-size: var(--fs-13);}
#v3 .mockbar strong {color: var(--ink); font-weight: 600;}
#v3 .seg {display: inline-flex; gap: 2px; background: var(--fog); border-radius: 8px; padding: 2px;}
#v3 .seg a {text-decoration: none; padding: 4px 12px; border-radius: 6px; color: var(--ink-2); font-weight: 500;}
#v3 .seg a[aria-current="page"] {background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--rule);}
#v3 .app {display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh;}
#v3 .rail {background: var(--mineral); color: var(--rail-ink); display: flex; flex-direction: column;
  padding: 20px 12px 16px; gap: 4px; position: sticky; top: 0; height: 100vh; align-self: start;}
#v3 .brand {display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; color: var(--fog);}
#v3 .brand svg {flex: none;}
#v3 .brand span {font-size: var(--fs-22); font-weight: 600; letter-spacing: -0.03em; line-height: 1;}
#v3 .rail-group {display: flex; flex-direction: column; gap: 1px;}
#v3 .rail-item {display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px;
  color: var(--rail-ink-2); text-decoration: none; font-size: var(--fs-14); font-weight: 500;}
#v3 .rail-item svg {flex: none; stroke: currentColor;}
#v3 .rail-item:hover {background: rgba(231,236,241,0.06); color: var(--fog);}
#v3 .rail-item[aria-current="page"] {color: var(--fog); background: rgba(231,236,241,0.08);}
#v3 .rail-item[aria-current="page"]::before {content: ""; width: 3px; height: 16px; background: var(--torii); border-radius: 2px; margin-left: -10px; margin-right: 7px;}
#v3 .rail-sub {display: flex; flex-direction: column; padding: 2px 0 8px 36px; gap: 1px;}
#v3 .rail-sub a {color: var(--rail-ink-2); text-decoration: none; font-size: var(--fs-13); padding: 4px 8px; border-radius: 6px;}
#v3 .rail-sub a:hover {color: var(--fog);}
#v3 .rail-sub a[aria-current="page"] {color: var(--fog); font-weight: 600;}
#v3 .rail-foot {margin-top: auto; border-top: 1px solid rgba(231,236,241,0.10); padding-top: 12px; display: flex; flex-direction: column; gap: 10px;}
#v3 .mode {display: grid; grid-template-columns: 1fr 1fr; background: rgba(231,236,241,0.06); border-radius: 8px; padding: 3px; font-size: var(--fs-13);}
#v3 .mode span {text-align: center; padding: 5px 0; border-radius: 6px; color: var(--rail-ink-2);}
#v3 .mode span.on {background: var(--fog); color: var(--mineral); font-weight: 600;}
#v3 .ask-sen {display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 1px solid rgba(231,236,241,0.14);
  color: var(--fog); text-decoration: none; font-size: var(--fs-14);}
/* Ask Sen is a button: give it the rail's own surface instead of the browser's light grey, which hid its white label */
#v3 .ask-sen {appearance: none; -webkit-appearance: none; background: rgba(231,236,241,0.06); color: var(--fog); font: inherit; text-align: left; width: 100%; cursor: pointer;}
#v3 .ask-sen:hover {background: rgba(231,236,241,0.1);}
#v3 button.rail-item {appearance: none; -webkit-appearance: none; background: none; border: 0; font: inherit; width: 100%; text-align: left; cursor: pointer;}
#v3 .ask-sen small {color: var(--rail-ink-2); font-size: var(--fs-12); display: block; line-height: 1.3;}
#v3 .main {min-width: 0; padding: 28px 40px 72px;}
#v3 .page {max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px;}
#v3 .page[hidden] {display: none !important;}
#v3 .mtop, #v3 .mtabs {display: none;}
#v3 .head {display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;}
#v3 .date {color: var(--ink-2); font-size: var(--fs-14); margin: 0 0 4px;}
#v3 h1 {font-size: var(--fs-28); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; text-wrap: balance;}
#v3 h2 {font-size: var(--fs-16); font-weight: 600; letter-spacing: -0.005em; margin: 0;}
#v3 .sub {color: var(--ink-2); font-size: var(--fs-13); margin: 2px 0 0;}
#v3 .sec-head {display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap;}
#v3 .btn {display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--rule-strong); background: var(--white); color: var(--ink); font-size: var(--fs-14); font-weight: 500;
  text-decoration: none; cursor: pointer; white-space: nowrap;}
#v3 .btn:hover {border-color: rgba(44,52,64,0.36);}
#v3 .btn.primary {background: var(--torii); border-color: var(--torii); color: var(--white); font-weight: 600;}
#v3 .btn.primary:hover {background: #A8443C; border-color: #A8443C;}
#v3 .btn svg {stroke: currentColor;}
#v3 .link {color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; font-size: var(--fs-13); font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer;}
#v3 .link:hover {text-decoration-color: var(--ink);}
#v3 .ice {background: var(--ice); border-radius: 12px; padding: 20px 22px 14px; position: relative;}
#v3 .chart {width: 100%; display: block;}
#v3 .chart text {font-family: var(--face); font-size: 11px; fill: var(--ink-2);}
#v3 .read {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--rule);}
#v3 .read p {margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500;
  max-width: 30ch; text-wrap: balance;}
#v3 .read p b {font-weight: 650;}
#v3 .signed {display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--fs-13); margin-top: 14px;}
#v3 .figures {display: flex; gap: 28px;}
#v3 .fig {min-width: 84px;}
#v3 .fig .score {font-size: var(--fs-40); display: block;}
#v3 .fig .lbl {color: var(--ink-2); font-size: var(--fs-13); display: block; margin-top: 6px;}
#v3 .fig .chg {font-size: var(--fs-12); color: var(--good); font-weight: 600;}
/* A drop is not good news: do not paint it green */
#v3 .fig .chg.down {color: var(--ink-3);}
#v3 .av svg {display: block; margin: auto;}
/* Feedback lives in the side rail on a laptop and at the foot of the page on a phone, not in a floating bubble over the tabs */
body.v3-on #feedbackBtn {display: none !important;}
#v3 .v3-foot {display: none;}
#v3 .today-grid {display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 36px; align-items: start;}
#v3 .legend {display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: var(--fs-12);}
#v3 .legend i {display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 6px; border-radius: 1px;}
#v3 .legend i.bar {width: 8px; height: 8px; border-radius: 2px;}
#v3 .due {list-style: none; margin: 0; padding: 0;}
#v3 .due li {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--rule);}
#v3 .due li:first-child {border-top: 0; padding-top: 2px;}
#v3 .due .who {font-weight: 600; font-size: var(--fs-14);}
#v3 .due .who small {color: var(--ink-2); font-weight: 400; font-size: var(--fs-13); margin-left: 6px;}
#v3 .due .days {text-align: right; font-size: var(--fs-13); color: var(--ink-2);}
#v3 .due .days b {color: var(--ink); font-weight: 600;}
#v3 .due .days b.late {color: var(--torii-text);}
#v3 .cad {grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;}
#v3 .cad .track {position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--fog); overflow: hidden;}
#v3 .cad .on {position: absolute; inset: 0 auto 0 0; background: var(--steel); border-radius: 3px;}
#v3 .cad .over {position: absolute; top: 0; bottom: 0; background: var(--torii); border-radius: 0 3px 3px 0;}
#v3 .cad .usual {position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--mineral);}
#v3 .cad .log {font-size: var(--fs-12);}
#v3 .board {width: 100%; border-collapse: collapse;}
#v3 .board th {text-align: left; font-size: var(--fs-12); color: var(--ink-2); font-weight: 500; padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule-strong); white-space: nowrap;}
#v3 .board td {padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: middle;}
#v3 .board tr:hover td {background: rgba(231,236,241,0.5);}
#v3 .board .rank {width: 28px; color: var(--ink-3); font-size: var(--fs-13);}
#v3 .board .name a {font-weight: 600; text-decoration: none;}
#v3 .board .name a:hover {text-decoration: underline; text-underline-offset: 3px;}
#v3 .board .name small {display: block; color: var(--ink-2); font-size: var(--fs-12); font-weight: 400;}
#v3 .board .r {text-align: right;}
#v3 .strip {display: grid; grid-template-columns: repeat(8, 14px); gap: 3px;}
#v3 .strip i {width: 14px; height: 14px; border-radius: 3px; display: block;}
#v3 .strip i.top {box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--torii);}
#v3 .gain {font-weight: 600; font-size: var(--fs-14);}
#v3 .gain.up {color: var(--good);}
#v3 .gain.flat {color: var(--ink-2);}
#v3 .when {color: var(--ink-2); font-size: var(--fs-13); white-space: nowrap;}
#v3 .board-key {color: var(--ink-2); font-size: var(--fs-12); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;}
#v3 .ramp {display: inline-flex; gap: 2px;}
#v3 .ramp i {width: 10px; height: 10px; border-radius: 2px; display: block;}
/* Tables fit their column at every width. Nothing in the app scrolls sideways. */
#v3 .scroll-x {min-width: 0; max-width: 100%;}
/* Long names and headlines wrap inside their column at every width */
#v3 .who-head > div, #v3 .who-head h1, #v3 .read > div, #v3 .lede, #v3 .level .line, #v3 .due .who, #v3 .top .nm, #v3 .rrow .nm {min-width: 0; overflow-wrap: break-word;}
#v3 .week {display: grid; grid-template-columns: 92px minmax(0, 1fr);}
#v3 .week .day {color: var(--ink-2); font-size: var(--fs-13); padding: 12px 0; border-top: 1px solid var(--rule);}
#v3 .week .day b {display: block; color: var(--ink); font-weight: 600; font-size: var(--fs-14);}
#v3 .week .items {border-top: 1px solid var(--rule); padding: 4px 0;}
#v3 .week .item {display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; align-items: baseline;}
#v3 .week .item .n {font-weight: 600;}
#v3 .week .item .d {color: var(--ink-2); min-width: 0;}
#v3 .week .item .m {font-size: var(--fs-13); white-space: nowrap;}
#v3 .back {color: var(--ink-2); text-decoration: none; font-size: var(--fs-13); display: inline-flex; gap: 6px; align-items: center;}
#v3 .back:hover {color: var(--ink);}
#v3 .who-head {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--rule);}
#v3 .who-head h1 {font-size: var(--fs-40); letter-spacing: -0.03em;}
#v3 .who-head .meta {color: var(--ink-2); font-size: var(--fs-14); margin-top: 8px;}
#v3 .who-actions {display: flex; gap: 8px; flex-wrap: wrap;}
#v3 .overall {display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; align-items: center;}
#v3 .overall .big {font-size: 5.5rem;}
#v3 .overall .big small {font-size: var(--fs-18); color: var(--ink-2); font-stretch: 100%; font-weight: 500; margin-left: 4px;}
#v3 .overall .says {font-size: var(--fs-18); line-height: 1.4; max-width: 46ch; margin: 0;}
#v3 .overall .says b {color: var(--good); font-weight: 650;}
#v3 .dive-grid {display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start;}
#v3 .shifts {display: flex; flex-direction: column;}
#v3 .shift {display: grid; grid-template-columns: 112px minmax(0, 1fr) 48px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule);}
#v3 .shift:first-child {border-top: 0;}
#v3 .shift .k {font-size: var(--fs-14); font-weight: 500;}
#v3 .shift .v {text-align: right; font-weight: 600;}
#v3 .shift .v.up {color: var(--good);}
#v3 .shift .v.flat {color: var(--ink-3);}
#v3 .dumb {position: relative; height: 22px;}
#v3 .dumb .ticks {position: absolute; inset: 10px 0 auto 0; height: 2px; background: var(--fog); border-radius: 1px;}
#v3 .dumb .seg-l {position: absolute; top: 10px; height: 2px; background: var(--torii); opacity: 0.5;}
#v3 .dumb .from, #v3 .dumb .to {position: absolute; top: 5px; width: 12px; height: 12px; border-radius: 50%; margin-left: -6px;}
#v3 .dumb .from {background: var(--paper); box-shadow: inset 0 0 0 2px var(--steel);}
#v3 .dumb .to {background: var(--torii);}
#v3 .dumb .avg {position: absolute; top: 2px; width: 2px; height: 18px; background: var(--mineral); margin-left: -1px; opacity: 0.55;}
#v3 .scale {display: grid; grid-template-columns: 112px minmax(0, 1fr) 48px; gap: 14px; font-size: var(--fs-12); color: var(--ink-3); padding-top: 6px;}
#v3 .scale .nums {display: flex; justify-content: space-between;}
#v3 .scale.for-brow {grid-template-columns: 112px minmax(0, 1fr) 36px 120px;}
#v3 .focus {border-left: 3px solid var(--torii); padding: 2px 0 2px 18px;}
#v3 .focus .q {font-size: var(--fs-22); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; margin: 8px 0 16px; text-wrap: balance;}
#v3 .focus ol {margin: 0 0 16px; padding: 0; list-style: none; counter-reset: d;}
#v3 .focus ol li {counter-increment: d; display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 7px 0; border-top: 1px solid var(--rule); font-size: var(--fs-14);}
#v3 .focus ol li::before {content: counter(d); color: var(--ink-3); font-variant-numeric: tabular-nums;}
#v3 .focus .why {color: var(--ink-2); font-size: var(--fs-13); margin: 0 0 14px;}
#v3 .log {display: flex; flex-direction: column;}
#v3 .entry {display: grid; grid-template-columns: 88px minmax(0, 1fr) 200px; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule);}
#v3 .entry .when b {display: block; color: var(--ink); font-weight: 600; font-size: var(--fs-14);}
#v3 .entry .what p {margin: 0 0 6px;}
#v3 .entry .drills {display: flex; flex-wrap: wrap; gap: 6px;}
#v3 .entry .drills span {font-size: var(--fs-12); color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 1px 9px;}
#v3 .entry .meas {display: grid; grid-template-columns: auto auto; gap: 2px 12px; font-size: var(--fs-13); align-content: start; justify-content: end;}
#v3 .entry .meas span {color: var(--ink-2);}
#v3 .entry .meas b {text-align: right; font-weight: 600; font-variant-numeric: tabular-nums;}
#v3 .minis {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;}
#v3 .mini {background: var(--ice); border-radius: 12px; padding: 14px 16px 10px;}
#v3 .mini .top {display: flex; justify-content: space-between; align-items: baseline; gap: 8px;}
#v3 .mini .top span {color: var(--ink-2); font-size: var(--fs-13);}
#v3 .mini .top .score {font-size: var(--fs-28);}
/* Breakpoints: the side rail is 232px wide, so content goes compact below 1132px (900 + rail).
   Below 1024px the rail gives way to the top bar and bottom tabs, so tablets held upright get the full width. */
@media (max-width: 1132px) {
#v3 .today-grid, #v3 .dive-grid {grid-template-columns: minmax(0, 1fr);}

}
@media (max-width: 1023px) {
#v3 .app {grid-template-columns: minmax(0, 1fr);}
#v3 .rail {display: none;}
#v3 .mtop {display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--mineral); color: var(--fog);
    padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));}
#v3 .mtop .brand {padding: 0;}
#v3 .mtop .brand span {font-size: var(--fs-18);}
#v3 .mtop .av {width: 30px; height: 30px; border-radius: 50%; background: var(--fog); color: var(--mineral); display: grid; place-items: center; font-size: var(--fs-12); font-weight: 600;}
#v3 .main {padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));}
#v3 .page {gap: 28px;}
#v3 .read {grid-template-columns: minmax(0, 1fr);}
#v3 .figures {gap: 0; justify-content: space-between;}
#v3 .fig .score {font-size: var(--fs-28);}
#v3 .head .btn.primary {display: none;}
#v3 .board .hide-s {display: none;}
#v3 .week {grid-template-columns: 64px minmax(0, 1fr);}
#v3 .week .item {grid-template-columns: minmax(0, 1fr) auto;}
#v3 .week .item .d {grid-column: 1 / -1; grid-row: 2;}
#v3 .who-head {grid-template-columns: minmax(0, 1fr);}
#v3 .who-head h1 {font-size: var(--fs-28);}
#v3 .who-actions .primary {display: none;}
#v3 .overall {grid-template-columns: minmax(0, 1fr);}
#v3 .overall .big {font-size: 4rem;}
#v3 .shift, #v3 .scale {grid-template-columns: 92px minmax(0, 1fr) 40px; gap: 10px;}
#v3 .entry {grid-template-columns: minmax(0, 1fr); gap: 8px;}
#v3 .entry .meas {justify-content: start;}
#v3 .minis {grid-template-columns: minmax(0, 1fr);}
#v3 .mtabs {display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--white); border-top: 1px solid var(--rule);
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));}
#v3 .mtabs a, #v3 .mtabs button:not(.fab) {display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--ink-3); text-decoration: none; padding: 4px 0;}
/* Sen is a button, not a link: strip the browser's grey button box so it matches the other tabs */
#v3 .mtabs button:not(.fab) {appearance: none; -webkit-appearance: none; background: none; border: 0; border-radius: 0; margin: 0; font-family: inherit; line-height: inherit; cursor: pointer;}
#v3 .mtabs a svg, #v3 .mtabs button:not(.fab) svg {stroke: currentColor;}
#v3 .mtabs a[aria-current="page"] {color: var(--ink); font-weight: 600;}
#v3 .mtabs .fab {align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 50%; background: var(--torii); color: var(--white); display: grid; place-items: center; margin-top: -18px; box-shadow: 0 2px 8px rgba(44,52,64,0.2);}
#v3 .mtabs .fab svg {stroke: var(--white);}

}
#v3 .pick {display: inline-flex; align-items: center; gap: 8px;}
#v3 .pick select, #v3 .field select, #v3 .field input, #v3 .field textarea, #v3 .search {font: inherit; font-size: var(--fs-14); color: var(--ink); background: var(--white);
  border: 1px solid var(--rule-strong); border-radius: 8px; height: 34px; padding: 0 10px;}
#v3 .pick select {min-width: 200px;}
#v3 .pick .step {height: 34px; width: 34px; display: grid; place-items: center; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--white); cursor: pointer; color: var(--ink); text-decoration: none;}
#v3 .rail-label {color: var(--rail-ink-2); font-size: var(--fs-12); padding: 16px 10px 6px;}
#v3 .controls {display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;}
#v3 .chips {display: inline-flex; flex-wrap: wrap; gap: 6px;}
#v3 .chip {font: inherit; font-size: var(--fs-13); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--white); color: var(--ink-2); cursor: pointer;}
#v3 .chip b {font-weight: 600; color: var(--ink); margin-left: 4px; font-variant-numeric: tabular-nums;}
#v3 .chip[aria-pressed="true"] {background: var(--mineral); border-color: var(--mineral); color: var(--fog);}
#v3 .chip[aria-pressed="true"] b {color: var(--white);}
#v3 .ctl-label {color: var(--ink-2); font-size: var(--fs-13); margin-right: 2px;}
#v3 .search {width: 240px; padding-left: 32px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23566579' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='4.6'/%3E%3Cpath d='M9.6 9.6l3 3'/%3E%3C/svg%3E") no-repeat 11px center;}
#v3 .toggle {display: inline-flex; background: var(--fog); border-radius: 8px; padding: 3px; gap: 2px;}
#v3 .toggle a {text-decoration: none; font-size: var(--fs-13); padding: 5px 12px; border-radius: 6px; color: var(--ink-2); font-weight: 500;}
#v3 .toggle a[aria-current="page"] {background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px var(--rule);}
#v3 .av {width: 34px; height: 34px; border-radius: 50%; background: var(--fog); color: var(--mineral); display: inline-grid; place-items: center; font-size: var(--fs-12); font-weight: 650; flex: none;}
#v3 .av.late {box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--torii);}
#v3 .lede {font-size: var(--fs-22); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; margin: 0; max-width: 40ch; text-wrap: balance;}
#v3 .lede b {font-weight: 650;}
#v3 .two {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start;}
#v3 .two-wide {display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start;}
#v3 .note {color: var(--ink-2); font-size: var(--fs-12); margin: 10px 0 0;}
#v3 .roster {display: flex; flex-direction: column;}
#v3 .rrow {display: grid; grid-template-columns: 34px minmax(150px, 1.2fr) 130px 128px 70px 64px minmax(120px, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit;}
#v3 .rrow:hover {background: rgba(231,236,241,0.5);}
#v3 .rrow.headrow {border-top: 0; padding-top: 0; color: var(--ink-2); font-size: var(--fs-12);}
#v3 .rrow.headrow:hover {background: none;}
#v3 .rrow .nm {font-weight: 600;}
#v3 .rrow .nm small {display: block; color: var(--ink-2); font-weight: 400; font-size: var(--fs-12);}
#v3 .rrow .st {font-size: var(--fs-13); color: var(--ink-2);}
#v3 .rrow .st b {font-weight: 600; color: var(--ink);}
#v3 .rrow .st b.late {color: var(--torii-text);}
#v3 .dot {display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px;}
#v3 .levels {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule);}
#v3 .level {padding: 16px 20px 16px 0;}
#v3 .level + .level {border-left: 1px solid var(--rule); padding-left: 20px;}
#v3 .level h3 {margin: 0; font-size: var(--fs-14); font-weight: 600;}
#v3 .level .line {display: flex; align-items: baseline; gap: 10px; margin-top: 6px;}
#v3 .level .line .score {font-size: var(--fs-40);}
#v3 .level .line span {color: var(--ink-2); font-size: var(--fs-13);}
#v3 .level .mini-scale {position: relative; height: 6px; background: var(--fog); border-radius: 3px; margin-top: 12px;}
#v3 .level .mini-scale i {position: absolute; top: 0; bottom: 0; left: 0; background: var(--torii); border-radius: 3px;}
#v3 .level .mini-scale u {position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--mineral); text-decoration: none;}
#v3 .level .cap {color: var(--ink-2); font-size: var(--fs-12); margin-top: 6px;}
#v3 .heat {width: 100%; border-collapse: separate; border-spacing: 3px;}
#v3 .heat th {font-size: var(--fs-12); color: var(--ink-2); font-weight: 500; text-align: center; padding: 0 2px 6px; white-space: nowrap;}
#v3 .heat th:first-child {text-align: left;}
#v3 .heat th.best {color: var(--ink); font-weight: 650;}
#v3 .heat td {height: 34px; text-align: center; border-radius: 4px; font-size: var(--fs-13); font-variant-numeric: tabular-nums; font-weight: 600;}
#v3 .heat td.who {text-align: left; background: none; font-weight: 600; white-space: nowrap; padding-right: 10px;}
#v3 .heat td.who small {color: var(--ink-2); font-weight: 400; margin-left: 6px;}
#v3 .heat td.avgc {background: none; color: var(--ink); text-align: right; padding-left: 8px;}
#v3 .heat tr.foot td {background: none; color: var(--ink-2); font-weight: 500; height: 26px; border-top: 1px solid var(--rule-strong);}
#v3 .heat-legend {display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--fs-12); margin-top: 10px;}
#v3 .heat-legend .r {display: inline-flex; gap: 2px;}
#v3 .heat-legend .r i {width: 18px; height: 10px; border-radius: 2px; display: block;}
#v3 .pos-rows .shift {grid-template-columns: 112px minmax(0, 1fr) 72px;}
#v3 .pos-rows .v {font-size: var(--fs-13); color: var(--ink-2); font-weight: 500;}
#v3 .dumb .d1, #v3 .dumb .d2 {position: absolute; top: 5px; width: 12px; height: 12px; border-radius: 50%; margin-left: -6px;}
#v3 .dumb .d1 {background: var(--torii);}
#v3 .dumb .d2 {background: var(--steel);}
#v3 .dumb .lnk {position: absolute; top: 10px; height: 2px; background: var(--rule-strong);}
#v3 .cohort {display: flex; flex-direction: column; gap: 14px;}
#v3 .cohort .row {display: grid; grid-template-columns: 150px minmax(0, 1fr) 52px; gap: 12px; align-items: center; font-size: var(--fs-14);}
#v3 .cohort .bar {height: 12px; border-radius: 3px; background: var(--fog); position: relative; overflow: hidden;}
#v3 .cohort .bar i {position: absolute; inset: 0 auto 0 0; border-radius: 3px;}
#v3 .cohort .v {text-align: right; font-weight: 600; font-variant-numeric: tabular-nums;}
#v3 .top {list-style: none; margin: 0; padding: 0; counter-reset: t;}
#v3 .top li {display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule);}
#v3 .top li:first-child {border-top: 0;}
#v3 .top li::before {counter-increment: t; content: counter(t); color: var(--ink-3); font-size: var(--fs-13); font-variant-numeric: tabular-nums;}
#v3 .top .nm {font-weight: 600;}
#v3 .top .nm small {display: block; color: var(--ink-2); font-weight: 400; font-size: var(--fs-12);}
#v3 .top .rt {text-align: right;}
#v3 .top .rt .score {font-size: var(--fs-22); display: block;}
#v3 .top .rt small {color: var(--good); font-weight: 600; font-size: var(--fs-12);}
#v3 .bench {display: flex; flex-direction: column;}
#v3 .brow {display: grid; grid-template-columns: 112px minmax(0, 1fr) 36px 120px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule);}
#v3 .brow:first-child {border-top: 0;}
#v3 .brow .k {font-weight: 500;}
#v3 .brow .v {text-align: right; font-weight: 650; font-variant-numeric: tabular-nums;}
#v3 .brow .s {font-size: var(--fs-13); color: var(--ink-2);}
#v3 .brow .s.above {color: var(--good); font-weight: 600;}
#v3 .brow .s.below {color: var(--torii-text); font-weight: 600;}
#v3 .range {position: relative; height: 22px;}
#v3 .range .axis {position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--fog);}
#v3 .range .band {position: absolute; top: 4px; height: 14px; background: rgba(110,134,166,0.25); border-radius: 3px;}
#v3 .range .med {position: absolute; top: 1px; width: 2px; height: 20px; background: var(--steel); margin-left: -1px;}
#v3 .range .me {position: absolute; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--torii); margin-left: -7px; box-shadow: 0 0 0 2px var(--paper);}
#v3 .strips {display: flex; flex-direction: column; gap: 4px;}
#v3 .lvlrow {display: grid; grid-template-columns: 112px minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule);}
#v3 .lvlrow:first-child {border-top: 0;}
#v3 .lvlrow .k {font-weight: 600;}
#v3 .lvlrow .k small {display: block; color: var(--ink-2); font-weight: 400; font-size: var(--fs-12);}
#v3 .lvlrow .s {font-size: var(--fs-13); color: var(--ink-2); text-align: right;}
#v3 .lvlrow .s b {color: var(--ink); font-weight: 600;}
#v3 .beeswarm {position: relative; height: 34px;}
#v3 .beeswarm .axis {position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--fog);}
#v3 .beeswarm .band {position: absolute; top: 6px; height: 22px; background: rgba(110,134,166,0.22); border-radius: 4px;}
#v3 .beeswarm .med {position: absolute; top: 2px; width: 2px; height: 30px; background: var(--steel); margin-left: -1px;}
#v3 .beeswarm .p {position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--torii); margin-left: -6px; box-shadow: 0 0 0 1.5px var(--paper);}
#v3 .eff {display: flex; flex-direction: column;}
#v3 .erow {display: grid; grid-template-columns: 190px minmax(0, 1fr) 64px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule);}
#v3 .erow:first-child {border-top: 0;}
#v3 .erow .k {font-weight: 600;}
#v3 .erow .k small {display: block; color: var(--ink-2); font-weight: 400; font-size: var(--fs-12);}
#v3 .erow .v {text-align: right; font-weight: 650; color: var(--good); font-variant-numeric: tabular-nums;}
#v3 .erow.tally {grid-template-columns: minmax(0, 1fr) 120px 48px;}
#v3 .erow.tally .v {color: var(--ink);}
#v3 .words p + p {margin-top: 8px;}
#v3 .msub {display: none;}
#v3 .etrack {position: relative; height: 22px;}
#v3 .etrack .fill {position: absolute; top: 4px; height: 14px; left: 0; background: var(--torii); border-radius: 0 3px 3px 0;}
#v3 .etrack .spread {position: absolute; top: 10px; height: 2px; background: var(--mineral); opacity: 0.5;}
#v3 .etrack .spread::before, #v3 .etrack .spread::after {content: ""; position: absolute; top: -4px; width: 2px; height: 10px; background: var(--mineral);}
#v3 .etrack .spread::before {left: 0;}
#v3 .etrack .spread::after {right: 0;}
#v3 .ptable {width: 100%; border-collapse: collapse;}
#v3 .ptable th {text-align: left; font-size: var(--fs-12); color: var(--ink-2); font-weight: 500; padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule-strong); white-space: nowrap;}
#v3 .ptable td {padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; font-variant-numeric: tabular-nums;}
#v3 .ptable td:first-child {font-weight: 600;}
#v3 .ptable .r {text-align: right;}
#v3 .stack {display: flex; height: 10px; border-radius: 3px; overflow: hidden; min-width: 160px; background: var(--fog);}
#v3 .stack i {display: block; height: 100%;}
#v3 .stack i + i {margin-left: 2px;}
#v3 .keyrow {display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: var(--fs-12);}
#v3 .keyrow span::before {content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--c);}
#v3 .multiples {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;}
#v3 .multiples .mini .top {display: flex; justify-content: space-between; align-items: baseline; gap: 8px;}
#v3 .multiples .mini .top b {font-size: var(--fs-13); font-weight: 600;}
#v3 .multiples .mini .top span {font-size: var(--fs-12); color: var(--ink-2);}
#v3 .goal {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end;}
#v3 .goal .track {grid-column: 1 / -1; position: relative; height: 16px; background: var(--fog); border-radius: 4px;}
#v3 .goal .track i {position: absolute; inset: 0 auto 0 0; background: var(--torii); border-radius: 4px;}
#v3 .goal .track u {position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--mineral); text-decoration: none;}
#v3 .goal .ends {grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--ink-2); font-size: var(--fs-12);}
#v3 .goal h3 {margin: 0; font-size: var(--fs-18); font-weight: 600;}
#v3 .goal p {margin: 4px 0 0; color: var(--ink-2);}
#v3 .goal .score {font-size: var(--fs-40);}
#v3 .vs {display: flex; flex-direction: column;}
#v3 .vsrow {display: grid; grid-template-columns: 112px minmax(0, 1fr) 70px; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule);}
#v3 .vsrow:first-child {border-top: 0;}
#v3 .vsrow .v {text-align: right; font-size: var(--fs-13); color: var(--ink-2);}
#v3 .vsrow .v b {color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums;}
#v3 .vbar {position: relative; height: 12px; background: var(--fog); border-radius: 3px;}
#v3 .vbar i {position: absolute; inset: 0 auto 0 0; background: var(--mineral); border-radius: 3px;}
#v3 .vbar i.hi {background: var(--torii);}
#v3 .vbar u {position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--steel); text-decoration: none;}
#v3 .cal {display: grid; grid-template-columns: 40px repeat(7, 18px); gap: 4px; align-items: center; font-size: var(--fs-12); color: var(--ink-2);}
#v3 .cal i {width: 18px; height: 18px; border-radius: 4px; background: var(--fog); display: block;}
#v3 .cal i.on {background: var(--torii);}
#v3 .cal i.fut {background: none; box-shadow: inset 0 0 0 1px var(--rule);}
#v3 .cal-wrap {display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap;}
#v3 .cal-side .score {font-size: var(--fs-40); display: block;}
#v3 .cal-side span {color: var(--ink-2); font-size: var(--fs-13);}
#v3 .month {display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 420px;}
#v3 .month .dn {font-size: var(--fs-12); color: var(--ink-3); text-align: center;}
#v3 .month .d {aspect-ratio: 1; border-radius: 6px; background: var(--fog); display: grid; place-items: center; font-size: var(--fs-12); color: var(--ink-2); font-variant-numeric: tabular-nums;}
#v3 .month .d.on {background: var(--torii); color: var(--white); font-weight: 650;}
#v3 .month .d.x {background: none;}
#v3 .month .d.today {box-shadow: inset 0 0 0 2px var(--mineral);}
#v3 .words {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px;}
#v3 .words h3 {margin: 0 0 8px; font-size: var(--fs-16); font-weight: 600;}
#v3 .words p {margin: 0; font-size: var(--fs-16); line-height: 1.55; max-width: 52ch;}
#v3 .words .by {color: var(--ink-2); font-size: var(--fs-13); margin-top: 10px; display: flex; align-items: center; gap: 8px;}
#v3 .gauges {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;}
#v3 .gauge {display: flex; flex-direction: column; align-items: flex-start; gap: 6px;}
#v3 .gauge svg {display: block;}
#v3 .gauge .k {font-weight: 600;}
#v3 .gauge .c {color: var(--good); font-size: var(--fs-13); font-weight: 600;}
#v3 .gauge .c.flat {color: var(--ink-2); font-weight: 500;}
#v3 .preview-as {display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--fog); border-radius: 10px; color: var(--ink-2); font-size: var(--fs-13); flex-wrap: wrap;}
#v3 .preview-as select {font: inherit; font-size: var(--fs-13); height: 30px; border-radius: 6px; border: 1px solid var(--rule-strong); background: var(--white); color: var(--ink); padding: 0 8px;}
#v3 .srows {display: flex; flex-direction: column;}
#v3 .srow {display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; align-items: baseline;}
#v3 .srow:hover {background: rgba(231,236,241,0.5);}
#v3 .srow b {display: block; font-weight: 600;}
#v3 .srow .when {color: var(--ink-2); font-size: var(--fs-13);}
#v3 .srow p {margin: 0;}
#v3 .srow .chg {font-size: var(--fs-13); color: var(--good); font-weight: 600; white-space: nowrap;}
#v3 .game {display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px 24px; background: var(--mineral); color: var(--fog); border-radius: 12px;}
#v3 .game .tm {font-size: var(--fs-18); font-weight: 600;}
#v3 .game .tm small {display: block; color: var(--rail-ink-2); font-size: var(--fs-13); font-weight: 400;}
#v3 .game .tm.r {text-align: right;}
#v3 .game .sc {font-size: var(--fs-56); text-align: center; color: var(--white);}
#v3 .game .sc span {color: var(--rail-ink-2); font-size: var(--fs-28); margin: 0 10px;}
#v3 .game .res {grid-column: 1 / -1; text-align: center; color: var(--rail-ink); font-size: var(--fs-13);}
#v3 .flags {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px;}
#v3 .fgrid {display: grid; grid-template-columns: minmax(120px, 1fr) repeat(6, 26px) 54px; gap: 4px 4px; align-items: center; font-size: var(--fs-13);}
#v3 .fgrid .h {color: var(--ink-2); font-size: var(--fs-12); text-align: center;}
#v3 .fgrid .h.now {color: var(--ink); font-weight: 650;}
#v3 .fgrid .k {padding-right: 8px;}
#v3 .fgrid i {width: 26px; height: 26px; border-radius: 4px; background: var(--fog); display: block;}
#v3 .fgrid i.on {background: var(--torii);}
#v3 .fgrid i.now {box-shadow: inset 0 0 0 2px var(--mineral);}
#v3 .fgrid .n {text-align: right; color: var(--ink-2);}
#v3 .fgrid .n b {color: var(--ink); font-weight: 650;}
#v3 .pills {display: flex; flex-wrap: wrap; gap: 6px;}
#v3 .pills span {font-size: var(--fs-13); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-2); background: var(--white);}
#v3 .pills span.on {background: var(--torii); border-color: var(--torii); color: var(--white); font-weight: 600;}
#v3 .timeline {display: flex; height: 40px; border-radius: 8px; overflow: hidden; gap: 2px;}
#v3 .timeline div {display: flex; align-items: center; padding: 0 10px; font-size: var(--fs-12); font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden;}
#v3 .tl-axis {display: flex; justify-content: space-between; color: var(--ink-3); font-size: var(--fs-12); margin-top: 6px;}
#v3 .blocks {display: flex; flex-direction: column; margin-top: 20px;}
#v3 .block {display: grid; grid-template-columns: 70px 120px minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: baseline;}
#v3 .block .t {color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: var(--fs-13);}
#v3 .block .ty {font-size: var(--fs-13); font-weight: 600;}
#v3 .block b {display: block; font-weight: 600;}
#v3 .block p {margin: 2px 0 0; color: var(--ink-2); font-size: var(--fs-13);}
#v3 .block .tag {font-size: var(--fs-12); color: var(--ink-2); white-space: nowrap;}
#v3 .summary {font-size: var(--fs-18); line-height: 1.55; max-width: 62ch; margin: 0;}
#v3 .deltas {display: flex; flex-wrap: wrap; gap: 8px;}
#v3 .deltas span {display: inline-flex; gap: 8px; align-items: baseline; border: 1px solid var(--rule-strong); border-radius: 8px; padding: 8px 12px; background: var(--white);}
#v3 .deltas span b {font-weight: 650; font-variant-numeric: tabular-nums;}
#v3 .deltas span em {font-style: normal; color: var(--good); font-weight: 650; font-size: var(--fs-13);}
#v3 .compare {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule);}
#v3 .compare div {padding: 16px 20px 16px 0;}
#v3 .compare div + div {border-left: 1px solid var(--rule); padding-left: 20px;}
#v3 .compare .score {font-size: var(--fs-40); display: block;}
#v3 .compare span {color: var(--ink-2); font-size: var(--fs-13);}
#v3 .compare em {font-style: normal; color: var(--good); font-weight: 600; font-size: var(--fs-13);}
#v3 .media {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;}
#v3 .media div {aspect-ratio: 16 / 10; border-radius: 10px; background: var(--ice); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; font-size: var(--fs-12); color: var(--ink-2);}
#v3 .media svg {position: absolute; inset: 0; width: 100%; height: 100%;}
#v3 .media span {position: relative; background: rgba(245,243,238,0.9); padding: 2px 8px; border-radius: 999px;}
#v3 details.tx {border-top: 1px solid var(--rule); padding-top: 12px;}
#v3 details.tx summary {cursor: pointer; font-weight: 600;}
#v3 details.tx p {color: var(--ink-2); max-width: 70ch;}
#v3 .comments {display: flex; flex-direction: column; gap: 14px;}
#v3 .cmt {display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px;}
#v3 .cmt b {font-weight: 600;}
#v3 .cmt small {color: var(--ink-2); margin-left: 6px;}
#v3 .cmt p {margin: 2px 0 0;}
#v3 .reply {display: flex; gap: 8px;}
#v3 .reply input {flex: 1; font: inherit; height: 36px; border-radius: 8px; border: 1px solid var(--rule-strong); padding: 0 12px; background: var(--white);}
#v3 .acct {display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start;}
#v3 .acct nav {display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px;}
#v3 .acct nav span {color: var(--ink-3); font-size: var(--fs-12); padding: 14px 10px 4px;}
#v3 .acct nav span:first-child {padding-top: 0;}
#v3 .acct nav a {text-decoration: none; padding: 6px 10px; border-radius: 6px; color: var(--ink-2); font-size: var(--fs-14);}
#v3 .acct nav a[aria-current="page"] {background: var(--fog); color: var(--ink); font-weight: 600;}
#v3 .form {display: flex; flex-direction: column; gap: 32px; max-width: 640px;}
#v3 .form section {display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule);}
#v3 .form section:first-child {border-top: 0; padding-top: 0;}
#v3 .fields {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;}
#v3 .field {display: flex; flex-direction: column; gap: 6px;}
#v3 .field.full {grid-column: 1 / -1;}
#v3 .field label {font-size: var(--fs-13); font-weight: 500;}
#v3 .field input, #v3 .field select {width: 100%; height: 38px;}
#v3 .field textarea {width: 100%; height: auto; min-height: 96px; padding: 10px; line-height: 1.5; resize: vertical;}
#v3 .field small {color: var(--ink-2); font-size: var(--fs-12);}
#v3 .meter {display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px;}
#v3 .meter .k {font-weight: 500;}
#v3 .meter .v {color: var(--ink-2); font-size: var(--fs-13); font-variant-numeric: tabular-nums;}
#v3 .meter .v b {color: var(--ink); font-weight: 650;}
#v3 .meter .bar {grid-column: 1 / -1; height: 8px; background: var(--fog); border-radius: 4px; position: relative;}
#v3 .meter .bar i {position: absolute; inset: 0 auto 0 0; background: var(--mineral); border-radius: 4px;}
#v3 .savebar {display: flex; gap: 8px; justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--rule);}
@media (max-width: 1132px) {
#v3 .two, #v3 .two-wide, #v3 .flags, #v3 .words {grid-template-columns: minmax(0, 1fr);}
#v3 .multiples {grid-template-columns: repeat(2, minmax(0, 1fr));}
#v3 .rrow {grid-template-columns: 34px minmax(0, 1fr) 70px 64px;}
#v3 .rrow .hide-m {display: none;}
#v3 .acct {grid-template-columns: minmax(0, 1fr); gap: 20px;}
#v3 .acct nav {position: static; flex-direction: row; flex-wrap: wrap;}
#v3 .acct nav span {display: none;}

}
@media (max-width: 1023px) {
#v3 .mockbar .pick select {min-width: 0; max-width: 58vw;}
/* Names never push past their column: long ones wrap instead of running over the numbers beside them */
#v3 .rrow .nm, #v3 .top .nm, #v3 .week .item .n, #v3 .board td.name {min-width: 0; overflow-wrap: break-word;}
#v3 .board td.rank {white-space: nowrap;}
/* Top performers: the rating note wraps under the score instead of squeezing the name */
#v3 .top .rt {max-width: 9.5em;}
#v3 .top .rt small {display: block; white-space: normal;}
#v3 .vsrow .v {white-space: nowrap;}
/* This week on the ice: name, then the measure, then the drills, each on its own line */
#v3 .week .item {grid-template-columns: minmax(0, 1fr); gap: 2px;}
#v3 .week .item .m {white-space: normal; grid-row: 2;}
#v3 .week .item .d {grid-row: 3;}
/* Athlete pickers shrink to the screen instead of holding a 200px minimum */
#v3 .pick {display: flex; min-width: 0; max-width: 100%;}
#v3 .pick select {min-width: 0; max-width: 100%; flex: 1 1 auto; text-overflow: ellipsis;}
#v3 .search {width: 100%;}
#v3 .controls {flex-direction: column; align-items: stretch;}
#v3 .levels, #v3 .compare {grid-template-columns: minmax(0, 1fr);}
#v3 .level + .level, #v3 .compare div + div {border-left: 0; padding-left: 0; border-top: 1px solid var(--rule);}
#v3 .brow {grid-template-columns: 92px minmax(0, 1fr) 30px;}
#v3 .brow .s {grid-column: 2 / -1; margin-top: -4px;}
/* The 1 to 10 scale under the benchmark rows follows the same phone columns as the rows above it */
#v3 .scale.for-brow {grid-template-columns: 92px minmax(0, 1fr) 30px; gap: 14px;}
#v3 .scale.for-brow > span:last-child {display: none;}
#v3 .v3-foot {display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule);}
#v3 .v3-foot button, #v3 .v3-foot a {appearance: none; -webkit-appearance: none; background: none; border: 0; font: inherit; font-size: var(--fs-13); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 10px 10px; cursor: pointer;}
/* Overview, Team, Benchmarks and Plans sit in the side rail on a laptop. On a phone they are a row under the top bar. */
#v3[data-route="overview"] .msub, #v3[data-route="team"] .msub, #v3[data-route="benchmarks"] .msub, #v3[data-route="plans"] .msub {display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0 4px;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));}
#v3 .msub a {color: var(--ink-2); text-decoration: none; font-size: var(--fs-14); font-weight: 500; padding: 13px 4px 11px; border-bottom: 2px solid transparent; min-height: 44px; white-space: nowrap;}
#v3 .msub a[aria-current="page"] {color: var(--ink); font-weight: 650; border-bottom-color: var(--torii);}
#v3 .heat td.who {white-space: normal; overflow-wrap: anywhere;}
#v3 .lvlrow {grid-template-columns: 80px minmax(0, 1fr);}
#v3 .lvlrow .s {grid-column: 1 / -1; text-align: left;}
#v3 .erow, #v3 .erow.tally {grid-template-columns: minmax(0, 1fr) 56px;}
#v3 .erow .etrack {grid-column: 1 / -1; grid-row: 2;}
#v3 .multiples {grid-template-columns: minmax(0, 1fr);}
#v3 .gauges {grid-template-columns: repeat(2, minmax(0, 1fr));}
#v3 .vsrow {grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px;}
#v3 .cohort .row {grid-template-columns: 110px minmax(0, 1fr) 44px;}
#v3 .fgrid {grid-template-columns: minmax(96px, 1fr) repeat(6, 22px) 40px;}
#v3 .fgrid i {width: 22px; height: 22px;}
#v3 .game .sc {font-size: var(--fs-40);}
#v3 .block {grid-template-columns: 56px minmax(0, 1fr);}
#v3 .block .ty, #v3 .block .tag {grid-column: 2;}
#v3 .media {grid-template-columns: repeat(2, minmax(0, 1fr));}
#v3 .fields {grid-template-columns: minmax(0, 1fr);}
#v3 .srow {grid-template-columns: 64px minmax(0, 1fr);}
#v3 .srow .chg {grid-column: 2;}
#v3 .timeline div {padding: 0 6px; font-size: 11px;}

}
#v3 .mode a {text-align: center; padding: 5px 0; border-radius: 6px; color: var(--rail-ink-2); text-decoration: none;}
#v3 .mode a.on {background: var(--fog); color: var(--mineral); font-weight: 600;}
#v3 .rail-foot .rail-item {padding-left: 6px;}
#v3 .rrow .r {text-align: right;}
#v3 .rail {overflow-y: auto; overflow-x: hidden;}
#v3 .cal {grid-template-columns: 48px repeat(7, 18px);}
#v3 .heat td.who a {color: var(--ink);}
#v3 .profile-grid {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start;}
#v3 .radar-wrap {background: var(--ice); border-radius: 12px; padding: 14px 10px 6px;}
#v3 .radar {display: block; width: 100%; height: auto;}
#v3 .radar text {font-family: var(--face); font-size: 13px; font-weight: 600; fill: var(--ink);}
#v3 .radar text .n {font-weight: 700; font-variant-numeric: tabular-nums;}
#v3 .radar text.tick {font-size: 10px; font-weight: 500; fill: var(--ink-3);}
#v3 .radar .up {fill: var(--good);}
#v3 .radar .down {fill: var(--torii-text);}
#v3 .radar .flat {fill: var(--ink-3);}
#v3 .radar-foot {display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px;}
#v3 .arrows-key {color: var(--ink-2); font-size: var(--fs-12); display: flex; gap: 12px;}
#v3 .arrows-key b {font-weight: 700;}
#v3 .rate-panel {margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 14px;}
#v3 .rate-panel h3 {margin: 0 0 8px; font-size: var(--fs-14); font-weight: 600;}
#v3 .rate-row {display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; gap: 12px; align-items: center; padding: 3px 0; font-size: var(--fs-13);}
#v3 .rate-row input {width: 100%; accent-color: var(--torii);}
#v3 .rate-row output {text-align: right; font-weight: 700; font-variant-numeric: tabular-nums;}
#v3 .rate-foot {display: flex; gap: 12px; align-items: center; margin-top: 12px; color: var(--ink-2); font-size: var(--fs-12);}
#v3 button.btn {cursor: pointer;}
#v3 .celebs {display: flex; flex-direction: column;}
#v3 .celeb {display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-top: 1px solid var(--rule);}
#v3 .celeb:first-child {border-top: 0; padding-top: 0;}
#v3 .celeb .k {font-size: var(--fs-13); font-weight: 600;}
#v3 .celeb .k .score {display: block; font-size: var(--fs-28); line-height: 1.1; color: var(--torii-text);}
#v3 .celeb .k .score span {font-size: var(--fs-16); color: var(--ink-3); font-weight: 500; margin: 0 4px;}
#v3 .celeb p {margin: 0; font-size: var(--fs-14); max-width: 60ch;}
#v3 .celeb .m {color: var(--ink-2); font-size: var(--fs-12); margin-top: 6px;}
#v3 .posx {display: flex; flex-direction: column;}
#v3 .pos {display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--rule);}
#v3 .pos:first-child {border-top: 0; padding-top: 4px;}
#v3 .pos .nm {font-weight: 600; font-size: var(--fs-16); display: flex; align-items: center; gap: 8px;}
#v3 .pos .nm i {width: 10px; height: 10px; border-radius: 50%; background: var(--c);}
#v3 .pos .flagged {margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px;}
#v3 .flag-pill {font-size: var(--fs-12); padding: 2px 10px; border-radius: 999px; background: rgba(194,82,74,0.12); color: var(--torii-text); font-weight: 600;}
#v3 .flag-pill.clear {background: rgba(110,134,166,0.16); color: var(--ink-2);}
#v3 .pos p.dx {margin: 0 0 14px; font-size: var(--fs-16); line-height: 1.5; max-width: 66ch;}
#v3 .layers {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;}
#v3 .layer {border-left: 3px solid var(--c); padding: 2px 0 2px 14px;}
#v3 .layer h4 {margin: 0 0 4px; font-size: var(--fs-13); font-weight: 600;}
#v3 .layer p {margin: 0; font-size: var(--fs-13); color: var(--ink-2);}
#v3 .drills-grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; margin-top: 28px;}
#v3 .drill {display: flex; flex-direction: column; gap: 10px; min-width: 0;}
#v3 .drill .dtop {display: flex; justify-content: space-between; gap: 12px; align-items: baseline;}
#v3 .drill .dtop b {font-weight: 600; font-size: var(--fs-16); display: block;}
#v3 .drill .dtop small {display: block; font-size: var(--fs-12); font-weight: 600; margin-top: 2px;}
#v3 .drill .dtop .t {color: var(--ink-2); font-size: var(--fs-13); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right;}
#v3 .drill .dtop .t span {display: block; font-size: var(--fs-12);}
#v3 .rink {background: var(--ice); border-radius: 12px; padding: 10px;}
#v3 .rink svg {display: block; width: 100%; height: auto;}
#v3 .rink text {font-family: var(--face);}
#v3 .rink-key {display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-2); font-size: var(--fs-12); margin-top: 8px; padding: 0 4px;}
#v3 .rink-key i {display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px;}
#v3 .drill p {margin: 0; font-size: var(--fs-14);}
#v3 .drill .cue {color: var(--ink-2); font-size: var(--fs-13);}
#v3 .drill .cue b {color: var(--ink); font-weight: 600;}
@media (max-width: 1132px) {
#v3 .profile-grid, #v3 .drills-grid {grid-template-columns: minmax(0, 1fr);}
#v3 .pos {grid-template-columns: minmax(0, 1fr); gap: 10px;}

}
@media (max-width: 560px) {
#v3 .layers {grid-template-columns: minmax(0, 1fr);}
#v3 .celeb {grid-template-columns: minmax(0, 1fr); gap: 6px;}
#v3 .rate-row {grid-template-columns: 92px minmax(0, 1fr) 24px;}

}




/* ── Additions for the live build ───────────────────────────────────────── */
#v3 .ice, #v3 .mini, #v3 .radar-wrap, #v3 .rink { box-shadow: inset 0 0 0 1px var(--rule); }
#v3 select.search, #v3 .pick select, #v3 .preview-as select { appearance: none; padding: 6px 28px 6px 10px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23566579' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; font: inherit; color: var(--ink); cursor: pointer; }
#v3 input.search { padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--white); }
#v3 input[type="range"] { width: 100%; padding: 0; accent-color: var(--torii); background: none; border: 0; }
#v3 .v3-empty { padding: 28px 0 8px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; max-width: 64ch; }
#v3 .v3-empty h2 { font-size: var(--fs-18); }
#v3 .v3-empty[hidden] { display: none; }
#v3 .v3-note { margin: 0; color: var(--ink-2); font-size: var(--fs-13); max-width: 72ch; }
#v3 .v3-note:empty { display: none; }
#v3 .v3-none { color: var(--ink-3); font-size: var(--fs-13); padding: 12px 0; }
#v3 .rail-foot button.rail-item { background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
#v3 [hidden] { display: none !important; }

/* ── Mounting: hide the classic chrome while v3 is on ───────────────────── */
body.v3-on[data-page="app"] { padding: 0; background: #F5F3EE; }
body.v3-on[data-page="app"] > header,
body.v3-on[data-page="app"] #modeBanner,
body.v3-on[data-page="app"] #colLeft,
body.v3-on[data-page="app"] #colCenter,
body.v3-on[data-page="app"] #mobileTabBar,
body.v3-on[data-page="app"] #chatExpandBtn { display: none !important; }
body.v3-on[data-page="app"] #appView.container { max-width: none; margin: 0; padding-top: 0; }
body.v3-on[data-page="app"] #appView > .page-layout { display: block; gap: 0; }
#v3 { display: none; }
body.v3-on[data-page="app"] #v3 { display: block; }

/* Sen opens as a panel over the new design. While a session is open the classic
   overlay layout for the chat applies unchanged. */
body.v3-on[data-page="app"] .page-layout .col-right:not(.chat-overlay-mode) {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); max-width: 100vw;
  z-index: 1200; margin: 0; border-radius: 0; box-shadow: -12px 0 32px rgba(44, 52, 64, 0.18);
}
body.v3-on[data-page="app"] .page-layout.chat-minimized .col-right:not(.chat-overlay-mode) { display: none !important; }

/* Bar shown while a classic screen is borrowed for one step */
.v3-classic-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1300;
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; border-radius: 10px;
  background: #2C3440; color: #E7ECF1; font-size: 0.8125rem; box-shadow: 0 8px 24px rgba(44, 52, 64, 0.28); }
.v3-classic-bar[hidden] { display: none; }
.v3-classic-bar .btn { width: auto; margin: 0; padding: 7px 12px; background: #C2524A; color: #fff; font-size: 0.8125rem; }
body.v3-classic-step .v3-classic-bar { display: flex; }
.v3-try { position: fixed; left: 20px; bottom: 20px; z-index: 950; border: 0; border-radius: 999px; padding: 8px 14px;
  background: #2C3440; color: #E7ECF1; font: 600 0.8125rem 'Bricolage Grotesque', sans-serif; cursor: pointer;
  box-shadow: 0 6px 18px rgba(44, 52, 64, 0.25); }
@media (max-width: 1023px) { .v3-try { bottom: 84px; } .v3-classic-bar { bottom: 84px; width: calc(100vw - 32px); justify-content: space-between; } }
.v3-try[hidden] { display: none; }
/* On phones Sen opens full screen over the new design, as it does in the classic view */
body.v3-on[data-page="app"].mobile-trainer #colRight.mob-ai-open { top: 0; bottom: 0; z-index: 1200; }
@media (max-width: 760px) {
/* Skill heatmap on a phone: fixed columns that share the width, skill names turned on their side,
   athlete names wrapping. The whole table stays on screen with no sideways scroll. */
#v3 .heat {table-layout: fixed; border-spacing: 2px;}
#v3 .heat th:first-child {width: 31%;}
#v3 .heat th:last-child {width: 11%;}
#v3 .heat th {vertical-align: bottom; padding: 0 0 6px; font-size: var(--fs-12);}
#v3 .heat th:not(:first-child):not(:last-child) {writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; white-space: nowrap; line-height: 1;}
#v3 .heat td {font-size: 11px; padding: 0; overflow: hidden;}
#v3 .heat td.who {white-space: normal; overflow-wrap: anywhere; padding: 4px 6px 4px 0; line-height: 1.25; font-size: var(--fs-12);}
#v3 .heat td.who small {display: block; margin-left: 0;}
#v3 .heat td.avgc {padding-left: 2px; font-size: var(--fs-12);}
}

/* ── Signed in as an athlete or a parent ─────────────────────────────────
   Same design, one page: no side rail, no trainer tabs. A top bar with Ask Sen and the account button. */
#v3 .mtop-right {display: inline-flex; align-items: center; gap: 10px;}
#v3 .mtop-sen {display: none;}
body.v3-portal #v3 .app {grid-template-columns: minmax(0, 1fr);}
body.v3-portal #v3 .rail, body.v3-portal .mtabs, body.v3-portal #v3 .msub, body.v3-portal #v3 .trainer-only {display: none !important;}
body.v3-portal #v3 .mtop {display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--mineral); color: var(--fog);
    padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));}
body.v3-portal #v3 .mtop .brand {padding: 0;}
body.v3-portal #v3 .mtop .av {width: 32px; height: 32px; border-radius: 50%; background: var(--fog); color: var(--mineral); display: grid; place-items: center; font-size: var(--fs-12); font-weight: 600; border: 0; cursor: pointer;}
body.v3-portal #v3 .mtop-sen {display: inline-flex; align-items: center; gap: 8px; appearance: none; -webkit-appearance: none; background: rgba(231,236,241,0.08); border: 1px solid rgba(231,236,241,0.18);
    color: var(--fog); font: inherit; font-size: var(--fs-13); font-weight: 600; padding: 0 12px; min-height: 36px; border-radius: 8px; cursor: pointer; white-space: nowrap;}
body.v3-portal #v3 .mtop-sen:hover {background: rgba(231,236,241,0.14);}
body.v3-portal #v3 .main {max-width: 1120px; margin: 0 auto; width: 100%; box-sizing: border-box;}
@media (max-width: 1023px) {
body.v3-portal #v3 .main {padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));}
}
