    /* ── SEGMENTED GROUP TOGGLE ── */
    .seg{display:inline-flex;gap:.25rem;background:var(--s1);border:1px solid var(--b1);border-radius:100px;padding:.25rem;margin-bottom:2rem}
    .seg__btn{font-family:var(--fb);font-size:.78rem;font-weight:600;letter-spacing:0;color:var(--t3);padding:.45rem 1rem;border-radius:100px;transition:all var(--ease);display:flex;align-items:center;gap:.45rem}
    .seg__btn .dot{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.5}
    .seg__btn:hover{color:var(--t2)}
    .seg__btn.active{background:var(--s3);color:var(--text)}
    .seg__btn.active[data-group="speed"]{color:var(--lime)}
    .seg__btn.active[data-group="perf"]{color:var(--blue)}
    .seg__btn.active .dot{opacity:1}
    .seg__count{font-family:var(--fd);font-weight:700;font-size:.8rem;opacity:.7}

    /* ── TAB BAR ──
       The big primary switcher: an icon above a label, equal-width columns, a hairline card around
       the set, and a green rule under the active one. Built once here rather than on the Athletes
       page so the next surface that needs it inherits the behaviour instead of re-deriving it.

       Distinct from .seg on purpose. .seg is a small pill group for a secondary choice inside a
       page (sort order, leaderboard mode); .tabbar is the primary navigation of a whole workspace
       and is deliberately large enough to be the first thing the eye lands on after the title.

       Markup:
         <div class="tabbar" role="tablist">
           <button class="tabbar__btn active" data-…><svg class="ic">…</svg><span>Roster</span></button>
           …
         </div> */
    .tabbar{display:flex;background:var(--s1);border:1px solid var(--b1);border-radius:14px;padding:.3rem;gap:0;margin-bottom:1.1rem;box-shadow:var(--sh)}
    .tabbar__btn{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;
      padding:.8rem .5rem .7rem;border-radius:11px;background:transparent;cursor:pointer;position:relative;
      font-family:var(--fb);font-size:.85rem;font-weight:500;color:var(--t3);transition:color var(--ease),background var(--ease)}
    /* Hairline between the sections, as in the reference — drawn by the button rather than as a
       gap so the three still read as one continuous control. Inset top and bottom so it never
       runs into the active tab's green rule. */
    .tabbar__btn + .tabbar__btn::before{content:'';position:absolute;left:0;top:22%;bottom:22%;width:1px;background:var(--b1)}
    .tabbar__btn .ic{width:19px;height:19px;stroke-width:1.9}
    .tabbar__btn:hover{color:var(--t2);background:var(--s2)}
    .tabbar__btn.active{color:var(--text);font-weight:600}
    .tabbar__btn.active .ic{color:var(--lime)}
    /* The rule sits inside the padded track rather than on the card's own border, so it reads as
       belonging to the tab and not to the panel below it. */
    .tabbar__btn.active::after{content:'';position:absolute;left:14%;right:14%;bottom:-.3rem;height:2px;border-radius:2px;background:var(--lime)}
    .tabbar__btn:focus-visible{outline:2px solid var(--lime);outline-offset:-2px}
    @media(max-width:560px){
      .tabbar__btn{font-size:.76rem;padding:.65rem .3rem .58rem}
      .tabbar__btn .ic{width:17px;height:17px}
    }

    /* ── FORM ── */
    .panel{background:var(--s1);border:1px solid var(--b1);border-radius:var(--rl);padding:1.75rem;margin-bottom:2rem}
    .panel__title{font-family:var(--fd);font-weight:700;font-size:1rem;letter-spacing:-.015em;color:var(--text);margin-bottom:1.1rem;display:flex;align-items:center;gap:.6rem}
    .panel__title .k{color:var(--lime);display:inline-flex}
    .panel__title .k .ic{width:20px;height:20px}
    .form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;align-items:end}
    @media(max-width:600px){.form-grid{grid-template-columns:1fr}}
    .field{display:flex;flex-direction:column;gap:.4rem;min-width:0}
    .field--full{grid-column:1/-1}
    .field-label{font-family:var(--fb);font-size:.75rem;font-weight:600;letter-spacing:0;color:var(--t3)}
    .ath-optout{display:flex;align-items:center;gap:.6rem;font-family:var(--fb);font-size:.82rem;font-weight:600;color:var(--text);cursor:pointer}
    .ath-optout input{width:17px;height:17px;accent-color:var(--lime);cursor:pointer;flex-shrink:0}
    .input,.select{width:100%;min-width:0;max-width:100%;background:var(--s2);border:1px solid var(--b2);border-radius:var(--r);color:var(--text);font-family:var(--fs);font-size:.9rem;font-weight:500;padding:.7rem 1rem;transition:border-color var(--ease);outline:none}
    input[type=date].input{-webkit-appearance:none;appearance:none}
    .input:focus,.select:focus{border-color:var(--lime);box-shadow:0 0 0 2px var(--lime-d)}
    .input::placeholder{color:var(--t4)}
    .select{appearance:none;font-weight:600;cursor:pointer;padding-right:2.5rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8B94' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 1rem center}
    .select:disabled{opacity:.35;cursor:not-allowed}
    .select option{background:var(--s3)}
    .btn{font-family:var(--fb);font-weight:600;font-size:.82rem;letter-spacing:0;background:var(--lime);color:var(--on-accent);border-radius:var(--r);padding:.62rem 1.15rem;transition:opacity var(--ease);white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:.4rem}
    .btn:hover{opacity:.88}
    .btn:disabled{opacity:.25;cursor:not-allowed}
    .btn--ghost{background:transparent;color:var(--t2);border:1px solid var(--b2);font-family:var(--fb);font-weight:600;font-size:.78rem;letter-spacing:0;padding:.58rem 1rem}
    .btn--ghost:hover{opacity:1;color:var(--text);border-color:var(--b3)}
    .btn--ghost .ic,.btn .ic{width:15px;height:15px;margin-right:0}
    .btn .ic{width:16px;height:16px;vertical-align:-3px}
    .btn--danger:hover{color:var(--red);border-color:var(--red)}
    .btn--solid-danger{background:var(--red);color:#fff}
    .icon-btn{width:40px;height:40px;border-radius:11px;border:1px solid var(--b2);display:inline-flex;align-items:center;justify-content:center;color:#444;background:var(--s1);transition:all var(--ease);flex-shrink:0}
    .icon-btn:hover{color:var(--text);border-color:var(--b3);background:var(--s2)}
    .icon-btn .ic{width:18px;height:18px}
    .icon-btn--danger:hover{color:var(--red);border-color:var(--red);background:var(--s2)}
    .icon-btn--go{margin-left:auto;color:var(--lime);border-color:rgba(170,255,0,.3)}
    .icon-btn--go:hover{background:var(--lime-d);color:var(--lime)}

    /* ── EMPTY STATE ── */
    .empty{text-align:center;padding:3.5rem 1.5rem;background:var(--s1);border:1px dashed var(--b2);border-radius:var(--rl)}
    .empty__icon{margin-bottom:.85rem;opacity:.55;color:var(--t3);display:flex;justify-content:center}
    .empty__icon .ic{width:40px;height:40px;stroke-width:1.6}
    .empty__title{font-family:var(--fd);font-weight:700;font-size:.98rem;letter-spacing:-.01em;color:var(--text);margin-bottom:.35rem}
    .empty__desc{font-family:var(--fb);font-size:.78rem;color:var(--t3);max-width:380px;margin:0 auto}
    /* metric detail modal */
    /* z-index above .boot-cover (10000) and .auth-gate (9999) — a prompt/confirm dialog
       shown mid-boot (e.g. a brand-new signup asking "join a facility or start your own")
       must render above both, not get silently stuck behind them */
    .mm-overlay{position:fixed;inset:0;z-index:10010;background:rgba(10,12,20,.55);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;padding:1.25rem}
    .mm-overlay.open{display:flex}
    /* pilot feedback rating row (C-4). Buttons, not radios: the whole tile is the hit target,
       which matters on the shared gym iPad where this is most likely to be answered. */
    .fb-rating{display:flex;gap:.5rem}
    .fb-rating__btn{flex:1;min-width:0;padding:.7rem .2rem;border:1px solid var(--b2);border-radius:var(--r);background:var(--s2);color:var(--t2);font-family:var(--fb);font-size:.72rem;line-height:1.25;cursor:pointer;transition:border-color .15s,background .15s,color .15s}
    .fb-rating__btn:hover{border-color:var(--lime);color:var(--text)}
    .fb-rating__btn .fb-rating__face{display:block;font-size:1.15rem;margin-bottom:.25rem}
    .fb-rating__btn[aria-checked="true"]{border-color:var(--lime);background:color-mix(in srgb, var(--lime) 14%, transparent);color:var(--text);font-weight:600}
    .fb-rating__btn:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
    .mm-card{background:var(--s1);border:1px solid var(--b1);border-radius:var(--rl);box-shadow:0 24px 70px rgba(10,12,20,.3);width:100%;max-width:680px;max-height:90vh;overflow-y:auto;padding:1.5rem 1.6rem 1.75rem;-webkit-overflow-scrolling:touch}
    .mm-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.5rem}
    .mm-head__acts{display:flex;align-items:center;gap:.5rem;flex-shrink:0}
    .mm-progress{padding:.5rem .85rem;font-size:.64rem;white-space:nowrap}
    .mm-progress .ic{width:14px;height:14px;vertical-align:-2px;margin-left:3px}
    .mm-title{font-family:var(--fd);font-weight:700;font-size:1.15rem;letter-spacing:-.02em;color:var(--text);line-height:1.2}
    .mm-sub{font-family:var(--fb);font-size:.78rem;color:var(--t3);margin-top:.3rem}
    .mm-x{width:36px;height:36px;border-radius:10px;border:1px solid var(--b2);display:flex;align-items:center;justify-content:center;color:var(--t2);flex-shrink:0;background:var(--s2)}
    .mm-x:hover{color:var(--text);border-color:var(--b3)}
    @media(max-width:480px){
      .mm-card{padding:1.25rem 1.1rem 1.5rem}
      .mm-head{flex-wrap:wrap}
      .mm-head__acts{flex-basis:100%;justify-content:space-between;margin-top:.6rem}
      .mm-title{font-size:1.25rem}
    }
    .mm-def{font-family:var(--fb);font-size:.82rem;color:var(--t2);line-height:1.5;background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:.7rem .85rem;margin:.75rem 0}
    .kiosk-pin-reveal{font-family:var(--fd);font-weight:800;font-size:3.2rem;letter-spacing:.3em;text-align:center;color:var(--lime);background:var(--lime-d);border:1px solid rgba(170,255,0,.3);border-radius:var(--r);padding:1.1rem .5rem 1.1rem 1.4rem;margin:.4rem 0 1rem}
    .kiosk-pin-reveal--code{font-size:1.6rem;letter-spacing:.12em;padding:.9rem .5rem}
    .mm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;margin:1rem 0}
    @media(max-width:560px){.mm-stats{grid-template-columns:repeat(2,1fr)}}
    .mm-stat{background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:.7rem .75rem;text-align:center}
    .mm-stat__n{font-family:var(--fd);font-weight:800;font-size:1.15rem;color:var(--text);line-height:1}
    .mm-stat__l{font-family:var(--fb);font-size:.68rem;font-weight:500;letter-spacing:0;color:var(--t3);margin-top:.3rem}
    .mm-delta.up{color:var(--green)}.mm-delta.down{color:var(--red)}.mm-delta.flat{color:var(--t2)}
    .mm-chart{background:var(--s2);border:1px solid var(--b1);border-radius:var(--r);padding:1rem .75rem;margin-bottom:1rem}
    .mm-log{border-top:1px solid var(--b1)}
    .mm-log__row{display:flex;justify-content:space-between;align-items:center;font-family:var(--fb);font-size:.8rem;color:var(--t2);padding:.5rem .15rem;border-bottom:1px solid var(--b1)}
    .mm-log__row b{color:var(--text)}
    /* trend indicators — secondary to the main mm-stats cards, so real improvement reads
       differently from ordinary day-to-day variability */
    .mm-trend{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-bottom:1rem}
    @media(max-width:560px){.mm-trend{grid-template-columns:repeat(2,1fr)}}
    .mm-trend__item{background:var(--s1);border:1px solid var(--b1);border-radius:var(--r);padding:.55rem .5rem;text-align:center}
    .mm-trend__n{font-family:var(--fd);font-weight:800;font-size:.9rem;color:var(--t2);line-height:1}
    .mm-trend__l{font-family:var(--fb);font-size:.62rem;font-weight:500;letter-spacing:0;color:var(--t3);margin-top:.28rem}
    /* rep-count filter — strength metrics only, options built from what's actually logged */
    .mm-repfilter{display:flex;align-items:center;gap:.6rem;margin-bottom:.75rem}
    .mm-repfilter .select{width:auto}
    /* quick filters */
    .mm-filters{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1rem}
    .mm-chart--empty{display:flex;align-items:center;justify-content:center;min-height:110px;font-family:var(--fb);font-size:.82rem;color:var(--t3)}
    /* collapsible, paginated Session History — never renders the full history at once */
    .mm-hist{margin-top:.25rem}
    .mm-hist__rows{display:flex;flex-direction:column}
    .mm-hist__row{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;font-family:var(--fb);font-size:.8rem;padding:.55rem .1rem;border-bottom:1px solid var(--b1)}
    .mm-hist__row:last-child{border-bottom:none}
    .mm-hist__date{color:var(--t2);flex:1 1 90px}
    .mm-hist__val{color:var(--text);font-weight:700;flex:1 1 90px;text-align:right;white-space:nowrap}
    .mm-hist__delta{flex:0 0 auto;min-width:76px;text-align:right;font-weight:700;font-size:.72rem}
    .mm-hist__delta.up{color:var(--green)}.mm-hist__delta.down{color:var(--red)}.mm-hist__delta.flat{color:var(--t3);font-weight:400}
    @media(max-width:480px){.mm-hist__delta{text-align:left;min-width:0;flex-basis:100%}}
    .share-row{display:flex;gap:.6rem;align-items:stretch}
    .share-row .input{flex:1;min-width:0;font-family:var(--fb);font-size:.82rem}
    .share-row .btn{flex-shrink:0}
    .share-code{font-family:var(--fd);font-weight:800;font-size:2.1rem;letter-spacing:.18em;text-align:center;color:var(--text);background:var(--s2);border:1px dashed var(--b3);border-radius:var(--r);padding:.9rem .5rem;user-select:all;cursor:pointer}
    /* Rotate/revoke (#34). Set below a hairline and after the copy affordance, because the common
       errand here is "give somebody the code" — these two are the rarer, heavier actions and both
       are irreversible. */
    .share-manage{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem;padding-top:.9rem;border-top:1px solid var(--b1)}
    /* Wraps to one button per line rather than clipping "Revoke access" — the basis is what forces
       the wrap, since flex:1 alone would keep shrinking both past legibility on a narrow phone. */
    .share-manage .btn{flex:1 1 8.5rem}
    .share-manage .share-danger{color:var(--red);border-color:var(--red-b)}
    .share-manage .share-danger:hover{background:var(--red-b)}
    /* The state a revoked code shows instead of a code. Deliberately not styled as an error: the
       coach asked for this, and it is the system reporting that it held. */
    .share-revoked{background:var(--s2);border:1px solid var(--b2);border-radius:var(--r);padding:.9rem 1rem;color:var(--text)}
    .share-link-more{margin-top:1.1rem}
    .share-link-more>summary{font-family:var(--fb);font-size:.78rem;color:var(--t3);cursor:pointer}
    .share-link-more>summary:hover{color:var(--t2)}

    /* ── TOAST ── */
    .toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%) translateY(2rem);background:var(--s3);border:1px solid var(--b2);border-left:3px solid var(--lime);border-radius:var(--r);padding:.8rem 1.25rem;font-family:var(--fb);font-size:.8rem;color:var(--text);z-index:500;opacity:0;pointer-events:none;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 8px 30px rgba(0,0,0,.5);max-width:90vw}
    .toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
    .toast strong{color:var(--lime)}

    /* ── SEARCH COMBOBOX + ROSTER SEARCH ── */
    .combo-menu{position:absolute;top:100%;left:0;right:0;z-index:60;background:var(--s3);border:1px solid var(--b2);border-radius:var(--r);margin-top:.3rem;max-height:240px;overflow-y:auto;display:none;box-shadow:0 12px 30px rgba(0,0,0,.55);-webkit-overflow-scrolling:touch}
    .combo-menu.open{display:block}
    .combo-item{padding:.62rem .85rem;font-family:var(--fs);font-size:.9rem;font-weight:500;color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--b1)}
    .combo-item:last-child{border-bottom:none}
    .combo-item:hover,.combo-item.active{background:var(--lime-d);color:var(--lime)}
    .combo-item .age{color:var(--t3);font-size:.72rem;font-weight:600}
    .combo-item.active .age{color:var(--lime)}
    .combo-empty{padding:.7rem .85rem;color:var(--t4);font-family:var(--fb);font-size:.78rem;font-style:italic}
    .seg--sub{margin-bottom:0;padding:.2rem}
    .seg--sub .seg__btn{padding:.4rem .85rem;font-size:.75rem}
    /* ── ACCORDION ── */
    .acc{border:1px solid var(--b1);border-radius:var(--r);background:var(--s1);margin-bottom:.5rem;box-shadow:var(--sh)}
    .acc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:.65rem;padding:.9rem 1.15rem;font-family:var(--fd);font-weight:600;font-size:.95rem;letter-spacing:-.01em;color:var(--text);user-select:none}
    .acc>summary::-webkit-details-marker{display:none}
    .acc__k{color:var(--lime);font-family:var(--fd)}
    .acc__hint{font-family:var(--fs);font-weight:400;font-size:.72rem;letter-spacing:0;text-transform:none;color:var(--t3)}
    .acc__count{margin-left:auto;font-family:var(--fb);font-size:.72rem;font-weight:500;letter-spacing:0;color:var(--t3);background:var(--s2);border:1px solid var(--b2);border-radius:100px;padding:.15rem .55rem}
    .acc__chev{margin-left:auto;color:var(--t3);transition:transform var(--ease);flex-shrink:0;display:inline-flex}
    .acc__chev .ic{width:15px;height:15px}
    .acc__count + .acc__chev{margin-left:.6rem}
    .acc[open]>summary .acc__chev{transform:rotate(90deg)}
    .acc[open]>summary{border-bottom:1px solid var(--b1)}
    .acc__body{padding:1.1rem}
    .acc__body--flush{padding:0}
    .acc__dot{width:9px;height:9px;border-radius:50%;flex-shrink:0}
    .acc-allbar{display:inline-flex;gap:.4rem;margin-left:auto}
    .acc-allbtn{font-family:var(--fb);font-size:.75rem;font-weight:500;letter-spacing:0;color:var(--t2);background:var(--s1);border:1px solid var(--b2);border-radius:9px;padding:.44rem .8rem;display:inline-flex;align-items:center;gap:.35rem;cursor:pointer;transition:all var(--ease)}
    .acc-allbtn:hover{color:var(--text);border-color:var(--b3);background:var(--s2)}
    .acc-allbtn .ic{width:14px;height:14px;color:var(--t3)}
    .acc-allbtn:hover .ic{color:var(--t2)}
    /* ── DARK SHELL — flips the app's color vars to a dark palette for a section ── */
    .dark-shell{
      --bg:#0e1014;--s1:#181b21;--s2:#20242c;--s3:#252a33;
      --b1:#2a2e36;--b2:#343a45;--b3:#454c59;
      --text:#f5f6f8;--t2:#c4c8cf;--t3:#9aa0ab;--t4:#6b7280;
      --sh:0 2px 12px rgba(0,0,0,.3);
      background:#0e1014;border:1px solid #23262e;border-radius:22px;
      padding:1.75rem 1.5rem;box-shadow:0 10px 40px rgba(0,0,0,.18)
    }
    .dark-shell .subhead{color:#fff}
    .dark-shell .empty__desc strong{color:#e8eaee}
    @media(max-width:560px){.dark-shell{padding:1.15rem 1rem;border-radius:18px}}

    /* ══════════════ LIGHT-THEME POLISH + OVERVIEW ══════════════ */
    .panel,.metric-card,.report-card,.mini-stat,.lead-row,.metric-row,.roster-scroll{box-shadow:var(--sh)}
    .empty{border-style:dashed}
    .btn{border-radius:12px}
    .toast{background:var(--rail);border-color:#1c1c22;border-left-color:var(--lime-bright);color:#fff;box-shadow:0 10px 34px rgba(0,0,0,.3)}
    .toast strong{color:var(--lime-bright)}
    .icon-btn--go{color:var(--lime)}
