/* PRIO: one small design system for every screen.
   Sizes are in rem so iPhone "Larger Text" (via -apple-system-body) and browser zoom scale the whole interface. */
:root{
 color-scheme:dark;--seg-off:rgba(255,255,255,.09);--dot-off:#2f3a32;
 --bg:#040605;--card:rgba(15,21,17,.94);--card-2:rgba(22,30,24,.96);--card-solid:#0f1511;
 --line:rgba(200,255,212,.085);--line-2:rgba(200,255,212,.15);--line-3:rgba(200,255,212,.24);
 --text:#f1f4f1;--text-2:#a9b3ab;--text-3:#7c877f;
 --mint:#98df9b;--mint-2:#80d78a;--mint-text:#a4e6a9;--mint-ink:#08170b;
 --forest:#2a4f31;--forest-2:#1b3420;--forest-3:#25452b;
 --danger:#ff7350;--warn:#f0c674;
 --radius:16px;--radius-sm:12px;
 --font:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
 --display:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter Display",Inter,system-ui,"Segoe UI",Roboto,Arial,sans-serif;
}
html{font-size:106.25%;background:var(--bg);-webkit-text-size-adjust:100%;text-size-adjust:100%}
@supports (font:-apple-system-body){html{font:-apple-system-body}}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;min-height:100dvh;font-family:var(--font);color:var(--text);background:transparent;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;line-height:1.35}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;-webkit-appearance:none;appearance:none}
button:disabled{opacity:.5;cursor:not-allowed}
a{color:var(--mint-text);text-underline-offset:3px}
:focus-visible{outline:3px solid #b8f3c4;outline-offset:2px;border-radius:8px}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
svg{display:block;flex:none}
#view :is(h1,h2,h3,p,li){overflow-wrap:anywhere}
.ic{width:1.45rem;height:1.45rem}

/* Court photograph behind the interface: fixed, darkened, fading out toward the top. Its height is the full
   screen (lvh), not inset:0: when Safari's toolbar collapsed mid-scroll, inset:0 changed its height, "cover"
   rescaled the photo and the court line slid 17-30px sideways. */
.backdrop{position:fixed;top:0;left:0;right:0;height:100vh;height:100lvh;z-index:-1;background:#040605 url(/court.jpg) center bottom/cover no-repeat;opacity:.62;
 -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.15) 30%,#000 82%);mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.15) 30%,#000 82%)}
body.home .backdrop{opacity:.32}
.shell{width:100%;max-width:460px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 44px);outline:none}
@media(max-width:360px){.shell{padding-left:12px;padding-right:12px}}

/* ---------- Headers ---------- */
.top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 16px}
.brand{min-width:0;display:flex;align-items:center;gap:11px}
.mark{width:38px;height:38px;flex:none;display:block;border-radius:9px;box-shadow:0 0 0 1px rgba(245,241,230,.1)}
.brand .brand-name{letter-spacing:.14em;font-weight:700}
.auth-brand .brand-sub{letter-spacing:.03em;font-size:.72rem;margin-top:4px}
.brand-name{margin:0;outline:none;font-family:var(--display);font-size:min(1.25rem,5.4vw);font-weight:650;letter-spacing:-.024em;line-height:1.15}
.brand-sub{font-size:.64rem;letter-spacing:.32em;color:var(--text-2);margin-top:6px;font-weight:500}
.top-actions{display:flex;gap:10px;flex:none}
.icon-btn{position:relative;width:44px;height:44px;border-radius:50%;border:1px solid var(--line-2);background:rgba(17,25,19,.82);display:grid;place-items:center;color:var(--text);padding:0;text-decoration:none;overflow:hidden}
.icon-btn img{width:100%;height:100%;object-fit:cover}
.icon-btn .ic{width:1.3rem;height:1.3rem}
.dot{position:absolute;top:7px;right:8px;width:10px;height:10px;border-radius:50%;background:var(--mint-2);box-shadow:0 0 0 2px #101812}
.bar{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;margin:2px -10px 18px;min-height:52px}
.bar h1{grid-column:2;min-width:0;overflow-wrap:anywhere;text-align:center;font-family:var(--display);font-size:1.22rem;font-weight:650;margin:0;letter-spacing:-.015em;outline:none;line-height:1.2}
.bar .nav{width:48px;height:48px;display:grid;place-items:center;border:0;background:transparent;color:var(--text);padding:0;border-radius:12px;text-decoration:none}
.bar .nav .ic{width:min(1.6rem,30px);height:min(1.6rem,30px)}

/* ---------- Segmented controls ---------- */
.seg{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--line-2);border-radius:14px;background:rgba(13,19,15,.88);margin:0 0 14px}
.seg button,.seg a{flex:1;min-height:40px;border:0;border-radius:10px;background:transparent;color:var(--text-2);font-size:.94rem;font-weight:500;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 6px;text-decoration:none;white-space:nowrap}
.seg [aria-pressed=true],.seg [aria-current=page]{background:var(--forest);color:#fff;font-weight:600;box-shadow:inset 0 0 0 1px rgba(160,230,170,.16)}
.seg .ic{width:1.2rem;height:1.2rem}
.seg.small button{font-size:.8rem;min-height:38px;gap:4px;padding:0 4px}
.seg.small .n{color:inherit;opacity:.8;font-variant-numeric:tabular-nums}

/* ---------- Surfaces ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px 13px}
.sec{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:24px 0 11px}
.sec h2{font-family:var(--display);font-size:1.38rem;font-weight:700;letter-spacing:-.025em;margin:0;line-height:1.15}
.sec h2.sm{font-size:1.12rem}
.sec a,.sec .aside{font-size:.9rem;color:var(--mint-text);text-decoration:none;display:inline-flex;align-items:center;gap:2px;white-space:nowrap}
.sec .aside{color:var(--text-2)}
.sec a .ic{width:1.15rem;height:1.15rem}
.lead{color:var(--text-2);font-size:.94rem;line-height:1.45;margin:8px 0 0}
.note-text{color:var(--text-3);font-size:.8rem;line-height:1.45;margin:10px 4px 0}
.pill{display:inline-block;padding:5px 9px;border-radius:7px;background:rgba(58,108,64,.5);color:var(--mint-text);font-size:.66rem;font-weight:650;letter-spacing:.09em;text-transform:uppercase;line-height:1.2}
.pill.quiet{background:rgba(255,255,255,.07);color:var(--text-2)}
.badge{display:inline-block;font-size:.7rem;font-weight:650;letter-spacing:.04em;padding:3px 7px;border-radius:6px;background:rgba(58,108,64,.5);color:var(--mint-text);vertical-align:2px;margin-left:6px}

/* Find a Pod */
.find-head{display:flex;gap:14px;align-items:center}
.tile{width:3.05rem;height:3.05rem;border-radius:14px;background:var(--forest-2);display:grid;place-items:center;color:var(--mint-text);flex:none}
.tile .ic{width:1.6rem;height:1.6rem}
.find h2{font-family:var(--display);font-size:1.24rem;font-weight:700;margin:0;letter-spacing:-.022em}
.find p{margin:3px 0 0;color:var(--text-2);font-size:.9rem}
.find{padding:13px 10px 10px}
.find .find-head{padding:0 3px}
.duo{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8.6rem,100%),1fr));gap:9px;margin-top:13px;container-type:inline-size}
/* Only once the two buttons have stacked (large text): icon, label and chevron may flow onto a new line. */
@container (max-width:17.8rem){.ghost{flex-wrap:wrap}}
.ghost{display:flex;align-items:center;gap:8px;min-height:54px;padding:8px 5px 8px 11px;white-space:nowrap;border:1px solid var(--line-2);border-radius:12px;background:rgba(9,14,11,.55);color:var(--text);font-size:.92rem;font-weight:500;text-decoration:none;text-align:left;width:100%}
.ghost>.ic:first-child{color:var(--mint-text);width:1.5rem;height:1.5rem}
.ghost .chev{margin-left:auto;color:var(--text-2);width:1.1rem;height:1.1rem}


/* Pod cards (court photograph inside, text kept on the dark side) */
.pod-card{position:relative;overflow:hidden;border-radius:18px;border:1px solid var(--line-2);padding:14px;background:#0a100c url(/court.jpg) 0% 71%/205% auto no-repeat;margin-bottom:12px}
.pod-card::before{content:"";position:absolute;inset:0;background:linear-gradient(97deg,rgba(7,11,8,.96) 0%,rgba(7,11,8,.86) 34%,rgba(7,11,8,.38) 66%,rgba(7,11,8,.12) 100%)}
.pod-card>*{position:relative}
.pod-card .head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.pod-card h3,.pod-card .pod-name{font-family:var(--display);font-size:1.3rem;font-weight:700;margin:11px 0 3px;letter-spacing:-.022em;line-height:1.2}
.meta{color:var(--text-2);font-size:.94rem}
.square-btn{width:42px;height:42px;border-radius:10px;border:1px solid var(--line-3);background:rgba(8,12,9,.6);display:grid;place-items:center;color:var(--text);text-decoration:none;flex:none}
.people{display:flex;align-items:center;gap:10px;margin-top:13px;color:var(--text-2);font-size:.98rem}
.people>span{min-width:0;overflow-wrap:anywhere}
.stack{display:flex;gap:4px}
.av{width:1.8rem;height:1.8rem;border-radius:50%;background:#28472d;color:var(--mint-text);display:grid;place-items:center;overflow:hidden;font-size:.74rem;font-weight:650;flex:none}
.av img{width:100%;height:100%;object-fit:cover}
.av .ic{width:1rem;height:1rem}
.av.sm{width:1.55rem;height:1.55rem}
.stack .av.sm+.av.sm{margin-left:-9px;box-shadow:0 0 0 2px #0f1511}
.av.sm .ic{width:.85rem;height:.85rem}
.av.md{width:2.45rem;height:2.45rem;margin:0;font-size:.84rem}
.av.lg{width:2.3rem;height:2.3rem;margin:0}

/* Pod interior */
.pod-id{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:center;margin:2px 0 18px}
.pod-id>div{flex:1 1 11rem;min-width:0}
.pod-id .tile{width:3.6rem;height:3.6rem;border-radius:16px}
.pod-id .tile .ic{width:1.9rem;height:1.9rem}
.eyebrow{font-size:.74rem;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--mint-text)}
.pod-id .pod-name{font-family:var(--display);font-size:1.52rem;font-weight:700;letter-spacing:-.025em;margin:3px 0 2px;line-height:1.15;overflow-wrap:anywhere}
.practice,.play{margin-bottom:14px;padding:16px 15px}
.practice-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.practice-head h3,.play h3{font-family:var(--display);font-size:1.18rem;font-weight:700;margin:0;letter-spacing:-.015em;line-height:1.25;overflow-wrap:anywhere}
.practice-head .count{color:var(--mint-text);font-size:.92rem;white-space:nowrap}
.segbar{display:flex;gap:6px;margin:14px 0 4px}
.segbar span{flex:1;height:5px;border-radius:99px;background:var(--seg-off)}
.segbar span.on{background:var(--mint-2)}
.practice .track{margin:14px 0 4px}
.practice-list .row{padding:10px 2px;min-height:3.2rem;border-top:1px solid var(--line)}
.practice-list .row:first-child{border-top:0}
.state-dot{width:1.65rem;height:1.65rem;border-radius:50%;background:var(--dot-off);display:grid;place-items:center;flex:none;color:transparent}
.state-dot .ic{width:.95rem;height:.95rem}
.state-dot.done{background:transparent;border:1.8px solid var(--mint-2);color:var(--mint-2)}
.state-dot.no{background:transparent;border:1.6px solid var(--text-3);color:var(--text-2)}
.pill.next{font-size:.62rem;padding:3px 7px}
.practice-src,.practice-empty{color:var(--text-2);font-size:.88rem;line-height:1.45;margin:10px 0 4px}
.practice .btn{margin-top:12px}
.play-head{display:flex;gap:16px;align-items:flex-start}
.play-head>div{flex:1;min-width:0;overflow-wrap:anywhere}
.play-head>.ic{width:1.9rem;height:1.9rem;color:var(--text);margin-top:2px}
.play h3{margin-top:3px}
.play-sub{color:var(--text-2);font-size:.82rem;line-height:1.4;margin:6px 0 0}
.play .btn{margin-top:14px}
.play>.play-sub{margin-top:10px;text-align:center}
.also{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:.86rem;color:var(--text-2)}
.also span{flex:1;min-width:0;overflow-wrap:anywhere}
.also a{display:inline-flex;align-items:center;gap:3px;font-weight:600;min-height:40px}
.also a .ic{width:.95rem;height:.95rem}

/* Buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;border-radius:var(--radius-sm);border:0;font-size:1rem;font-weight:600;text-decoration:none;padding:10px 16px;text-align:center;line-height:1.2}
.btn,.btn>span{min-width:0;overflow-wrap:anywhere}
.btn .ic{width:1.3rem;height:1.3rem}
.btn-mint{background:var(--mint);color:var(--mint-ink)}
.btn-mint:active{background:#86d48b}
.btn-line{background:rgba(9,14,11,.5);color:var(--text);border:1px solid var(--line-3)}
.btn-danger{background:transparent;color:var(--danger);border:1px solid rgba(255,115,80,.4)}
.btn+.btn{margin-top:10px}
.pod-card .btn{margin-top:14px}
.textbtn{background:none;border:0;color:var(--mint-text);font-size:.95rem;font-weight:500;padding:10px 4px;min-height:44px;text-decoration:underline;text-underline-offset:3px}
.textbtn.quiet{color:var(--text-2)}
.center{text-align:center}

/* Lists and rows */
.list{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.list+.list,.list+.btn,.btn+.list{margin-top:14px}
.row{display:flex;align-items:center;gap:14px;min-height:3.3rem;padding:9px 14px;border:0;border-top:1px solid var(--line);color:var(--text);text-decoration:none;width:100%;background:transparent;font-size:.96rem;text-align:left;line-height:1.3;overflow-wrap:anywhere}
.row:first-child{border-top:0}
button.row:active,a.row:active{background:rgba(255,255,255,.03)}
.row>.ic{color:var(--text);width:1.4rem;height:1.4rem}
.row .lbl{flex:1;min-width:0;overflow-wrap:anywhere}
.row .sub{display:block;font-size:.8rem;color:var(--text-2);margin-top:2px}
.row .chev{color:var(--text-2);width:1.25rem;height:1.25rem}
.row .end{color:var(--text-2);font-size:.86rem;display:flex;align-items:center;gap:8px;text-align:right;flex-shrink:1;min-width:0}
.row.danger,.row.danger>.ic{color:var(--danger)}
.stacked{background:none;border:0;border-radius:0;overflow:visible;display:grid;gap:10px}
.stacked .row{background:var(--card);border:1px solid var(--line);border-radius:14px;min-height:4.3rem;padding:12px 14px}
.stacked .row:first-child{border-top:1px solid var(--line)}
.stacked .row>.ic{color:var(--mint-text);width:1.75rem;height:1.75rem}
.stacked .row .lbl{font-weight:600;font-size:1.04rem}
.stacked .row .sub{font-weight:400}
.actions .row{font-weight:600;font-size:1rem}
.fold{display:inline-flex;align-items:center;gap:8px;background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;min-height:44px}
.fold-chev{width:1.1rem;height:1.1rem;color:var(--text-2);transition:transform .15s}
.fold[aria-expanded=true] .fold-chev{transform:rotate(90deg)}
.actions .row>.ic{color:var(--mint-text)}
.activity .row{min-height:2.9rem;padding-top:7px;padding-bottom:7px}
.activity .row .lbl{font-size:.88rem;line-height:1.35}
.activity .row>.ic{width:1.25rem;height:1.25rem;color:var(--mint-text)}
.row.dim{opacity:.62}
.row strong{font-weight:600}
.pod-row .lbl strong{display:block;font-size:.98rem;font-weight:600}
.pod-row .people{margin:0;gap:8px;font-size:.88rem}

/* Switch (the whole row is the control) */
.switch{width:51px;height:31px;border-radius:999px;background:#3b413d;position:relative;flex:none;transition:background .18s}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;transition:transform .18s;box-shadow:0 2px 5px rgba(0,0,0,.35)}
[aria-checked=true]>.switch{background:var(--mint-2)}
[aria-checked=true]>.switch::after{transform:translateX(20px)}
.box{width:26px;height:26px;border-radius:7px;border:1.6px solid #8d978f;display:grid;place-items:center;flex:none;color:transparent}
.box .ic{width:1rem;height:1rem}
[aria-checked=true]>.box{background:var(--mint-2);border-color:var(--mint-2);color:var(--mint-ink)}
[aria-checked=mixed]>.box{border-color:var(--mint-2);color:transparent;position:relative}
[aria-checked=mixed]>.box::after{content:"";position:absolute;width:12px;height:2px;border-radius:2px;background:var(--mint-2)}

/* Drill card */
.drill .top-line{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 10px}
.drill .from{display:flex;align-items:center;gap:8px;color:var(--text-2);font-size:.88rem;min-width:0}
.drill h3{font-family:var(--display);font-size:1.34rem;font-weight:700;letter-spacing:-.022em;margin:12px 0 0;line-height:1.2;outline:none;overflow-wrap:anywhere}
.drill .details{color:#d6ddd7;font-size:.94rem;line-height:1.5;margin:8px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.drill .facts{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px;color:var(--text-2);font-size:.84rem}
.drill .facts span{display:inline-flex;align-items:center;gap:6px}
.drill .facts .ic{width:1.1rem;height:1.1rem}
.drill .facts .late{color:var(--warn)}
.answer{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.answer .btn{min-height:52px;font-size:.96rem;padding:8px 10px}
.answer .btn+.btn{margin-top:0}
.answer [aria-pressed=true].btn-line{border-color:var(--mint-2);color:var(--mint-text)}
@media(max-width:340px){.answer{grid-template-columns:1fr}}
.progress{margin-top:16px}
.progress .lbls{display:flex;justify-content:space-between;color:var(--text-2);font-size:.82rem}
.track{height:5px;border-radius:99px;background:rgba(255,255,255,.09);margin-top:8px;overflow:hidden}
.fill{height:100%;border-radius:99px;background:var(--mint-2);transition:width .3s ease}
.group-stat{color:var(--text-3);font-size:.84rem;margin-top:8px}
.drill.swap{animation:swap .28s ease}
@keyframes swap{from{opacity:.25;transform:translateY(6px)}to{opacity:1;transform:none}}
.upnext{margin-top:12px}
.upnext .row{min-height:3.1rem;opacity:.72}
.upnext .row .sub{font-size:.8rem}
.state-ic{width:1.35rem;height:1.35rem;color:var(--text-3)}
.state-ic.done{color:var(--mint-2)}

/* Notices, prompts and status */
.notice{display:flex;gap:12px;align-items:flex-start;padding:12px 13px;margin:12px 0 0;border-color:rgba(152,223,155,.25)}
.notice>div{min-width:0;overflow-wrap:anywhere}
.notice .ic{color:var(--mint-text);margin-top:2px}
.notice strong{display:block;font-size:.94rem}
.notice p{margin:2px 0 0;color:var(--text-2);font-size:.86rem;line-height:1.4}
.notice a{display:inline-flex;align-items:center;gap:4px;min-height:40px;font-weight:600;font-size:.9rem}
.notice a .ic{width:1rem;height:1rem;margin:0}
.prompt{margin-top:14px;padding:13px}
.prompt-head{display:flex;gap:12px;align-items:flex-start}
.prompt-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.prompt-actions .mini{flex:1 1 auto;min-height:42px;white-space:normal;overflow-wrap:anywhere}
.prompt.inline{display:flex;gap:12px;align-items:center}
.prompt .ic{color:var(--mint-text)}
.prompt .txt{flex:1;min-width:0;font-size:.9rem;line-height:1.35}
.prompt .txt span{display:block;color:var(--text-2);font-size:.85rem;margin-top:2px}
.mini{border:0;border-radius:10px;background:var(--mint);color:var(--mint-ink);font-weight:600;font-size:.9rem;padding:9px 12px;min-height:40px;white-space:nowrap}
.mini.line{background:transparent;color:var(--text);border:1px solid var(--line-3)}
.status{min-height:1.2em;font-size:.92rem;color:var(--mint-text);margin:10px 4px 0;line-height:1.4}
.status:empty{margin:0;min-height:0}
.status.error{color:#ffb3a1}
.empty{text-align:center;padding:30px 18px;color:var(--text-2);overflow-wrap:anywhere}
.empty .ic{width:2.2rem;height:2.2rem;margin:0 auto 12px;color:var(--text-3)}
.empty strong{display:block;color:var(--text);font-size:1.1rem;margin-bottom:6px}
.empty p{margin:0;font-size:.95rem;line-height:1.45}

/* Notifications */
.note{position:relative;display:grid;grid-template-columns:1.8rem 1fr auto;column-gap:14px;row-gap:3px;align-items:start;padding:15px 14px;background:var(--card);border:1px solid var(--line);border-radius:14px;margin-bottom:8px;color:inherit;text-decoration:none;width:100%;text-align:left;font-size:1rem}
.note>.ic{grid-row:1/3;margin-top:3px;width:1.65rem;height:1.65rem;color:var(--text)}
.note>*{min-width:0}
.note strong{font-size:.98rem;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.note .body{grid-column:2/4;color:var(--text-2);font-size:.9rem;line-height:1.35;overflow-wrap:anywhere}
.note time{color:var(--text-2);font-size:.84rem;white-space:nowrap}
.note.unread::before{content:"";position:absolute;left:-11px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--mint-2)}
.note-wrap{position:relative}
.note-tools{display:flex;gap:8px;margin:-2px 0 10px}
.note-tools .mini{flex:1}

/* Settings */
.profile{display:flex;align-items:center;gap:18px;margin:2px 0 18px;color:inherit;text-decoration:none;min-height:92px}
.avatar-xl{position:relative;width:min(5.4rem,28vw);height:min(5.4rem,28vw);border-radius:50%;flex:none;background:var(--forest-2);display:grid;place-items:center;font-size:2rem;font-weight:600;color:var(--mint-text);font-family:var(--display)}
.avatar-xl img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.avatar-xl .cam{position:absolute;right:-2px;bottom:1px;width:2rem;height:2rem;border-radius:50%;background:#1c2b1f;border:2px solid var(--bg);display:grid;place-items:center;color:#fff}
.avatar-xl .cam .ic{width:1rem;height:1rem}
.profile .who{flex:1;min-width:0}
.profile .who strong{display:block;font-family:var(--display);font-size:1.32rem;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere}
.profile .who span{display:block;color:var(--text-2);font-size:.94rem;margin-top:3px;overflow-wrap:anywhere}
.profile>.ic{color:var(--text-2)}

/* Coach composer fields */
.field{display:flex;gap:14px;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:12px;position:relative}
.field>.ic{margin-top:1px;color:var(--text);width:1.35rem;height:1.35rem}
.field .in{flex:1;min-width:0;overflow-wrap:anywhere}
.field label,.field .label{display:block;font-size:.76rem;color:var(--text-2);margin-bottom:3px}
.field input,.field textarea,.field select{display:block;width:100%;background:transparent;border:0;color:var(--text);font-size:max(16px,.96rem);padding:2px 0;outline:none;border-radius:0}
.field textarea{min-height:4.6rem;resize:vertical;line-height:1.45}
.field select{-webkit-appearance:none;appearance:none}
.field:focus-within{border-color:rgba(160,230,170,.5)}
.field.pick{align-items:center}
.field.pick .chev{color:var(--text-2);width:1.2rem;height:1.2rem}
.field.pick select{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;font-size:16px}
.field.toggle{align-items:center;cursor:pointer}
.field.toggle .in{font-size:1rem}
.field input::placeholder,.field textarea::placeholder{color:var(--text-3)}
.field .count{position:absolute;right:12px;bottom:8px;font-size:.72rem;color:var(--text-3)}
.input{width:100%;min-height:52px;border-radius:12px;border:1px solid var(--line-2);background:rgba(9,14,11,.6);padding:12px 14px;font-size:max(16px,1rem);color:var(--text)}
.input:focus{outline:none;border-color:rgba(160,230,170,.55)}
.label-out{display:block;font-size:.9rem;color:var(--text-2);margin:16px 4px 8px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid var(--line-2);border-radius:10px;background:rgba(9,14,11,.55);color:var(--text-2);min-height:44px;padding:8px 13px;font-size:.92rem;font-weight:500}
.chip[aria-pressed=true]{background:var(--forest);border-color:rgba(160,230,170,.3);color:#fff}
.set-item{display:flex;align-items:center;gap:14px}
.set-item .lbl small{display:block;color:var(--text-2);font-size:.82rem;margin-top:2px}
.done-hero{text-align:center;padding:28px 10px 6px}
.done-hero .ic{width:4.4rem;height:4.4rem;color:var(--mint-2);margin:0 auto 16px;stroke-width:1.5}
.done-hero h1{font-family:var(--display);font-size:1.6rem;margin:0 0 8px;letter-spacing:-.02em;outline:none}
.done-hero p{color:var(--text-2);margin:0 0 6px;font-size:1rem;line-height:1.45}
.summary{display:flex;gap:14px;align-items:center}
.summary>div{min-width:0;overflow-wrap:anywhere}
.summary .ic{color:var(--text)}
.summary strong{display:block;font-size:1.04rem;font-weight:650}
.summary span{color:var(--text-2);font-size:.84rem}
.status-mark{width:1.6rem;height:1.6rem;border-radius:50%;border:1.6px solid #6f7a72;display:grid;place-items:center;flex:none;color:transparent}
.status-mark .ic{width:.95rem;height:.95rem}
.status-mark.done{background:var(--mint-2);border-color:var(--mint-2);color:var(--mint-ink)}
.status-mark.no{border-color:#9aa39c;color:#c9d0ca}
.kv{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--line);font-size:.95rem}
.kv:first-child{border-top:0}
.kv span:first-child{color:var(--text-2)}
.kv span{min-width:0;overflow-wrap:anywhere}
.link-box{border:1px dashed var(--line-3);border-radius:12px;padding:12px;font-size:.88rem;color:var(--text-2);overflow-wrap:anywhere;margin:12px 0}
.steps{margin:0;padding:0;list-style:none;counter-reset:s}
.steps li{display:grid;grid-template-columns:2rem 1fr;gap:12px;align-items:start;padding:12px 16px;border-top:1px solid var(--line);font-size:.98rem;line-height:1.45;counter-increment:s}
.steps li:first-child{border-top:0}
.steps li::before{content:counter(s);width:1.7rem;height:1.7rem;border-radius:50%;background:var(--forest-2);color:var(--mint-text);display:grid;place-items:center;font-weight:650;font-size:.85rem}
.steps .glyph{display:inline-flex;vertical-align:-4px;padding:2px 5px;border-radius:6px;background:rgba(255,255,255,.08);margin:0 2px}
.steps .glyph .ic{width:1.05rem;height:1.05rem}
details.help{border-top:1px solid var(--line)}
details.help:first-child{border-top:0}
details.help summary{list-style:none;padding:15px 16px;font-size:1rem;cursor:pointer;display:flex;justify-content:space-between;gap:10px;align-items:center}
details.help summary::-webkit-details-marker{display:none}
details.help summary .chev{transition:transform .15s;color:var(--text-2)}
details.help[open] summary .chev{transform:rotate(90deg)}
details.help p{margin:0;padding:0 16px 16px;color:var(--text-2);font-size:.95rem;line-height:1.5}

/* Sign in */
.auth h1{font-family:var(--display);font-size:2rem;letter-spacing:-.035em;margin:26px 0 0;line-height:1.1;outline:none}
.auth form{margin-top:22px}
.auth .card.info{margin-top:18px;font-size:.92rem;line-height:1.5;color:#d3dcd4}
.check-line{display:flex;gap:12px;align-items:flex-start;font-size:.95rem;color:#d3dcd4;line-height:1.4;margin:6px 4px 14px}
.check-line input{width:22px;height:22px;margin:0;accent-color:var(--mint-2);flex:none}
.auth .onb-note{margin:-4px 4px 14px}
.links{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:6px}

/* Sheets, toasts */
.scrim{position:fixed;inset:0;z-index:30;background:rgba(0,0,0,.66);display:flex;align-items:flex-end;justify-content:center;animation:fade .15s ease}
.sheet{width:min(100%,470px);max-height:88vh;overflow:auto;background:#0e1410;border:1px solid var(--line-2);border-bottom:0;border-radius:20px 20px 0 0;padding:20px 20px calc(env(safe-area-inset-bottom) + 20px);animation:rise .2s ease}
.sheet h2{font-family:var(--display);font-size:1.3rem;margin:0 0 8px;letter-spacing:-.015em;outline:none}
.sheet p{color:var(--text-2);font-size:.98rem;line-height:1.5;margin:0 0 14px}
.sheet .btn{margin-top:10px}
@media(min-width:620px){.scrim{align-items:center}.sheet{border-radius:20px;border-bottom:1px solid var(--line-2)}}
.toast-region{position:fixed;left:0;right:0;bottom:calc(env(safe-area-inset-bottom) + 18px);z-index:40;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding:0 16px}
.toast{pointer-events:auto;display:flex;align-items:center;gap:14px;max-width:440px;width:100%;background:#1a271d;border:1px solid rgba(160,230,170,.25);color:var(--text);border-radius:14px;padding:12px 14px 12px 16px;font-size:.95rem;box-shadow:0 10px 30px rgba(0,0,0,.5);animation:rise .2s ease}
.toast.error{background:#2a1a16;border-color:rgba(255,140,110,.35)}
.toast span{flex:1;line-height:1.35}
.toast button{background:none;border:0;color:var(--mint-text);font-weight:650;font-size:.95rem;min-height:40px;padding:0 6px}
@keyframes rise{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}

/* Skeletons: shapes of real content, a brief gentle pulse, then still. Never placeholder data. */
.sk{background:rgba(150,200,160,.075);border-radius:9px;animation:pulse 1.4s ease-in-out 3}
.sk.round{border-radius:50%}
@keyframes pulse{50%{opacity:.55}}
.slow-note{text-align:center;color:var(--text-2);font-size:.92rem;margin-top:18px}

/* Full-screen states */
.state{text-align:center;padding:60px 16px 20px}
.state .ic{width:2.6rem;height:2.6rem;margin:0 auto 16px;color:var(--text-3)}
.state h1{font-family:var(--display);font-size:1.5rem;margin:0 0 8px;outline:none}
.state p{color:var(--text-2);line-height:1.5;margin:0 auto 22px;max-width:320px}

/* ---------- Cold-launch welcome (welcome.js): the PRIO mark builds itself on brand green ---------- */
.wl{position:fixed;inset:0;z-index:50;overflow:hidden;background:#011a0e;animation:wl-out .32s cubic-bezier(.4,0,.2,1) 1.62s forwards;-webkit-user-select:none;user-select:none}
.wl-bloom{position:absolute;inset:-20%;background:radial-gradient(48% 34% at 50% 40%,#0b4a2b 0%,#022e1a 46%,#011a0e 100%);opacity:.75;animation:wl-bloom 1.3s cubic-bezier(.2,.7,.2,1) .2s both}
.wl-mark{position:absolute;left:50%;top:calc(41% - min(17vw,77px));width:min(54vw,240px);height:auto;transform:translateX(-50%);overflow:visible}
.wl .wd{fill:none;stroke:#f5f1e6;stroke-width:150;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1;animation:wl-draw .62s cubic-bezier(.62,.04,.24,1) forwards}
.wl .wd1{animation-delay:.27s;animation-duration:.56s}
.wl .wd2{animation-delay:.42s;animation-duration:.5s}
.wl .wd0{animation-delay:.12s}
.wl-halo{opacity:0;animation:wl-halo 1.25s ease-out .2s forwards}
.wl-glint{opacity:0}
.wl-glint path{fill:#fffdf6;transform-box:fill-box;transform-origin:center;transform:scale(0) rotate(-45deg);animation:wl-glint .7s cubic-bezier(.2,.8,.2,1) .86s forwards}
.wl-glint .wl-glow{fill:#fffbe9;opacity:0;animation:wl-glow .8s ease-out .86s forwards}
.wl-glint{animation:wl-show .01s linear .86s forwards}
.wl-t{position:absolute;left:0;right:0;top:calc(41% + min(17vw,77px) + 26px);text-align:center;padding:0 20px;color:#f5f1e6}
.wl-name{font-family:var(--display);font-size:2rem;font-weight:700;letter-spacing:.62em;padding-left:.62em;opacity:0;filter:blur(8px);transform:translateY(6px);animation:wl-name .62s cubic-bezier(.2,.7,.2,1) .66s forwards}
.wl-meaning{margin-top:12px;font-size:.8rem;letter-spacing:.05em;color:rgba(245,241,230,.72);opacity:0;transform:translateY(4px);animation:wl-in .5s cubic-bezier(.2,.7,.2,1) .98s forwards}
.wl.skip{animation:wl-out .16s ease forwards}
html.wl-arrive #view{animation:wl-arrive .42s cubic-bezier(.2,.7,.2,1) 1.58s both}
@keyframes wl-draw{to{stroke-dashoffset:0}}
@keyframes wl-halo{0%{opacity:0}35%{opacity:.55}100%{opacity:.16}}
@keyframes wl-bloom{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@keyframes wl-show{to{opacity:1}}
@keyframes wl-glint{0%{transform:scale(0) rotate(-45deg)}45%{transform:scale(1) rotate(0)}100%{transform:scale(.0) rotate(30deg)}}
@keyframes wl-glow{0%{opacity:0}40%{opacity:.9}100%{opacity:0}}
@keyframes wl-name{to{opacity:1;filter:none;transform:none;letter-spacing:.32em;padding-left:.32em}}
@keyframes wl-in{to{opacity:1;transform:none}}
@keyframes wl-out{to{opacity:0;visibility:hidden}}
@keyframes wl-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ---------- Light mode (optional, per device): warm ivory and cream, dark forest text, muted sage accents ----------
   Only tokens and the few hard-coded dark surfaces are overridden; the dark design above is unchanged. */
[data-theme=light]{
 color-scheme:light;
 --bg:#efe8d8;--card:#f8f3e7;--card-2:#f3ecdd;--card-solid:#f8f3e7;
 --line:rgba(40,62,43,.12);--line-2:rgba(40,62,43,.18);--line-3:rgba(40,62,43,.28);
 --text:#1c3222;--text-2:#435448;--text-3:#526157;
 --mint:#a8d0a3;--mint-2:#4f8a5a;--mint-text:#2c6538;--mint-ink:#11291a;
 --forest:#2c5634;--forest-2:#dde7d2;--forest-3:#cfdcc4;
 --danger:#a83f25;--warn:#86600d;--seg-off:rgba(40,62,43,.13);--dot-off:#ddd5c3;
}
[data-theme=light] :focus-visible{outline-color:#2c6538}
[data-theme=light] .backdrop{opacity:.2;filter:brightness(1.7) saturate(.7);mix-blend-mode:multiply}
[data-theme=light] body.home .backdrop{opacity:.14}
/* iPhone's installed status bar keeps light text, so a slim forest band sits behind it in Light mode. */
[data-theme=light] body::before{content:"";position:fixed;left:0;right:0;top:0;height:env(safe-area-inset-top);background:#24402b;z-index:60}
[data-theme=light] .icon-btn,[data-theme=light] .square-btn{background:var(--card)}
[data-theme=light] .dot{box-shadow:0 0 0 2px var(--card)}
[data-theme=light] .seg{background:var(--card-2)}
[data-theme=light] .seg [aria-pressed=true],[data-theme=light] .seg [aria-current=page],[data-theme=light] .chip[aria-pressed=true]{color:#f6f1e4}
[data-theme=light] .ghost,[data-theme=light] .btn-line,[data-theme=light] .chip,[data-theme=light] .input{background:var(--card)}
[data-theme=light] .chip[aria-pressed=true]{background:var(--forest);border-color:var(--forest)} /* a pressed chip keeps its dark fill in Light mode */
[data-theme=light] .btn-mint:active{background:#97c492}
[data-theme=light] .pill,[data-theme=light] .badge{background:rgba(79,138,90,.16)}
[data-theme=light] .pill.quiet{background:rgba(40,62,43,.07)}
[data-theme=light] .av{background:var(--forest-2)}
[data-theme=light] .stack .av.sm+.av.sm{box-shadow:0 0 0 2px var(--card)}
[data-theme=light] .pod-card{background-color:#e9e2cf}
[data-theme=light] .pod-card::before{background:linear-gradient(97deg,rgba(248,243,231,.97) 0%,rgba(248,243,231,.9) 38%,rgba(248,243,231,.62) 70%,rgba(248,243,231,.4) 100%)}
[data-theme=light] .switch{background:#cdc6b3}
[data-theme=light] [aria-checked=true]>.switch{background:var(--mint-2)}
[data-theme=light] .switch::after{background:#fffcf4}
[data-theme=light] .box,[data-theme=light] .status-mark{border-color:var(--text-3)}
[data-theme=light] .status-mark.no{border-color:var(--text-3);color:var(--text-2)}
[data-theme=light] .drill .details,[data-theme=light] .auth .card.info,[data-theme=light] .check-line{color:var(--text)}
[data-theme=light] .notice{border-color:rgba(79,138,90,.35)}
[data-theme=light] .status.error{color:#a33a20}
[data-theme=light] .field:focus-within,[data-theme=light] .input:focus{border-color:rgba(44,101,56,.5)}
[data-theme=light] button.row:active,[data-theme=light] a.row:active{background:rgba(40,62,43,.05)}
[data-theme=light] .scrim{background:rgba(48,44,32,.36)}
[data-theme=light] .sheet{background:var(--card)}
[data-theme=light] .toast{background:#24402b;border-color:#24402b;color:#f4efe2}
[data-theme=light] .toast button{color:#cfe8c8}
[data-theme=light] .toast.error{background:#6e2c1d;border-color:#6e2c1d}
[data-theme=light] .sk{background:rgba(40,62,43,.085)}
[data-theme=light] .upnext .row{opacity:.88}
[data-theme=light] .seg.small .n{opacity:1}
[data-theme=light] .avatar-xl .cam{background:#2c5634}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.wl{display:none}}
@media(min-width:720px){.shell{padding-top:34px}}
pre.link-box{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem;line-height:1.5;color:var(--text-2)}
/* Legal pages (static, readable before sign-in): /legal/privacy and /legal/terms. A solid page (dark, or warm ivory in
   Light), no court photo behind long text, a comfortable reading column. */
body.legal-page{background:var(--bg)}
body.legal-page .backdrop{display:none}
.shell.legal{max-width:680px;padding-left:20px;padding-right:20px}
.draft-note{margin:0 0 20px;font-size:.88rem;line-height:1.5;border-color:rgba(240,200,90,.45);background:var(--card-solid)}
.legal-doc{font-size:1rem;line-height:1.62;color:var(--text);overflow-wrap:anywhere;max-width:66ch}
.legal-doc .eff{color:var(--text-2);font-size:.9rem;margin:0 0 18px}
.legal-doc h2{font-family:var(--display);font-size:1.18rem;color:var(--text);margin:30px 0 8px;letter-spacing:-.012em;line-height:1.3}
.legal-doc h3{font-size:1rem;color:var(--text);margin:18px 0 6px}
.legal-doc p{margin:0 0 12px}
.legal-doc ul{margin:0 0 12px;padding-left:22px}
.legal-doc ul ul{margin:4px 0 0}
.legal-doc li{margin:6px 0}
.legal-doc strong{color:var(--text);font-weight:650}
.legal-doc mark.ph{background:rgba(240,200,90,.2);color:var(--text);border-radius:4px;padding:0 3px}
.legal-doc .table-wrap{overflow-x:auto;margin:0 0 14px}
.legal-doc table{border-collapse:collapse;width:100%;font-size:.94rem}
.legal-doc th,.legal-doc td{text-align:left;vertical-align:top;padding:9px 12px 9px 0;border-bottom:1px solid var(--line-2)}
.legal-doc th{color:var(--text);font-weight:600}
/* Mobile legal disclosures: show table rows as readable label/value pairs. */
@media(max-width:640px){
 .legal-doc .table-wrap{overflow:visible}
 .legal-doc table,.legal-doc tbody,.legal-doc tr,.legal-doc td{display:block;width:100%}
 .legal-doc thead{display:none}
 .legal-doc tr{padding:14px 0;border-bottom:1px solid var(--line-2)}
 .legal-doc td{padding:0;border:0;overflow-wrap:break-word}
 .legal-doc td:first-child{font-weight:650;color:var(--text);margin-bottom:4px}
 .legal-doc td+td{color:var(--text-2);line-height:1.5}
}
[data-theme=light] .legal-doc mark.ph{background:#f1dc9c}
[data-theme=light] body.legal-page::before{display:none}

/* Sign-in footer, help sheet */
.auth-foot{text-align:center;margin-top:18px}
.linkish{background:none;border:0;padding:6px 2px;min-height:40px;color:var(--text-2);font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sheet ul.tight{margin:0 0 14px;padding-left:20px;color:var(--text-2);font-size:.95rem;line-height:1.5}
.sheet ul.tight li{margin:4px 0}

/* Invitation QR code: always dark on white with a quiet zone, large enough for any phone camera */
.qr-tile{background:#fff;border-radius:16px;padding:10px;margin:6px auto 4px;width:min(78vw,300px);box-shadow:0 0 0 1px var(--line-2)}
.qr{display:block;width:100%;height:auto;image-rendering:pixelated}

/* Install walkthrough: three illustrated steps, few words */
:root{--shot-bg:#141c16;--shot-pill:#222c24}
[data-theme=light]{--shot-bg:#fffaf0;--shot-pill:#ece4d2}
.isteps{list-style:none;margin:6px 0 4px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(6.4rem,100%),1fr));gap:10px;counter-reset:i}
.isteps.two{grid-template-columns:repeat(auto-fit,minmax(min(8rem,100%),1fr))}
.istep{counter-increment:i;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:10px 8px 12px;text-align:center;color:var(--text);display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.88rem;font-weight:600;line-height:1.25}
.istep::before{content:counter(i);font-size:.72rem;font-weight:700;color:var(--mint-text);background:var(--forest-2);border-radius:99px;width:1.4rem;height:1.4rem;display:grid;place-items:center}
.istep .shot{width:100%;max-width:7.5rem;height:auto;color:var(--text)}
.isteps+.btn,.btn+.isteps{margin-top:12px}
/* Drill drafts, practice hand-off, blocked-notification help */
.sheet ol.tight{margin:0 0 14px;padding-left:22px;color:var(--text-2);font-size:.95rem;line-height:1.5}
.sheet ol.tight li{margin:5px 0}
.draft-state{min-height:1.2em}
.draft-state.error{color:#ffb3a1}
[data-theme=light] .draft-state.error{color:#a33a20}
.row .sub.warn{color:var(--warn)}
.actions .draft-row{background:rgba(58,108,64,.18)}
.actions .draft-row .sub{font-weight:400}
.drill .practice-link{display:flex;align-items:center;gap:8px;margin-top:12px;min-height:44px;color:var(--mint-text);font-size:.92rem;font-weight:600;text-decoration:none}
.drill .practice-link .ic{width:1.1rem;height:1.1rem;flex:none}
.drill .practice-link span{min-width:0;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
.row a.lbl,.row a.lbl .sub{text-decoration:none}

/* ---------- 2026-11-03: planning, 1–10 answers, levels, menus, calendar, owner tools ---------- */
:root{--r-low:#d9826f;--r-mid:#d6b25e;--r-high:#7fcf8a;--r-track:rgba(255,255,255,.09)}
[data-theme=light]{--r-low:#b0503a;--r-mid:#9a6b0c;--r-high:#3d8649;--r-track:rgba(40,62,43,.13)}
.warn-text{color:var(--warn)}
#audience.warn{color:var(--warn)}
.card-h,.sm-h{font-family:var(--display);font-size:1.12rem;font-weight:700;margin:0 0 10px;letter-spacing:-.02em}
.sm-h{font-size:1rem;margin:0}
.badge.quiet{background:rgba(255,255,255,.08);color:var(--text-2);margin:0 4px 0 0;vertical-align:1px}
[data-theme=light] .badge.quiet{background:rgba(40,62,43,.1)}
/* A Pod card opens the Pod; ⋯ and the CourtReserve button stay separate targets above that link. */
.pod-card.tappable{isolation:isolate}
.pod-card.tappable::before{z-index:-1}
.pod-card.tappable h3{position:static}
.pod-open{color:inherit;text-decoration:none}
.pod-open::after{content:"";position:absolute;inset:0;z-index:1;border-radius:18px}
.pod-open:focus-visible{outline:none}
.pod-open:focus-visible::after{outline:3px solid #b8f3c4;outline-offset:-3px}
.pod-card.tappable .head,.pod-card.tappable .btn{position:relative;z-index:2}
.pod-card.tappable:active{border-color:var(--line-3)}
/* Rating bars: the number always beside the bar, so colour is never the only cue. */
.rbar{display:flex;align-items:center;gap:8px;margin-top:6px;max-width:15rem}
.rbar-track{flex:1;height:7px;border-radius:99px;background:var(--r-track);overflow:hidden;min-width:3rem}
.rbar-fill{display:block;height:100%;border-radius:99px}
.rbar-fill.low,.rseg.low,.r-legend i.low{background:var(--r-low)}
.rbar-fill.mid,.rseg.mid,.r-legend i.mid{background:var(--r-mid)}
.rbar-fill.high,.rseg.high,.r-legend i.high{background:var(--r-high)}
.rbar-n{font-variant-numeric:tabular-nums;font-size:.86rem;font-weight:650;color:var(--text);min-width:1.4em;text-align:right}
/* The optional 1–10 question after "I did it". */
.rate{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.rate-q{margin:0 0 10px;font-weight:600;font-size:.98rem;outline:none}
.rate-scale{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.rate-n{min-height:44px;border-radius:10px;border:1px solid var(--line-2);background:rgba(9,14,11,.55);color:var(--text);font-weight:650;font-size:1rem;font-variant-numeric:tabular-nums}
.rate-n[aria-pressed=true].low{background:var(--r-low);color:#1a0b06;border-color:transparent}
.rate-n[aria-pressed=true].mid{background:var(--r-mid);color:#1c1403;border-color:transparent}
.rate-n[aria-pressed=true].high{background:var(--r-high);color:#06150a;border-color:transparent}
[data-theme=light] .rate-n{background:#fffaf0}
[data-theme=light] .rate-n[aria-pressed=true]{color:#fff}
.rate-ends{display:flex;justify-content:space-between;color:var(--text-3);font-size:.76rem;margin-top:6px}
.rate.done{display:flex;flex-direction:column;gap:2px}
.rate.done .rate-q{margin:0;font-weight:500;color:var(--text-2);font-size:.88rem}
.rate-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rate-row .rbar{flex:1;margin-top:0}
.rate.done .textbtn{text-align:left;padding-left:0}
.progress .mins{margin:8px 0 0;color:var(--text-2);font-size:.8rem}
/* Two fields side by side (level from / to), stacking on very narrow screens and large text. */
.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pair .field{margin-bottom:12px}
@media(max-width:340px){.pair{grid-template-columns:1fr}}
.filters{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.field.compact{margin:0;padding:10px 14px}
.seg.vis{margin-bottom:12px}
.chips.dur .chip,.chips.ask .chip{min-height:40px;padding:7px 11px;font-size:.88rem}
.chips.ask{margin-top:10px}
.field.toggle .sub-in{display:block;font-size:.78rem;color:var(--text-2);margin-top:2px}
.field-clear{align-self:center;min-height:40px;padding:6px}
.play-test{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:-4px 0 12px}
.play-test .textbtn{display:inline-flex;align-items:center;gap:6px;padding-left:4px}
.play-test .note-text{margin:0}
/* A Pod's shared focus line. */
.focus{display:flex;align-items:flex-start;gap:10px;margin:12px 0 4px;padding:10px 12px;border-radius:12px;background:var(--forest-2)}
.focus>.ic{color:var(--mint-text);margin-top:2px}
.focus>div{flex:1;min-width:0}
.focus p{margin:2px 0 0;font-weight:600}
.focus.empty{background:transparent;padding:0}
.focus.empty .textbtn{display:inline-flex;align-items:center;gap:8px;padding-left:0}
.drill.preview{margin-top:12px}
.drill.preview .answer .btn{pointer-events:none}
.list.menu .row{min-height:3.1rem}
/* ---------- Practice calendar ---------- */
.cal-nav{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;margin:-6px -6px 8px}
.cal-nav .nav{width:48px;height:48px;border:0;background:transparent;color:var(--text);display:grid;place-items:center;border-radius:12px}
.cal-month{border:0;background:transparent;color:var(--text);font-family:var(--display);font-size:1.08rem;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px}
.cal-month .cal-chev{transform:rotate(90deg);width:1.05rem;height:1.05rem;color:var(--text-2)}
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:6px}
.day{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:4.1rem;padding:6px 0 5px;border:0;border-radius:11px;background:transparent;color:var(--text);min-width:0}
.day .dw{font-size:.72rem;color:var(--text-2);font-weight:600}
.day .dn{font-size:1.08rem;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.2}
.day.is-today .dn{color:var(--mint-text);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.day[aria-pressed=true]{background:var(--forest);color:#fff;box-shadow:inset 0 0 0 1px rgba(160,230,170,.18)}
.day[aria-pressed=true] .dw{color:rgba(255,255,255,.8)}
.day[aria-pressed=true] .dn{color:#fff}
.dots{display:flex;gap:3px;min-height:7px;flex-wrap:wrap;justify-content:center;max-width:100%}
.dots i,.cal-legend i{width:7px;height:7px;border-radius:50%;display:inline-block}
i.pub{background:var(--mint-2)}
i.sched{border:1.6px solid var(--mint-2);background:transparent}
i.draft{border:1.6px dashed var(--text-2);background:transparent}
.day[aria-pressed=true] i.pub{background:#cfeed2}.day[aria-pressed=true] i.sched{border-color:#cfeed2}.day[aria-pressed=true] i.draft{border-color:rgba(255,255,255,.75)}
.cal-filter{margin-top:10px}
.cal-sum{color:var(--text-2);font-size:.86rem;margin:10px 4px 4px;display:flex;flex-wrap:wrap;align-items:center;gap:0 6px}
.cal-sum .textbtn{padding:4px;min-height:36px}
.cal-day{margin-top:16px;scroll-margin-top:16px}
.cal-day-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 4px 8px}
.cal-day-head h2{font-family:var(--display);font-size:1.06rem;font-weight:700;margin:0;letter-spacing:-.015em}
.cal-day-head>span{color:var(--text-2);font-size:.86rem;white-space:nowrap}
.cal-day.is-sel .list{border-color:var(--line-3)}
.row.add{color:var(--mint-text);min-height:2.9rem}
.cal-empty{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding:6px 6px 6px 14px;border:1px dashed var(--line-2);border-radius:12px;color:var(--text-2);font-size:.9rem;scroll-margin-top:16px}
.cal-empty.is-sel{border-color:var(--mint-2);color:var(--text)}
.cal-empty .mini{display:inline-flex;align-items:center;gap:4px}
.cal-empty .mini .ic{width:1.05rem;height:1.05rem}
.cal-legend{display:flex;flex-wrap:wrap;gap:6px 14px}
.cal-legend span{display:inline-flex;align-items:center;gap:6px}
.day-pick{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.day-pick .chip{padding:6px 0;display:flex;flex-direction:column;align-items:center;font-variant-numeric:tabular-nums;min-width:0}
.day-pick .chip span{font-size:.7rem}
.month-head{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;margin:-6px -6px 6px}
.month-head h2{text-align:center;margin:0}
.month-head .nav{width:48px;height:48px;border:0;background:transparent;color:var(--text);display:grid;place-items:center}
.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.mh{text-align:center;font-size:.72rem;color:var(--text-2);padding:4px 0}
.md{position:relative;min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--text);font-variant-numeric:tabular-nums;font-size:.95rem}
.md.out{color:var(--text-3)}
.md.is-today{color:var(--mint-text);font-weight:700}
.md.is-sel{background:var(--forest);color:#fff}
.md i{position:absolute;left:50%;bottom:6px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--mint-2)}
/* ---------- Progress ---------- */
.stats{padding:16px 14px}
.wk-list{display:flex;flex-direction:column;gap:12px}
.wk-top{display:flex;justify-content:space-between;gap:10px;font-size:.88rem;color:var(--text-2)}
.wk-top span:first-child{color:var(--text);font-weight:600}
.wk .track{margin-top:6px}
.row.series{align-items:flex-start}
.series-list{display:flex;flex-direction:column;gap:2px;margin-top:6px}
.series-item{display:grid;grid-template-columns:3.6rem 1fr;align-items:center;gap:8px}
.series-item .rbar{margin-top:0}
.series-day{font-size:.76rem;color:var(--text-2);font-variant-numeric:tabular-nums}
.ratings{margin-top:12px}
.r-head{display:flex;justify-content:space-between;gap:10px;font-size:.88rem;color:var(--text-2)}
.r-head span:first-child{color:var(--text);font-weight:600}
.rstack{display:flex;gap:3px;height:10px;margin:10px 0 8px;border-radius:99px;overflow:hidden}
.rseg{display:block;height:100%}
.r-legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.8rem;color:var(--text-2)}
.r-legend span{display:inline-flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}
.r-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}
/* ---------- Owner tools ---------- */
.owner-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;text-align:center}
.owner-counts strong{display:block;font-family:var(--display);font-size:1.35rem;font-variant-numeric:tabular-nums}
.owner-counts span{font-size:.72rem;color:var(--text-2)}
@media(max-width:360px){.owner-counts{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}}
.kvs .kv{align-items:flex-start}
.kv>span:last-child{text-align:right}
.kv-hint{display:block;font-size:.74rem;color:var(--text-3);margin-top:2px}
.kv a{display:inline-flex;align-items:center;gap:4px}
.kv a .ic{width:1rem;height:1rem}
.row.staff{flex-wrap:wrap}
/* Owner tools → Coaches: the name keeps a readable width; its buttons move below it together on narrow screens. */
.row.staff .lbl{flex:1 1 12rem}
.row.staff .acts{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.row.inline-switch{width:auto;border:0;padding:0;min-height:44px;gap:10px;flex:none}
.steps-plain{margin:0;padding-left:1.2rem;display:flex;flex-direction:column;gap:10px;font-size:.92rem;line-height:1.45;color:var(--text-2)}
.steps-plain strong{color:var(--text)}
