/* Oswald, served from our own files instead of Google Fonts (speed, Nov 3). Variable font, weights 200-700. SIL Open Font License: app/fonts/OFL-oswald.txt */
@font-face{ font-family:"Oswald"; font-style:normal; font-weight:200 700; font-display:swap; src:url(/app/fonts/oswald-latin.woff2?v=1) format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"Oswald"; font-style:normal; font-weight:200 700; font-display:swap; src:url(/app/fonts/oswald-latin-ext.woff2?v=1) format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Player 1 OS — the parent app look, lifted from the Athlete Calendar ("C · Timeline"):
   cream page, gold top bar, Oswald caps for labels, white cards with a hairline,
   black "on" chips, colored left bars on events, a dock at the bottom. */
:root{ --navy:#faf8f3; --slab:#ffffff; --panel:#ffffff;
  --gold:#c9a227; --golds:#8a6a00; --gold-rgb:201,162,39; --ongold:#151005; --gold-lt:#e8c964; --gold-dk:#5c4a0f; --gold-wash:#fff6dc;
  --text:#141414; --dim:#4a4740; --mute:#6b675e; --red:#c8323a; --ok:#1f5c38;
  --edge:rgba(201,162,39,.6); --hair:#e6e1d6; --slab2:#fbf3d6; --radius:10px;
  --font-display:"Oswald","Arial Narrow",system-ui,sans-serif;
  --gold-grad:linear-gradient(180deg,#d9b43a,#c9a227);
  /* Player 1 OS v2 (Nov 8, design upgrade phase 1): one scale for every page.
     Gold #c9a227 is for fills, bars and lines only; words in gold use --gold-text. */
  --gold-text:#8a6a00; --good:#2f7a3d; --warn:#9a6700; --bad:#c8323a; --info:#2f5f9e;
  --ev-p1:#c9a227; --ev-game:#2f7a3d; --ev-practice:#2f5f9e; --ev-family:#7a4fa3; --ev-dinner:#c2621f;
  --font-body:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --fs-title:28px; --fs-section:20px; --fs-card:17px; --fs-body:16px; --fs-sec:14px; --fs-label:13px; --fs-tiny:12px;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px; --sp-7:48px;
  --r-sm:8px; --r-md:14px; --r-pill:999px;
  --lift:0 10px 30px rgba(20,20,20,.14); }
/* Dark palette, defined now and switched on in phase 4 (html[data-theme="dark"]). */
html[data-theme="dark"]{ --navy:#16140f; --slab:#201d17; --panel:#201d17; --slab2:#2a2519;
  --text:#f2efe8; --dim:#cfc9bc; --mute:#a9a396; --hair:#3a352b; --gold-text:#e2c25a; --golds:#e2c25a;
  --good:#6cc07f; --warn:#e0b04a; --bad:#ef6b6b; --info:#7fa8e0; color-scheme:dark; }
*{ box-sizing:border-box; -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:transparent; }
html{ -webkit-text-size-adjust:100%; background:var(--navy); }
body{ margin:0; background:var(--navy); color:var(--text); min-height:100dvh;
  font:16px/1.45 -apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,Helvetica,Arial,sans-serif; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
svg.ic{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; display:block; }
.app{ width:100%; max-width:640px; margin:0 auto; padding-top:env(safe-area-inset-top); display:flex; flex-direction:column; min-height:100dvh; }
.topbar{ height:4px; background:var(--gold); flex:none; }
.hdr2{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:14px 16px 4px; flex:none; }
.kicker{ font-family:var(--font-display); font-weight:600; font-size:var(--fs-tiny); letter-spacing:.34em; color:var(--golds); text-transform:uppercase; }
h1{ font-family:var(--font-display); font-weight:600; font-size:26px; line-height:1; margin:4px 0 0; letter-spacing:.02em; text-transform:uppercase; display:flex; align-items:center; gap:8px; }
h1 em{ font-style:normal; color:var(--golds); }
h1 .dotsep{ color:var(--golds); }
.navs{ display:flex; gap:6px; flex:none; }
.navs button, .navs a{ width:40px; height:40px; border-radius:10px; border:1px solid var(--hair); background:#fff; color:var(--text); font-size:20px; line-height:1; cursor:pointer; padding:0 0 2px; display:grid; place-items:center; }
.navs button:active{ transform:scale(.95); }
.sl-lbl{ flex:none; margin:10px 16px 0; font-family:var(--font-display); font-weight:600; font-size:10.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--mute); }
.chips{ display:flex; gap:8px; overflow-x:auto; padding:8px 16px; scrollbar-width:none; }
.chips::-webkit-scrollbar{ display:none; }
.chip{ flex:none; appearance:none; min-height:38px; padding:0 14px; border-radius:999px; border:1px solid var(--hair); background:#fff; color:var(--dim); font-family:var(--font-display); font-weight:600; font-size:12px; letter-spacing:.1em; text-transform:uppercase; cursor:pointer; display:flex; align-items:center; gap:7px; white-space:nowrap; }
.chip i{ width:8px; height:8px; border-radius:50%; background:var(--gold); }
.chip small{ font-size:11px; color:var(--mute); }
.chip.on{ background:#141414; border-color:#141414; color:#fff; }
.chip.on small, .chip.on i{ color:var(--gold-lt); }
.calwrap{ flex:1; padding:12px 16px calc(100px + env(safe-area-inset-bottom)); }
.wkh{ display:flex; align-items:center; justify-content:space-between; margin:0 0 8px; }
.wkh b{ font-family:var(--font-display); font-weight:600; font-size:15px; letter-spacing:.12em; text-transform:uppercase; }
.wkbar{ border-top:1px solid var(--hair); border-bottom:1px solid var(--hair); background:none; touch-action:pan-y; user-select:none; -webkit-user-select:none; cursor:grab; overflow:hidden; }
.wkbar.grabbing{ cursor:grabbing; }
.wkbar.grabbing .wd{ cursor:grabbing; }
.wktrack{ display:flex; width:300%; transform:translateX(-33.3333%); will-change:transform; }
.wkweek{ width:33.3333%; flex:none; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.tl, #allDay, .wkh{ touch-action:pan-y; }
.wd{ appearance:none; border:0; background:none; padding:9px 0 8px; font-family:inherit; color:var(--text); cursor:pointer; text-align:center; min-height:58px; position:relative; }
.wd small{ display:block; font-family:var(--font-display); font-weight:500; font-size:10px; letter-spacing:.14em; color:var(--mute); text-transform:uppercase; }
.wd b{ display:block; font-family:var(--font-display); font-weight:600; font-size:18px; line-height:1.1; }
.wd .dots{ display:flex; justify-content:center; gap:2px; height:5px; margin-top:3px; }
.wd .dots i{ width:5px; height:5px; border-radius:50%; }
.wd.today b{ color:var(--golds); }
.wd.sel::after{ content:""; position:absolute; left:6px; right:6px; bottom:-1px; height:2px; background:#141414; }
.wd.sel small{ color:var(--text); }
.wd.sel b{ color:var(--text); }
.tl{ position:relative; margin-top:14px; touch-action:pan-y; }
.tl .hr{ position:absolute; left:44px; right:0; height:1px; background:var(--hair); }
.tl .hl{ position:absolute; left:0; width:40px; font-family:var(--font-display); font-weight:500; font-size:11px; letter-spacing:.06em; color:var(--mute); transform:translateY(-7px); }
.blk{ position:absolute; padding:6px 8px; border-radius:6px; border:0; border-left:4px solid; text-align:left; font-family:inherit; color:var(--text); overflow:hidden; cursor:pointer; }
.blk:active{ filter:brightness(.97); }
.blk b{ display:block; font-family:var(--font-body); font-weight:600; font-size:13px; letter-spacing:0; line-height:1.2; }
.blk span{ display:block; font-size:11px; font-weight:600; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.blk small{ display:block; font-size:11px; color:#4a4a4a; white-space:nowrap; }
.tl-empty{ margin-top:14px; padding:22px 14px; text-align:center; border:1px dashed #cfc8ba; border-radius:var(--radius); color:var(--mute); font-size:14px; }
.alldays{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.alldays:empty{ display:none; }
.adchip small{ margin-left:6px; color:var(--mute); font-weight:600; }
.adchip{ appearance:none; border:0; border-left:4px solid; border-radius:8px; padding:7px 10px; min-height:36px; font-family:inherit; font-size:12.5px; font-weight:700; color:var(--text); cursor:pointer; text-align:left; background:#fff; }
.up-h{ font-family:var(--font-display); font-weight:600; font-size:12px; letter-spacing:.22em; color:var(--mute); text-transform:uppercase; margin:24px 0 2px; border-top:1px solid var(--hair); padding-top:16px; }
.up-day{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:600; font-size:var(--fs-tiny); letter-spacing:.2em; color:var(--golds); text-transform:uppercase; margin:16px 0 2px; }
.up-day::after{ content:""; flex:1; height:1px; background:linear-gradient(90deg,rgba(var(--gold-rgb),.55),transparent); }
.ev{ display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid var(--hair); cursor:pointer; }
.ev .bar{ width:2px; align-self:stretch; background:var(--golds); flex:none; }
.ev .et{ font-family:var(--font-body); font-size:var(--fs-card); font-weight:600; letter-spacing:-.005em; line-height:1.3; }
.ev .em{ font-family:var(--font-body); font-size:var(--fs-sec); font-weight:400; letter-spacing:0; color:var(--mute); margin-top:2px; line-height:1.35; }
.ev .em .an{ color:var(--golds); }
.ev .ew{ order:-1; width:64px; text-align:left; font-family:var(--font-display); font-size:13px; font-weight:500; letter-spacing:.04em; text-transform:uppercase; color:var(--text); flex:none; font-variant-numeric:tabular-nums; line-height:1.4; }
.card{ background:#fff; border:1px solid var(--hair); border-radius:var(--radius); padding:14px 16px; margin-top:12px; }
.card .lbl{ font-family:var(--font-display); font-weight:600; font-size:var(--fs-tiny); letter-spacing:.18em; text-transform:uppercase; color:var(--mute); }
.card h2{ font-family:var(--font-display); font-weight:600; font-size:var(--fs-section); letter-spacing:.03em; text-transform:uppercase; margin:4px 0 0; }
.card h2 em{ font-style:normal; color:var(--golds); }
.card p{ margin:8px 0 0; color:var(--dim); font-size:var(--fs-sec); }
.card.gold{ background:var(--slab2); border-color:rgba(var(--gold-rgb),.5); }
.btn{ appearance:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 16px; border-radius:var(--radius); border:1px solid var(--hair); background:#fff; color:var(--text); font-family:var(--font-display); font-weight:600; font-size:var(--fs-label); letter-spacing:.12em; text-transform:uppercase; cursor:pointer; }
.btn.dark{ background:#141414; border-color:#141414; color:var(--gold-lt); }
.btn.gold{ background:var(--gold); border-color:#b08c17; color:var(--ongold); }
.btn.w{ width:100%; }
.btn:active{ transform:scale(.98); }
.actbar{ position:fixed; left:0; right:0; bottom:0; margin:0 auto; max-width:640px; display:flex; gap:4px; padding:8px 12px calc(8px + env(safe-area-inset-bottom)); background:rgba(250,248,243,.94); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-top:1px solid var(--hair); z-index:50; }
.actbar a, .actbar button{ flex:1; min-width:0; padding:0 6px; display:flex; align-items:center; justify-content:center; gap:7px; min-height:48px; border-radius:var(--radius); border:1px solid transparent; background:none; color:var(--text); font-family:var(--font-display); font-weight:600; font-size:12px; letter-spacing:.1em; text-transform:uppercase; cursor:pointer; white-space:nowrap; }
.actbar svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.actbar .on{ background:#141414; border-color:#141414; color:var(--gold-lt); }
.actbar .gold{ background:var(--gold); border-color:#b08c17; color:var(--ongold); }
.gate{ display:none; position:fixed; inset:0; z-index:200; background:var(--navy); align-items:center; justify-content:center; text-align:center; padding:24px; }
.gate.on{ display:flex; }
.gate h2{ font-family:var(--font-display); font-weight:700; font-size:28px; text-transform:uppercase; margin:0; }
.gate p{ color:var(--dim); margin:10px 0 0; }
.sh-scrim{ display:none; position:fixed; inset:0; background:rgba(20,20,20,.35); z-index:1100; align-items:flex-end; justify-content:center; }
.sh-scrim.on{ display:flex; }
.sh-card{ width:100%; max-width:640px; background:#fff; border:1px solid var(--hair); border-radius:14px 14px 0 0; padding:18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow:0 20px 50px rgba(20,20,20,.18); max-height:86dvh; overflow-y:auto; }
.sh-t{ font-family:var(--font-display); font-weight:700; font-size:20px; letter-spacing:.03em; text-transform:uppercase; }
.sh-m{ font-family:var(--font-body); font-weight:400; font-size:var(--fs-sec); letter-spacing:0; color:var(--mute); margin-top:4px; }
.sh-p{ margin:12px 0 0; color:var(--dim); font-size:14.5px; }
.sh-row{ display:flex; gap:8px; margin-top:16px; }
.sh-row .btn{ flex:1; }
.sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ---------- full-screen panel: every form on the phone lives here, never in a sheet ---------- */
.panel{ display:none; position:fixed; inset:0; z-index:900; background:var(--navy); overflow-y:auto; -webkit-overflow-scrolling:touch; }
.panel.on{ display:block; }
.pn-wrap{ max-width:640px; margin:0 auto; padding:0 16px calc(96px + env(safe-area-inset-bottom)); }
.pn-top{ position:sticky; top:0; z-index:2; background:var(--navy); padding:calc(12px + env(safe-area-inset-top)) 0 10px; border-bottom:1px solid var(--hair); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pn-top h2{ margin:0; font-family:var(--font-display); font-weight:700; font-size:22px; letter-spacing:.04em; text-transform:uppercase; }
.pn-top h2 em{ font-style:normal; color:var(--golds); }
.pn-x{ min-height:40px; padding:0 14px; border-radius:10px; border:1px solid var(--hair); background:#fff; font-family:var(--font-display); font-weight:600; font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; cursor:pointer; }
.pn-sub{ color:var(--dim); font-size:14.5px; margin:14px 0 4px; }
.pn-card{ background:#fff; border:1px solid var(--hair); border-radius:var(--radius); padding:14px 16px 16px; margin-top:12px; }
.pn-foot{ position:fixed; left:0; right:0; bottom:0; z-index:3; background:rgba(251,250,247,.96); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-top:1px solid var(--hair); }
.pn-foot .in{ max-width:640px; margin:0 auto; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); display:flex; gap:8px; }
.pn-foot .btn{ flex:1; min-height:50px; }
.fld label{ display:block; font-family:var(--font-display); font-weight:600; font-size:var(--fs-tiny); letter-spacing:.18em; text-transform:uppercase; color:var(--mute); margin:14px 0 6px; }
.fld input, .fld select, .fld textarea{ width:100%; min-height:48px; border:1px solid var(--hair); border-radius:10px; background:#fff; padding:0 12px; font:inherit; font-size:16px; color:var(--text); -webkit-appearance:none; appearance:none; }
.fld select{ background-image:linear-gradient(45deg,transparent 50%,var(--mute) 50%),linear-gradient(135deg,var(--mute) 50%,transparent 50%); background-position:calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size:5px 5px; background-repeat:no-repeat; }
.fld textarea{ padding:12px; min-height:110px; resize:vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; border-color:var(--gold); }
.fld .g2{ display:grid; grid-template-columns:1fr 1fr; gap:0 10px; }
.fld .g3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:0 10px; }
.fld label.agree{ font-family:inherit; font-weight:500; font-size:13.5px; letter-spacing:0; text-transform:none; margin:18px 0 0; }
.fld .agree{ display:grid; grid-template-columns:auto 1fr; gap:12px; align-items:start; margin-top:18px; padding-top:14px; border-top:1px solid var(--hair); font-size:13.5px; line-height:1.5; color:var(--dim); }
.fld .agree input{ -webkit-appearance:checkbox; appearance:auto; width:24px; height:24px; min-height:0; margin:1px 0 0; padding:0; border:0; background:none; accent-color:var(--golds); }
.fld .agree a{ text-decoration:underline; }
.fld .msg{ margin-top:10px; min-height:1.3em; font-weight:600; color:var(--golds); font-size:14px; }
.fld .msg.ok{ color:var(--ok); }

/* dock with five items: icon over label */
.actbar a span{ white-space:nowrap; }
.actbar.five a{ flex-direction:column; gap:3px; padding:0 2px; font-size:9px; letter-spacing:.03em; min-height:54px; }
.actbar.five a span{ max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.actbar.five a svg{ width:20px; height:20px; }
/* tool rows */
.tools{ display:grid; gap:8px; margin-top:12px; }
.tool{ display:flex; align-items:center; gap:12px; background:#fff; border:1px solid var(--hair); border-radius:var(--radius); padding:12px 14px; }
.tool .ti{ width:40px; height:40px; border-radius:12px; background:var(--slab2); color:var(--golds); display:grid; place-items:center; flex:none; }
.tool .ti svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.tool b{ display:block; font-family:var(--font-body); font-weight:600; font-size:var(--fs-card); letter-spacing:-.005em; }
.tool small{ display:block; color:var(--mute); font-size:12.5px; margin-top:2px; }
.tool .go{ margin-left:auto; color:var(--golds); font-family:var(--font-display); font-weight:600; font-size:12px; letter-spacing:.14em; text-transform:uppercase; flex:none; }
.tool.pick{ cursor:pointer; }
.tool .sw{ margin-left:auto; flex:none; width:52px; height:30px; border-radius:999px; background:#d8d4ca; position:relative; border:0; cursor:pointer; transition:background .15s; }
.tool .sw::after{ content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:left .15s; }
.tool .sw.on{ background:var(--gold); }
.tool .sw.on::after{ left:25px; }
.tool .price{ display:block; font-family:var(--font-display); font-weight:700; color:var(--golds); font-size:12px; letter-spacing:.08em; margin-top:2px; }
/* performance */
.tiles{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.tile{ background:#fff; border:1px solid var(--hair); border-radius:var(--radius); padding:12px 14px; cursor:pointer; }
.tile .lbl{ font-family:var(--font-display); font-weight:600; font-size:var(--fs-tiny); letter-spacing:.16em; text-transform:uppercase; color:var(--mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tile b{ display:block; font-family:var(--font-display); font-weight:700; font-size:30px; line-height:1.05; margin-top:4px; font-variant-numeric:tabular-nums; }
.tile b small{ font-size:13px; font-weight:500; color:var(--mute); margin-left:3px; letter-spacing:.04em; }
.tile .d{ font-size:12px; margin-top:4px; color:var(--mute); }
.tile .d.up{ color:var(--ok); font-weight:700; }
.tile .d.dn{ color:var(--red); font-weight:700; }
.tile svg.sp{ width:100%; height:28px; margin-top:8px; display:block; }
.hist{ margin-top:12px; }
.hist .row{ display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid var(--hair); font-variant-numeric:tabular-nums; }
.hist .row b{ font-family:var(--font-display); font-weight:600; }
.hist .row small{ color:var(--mute); }
.recap{ padding:12px 0; border-bottom:1px solid var(--hair); }
.recap .k{ font-family:var(--font-display); font-weight:600; font-size:var(--fs-tiny); letter-spacing:.16em; text-transform:uppercase; color:var(--golds); }
.recap p{ margin:4px 0 0; color:var(--dim); font-size:14.5px; }
.goal{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--hair); }
.goal b{ font-family:var(--font-body); font-weight:600; font-size:15px; letter-spacing:0; }
.goal small{ display:block; color:var(--mute); font-size:12.5px; }
.goal .bar{ flex:1; height:8px; border-radius:4px; background:#ebe7dd; overflow:hidden; }
.goal .bar i{ display:block; height:100%; background:var(--gold); }
.goal .pct{ font-family:var(--font-display); font-weight:700; font-size:14px; min-width:40px; text-align:right; }

/* sign out, at the bottom of every screen */
.signout{ margin-top:28px; padding-top:18px; border-top:1px solid var(--hair); text-align:center; }
.signout .btn{ max-width:280px; margin:0 auto; }
.signout small{ display:block; margin-top:8px; color:var(--mute); font-size:12px; }

/* add-to-day row: dashed, quiet */
.addrow .btn{ border-style:dashed; border-color:#cfc8ba; color:var(--dim); background:none; }
/* parent view of an athlete workout: a line, not the logger */
.woline{ display:flex; align-items:center; gap:12px; margin-top:12px; padding:12px 14px; border:1px solid var(--hair); border-left:3px solid var(--gold); background:#fff; border-radius:var(--radius); cursor:pointer; }
.woline b{ display:block; font-family:var(--font-body); font-weight:600; font-size:var(--fs-card); letter-spacing:-.005em; }
.woline small{ display:block; color:var(--mute); font-size:12.5px; margin-top:2px; }
.woline .go{ margin-left:auto; color:var(--golds); font-family:var(--font-display); font-weight:600; font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; flex:none; }

/* ======================= COURT — the athlete look ======================= */
/* White ground, huge black type, black blocks, gold as a stripe, floating black dock. */
html[data-look="court"]{ --navy:#ffffff; --hair:#e9e9e9; --slab2:#f4f4f4; --radius:12px; --dim:#4a4a4a; --mute:#8a8a8a; --golds:#8a6a00; }
html[data-look="court"] .topbar{ display:none; }
html[data-look="court"] .hdr2{ padding:10px 20px 4px; }
html[data-look="court"] .kicker{ color:var(--golds); letter-spacing:.26em; }
html[data-look="court"] h1{ font-size:34px; letter-spacing:-.01em; }
html[data-look="court"] .hero{ background:#0a0a0a; color:#fff; margin:0; padding:52px 20px 22px; position:relative; overflow:hidden; display:block; }
html[data-look="court"] .hero::before{ content:""; position:absolute; inset:0; background:radial-gradient(120% 90% at 85% 15%,#3a3a3a 0,#0a0a0a 60%); }
html[data-look="court"] .hero > *{ position:relative; }
html[data-look="court"] .hero .kicker{ color:var(--gold); }
html[data-look="court"] .hero h1{ font-size:56px; line-height:.9; margin-top:8px; display:block; color:#fff; }
html[data-look="court"] .hero h1 em{ color:#fff; }
html[data-look="court"] .hero h1 > span{ display:block; }
html[data-look="court"] .hero p{ margin:12px 0 0; color:#cfcfcf; font-size:15px; max-width:260px; }
html[data-look="court"] .hero .cta{ display:inline-flex; align-items:center; gap:8px; margin-top:16px; background:#fff; color:#0a0a0a; font-family:var(--font-display); font-weight:600; font-size:13px; letter-spacing:.16em; text-transform:uppercase; padding:0 18px; height:48px; border-radius:999px; }
html[data-look="court"] .hero .cta svg{ width:18px; height:18px; stroke-width:2.4; }
html[data-look="court"] .hero .navs{ display:none; }
html[data-look="court"] .chip{ border:1.5px solid #0a0a0a; color:#0a0a0a; font-weight:600; }
html[data-look="court"] .chip.on{ background:#0a0a0a; color:#fff; }
html[data-look="court"] .wkbar{ border:0; }
html[data-look="court"] .wkweek{ gap:4px; padding:0 2px; }
html[data-look="court"] .wd{ background:#f4f4f4; border-radius:12px; min-height:60px; }
html[data-look="court"] .wd b{ font-size:20px; }
html[data-look="court"] .wd.sel{ background:#0a0a0a; }
html[data-look="court"] .wd.sel::after{ display:none; }
html[data-look="court"] .wd.sel small{ color:#aaa; }
html[data-look="court"] .wd.sel b{ color:#fff; }
html[data-look="court"] .wd.sel .dots i{ background:#fff !important; }
html[data-look="court"] .wkh b{ font-size:22px; letter-spacing:-.01em; }
html[data-look="court"] .up-h{ font-size:24px; letter-spacing:-.01em; color:var(--text); border-top:0; padding-top:8px; margin-top:20px; }
html[data-look="court"] .up-day{ color:var(--mute); }
html[data-look="court"] .up-day::after{ display:none; }
html[data-look="court"] .ev{ border-top:1.5px solid #0a0a0a; border-bottom:0; padding:16px 0; }
html[data-look="court"] .up-day + .ev{ border-top:0; padding-top:8px; }
html[data-look="court"] .ev .bar{ display:none; }
html[data-look="court"] .ev .et{ font-size:20px; font-weight:600; letter-spacing:.01em; line-height:1; }
html[data-look="court"] .ev .ew{ order:0; margin-left:auto; width:auto; text-align:right; font-weight:600; font-size:15px; }
html[data-look="court"] .blk{ border-radius:10px; }
html[data-look="court"] .card{ border:1.5px solid #0a0a0a; }
html[data-look="court"] .card.gold{ background:#0a0a0a; border-color:#0a0a0a; color:#fff; }
html[data-look="court"] .card.gold .lbl{ color:var(--gold); }
html[data-look="court"] .card.gold h2{ color:#fff; font-size:26px; }
html[data-look="court"] .card.gold h2 em{ color:var(--gold); }
html[data-look="court"] .card.gold p{ color:#cfcfcf; }
html[data-look="court"] .card.gold .btn.dark{ background:#fff; color:#0a0a0a; border-color:#fff; border-radius:999px; }
html[data-look="court"] .btn{ border-radius:999px; border-width:1.5px; border-color:#0a0a0a; }
html[data-look="court"] .btn.dark{ background:#0a0a0a; color:#fff; }
html[data-look="court"] .btn.gold{ border-color:var(--gold); }
html[data-look="court"] .addrow .btn{ border-style:solid; border-color:#0a0a0a; color:#0a0a0a; }
html[data-look="court"] .actbar{ left:14px; right:14px; bottom:14px; max-width:612px; background:#0a0a0a; border:0; border-radius:22px; padding:8px 6px; box-shadow:0 14px 34px rgba(0,0,0,.28); }
html[data-look="court"] .actbar a, html[data-look="court"] .actbar button{ color:#8a8a8a; border:0; }
html[data-look="court"] .actbar .on{ background:none; color:#fff; }
html[data-look="court"] .actbar .gold{ background:none; color:var(--gold); }
html[data-look="court"] .calwrap{ padding-bottom:calc(118px + env(safe-area-inset-bottom)); }
html[data-look="court"] .sh-card, html[data-look="court"] .pn-card, html[data-look="court"] .tool, html[data-look="court"] .tile{ border-color:#e9e9e9; }
html[data-look="court"] .pn-top h2{ font-size:28px; }
html[data-look="court"] .fld input, html[data-look="court"] .fld select, html[data-look="court"] .fld textarea{ border-radius:12px; border-color:#d6d6d6; }
html[data-look="court"] .tool .ti{ background:#0a0a0a; color:var(--gold); border-radius:999px; }
html[data-look="court"] .tile b{ font-size:36px; }
html[data-look="court"] .gate, html[data-look="court"] .panel{ background:#fff; }
html[data-look="court"] .pn-top, html[data-look="court"] .pn-foot{ background:rgba(255,255,255,.96); }

/* exercise demo viewer */
.dm-scrim{ position:fixed; inset:0; z-index:1200; background:rgba(10,10,10,.72); display:flex; align-items:center; justify-content:center; padding:16px; padding-top:calc(16px + env(safe-area-inset-top)); padding-bottom:calc(16px + env(safe-area-inset-bottom)); }
.dm-card{ width:100%; max-width:560px; max-height:100%; overflow-y:auto; background:#0a0a0a; color:#fff; border-radius:16px; box-shadow:0 24px 60px rgba(0,0,0,.4); }
.dm-v{ position:relative; width:100%; aspect-ratio:16/9; background:#000; border-radius:16px 16px 0 0; overflow:hidden; }
.dm-v iframe, .dm-v video{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.dm-none{ display:grid; place-items:center; padding:20px; text-align:center; color:#bdbdbd; font-size:14px; }
.dm-b{ padding:14px 18px 18px; }
.dm-k{ font-family:var(--font-display); font-weight:600; font-size:var(--fs-tiny); letter-spacing:.24em; text-transform:uppercase; color:var(--gold); }
.dm-t{ font-family:var(--font-display); font-weight:600; font-size:24px; line-height:1.05; text-transform:uppercase; margin-top:4px; }
.dm-tg{ font-family:var(--font-display); font-size:13px; letter-spacing:.06em; color:var(--gold-lt); margin-top:6px; }
.dm-c{ margin:10px 0 0; color:#cfcfcf; font-size:14.5px; line-height:1.5; }
.dm-row{ display:flex; gap:8px; margin-top:14px; }
.dm-row > *{ flex:1; min-height:46px; border-radius:999px; display:grid; place-items:center; font-family:var(--font-display); font-weight:600; font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; cursor:pointer; }
.dm-yt{ border:1.5px solid #3a3a3a; color:#fff; }
.dm-x{ border:0; background:#fff; color:#0a0a0a; }
.demo-btn{ display:inline-flex; align-items:center; gap:6px; margin-top:8px; min-height:36px; padding:0 12px; border-radius:999px; border:1px solid var(--hair); background:#fff; color:var(--text); font-family:var(--font-display); font-weight:600; font-size:11px; letter-spacing:.14em; text-transform:uppercase; cursor:pointer; }
.demo-btn svg{ width:12px; height:12px; fill:currentColor; }
html[data-look="court"] .demo-btn{ border:1.5px solid #0a0a0a; }

/* On mouse and trackpad screens, side-scrolling rows show a thin slider bar (phones keep it hidden). Nov 3. */
@media (hover: hover) and (pointer: fine){
  html .nt-row, html .nbs, html .chips[id]{ scrollbar-width:thin; scrollbar-color:rgba(0,0,0,.28) transparent; padding-bottom:10px; }
  html .nt-row::-webkit-scrollbar, html .nbs::-webkit-scrollbar, html .chips[id]::-webkit-scrollbar{ display:block; height:6px; }
  html .nt-row::-webkit-scrollbar-thumb, html .nbs::-webkit-scrollbar-thumb, html .chips[id]::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.28); border-radius:999px; }
  html .nt-row::-webkit-scrollbar-track, html .nbs::-webkit-scrollbar-track, html .chips[id]::-webkit-scrollbar-track{ background:transparent; }
}

/* Team brand (Nov 4): set by p1app.js for teams other than Player 1. The brand color is already in the
   gold tokens; this is the rest of the look: white page, black headers, a black band with the team's mark. */
html[data-brand] .topbar{ display:flex; align-items:center; justify-content:space-between; height:48px; padding:0 16px; background:#000 var(--brand-logo,none) left 16px center/auto 32px no-repeat; }
html[data-brand] .topbar::after{ content:"Powered by Player 1 Performance"; font-family:var(--font-display); font-weight:500; font-size:var(--fs-tiny); letter-spacing:.16em; text-transform:uppercase; color:var(--mute); margin-left:auto; white-space:nowrap; }
html[data-brand] h1 em, html[data-brand] h1 .dotsep, html[data-brand] .wkh b{ color:var(--text); }
html[data-brand] .navs button, html[data-brand] .navs a, html[data-brand] .chip, html[data-brand] .card{ border-color:#d9d9d9; }
html[data-brand] .chip.on{ background:#000; border-color:#000; }
html[data-brand] .wd.sel::after{ background:#000; }
html[data-brand] .actbar{ background:rgba(255,255,255,.94); }
html[data-brand] .btn.gold, html[data-brand] .actbar .gold{ border-color:var(--golds); }

/* v2: one visible focus ring for keyboard users, and motion off when the phone asks. */
:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){ *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; } }
.num, .tab-num{ font-variant-numeric:tabular-nums; }
