/* Sunday Ball. Court orange for full-timers, blue for drop-ins. */
:root{
  --bg:#E9EEF4; --surface:#FFFFFF; --sunk:#F3F6FA; --ink:#0F1B2C; --muted:#5A6A80; --line:#D7DFE9;
  --court:#E4570F; --court-soft:#FCE6DA; --blue:#164A86; --blue-soft:#DCE8F6;
  --good:#1D8048; --good-soft:#DDF2E5; --warn:#A86A12; --warn-soft:#FAEDD6; --bad:#B4322A;
  --scrim:rgba(10,17,29,.55); --court-glow:rgba(228,87,15,.16);
  --floor:#F6F1E9; --floor-line:#C9B9A3; --paint:#F3E2D2; --ball:#C9561A; --seam:#3A1A08; --opp:#A3AEBD; --opp-line:#8794A6;
  /* group colours (src/brand.js): each 4.5:1 or better on the light surfaces, and on the dark ones below */
  --gc-orange:#C94C0C; --gc-blue:#164A86; --gc-green:#1D7A45; --gc-amber:#94600F;
  --gc-purple:#6A3FA3; --gc-teal:#0B7480; --gc-pink:#AE2F68; --gc-slate:#3F4E63;
  /* the role badge (app.js myRole): role words that pass 4.5:1, and the Halfway R on the staff badge in the other theme's colours */
  --role-org:#A8410A; --role-fnd:#7A4D08; --rb-o:#FF7A33; --rb-b:#5B9BE6;
  --display:"Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body:"Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme:light;
}
/* Dark colors: follow the phone's setting unless the person picked light or dark
   in My details (stored as data-theme on <html>). */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0A111D; --surface:#111B2B; --sunk:#0D1624; --ink:#E5ECF5; --muted:#8E9DB2; --line:#22324A;
  --court:#FF7A33; --court-soft:#3A2116; --blue:#5B9BE6; --blue-soft:#16294A;
  --good:#40C27A; --good-soft:#13301F; --warn:#E3A84B; --warn-soft:#33260F; --bad:#F06A60;
  --scrim:rgba(0,0,0,.6); --court-glow:rgba(255,122,51,.14); color-scheme:dark;
  --floor:#161F2E; --floor-line:#3A4B66; --paint:#1F2533; --ball:#E06A26; --seam:#2A1205; --opp:#4A5A72; --opp-line:#66788F;
  --gc-orange:#FF7A33; --gc-blue:#5B9BE6; --gc-green:#40C27A; --gc-amber:#E3A84B;
  --gc-purple:#A98BEB; --gc-teal:#3CC4CF; --gc-pink:#EE7AB0; --gc-slate:#A7B6CA;
  --role-org:#FF7A33; --role-fnd:#E3A84B; --rb-o:#E4570F; --rb-b:#164A86;
}}
:root[data-theme="dark"]{
  --bg:#0A111D; --surface:#111B2B; --sunk:#0D1624; --ink:#E5ECF5; --muted:#8E9DB2; --line:#22324A;
  --court:#FF7A33; --court-soft:#3A2116; --blue:#5B9BE6; --blue-soft:#16294A;
  --good:#40C27A; --good-soft:#13301F; --warn:#E3A84B; --warn-soft:#33260F; --bad:#F06A60;
  --scrim:rgba(0,0,0,.6); --court-glow:rgba(255,122,51,.14); color-scheme:dark;
  --floor:#161F2E; --floor-line:#3A4B66; --paint:#1F2533; --ball:#E06A26; --seam:#2A1205; --opp:#4A5A72; --opp-line:#66788F;
  --gc-orange:#FF7A33; --gc-blue:#5B9BE6; --gc-green:#40C27A; --gc-amber:#E3A84B;
  --gc-purple:#A98BEB; --gc-teal:#3CC4CF; --gc-pink:#EE7AB0; --gc-slate:#A7B6CA;
  --role-org:#FF7A33; --role-fnd:#E3A84B; --rb-o:#E4570F; --rb-b:#164A86;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.5;-webkit-text-size-adjust:100%}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid var(--court);outline-offset:2px}
/* Every drop-down has the app's small gray triangle, not the phone's own arrow. Each drop-down's style keeps
   room for it on the right and sets only background-color, so the triangle stays. */
select{-webkit-appearance:none;appearance:none;background-repeat:no-repeat;background-size:5px 5px;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 14px) 52%,calc(100% - 9px) 52%}
select:focus-visible{outline:2px solid var(--court);outline-offset:2px}
[hidden]{display:none!important}

.app{max-width:480px;margin:0 auto;min-height:100dvh;background:var(--surface);display:flex;flex-direction:column;position:relative}
@media (min-width:520px){.app{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:calc(14px + env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) 6px max(20px,env(safe-area-inset-left,0px))}
.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--blue-soft);color:var(--blue);flex:none}
.avatar.ft{background:var(--court-soft);color:var(--court)}
.screen{flex:1;padding:6px max(20px,env(safe-area-inset-right,0px)) 28px max(20px,env(safe-area-inset-left,0px));display:grid;gap:18px;align-content:start}

.hero h2{font-family:var(--display);font-weight:900;font-size:46px;line-height:.9;text-transform:uppercase;margin:6px 0 4px}
.hero .when{color:var(--muted);font-weight:500;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.pill.good{background:var(--good-soft);color:var(--good)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.court{background:var(--court-soft);color:var(--court)}
.pill.blue{background:var(--blue-soft);color:var(--blue)}

.track{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.track div{border-top:3px solid var(--line);padding-top:6px;font-size:11.5px;color:var(--muted);line-height:1.3}
.track div b{display:block;color:var(--ink);font-size:12px}
.track .done{border-color:var(--blue)}
.track .now{border-color:var(--court)}

.meter{background:var(--sunk);border:1px solid var(--line);border-radius:18px;padding:16px}
.meter-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.count{font-family:var(--display);font-weight:900;font-size:44px;line-height:1;font-variant-numeric:tabular-nums}
.count small{font-size:22px;color:var(--muted);font-weight:700}
.legend{display:flex;gap:12px;font-size:12px;color:var(--muted);font-weight:500;letter-spacing:0;text-transform:none}
.legend span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}
.legend .l-ft::before{background:var(--court)} .legend .l-di::before{background:var(--blue)}
.slots{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.slot{aspect-ratio:1;max-width:100%;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700}
.slot.ft{background:var(--court);color:#fff}
.slot.di{background:var(--blue);color:#fff}
.slot.open{border:2px dashed var(--line);color:var(--muted);font-weight:500}
.slot.me{box-shadow:0 0 0 3px var(--sunk),0 0 0 5px var(--ink)}

.card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px}
.card h3{margin:0 0 4px;font-size:17px}
.card p{margin:0;color:var(--muted);font-size:14px}
.mecard{border:2px solid var(--ink)}
.mecard p{margin-bottom:14px}
.mecard p:last-child{margin-bottom:0}
.btnrow{display:flex;gap:10px;flex-wrap:wrap}
.btn{flex:1;border:none;border-radius:12px;padding:13px 14px;font-weight:700;font-size:15px;min-height:46px}
.btn.primary{background:var(--court);color:#fff}
.btn.dark{background:var(--ink);color:var(--surface)}
.btn.ghost{background:var(--sunk);border:1px solid var(--line)}
.btn.danger{background:var(--bad);color:#fff}
.btn.small{flex:none;padding:7px 12px;font-size:13px;border-radius:10px;min-height:0}
.btn.block{width:100%}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.linkbtn{background:none;border:none;padding:0;color:var(--muted);text-decoration:underline;font-size:13.5px}

.list h4{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 6px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.list h4 span{font-variant-numeric:tabular-nums}
.row{display:flex;align-items:center;gap:12px;padding:9px 0;border:none;border-bottom:1px solid var(--line);min-width:0;width:100%;background:none;text-align:left}
.row:last-child{border-bottom:none}
button.row:hover .name{color:var(--court)}
.row .name{flex:1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .name small{display:block;font-weight:400;color:var(--muted);font-size:12.5px}
.you{font-size:11px;font-weight:700;color:var(--court);margin-left:4px}
.empty{color:var(--muted);font-size:14px;padding:6px 0;margin:0}

.banner{border-radius:14px;padding:12px 14px;font-size:14px;font-weight:500;background:var(--court-soft);border:1px solid var(--court)}

.seg{display:flex;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:3px}
.seg button{flex:1;border:none;background:none;border-radius:9px;padding:7px 4px;font-weight:600;font-size:13.5px;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(15,27,44,.12)}
.attbar{width:54px;height:6px;border-radius:3px;background:var(--line);overflow:hidden;flex:none}
.attbar i{display:block;height:100%;background:var(--good)}
.att{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:34px;text-align:right;flex:none}
h3.sec{font-family:var(--display);font-weight:800;font-size:26px;text-transform:uppercase;margin:4px 0 0;line-height:1}

.field{display:grid;gap:4px;font-size:13px;font-weight:600;color:var(--muted)}
.field input{width:100%;border:1px solid var(--line);background:var(--sunk);border-radius:10px;padding:11px 12px;font:inherit;font-size:16px;color:var(--ink);font-weight:500}

.chart{display:grid;gap:8px;align-items:end;height:170px;border-bottom:1px solid var(--line);position:relative;padding-top:18px}
.chart .cap{position:absolute;top:18px;left:0;right:0;border-top:1px dashed var(--line)}
.chart .cap span{position:absolute;top:-16px;left:0;font-size:10px;color:var(--muted)}
.bar{display:flex;flex-direction:column-reverse;height:100%;position:relative;z-index:1}
.bar .b-ft{background:var(--court);border-radius:0 0 3px 3px}
.bar .b-di{background:var(--blue);border-radius:3px 3px 0 0}
.bar .n{position:absolute;left:0;right:0;text-align:center;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.xlabels{display:grid;gap:8px;font-size:10.5px;color:var(--muted);text-align:center;margin-top:6px;line-height:1.2}
.stat3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stat3 div{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:10px}
.stat3 b{display:block;font-family:var(--display);font-weight:900;font-size:28px;line-height:1;font-variant-numeric:tabular-nums}
.stat3 span{font-size:11.5px;color:var(--muted)}
.rank{font-family:var(--display);font-weight:800;font-size:20px;width:20px;color:var(--muted)}

.setting{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.setting:last-child{border-bottom:none}
.setting > div{min-width:0}
.setting b{display:block;font-size:14.5px}
.setting small{color:var(--muted);font-size:12.5px}
.switch{width:46px;height:28px;border-radius:14px;border:none;background:var(--line);position:relative;flex:none;transition:background .2s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.switch[aria-checked="true"]{background:var(--good)}
.switch[aria-checked="true"]::after{transform:translateX(18px)}
.stepper{display:flex;align-items:center;gap:4px;flex:none}
.stepper button{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:var(--sunk);font-weight:700;font-size:16px}
.stepper output{width:34px;text-align:center;font-family:var(--display);font-weight:900;font-size:22px;font-variant-numeric:tabular-nums}
.copybox{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:12px;font-size:13px;white-space:pre-wrap;word-break:break-word;margin:0;max-height:240px;overflow:auto;font-family:var(--body);user-select:all}
.sched{display:grid;grid-template-columns:1fr auto;gap:6px 14px;font-size:14px;margin:0}
.sched dt{color:var(--muted)} .sched dd{margin:0;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.log{font-size:13px;color:var(--muted);display:grid;gap:6px}
.log b{color:var(--ink);font-weight:600}

.nav{display:flex;border-top:1px solid var(--line);background:var(--surface);padding:6px max(6px,env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-left,0px));position:sticky;bottom:0;z-index:4}
.nav button{flex:1;border:none;background:none;display:grid;justify-items:center;gap:2px;padding:6px 0;font-size:11.5px;font-weight:600;color:var(--muted)}
.nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav button[aria-current="page"]{color:var(--court)}

.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom,0px));width:min(440px,calc(100% - 32px));background:var(--ink);color:var(--surface);border-radius:12px;padding:11px 14px;font-size:13.5px;font-weight:500;transform:translate(-50%,20px);opacity:0;transition:all .25s;pointer-events:none;z-index:20}
.toast.show{transform:translate(-50%,0);opacity:1}

.modal{position:fixed;inset:0;background:var(--scrim);display:flex;align-items:flex-end;justify-content:center;z-index:10;padding:12px max(12px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px))}
.dialog{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px 20px 18px;width:100%;max-width:456px;max-height:88dvh;overflow:auto;display:grid;gap:14px;animation:rise .2s ease-out}
.dialog h3{margin:0;font-size:19px;line-height:1.25;text-wrap:balance}
.dialog p{margin:0;color:var(--muted);font-size:14px}
.dialog .who{display:flex;align-items:center;gap:12px;background:var(--sunk);border:1px solid var(--line);border-radius:14px;padding:10px 12px;font-weight:600;flex-wrap:wrap}
.dialog .who .arrow{color:var(--muted);font-weight:500;font-size:13px}
.dialog ul{margin:0;padding-left:18px;color:var(--muted);font-size:13.5px;display:grid;gap:4px}
.dialog .group{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:14px}
.dialog .group > b{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
@keyframes rise{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}

.signedout{display:grid;gap:14px;padding-top:30px}
.signedout h2{font-family:var(--display);font-weight:900;font-size:40px;line-height:.95;text-transform:uppercase;margin:0}
.signedout p{margin:0;color:var(--muted);max-width:40ch}
.signedout .lead{color:var(--ink)}
.signedout .linkbtn{justify-self:start}
.gate h2 span{white-space:nowrap}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Admin guide */
.back{justify-self:start;text-decoration:none;font-weight:600}
.gsec{border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.gsec summary{cursor:pointer;padding:14px 16px;font-weight:700;font-size:15px;list-style:none;display:flex;justify-content:space-between;gap:12px}
.gsec summary::-webkit-details-marker{display:none}
.gsec summary::after{content:"+";color:var(--court);font-size:18px;line-height:1}
.gsec[open] summary::after{content:"−"}
.gsec summary:focus-visible{outline:2px solid var(--court);outline-offset:-2px;border-radius:14px}
.gbody{padding:0 16px 14px;font-size:14.5px;display:grid;gap:10px}
.gbody p{margin:0;color:var(--muted)}
.gbody ol,.gbody ul{margin:0;padding-left:20px;display:grid;gap:6px}
.gbody b{color:var(--ink)}

/* Schedule forms */
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field select{width:100%;border:1px solid var(--line);background-color:var(--sunk);border-radius:10px;padding:11px 28px 11px 10px;font:inherit;font-size:16px;color:var(--ink);font-weight:500}
.field input[type="time"],.field input[type="date"]{min-height:46px}
.two.step{grid-template-columns:1.7fr 1fr}

/* Admin rows: the name opens options, the right side can hold its own button */
.rowmain{display:flex;align-items:center;gap:12px;flex:1;min-width:0;background:none;border:none;padding:0;text-align:left;color:inherit}
.rowmain:hover .name{color:var(--court)}
/* Link-style buttons (WhatsApp) */
a.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:inherit}
a.btn.primary{color:#fff}
a.btn.block{display:flex;width:100%}
.btn.share svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Phone behaviour: fixed size, no pinch or double-tap zoom, no sideways drift,
   and the page behind an open menu doesn't scroll. */
html{touch-action:pan-y;-webkit-tap-highlight-color:transparent}
body{overscroll-behavior-x:none}
body.sheet-open{overflow:hidden}
.modal{overscroll-behavior:contain;touch-action:pan-y}
.dialog{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.dialog:focus{outline:none}
button,a,.switch,summary{touch-action:manipulation}
/* Never let one long row widen the whole screen */
.screen{grid-template-columns:minmax(0,1fr)}
.screen > *{min-width:0}
.row .att{min-width:0}
/* Schedule step rows (Sign-ups open, Reminder to no-replies): the days before on the left, and a time wide
   enough for "09:00 AM" and the clock icon (it was 7.6em, which cut off AM and PM). */
.two.step{grid-template-columns:minmax(0,1fr) 9.4em}
.two.step select{font-size:15px;padding:11px 24px 11px 8px}
.two.step input[type="time"]{font-size:15px;padding:11px 8px;min-width:0;width:100%}
/* Close button that stays visible at the top of long menus */
.sheet-x{position:sticky;top:-8px;justify-self:end;margin:-10px -6px -40px 0;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--sunk);font-size:22px;line-height:1;display:grid;place-items:center;z-index:2;color:var(--muted)}
.dialog > h3:first-of-type,.dialog > .who:first-of-type{margin-right:40px}

/* Bottom navigation: always on screen. Fixed to the bottom of the viewport
   (sticky stopped working once sideways scrolling was disabled), with room
   left under the content so nothing hides behind it. */
html,body{overflow-x:clip}
.nav{position:fixed;left:0;right:0;bottom:0;margin:0 auto;max-width:480px;width:100%}
@media (min-width:520px){.nav{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
.screen{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
.toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}

/* My details */
.mebtn{border:none;cursor:pointer;padding:0}
.mebtn:focus-visible{outline:2px solid var(--court);outline-offset:2px}
.fine{font-size:12.5px!important;color:var(--muted)}

/* Top bar: the profile button on the right */
.topright{display:flex;align-items:center;gap:10px;flex:none}

/* Profile pictures */
.avatar,.slot{overflow:hidden}
.avatar img,.slot img{width:100%;height:100%;object-fit:cover;display:block}
.avatar.pic,.slot.pic{background:var(--sunk)}
.slot.pic img{border-radius:50%}
.emo{font-size:18px;line-height:1}
.slot .emo{font-size:20px}
.avatar.big{width:52px;height:52px;font-size:17px}
.avatar.big .emo{font-size:28px}
/* Avatar picker (public/avatars.js): the categories along the top, then a box three rows of tiles tall
   under the category's name (30px), scrolling for the rest. Its 8px sides keep the selected border and
   focus ring clear. 3 rows of six = (width - 16px sides - 40px gaps) / 2 + 16px gaps; + 30 + 2 + 8. */
.avp{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface);container-type:inline-size}
.avp-cats{display:flex;background:var(--sunk);border-bottom:1px solid var(--line)}
.avp-cats button{flex:1 1 0;min-width:0;height:40px;border:none;background:none;padding:0;font-size:17px;line-height:1;position:relative;filter:grayscale(1);opacity:.5}
.avp-cats button[aria-current="true"]{filter:none;opacity:1}
.avp-cats button[aria-current="true"]::after{content:"";position:absolute;left:18%;right:18%;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--court)}
.avp-scroll{position:relative;max-height:calc((100cqw - 56px) / 2 + 56px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 8px 8px;
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 22px),transparent)}
.avp-scroll.at-end{-webkit-mask-image:none;mask-image:none}
.avp-sec h4{position:sticky;top:0;z-index:1;margin:0;height:30px;display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--surface);
  font-size:11px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.avp-tones{display:flex;gap:6px}
.avp-tones button{width:18px;height:18px;border-radius:50%;padding:0;border:2px solid var(--surface);box-shadow:0 0 0 1px var(--line)}
.avp-tones button[aria-pressed="true"]{box-shadow:0 0 0 2px var(--court)}
.emojigrid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;padding:2px 0 8px}
.emojibtn{aspect-ratio:1;border-radius:12px;border:1px solid var(--line);background:var(--sunk);font-size:24px;line-height:1;padding:0;display:grid;place-items:center}
.emojibtn[aria-pressed="true"]{border:2px solid var(--court);background:var(--court-soft)}
label.btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}

/* Top bar: the Halfway R (brand/rec-rostr-mark.svg) at the top left, then the open group's chip, or
   Rec Rostr's name before a group is open (together, the lockup in brand/). */
.tb-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.tb-mark{height:32px;width:auto;flex:none;display:block;overflow:visible}
.tb-home{display:flex;flex:none;border-radius:8px;-webkit-tap-highlight-color:transparent}   /* the R: a link to recrostr.app */
.tb-id{min-width:0;display:flex;align-items:center}
.tb-id.swap{animation:tbswap .24s ease-out}
@keyframes tbswap{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}
.tb-word{height:21.9px;width:auto;display:block;overflow:visible}
.lk-o{fill:var(--court)} .lk-b{fill:var(--blue)} .lk-ink{fill:var(--ink)} .lk-line{stroke:var(--ink)}
.defs{position:absolute;width:0;height:0;overflow:hidden}

/* Full-timer / drop-in rings: every player circle on This week carries its
   colour as a ring, so it still reads with a photo or avatar inside.
   Full-timers' rings glow with a slow, subtle pulse. */
.slot.ft,.slot.di{border:3px solid transparent}
.slot.ft{border-color:var(--court)}
.slot.di{border-color:var(--blue)}
.slot.me{box-shadow:none;outline:2px solid var(--ink);outline-offset:2px}
@keyframes ft-glow{
  0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--court) 0%,transparent)}
  50%{box-shadow:0 0 7px 2px color-mix(in srgb,var(--court) 55%,transparent)}
}
.slot.ft{animation:ft-glow 2.8s ease-in-out infinite}
.avatar.ft,.avatar.di{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--court)}
.avatar.di{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--blue)}
.row .avatar,.who .avatar{margin:4px}
.mebtn.avatar{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--court)}
.mebtn.avatar:not(.ft){box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--blue)}
@media (prefers-reduced-motion:reduce){.slot.ft{animation:none}}
/* Grayed-out action (still tappable, to explain why) */
.btn.off{opacity:.4;filter:grayscale(1);cursor:not-allowed}
/* WhatsApp buttons line up the same whether they're links or buttons */
/* Share: the phone's share sheet for a link (shareBtn in public/app.js). */
.btn.share{display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1;white-space:nowrap}
.btn.share.block{display:flex}
.btn.share svg{display:block}

/* Players box: a ring of light travelling around its border (a "holographic
   ring"). A conic gradient with two highlights on opposite sides,
   court orange and blue, turned with transform only and masked to a
   2px band on the border, so the phone's compositor does the work. */
.meter{position:relative;isolation:isolate}
.holo-ring{position:absolute;inset:-1px;padding:2px;border-radius:inherit;overflow:hidden;pointer-events:none;z-index:1;
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.holo-ring > span{position:absolute;left:50%;top:50%;width:200%;aspect-ratio:1;
  background:conic-gradient(from 0deg,
    transparent 0deg 40deg,
    color-mix(in srgb,var(--court) 25%,transparent) 100deg,
    var(--court) 165deg,
    transparent 180deg 220deg,
    color-mix(in srgb,var(--blue) 25%,transparent) 280deg,
    var(--blue) 345deg,
    transparent 360deg);
  transform:translate(-50%,-50%);animation:holo-turn 6s linear infinite}
@keyframes holo-turn{to{transform:translate(-50%,-50%) rotate(1turn)}}
@media (prefers-reduced-motion:reduce){.holo-ring{display:none}}
/* Add-to-home-screen help */
.steps{margin:0;padding-left:22px;display:grid;gap:10px;font-size:15px}
.kbd{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:7px;border:1px solid var(--line);background:var(--sunk);vertical-align:middle}
.kbd svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Announcement, gym, calendar, money */
.notice{border-radius:16px;padding:12px 14px;background:var(--court-soft);border:1px solid color-mix(in srgb,var(--court) 45%,transparent);display:grid;gap:2px}
.notice b{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--court)}
.notice p{margin:0;font-size:15px;font-weight:500;white-space:pre-wrap;overflow-wrap:anywhere}
.notice small{color:var(--muted);font-size:12px}
.herobar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:-6px}
.venue{display:flex;gap:8px;align-items:flex-start;min-width:0;font-size:13px;line-height:1.35;color:var(--muted)}
.venue svg{width:16px;height:16px;flex:none;margin-top:2px;fill:none;stroke:var(--court);stroke-width:1.9;stroke-linejoin:round}
.venue b{display:block;color:var(--ink);font-size:13.5px}
.venue span,.venue small{display:block}
.btn.cal{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none}
.btn.cal svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.calbtn{text-align:center}
.card.owe{border:1px solid var(--court);background:var(--court-soft)}
.card.owe h3{color:var(--ink)}
.feebox{display:flex;align-items:center;gap:6px;font-weight:700;flex:none}
/* How players pay, in the admins' words: on You owe, and on a drop-in's spot card. */
.paybox{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-top:10px}
.paybox .eyebrow{grid-column:1/-1}
.card .paybox p{margin:0;font-size:14px;line-height:1.4;color:var(--ink);white-space:pre-line;overflow-wrap:anywhere}
.card p.owefoot{margin-top:10px}
.mecard p.feeline{margin:-6px 0 14px;font-size:13.5px}
.feeline b{color:var(--ink)}
.feeline .linkbtn{color:var(--ink);font-weight:600}
.mecard .paybox{margin:-4px 0 14px}
/* The organizer plan (src/billing.js): the trial's days, the plans sheet, and a paused group. */
.planhead{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:13px;color:var(--muted);font-weight:600;flex-wrap:wrap}
.planhead b{color:var(--ink);font-size:15px}
.planbar{height:8px;border-radius:99px;background:var(--sunk);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden;margin-top:6px}
.planbar i{display:block;height:100%;background:var(--court);border-radius:99px}
.plans{display:grid;gap:8px}
.planopt{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 12px;align-items:center;text-align:left;border:1px solid var(--line);background:var(--sunk);border-radius:14px;padding:12px 14px;width:100%}
.planopt[aria-pressed="true"]{border:2px solid var(--ink);background:var(--surface);padding:11px 13px}
.planopt .dot{width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--line);grid-row:span 2}
.planopt[aria-pressed="true"] .dot{box-shadow:inset 0 0 0 5px var(--ink)}
.planopt b{font-size:15.5px}
.planopt > small{grid-column:2;color:var(--muted);font-size:12.5px}
.planopt .amt{font-family:var(--display);font-weight:900;font-size:24px;line-height:1;grid-row:span 2;text-align:right}
.planopt .amt small{display:block;font-family:var(--body);font-size:11px;font-weight:600;color:var(--muted)}
.ticks{margin:0;padding:0;list-style:none;display:grid;gap:6px;font-size:14px}
.ticks li{display:flex;gap:8px;align-items:flex-start}
.ticks li::before{content:"";width:14px;height:8px;border-left:2.5px solid var(--good);border-bottom:2.5px solid var(--good);transform:rotate(-45deg) translate(2px,-1px);margin-top:5px;flex:none}
.trialbox{display:grid;gap:4px;background:var(--good-soft);border:1px solid color-mix(in srgb,var(--good) 40%,transparent);border-radius:14px;padding:12px 14px}
.trialbox .eyebrow{color:var(--good)}
.trialbox p{margin:0;font-size:13.5px;color:var(--ink)}
.trialbox.warn{background:var(--warn-soft);border-color:color-mix(in srgb,var(--warn) 45%,transparent)}
.trialbox.warn .eyebrow{color:var(--warn)}
.notice.warnbox{border:1px solid color-mix(in srgb,var(--warn) 45%,transparent)}
.notice.warnbox p{margin:2px 0 0}
.notice.warnbox .btnrow{margin-top:8px}
.pausedcard{border:2px dashed var(--line);border-radius:18px;padding:18px;display:grid;gap:8px}
.pausedcard h3{margin:0;font-size:18px}
.pausedcard p{margin:0;color:var(--muted);font-size:14px}
.selbox{border:1px solid var(--line);background-color:var(--sunk);border-radius:10px;padding:8px 26px 8px 10px;font:inherit;font-size:15px;font-weight:600;color:var(--ink);max-width:150px;flex:none}
.paydetails{display:grid;gap:8px;padding-top:12px}
.paydetails .lbl{font-size:14.5px;font-weight:700;color:var(--ink)}
.feebox input{width:72px;border:1px solid var(--line);background:var(--sunk);border-radius:10px;padding:8px;font:inherit;font-size:16px;color:var(--ink)}
.field textarea{width:100%;border:1px solid var(--line);background:var(--sunk);border-radius:10px;padding:11px 12px;font:inherit;font-size:16px;color:var(--ink);resize:vertical}
.check{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);margin-top:8px}
.check input{width:18px;height:18px;accent-color:var(--court)}
/* Getting there */
button.venue{background:none;border:none;padding:0;text-align:left;cursor:pointer;color:var(--muted);font:inherit;font-size:13px}
.venue em{display:block;font-style:normal;color:var(--court);font-weight:600;font-size:12.5px;margin-top:2px}
.venue.big{font-size:14px}.venue.big b{font-size:15px}
.gymphoto{width:100%;max-width:100%;aspect-ratio:1000/534;object-fit:cover;border-radius:14px;display:block;background:var(--sunk)}
.gymnotes{margin:0;font-size:14.5px;line-height:1.55;color:var(--ink)!important;white-space:pre-wrap}
.gymmap{width:100%;max-width:100%;height:auto;border-radius:14px;display:block;border:1px solid var(--line);background:#fff}
.calhelp summary{font-size:14px;padding:12px 14px}.calhelp .gbody{font-size:14px}

/* Top bar (the R, the group's chip, profile) stays pinned at the top while scrolling */
.topbar{position:sticky;top:0;z-index:6;background:var(--surface);border-bottom:1px solid transparent;transition:border-color .2s}
.topbar.scrolled{border-bottom-color:var(--line)}


/* The intro (public/intro.js): balls spiral in and the Halfway R snaps together, drawn on a canvas over the launch screen's dark ground */
.intro{position:fixed;inset:0;z-index:100;background:#0A111D;transition:opacity .3s;overflow:hidden}
.intro canvas{position:absolute;left:0;top:0;display:block}

/* Player card: tap a bubble on This week (or a name, for players) */
button.slot{appearance:none;-webkit-appearance:none;width:100%;padding:0;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .12s ease}
button.slot:active{transform:scale(.92)}
.pcard-head{display:flex;align-items:center;gap:14px;margin-right:40px;min-width:0}
.pcard-head .avatar.big{width:64px;height:64px;font-size:21px;margin:5px}
.pcard-head .avatar.big .emo{font-size:34px}
.dialog .pcard-head h3{margin:0 0 6px;font-size:21px;overflow-wrap:anywhere}
.pills{display:flex;flex-wrap:wrap;gap:6px}
.pill.plain{background:var(--sunk);color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
/* Role tags beside a name (chat, player cards), in the badge's colours: Organizer orange, Founding Member gold, Rec Rostr ink. Players have none. */
.rt-organizer{--rt:var(--gc-orange)} .rt-founding{--rt:var(--gc-amber)} .rt-staff{--rt:var(--ink)}
.pill.role{background:var(--rt);color:var(--surface)}
.pcard-week{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:13px;font-weight:600;color:var(--muted)}
.form-dots{display:flex;gap:6px}
.form-dots i{flex:1;max-width:30px;aspect-ratio:1;border-radius:50%;border:2px solid var(--line)}
.form-dots i.on{background:var(--court);border-color:var(--court)}
.form-dots.di i.on{background:var(--blue);border-color:var(--blue)}
@media (prefers-reduced-motion:reduce){button.slot{transition:none}}

/* Joining from a group link, and signing in by texting a code */
.joinform{display:grid;gap:10px}
.codecard{display:grid;gap:12px}
.codecard .eyebrow{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.codecard h3{margin:0;font-size:18px;line-height:1.25;text-wrap:balance}
.codecard a.btn{display:flex;align-items:center;justify-content:center;text-decoration:none}
.bigcode{font-family:var(--display);font-weight:900;font-size:58px;line-height:1;letter-spacing:.06em;text-align:center;font-variant-numeric:tabular-nums;color:var(--ink);user-select:all}
.signedout .codeto,.codeto{text-align:center;margin:0;max-width:none}
.waiting{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13.5px;color:var(--muted)}
.spin{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--court);animation:spin .9s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.linkbox{font-size:13px;background:var(--sunk);border:1px dashed var(--line);border-radius:10px;padding:9px 11px;word-break:break-all;user-select:all}
@media (prefers-reduced-motion:reduce){.spin{animation:none}}

/* Badges on player cards */
.badges{display:grid;gap:8px}
.badge{display:flex;align-items:center;gap:12px;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:8px 12px}
.badge .be{font-size:24px;line-height:1;flex:none;min-width:30px;text-align:center}
.badge b{display:block;font-size:14px}
.badge small{display:block;font-size:12.5px;color:var(--muted)}

/* Setting when full-timer priority turns off by itself */
.prio-edit{display:grid;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.prio-edit small{color:var(--muted);font-size:13px}
.prio-edit .btnrow{justify-content:flex-end}
.prio-edit .two{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.prio-edit select{padding-right:24px;text-overflow:ellipsis}

/* ---------- who's in: away, Nudge everyone, and a note with an answer ---------- */
.noteline{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;margin-top:10px;font-size:13.5px;color:var(--muted);min-height:24px}
.noteline .saidq{color:var(--ink);overflow-wrap:anywhere;min-width:0}
.noteline .linkbtn,.notelinks .linkbtn{min-height:32px}
.mecard .btnrow .btn.fit{flex:1 1 auto;padding-inline:12px}
/* The mark for a note sits beside the bubble, which clips what's inside it. */
.slotwrap{position:relative;display:block;min-width:0}
.saydot{position:absolute;right:-5px;bottom:-5px;width:22px;height:22px;border-radius:50%;background:var(--ink);color:var(--surface);display:grid;place-items:center;box-shadow:0 0 0 2px var(--sunk);pointer-events:none}
.saydot svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.minibtn:disabled{opacity:.55;cursor:default}
.pill.awaytag{border:none;font:inherit;font-size:12px;font-weight:700;min-height:30px;cursor:pointer;flex:none}
.awgroup .seg button{min-height:38px;padding:7px 3px}
.awgroup .two{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.awgroup .field,.awgroup .field input,.susdate input{min-width:0}
.awgroup .two .field input{font-size:15px;padding:11px 6px 11px 8px}
.ghosted{opacity:.4}
.awlive{margin:0!important;min-height:2.9em}
.awlive b{color:var(--ink);font-weight:600}
.bad,.awlive b.bad{color:var(--bad)}
.warnword{color:var(--warn)}
.warnbox .btnrow .btn.small{min-height:36px}
.clash{display:grid;gap:8px;border:1px solid var(--line);border-radius:14px;padding:12px}
.clash > div:first-child{display:flex;gap:10px;align-items:center;min-width:0}
.clash > div:first-child b{display:block;font-size:14.5px;line-height:1.25}
.clash > div:first-child small{font-size:12.5px;color:var(--muted)}
.clash .seg button{min-height:38px}
.clash .fine{margin:0}
#sus-live{display:grid;gap:6px;align-content:start}
.noteunder{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--muted);min-height:3em;margin-top:-8px}
.noteunder span:last-child{flex:none}
.notelinks{display:flex;gap:18px;flex-wrap:wrap}
.awaycard .fine{margin:8px 0 0}
.awaycard .row .name,.awaylist .row .name{white-space:normal}

/* Admin screen: one section at a time. The section bar stays under the top bar; "All sections"
   opens the menu of sections, which drops down from the top bar over a scrim. */
.admbar{position:sticky;top:var(--topbar-h,58px);z-index:5;background:var(--surface);margin:-6px 0 -8px;padding:8px 0 10px}
.secbtn{width:100%;display:flex;align-items:center;gap:10px;border:1.5px solid var(--court);background:var(--court-soft);border-radius:16px;padding:7px 7px 7px 9px;text-align:left;box-shadow:0 4px 12px var(--court-glow)}
.secbtn .ico{width:36px;height:36px;border-radius:11px;background:var(--surface);color:var(--court);display:grid;place-items:center;flex:none}
.secbtn .lbl{flex:1;min-width:0;display:grid;line-height:1.1}
.secbtn .eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.secbtn .lbl b{font-family:var(--display);font-weight:800;font-size:21px;line-height:.95;text-transform:uppercase;text-wrap:balance}
.secbtn .all{display:inline-flex;align-items:center;gap:6px;flex:none;background:var(--court);color:#fff;border-radius:11px;padding:9px 11px 9px 9px;font-weight:700;font-size:13.5px;line-height:1;white-space:nowrap}
.secbtn[aria-expanded="true"] .all{background:var(--ink);color:var(--surface)}
.secbtn svg,.secitem svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.secbtn .all svg{width:17px;height:17px;stroke-width:2.2}
.secscrim{position:fixed;inset:var(--topbar-h,58px) 0 0;background:var(--scrim);opacity:0;pointer-events:none;transition:opacity .2s;z-index:8}
.secscrim.open{opacity:1;pointer-events:auto}
.secmenu{position:fixed;top:var(--topbar-h,58px);left:0;right:0;margin:0 auto;width:100%;max-width:480px;max-height:calc(100dvh - var(--topbar-h,58px) - 16px);overflow-y:auto;overscroll-behavior:contain;
  background:var(--surface);border:1px solid var(--line);border-top:none;border-radius:0 0 22px 22px;box-shadow:0 14px 30px rgba(10,17,29,.22);z-index:9;
  padding:2px max(10px,env(safe-area-inset-right,0px)) 14px max(10px,env(safe-area-inset-left,0px));display:grid;gap:1px;align-content:start;
  opacity:0;transform:translateY(-10px);visibility:hidden;transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s}
.secmenu.open{opacity:1;transform:none;visibility:visible;transition:opacity .2s ease,transform .2s ease,visibility 0s}
.sechead{display:flex;align-items:center;justify-content:space-between;padding:12px 4px 2px 10px}
.sechead b{font-family:var(--display);font-weight:800;font-size:22px;text-transform:uppercase;line-height:1}
.secclose{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--sunk);font-size:20px;line-height:1;display:grid;place-items:center;padding:0}
.secgroup{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:10px 10px 4px}
.secitem{display:flex;align-items:center;gap:12px;border:none;background:none;border-radius:12px;padding:9px 10px;text-align:left;width:100%;color:var(--muted)}
.secitem:hover{background:var(--sunk)}
.secitem .t{flex:1;min-width:0}
.secitem b{display:block;font-size:15px;color:var(--ink);line-height:1.25}
.secitem small{display:block;font-size:12.5px;line-height:1.3}
.secitem[aria-current="true"]{background:var(--court-soft);color:var(--court)}
.secitem[aria-current="true"] b{color:var(--court)}
body.noscroll{overflow:hidden}
@media (prefers-reduced-motion:reduce){.secmenu,.secscrim{transition:none}}

/* ---------- Team Builder: "Your game", positions, admin skill box, Admin › Teams, teams on This week ---------- */
.eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.lock{display:flex;gap:6px;align-items:flex-start;font-size:12.5px;color:var(--muted);line-height:1.4}
.lock svg{width:14px;height:14px;flex:none;margin-top:2px;fill:none;stroke:currentColor;stroke-width:2}
.sublbl{display:block;font-size:13.5px;font-weight:700;margin-top:4px}
.sublbl small{display:block;font-weight:500;font-size:12.5px;color:var(--muted)}
/* skill level 1 to 5 */
.skills{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.skills button{border:1px solid var(--line);background:var(--sunk);border-radius:12px;padding:8px 0 6px;display:grid;justify-items:center;gap:1px;min-width:0}
.skills button b{font-family:var(--display);font-weight:900;font-size:24px;line-height:1}
.skills button small{font-size:10px;font-weight:600;color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px}
.skills button[aria-pressed="true"]{border:2px solid var(--court);background:var(--court-soft)}
.skills button[aria-pressed="true"] b{color:var(--court)}
.skilldesc{font-size:13px;color:var(--muted);margin:0}
/* positions */
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips button{border:1px solid var(--line);background:var(--sunk);border-radius:10px;padding:6px 9px;display:grid;justify-items:center;line-height:1.15;min-width:56px}
.chips button b{font-size:14px;font-weight:800}
.chips button small{font-size:10px;color:var(--muted);font-weight:600}
.chips button[aria-pressed="true"]{border:2px solid var(--ink);background:var(--surface)}
.chips button:disabled{opacity:.35;cursor:not-allowed}
.chips button.dim{opacity:.45}
.pos{display:inline-flex;align-items:center;border-radius:7px;padding:1px 6px;font-size:11px;font-weight:800;letter-spacing:.04em;background:var(--sunk);box-shadow:inset 0 0 0 1px var(--line);color:var(--ink)}
.pos.main{background:var(--ink);color:var(--surface);box-shadow:none}
.posline{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px;color:var(--muted)}
.nogame{font-size:11.5px;font-weight:600;color:var(--muted)}
.sdots{display:inline-flex;gap:3px;vertical-align:middle;flex:none}
.sdots i{width:7px;height:7px;border-radius:50%;background:var(--line)}
.sdots i.on{background:var(--court)}
/* an admin's private skill box on a player card */
.adminbox{border:1px dashed var(--court);background:var(--court-soft);border-radius:14px;padding:12px;display:grid;gap:4px}
.adminbox .eyebrow{color:var(--court)}
.adminbox .setting{padding:8px 0;border-bottom-color:color-mix(in srgb,var(--court) 25%,transparent)}
.adminbox .btn{justify-self:start}
/* "Add your game" on This week */
.nudge{background:var(--court-soft);border:1px solid color-mix(in srgb,var(--court) 45%,transparent);border-radius:16px;padding:12px 14px;display:grid;gap:4px}
.nudge .eyebrow{color:var(--court)}
.nudge b{font-size:15px;line-height:1.3}
.nudge p{margin:0;font-size:13.5px;color:var(--muted)}
.nudge .btnrow{margin-top:6px}
/* Admin › Teams */
.tcard{display:grid;gap:10px}
.teamopts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.teamopts > div{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:8px 10px;display:grid;gap:4px;justify-items:start;min-width:0}
.optlbl{font-size:12px;font-weight:700;color:var(--muted);line-height:1.2}
.defrow{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--muted);line-height:1.35;min-height:30px}
.defrow .btn{flex:none}
.fit{margin:0!important;display:flex;gap:7px;align-items:flex-start;font-size:12.5px!important;font-weight:600;line-height:1.4}
.fit::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;flex:none;margin-top:5px}
.fit.good{color:var(--good)!important} .fit.warn{color:var(--warn)!important}
.tcard .setting:first-child{padding-top:0}
.balance{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13.5px}
.tnote{margin:0;font-size:12.5px;color:var(--muted)}
.tnote.warn{color:var(--warn);font-weight:600}
.team{border-radius:16px;overflow:hidden;border:1.5px solid color-mix(in srgb,var(--court) 45%,transparent);background:var(--surface)}
.team header{padding:10px 12px 9px;background:var(--court-soft);border-bottom:1px solid color-mix(in srgb,var(--court) 30%,transparent)}
.team header .hrow{display:flex;align-items:center;gap:8px}
.team header .tname{font-family:var(--display);font-weight:900;font-size:30px;line-height:.9;letter-spacing:.05em;text-transform:uppercase}
.team header .wear{margin-left:auto;white-space:nowrap;border:1.5px solid currentColor;border-radius:999px;padding:3px 9px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.team header .meta{display:block;font-size:12px;font-weight:600;line-height:1.35;opacity:.85;margin-top:6px}
.team.bench,.team.loose,.myteam.bench{border-style:dashed;border-color:var(--muted)}
.team.bench header,.team.loose header{background:var(--sunk);border-bottom-color:var(--line)}
.tile{width:32px;height:32px;flex:none;border-radius:9px;background:var(--court);color:var(--surface);display:grid;place-items:center;font-family:var(--display);font-weight:900;font-size:22px;line-height:1}
.benchic{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.team header .benchic{width:30px;height:30px;flex:none}
.team ul{list-style:none;margin:0;padding:4px 6px 6px;display:grid;gap:2px}
.team li > button,.team li > .tp{width:100%;display:flex;align-items:center;gap:8px;border:1px solid transparent;background:none;border-radius:10px;padding:5px 6px;text-align:left}
.team li > button.sel{border-color:var(--court);background:var(--court-soft)}
.team li .avatar{width:28px;height:28px;font-size:10.5px;margin:0}
.team li .avatar .emo{font-size:16px}
.tp-main{flex:1;min-width:0;display:grid;gap:3px}
.tp-main .nm{font-weight:600;font-size:14px;line-height:1.2;overflow-wrap:anywhere}
.tp-main .nm .you{margin-left:6px}
.tp-main .sub{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.tp-main .sub .sdots{margin-left:auto}
.movehere{margin:0 6px 8px;width:calc(100% - 12px)}
.teamlists{display:grid;gap:10px}
/* the teams card on This week */
.teamscard{display:grid;gap:10px}
.myteam{border-radius:16px;padding:12px 14px;display:flex;align-items:center;gap:12px;border:2px solid var(--court);background:var(--court-soft)}
.myteam.bench{background:var(--sunk)}
.myteam .tile{width:46px;height:46px;border-radius:12px;font-size:32px}
.myteam .benchic{width:46px;height:46px;flex:none}
.myteam .lbl{display:block;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.8}
.myteam:not(.bench) .lbl{color:var(--court);opacity:1}
.myteam b{display:block;font-family:var(--display);font-weight:900;font-size:38px;line-height:.9;letter-spacing:.05em;text-transform:uppercase}
.myteam small{display:block;font-size:13px;font-weight:600;opacity:.85;margin-top:3px}
.shirts{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--muted);line-height:1.35}
.shirts b{display:block;color:var(--ink);font-size:13.5px}
.shirts .pair{display:flex;flex:none}
.shirts svg{width:34px;height:34px}
.shirts svg path{stroke:var(--ink);stroke-width:1.6;stroke-linejoin:round}
.shirts .sd path{fill:#1B2433} .shirts .sw path{fill:#FFFFFF}
.shirts .sw{margin-left:-12px}
.expander{display:flex!important;align-items:center;justify-content:center;gap:6px;width:100%}
.chev{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.expander[aria-expanded="true"] .chev{transform:rotate(180deg)}
.tcard .prio-edit{border-top:none;padding-top:0}
.tcard .tnote{margin-top:2px}

/* Position explainer (public/plays.js): a play on a half court, offence then defence, over My details. */
.posx{z-index:12}
.posx-dlg{gap:10px}
.posx-head{display:flex;align-items:center;gap:8px}
.posx-head h3{flex:1;min-width:0;display:flex;align-items:center;gap:8px;font-size:18px}
.iconbtn{flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--sunk);display:grid;place-items:center;padding:0;font-size:17px;font-weight:700;line-height:1}
.poscode{display:inline-grid;place-items:center;min-width:34px;height:24px;padding:0 7px;border-radius:7px;background:var(--court);color:#fff;font:800 12px/1 var(--body);letter-spacing:.04em}
.prole{margin:0;color:var(--muted);font-size:13.5px}
.prole b{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase}
.prole.off b{color:var(--court)} .prole.def b{color:var(--blue)}
.pskills{display:flex;flex-wrap:wrap;gap:6px}
.pskills span{font-size:12px;font-weight:600;border-radius:999px;padding:2px 9px;background:var(--sunk);box-shadow:inset 0 0 0 1px var(--line)}
.pdots{display:flex;justify-content:center;gap:6px}
.pdots i{width:7px;height:7px;border-radius:50%;background:var(--line)}
.pdots i.on{background:var(--court)}
.pplay{display:grid;gap:7px}
.pcourt{width:100%;height:auto;max-height:42dvh;display:block;margin:0 auto;border-radius:14px;background:var(--floor)}
.pc-line{fill:none;stroke:var(--floor-line);stroke-width:1.6}
.pc-paint{fill:var(--paint)}
.pc-rim{fill:none;stroke:var(--court);stroke-width:1.8}
.pc-board{stroke:var(--ink);stroke-width:2.4;stroke-linecap:round}
.pc-dribble{fill:none;stroke:var(--court);stroke-width:1.7;stroke-linejoin:round}
.pc-move{fill:none;stroke:var(--muted);stroke-width:1.7}
.pc-pass{fill:none;stroke:var(--blue);stroke-width:1.7;stroke-dasharray:5 4}
.pc-shot{fill:none;stroke:var(--court);stroke-width:2.2;stroke-dasharray:.5 4.5;stroke-linecap:round}
.pc-screen{stroke:var(--ink);stroke-width:2.8;stroke-linecap:round}
.pc-opp{fill:none;stroke:var(--opp-line);stroke-width:1.5;stroke-linejoin:round;opacity:.85}
.pc-opp-pass{fill:none;stroke:var(--opp-line);stroke-width:1.5;stroke-dasharray:5 4;opacity:.85}
.pc-opp-shot{fill:none;stroke:var(--opp-line);stroke-width:2.2;stroke-dasharray:.5 4.5;stroke-linecap:round}
.pc-ah-move{fill:var(--muted)} .pc-ah-pass{fill:var(--blue)} .pc-ah-dribble{fill:var(--court)} .pc-ah-opp{fill:var(--opp-line)}
.pc-p-mate circle{fill:var(--surface);stroke:var(--ink);stroke-width:1.4}
.pc-p-mate text{fill:var(--ink);font:700 8.5px var(--body);text-anchor:middle;dominant-baseline:central}
.pc-p-focus .glow{fill:var(--court);opacity:.2}
.pc-p-focus .disc{fill:var(--court);stroke:var(--surface);stroke-width:1.6}
.pc-p-focus text{fill:#fff;font:800 9.5px var(--body);text-anchor:middle;dominant-baseline:central}
.pc-p-opp circle{fill:var(--opp);stroke:var(--floor);stroke-width:1.4}
.pc-ball{fill:var(--ball);stroke:var(--surface);stroke-width:1.3}
.pc-seam{fill:none;stroke:var(--seam);stroke-width:.7}
.pc-res{font:900 17px var(--display);letter-spacing:.04em;paint-order:stroke;stroke:var(--floor);stroke-width:4px;stroke-linejoin:round}
.pc-res.off{fill:var(--court)} .pc-res.def{fill:var(--blue)}
.pc-tag{font:900 13px var(--display);letter-spacing:.12em}
.pc-tag.off{fill:var(--court)} .pc-tag.def{fill:var(--blue)}
/* The phase switch on its own row and a caption box that's always two lines tall, so nothing moves as the steps change */
.pcaprow{display:grid;gap:6px;justify-items:start}
.pphases{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.pphases button{border:none;background:var(--surface);padding:3px 10px;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pphases button.on.off{background:var(--court);color:#fff}
.pphases button.on.def{background:var(--blue);color:var(--surface)}
.pcap{display:flex;align-items:flex-start;gap:8px;width:100%;height:2.7em;font-size:13.5px;line-height:1.35;font-weight:600;min-width:0;overflow:hidden}
.pcap .tx{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcap .n{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:11px;font-weight:800;line-height:1}
.pcap.off .n{background:var(--court-soft);color:var(--court)} .pcap.def .n{background:var(--blue-soft);color:var(--blue)}
.pbar{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.pbar span{height:3px;border-radius:2px;background:var(--line);overflow:hidden}
.pbar i{display:block;height:100%;width:0}
.pbar span:first-child i{background:var(--court)} .pbar span:last-child i{background:var(--blue)}

/* Every other sport's plays (public/plays/): the same tokens and trails as basketball's above, on each sport's own
   surface (public/plays/surfaces.js). A surface's class tints the board; light here, dark below. */
.pcourt.sf-grass{--floor:#EAF1E1;--floor-line:#A8BE94;--paint:#DEE9D1;--dirt:#EBDCC6;--red-line:#A8BE94;--crease:#DCE8CF}
.pcourt.sf-ice{--floor:#EFF4F8;--floor-line:#B7C5D4;--paint:#E3EBF3;--red-line:#D98A83;--blue-line:#86A6D8;--crease:#D7E5F6;--house-out:#C3D7F1;--house-in:#F0C3BD}
.pcourt.sf-pool{--floor:#E2EFF5;--floor-line:#9EC0D1;--paint:#D3E6EF;--red-line:#D98A83;--yellow-line:#D4B04C}
.pcourt.sf-sand{--floor:#F4EAD6;--floor-line:#CDB58C;--paint:#EEDFC2}
.pcourt.sf-tile{--floor:#EDEFF3;--floor-line:#B5BDCA;--paint:#E2E6EC;--red-line:#D98A83;--crease:#DCE5F2}
.pcourt.sf-curl{background:var(--paint)}
.pcourt.sf-oval{background:var(--paint)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .pcourt.sf-grass{--floor:#11231B;--floor-line:#2F4C3B;--paint:#163025;--dirt:#2B261F;--red-line:#2F4C3B;--crease:#183327}
  :root:not([data-theme="light"]) .pcourt.sf-ice{--floor:#141F2D;--floor-line:#364A63;--paint:#1A2738;--red-line:#8E4747;--blue-line:#3E679E;--crease:#1C3150;--house-out:#203A60;--house-in:#5A2D2D}
  :root:not([data-theme="light"]) .pcourt.sf-pool{--floor:#0E2130;--floor-line:#2A4E66;--paint:#12293B;--red-line:#8E4747;--yellow-line:#8A7430}
  :root:not([data-theme="light"]) .pcourt.sf-sand{--floor:#28231A;--floor-line:#584a31;--paint:#30291D}
  :root:not([data-theme="light"]) .pcourt.sf-tile{--floor:#161C26;--floor-line:#3A4658;--paint:#1C2330;--red-line:#8E4747;--crease:#1C2A40}
  :root:not([data-theme="light"]) .pb-puck .pb-body{stroke:#AAB6C6;stroke-width:1}
  :root:not([data-theme="light"]) .pb-ring .pb-body{stroke:#7FA6EA}
}
:root[data-theme="dark"] .pcourt.sf-grass{--floor:#11231B;--floor-line:#2F4C3B;--paint:#163025;--dirt:#2B261F;--red-line:#2F4C3B;--crease:#183327}
:root[data-theme="dark"] .pcourt.sf-ice{--floor:#141F2D;--floor-line:#364A63;--paint:#1A2738;--red-line:#8E4747;--blue-line:#3E679E;--crease:#1C3150;--house-out:#203A60;--house-in:#5A2D2D}
:root[data-theme="dark"] .pcourt.sf-pool{--floor:#0E2130;--floor-line:#2A4E66;--paint:#12293B;--red-line:#8E4747;--yellow-line:#8A7430}
:root[data-theme="dark"] .pcourt.sf-sand{--floor:#28231A;--floor-line:#584a31;--paint:#30291D}
:root[data-theme="dark"] .pcourt.sf-tile{--floor:#161C26;--floor-line:#3A4658;--paint:#1C2330;--red-line:#8E4747;--crease:#1C2A40}
:root[data-theme="dark"] .pb-puck .pb-body{stroke:#AAB6C6;stroke-width:1}
:root[data-theme="dark"] .pb-ring .pb-body{stroke:#7FA6EA}
/* surface markings */
.pc-thin{fill:none;stroke:var(--floor-line);stroke-width:1.1}
.pc-dash{fill:none;stroke:var(--floor-line);stroke-width:1.2;stroke-dasharray:5 4}
.pc-spot{fill:var(--floor-line)}
.pc-net{fill:var(--paint);stroke:var(--floor-line);stroke-width:.9}
.pc-goal{fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pc-post{fill:var(--ink)}
.pc-flag{fill:#E3B23C;stroke:var(--floor);stroke-width:1}
.pc-cone{fill:#E8742E;stroke:var(--floor);stroke-width:1}
.pc-red{fill:none;stroke:var(--red-line);stroke-width:1.8}
.pc-red-line{fill:none;stroke:var(--red-line);stroke-width:1.4}
.pc-red-thin{fill:none;stroke:var(--red-line);stroke-width:1.1}
.pc-red-dot{fill:var(--red-line)}
.pc-red-dash{fill:none;stroke:var(--red-line);stroke-width:1.4;stroke-dasharray:5 4}
.pc-yellow-dash{fill:none;stroke:var(--yellow-line);stroke-width:1.4;stroke-dasharray:5 4}
.pc-blueline{fill:none;stroke:var(--blue-line);stroke-width:3.5}
.pc-blue-thin{fill:none;stroke:var(--blue-line);stroke-width:1.2}
.pc-blue-dot{fill:var(--blue-line)}
.pc-crease{fill:var(--crease);stroke:var(--red-line);stroke-width:1.1}
.pc-dirt{fill:var(--dirt)}
.pc-grass{fill:var(--floor)}
.pc-track{fill:none;stroke:var(--dirt);stroke-width:10}
.pc-circle{fill:none;stroke:var(--floor-line);stroke-width:1.1}
.pc-chalk{fill:none;stroke:var(--floor-line);stroke-width:1.3}
.pc-base{fill:var(--surface);stroke:var(--floor-line);stroke-width:.9}
.pc-try{fill:none;stroke:var(--floor-line);stroke-width:2.4}
.pc-tick{fill:none;stroke:var(--floor-line);stroke-width:1}
.pc-wall{fill:none;stroke:var(--floor-line);stroke-width:3}
.pc-board-side{fill:none;stroke:var(--ink);stroke-width:2.4;stroke-opacity:.3}
.pc-ground{fill:var(--floor)}
.pc-rope{fill:none;stroke:var(--floor-line);stroke-width:2.4}
.pc-stumps{fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round}
.pc-sheet{fill:var(--floor)}
.pc-house-12{fill:var(--house-out);stroke:var(--floor-line);stroke-width:.8}
.pc-house-8,.pc-house-btn{fill:var(--floor);stroke:var(--floor-line);stroke-width:.8}
.pc-house-4{fill:var(--house-in);stroke:var(--floor-line);stroke-width:.8}
.pc-hog{fill:none;stroke:var(--red-line);stroke-width:2.4}
.pc-hack{fill:var(--ink)}
.pc-break{fill:none;stroke:var(--muted);stroke-width:1.4;stroke-linejoin:round}
/* what plays draw on top: a run with the ball in hand, marks (an offside line, a target), items (curling stones), opponents' letters */
.pc-carry{fill:none;stroke:var(--court);stroke-width:1.7}
.pc-mark{fill:none;stroke:var(--muted);stroke-width:1.3;stroke-dasharray:4 3}
.pc-mark-aim{stroke:var(--court);stroke-dasharray:1 3.5;stroke-linecap:round;stroke-width:1.6}
.pc-target circle{fill:none;stroke:var(--court);stroke-width:1.4}
.pc-target path{fill:none;stroke:var(--court);stroke-width:1.6;stroke-linecap:round}
.pc-zone{fill:var(--court);fill-opacity:.12}
.pc-item-us{fill:none;stroke:var(--court);stroke-width:1.3;stroke-dasharray:1 3;stroke-linecap:round}
.pc-item-them{fill:none;stroke:var(--opp-line);stroke-width:1.3;stroke-dasharray:1 3;stroke-linecap:round}
.pc-p-opp text{fill:var(--surface);font:800 7.5px var(--body);text-anchor:middle;dominant-baseline:central}
/* balls, pucks, discs and stones, in their own colours */
.pb-body{stroke-width:.9}
.pb-line{fill:none}
.pb-soccer .pb-body,.pb-small .pb-body,.pb-disc .pb-body{fill:#FBFBF8;stroke:#1C2430}
.pb-soccer .pb-mark{fill:#1C2430}
.pb-disc .pb-line{stroke:#9AA6B8;stroke-width:.7}
.pb-volley .pb-body,.pb-netball .pb-body,.pb-handball .pb-body,.pb-floorball .pb-body,.pb-rugby .pb-body{fill:#FBFAF2;stroke:#1C2430}
.pb-volley .pb-line,.pb-netball .pb-line,.pb-handball .pb-line{stroke:#2F5FAE;stroke-width:.8}
.pb-handball .pb-mark{fill:none;stroke:#E4570F;stroke-width:1}
.pb-floorball .pb-mark{fill:#8C98AA}
.pb-rugby .pb-line{stroke:#B8392B;stroke-width:.8}
.pb-puck .pb-body{fill:#15181D;stroke:#15181D}
.pb-puck .pb-line{stroke:#3A4250;stroke-width:.6}
.pb-baseball .pb-body{fill:#FDFDFB;stroke:#1C2430;stroke-width:.8}
.pb-softball .pb-body{fill:#E3EC4E;stroke:#4A4C12;stroke-width:.8}
.pb-baseball .pb-line,.pb-softball .pb-line{stroke:#C8322B;stroke-width:.7}
.pb-kickball .pb-body{fill:#D8443A;stroke:#7A1D17}
.pb-kickball .pb-mark{fill:#F08A80}
.pb-football .pb-body{fill:#8A4B22;stroke:#3A1A08}
.pb-football .pb-line{stroke:#FFF;stroke-width:.8}
.pb-stone .pb-body{fill:#A6AEB8;stroke:#4C5560}
.pb-stone .pb-mark{fill:var(--court);stroke:#3A1A08;stroke-width:.5}
.pb-stone.pb-them .pb-mark{fill:#F4E04D;stroke:#5A4A08;stroke-width:.5}
.pb-cricket .pb-body{fill:#B3261E;stroke:#5A0F0A}
.pb-cricket .pb-line{stroke:#F5E9E0;stroke-width:.7}
.pb-wpolo .pb-body{fill:#F2C230;stroke:#6B4E08}
.pb-wpolo .pb-line{stroke:#1F4E9A;stroke-width:.8}
.pb-ring .pb-body{fill:none;stroke:#2F5FAE;stroke-width:2.6}

/* ---------- groups (one app, many groups) ---------- */
/* A group's colour (groups.color, src/brand.js) sets --g for everything inside it. */
.gc-orange{--g:var(--gc-orange)} .gc-blue{--g:var(--gc-blue)} .gc-green{--g:var(--gc-green)} .gc-amber{--g:var(--gc-amber)}
.gc-purple{--g:var(--gc-purple)} .gc-teal{--g:var(--gc-teal)} .gc-pink{--g:var(--gc-pink)} .gc-slate{--g:var(--gc-slate)}
/* A group's logo: its sport's icon (public/sport-icons.js) in its colour, on a round tile. */
.gi{--s:30px;width:var(--s);height:var(--s);border-radius:50%;display:grid;place-items:center;flex:none;background:var(--surface);color:var(--g,var(--ink));box-shadow:inset 0 0 0 1px var(--line)}
.gi svg{width:calc(var(--s) * .68);height:calc(var(--s) * .68);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gi.md{--s:40px} .gi.big{--s:56px}
.gi.big svg{stroke-width:1.6}
.gi.ring{box-shadow:inset 0 0 0 2px var(--g,var(--line))}
.gi.plus{background:none;box-shadow:none;border:1.5px dashed var(--line);color:var(--muted);font-size:20px;line-height:1}
/* The open group at the top: its icon, name, sport and days, with its colour as the border. Opens Your
   groups (the arrow) when there's somewhere to switch to; the dot means another group waits for an answer. */
.gchip{display:flex;align-items:center;gap:9px;min-width:0;max-width:100%;border:2px solid var(--g,var(--line));background:var(--sunk);border-radius:15px;padding:4px 11px 4px 4px;text-align:left;color:var(--ink);font:inherit}
.gchip .t{min-width:0;display:grid}
.gchip b{font-size:14.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gchip small{font-size:11.5px;line-height:1.25;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gchip.solo{padding-right:12px}
button.gchip{cursor:pointer}
.tb-chev{width:10px;height:6px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.needs{position:relative}
.needs::after{content:"";position:absolute;top:-4px;right:-4px;width:10px;height:10px;border-radius:50%;background:var(--court);box-shadow:0 0 0 2px var(--surface)}
.needline{display:flex;align-items:center;gap:6px;font-style:normal;font-size:12.5px;font-weight:600;color:var(--court);margin-top:2px}
.needline::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--court);flex:none}
.glist{display:grid;gap:8px}
.grow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:2px solid var(--g,var(--line));background:var(--sunk);border-radius:14px;padding:9px 11px;color:var(--ink)}
.grow .t{flex:1;min-width:0}
.grow b{display:block;font-size:15px;line-height:1.25}
.grow small{display:block;font-size:12.5px;color:var(--muted);line-height:1.35}
.grow .pill{flex:none}
.grow[aria-current="true"]{background:color-mix(in srgb,var(--g,var(--ink)) 10%,var(--surface))}
.grow.add{border:1.5px dashed var(--line);background:none;padding:9.5px 11.5px}
/* The group at the top of the join screens and link pages */
.jhead{display:flex;align-items:center;gap:14px;min-width:0}
.dialog .jhead{margin-right:40px}
.jhead .t{min-width:0;display:grid;gap:2px}
.jhead b{font-size:20px;line-height:1.2;overflow-wrap:anywhere}
.jhead small{font-size:13px;color:var(--muted)}
/* Picking between the coming games (gamesSwitch): the week from today, a box a day and a dot per game, then
   the times of a day with two games or more. */
.gpick{display:grid;gap:6px;margin-bottom:-8px}
.seg.gweek{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;padding:2px;border-radius:11px}
.gweek button{display:grid;justify-items:center;align-content:start;min-width:0;padding:3px 0;border-radius:9px;white-space:nowrap}
.gweek small{font-size:10px;font-weight:600;line-height:1.1}
.gweek b{font-size:15px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.gweek .today small{color:var(--court)}
.gweek button[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--court),0 1px 3px rgba(15,27,44,.12)}
.gweek button:disabled{opacity:.4;cursor:default}
.gweek .dots{display:flex;justify-content:center;gap:3px;height:4px;margin-top:2px}
.gweek .dots i{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.6}
.gweek .dots i.on{background:var(--court);opacity:1}
.gtimes{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gtimes span{font-size:12px;color:var(--muted);font-weight:600;margin-right:2px}
.gtimes button{border:1px solid var(--line);background:var(--sunk);border-radius:999px;padding:2px 10px;font-size:12.5px;font-weight:600;color:var(--muted)}
.gtimes button[aria-pressed="true"]{border-color:var(--court);background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 .5px var(--court)}
/* Starting a group */
/* Start a group's step bar and "N of 4" stay pinned at the top while a step scrolls, under the close button */
.stephead{position:sticky;top:-22px;z-index:1;display:grid;gap:8px;margin:-36px -20px 0;padding:36px 20px 10px;background:var(--surface);border-radius:22px 22px 0 0;transition:box-shadow .15s}
.stephead.stuck{box-shadow:0 1px 0 var(--line)}
.stepbar{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:4px 44px 0 0}
.stepbar i{height:3px;border-radius:2px;background:var(--line)}
.stepbar i.on{background:var(--court)}
.stepeyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
/* The sport picker (Start a group's first step, Change sport): a search box past 8 sports, sections, a row per
   sport in its colour; the one picked opens its kinds and details under it; Next stays at the bottom. */
.pk-search{position:relative;display:block}
.pk-search svg{position:absolute;left:12px;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;pointer-events:none}
.pk-search input{width:100%;border:1px solid var(--line);background:var(--sunk);border-radius:12px;padding:11px 12px 11px 38px;font:inherit;font-size:16px;color:var(--ink)}
.pk-search input::placeholder{color:var(--muted)}
.pk-list{display:grid;gap:16px}
.pk-sec{display:grid;gap:8px}
.pk-sec > h4{margin:0;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;display:flex;justify-content:space-between;gap:8px}
.pk-sec > h4 span{font-weight:600;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.pk-rows{display:grid;gap:6px}
.pk-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);background:var(--sunk);border-radius:14px;padding:8px 12px 8px 8px;color:var(--ink)}
.pk-row .t{flex:1;min-width:0;display:grid}
.pk-row b{font-size:15px;line-height:1.25}
.pk-row small{font-size:12.5px;color:var(--muted);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-row small.also{font-size:12px}
.pk-row .tick{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line);flex:none;display:grid;place-items:center}
.pk-row .tick svg{width:13px;height:13px;fill:none;stroke:var(--surface);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.pk-row[aria-pressed="true"]{border:2px solid var(--ink);background:var(--surface);padding:7px 11px 7px 7px}
.pk-row[aria-pressed="true"] .tick{background:var(--ink);border-color:var(--ink)}
.pk-row[aria-pressed="true"] .tick svg{opacity:1}
.pk-row.other{border-style:dashed;background:none}
.pk-row .pill{flex:none}
.pk-detail{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:12px;display:grid;gap:10px}
.pk-lbl{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}
.kinds{display:flex;flex-wrap:wrap;gap:6px}
.kinds button{border:1px solid var(--line);background:var(--sunk);border-radius:999px;padding:6px 12px;font-size:13.5px;font-weight:600;color:var(--ink)}
.kinds button[aria-pressed="true"],.kinds button[aria-checked="true"]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.pk-detail .pk-facts{margin:0;padding:0;list-style:none;display:grid;gap:4px;font-size:13.5px;color:var(--muted)}
.pk-facts .warn{color:var(--warn);font-weight:600}
.pk-none{margin:0;font-size:14px;color:var(--muted)}
.pk-icons{display:flex;flex-wrap:wrap;gap:6px}
.pk-icons button{width:42px;height:42px;border-radius:12px;border:1px solid var(--line);background:var(--sunk);display:grid;place-items:center;color:var(--ink);padding:0}
.pk-icons button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pk-icons button[aria-checked="true"]{border:2px solid var(--ink);background:var(--surface)}
.pk-pos{display:grid;gap:6px}
.pk-posrow{display:grid;grid-template-columns:72px minmax(0,1fr) 38px;gap:6px}
.pk-posrow input{width:100%;border:1px solid var(--line);background:var(--sunk);border-radius:10px;padding:9px 10px;font:inherit;font-size:16px;color:var(--ink);font-weight:500;min-width:0}
.pk-posrow input:first-child{text-transform:uppercase;font-weight:700}
.pk-posdel{border:1px solid var(--line);background:var(--sunk);border-radius:10px;font-size:20px;line-height:1;color:var(--muted)}
.pk-add{justify-self:start}
.pk-foot{position:sticky;bottom:-18px;margin:0 -20px -18px;padding:12px 20px 18px;background:var(--surface);border-top:1px solid var(--line);display:grid;gap:8px;z-index:2}
.pk-sum{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px;min-width:0}
.pk-sum span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pk-sum b{color:var(--ink)}
/* Admin › Group's sport card */
.sprow{display:flex;align-items:center;gap:12px;min-width:0}
.sprow .t{flex:1;min-width:0;display:grid}
.sprow b{font-size:16px;line-height:1.25}
.sprow small{font-size:12.5px;color:var(--muted)}
.card .kinds{margin-top:10px}
.card .pk-lbl{display:block;margin-top:12px}
.field .hint{font-weight:500;font-size:12px;color:var(--muted)}
.seg.days button{display:grid;justify-items:center;gap:3px;padding:7px 0 5px;font-size:12.5px;line-height:1.2}
/* A day with games: filled in the app's orange, a dot for each game time (slotsEditor in app.js) */
.seg.days button[aria-pressed="true"]{background:var(--court);color:#fff;box-shadow:none}
.seg.days .dots{display:flex;gap:3px;height:4px}
.seg.days .dots i{width:4px;height:4px;border-radius:50%;background:currentColor}
.formgrid{display:grid;gap:12px;margin-top:4px}
/* Name and look: the colours, and a preview of the top bar and the group's row in Your groups */
.swatches{display:flex;flex-wrap:wrap;gap:10px;padding:4px 2px}
.sw{width:34px;height:34px;border-radius:50%;border:none;background:var(--g);box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--line);display:grid;place-items:center;padding:0}
.sw svg{width:16px;height:16px;fill:none;stroke:var(--surface);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.sw[aria-checked="true"]{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink)}
.sw[aria-checked="true"] svg{opacity:1}
.lookprev{border:1px solid var(--line);border-radius:14px;padding:10px;display:grid;gap:10px;background:var(--surface);min-width:0}
.lookprev .prevbar{display:flex;align-items:center;gap:10px;min-width:0}
.teamsum{font-size:14px;font-weight:700;color:var(--ink);background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:10px 12px;line-height:1.35}
.teamsum small{display:block;font-weight:500;color:var(--muted);font-size:12.5px}
.confirm{background:var(--warn-soft);border-radius:12px;padding:12px;display:grid;gap:10px;margin-top:10px}
.confirm p,.dialog .confirm p{color:var(--ink);font-size:13.5px;margin:0}
.card .seg{margin-top:2px}
/* Game times: one block per day picked, with each start time and how long it runs. */
.dayrows{display:grid;gap:14px}
.dayrow{display:grid;gap:6px}
.dayrow .dname{display:flex;justify-content:space-between;align-items:center;gap:8px}
.dayrow .dname b{font-size:14.5px}
.slotrow{display:grid;gap:3px}
.slotfoot{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:20px}
.slotfoot small{font-size:12.5px;color:var(--muted);white-space:nowrap}
.slotfoot small.bad{color:var(--bad);font-weight:600}
.dayctl{display:grid;grid-template-columns:minmax(0,1fr) 62px 86px;gap:8px;align-items:center}
.dayctl input,.dayctl select{width:100%;min-width:0;border:1px solid var(--line);background-color:var(--sunk);border-radius:10px;padding:10px 8px;font:inherit;font-size:16px;color:var(--ink);font-weight:500;min-height:46px}
/* The hours and minutes menus draw their own small arrow, so "30 min" fits on a phone. */
.dayctl select{padding:10px 22px 10px 10px}   /* the triangle comes from the select rule at the top */
.textbtn{border:none;background:none;padding:2px 0;font-size:13px;font-weight:700;color:var(--court)}

/* ---------- signing in ---------- */
/* Google's button is drawn by Google's script (up to 400px wide); this holds its place while it loads.
   For someone who has signed in before, Google draws a "Continue as …" button in a frame. That frame is a
   light page, and in dark mode a browser paints a white backdrop behind a light frame on a dark page,
   which showed as a white border. color-scheme:light here keeps the frame see-through. */
.gslot{min-height:44px;width:100%;min-width:0;max-width:400px;display:flex;align-items:center;justify-content:center;margin:2px auto;overflow:hidden;color-scheme:light}
.gslot .fine{text-align:center}
.privacy{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--muted);line-height:1.45}
.privacy svg{width:15px;height:15px;flex:none;margin-top:2px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.warnbox{background:var(--warn-soft);color:var(--ink);border-radius:12px;padding:12px;font-size:13.5px;line-height:1.45;display:grid;gap:6px}
/* The Android app's own Google button (public/native.js), drawn to Google's branding rules: Google's G on
   white, Google Sans Medium 14/20, 12px before the logo, 10px after it and 12px after the text.
   Light: white with a #747775 outline and #1F1F1F text. Dark: #131314 with a #8E918F outline and #E3E3E3 text. */
.gnative{--g-fill:#FFFFFF;--g-edge:#747775;--g-text:#1F1F1F;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:40px;padding:0 12px;border-radius:20px;
  border:1px solid var(--g-edge);background:var(--g-fill);color:var(--g-text);font:500 14px/20px "Google Sans",Roboto,system-ui,sans-serif;letter-spacing:.25px;-webkit-tap-highlight-color:transparent}
.gnative svg{width:20px;height:20px;flex:none;box-sizing:content-box;padding:4px;margin:-4px;border-radius:50%;background:#FFFFFF}
.gnative:active{filter:brightness(.96)}
.gnative:disabled{opacity:.7}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .gnative{--g-fill:#131314;--g-edge:#8E918F;--g-text:#E3E3E3}}
:root[data-theme="dark"] .gnative{--g-fill:#131314;--g-edge:#8E918F;--g-text:#E3E3E3}

/* Notifications: the bell next to players who get them (admins only), Nudge by notification, and the
   always-on switch for game changes in My details. */
.bellmark{display:inline-flex;vertical-align:-2px;margin-left:6px;color:var(--muted)}
.bellmark svg,.bellnote svg,.nudge-n svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.bellnote{display:flex;align-items:center;gap:6px;margin:-4px 0 0;font-size:12.5px;color:var(--muted)}
.btn.nudge-n{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;line-height:1}
.btn.nudge-n[disabled]{opacity:.6;cursor:default}
.switch[aria-disabled="true"]{opacity:.55;cursor:not-allowed}

/* Waitlist order: admins reorder drop-ins (Reorder, then the arrows) and move one with a spot back to the waitlist */
.list h4 .h4r{display:inline-flex;align-items:center;gap:10px}
.minibtn{border:1px solid var(--line);background:var(--sunk);border-radius:999px;padding:4px 12px;font:inherit;font-size:12.5px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--ink);line-height:1.4}
.minibtn[aria-pressed="true"]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.orderhint{margin:0 0 4px;font-size:13px;color:var(--muted)}
.ordernote{display:flex;align-items:center;gap:6px;margin:0 0 4px;font-size:12.5px;color:var(--muted);font-weight:600}
.ordernote svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.rightbits{display:inline-flex;align-items:center;gap:8px;flex:none}
.arrows{display:inline-flex;gap:6px;flex:none}
.arrows button{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:var(--sunk);color:var(--ink);display:grid;place-items:center;padding:0}
.arrows button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.arrows button:disabled{opacity:.3;cursor:default}
.row.flash{animation:rowflash 1.1s ease-out}
@keyframes rowflash{from{background:color-mix(in srgb,var(--court) 18%,transparent)}to{background:transparent}}
.rowmain.static{cursor:default}
.rowmain.static:hover .name{color:inherit}
.wkline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;color:var(--muted)}
.dialog .btn:disabled{opacity:.45;cursor:default}
.warnbox b{font-size:15px}
@media (prefers-reduced-motion:reduce){.row.flash{animation:none}}
/* Admin › Drop-in fees: this week's drop-ins, paying ahead and credits (src/payments.js) */
.paylist + .paylist{margin-top:16px}
.paylist .row{gap:10px}
.paylist .row .name small{white-space:normal;line-height:1.3}
.paylist .rightbits{gap:8px}
.paylist .btn.small{padding:7px 10px}
.amt{font-weight:800;font-variant-numeric:tabular-nums;font-size:15px}
.paynote{margin:2px 0 6px;font-size:12.5px;color:var(--muted)}
.card.credit{border:1px solid color-mix(in srgb,var(--good) 55%,transparent);background:var(--good-soft)}
.card.credit h3{color:var(--ink)}
.feeline .pill{margin-left:6px;vertical-align:1px}

/* Seasons: the top of the Season page, the card in Admin › Schedule, its sheet, upcoming games by month */
.seasonhead{display:grid;gap:2px}
.seasonhead .eyebrow{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.seasonhead h2{font-family:var(--display);font-weight:900;font-size:40px;line-height:.92;text-transform:uppercase;margin:4px 0;text-wrap:balance;overflow-wrap:anywhere}
.seasonhead .when{color:var(--muted);font-weight:500}
.seasonhead .planbar{margin-top:10px}
.seasonfoot{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--muted);margin-top:6px;font-variant-numeric:tabular-nums}
.seasonfoot b{color:var(--ink);font-weight:700}
.seasonnext{margin:8px 0 0;font-size:14px;color:var(--muted)}
.seasonnext b{color:var(--ink)}
.planbar.done i{background:var(--blue)}
.seasoncard .sname{font-family:var(--display);font-weight:800;font-size:25px;text-transform:uppercase;line-height:1;display:block;margin:2px 0 4px;overflow-wrap:anywhere}
.seasoncard .planbar{margin:10px 0 6px}
.seasoncard .btn.block{margin-top:12px}
.seasoncard .warnbox{margin-top:12px}
.seasoncard .warnbox .btn{justify-self:start}
.nextrow{display:flex;align-items:center;gap:12px;justify-content:space-between;border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
.nextrow.first{border-top:none;margin-top:0;padding-top:0}
.nextrow div{min-width:0;display:grid;gap:1px}
.nextrow small{font-size:12px;color:var(--muted)}
.nextrow small:first-child{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.nextrow b{font-size:15px;overflow-wrap:anywhere}
.monthhead{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:14px 0 4px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:8px}
.seasondiv{display:flex;align-items:center;gap:8px;padding:14px 0 6px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--court)}
.seasondiv::after{content:"";flex:1;border-top:2px solid color-mix(in srgb,var(--court) 40%,transparent)}
.listsub{margin:-2px 0 4px;font-size:12.5px;color:var(--muted)}
.list h4 + .listsub + .monthhead,.list h4 + .listsub + .seasondiv{padding-top:6px}
.namechips button{min-width:0;padding:7px 11px}
.namechips button b{font-size:13.5px;font-weight:700}
.seasonlive{display:grid;gap:10px}
.seasonsum{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:grid;gap:2px}
.seasonsum b{font-size:15px}
.seasonsum small{font-size:12.5px;color:var(--muted)}
.changes{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.dialog .changes{padding:0;color:var(--ink)}
.changes li{font-size:13.5px;line-height:1.4;padding-left:20px;position:relative;color:var(--ink)}
.changes li::before{position:absolute;left:0;top:0;font-weight:800;width:14px;text-align:center}
.changes li.add::before{content:"+";color:var(--good)}
.changes li.off::before{content:"−";color:var(--bad)}
.changes li.stay::before{content:"•";color:var(--warn)}
.changes li.same::before{content:"✓";color:var(--muted)}
.formerr,.dialog .formerr{color:var(--bad);font-size:13.5px;font-weight:600;margin:0}
.linkbtn.danger{color:var(--bad)}
#seasonform .two{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#seasonform .two .field,#seasonform input[type="date"]{min-width:0}
#seasonform input[type="date"]{font-size:15px;padding-inline:10px}
.hero .when.season{margin-top:8px}

/* The Season page: your season (only you see it), how fast games fill, the calendar, fun facts, badges */
.card.mine{border:2px solid var(--ink);display:grid;gap:10px}
.mine .eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);display:flex;align-items:center;gap:6px}
.mine .eyebrow svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.mine .big{font-family:var(--display);font-weight:900;font-size:34px;line-height:1;font-variant-numeric:tabular-nums}
.mine .big small{font-family:var(--body);font-size:15px;font-weight:600;color:var(--muted);margin-left:6px}
.card.mine p.fine{margin:0}
.avgbar{position:relative;height:12px;border-radius:99px;background:var(--sunk);box-shadow:inset 0 0 0 1px var(--line);margin-top:4px}
.avgbar i{position:absolute;inset:0 auto 0 0;border-radius:99px;background:var(--court)}
.avgbar b{position:absolute;top:-5px;bottom:-5px;width:3px;margin-left:-1.5px;border-radius:2px;background:var(--ink)}
.avgkey{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--muted);margin-top:6px}
.avgkey b{color:var(--ink)}
.minestats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.minestats div{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:9px 10px}
.minestats b{display:block;font-size:17px;font-variant-numeric:tabular-nums}
.minestats span{font-size:12px;color:var(--muted)}
.fillrow{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}
.fillrow:last-of-type{border-bottom:none}
.fillrow > div{min-width:0}
.fillrow b{display:block;font-size:15px}
.fillrow small{color:var(--muted);font-size:12.5px}
.fillrow .t{font-family:var(--display);font-weight:800;font-size:24px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.fillrow .t.no{font-family:var(--body);font-size:14px;font-weight:600;color:var(--muted)}
.cal{display:grid;gap:8px;margin-top:4px}
/* The month's name sits on its first line of days (a line as tall as a day's circle), however many lines its days wrap onto. */
.calrow{display:grid;grid-template-columns:44px 1fr;align-items:start;gap:8px}
.calrow > span{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);line-height:26px}
.cday{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:10.5px;font-weight:700;font-variant-numeric:tabular-nums;border:none;padding:0;background:none;color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line)}
.cday.full{background:var(--court);color:#fff;box-shadow:none}
.cday.played{background:var(--court-soft);color:var(--court);box-shadow:inset 0 0 0 1.5px var(--court)}
.cday.cancelled{color:var(--bad);box-shadow:inset 0 0 0 1.5px var(--bad);background:repeating-linear-gradient(135deg,transparent 0 5px,color-mix(in srgb,var(--bad) 22%,transparent) 5px 6.5px)}
.cday.skipped{color:var(--muted);box-shadow:none;outline:1.5px dashed var(--muted);outline-offset:-1.5px;text-decoration:line-through;text-decoration-thickness:1.5px}
.cday.today{box-shadow:inset 0 0 0 1.5px var(--line),0 0 0 2px var(--surface),0 0 0 4px var(--ink);color:var(--ink)}
.cday[aria-pressed="true"]{transform:scale(1.15)}
.callegend{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--muted);margin-top:10px}
.callegend span{display:inline-flex;align-items:center;gap:5px}
.callegend .cday{width:12px;height:12px;font-size:0}
/* A dot under a day's circle for each game, coloured by how that game went. A game coming up gets a white dot so it
   stands out on the dark theme; on the light theme's white card a gray edge shows it. */
.cday{position:relative}
.cdots{position:absolute;top:calc(100% + 3px);left:0;right:0;display:flex;justify-content:center;gap:3px;pointer-events:none}
.cdots i{width:4px;height:4px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px var(--muted)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .cdots i{box-shadow:none}}
:root[data-theme="dark"] .cdots i{box-shadow:none}
.cdots i.full,.cdots i.played{background:var(--court);box-shadow:none}
.cdots i.today{background:var(--ink);box-shadow:none}
.cdots i.cancelled{background:var(--bad);box-shadow:none}
.cdots i.skipped{background:color-mix(in srgb,var(--muted) 45%,transparent);box-shadow:none}
.callegend .cdots{position:static;display:inline-flex;width:auto}
.card p.calnote{margin:10px 0 0;font-size:13.5px;background:var(--sunk);border:1px solid var(--line);border-radius:10px;padding:8px 10px;color:var(--ink)}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.facts > *{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:10px;text-align:left;display:grid;gap:2px;align-content:start}
.facts b{font-family:var(--display);font-weight:900;font-size:28px;line-height:1;font-variant-numeric:tabular-nums}
.facts span{font-size:12.5px;color:var(--ink);font-weight:600;line-height:1.3}
.facts small{font-size:11.5px;color:var(--muted)}
.wall{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.wall button{background:var(--sunk);border:1px solid var(--line);border-radius:14px;padding:12px 6px 10px;display:grid;justify-items:center;gap:2px}
.wall .e{font-size:26px;line-height:1}
.wall b{font-family:var(--display);font-weight:900;font-size:26px;line-height:1;font-variant-numeric:tabular-nums}
.wall small{font-size:11.5px;color:var(--muted);font-weight:600;text-align:center;line-height:1.2}
.wall button.none{opacity:.5}
.holders .row .badgeline{font-size:12.5px;color:var(--muted);font-weight:600;white-space:nowrap}

/* ---------- Chat: the Chat tab, its sheets, Admin › Chat (public/app.js "Chat") ---------- */
body.chatmode{overflow:hidden}
.chatscreen{position:fixed;top:var(--topbar-h,58px);bottom:var(--nav-h,68px);left:0;right:0;margin:0 auto;width:100%;max-width:480px;display:flex;flex-direction:column;background:var(--surface);z-index:3}
body.chat-typing .nav{display:none}
body.chat-typing .chatscreen{bottom:0}
.chatscreen svg,.ch-acts svg,.ch-iconbtn svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ch-head{padding:2px max(14px,env(safe-area-inset-right,0px)) 10px max(14px,env(safe-area-inset-left,0px));display:grid;gap:8px;border-bottom:1px solid var(--line)}
.ch-top{display:flex;gap:8px;align-items:center}
.ch-top .seg{flex:1;min-width:0}
.seg .dotnew{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--court);margin-left:6px;vertical-align:1px}
.ch-iconbtn{width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:var(--sunk);display:grid;place-items:center;padding:0;flex:none;color:var(--ink);cursor:pointer}
.ch-iconbtn svg{width:19px;height:19px}
.ch-iconbtn.on{color:var(--court);border-color:var(--court);background:var(--court-soft)}
.ch-strip{display:flex;align-items:center;gap:10px;background:var(--sunk);border:1px solid var(--line);border-radius:14px;padding:7px 7px 7px 12px;min-height:48px}
.ch-strip .info{flex:1;min-width:0;display:grid;line-height:1.25;font-size:12.5px;color:var(--muted);background:none;border:none;padding:0;text-align:left;font:inherit;font-size:12.5px;cursor:pointer}
.ch-strip .info b{font-size:14px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-strip .info .ans{font-weight:700}
.ch-strip .info .ans.in{color:var(--good)}
.ch-pin{display:flex;gap:9px;align-items:flex-start;background:var(--court-soft);border:1px solid color-mix(in srgb,var(--court) 40%,transparent);border-radius:14px;padding:8px 12px;font-size:13.5px;line-height:1.35}
.ch-pin > svg{width:16px;height:16px;flex:none;margin-top:2px;color:var(--court)}
.ch-pin .txt{flex:1;min-width:0;display:grid;gap:2px}
.ch-pin .lbl{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--court);font-weight:700;display:flex;justify-content:space-between;gap:8px}
.ch-pin .lbl span{letter-spacing:0;text-transform:none;color:var(--muted);font-weight:600}
.ch-pin p{margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer;white-space:pre-wrap;overflow-wrap:anywhere}
.ch-pin.open p{display:block}
.ch-pin .seen{justify-self:start;background:none;border:none;padding:0;font-size:12px;font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.ch-note{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.ch-note svg{width:14px;height:14px;flex:none}
.ch-note .linkbtn{font-size:12px}
.ch-body{flex:1;min-height:0;display:flex;flex-direction:column}
.ch-msgs{flex:1;min-height:0;overflow-y:auto;padding:8px max(12px,env(safe-area-inset-right,0px)) 12px max(12px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:3px;overscroll-behavior:contain}
.ch-more{align-self:center;margin:4px 0 6px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:5px 12px;font:inherit;font-size:12.5px;font-weight:700;color:var(--ink);cursor:pointer}
.ch-day{align-self:center;font-size:11.5px;font-weight:700;color:var(--muted);background:var(--sunk);border-radius:999px;padding:2px 10px;margin:10px 0 4px}
.ch-line{align-self:center;max-width:92%;text-align:center;font-size:12.5px;color:var(--muted);border:1px dashed var(--line);border-radius:12px;padding:5px 11px;margin:6px 0 2px;line-height:1.35}
.ch-line b{color:var(--ink)}
.ch-line .linkbtn{font-size:12.5px;color:var(--ink);font-weight:600}
.ch-m{display:flex;gap:7px;align-items:flex-start;max-width:88%;margin-top:7px}
.ch-m.cont{margin-top:0}
.ch-m.me{align-self:flex-end;flex-direction:row-reverse}
.ch-m.pending{opacity:.65}
.ch-m .avatar{width:28px;height:28px;font-size:10.5px;margin:1px 0 0;box-shadow:none!important;flex:none}
.ch-m.cont .avatar{visibility:hidden}
.ch-col{display:grid;gap:3px;justify-items:start;min-width:0}
.ch-m.me .ch-col{justify-items:end}
.ch-b{background:var(--sunk);border:1px solid var(--line);border-radius:16px 16px 16px 5px;padding:6px 11px 5px;min-width:0;max-width:100%;text-align:left;display:grid;gap:3px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ch-b:not([role]){cursor:default}
.ch-b:focus-visible{outline:2px solid var(--court);outline-offset:2px}
.ch-m.me .ch-b{background:var(--court-soft);border-color:color-mix(in srgb,var(--court) 35%,transparent);border-radius:16px 16px 5px 16px}
.ch-m.cont:not(.me) .ch-b{border-top-left-radius:6px}
.ch-m.cont.me .ch-b{border-top-right-radius:6px}
.ch-who{font-size:12px;font-weight:700;display:flex;gap:6px;align-items:center}
/* Beside a name in chat: Organizer, Founding Member or Rec Rostr, in the role badge's colours (.rt-*) */
.ch-tag{font-size:9.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--surface);background:var(--rt,var(--gc-orange));border-radius:5px;padding:1px 5px}
.ch-text{font-size:14.5px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.ch-text a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.ch-text.gone{font-style:italic;color:var(--muted);font-size:13.5px}
.ch-time{font-size:10.5px;color:var(--muted);justify-self:end;line-height:1.1}
.ch-quote{border-left:3px solid var(--blue);background:color-mix(in srgb,var(--surface) 65%,transparent);border-radius:6px;padding:3px 8px;font-size:12.5px;color:var(--muted);display:grid;line-height:1.3;min-width:0}
.ch-quote b{color:var(--ink);font-size:12px}
.ch-quote span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-photowrap{display:block;margin:2px 0;max-width:100%;position:relative}
.ch-sheetpic{display:block;justify-self:center;border:none;background:none;padding:0;margin:26px 40px 0;cursor:zoom-in;max-width:calc(100% - 80px)}
.ch-sheetpic img{display:block;max-width:100%;max-height:38dvh;object-fit:contain;border-radius:12px}
.ch-giftag{position:absolute;left:6px;bottom:6px;font-size:10px;font-weight:800;letter-spacing:.06em;color:#fff;background:rgba(10,17,29,.6);border-radius:5px;padding:1px 5px;pointer-events:none}
.ch-photo{display:block;width:230px;max-width:100%;height:auto;max-height:320px;object-fit:cover;border-radius:10px;background:var(--line)}
.ch-full{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain;border-radius:12px;background:var(--sunk);margin-top:22px}
.ch-reacts{display:flex;flex-wrap:wrap;gap:4px}
.ch-r{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:1px 7px;font-size:12.5px;font-weight:700;display:inline-flex;gap:3px;align-items:center;color:var(--muted);line-height:1.5;cursor:pointer}
.ch-r[aria-pressed="true"]{border-color:var(--court);background:var(--court-soft);color:var(--ink)}
.ch-fold{align-self:flex-start;font-size:12.5px;color:var(--muted);background:none;border:1px dashed var(--line);border-radius:12px;padding:5px 10px;margin:6px 0 0 35px;text-align:left;font-family:inherit;cursor:pointer}
.ch-fold b{color:var(--ink);text-decoration:underline;text-underline-offset:2px}
.ch-empty{margin:auto;text-align:center;color:var(--muted);font-size:13.5px;max-width:30ch;display:grid;gap:4px;padding:24px 0}
.ch-empty b{color:var(--ink);font-size:15px}
.ch-comp{border-top:1px solid var(--line);padding:8px max(10px,env(safe-area-inset-right,0px)) 8px max(10px,env(safe-area-inset-left,0px));display:grid;gap:6px;background:var(--surface)}
.ch-comp-row{display:flex;gap:8px;align-items:flex-end}
.ch-comp textarea{flex:1;min-width:0;resize:none;border:1px solid var(--line);background:var(--sunk);border-radius:20px;padding:9px 14px;font:inherit;font-size:15px;line-height:1.35;color:var(--ink);max-height:120px;height:40px;overflow-y:auto}
.ch-comp textarea:focus{outline:2px solid var(--court);outline-offset:0}
.ch-comp .ch-iconbtn{border-radius:50%;width:40px;height:40px}
.ch-send{width:40px;height:40px;border-radius:50%;border:none;background:var(--court);color:#fff;display:grid;place-items:center;flex:none;padding:0;cursor:pointer}
.ch-send svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.ch-send[disabled]{opacity:.35;cursor:default}
#ch-bars{display:grid;gap:6px}
#ch-bars:empty{display:none}
.ch-bar{display:flex;gap:8px;align-items:center;font-size:12.5px;color:var(--muted);background:var(--sunk);border-left:3px solid var(--blue);border-radius:8px;padding:5px 6px 5px 9px}
.ch-bar span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-bar b{color:var(--ink)}
.ch-bar button{border:none;background:none;font-size:18px;line-height:1;color:var(--muted);padding:0 4px;cursor:pointer}
.ch-photobar img{width:34px;height:34px;object-fit:cover;border-radius:6px;flex:none}
.ch-err{font-size:12.5px;color:var(--bad);font-weight:600;line-height:1.35}
.ch-locked{border-top:1px solid var(--line);padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px));display:grid;gap:8px;font-size:13.5px;color:var(--muted);background:var(--sunk);text-align:center;justify-items:center}
.ch-locked b{color:var(--ink)}
.ch-private{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center;line-height:1.35}
.ch-private svg{width:14px;height:14px;flex:none}
.ch-threadhead{display:flex;align-items:center;gap:10px;min-width:0}
.ch-threadhead > div{min-width:0}
.ch-threadhead .avatar{width:32px;height:32px;margin:0;box-shadow:none!important;flex:none}
.ch-threadhead b{font-size:16px;display:block;line-height:1.2}
.ch-back{display:inline-flex;align-items:center;gap:2px;border:none;background:none;padding:4px 6px 4px 0;font:inherit;font-weight:700;font-size:14px;color:var(--court);cursor:pointer;flex:none}
.ch-back svg{width:18px;height:18px}
.ch-inbox{flex:1;min-height:0;overflow-y:auto;padding:2px max(14px,env(safe-area-inset-right,0px)) 16px max(14px,env(safe-area-inset-left,0px));display:grid;grid-template-columns:minmax(0,1fr);align-content:start}
.ch-thread{display:flex;gap:12px;align-items:center;padding:11px 0;border:none;border-bottom:1px solid var(--line);background:none;text-align:left;width:100%;color:inherit;font:inherit;cursor:pointer}
.ch-thread .avatar{margin:4px;flex:none}
.ch-thread .t{flex:1;min-width:0}
.ch-thread .t b{display:flex;justify-content:space-between;gap:8px;font-size:15px}
.ch-thread .t b small{font-weight:500;font-size:12px;color:var(--muted);flex:none}
.ch-thread .t > span{display:block;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-thread.unread .t > span{color:var(--ink);font-weight:600}
.ch-thread .ud{width:9px;height:9px;border-radius:50%;background:var(--court);flex:none}
.ch-inbox .fine{margin:12px 0 0}
.nav button{position:relative}
.nav .nbadge{position:absolute;top:1px;left:calc(50% + 5px);min-width:17px;height:17px;border-radius:9px;background:var(--court);color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;padding:0 4px;line-height:1}
.chatbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.chatbtn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* Sheets */
.ch-preview{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:8px 12px;font-size:14px;display:grid;gap:2px;overflow-wrap:anywhere}
.ch-preview b{font-size:12.5px}
.dialog > .sheet-x + .ch-preview,.dialog > .sheet-x + .eyebrow{margin-right:40px}
.ch-reactrow{display:flex;justify-content:space-between;gap:2px;background:var(--sunk);border:1px solid var(--line);border-radius:999px;padding:5px 8px}
.ch-reactrow button{width:42px;height:42px;border-radius:50%;border:none;background:none;font-size:23px;padding:0;line-height:1;cursor:pointer}
.ch-reactrow button[aria-pressed="true"]{background:var(--court-soft);box-shadow:inset 0 0 0 2px var(--court)}
.ch-acts{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.ch-acts button{display:flex;gap:12px;align-items:center;padding:12px 14px;border:none;border-bottom:1px solid var(--line);background:var(--surface);text-align:left;font:inherit;font-weight:600;font-size:15px;color:var(--ink);cursor:pointer}
.ch-acts button:last-child{border-bottom:none}
.ch-acts button:hover{background:var(--sunk)}
.ch-acts button svg{width:19px;height:19px;flex:none;color:var(--muted)}
.ch-acts button small{margin-left:auto;font-weight:500;font-size:12px;color:var(--muted)}
.ch-acts button.bad,.ch-acts button.bad svg{color:var(--bad)}
.ch-acts .sub{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:8px 14px 6px;background:var(--sunk);border-bottom:1px solid var(--line)}
.ch-reasons{display:grid;gap:6px}
.ch-reasons label{display:flex;gap:10px;align-items:center;border:1px solid var(--line);background:var(--sunk);border-radius:12px;padding:10px 12px;font-weight:600;font-size:14.5px;cursor:pointer}
.ch-reasons input{accent-color:var(--court);width:18px;height:18px;margin:0;flex:none}
.ch-rules{margin:0;padding-left:20px;display:grid;gap:7px;font-size:14.5px;color:var(--ink)}
.dialog > .eyebrow{display:block;margin-bottom:-8px}
.ch-seen{display:grid;gap:12px}
.ch-names{display:flex;flex-wrap:wrap;gap:6px}
.ch-names span{font-size:13px;font-weight:600;background:var(--sunk);border:1px solid var(--line);border-radius:999px;padding:2px 10px}
.ch-seg3{display:flex;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:3px;margin-top:8px}
.ch-seg3 button{flex:1;border:none;background:none;border-radius:9px;padding:7px 4px;font:inherit;font-weight:600;font-size:12.5px;color:var(--muted);line-height:1.2;cursor:pointer}
.ch-seg3 button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(15,27,44,.12)}
.setting.stack{display:block}
.ch-blocked{display:flex;align-items:center;gap:12px;padding:8px 0}
.ch-blocked .avatar{margin:4px}
.ch-blocked b{flex:1;min-width:0}
.ch-pick{cursor:pointer;color:inherit;font:inherit}
/* Admin › Chat, and Rec Rostr's reports */
.ch-adm{display:grid;gap:10px}
.ch-adm h3{display:flex;align-items:center;gap:8px}
.ch-report{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:12px;margin-top:4px}
.ch-report .meta{font-size:12.5px;color:var(--muted);line-height:1.4}
.ch-report .meta b{color:var(--ink)}
.ch-report .done{font-size:13px;font-weight:600;color:var(--good)}
.ch-outrow{display:flex;align-items:center;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.ch-outrow .avatar{margin:4px}
.ch-outrow .t{flex:1;min-width:0;line-height:1.3}
.ch-outrow .t small{display:block;color:var(--muted);font-size:12.5px}

/* ---------- Courts and rotations (court sports' rounds, src/rounds.js) ---------- */
/* This week: your rounds */
.rdcard{display:grid;gap:10px}
.myteam .tile.num{font-size:30px}
.myteam .vs{display:block;font-size:13px;font-weight:600;opacity:.85;margin-top:3px}
.myteam.sit{border-style:dashed;border-color:var(--muted);background:var(--sunk)}
.myteam.sit .benchic{width:46px;height:46px;flex:none}
.rd-next{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:9px 12px;background:var(--sunk);font-size:13.5px;line-height:1.3}
.rd-next .tile{width:30px;height:30px;font-size:19px;border-radius:8px}
.rd-next .benchic{width:30px;height:30px;flex:none}
.rd-next .lbl{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.rd-mine{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.rd-mine li{display:grid;grid-template-columns:40px 30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 12px 7px 8px}
.rd-mine li + li{border-top:1px solid var(--line)}
.rd-n{display:grid;line-height:1.05;text-align:center}
.rd-n b{font-family:var(--display);font-weight:900;font-size:19px}
.rd-n small{font-size:11px;color:var(--muted);font-weight:600}
.rd-mine .tile{width:30px;height:30px;font-size:19px;border-radius:8px}
.rd-mine .benchic{width:30px;height:30px}
.rd-who{display:grid;line-height:1.25;min-width:0}
.rd-who b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-who small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-mine li.sit .rd-who b{color:var(--muted);font-weight:600}
.rd-mine li.done{opacity:.5}
.rd-mine li.done .rd-n b::after{content:" ✓";font-size:12px}
.rd-mine li.now{background:var(--court-soft)}
.rd-mine li.now .rd-n b{color:var(--court)}
.rd-sum{font-size:12.5px;color:var(--muted);margin:0}
/* Every court, round by round (players and admins) */
.rd-all{display:grid;gap:10px}
.rd-round{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--surface)}
.rd-round > header{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 12px;background:var(--sunk);border-bottom:1px solid var(--line)}
.rd-round > header b{font-family:var(--display);font-weight:900;font-size:19px;letter-spacing:.04em;text-transform:uppercase;line-height:1}
.rd-round > header .when{font-size:12.5px;color:var(--muted);font-weight:600;display:flex;gap:6px;align-items:center}
.rd-round.now{border:1.5px solid var(--court)}
.rd-round.now > header{background:var(--court-soft);border-bottom-color:color-mix(in srgb,var(--court) 30%,transparent)}
.rd-round.done{opacity:.6}
.rd-court{display:grid;grid-template-columns:24px minmax(0,1fr) 22px minmax(0,1fr);gap:6px;align-items:center;padding:6px 8px}
.rd-court + .rd-court{border-top:1px solid var(--line)}
.rd-court .tile{width:24px;height:24px;font-size:16px;border-radius:7px}
.rd-side{display:grid;gap:1px;min-width:0;font-size:13.5px;line-height:1.3}
.rd-side > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-side .me{font-weight:800;color:var(--court)}
.rd-vs{display:grid;justify-items:center;font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;line-height:1.1}
.rd-vs small{font-size:10px;font-weight:700;letter-spacing:0;text-transform:none}
.rd-sit{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:6px 10px 7px;border-top:1px dashed var(--line);font-size:12.5px;color:var(--muted)}
.rd-sit .benchic{width:22px;height:22px;flex:none}
.rd-sit .me{font-weight:800;color:var(--court)}
.rd-court .sg{grid-column:2/-1;font-size:11px;color:var(--muted);font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-top:-2px}
/* Admin: tap a player, then another in the same round, to swap them */
.rd-p{display:flex;align-items:center;gap:6px;border:1px solid transparent;background:none;border-radius:9px;padding:2px 4px;font:inherit;color:inherit;text-align:left;min-width:0;width:100%}
.rd-p .avatar{width:22px;height:22px;font-size:9px;margin:0;flex:none}
.rd-p .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13.5px;font-weight:600}
.rd-p.sel{border-color:var(--court);background:var(--court-soft)}
.rd-p.can{border-style:dashed;border-color:color-mix(in srgb,var(--court) 55%,transparent)}
.rd-p.gone{opacity:.45;text-decoration:line-through}
.rd-sit .rd-p{width:auto;padding-right:7px}
.rd-act{display:grid;gap:8px;padding:9px 12px;background:var(--court-soft);border-bottom:1px solid color-mix(in srgb,var(--court) 30%,transparent);font-size:13px;line-height:1.35}
.rd-act .btnrow{gap:8px}
.rd-played{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;border:1px dashed var(--line);border-radius:14px;background:none;padding:10px 12px;font:inherit;color:var(--muted);font-size:13.5px;font-weight:600;text-align:left}
.rd-opts{display:grid;gap:10px}
.rd-opt{display:grid;gap:5px}
.rd-opt .seg button{font-size:13px}
.rd-fair{display:grid;gap:6px}
.pill.now{background:var(--court);color:var(--surface)}
.rd-notice .btnrow{margin-top:8px}
/* Breaks, pairs, picking a partner */
.rd-break{padding:4px 12px 5px;border-top:1px dashed var(--line);font-size:11.5px;font-weight:700;color:var(--muted);letter-spacing:.04em;text-align:center;background:var(--sunk)}
.rd-calc{align-content:center}
.rd-calc b{font-family:var(--display);font-weight:900;font-size:22px;line-height:1}
.rd-calc small{font-size:11.5px;color:var(--muted);font-weight:600}
.rd-mine li.changed{background:var(--warn-soft)}
.rd-next.changed{border-color:var(--court);background:var(--court-soft)}
.rd-pairs{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.rd-pairs li{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);align-items:center;gap:4px;border:1px solid var(--line);border-radius:12px;padding:5px 6px 6px}
.rd-pairs .amp{text-align:center;color:var(--muted);font-weight:700}
.rd-pairs small{grid-column:1/-1;font-size:11.5px;color:var(--muted);padding-left:6px}
.rd-pickl{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.rd-pickl .rd-p{border-color:var(--line);padding:6px 8px}
.rd-notice .mk-notif{margin-top:4px}

/* The night in one line */
.rd-tonight{margin:0;border:1px solid var(--line);background:var(--sunk);border-radius:12px;padding:10px 12px;font-size:14px;font-weight:700;line-height:1.35;display:grid;gap:4px}
.rd-tonight small{font-size:12.5px;font-weight:500;color:var(--muted)}
.rd-how{margin:-4px 0 0;font-size:13px;color:var(--muted);line-height:1.35}

.rd-pickl .rd-p small{display:block;font-size:11px;color:var(--muted);margin-left:auto;white-space:nowrap}
.rd-p:disabled{cursor:default}
.rd-notice small{display:block;margin-top:4px}
.rd-pickl{grid-template-columns:minmax(0,1fr)}

/* Run your own group (the intro before Start a group) and inviting organizers (src/referrals.js). */
.sportstrip{display:flex;gap:8px;margin-bottom:2px}
.dialog .who.inv{flex-wrap:nowrap}
.freeline{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--good);margin:8px 0 0}
.freeline::before{content:"+";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--good-soft);font-weight:800;flex:none}
.refcard{display:grid;gap:10px}
.refcard p{margin:0}
.refcard .list h4{margin:0}
/* Rec Rostr's growth view (staff only). */
.gstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.gstats div{background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:10px;display:grid;gap:2px;align-content:start}
.gstats b{font-family:var(--display);font-weight:900;font-size:28px;line-height:1;font-variant-numeric:tabular-nums}
.gstats span{font-size:12px;color:var(--muted);line-height:1.3}
.hbar{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:3px 10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line);font-size:13.5px}
.hbar:last-child{border-bottom:none}
.hbar .tr{grid-column:1;height:6px;border-radius:3px;background:var(--sunk);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.hbar .tr i{display:block;height:100%;background:var(--court);border-radius:3px}
.hbar .v{grid-row:1 / span 2;grid-column:2;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.ptable{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.ptable th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);text-align:right;font-weight:700;padding:4px 0 6px}
.ptable th:first-child,.ptable td:first-child{text-align:left}
.ptable td{text-align:right;padding:7px 0;border-top:1px solid var(--line)}
.ptable td:first-child{font-weight:600;padding-right:6px}
.ptable td small{color:var(--muted);font-size:12px}
.months{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:end;height:120px;border-bottom:1px solid var(--line);padding-top:16px}
.months div{display:flex;flex-direction:column-reverse;height:100%;position:relative}
.months i{display:block;background:var(--court)}
.months i.nw{background:var(--blue);border-radius:4px 4px 0 0}
.months i.pf:last-of-type{border-radius:4px 4px 0 0}
.months b{position:absolute;left:0;right:0;text-align:center;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums}
.mlabels{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;font-size:11px;color:var(--muted);text-align:center;margin-top:4px}
.mlegend{display:flex;gap:12px;font-size:12px;color:var(--muted);margin-top:6px;flex-wrap:wrap}
.mlegend span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px;background:var(--court)}
.mlegend span.nw::before{background:var(--blue)}
.pair{display:grid;gap:2px;padding:9px 0;border-bottom:1px solid var(--line)}
.pair:last-child{border-bottom:none}
.pair .who2{display:flex;align-items:center;gap:6px;font-weight:600;font-size:14px;flex-wrap:wrap}
.pair .arr{color:var(--muted)}
.pair small{font-size:12.5px;color:var(--muted)}
.pair .pills{display:flex;gap:5px;flex-wrap:wrap;margin-top:3px}

/* Your role in the open group (app.js myRole): a badge on your picture in the top bar and in My details,
   and the role's name under yours in My details. Player blue, Organizer orange, Founding Member gold, Rec Rostr Admin ink. */
.avatar.has-rb{position:relative;overflow:visible}
.avatar.has-rb img{border-radius:50%}
.rolebadge{position:absolute;right:-7px;bottom:-7px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:var(--rb);color:var(--surface);box-shadow:0 0 0 2px var(--surface);pointer-events:none}
.rolebadge svg{width:11px;height:11px;display:block;overflow:visible}
.rolebadge .ln{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.rolebadge .fl{fill:currentColor}
.rolebadge .rb-o{fill:var(--rb-o)} .rolebadge .rb-b{fill:var(--rb-b)} .rolebadge .rb-l{stroke:var(--surface);stroke-width:7}
.rolebadge.big{width:24px;height:24px;right:-8px;bottom:-8px;box-shadow:0 0 0 2px var(--sunk)}
.rolebadge.big svg{width:14px;height:14px}
.rb-player{--rb:var(--blue)} .rb-organizer{--rb:var(--gc-orange)} .rb-founding{--rb:var(--gc-amber)} .rb-staff{--rb:var(--ink)}
.dialog .who.mewho{flex-wrap:nowrap;gap:14px}
.mewho .t{display:grid;gap:1px;min-width:0}
.mewho .t > b{font-size:16px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mewho .t small{font-size:13px;font-weight:500;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mewho .t .rolename{font-weight:700}
.mewho .t .rn-player{color:var(--blue)} .mewho .t .rn-organizer{color:var(--role-org)} .mewho .t .rn-founding{color:var(--role-fnd)} .mewho .t .rn-staff{color:var(--ink)}

/* The admin and co-admins, and organizers' private notes (Release 1, part A). */
.handbtn{margin-top:6px}
.notice.warnbox .btn,.takerow .btn{min-height:44px}
.notice.warnbox a.btn{display:inline-flex;align-items:center}
.asknotice{gap:8px}
.asknotice p{white-space:normal}
.asknotice .btn{min-height:44px}
.asknotice .warnbox b{font-size:15px;letter-spacing:0;text-transform:none;color:var(--ink)}
.askcard p{margin:4px 0 10px;overflow-wrap:anywhere}
.askcard p b{color:var(--ink)}
.dialog .roleline{min-height:50px;display:flex;align-items:center}
.orglist .row .name small,.addrow .name small{white-space:normal;line-height:1.3}
.addrow{min-height:63px}
.dialog .list,.handlist{min-width:0}   /* a long name is cut short, not the sheet made wider */
.addrow .btn,.addrow .pill{flex:none;min-width:122px;justify-content:center;text-align:center}
.handlist{display:grid;gap:8px}
.handopt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:1px solid var(--line);background:var(--sunk);border-radius:14px;padding:10px 12px;min-height:56px;color:inherit}
.handopt .t{flex:1;min-width:0}
.handopt b{display:block;font-size:15px;overflow-wrap:anywhere}
.handopt small{color:var(--muted);font-size:12.5px}
.handopt:disabled{opacity:.55;cursor:default}
.feeval{flex:none;font-variant-numeric:tabular-nums}
.setting .payread{white-space:pre-wrap;overflow-wrap:anywhere}
.dialog:has(#notes-list){overflow-anchor:none}
.noteitem{display:grid;gap:4px;padding:10px 0 4px;border-bottom:1px solid var(--line)}
.noteitem:first-child{padding-top:2px}
.noteitem:last-child{border-bottom:none}
.noteitem .btnrow{margin:4px 0 8px}
.dialog .noteitem > p{margin:0;font-size:14.5px;line-height:1.45;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
.noteitem .meta{display:flex;gap:4px;align-items:center;min-height:44px;font-size:12.5px;color:var(--muted)}
.noteitem .meta span{flex:1;min-width:0;overflow-wrap:anywhere}
.noteitem .meta .linkbtn{flex:none;min-width:48px;min-height:44px;font-size:14px;padding:0 6px}
.noteitem .confirm{margin:2px 0 8px}
.noteitem .confirm .btnrow{margin:0}
.notebox{width:100%;border:1px solid var(--line);background:var(--sunk);border-radius:10px;padding:11px 12px;font:inherit;font-size:16px;color:var(--ink);resize:vertical}
.notecount{font-size:12px;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.notewait{min-height:74px}

/* ---- After the game: waiving a fee, adding someone who played, the link's code to scan ---- */
.paybtns{display:inline-flex;gap:6px;flex:none}
.payline .btn.small{min-height:38px;padding:7px 10px}
.payall{display:grid;gap:8px}
.lastcard .btn{margin-top:10px}
.lastcard .fine{margin:10px 0 0}
.lastcard .fine b{color:var(--ink)}
.lastcard h4 span{text-transform:none;letter-spacing:0;font-size:13px;white-space:nowrap}
/* The rows reach the sides of the sheet and its Done bar stays at the bottom, so the × scrolls away with the heading. */
.pldlg .sheet-x{position:relative;top:0}
.plone b{color:var(--ink)}
.pllist + .pllist{margin-top:6px}
.plrow{display:flex;align-items:center;gap:12px;width:100%;min-width:0;border:none;border-bottom:1px solid var(--line);background:none;color:inherit;font:inherit;padding:9px 0;text-align:left;min-height:56px;cursor:pointer}
.plrow:last-of-type{border-bottom:none}
.plrow .avatar{margin:4px}
.plrow .name{flex:1;min-width:0;font-weight:600;overflow-wrap:anywhere}
.plrow .name small{display:block;font-weight:400;color:var(--muted);font-size:12.5px;line-height:1.3}
.plmark{flex:none;min-width:96px;justify-content:center;padding:6px 10px}
.plfoot{position:sticky;bottom:-18px;background:var(--surface);border-top:1px solid var(--line);margin:0 -20px -18px;padding:12px 20px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;z-index:1}
.dialog .plfoot p{font-size:13px;line-height:1.4;min-height:60px;display:flex;flex-direction:column;justify-content:center;margin:0}
.dialog .plfoot p b{color:var(--ink);font-size:15px}
.plfoot .btn{min-width:104px}
.qrbox{background:#fff;border-radius:14px;padding:14px;display:grid;gap:8px;justify-items:center;border:1px solid var(--line);margin:0 auto;width:fit-content}
.qrsvg{width:176px;height:176px;display:grid;place-items:center;text-align:center}
.qrsvg svg{width:100%;height:100%;display:block}
.qrbox small,.qrbox .qrsvg p{font-size:12px;color:#5A6A80;margin:0}
.linkcard{display:grid;gap:10px}
.linkcard > p{margin:0}
.newdlg .linkbox{text-align:center}

/* Locations (src/places.js): a game's in a list, Admin › Locations, and the sheets that change where a game is. */
.infobar{margin:-10px 0 0 24px;font-size:13.5px;line-height:1.35;overflow-wrap:anywhere}
.venue .infoline{color:var(--ink);margin-top:2px;overflow-wrap:anywhere}
.rowplace{display:flex;gap:5px;align-items:flex-start;min-width:0;font-size:12.5px;font-weight:400;color:var(--muted);line-height:1.35;margin-top:1px;white-space:normal;overflow-wrap:anywhere}
.rowplace svg{width:13px;height:13px;flex:none;margin-top:2px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linejoin:round}
.rowplace.inl{display:block;font-weight:500;margin:0}
.gtimes.split button{max-width:100%;white-space:normal;text-align:left}
.gtimes.split span{flex-basis:100%}
.ch-strip .info .where{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pthumb{width:52px;height:52px;border-radius:12px;overflow:hidden;flex:none;background:var(--sunk);display:grid;place-items:center;color:var(--muted)}
.pthumb img{width:100%;height:100%;object-fit:cover;display:block}
.pthumb.none{border:1px solid var(--line)}
.pthumb.none svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.prow{align-items:flex-start}
.prow .name{white-space:normal;overflow-wrap:anywhere}
.prow > .pill,.prow > .btn{margin-top:2px}
#places .btn.block{margin-top:12px}
.plform{display:grid;gap:10px}
.dialog .plform p{margin:0}
.backlist b{color:var(--ink);font-weight:600}
.dialog .confirm .backlist{color:var(--ink)}
.dialog .confirm{margin-top:0}
.followbox{margin:0;align-items:flex-start;color:var(--ink);font-size:13.5px;line-height:1.45;cursor:pointer}
.followbox input{flex:none;margin:1px 0 0}
.defloc{background:var(--sunk);border-radius:14px;padding:12px 14px;gap:6px}
.defloc .venue b{font-weight:600}
.slotloc{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:46px}
.slotloc .rowplace{margin:0;font-size:14px;color:var(--ink)}
.slotloc .rowplace svg{width:15px;height:15px;color:var(--muted)}
.slotloc .textbtn{flex:none;min-height:44px}
.dayrow .slotloc select{width:100%;min-width:0;border:1px solid var(--line);background-color:var(--sunk);border-radius:10px;font:inherit;font-size:16px;font-weight:500;color:var(--ink);padding:10px 28px 10px 10px;min-height:46px}
.slotrow + .slotrow:has(.slotloc){margin-top:8px}
.hint.two{min-height:2.9em}
/* A line that says what saving does, with the button, kept at the sheet's bottom edge. Its height never changes. */
.plfoot{position:sticky;bottom:-18px;background:var(--surface);border-top:1px solid var(--line);margin:0 -20px -18px;padding:12px 20px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;z-index:1}
.dialog .plfoot p{font-size:13px;line-height:1.35;min-height:76px;display:flex;flex-direction:column;justify-content:center;margin:0}
.dialog .plfoot p b{color:var(--ink);font-size:14.5px}
.plfoot .btn{flex:none}
.sevbtn{margin:8px 0 4px}
.sevrow{cursor:pointer;align-items:flex-start}
.sevrow input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--court);flex:none}
.sevrow .name{white-space:normal}
.sevchips button{min-height:44px}
.sevlist .monthhead:first-child{padding-top:0}

/* ===== Release 5: schedules and single dates ===== */
/* Admin › Schedules: a row per schedule, a date tile for a single date */
.schgroup{font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:12px 0 2px}
.schrow{align-items:center;width:100%;text-align:left}
.schrow .name{flex:1;min-width:0}
.schrow .name small{display:block}
.schtile{width:44px;height:44px;border-radius:12px;flex:none;display:grid;place-items:center;background:var(--sunk);border:1px solid var(--line);color:var(--court)}
.schtile svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.schtile.date{align-content:center;line-height:1;color:var(--ink);background:var(--surface)}
.schtile.date small{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--court)}
.schtile.date b{font-family:var(--display);font-size:20px;font-weight:800}
.schchev{flex:none;font-size:22px;line-height:1;color:var(--muted);margin-left:4px}
.schrow .pill{flex:none}
.schtz{margin:10px 0 0}
#schedules .addbtn{margin-top:12px}
.pickrow{width:100%;text-align:left;align-items:center}
.pickrow .name{flex:1;min-width:0}
.dialog .group .pickrow:last-child{border-bottom:none}
/* A schedule's sheet: which weeks, the next six dates, what saving does */
.seg.weeks{margin-top:6px}
.seg.weeks button{display:grid;justify-items:center;gap:1px;padding:8px 4px;min-height:48px}
.seg.weeks button b{font-size:14px}
.seg.weeks button small{font-size:11.5px;font-weight:600;color:var(--muted)}
.seg.weeks button[aria-pressed="true"] small{color:var(--ink)}
.seg.weeks.five button{min-height:44px;padding:8px 2px}
.seg.weeks.five button b{font-size:13px}
.nextsix{display:flex;flex-wrap:wrap;gap:5px 6px;align-items:center;margin:4px 0 2px;font-size:12.5px;color:var(--muted)}
.nextsix span{font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:11px;margin-right:2px}
.nextsix i{font-style:normal;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:3px 9px;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.dialog .changes{margin:4px 0}
.dialog p.hearline{margin:2px 0 6px;color:var(--ink)}
#schedform .linkbtn.danger{margin-top:10px}
/* A single date: its type above the date, its own sheet */
.pill.kind{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink)}
.row .pill.kind{flex:none}
.kindline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:6px 0 2px}
.kindline b{font-size:16px;font-weight:700}
.dialog h3 .pill{vertical-align:3px;margin-left:4px}
.dialog p.rules{font-size:13px;line-height:1.45;color:var(--muted);margin-top:-4px}
.kindchips button{flex:1 1 calc(33% - 6px);min-width:0;min-height:44px;padding:7px 6px}
.sets{display:grid;gap:2px}
.sets > b{margin-bottom:4px}
.sets .setting:last-of-type{border-bottom:none}
.sets .fine{margin:6px 0 0}
.capline{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}
.capline .field{flex:1 1 120px;margin:0}
.capline .check{margin:0 0 13px;color:var(--ink);font-weight:600}
.capline input:disabled{opacity:.55}
.feeamt{gap:14px}
.moneyin{display:flex;align-items:center;gap:6px;flex:none;border:1px solid var(--line);background:var(--sunk);border-radius:10px;padding:0 10px;min-height:46px}
.moneyin span{font-weight:700;color:var(--muted)}
.moneyin input{width:72px;border:none;background:none;font:inherit;font-size:16px;font-weight:600;color:var(--ink);padding:10px 0;text-align:right;font-variant-numeric:tabular-nums}
.moneyin:focus-within{outline:2px solid var(--court);outline-offset:2px}
.moneyin input:focus-visible{outline:none}
.noteams{margin:4px 0 12px}
/* The Season calendar: every circle is the same 26px, whatever it is. A single date's thin purple border is drawn inside
   that edge, and the day's own edge just inside the purple. On a played or full day the purple is twice as thick and
   replaces the orange edge. Purple, since green reads as done and blue already means drop-in. */
.cday.oneday{box-shadow:inset 0 0 0 1px var(--gc-purple),inset 0 0 0 2.5px var(--line)}
.cday.oneday.full{box-shadow:inset 0 0 0 2px var(--gc-purple)}
.cday.oneday.played{box-shadow:inset 0 0 0 2px var(--gc-purple)}
.cday.oneday.cancelled{box-shadow:inset 0 0 0 1px var(--gc-purple),inset 0 0 0 2.5px var(--bad)}
.cday.oneday.skipped{box-shadow:inset 0 0 0 1px var(--gc-purple);outline-offset:-2.5px}
.cday.oneday.today{box-shadow:inset 0 0 0 1px var(--gc-purple),inset 0 0 0 3px var(--ink)}
.callegend .cday.oneday{box-shadow:inset 0 0 0 1px var(--gc-purple),inset 0 0 0 2px var(--line)}
/* Date fields side by side never push a sheet wider */
.dialog .two:not(.step){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.dialog .two .field input{min-width:0}

/* The Season calendar by month (2026-12-02): each day in its weekday's column, Sunday first, under a row of weekdays.
   A game day keeps its circle, with a dot for each game; a day without one is just its number. Each month folds. */
.cal{gap:14px}
.calgrid{display:grid;grid-template-columns:repeat(7,minmax(26px,38px));gap:13px 4px;justify-items:center}
/* Every circle the same size, its number in the middle: plain (not tabular) digits, so a 1 isn't pushed off centre; today
   is an ink edge inside the circle, and the day you tap gets a soft box behind it (with its dots) instead of growing. */
.calgrid{isolation:isolate}
.calgrid .cday{flex:none;font-variant-numeric:normal;line-height:1}
/* The number: its box cut to the digits' height (cap height to baseline), so the grid centres the digits themselves; a 1 has more
   room on its right, so a number ending in 1 moves right a little and a teen left a little (measured on Figtree). Without
   text-box (older phones), the line box puts digits about 0.09em high: moved down instead. */
.cnum{display:block;line-height:1;text-box:trim-both cap alphabetic}
.cnum.s1{translate:-.01em 0}
.cnum.e1{translate:.03em 0}
@supports not (text-box:trim-both cap alphabetic){.cnum{position:relative;top:.09em}}
.calgrid .cday.today:not(.oneday){box-shadow:inset 0 0 0 2px var(--ink)}
.calgrid .cday[aria-pressed="true"]{transform:none}
.calgrid .cday[aria-pressed="true"]::before{content:"";position:absolute;left:-5px;right:-5px;top:-5px;bottom:-12px;border-radius:10px;background:color-mix(in srgb,var(--ink) 9%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--ink) 16%,transparent);z-index:-1;pointer-events:none}
.calhead{margin-bottom:-6px}
.calhead .calgrid span{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);line-height:14px}
.cday.none{box-shadow:none;background:none;opacity:.5;font-weight:600}
.calmon{display:inline-flex;align-items:center;gap:2px;background:none;border:none;padding:0;font:inherit;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);line-height:26px;cursor:pointer}
.calmon .chev{width:12px;height:12px;transform:rotate(-90deg)}
.calmon[aria-expanded="true"] .chev{transform:none}
.calsum{background:none;border:none;padding:0;font:inherit;font-size:12.5px;color:var(--muted);line-height:26px;text-align:left;cursor:pointer}
.cday.done{background:color-mix(in srgb,var(--muted) 30%,transparent);color:var(--ink)}   /* a practice or an event that's over: on the calendar, never a game */

/* ===== Goalie spots (Release 6): two lists, players and goalies ===== */
/* Three answers (In as a player, In as a goalie, I'm out): the two lists side by side, out under them. */
.mecard .btnrow.three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mecard .btnrow.three .btn{min-width:0;padding-inline:8px}
.mecard .btnrow.three .btn:nth-child(3){grid-column:1 / -1}
.mecard .btnrow.two2 .btn{min-width:0;padding-inline:8px}
/* The meter with a count each, the goalie spots above the player spots. */
.meter.gl2 .meter-head{align-items:flex-start;gap:12px;flex-wrap:wrap}
.meter.gl2 .counts{display:flex;gap:22px;align-items:flex-end;flex-wrap:wrap}
.meter.gl2 .count{font-size:40px}
.meter.gl2 .count small{font-size:20px}
.meter.gl2 .count span{display:block;font-family:var(--body);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-top:4px}
.slotlbl{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:12px 0 6px}
.meter.gl2 .slotlbl:first-of-type{margin-top:2px}
.gkdot{position:absolute;right:-3px;bottom:-3px;min-width:19px;height:19px;border-radius:10px;padding:0 4px;background:var(--ink);color:var(--surface);font-size:9.5px;font-weight:800;letter-spacing:.02em;display:grid;place-items:center;box-shadow:0 0 0 2px var(--sunk);pointer-events:none}
.slot.open.gopen{border-color:var(--muted);color:var(--ink);font-weight:800;letter-spacing:.02em}
.gnote{font-size:13px;line-height:1.4;color:var(--muted);margin:-4px 2px 0}
/* Admin › Schedules while goalie spots are off. */
.gtip{background:var(--sunk);border:1px dashed var(--line);border-radius:12px;padding:10px 12px;display:grid;gap:3px;margin:6px 0 10px}
.gtip b{font-size:14px}
.gtip span{font-size:13px;line-height:1.4;color:var(--muted)}
/* A player's options: which list their answer is in. */
.lineseg{margin-top:12px;display:grid;gap:6px}
.lineseg > span:first-child{font-size:13px;font-weight:600;color:var(--ink)}
.lineseg .seg button{min-height:40px}
.lineseg .hint{font-size:12.5px;line-height:1.4;color:var(--muted)}
/* An organizer's own sport: the position that plays in goal. */
.pk-posrow.gkrow{grid-template-columns:64px minmax(0,1fr) auto 38px}
.gkchip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:0 10px;min-height:40px;font:inherit;font-size:12.5px;font-weight:700;color:var(--muted)}
.gkchip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--surface)}
.gkpill{padding:1px 7px;font-size:11px;vertical-align:1px}
/* A schedule's row says its two numbers ("14 players + 2 keepers"): the line wraps instead of being cut. */
.schrow .name{white-space:normal}

/* ===== Chat and search (Release 7) ===== */
/* Mentions: the name stands out; your own name a little more, and a message that mentions you has a blue edge. */
.mn{font-weight:700;color:var(--blue)}
.mn.me{color:var(--ink);background:var(--blue-soft);border-radius:5px;padding:0 3px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.ch-m.at .ch-b{box-shadow:inset 3px 0 0 var(--blue)}
.ch-msgs{position:relative}
/* The @ list above the message box, and the one in the search box ("Messages from…"). */
.mn-list{display:grid;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:0 8px 24px -10px rgba(10,17,29,.35);overflow:hidden;max-height:252px;overflow-y:auto}
.mn-list .mn-head{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:8px 12px 4px}
.mn-row{display:flex;gap:10px;align-items:center;border:none;border-top:1px solid var(--line);background:none;padding:7px 12px;text-align:left;font:inherit;color:var(--ink);width:100%;min-height:44px;cursor:pointer}
.mn-row:first-of-type{border-top:none}
.mn-row:hover,.mn-row:focus-visible{background:var(--sunk);outline:none}
.mn-row .avatar{width:28px;height:28px;font-size:10.5px;margin:0;box-shadow:none!important;flex:none}
.mn-row .t{flex:1;min-width:0;display:grid;line-height:1.2}
.mn-row .t b{font-size:14.5px;font-weight:600}
.mn-row .t b em{font-style:normal;font-weight:800}
.mn-row .t small{font-size:12px;color:var(--muted)}
.mn-none,.mn-cap{font-size:13px;color:var(--muted);padding:10px 12px;margin:0}
.mn-cap{border-top:1px solid var(--line)}
/* The @ in a circle (the Chat tab, the chat's switch, an Inbox row, the jump pill): an exact circle, the drawn @ in its middle. */
.atnew,.atb,.nav .nbadge.at{display:inline-grid;place-items:center;padding:0;border-radius:50%;background:var(--court);color:#fff;flex:none;line-height:0}
.at-ic{display:block;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.seg .atnew{width:17px;height:17px;margin-left:6px;vertical-align:-3px}
.seg .atnew .at-ic{width:11px;height:11px}
.nav .nbadge.at{width:17px;height:17px;min-width:0}
.nav .nbadge.at .at-ic{width:11px;height:11px}
.ch-thread .atb{width:20px;height:20px}
.ch-thread .atb .at-ic{width:14px;height:14px}
.ch-jump .atb{width:18px;height:18px}
.ch-jump .atb .at-ic{width:12px;height:12px}
/* A pill at the top that jumps to an unread mention (it fades once the mention is on screen), one at the bottom back to the newest. */
.ch-jump{position:absolute;left:50%;transform:translateX(-50%);z-index:2;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:6px 12px;font:inherit;font-size:12.5px;font-weight:700;box-shadow:0 6px 18px -8px rgba(10,17,29,.4);display:inline-flex;gap:6px;align-items:center;white-space:nowrap;cursor:pointer}
.ch-jump.top{top:8px;transition:opacity .3s ease,transform .3s ease}
.ch-jump.top.gone{opacity:0;transform:translate(-50%,-8px);pointer-events:none}
.ch-jump.bottom{bottom:10px}
.ch-body{position:relative}
@media (prefers-reduced-motion:reduce){.ch-jump.top{transition:opacity .15s linear}.ch-jump.top.gone{transform:translateX(-50%)}}
/* A message jumped to flashes once. */
@keyframes msgflash{0%,35%{box-shadow:0 0 0 3px var(--warn)}100%{box-shadow:0 0 0 0 transparent}}
.ch-m.hit .ch-b{animation:msgflash 2.2s ease-out}
@media (prefers-reduced-motion:reduce){.ch-m.hit .ch-b{animation:none;box-shadow:0 0 0 3px var(--warn)}}
.ch-text mark,.sr-row mark,.secitem mark{background:var(--warn-soft);color:var(--ink);border-radius:4px;padding:0 1px}
.ch-grow{flex:1}
/* Searching a chat: the box takes the switch's place; the matches take the messages' place until one is tapped. */
.ch-search{display:flex;gap:6px;align-items:center;min-width:0}
.ch-search input{flex:1;min-width:0;height:38px;border:1px solid var(--line);background:var(--sunk);border-radius:12px;padding:0 12px;font:inherit;font-size:15px;color:var(--ink)}
.ch-search input:focus{outline:2px solid var(--court);outline-offset:0}
.ch-search .cnt{font-size:12.5px;font-weight:700;color:var(--muted);white-space:nowrap;background:none;border:none;padding:0 2px;font-family:inherit;cursor:pointer;min-height:38px}
.ch-search .ch-iconbtn[disabled]{opacity:.4;cursor:default}
.ch-iconbtn.plain{background:none;border-color:transparent}
.sr-scope{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:center}
.sr-scope svg{width:14px;height:14px;flex:none}
.sr-list{flex:1;min-height:0;overflow-y:auto;padding:0 max(14px,env(safe-area-inset-right,0px)) 16px max(14px,env(safe-area-inset-left,0px));display:grid;align-content:start;grid-template-columns:minmax(0,1fr)}
.sr-list .mn-list{margin-top:10px;box-shadow:none}
.sr-row{display:flex;gap:11px;align-items:flex-start;padding:10px 0;border:none;border-bottom:1px solid var(--line);background:none;text-align:left;width:100%;font:inherit;color:inherit;cursor:pointer}
.sr-row .avatar{width:32px;height:32px;font-size:11.5px;margin:2px 0 0;box-shadow:none!important;flex:none}
.sr-row .t{flex:1;min-width:0;display:grid;gap:2px}
.sr-row .t b{display:flex;justify-content:space-between;gap:8px;font-size:14px}
.sr-row .t b small{font-weight:500;font-size:12px;color:var(--muted);flex:none}
.sr-row .t > span{font-size:13.5px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
.sr-row .t .in{font-size:12px;color:var(--muted);display:flex;gap:5px;align-items:center}
.sr-row .t .in svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.9}
.sr-head{font-size:12px;color:var(--muted);padding:10px 0 2px;display:flex;justify-content:space-between;gap:8px}
.sr-tip{font-size:12.5px;color:var(--muted);line-height:1.45;padding:12px 0 0;margin:0}
/* Muted: the bell turns red, and so does the line that says until when, its Unmute bold and underlined. */
.ch-iconbtn.muted{color:var(--bad);border-color:var(--bad);background:color-mix(in srgb,var(--bad) 12%,var(--sunk))}
.ch-note.muted{color:var(--bad)}
.ch-note.muted .linkbtn{color:var(--bad);font-weight:700;text-decoration:underline;text-underline-offset:2px}
/* Outside the chat (My details) its icons had no outline style and drew filled. */
.ch-note svg{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Searching settings: a box at the top of the Admin menu and of My details. */
.setsrch{position:relative;display:block}
.setsrch svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;pointer-events:none}
.setsrch input{width:100%;height:44px;border:1px solid var(--line);background:var(--sunk);border-radius:12px;padding:0 38px;font:inherit;font-size:15px;color:var(--ink)}
.setsrch input:focus{outline:2px solid var(--court);outline-offset:0}
.setsrch .clr{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:none;background:none;font-size:20px;color:var(--muted);border-radius:50%;line-height:1}
.secmenu .setsrch{margin:8px 6px 4px}
.secitem .where{display:block;font-size:12px;color:var(--muted);margin-top:1px}
.secitem .where i{font-style:normal;opacity:.6;margin:0 3px}
.sr-empty{padding:16px 10px;color:var(--muted);font-size:13.5px;line-height:1.45;margin:0}
.sr-empty b{color:var(--ink)}
.dialog .sres{display:grid;gap:2px}
.dialog .sres .secitem{padding:9px 8px}
.pk-list{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.pk-row{display:flex;gap:10px;align-items:center;border:none;border-bottom:1px solid var(--line);background:var(--surface);padding:9px 12px;text-align:left;font:inherit;color:var(--ink);min-height:48px;cursor:pointer}
.pk-row:last-child{border-bottom:none}
.pk-row .avatar{width:30px;height:30px;font-size:11px;margin:0;box-shadow:none!important;flex:none}
.pk-row .t{flex:1;min-width:0;display:grid;line-height:1.2}
.pk-row .t small{font-size:12px;color:var(--muted)}
.pk-row .chev{color:var(--muted);font-size:18px}
/* The setting a result opened: outlined for a moment. */
@keyframes hitring{0%,45%{box-shadow:0 0 0 2px var(--court),0 0 0 6px var(--court-soft)}100%{box-shadow:0 0 0 0 transparent,0 0 0 0 transparent}}
.srch-hit{border-radius:10px;animation:hitring 2.6s ease-out}
@media (prefers-reduced-motion:reduce){.srch-hit{animation:none;box-shadow:0 0 0 2px var(--court)}}
.mgroups{display:grid;gap:14px;min-width:0}
