/* =========================================================================
   SIDELINE, Team Control Room   ·   design system
   Friday-night-lights navy "mission control" (lifted, never black),
   stadium-amber accents, light cartographic venue map in the dark room.
   ========================================================================= */
:root {
  --bg:        #141B2E;
  --bg-2:      #161F34;
  --panel:     #1B2540;
  --panel-2:   #202B4A;
  --panel-3:   #263255;
  --raised:    #2D3B63;
  --line:      rgba(170, 195, 255, 0.12);
  --line-soft: rgba(170, 195, 255, 0.07);
  --line-hard: rgba(170, 195, 255, 0.18);

  /* stadium amber, unified with the Sideline front-door (home.css) so the
     control room reads as the same product, lit for night games. */
  --org:        #EBA63A;
  --org-bright: #FFC861;
  --org-deep:   #C9810F;
  --org-glow:   rgba(255, 200, 97, 0.16);
  --org-soft:   rgba(255, 200, 97, 0.10);

  --gold:      #F2C24E;  --gold-soft: rgba(242, 194, 78, 0.13);
  --sky:       #5BC8E6;  --sky-soft:  rgba(91, 200, 230, 0.13);
  --rose:      #FF8A8A;  --rose-soft: rgba(255, 138, 138, 0.13);
  --green:     #57E08A;  --green-soft: rgba(87, 224, 138, 0.13);
  --violet:    #C79BF2;

  --text:    #EEF1F8;
  --muted:   #A8B1C7;
  --subtle:  #8A94B0;   /* lifted for AA-adjacent contrast on --panel */
  --faint:   #6F7994;

  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 14px 40px rgba(0,0,0,.4);
  --shadow-3: 0 30px 80px rgba(0,0,0,.5);
  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--text);
  line-height: 1.55; min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body:before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 700px at 16% -8%, rgba(255,200,97,.10), transparent 60%),
    radial-gradient(900px 600px at 94% 2%, rgba(91,200,230,.06), transparent 55%),
    radial-gradient(1200px 900px at 50% 122%, rgba(224,146,42,.07), transparent 60%);
}
:selection { background: var(--org-glow); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }
input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--org); outline-offset: 2px; }

/* shared top-edge highlight, surfaces read as molded, not flat-lit */
.stat, .next-card, .panel, .pollc, .log-card, .chat-room,
.update-row, .stop, .cust, .h-card, .ph-today, .ci-jobcard {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

/* ---- atoms ------------------------------------------------------------ */
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--subtle); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--org); flex: none; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,200,97,.5);} 70%{box-shadow:0 0 0 10px rgba(255,200,97,0);} 100%{box-shadow:0 0 0 0 rgba(255,200,97,0);} }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 650; font-size: .92rem; padding: .72rem 1.25rem; border-radius: 999px; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #2b1503; background: linear-gradient(180deg, var(--org-bright), var(--org-deep)); box-shadow: 0 8px 22px rgba(255,169,77,.28), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255,169,77,.4); transform: translateY(-2px); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line-hard); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: var(--org-soft); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem .9rem; font-size: .82rem; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line-hard); color: var(--muted); }
.chip svg { width: 13px; height: 13px; }
.chip--org   { color: var(--org);   border-color: var(--org-soft);   background: var(--org-soft); }
.chip--gold  { color: var(--gold);  border-color: var(--gold-soft);  background: var(--gold-soft); }
.chip--sky   { color: var(--sky);   border-color: var(--sky-soft);   background: var(--sky-soft); }
.chip--green { color: var(--green); border-color: var(--green-soft); background: var(--green-soft); }
.chip--rose  { color: var(--rose);  border-color: var(--rose-soft);  background: var(--rose-soft); cursor: pointer; }
button.chip { cursor: pointer; }

.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 750; font-size: .76rem; color: #1c1206; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.avatar.tiny { width: 18px; height: 18px; font-size: .54rem; }

/* =========================================================================
   SIGN IN
   ========================================================================= */
.signin { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: calc(2rem + env(safe-area-inset-top, 0px)) 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); }
.signin-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 620px at 50% 28%, rgba(224,146,42,.20), transparent 62%), linear-gradient(180deg, #101627 0%, #141B2E 50%, #1A2138 100%); }
.signin-bg:after { content: ""; position: absolute; inset: 0; opacity: .5;
  background: repeating-linear-gradient(105deg, rgba(255,200,97,.025) 0 60px, rgba(255,200,97,.06) 60px 120px);
  -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 100%); mask-image: linear-gradient(180deg, transparent 40%, #000 100%); }
.signin-card { position: relative; z-index: 1; width: min(440px, 100%); text-align: center; animation: rise .7s var(--ease) both; }
.signin-logo { display: inline-flex; flex-direction: column; align-items: center; gap: .65rem; margin-bottom: 1.6rem; }
.signin-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--subtle); }
.signin h1 { font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 1.04; letter-spacing: -.01em; }
.signin h1 .accent { color: var(--org); font-style: italic; }
.signin-sub { color: var(--muted); margin: .7rem auto 0; max-width: 32ch; font-size: .98rem; }
.signin-form { margin-top: 1.7rem; text-align: left; background: linear-gradient(180deg, rgba(45,59,99,.5), rgba(27,37,64,.7)); border: 1px solid var(--line-hard); border-radius: var(--r-lg); padding: 1.5rem 1.4rem 1.6rem; box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255,255,255,.05); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin-bottom: .5rem; }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.field input { width: 100%; padding: .8rem .95rem; border-radius: 12px; background: rgba(0,0,0,.22); color: var(--text); border: 1px solid var(--line-hard); font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--org); box-shadow: 0 0 0 4px var(--org-soft); }
.signin-form .btn-primary { width: 100%; margin-top: .35rem; }
.forgot { display: block; text-align: center; margin-top: .9rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); }
.forgot:hover { color: var(--org); }
.signin-demo { margin-top: 1.1rem; padding: 1rem; border: 1px dashed var(--line-hard); border-radius: var(--r); background: rgba(255,255,255,.02); }
.signin-demo .btn { width: 100%; }
.signin-trial { display: block; text-align: center; margin-top: 1rem; font-size: .72rem; font-weight: 600; color: var(--subtle); }
.signin-trial a { color: var(--org); font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   APP SHELL + TOP BAR
   ========================================================================= */
.app { position: relative; z-index: 1; min-height: 100vh; display: none; }
.app.is-on { display: block; }

.topbar { position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px); background: linear-gradient(180deg, rgba(20,27,46,.94), rgba(20,27,46,.78)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.4rem; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .co { font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--subtle); }
.brand-text .room { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }

.nav { display: flex; align-items: center; gap: .2rem; margin: 0 auto; }
.nav a { position: relative; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding: .5rem .8rem; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: #2b1503; background: linear-gradient(180deg, var(--org-bright), var(--org-deep)); box-shadow: 0 6px 16px rgba(255,169,77,.28); }
.nav a .badge { position: absolute; top: 1px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--sky); color: #062330; font-size: .58rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.nav a.active .badge { background: #2b1503; color: var(--org-bright); }

.topbar-right { display: flex; align-items: center; gap: .7rem; flex: none; }
.crew-stack { display: flex; }
.crew-stack .avatar { width: 30px; height: 30px; margin-left: -8px; border: 2px solid var(--bg-2); }
.crew-stack .avatar:first-child { margin-left: 0; }

.account { position: relative; }
.account-btn { display: flex; align-items: center; gap: .45rem; padding: .35rem .6rem .35rem .4rem; border: 1px solid var(--line-hard); border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: border-color .2s, color .2s; }
.account-btn:hover { color: var(--text); border-color: var(--org-soft); }
.account-btn .avatar { width: 26px; height: 26px; }
.account-btn svg { width: 14px; height: 14px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: var(--panel-2); border: 1px solid var(--line-hard); border-radius: var(--r); box-shadow: var(--shadow-3); padding: .5rem; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.account-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.am-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .6rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.am-name { font-weight: 700; font-size: .9rem; }
.am-co { font-size: .74rem; color: var(--subtle); }
.am-item { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; padding: .6rem .65rem; border-radius: 10px; font-size: .86rem; font-weight: 550; color: var(--muted); transition: background .15s, color .15s; }
.am-item svg { width: 17px; height: 17px; flex: none; }
.am-item:hover { background: rgba(255,255,255,.05); color: var(--text); }
#signOut:hover { color: var(--rose); }
.am-div { height: 1px; background: var(--line); margin: .4rem 0; }

.nav-toggle { display: none; }

.view { max-width: var(--maxw); margin: 0 auto; padding: 2.2rem 1.4rem 6rem; animation: fade .45s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view-head { margin-bottom: 1.6rem; }
.view-date { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.synced { display: inline-flex; align-items: center; gap: .35rem; color: var(--org); letter-spacing: .1em; }
.view-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.02; letter-spacing: -.015em; }
.view-title .accent { color: var(--org); }
.view-sub { color: var(--muted); margin-top: .5rem; font-size: 1.02rem; }
.view-sub b { color: var(--text); font-weight: 700; }

.section-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 1rem; }
.section-label .meta { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }

/* ---- stat cards ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem 1.4rem; text-align: center; transition: transform .3s var(--ease), border-color .3s; }
.stat:hover { transform: translateY(-3px); border-color: var(--line-hard); }
.stat:after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.stat--games:after { background: linear-gradient(90deg, transparent, var(--org), transparent); }
.stat--next:after  { background: linear-gradient(90deg, transparent, var(--sky), transparent); }
.stat--going:after { background: linear-gradient(90deg, transparent, var(--green), transparent); }
.stat .num { font-family: var(--serif); font-weight: 600; font-size: 3.1rem; line-height: 1; letter-spacing: -.02em; }
.stat--games .num { color: var(--org); } .stat--next .num { color: var(--sky); } .stat--going .num { color: var(--green); }
.stat .num.num-clock { font-family: var(--sans); font-weight: 800; font-size: 2.3rem; font-variant-numeric: tabular-nums; padding-top: .35rem; }
.stat .num.num-clock.clock-live { color: var(--org); }
.clock-live { animation: pulse-text 1.6s ease-in-out infinite; }
@keyframes pulse-text { 0%,100%{opacity:1;} 50%{opacity:.55;} }
.clock-chip { display: inline-flex; align-items: center; gap: .3rem; color: var(--sky); letter-spacing: .1em; }
.clock-chip b { font-variant-numeric: tabular-nums; color: var(--text); }
.stat .lbl { margin-top: .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); }
.stat .delta { margin-top: .25rem; font-size: .76rem; color: var(--faint); }

/* ---- dashboard grid ---------------------------------------------------- */
.dash-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 940px) { .dash-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   THE CALENDAR  (the dashboard's centerpiece)
   ========================================================================= */
.cal-wrap { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.2rem 1.2rem 1rem; box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.04); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0 .2rem .9rem; }
.cal-month { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.cal-legend { display: flex; gap: .8rem; }
.cal-legend span { display: inline-flex; align-items: center; gap: .35rem; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: var(--faint); padding: .3rem 0 .5rem; }
.cal-day { position: relative; aspect-ratio: 1/.85; border-radius: 12px; border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); transition: background .15s, border-color .15s, transform .15s; }
.cal-day .cal-n { font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cal-pad { pointer-events: none; }
.cal-has { background: rgba(255,255,255,.035); border-color: var(--line); cursor: pointer; color: var(--text); }
.cal-has:hover { border-color: var(--org-soft); transform: translateY(-2px); }
.cal-game { background: linear-gradient(180deg, rgba(255,169,77,.10), rgba(255,169,77,.04)); border-color: rgba(255,169,77,.28); }
.cal-game .cal-n { color: var(--org-bright); font-weight: 800; }
.cal-today { border-color: var(--org) !important; background: var(--org-glow); color: var(--text); box-shadow: 0 0 0 1px var(--org-soft); animation: today-ring 2.6s ease-out infinite; }
.cal-today .cal-n { color: var(--org-bright); font-weight: 800; }
@keyframes today-ring { 0%{box-shadow:0 0 0 0 rgba(255,200,97,.4);} 70%{box-shadow:0 0 0 8px rgba(255,200,97,0);} 100%{box-shadow:0 0 0 0 rgba(255,200,97,0);} }
.cal-dots { display: flex; gap: 3px; }
.cal-day:not(.cal-has):not(.cal-today) { cursor: default; color: var(--faint); }

/* ---- next-up card ------------------------------------------------------ */
.next-card { display: block; width: 100%; text-align: left; background: linear-gradient(180deg, var(--panel-3), var(--panel)); border: 1px solid var(--line-hard); border-radius: var(--r-lg); padding: 1.1rem 1.2rem; transition: transform .2s var(--ease), border-color .2s; }
.next-card:hover { transform: translateY(-3px); border-color: var(--org-soft); }
.nc-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.nc-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--org); }
.nc-opp { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-top: .6rem; }
.nc-venue { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--subtle); margin-top: .35rem; }
.nc-venue svg { width: 14px; height: 14px; flex: none; color: var(--org); }
.nc-note { font-size: .8rem; color: var(--muted); margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.nc-cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--org); }
.nc-cta svg { width: 15px; height: 15px; }

/* ---- the "what changed" feed ------------------------------------------- */
.update-feed { display: flex; flex-direction: column; gap: .5rem; margin-top: .2rem; }
.update-row { display: flex; gap: .75rem; width: 100%; text-align: left; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-left: 3px solid var(--org); border-radius: var(--r); padding: .8rem .9rem; transition: transform .2s var(--ease), border-color .2s; }
.update-row:hover { transform: translateX(3px); border-color: var(--org-soft); }
.ur-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--org-soft); color: var(--org); display: grid; place-items: center; flex: none; }
.ur-ico svg { width: 16px; height: 16px; }
.ur-main { min-width: 0; }
.ur-msg { font-size: .86rem; color: var(--text); }
.ur-meta { font-size: .7rem; color: var(--faint); margin-top: .25rem; }

/* ---- event rows (month list) ------------------------------------------- */
.route-list { display: flex; flex-direction: column; gap: .55rem; }
.stop { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1.1rem; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.stop:hover { transform: translateX(4px); border-color: var(--org-soft); }
.stop-main { min-width: 0; }
.stop-main .who { font-weight: 650; font-size: 1rem; }
.stop-n { color: var(--faint); font-weight: 500; font-size: .82rem; }
.stop-main .addr { font-size: .82rem; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-right { display: flex; align-items: center; gap: .7rem; }
.evt-time { font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 700; color: var(--muted); }
.evt-datebox { width: 46px; border: 1.5px solid var(--line-hard); border-radius: 12px; padding: .3rem 0; display: flex; flex-direction: column; align-items: center; line-height: 1.1; flex: none; }
.evt-datebox b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.evt-datebox i { font-style: normal; font-size: .56rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--subtle); }
.stop .arrow { color: var(--faint); transition: transform .2s, color .2s; }
.stop .arrow svg, .cust .arrow svg { width: 20px; height: 20px; }
.stop:hover .arrow { transform: translateX(3px); color: var(--org); }

/* =========================================================================
   LIVE VENUE MAP  (light cartographic tile inside the dark room)
   ========================================================================= */
.map-wrap { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-hard); box-shadow: var(--shadow-2); background: #EAE3D2; }
.map-svg { display: block; width: 100%; height: auto; }
.m-park { fill: #7CA05A; font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.m-st { fill: #9c8e74; font: 700 11px var(--sans); letter-spacing: .14em; }
.map-hud { position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(14,18,30,.82); border: 1px solid var(--line-hard); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.map-gps { position: absolute; right: 14px; top: 14px; z-index: 3; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2b1503; background: var(--org-bright); padding: .4rem .7rem; border-radius: 999px; }
.map-legend { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: flex; gap: .8rem; padding: .45rem .75rem; border-radius: 12px; background: rgba(14,18,30,.82); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.map-legend span { display: inline-flex; align-items: center; gap: .35rem; font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #e9ecf5; }
.lg-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.pin { animation: pin-drop .5s var(--ease) both; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* families walking in from the parking lot (RAF-driven, like the crews map) */
.walker { position: absolute; z-index: 4; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; will-change: left, top; }
.walker-ring { position: absolute; top: -8px; width: 34px; height: 34px; border-radius: 50%; animation: ring 2.2s ease-out infinite; }
@keyframes ring { 0%{transform:scale(.6);opacity:.9;} 100%{transform:scale(1.5);opacity:0;} }
.walker-dot { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 4px 8px rgba(0,0,0,.35); }
.veh-tag { display: inline-flex; align-items: center; gap: .35rem; background: #0e1424; border: 1px solid var(--line-hard); padding: .2rem .55rem .2rem .25rem; border-radius: 999px; font-size: .66rem; font-weight: 700; color: #fff; white-space: nowrap; box-shadow: var(--shadow-1); }
.veh-tag .av { width: 17px; height: 17px; font-size: .55rem; border-radius: 50%; display: grid; place-items: center; color: #1c1206; font-weight: 800; }
.veh-live { color: var(--green); }

/* =========================================================================
   GAME-DAY FEED  (photos, pins, notes)
   ========================================================================= */
.live-feed { display: flex; flex-direction: column; gap: .7rem; }
.log-card { display: flex; gap: .85rem; text-align: left; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: .7rem; transition: transform .2s var(--ease), border-color .2s; }
.log-card:hover { transform: translateY(-3px); border-color: var(--org-soft); }
.log-card.fresh, .update-row.fresh { animation: fresh-glow .8s var(--ease) both; border-color: var(--org); }
@keyframes fresh-glow { 0%{ opacity:0; transform: scale(.94); box-shadow: 0 0 0 4px var(--org-soft); } 100%{ opacity:1; transform: none; } }
.log-empty { text-align: center; color: var(--subtle); padding: 2rem 1.5rem; border: 1px dashed var(--line-hard); border-radius: var(--r-lg); background: rgba(255,255,255,.015); }
.log-empty.sm { padding: 1.2rem; font-size: .86rem; }
.log-thumb { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex: none; border: 1px solid var(--line-hard); }
.log-gps { position: absolute; right: 5px; bottom: 5px; color: #2b1503; background: var(--org-bright); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; }
.log-body { min-width: 0; flex: 1; }
.log-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.log-who { font-weight: 700; font-size: .95rem; }
.log-time { font-size: .74rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.log-sub { font-size: .84rem; color: var(--muted); margin-top: .2rem; }
.log-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.ltag { display: inline-flex; align-items: center; gap: .3rem; font-size: .66rem; font-weight: 650; color: var(--muted); background: rgba(0,0,0,.2); border: 1px solid var(--line); padding: .2rem .45rem; border-radius: 999px; }
.ltag.ok { color: var(--org); border-color: var(--org-soft); }
.pin-thumb { display: grid; place-items: center; background: var(--panel-3); color: var(--violet); }
.note-card { border-left: 3px solid var(--sky); }

/* the CSS-rendered "bleachers photo", no external images, ever */
.bleachers { position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 35%),
    repeating-linear-gradient(0deg, #6b7a96 0 9px, #56627c 9px 18px);
}
.bleachers:before { content: ""; position: absolute; left: 18%; top: 8%; width: 64%; height: 34%;
  background: linear-gradient(180deg, #e05548, #b23a30); border-radius: 6px 6px 2px 2px;
  clip-path: polygon(0 100%, 12% 0, 88% 0, 100% 100%); }
.bleachers:after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 22%;
  background: linear-gradient(180deg, #c98e54, #b27a42); }

/* =========================================================================
   CHATS
   ========================================================================= */
.chat-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.chat-tab { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-hard); color: var(--muted); transition: color .2s, background .2s, border-color .2s; }
.chat-tab:hover { color: var(--text); border-color: var(--org-soft); }
.chat-tab.active { color: #2b1503; background: linear-gradient(180deg, var(--org-bright), var(--org-deep)); border-color: transparent; box-shadow: 0 6px 16px rgba(255,169,77,.25); }
.chat-tab .ct-n { font-size: .64rem; background: rgba(0,0,0,.2); border-radius: 999px; padding: .1rem .45rem; }
.chat-tab.active .ct-n { background: rgba(0,0,0,.25); color: #fff; }
.chat-room { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chat-roomhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.crh-name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.crh-who { display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: var(--subtle); }
.crh-who .avatar { margin-left: -6px; border: 2px solid var(--panel-2); }
.crh-who .avatar:first-child { margin-left: 0; }
.chat-thread { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .85rem; max-height: 440px; overflow-y: auto; }
.msg { display: flex; gap: .65rem; align-items: flex-start; }
.msg-b { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: .6rem .8rem; max-width: 56ch; }
.msg.mine .msg-b { background: var(--org-soft); border-color: var(--org-soft); border-radius: 14px 4px 14px 14px; }
.msg-top { display: flex; align-items: baseline; gap: .6rem; }
.msg-top b { font-size: .8rem; }
.msg-top span { font-size: .66rem; color: var(--faint); }
.msg-t { font-size: .9rem; color: var(--text); margin-top: .15rem; }
.chat-compose { display: flex; gap: .6rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; padding: .7rem .9rem; border-radius: 999px; background: rgba(0,0,0,.22); color: var(--text); border: 1px solid var(--line-hard); font-size: .92rem; }
.chat-compose input:focus { outline: none; border-color: var(--org); box-shadow: 0 0 0 4px var(--org-soft); }

/* =========================================================================
   POLLS
   ========================================================================= */
.polls { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.pollc { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem; transition: transform .3s var(--ease), border-color .3s; }
.pollc:hover { transform: translateY(-3px); border-color: var(--org-soft); }
.pollc.closed { opacity: .72; }
.pollc-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pollc-evt { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; font-weight: 700; color: var(--sky); }
.pollc-close { margin-left: auto; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pollc h4 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-top: .8rem; line-height: 1.25; }
.poll-opts { margin-top: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.popt-top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.popt-l { font-weight: 650; font-size: .9rem; }
.popt-n { font-size: .78rem; color: var(--subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.popt-n i { font-style: normal; color: var(--org); font-weight: 700; }
.popt-n b { color: var(--text); font-size: .9rem; }
.popt-bar { margin-top: .35rem; height: 8px; border-radius: 999px; background: rgba(0,0,0,.28); overflow: hidden; }
.popt-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--org-deep), var(--org-bright)); transition: width .5s var(--ease); }
.pollc-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--subtle); }
.pollc-foot b { color: var(--text); }

/* =========================================================================
   ROSTER
   ========================================================================= */
.roster-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.1rem; }
.search { position: relative; margin-bottom: 1.1rem; }
.search input { width: 100%; padding: .9rem 1rem .9rem 2.9rem; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid var(--line-hard); color: var(--text); font-size: .95rem; transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--org); box-shadow: 0 0 0 4px var(--org-soft); }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--subtle); width: 18px; height: 18px; }
.roster { display: flex; flex-direction: column; gap: .5rem; }
.no-match { color: var(--subtle); padding: 1rem; }
.cust { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.1rem; transition: transform .2s var(--ease), border-color .2s; }
.cust:hover { transform: translateX(4px); border-color: var(--org-soft); }
.cust .who { font-weight: 650; } .cust .addr { font-size: .82rem; color: var(--subtle); }
.day-badge { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px; border: 1px solid var(--line-hard); color: var(--muted); white-space: nowrap; }
.move-ctl { display: inline-flex; gap: .3rem; }

/* =========================================================================
   EVENT DETAIL + EDIT MODAL
   ========================================================================= */
.back-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .62rem 1.05rem; margin-top: .4rem; margin-bottom: 1.2rem; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 76px); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--org); background: var(--org-soft); border: 1px solid var(--line-hard); border-radius: 999px; box-shadow: 0 2px 12px rgba(0,0,0,.24); transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease; }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { color: var(--org-bright); background: var(--org-glow); border-color: var(--org); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .back-link { transition: none; } .back-link:hover { transform: none; } }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; }
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; }
.panel h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-bottom: 1rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-head h3 { margin-bottom: 1rem; }
.panel-foot { display: flex; gap: .5rem; align-items: flex-start; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--subtle); }
.panel-foot svg { width: 16px; height: 16px; flex: none; color: var(--org); margin-top: 2px; }
.panel-foot b { color: var(--text); }
.kv { display: flex; flex-direction: column; gap: .75rem; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-row .k { font-size: .8rem; color: var(--subtle); }
.kv-row .v { font-weight: 650; font-size: .9rem; text-align: right; }

.edit-scrim { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(8,12,22,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.edit-scrim.is-on { display: flex; animation: fade .25s ease both; }
.edit-modal { position: relative; width: min(460px, 100%); background: var(--panel-2); border: 1px solid var(--line-hard); border-radius: var(--r-lg); padding: 1.4rem; box-shadow: var(--shadow-3); animation: rise .35s var(--ease) both; }
.em-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.em-head h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.em-head .phone-close { position: static; }

/* =========================================================================
   FAB STACK  (Helper + Parent app)
   ========================================================================= */
.fab-stack { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; gap: .7rem; align-items: flex-end; }
.fab { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-2); transition: transform .25s var(--ease); }
.fab svg { width: 18px; height: 18px; }
.fab:hover { transform: translateY(-3px) scale(1.03); }
.fab-crew { color: #2b1503; background: linear-gradient(180deg, var(--org-bright), var(--org-deep)); box-shadow: 0 14px 34px rgba(255,169,77,.4); }
.fab-helper { color: var(--text); background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); border: 1px solid var(--line-hard); }
.fab-helper svg { color: var(--org); }

/* =========================================================================
   THE HELPER  (slide-over)
   ========================================================================= */
.helper-scrim { position: fixed; inset: 0; z-index: 65; display: none; justify-content: flex-end; background: rgba(8,12,22,.55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.helper-scrim.is-on { display: flex; animation: fade .3s ease both; }
.helper-panel { width: min(440px, 100%); height: 100%; background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-left: 1px solid var(--line-hard); box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: slide-in .4s var(--ease) both; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
.helper-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.hh-title { display: flex; align-items: center; gap: .7rem; }
.hh-title > svg { width: 28px; height: 28px; color: var(--org); }
.hh-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.hh-sub { font-size: .76rem; color: var(--subtle); }
.helper-body { flex: 1; overflow-y: auto; padding: 1.4rem; }
.h-eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin: 1.4rem 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.h-eyebrow:first-child { margin-top: 0; }
.h-count { background: var(--org-soft); color: var(--org); border-radius: 999px; padding: 0 .45rem; font-size: .64rem; }
.h-summary { background: linear-gradient(180deg, var(--org-soft), transparent); border: 1px solid var(--org-soft); border-radius: var(--r); padding: 1.1rem; }
.h-summary .h-eyebrow { margin-top: 0; color: var(--org); }
.h-summary p { font-size: .92rem; color: var(--text); } .h-summary b { color: var(--org); }
.h-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; margin-bottom: .7rem; }
.h-from { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.h-q { color: var(--text); font-weight: 600; }
.h-draft { margin-top: .7rem; padding: .75rem .85rem; background: rgba(0,0,0,.22); border-left: 2px solid var(--org); border-radius: 8px; font-size: .86rem; color: var(--text); line-height: 1.5; }
.h-route p, .h-flag p { font-size: .9rem; color: var(--text); } .h-route b { color: var(--org); }
.h-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.h-done { display: flex; align-items: center; gap: .5rem; color: var(--org); font-weight: 650; font-size: .88rem; }

/* =========================================================================
   PARENT PHONE
   ========================================================================= */
.modal-scrim { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(8,12,22,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-scrim.is-on { display: flex; animation: fade .3s ease both; }
.phone { position: relative; width: min(370px, 100%); height: min(760px, 90vh); background: var(--bg); border: 10px solid #0a0f1c; border-radius: 44px; box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(170,195,255,.08); overflow: hidden; display: flex; flex-direction: column; animation: rise .45s var(--ease) both; }
.phone-bar { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1.6rem .2rem; font-size: .72rem; font-weight: 700; color: var(--muted); z-index: 5; }
.pb-dots { display: flex; align-items: center; gap: 4px; }
.pb-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.pb-bat { width: 18px; height: 9px; border: 1.5px solid var(--muted); border-radius: 2px; position: relative; }
.pb-bat:after { content: ""; position: absolute; inset: 1px; right: 5px; background: var(--org); border-radius: 1px; }
.phone-close { position: absolute; right: 14px; top: 12px; z-index: 6; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--text); display: grid; place-items: center; }
.phone-close svg { width: 16px; height: 16px; }
.phone-close:hover { background: rgba(255,255,255,.16); }
.phone-screen { flex: 1; overflow-y: auto; padding: .6rem 1.3rem 1.3rem; display: flex; flex-direction: column; }
.phone-screen:-webkit-scrollbar { width: 0; }
.ci-step { display: flex; flex-direction: column; flex: 1; animation: fade .35s ease both; }
.ph-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.ph-ht { line-height: 1.1; flex: 1; } .ph-name { font-weight: 700; } .ph-role { font-size: .74rem; color: var(--subtle); }
.ci-kicker { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); }
.ci-h { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.1; margin-top: .35rem; }
.ci-h.sm { font-size: 1.45rem; }
.ci-sub { color: var(--muted); font-size: .9rem; margin-top: .4rem; } .ci-sub b { color: var(--text); }

/* the "today card", the heart of the parent app */
.ph-today { display: block; width: 100%; text-align: left; margin-top: 1rem; background: linear-gradient(180deg, var(--panel-3), var(--panel)); border: 1px solid var(--line-hard); border-radius: var(--r-lg); padding: 1rem 1.1rem; transition: border-color .2s; }
.ph-today:hover { border-color: var(--org-soft); }
.ph-updated { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-soft); animation: fresh-in .7s var(--ease) both; }
@keyframes fresh-in { 0%{ opacity:0; transform: scale(.96); } 100%{ opacity:1; transform: none; } }
.pt-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pt-time { margin-left: auto; font-weight: 700; color: var(--org); font-variant-numeric: tabular-nums; }
.pt-opp { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-top: .55rem; }
.pt-venue { font-size: .8rem; color: var(--subtle); margin-top: .3rem; display: flex; align-items: center; gap: .3rem; }

.ph-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1rem; }
.ph-act { display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem .4rem; transition: border-color .2s, transform .2s; }
.ph-act:hover { border-color: var(--org-soft); transform: translateY(-2px); }
.ph-act svg { width: 20px; height: 20px; color: var(--org); }
.ph-act span { font-size: .72rem; font-weight: 700; line-height: 1.2; }
.ph-act small { display: block; font-size: .62rem; font-weight: 500; color: var(--subtle); margin-top: .15rem; }

.ph-jobs { display: flex; flex-direction: column; gap: .55rem; }
.ph-job { display: flex; align-items: center; gap: .7rem; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem .9rem; }
.pj-n { width: 28px; height: 28px; border-radius: 9px; background: rgba(0,0,0,.25); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.pj-main { flex: 1; min-width: 0; } .pj-who { font-weight: 650; font-size: .94rem; } .pj-addr { font-size: .78rem; color: var(--subtle); }
.ph-map { position: relative; height: 130px; border-radius: var(--r); overflow: hidden; margin-top: 1.1rem; border: 1px solid var(--line-hard); }
.ph-map-tile { position: absolute; inset: 0; background: #EAE3D2; background-image: repeating-linear-gradient(90deg, transparent 0 38px, #d8cdb6 38px 40px), repeating-linear-gradient(0deg, transparent 0 30px, #d8cdb6 30px 32px); }
.ph-map-tile:after { content:""; position:absolute; left:20%; top:18%; width:60%; height:48%; background:#E8B173; border-radius:8px; border: 3px solid #f6f1e4; }
.ph-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-100%); color: var(--rose); filter: drop-shadow(0 4px 5px rgba(0,0,0,.3)); }
.ci-jobcard { margin-top: 1.1rem; background: var(--panel-2); border: 1px solid var(--line-hard); border-radius: var(--r); padding: 1rem; }
.ci-spacer { flex: 1; min-height: 1rem; }
.ci-foot { margin-top: 1rem; }
.ph-chat { display: flex; flex-direction: column; gap: .7rem; margin-top: 1rem; }
.ph-chat .msg-b { max-width: 100%; }
.phone .chat-compose { padding: .8rem 0 0; border-top: 1px solid var(--line); }

.ci-photo { margin-top: 1.1rem; position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-hard); display: grid; place-items: center; cursor: pointer; background: #121a2c; }
.cam-hint { position: relative; z-index: 2; text-align: center; color: var(--muted); padding: 0 1rem; }
.cam-hint svg { width: 44px; height: 44px; margin: 0 auto .5rem; color: var(--org); }
.ch-t { font-weight: 700; } .ch-s { font-size: .76rem; margin-top: .2rem; }
.ci-photo.shot { cursor: default; }
.ci-photo .shutter { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
.ci-photo.flash .shutter { animation: flash .5s ease; }
@keyframes flash { 0%{opacity:.9;} 100%{opacity:0;} }
.gps-pill { font-size: .62rem; font-weight: 700; color: #2b1503; background: var(--org-bright); padding: .25rem .55rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .3rem; }
.ci-toggle { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--line); gap: 1rem; }
.ci-toggle:last-child { border-bottom: none; }
.ci-toggle .lbl { font-weight: 600; font-size: .92rem; } .ci-toggle .lbl small { display: block; color: var(--subtle); font-weight: 400; font-size: .76rem; }
.step-ctl { display: flex; align-items: center; gap: .6rem; } .step-ctl b { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.step-btn { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--text); }
.step-btn:hover { background: rgba(255,255,255,.14); }
.tgl { width: 46px; height: 27px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; flex: none; }
.tgl:after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.tgl.on { background: var(--org); } .tgl.on:after { transform: translateX(19px); }
.ci-success { text-align: center; justify-content: center; align-items: center; }
.ci-success .check { width: 92px; height: 92px; margin: 0 auto 1.2rem; }
.ci-success h2 { font-family: var(--serif); font-weight: 600; font-size: 2rem; }
.ci-success p { color: var(--muted); margin-top: .5rem; }

/* ---- toasts + ribbon -------------------------------------------------- */
.toast-wrap { position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: .6rem; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border-radius: 999px; background: #111729; border: 1px solid var(--org-soft); color: var(--text); font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-2); animation: toastin .4s var(--ease) both; }
.toast svg { width: 18px; height: 18px; color: var(--org); flex: none; }
.toast--long { max-width: min(92vw, 440px); border-radius: 18px; align-items: flex-start; text-align: left; line-height: 1.5; font-weight: 500; padding: .9rem 1.1rem; }
.toast--long svg { margin-top: 2px; }
.chip--locked { opacity: .48; }
@keyframes toastin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.demo-ribbon { position: relative; z-index: 1; text-align: center; padding: 1.4rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom, 0px)); font-size: .78rem; color: var(--subtle); border-top: 1px solid var(--line); }
.demo-ribbon b { color: var(--muted); } .demo-ribbon a { color: var(--org); font-weight: 700; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
  /* hide by full height + every offset (incl. the notch), then visibility, no tail can leak back */
  .nav { position: fixed; inset: calc(56px + env(safe-area-inset-top, 0px)) 0 auto 0; z-index: 39; flex-direction: column; gap: .2rem; background: rgba(17,23,41,.98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 1rem; border-bottom: 1px solid var(--line); margin: 0; transform: translateY(calc(-100% - 56px - env(safe-area-inset-top, 0px))); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
  .nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); } .nav a { width: 100%; padding: .8rem 1rem; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-hard); color: var(--text); }
  .crew-stack, .acc-name { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .stats { gap: .6rem; } .stat { padding: 1.1rem .7rem; } .stat .num { font-size: 2.3rem; }
  .stat .num.num-clock { font-size: 1.35rem; padding-top: .65rem; } /* H:MM:SS must fit the narrow card */
  .brand-text .co { display: none; }
  .cal-legend { display: none; }
}
@media (max-width: 560px) {
  .view { padding: 1.5rem 1rem 5rem; }
  .chat-thread { max-height: min(440px, 55vh); } /* keep the composer on screen */
  .veh-tag { display: none; } /* walker dots stay; tags crowd a small map */
  .stop { grid-template-columns: auto 1fr; } .stop-right { grid-column: 2; justify-content: flex-start; }
  .cust { grid-template-columns: auto 1fr; } .cust .day-badge { display: none; } .cust .move-ctl { grid-column: 2; }
  .ph-actions { grid-template-columns: repeat(3, 1fr); }
  .fab span { display: none; } .fab { padding: .85rem; }
  .polls { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .05ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   WEATHER,  current conditions + severe-weather alerts (these are outdoor
   games; the forecast is part of the plan, and lightning is a safety call).
   ========================================================================= */
/* compact "now" badge on cards + the phone today card */
.wx-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--muted);
  padding: .28rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.wx-chip svg { color: var(--sky); flex: none; }
.wx-chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.wx-chip .wx-cond { color: var(--subtle); }
.wx-chip--severe { color: var(--rose); border-color: var(--rose-soft); background: var(--rose-soft); }
.wx-chip--severe svg, .wx-chip--severe b, .wx-chip--severe .wx-cond { color: var(--rose); }
.wx-chip--adv { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-soft); }
.wx-chip--adv svg, .wx-chip--adv b, .wx-chip--adv .wx-cond { color: var(--gold); }
.nc-wx { margin-top: .55rem; }

/* full read-out on the event page + game-day board */
.wx-readout { border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.02); padding: .9rem 1rem; }
.wx-now { display: flex; align-items: center; gap: .8rem; }
.wx-now > svg { color: var(--sky); flex: none; }
.wx-temp { font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1; }
.wx-temp span { font-size: .9rem; color: var(--subtle); margin-left: 2px; }
.wx-now-cond { color: var(--muted); font-weight: 600; font-size: .92rem; }
.wx-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--subtle); }
.wx-stats span { display: inline-flex; align-items: center; gap: .35rem; }
.wx-stats svg { color: var(--sky); }
.wx-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.wx-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.wx-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 650; color: var(--sky);
  padding: .4rem .7rem; border-radius: 999px; border: 1px solid var(--sky-soft); background: var(--sky-soft); transition: transform .2s var(--ease), background .2s; }
.wx-link:hover { transform: translateY(-1px); background: rgba(91,200,230,.2); }
.wx-link svg { flex: none; }

/* the alert strip, present and unmistakable, but it doesn't own the page.
   A slim one-liner (pulsing dot + headline + a one-tap Radar link); the detail,
   the official links and the actions tuck behind a "Details" expander. */
.wx-alert { border-radius: 12px; margin-bottom: 1rem; border: 1px solid; overflow: hidden; }
.wx-alert--severe { border-color: rgba(255,138,138,.42); background: rgba(255,138,138,.07); }
.wx-alert--adv    { border-color: var(--gold-soft);      background: rgba(242,194,78,.06); }
.wx-alert-bar { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; }
.wx-alert-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; }
.wx-alert-dot svg { width: 17px; height: 17px; }
.wx-alert--severe .wx-alert-dot { background: rgba(255,138,138,.16); color: var(--rose); animation: wxpulse 2.2s ease-out infinite; }
.wx-alert--adv .wx-alert-dot    { background: var(--gold-soft); color: var(--gold); }
@keyframes wxpulse { 0%{box-shadow:0 0 0 0 rgba(255,138,138,.5);} 70%{box-shadow:0 0 0 9px rgba(255,138,138,0);} 100%{box-shadow:0 0 0 0 rgba(255,138,138,0);} }
.wx-alert-bar-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.wx-alert-bar-text b { font-weight: 700; }
.wx-alert--severe .wx-alert-bar-text b { color: var(--rose); }
.wx-alert--adv .wx-alert-bar-text b { color: var(--gold); }
.wx-alert-quick { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 650;
  color: var(--sky); padding: .3rem .55rem; border-radius: 999px; border: 1px solid var(--sky-soft); background: var(--sky-soft); transition: background .2s; }
.wx-alert-quick:hover { background: rgba(91,200,230,.2); }
.wx-alert-quick svg { flex: none; }
.wx-alert-toggle { flex: none; display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 650; color: var(--subtle); padding: .3rem .3rem; }
.wx-alert-toggle svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.wx-alert.is-open .wx-alert-toggle svg { transform: rotate(180deg); }
.wx-alert-body { padding: .7rem .85rem .85rem; border-top: 1px solid var(--line); }
.wx-alert-body[hidden] { display: none; }
.wx-alert-headline { font-weight: 700; font-size: .9rem; }
.wx-alert-detail { color: var(--muted); font-size: .86rem; margin-top: .3rem; }
.wx-alert-meta { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; color: var(--subtle); margin-top: .5rem; }
.wx-alert-meta svg { color: var(--org); flex: none; }
.wx-alert-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.wx-alert-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.wx-alert-actions .btn { white-space: nowrap; }

/* game-day map weather pill (sits where "Gates 6:15" did) */
.map-wx { position: absolute; right: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: rgba(14,18,30,.82); border: 1px solid var(--line-hard); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: .4rem .7rem; border-radius: 999px; }
.map-wx svg { width: 15px; height: 15px; }
.map-wx--severe { color: #fff; background: rgba(196,52,52,.9); border-color: rgba(255,138,138,.6); }

/* parent-phone weather alert strip */
.ph-wxalert { display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem; border-radius: var(--r); margin: .2rem 0 .9rem; border: 1px solid; }
.ph-wxalert--severe { color: var(--rose); border-color: rgba(255,138,138,.45); background: rgba(255,138,138,.12); }
.ph-wxalert--adv { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-soft); }
.ph-wxalert-ic { flex: none; display: grid; place-items: center; }
.ph-wxalert-b { display: flex; flex-direction: column; line-height: 1.3; }
.ph-wxalert-b b { font-size: .9rem; }
.ph-wxalert-b small { color: var(--muted); font-size: .74rem; display: inline-flex; align-items: center; gap: .3rem; }
.ph-wxalert-b small svg { flex: none; }
.pt-wx { margin-top: .55rem; }

.h-count--alert { background: var(--rose-soft); color: var(--rose); }

/* "Weather near you", device GPS, snapped to the nearest seeded venue */
.wx-here { border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.02); padding: 1rem; }
.wx-here-prompt { color: var(--muted); font-size: .9rem; margin-bottom: .8rem; }
.wx-here-prompt b { color: var(--text); }
.wx-here-head { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.wx-here-head svg { color: var(--sky); }
.wx-here-place { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin: .15rem 0 .7rem; }
.wx-here-redo { margin-top: .7rem; }
.wx-here-msg { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; color: var(--muted); font-size: .88rem; }
.wx-here-msg svg { color: var(--sky); flex: none; }

/* compact location pill on the parent phone */
.ph-wxhere { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; text-align: left;
  margin: .2rem 0 .9rem; padding: .6rem .75rem; border-radius: var(--r); border: 1px solid var(--line-hard); background: rgba(255,255,255,.04); }
.ph-wxhere.is-msg { justify-content: flex-start; color: var(--muted); font-size: .85rem; }
.ph-wxhere-l { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--text); }
.ph-wxhere-l svg { color: var(--sky); flex: none; }
.ph-wxhere-go svg { color: var(--subtle); }

/* =========================================================================
   MULTI-TEAM SWITCH  ·  the tab row above the control room
   ========================================================================= */
.team-switch { max-width: var(--maxw); margin: 0 auto; padding: .55rem 1.4rem 0; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.ts-lead { display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); }
.ts-lead svg { color: var(--org); }
.team-tab { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .05rem; padding: .42rem .8rem .42rem .7rem; border-radius: 12px; border: 1px solid var(--line-hard); background: rgba(255,255,255,.03); position: relative; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.team-tab .tt-dot { position: absolute; left: .55rem; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--tab, var(--org)); transform: translateY(-50%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tab, var(--org)) 22%, transparent); }
.team-tab .tt-short { display: none; }
.team-tab .tt-name { padding-left: .9rem; font-weight: 750; font-size: .9rem; color: var(--text); line-height: 1.1; }
.team-tab .tt-meta { padding-left: .9rem; font-size: .66rem; font-weight: 600; letter-spacing: .04em; color: var(--subtle); }
.team-tab:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--tab, var(--org)) 50%, transparent); background: rgba(255,255,255,.06); }
.team-tab.active { border-color: var(--tab, var(--org)); background: color-mix(in srgb, var(--tab, var(--org)) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tab, var(--org)) 35%, transparent); }
.ts-hint { font-size: .72rem; color: var(--faint); margin-left: auto; }
@media (max-width: 720px) { .team-switch { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: .4rem; padding: .5rem .9rem 0; } .team-switch:-webkit-scrollbar { display: none; } .ts-hint, .ts-lead { display: none; } .team-tab { flex: none; }
  /* three teams have to read at 390px, so the phone tab drops to a short
     name on one line and the sport/season meta comes off. */
  .team-tab { flex-direction: row; align-items: center; padding: .72rem .68rem .72rem .55rem; }
  .team-tab .tt-name, .team-tab .tt-meta { display: none; }
  .team-tab .tt-short { display: block; padding-left: 1.75rem; font-weight: 750; font-size: .84rem; line-height: 1; color: var(--text); white-space: nowrap; }
  .team-tab .tt-logo { left: .42rem; width: 21px; height: 21px; } }

/* topbar action buttons, notification bell + the parent/admin flip */
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line-hard); transition: color .15s, border-color .15s, transform .15s, background .15s; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--text); border-color: var(--org-soft); transform: translateY(-1px); }
.bell-dot { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--rose); color: #2b0d0d; font-size: .6rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.flip-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 650; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line-hard); transition: transform .2s var(--ease), border-color .2s, background .2s; }
.flip-btn svg { color: var(--org); }
.flip-btn:hover { transform: translateY(-1px); border-color: var(--org-soft); background: rgba(255,255,255,.09); }
@media (max-width: 900px) { .flip-lbl { display: none; } .flip-btn { padding: .5rem; width: 38px; justify-content: center; } }

/* per-person push toggle (account menu + inbox + phone settings) */
.am-note { padding: .15rem .35rem; }
.push-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .65rem; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.push-row .pr-l { flex: 1; min-width: 0; }
.push-row .pr-t { font-size: .82rem; font-weight: 650; color: var(--text); }
.push-row .pr-s { font-size: .7rem; color: var(--subtle); margin-top: .1rem; }

/* =========================================================================
   PERSONAL FILTER  ·  Everything / Just-mine segmented control
   ========================================================================= */
.filter-line { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; flex-wrap: wrap; }
.filter-hint { font-size: .76rem; color: var(--faint); }
.just-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line-hard); gap: 2px; }
.just-toggle button { padding: .34rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 650; color: var(--muted); transition: color .15s, background .15s; }
.just-toggle button.active { color: #2b1503; background: linear-gradient(180deg, var(--org-bright), var(--org-deep)); box-shadow: 0 4px 12px rgba(255,169,77,.25); }

/* =========================================================================
   DUTIES  ·  self-explanatory sign-ups
   ========================================================================= */
.duty-list { display: grid; gap: .6rem; margin-bottom: .4rem; }
.duty-card { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.duty-card.duty-full { opacity: .82; }
.duty-main { flex: 1; min-width: 0; }
.duty-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.duty-label { font-weight: 700; font-size: .92rem; color: var(--text); }
.duty-when { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; color: var(--subtle); margin-top: .2rem; }
.duty-when svg { color: var(--org); flex: none; }
.duty-right { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; flex: none; }
.duty-who { display: inline-flex; }
.duty-who .avatar { margin-left: -7px; box-shadow: 0 0 0 2px var(--panel); }
.duty-none { font-size: .72rem; color: var(--faint); }
.ph-duties { display: grid; gap: .55rem; }
.ph-duties .duty-card { padding: .65rem .7rem; }
.ph-duties .duty-label { font-size: .86rem; }

/* =========================================================================
   NOTIFICATION INBOX  ·  slide-over (reuses .helper-scrim chrome)
   ========================================================================= */
.inbox-row { display: flex; gap: .7rem; padding: .75rem .35rem; border-bottom: 1px solid var(--line-soft); }
.inbox-row .ir-ic { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--org-soft); color: var(--org); }
.inbox-row.inbox-weather .ir-ic { background: var(--rose-soft); color: var(--rose); }
.inbox-row .ir-main { flex: 1; min-width: 0; }
.inbox-row .ir-text { font-size: .88rem; color: var(--text); line-height: 1.4; }
.inbox-row .ir-meta { font-size: .7rem; color: var(--faint); margin-top: .2rem; }
.inbox-foot { margin-top: 1rem; }

/* =========================================================================
   PARENT PHONE  ·  flip banner, team pill, notification bell
   ========================================================================= */
/* padding-right clears the absolutely positioned .phone-close (28px at right:14px)
   so the right end of "Control room" is never covered by the close button */
.flip-banner { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; color: var(--subtle); background: rgba(255,200,97,.08); border-bottom: 1px solid var(--line); padding: .4rem .85rem; padding-right: 52px; }
.flip-banner .flip-banner-t { min-width: 0; }
.flip-banner b { color: var(--org-bright); font-weight: 750; }
.flip-banner .flip-back { margin-left: auto; display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--line-hard); }
.flip-banner .flip-back:hover { border-color: var(--org-soft); }
.ph-head .ph-ht { flex: 1; min-width: 0; }
.ph-team { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 650; color: var(--muted); }
.ph-team.switchable { color: var(--org-bright); }
.ph-bell { position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.06); border: 1px solid var(--line-hard); }
.ph-bell svg { width: 18px; height: 18px; }

/* ---- Event-types picker (admin: turn each team's rhythm on/off) -------- */
.types-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 1.25rem;
  background: rgba(8,12,22,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
.types-modal.is-on { display: flex; animation: tmFade .2s ease; }
@keyframes tmFade { from { opacity: 0; } to { opacity: 1; } }
.tm-card { position: relative; width: min(420px, 100%); max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line-hard);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3, 0 30px 70px rgba(0,0,0,.5)); }
@media (prefers-reduced-motion: no-preference) { .types-modal.is-on .tm-card { animation: tmRise .26s cubic-bezier(.22,1,.36,1); } }
@keyframes tmRise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.tm-bar { height: 4px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(90deg, var(--org-deep), var(--org-bright), #FF8A8A); }
.tm-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.06); color: var(--subtle); cursor: pointer; }
.tm-close svg { width: 16px; height: 16px; }
.tm-close:hover { background: rgba(255,255,255,.12); color: var(--text); }
.tm-head { padding: 1.1rem 1.3rem .4rem; }
.tm-eyebrow { font: 700 10px/1 var(--mono, ui-monospace, monospace); letter-spacing: .16em; text-transform: uppercase; color: var(--org-bright); }
.tm-title { margin: .5rem 0 0; font-family: var(--display, "Fraunces", Georgia, serif); font-weight: 600; font-size: 1.4rem; color: var(--text); }
.tm-title em { font-style: normal; color: var(--org-bright); }
.tm-sub { margin: .4rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--subtle); }
.tm-list { padding: .8rem 1rem 0; display: flex; flex-direction: column; gap: .4rem; }
.tm-row { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: var(--r); cursor: pointer; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); transition: border-color .15s ease, background .15s ease; }
.tm-row:hover { border-color: var(--line-hard); }
.tm-row.is-on { background: var(--panel-3); border-color: var(--org-soft); }
.tm-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.tm-label { flex: 1; font-size: .92rem; font-weight: 600; color: var(--text); }
.tm-switch { width: 40px; height: 23px; border-radius: 999px; flex: none; background: rgba(255,255,255,.12); position: relative; transition: background .18s ease; }
.tm-row.is-on .tm-switch { background: var(--org); }
.tm-knob { position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .18s cubic-bezier(.22,1,.36,1); }
.tm-row.is-on .tm-knob { transform: translateX(17px); }
.tm-foot { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.3rem 1.2rem; margin-top: .4rem; }
.tm-count { font: 700 11px/1 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.tm-done { border: 0; border-radius: 999px; padding: .6rem 1.4rem; font-weight: 700; font-size: .82rem; cursor: pointer; color: #14110A;
  background: linear-gradient(135deg, var(--org-bright), var(--org)); box-shadow: 0 8px 20px -8px var(--org-glow); }
.tm-done:active { transform: scale(.97); }

/* ---- Team mascot logos (Bulls / Outlaws) ------------------------------- */
.brand-logo { width: 36px; height: 36px; object-fit: contain; display: block; }
.signin-team-logo { width: 78px; height: 78px; object-fit: contain; display: block; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.team-tab .tt-logo { position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; object-fit: contain; }
.team-tab .tt-name, .team-tab .tt-meta { padding-left: 2.15rem; }

/* ── Mobile overflow hardening, sign-in + shell (responsive QA pass) ──
   The sign-in card could not shrink below its heading on a narrow phone,
   pushing ~10px past the viewport. Let it shrink and scale the headline. */
@media (max-width: 480px) {
  .signin { padding-left: 1rem; padding-right: 1rem; }
  .signin-card { width: 100%; min-width: 0; }
  .signin h1 { font-size: clamp(1.9rem, 7.5vw, 2.4rem); }
  /* On a phone the weather pill sat on top of the venue name, which is the one
     thing a parent needs off this map. Stack them: venue on the first row,
     weather on its own row underneath, both hugging the left edge. */
  .map-hud { max-width: calc(100% - 28px); font-size: .62rem; padding: .38rem .68rem; }
  .map-wx, .map-gps { top: 52px; bottom: auto; left: 14px; right: auto; max-width: 66%;
    font-size: .58rem; padding: .34rem .6rem; white-space: normal; line-height: 1.3;
    border-radius: 14px; align-items: flex-start; }
  .map-wx svg { width: 13px; height: 13px; }
  /* the legend joins the same left-hand stack instead of sitting across the
     parking strip, where it covered the "enter off ..." wayfinding label */
  .map-legend { top: 90px; bottom: auto; gap: .5rem; padding: .34rem .55rem; }
  .map-legend span { font-size: .55rem; gap: .28rem; }
  .map-legend .lg-dot { width: 7px; height: 7px; }
}
html, body { overflow-x: hidden; overflow-x: clip; }


/* real-photos wired */
.turf { background: linear-gradient(180deg, rgba(8,10,14,.06), rgba(8,10,14,.42)), url("/_demo-photos/AdobeStock_2070371137.jpg") center/cover no-repeat !important; }
.turf:before, .turf:after { content: none !important; display: none !important; }
.signin-bg { background: linear-gradient(180deg, rgba(10,12,16,.74), rgba(10,12,16,.88)), url("/_demo-photos/AdobeStock_2070371137.jpg") center/cover no-repeat !important; }

/* =========================================================================
   STANDINGS & MY PLAYERS  ·  the MaxPreps concept screen
   Same Friday-night-lights system as the rest of the room: lifted navy
   panels, hairline borders, stadium amber for the one thing that matters on
   each surface. Two new pieces of vocabulary live here, the jewel tile and
   the collapsible component box.
   ========================================================================= */

/* ---- jewel tile: never a bare stroke on a panel ----------------------- */
/* Every tile used to be the same muted navy gradient, so six stacked
   sections on the parent phone were six identical smudges and colour
   carried no information at all. The hue now names the section: it is the
   first thing you recognise, the glyph is the second. Each tile ships three
   stops (deep, mid, bright) plus a glow, and the bright end is a genuinely
   vivid colour so the tile reads as lit rather than as a grey-blue plate on
   a dark card. The construction is unchanged: 52px, 15px radius, a 150deg
   gradient, a sunshine radial top-right, an inset top highlight, an inset
   bottom darken, a gold rim, and a coloured drop. */
.jtile {
  --j1: #1668C8; --j2: #2E8FE0; --j3: #7ACBFF; --jglow: 46, 143, 224;
  position: relative; width: 52px; height: 52px; flex: none; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--j1) 0%, var(--j2) 54%, var(--j3) 100%);
  border: 1px solid rgba(255, 200, 97, .42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -12px 20px -12px rgba(4, 8, 18, .78),
    0 0 0 1px rgba(4, 8, 18, .55),
    0 12px 26px -12px rgba(var(--jglow), .85),
    0 3px 10px rgba(0, 0, 0, .5);
}
.jtile:before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(23px 23px at 81% 17%, rgba(255, 197, 61, .62), rgba(255, 197, 61, 0) 73%);
}
.jtile .jgly { position: relative; width: 27px; height: 27px; }

/* per-section hues. One family: azure and deep ocean at strength, plus the
   teal and violet either side of them, plus sunshine for exactly one. No
   red and no green anywhere, both carry status meaning elsewhere. */
/* The ten the parent phone can stack, each its own hue, and no two adjacent
   sections in the default order share one.
   The band is azure 206 through the violet stretch toward deep ocean, plus
   sunshine. Under about 202 a hue slides into cyan and then, once the
   sunshine radial composites over it, into GREEN; over about 288 it slides
   into magenta. Neither is ours, and green and red both carry status meaning
   elsewhere in this app. Contrast cannot catch either, since it measures
   value and not hue, so every stop here and every composited corner was
   checked for hue angle as well as for contrast. */
.jtile--today, .jtile--sched   { --j1: #1668C8; --j2: #2E8FE0; --j3: #7ACBFF; --jglow: 46, 143, 224; }
.jtile--rides, .jtile--stock   { --j1: #4A2C9E; --j2: #8248D0; --j3: #B292F8; --jglow: 130, 72, 208; }
.jtile--chat, .jtile--sync     { --j1: #2E33A8; --j2: #4E5AE6; --j3: #8E9AFF; --jglow: 78, 90, 230; }
.jtile--people, .jtile--book   { --j1: #0B3E86; --j2: #1E63C8; --j3: #4E9BE8; --jglow: 30, 99, 200; }
.jtile--survey, .jtile--stats,
.jtile--players                { --j1: #2E4FB8; --j2: #5E7CE0; --j3: #A8BCFF; --jglow: 94, 124, 224; }
.jtile--cover                  { --j1: #0A4472; --j2: #1C78BC; --j3: #62B4EE; --jglow: 28, 120, 188; }
.jtile--camera, .jtile--capture{ --j1: #3C2A8E; --j2: #6A50D0; --j3: #A492F0; --jglow: 106, 80, 208; }
.jtile--ladder                 { --j1: #12358E; --j2: #3E6AE0; --j3: #86A6F8; --jglow: 62, 106, 224; }
/* the warm tiles. On sunshine, a sunshine accent is invisible, so the single
   meaning-carrying shape flips to deep ocean instead. Still exactly one
   accent shape, just the one hue that survives this plate. */
.jtile--notes, .jtile--ledger  { --j1: #6E4206; --j2: #A87310; --j3: #E8A81C; --jglow: 232, 168, 28; }
.jtile--rank                   { --j1: #7E5A08; --j2: #B8860E; --j3: #F2BC30; --jglow: 242, 188, 48; }
.jtile--notes, .jtile--rank, .jtile--ledger { border-color: rgba(4, 8, 18, .45); }
.jtile--notes:before, .jtile--rank:before, .jtile--ledger:before {
  background: radial-gradient(24px 24px at 80% 17%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 74%);
}
.jtile--notes .jgly [fill="#FFC861"],
.jtile--rank .jgly [fill="#FFC861"],
.jtile--ledger .jgly [fill="#FFC861"] { fill: #0E2638; }
.jtile--notes .jgly [stroke="#FFC861"],
.jtile--rank .jgly [stroke="#FFC861"],
.jtile--ledger .jgly [stroke="#FFC861"] { stroke: #0E2638; }

/* ---- collapsible component box ---------------------------------------- */
.stand-stack { display: flex; flex-direction: column; gap: 1rem; }
.cbox {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 30px -22px rgba(0,0,0,.8);
  transition: border-color .25s var(--ease);
}
.cbox.is-open { border-color: var(--line-hard); }
.cbox-head {
  display: flex; align-items: center; gap: .95rem; width: 100%; text-align: left;
  padding: 1rem 1.15rem; min-height: 64px; transition: background .2s ease;
}
.cbox-head:hover { background: rgba(255, 200, 97, .05); }
.cbox-head:active { background: rgba(255, 200, 97, .09); }
.cbox-t { flex: 1; min-width: 0; }
.cbox-t b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.16rem; letter-spacing: -.01em; }
.cbox-t small { display: block; margin-top: .12rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.cbox-chev { flex: none; color: var(--subtle); transition: transform .3s var(--ease), color .2s ease; }
.cbox.is-open .cbox-chev { transform: rotate(180deg); color: var(--org-bright); }
/* the height animation: a grid row from 1fr to 0fr, so nothing is measured
   and nothing jumps on a long section. */
.cbox-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.cbox.is-open .cbox-body { grid-template-rows: 1fr; }
.cbox-inner { overflow: hidden; min-height: 0; padding: 0 1.15rem; }
.cbox.is-open .cbox-inner { padding-bottom: 1.25rem; }
@media (prefers-reduced-motion: reduce) {
  .cbox-body { transition: none; }
  .cbox-chev { transition: none; }
}

.sub-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.1rem 0 .6rem; }
.sub-label .meta { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.stand-foot { margin-top: 1.4rem; font-size: .76rem; color: var(--faint); text-align: center; }

/* ---- my players -------------------------------------------------------- */
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem; }
.pcard {
  display: block; width: 100%; text-align: left; padding: .85rem .95rem;
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--line-hard); border-radius: var(--r);
  transition: transform .2s var(--ease), border-color .2s ease;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--org-soft); }
.pcard-top { display: flex; align-items: center; gap: .6rem; }
.pcard-id { flex: 1; min-width: 0; }
.pcard-id b { display: block; font-size: .95rem; }
.pcard-id small { display: block; font-size: .72rem; color: var(--subtle); }
.pcard-go { color: var(--org); flex: none; }
.pcard-stats { display: flex; gap: .5rem; margin-top: .75rem; }
.ps { flex: 1; text-align: center; padding: .45rem .2rem; border-radius: var(--r-sm); background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); }
.ps b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1; color: var(--org-bright); }
.ps small { display: block; margin-top: .2rem; font-size: .6rem; font-weight: 700; letter-spacing: .12em; color: var(--faint); }

.mp-empty { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: var(--r); background: rgba(255,200,97,.06); border: 1px dashed var(--line-hard); }
.mp-empty svg { color: var(--org); flex: none; margin-top: .15rem; }
.mp-empty b { display: block; font-size: .95rem; }
.mp-empty span { display: block; margin-top: .2rem; font-size: .84rem; color: var(--subtle); }

.mp-pickhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.3rem 0 .3rem; }
.mp-pickmeta { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.mp-pickhint { font-size: .82rem; color: var(--subtle); margin-bottom: .7rem; }
.mp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.mp-chip {
  display: flex; align-items: center; gap: .55rem; min-height: 52px; padding: .5rem .8rem; text-align: left;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.mp-chip:hover { border-color: var(--line-hard); transform: translateY(-1px); }
.mp-chip.on { background: var(--org-soft); border-color: var(--org); }
.mpc-b { flex: 1; min-width: 0; }
.mpc-n { display: block; font-size: .86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mpc-num { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; color: var(--faint); white-space: nowrap; }
.mpc-tick { flex: none; color: var(--subtle); display: grid; place-items: center; }
.mp-chip.on .mpc-tick { color: var(--org-bright); }
@media (prefers-reduced-motion: reduce) { .mp-chip, .pcard { transition: none; } .mp-chip:hover, .pcard:hover { transform: none; } }

/* ---- team standing ------------------------------------------------------ */
.rankc { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.rank-num { font-family: var(--serif); font-weight: 600; font-size: 4.4rem; line-height: .9; letter-spacing: -.03em; color: var(--org-bright); text-shadow: 0 8px 30px rgba(255,200,97,.24); }
.rank-num .rn-hash { font-size: 2rem; color: var(--org-deep); vertical-align: super; margin-right: .06em; }
.rank-meta { flex: 1; min-width: 210px; }
.rank-scope { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); }
.rank-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.rank-note { display: flex; gap: .45rem; align-items: flex-start; margin-top: .8rem; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.rank-note svg { color: var(--gold); flex: none; margin-top: .18rem; }
.mp-link { margin-top: 1rem; width: 100%; justify-content: center; gap: .5rem; }
.mp-ext { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-left: .3rem; }
.rank-upd { margin-top: .7rem; font-size: .74rem; color: var(--faint); }

/* ---- player stats table -------------------------------------------------- */
.stat-table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.st-row { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .6rem .8rem; border-top: 1px solid var(--line-soft); transition: background .18s ease; }
.st-row:first-child { border-top: 0; }
.st-head { background: rgba(255,255,255,.04); font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); }
button.st-row:hover { background: rgba(255,200,97,.06); }
.st-mine { background: rgba(255,200,97,.07); }
.st-p { flex: 1; min-width: 0; display: flex; align-items: center; gap: .45rem; }
.st-n { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-num { font-size: .68rem; font-weight: 700; color: var(--faint); white-space: nowrap; }
.st-tag { font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--org-bright); border: 1px solid var(--org-soft); border-radius: 999px; padding: .1rem .38rem; }
.st-v { flex: none; width: 3.1rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .92rem; }
.st-v { flex: none; width: 3.1rem; }
/* a 5-character stat label (PULLS) ran into the next column, so the head
   cells carry their own tighter tracking and a gutter. */
.st-head .st-v { font-size: .62rem; font-weight: 700; letter-spacing: .05em; padding-left: .4rem; }
.st-mine .st-v { color: var(--org-bright); }

/* ---- coaches' notes ------------------------------------------------------ */
.note-list { display: flex; flex-direction: column; gap: .6rem; }
.note-card { padding: .85rem .95rem; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.note-top { display: flex; align-items: center; gap: .5rem; font-size: .86rem; }
.note-when { margin-left: auto; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.note-text { margin-top: .5rem; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.note-about { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }

/* ---- synced to MaxPreps -------------------------------------------------- */
.syncc { padding: .2rem 0; }
.sync-state { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: 1rem; }
.sync-badge { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: #14110A; background: linear-gradient(135deg, var(--org-bright), var(--org)); border-radius: 999px; padding: .22rem .55rem; box-shadow: 0 6px 16px -8px var(--org-glow); }
.sync-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .5rem; margin-top: .9rem; }
.sync-row { padding: .55rem .7rem; border-radius: var(--r-sm); background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); }
.sync-row span { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sync-row b { display: block; margin-top: .18rem; font-size: .9rem; }
.sync-note { margin-top: .9rem; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.sync-honest { margin-top: .5rem; font-size: .78rem; color: var(--faint); }

/* ---- per-kid card -------------------------------------------------------- */
.kid-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.kid-id { flex: 1; min-width: 200px; }
.kid-kick { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); }
.kid-name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; margin: .2rem 0 .45rem; }
.kid-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.kid-follow { flex: none; }
.kid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin-bottom: 1.4rem; }
.kid-stats .stat { padding: 1.1rem .9rem; }
.kid-stats .stat .num { font-size: 2.4rem; color: var(--org-bright); }
.avatar.big { width: 58px; height: 58px; font-size: 1.15rem; flex: none; }

/* ---- the trend bars ------------------------------------------------------ */
.trend { display: flex; align-items: flex-end; gap: .6rem; height: 168px; padding-top: .6rem; }
.trend-col { flex: 0 1 110px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.trend-bar {
  position: relative; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--org-bright), var(--org-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -12px rgba(255,200,97,.6);
  display: flex; align-items: flex-start; justify-content: center;
}
.trend-bar span { font-size: .74rem; font-weight: 800; color: #17110A; padding-top: .2rem; }
.trend-lbl { margin-top: .45rem; font-size: .64rem; font-weight: 700; letter-spacing: .04em; color: var(--faint); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: no-preference) {
  .cbox.is-open .trend-bar { animation: trendRise .5s var(--ease) both; transform-origin: bottom; }
}
@keyframes trendRise { from { transform: scaleY(.05); opacity: .3; } to { transform: none; opacity: 1; } }

/* ---- the parent phone cut ------------------------------------------------ */
.ph-standings {
  display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; margin-top: .7rem; padding: .7rem .8rem;
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  border: 1px solid var(--line-hard); border-radius: var(--r); color: var(--org);
  transition: border-color .2s ease, transform .2s ease;
}
.ph-standings:hover { border-color: var(--org-soft); transform: translateY(-2px); }
.ph-standings .jtile { width: 42px; height: 42px; border-radius: 12px; }
.ph-standings .jtile .jgly { width: 22px; height: 22px; }
.phs-t { flex: 1; min-width: 0; color: var(--text); }
.phs-t b { display: block; font-size: .86rem; }
.phs-t small { display: block; font-size: .68rem; color: var(--subtle); }
.ph-stack { margin-top: .9rem; gap: .6rem; }
.ph-stack .cbox-head { padding: .7rem .8rem; min-height: 56px; gap: .7rem; }
.ph-stack .jtile { width: 42px; height: 42px; border-radius: 12px; }
.ph-stack .jtile .jgly { width: 22px; height: 22px; }
.ph-stack .cbox-t b { font-size: .95rem; }
.ph-stack .cbox-t small { font-size: .62rem; }
.ph-stack .cbox-inner { padding: 0 .8rem; }
.ph-stack .cbox.is-open .cbox-inner { padding-bottom: .9rem; }
.ph-stack .mp-grid, .ph-stack .mp-pick, .ph-stack .sync-rows { grid-template-columns: 1fr; }
.ph-stack .rank-num { font-size: 3.2rem; }
.ph-stack .trend { height: 130px; }
.ph-kidhead { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; }
.ph-kidstats { display: flex; gap: .5rem; margin-top: .9rem; }
.pks { flex: 1; text-align: center; padding: .55rem .2rem; border-radius: var(--r-sm); background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); }
.pks b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--org-bright); }
.pks small { display: block; margin-top: .2rem; font-size: .58rem; font-weight: 700; letter-spacing: .12em; color: var(--faint); }
@media (prefers-reduced-motion: reduce) { .ph-standings { transition: none; } .ph-standings:hover { transform: none; } }

/* ---- narrow phones -------------------------------------------------------- */
@media (max-width: 560px) {
  .cbox-head { padding: .8rem .9rem; gap: .75rem; }
  .jtile { width: 46px; height: 46px; border-radius: 13px; }
  .jtile .jgly { width: 24px; height: 24px; }
  .cbox-t b { font-size: 1.02rem; }
  .cbox-inner { padding: 0 .9rem; }
  .mp-pick { grid-template-columns: 1fr; }
  .mp-grid { grid-template-columns: 1fr; }
  .rank-num { font-size: 3.4rem; }
  .st-v { width: 2.3rem; font-size: .84rem; }
  .st-num { display: none; }
  .st-row { padding: .6rem .55rem; gap: .4rem; }
  .st-tag { font-size: .52rem; padding: .1rem .3rem; }
  .kid-stats { grid-template-columns: repeat(3, 1fr); }
  .kid-stats .stat { padding: .8rem .4rem; }
  .kid-stats .stat .num { font-size: 1.7rem; }
  .kid-stats .stat .lbl { font-size: .56rem; letter-spacing: .08em; }
  .kid-stats .stat .delta { display: none; }
}

/* ==========================================================================
   TEAM OPS  ·  the coverage board, the ladder, the ledger, the handbook
   The coach screen leads with red because an exception should look like one;
   everything covered collapses to a calm green line so the eye skips it.
   ========================================================================== */
.lens-switch { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.lens { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: 999px; border: 1px solid var(--line-hard);
  background: rgba(255,255,255,.03); color: var(--muted); font-size: .82rem; font-weight: 700; transition: transform .2s var(--ease), border-color .2s, color .2s, background .2s; }
.lens small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--faint); }
.lens svg { flex: none; }
.lens:hover { border-color: var(--org-soft); color: var(--text); transform: translateY(-2px); }
.lens.is-on { color: #2b1503; background: linear-gradient(180deg, var(--org-bright), var(--org-deep)); border-color: transparent; box-shadow: 0 8px 22px rgba(255,169,77,.28), inset 0 1px 0 rgba(255,255,255,.4); }
.lens.is-on small { color: rgba(43,21,3,.72); }
.lens-note { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--faint); max-width: 40ch; }
.lens-note svg { flex: none; color: var(--sky); }
.badge--warn { background: var(--rose) !important; color: #2a0b0b !important; }

/* the headline: how many things still need the coach */
.needs-head { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: var(--r-lg); margin-bottom: 1.1rem;
  background: linear-gradient(180deg, var(--panel-3), var(--panel)); border: 1px solid var(--line-hard); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.05); }
.needs-head.has-open { border-color: rgba(255,138,138,.4); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px rgba(255,138,138,.14); }
.needs-n { flex: none; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.has-open .needs-n { color: #2a0b0b; background: linear-gradient(180deg, #FFA7A7, var(--rose)); box-shadow: 0 10px 26px rgba(255,138,138,.3), inset 0 1px 0 rgba(255,255,255,.4); }
.all-clear .needs-n { color: #05301a; background: linear-gradient(180deg, #8DF3B6, var(--green)); box-shadow: 0 10px 26px rgba(87,224,138,.28), inset 0 1px 0 rgba(255,255,255,.4); }
.needs-head b { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; display: block; letter-spacing: -.01em; }
.needs-head small { display: block; margin-top: .2rem; color: var(--muted); font-size: .86rem; }

.needs-card { padding: 1.05rem 1.2rem; border-radius: var(--r-lg); margin-bottom: .9rem;
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid rgba(255,138,138,.28);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,.04); }
.needs-card.needs-decide { border-color: rgba(91,200,230,.3); }
.needs-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.needs-top b { font-family: var(--serif); font-weight: 600; font-size: 1.16rem; }
.needs-when { font-size: .76rem; color: var(--subtle); }
.needs-list { list-style: none; margin: .85rem 0 0; display: flex; flex-direction: column; gap: .5rem; }
.needs-list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.needs-list li b { color: var(--text); }
.nl-ic { flex: none; color: var(--rose); line-height: 1; padding-top: .1rem; }
.needs-detail { margin-top: .6rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.needs-ladder { margin-top: .8rem; padding: .65rem .8rem; border-radius: var(--r-sm); background: rgba(0,0,0,.2);
  border: 1px solid var(--line-soft); font-size: .82rem; color: var(--subtle); line-height: 1.5; }
.needs-ladder svg { color: var(--org); margin-right: .3rem; }
.needs-act { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }

.calm-list { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.1rem; }
.calm-row { display: flex; align-items: center; gap: .55rem; padding: .8rem 1rem; border-radius: var(--r);
  background: rgba(87,224,138,.06); border: 1px solid rgba(87,224,138,.2); font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.calm-row svg { flex: none; color: var(--green); }
.calm-row b { color: var(--text); }

/* ---- the working board --------------------------------------------------- */
.ops-stack { margin-top: .4rem; }
.cbox-lead { color: var(--muted); font-size: .92rem; line-height: 1.6; margin-bottom: 1rem; }
.cover-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .9rem; }
.cover-game { padding: .9rem 1rem 1rem; border-radius: var(--r); background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.cover-game.is-short { border-color: rgba(255,138,138,.3); background: rgba(255,138,138,.05); }
.cg-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding-bottom: .7rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); }
.cg-head b { font-weight: 750; font-size: .98rem; }
.cg-head span { font-size: .74rem; color: var(--subtle); }
.cg-role { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .45rem 0; border-bottom: 1px dashed var(--line-soft); }
.cg-role:last-of-type { border-bottom: none; }
.cgr-l { flex: 1; min-width: 8rem; font-size: .86rem; font-weight: 650; color: var(--text); }
.tr-flag { display: inline-block; margin-left: .35rem; font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .12rem .35rem; border-radius: 5px; color: #2b1503; background: linear-gradient(180deg, var(--org-bright), var(--org-deep)); }
.cgr-who { display: inline-flex; align-items: center; gap: .35rem; }
.cgr-n { font-size: .74rem; color: var(--subtle); }
.cg-role.is-short .cgr-n { color: var(--rose); font-weight: 700; }
.cg-role.is-full .cgr-n { color: var(--green); }
.cg-names { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.cg-name { font-size: .7rem; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); border-radius: 999px; padding: .2rem .5rem; }
.cg-name i { color: var(--faint); font-style: normal; }
.cg-none { font-size: .74rem; color: var(--faint); }

/* ---- the 2-week ladder --------------------------------------------------- */
.ladder-row { margin-bottom: 1rem; }
.lr-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.lr-head b { font-weight: 750; font-size: .94rem; }
.lr-head span { font-size: .74rem; color: var(--subtle); }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.lstep { position: relative; padding: .6rem .55rem; border-radius: var(--r-sm); background: rgba(255,255,255,.03);
  border: 1px solid var(--line-soft); text-align: center; }
.lstep b { display: block; font-size: .8rem; font-weight: 800; color: var(--subtle); font-variant-numeric: tabular-nums; }
.lstep small { display: block; margin-top: .2rem; font-size: .64rem; line-height: 1.35; color: var(--faint); }
.lstep .ls-dot { display: block; height: 14px; line-height: 1; }
.lstep.is-done { border-color: var(--org-soft); background: var(--org-soft); }
.lstep.is-done b { color: var(--org-bright); }
.lstep.is-clear { border-color: rgba(87,224,138,.25); background: rgba(87,224,138,.07); }
.lstep.is-clear b, .lstep.is-clear .ls-dot { color: var(--green); }
.lstep.is-now { border-color: rgba(255,138,138,.42); background: rgba(255,138,138,.1); }
.lstep.is-now b, .lstep.is-now .ls-dot { color: var(--rose); }
.ladder-log { margin-top: 1rem; padding: .8rem .9rem; border-radius: var(--r); background: rgba(0,0,0,.2); border: 1px solid var(--line-soft); }
.ll-head { display: flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin-bottom: .5rem; }
.ll-head svg { color: var(--org); }
.ll-row { font-size: .84rem; color: var(--muted); line-height: 1.55; padding: .3rem 0; }
.ll-row b { color: var(--org-bright); font-variant-numeric: tabular-nums; margin-right: .3rem; }
.ll-empty { color: var(--faint); }
.ll-foot { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line-soft); font-size: .74rem; color: var(--faint); }

/* ---- rides --------------------------------------------------------------- */
.ride-card { padding: .9rem 1rem; border-radius: var(--r); background: rgba(255,255,255,.025); border: 1px solid var(--line); margin-bottom: .8rem; }
.ride-card.is-short { border-color: rgba(255,138,138,.3); background: rgba(255,138,138,.05); }
.rc-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rc-head b { font-weight: 750; font-size: .98rem; }
.rc-head span { font-size: .74rem; color: var(--subtle); }
.rc-bar { height: 9px; border-radius: 999px; background: rgba(0,0,0,.3); overflow: hidden; margin: .7rem 0 .45rem; border: 1px solid var(--line-soft); }
.rc-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--org-deep), var(--org-bright)); }
.rc-nums { font-size: .82rem; color: var(--muted); }
.rc-nums b { color: var(--text); }
.rc-drivers { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.rc-driver { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--muted); background: rgba(255,255,255,.05);
  border: 1px solid var(--line-soft); border-radius: 999px; padding: .2rem .55rem .2rem .25rem; }
.rc-driver i { color: var(--faint); font-style: normal; }
.rc-un { margin-top: .6rem; font-size: .82rem; color: var(--rose); line-height: 1.5; }
.rc-un b { color: var(--text); }
.ride-card .btn { margin-top: .7rem; }

/* ---- the ledger ---------------------------------------------------------- */
.led-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .8rem; }
.led-tot > div { padding: .8rem .7rem; border-radius: var(--r-sm); background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); text-align: center; }
.led-tot b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1; color: var(--org-bright); }
.led-tot small { display: block; margin-top: .3rem; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.honest { display: flex; align-items: flex-start; gap: .55rem; padding: .7rem .85rem; border-radius: var(--r-sm);
  background: rgba(91,200,230,.08); border: 1px solid rgba(91,200,230,.24); font-size: .82rem; color: var(--muted); line-height: 1.55; margin-bottom: .9rem; }
.honest svg { flex: none; color: var(--sky); }
.honest b { color: var(--text); }
.led-list { display: flex; flex-direction: column; }
.led-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.led-row:last-child { border-bottom: none; }
.lr-main b { display: block; font-size: .92rem; font-weight: 700; }
.lr-main small { display: block; margin-top: .15rem; font-size: .74rem; color: var(--subtle); }
.led-tag { display: inline-block; margin-top: .35rem; font-size: .7rem; padding: .18rem .5rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); color: var(--subtle); }
.led-tag.led-owed { color: var(--gold); border-color: var(--gold-soft); background: var(--gold-soft); }
.led-tag.led-ok { color: var(--green); border-color: rgba(87,224,138,.25); background: rgba(87,224,138,.08); }
.lr-num { text-align: right; flex: none; }
.lr-num b { display: block; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1rem; }
.led-row.is-credit .lr-num b { color: var(--green); }
.led-row.is-debit .lr-num b { color: var(--rose); }
.lr-num small { display: block; font-size: .7rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.lr-num .btn { margin-top: .4rem; }

/* ---- stock --------------------------------------------------------------- */
.stock-list { display: flex; flex-direction: column; gap: .5rem; }
.stock-row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .6rem .8rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.stock-row.is-low { border-color: rgba(255,138,138,.3); background: rgba(255,138,138,.06); }
.sr-main { flex: 1; min-width: 8rem; }
.sr-main b { font-size: .9rem; font-weight: 700; }
.sr-main small { display: block; font-size: .74rem; color: var(--subtle); }
.sr-n { text-align: center; min-width: 3.2rem; }
.sr-n b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1; }
.stock-row.is-low .sr-n b { color: var(--rose); }
.sr-n small { font-size: .64rem; color: var(--faint); }

/* ---- the handbook -------------------------------------------------------- */
.hb-block { margin-bottom: 1.1rem; }
.hb-h { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--subtle); margin-bottom: .5rem; }
.hb-rows { display: flex; flex-direction: column; gap: .45rem; }
.hb-row { padding: .65rem .8rem; border-radius: var(--r-sm); background: rgba(255,255,255,.03); border: 1px solid var(--line-soft); }
.hb-row b { font-size: .9rem; font-weight: 700; }
.hb-row span { display: block; font-size: .74rem; color: var(--org-bright); margin-top: .1rem; }
.hb-row small { display: block; margin-top: .25rem; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.hb-empty { padding: 1.1rem; border-radius: var(--r); border: 1px dashed var(--line-hard); background: rgba(255,255,255,.02); text-align: center; }
.hb-empty b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.hb-empty span { display: block; margin: .35rem auto .8rem; max-width: 46ch; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.hb-form { margin-top: .7rem; padding: .9rem 1rem; border-radius: var(--r); background: rgba(0,0,0,.22); border: 1px solid var(--line-hard); }
.hb-form .btn { margin-right: .4rem; }
.handoff { padding: 1rem 1.1rem; border-radius: var(--r); background: linear-gradient(180deg, var(--panel-3), var(--panel)); border: 1px solid var(--line-hard); }
.ho-h { display: flex; align-items: center; gap: .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); margin-bottom: .5rem; }
.ho-h svg { color: var(--org); }
.handoff p { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: .8rem; }
.handoff p b { color: var(--text); }
.ho-log { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: .4rem; }
.ho-row { font-size: .82rem; color: var(--muted); line-height: 1.55; }
.ho-row svg { color: var(--green); margin-right: .25rem; }

/* ---- the parent's slice, on the phone ------------------------------------ */
.ph-opsrow { margin-bottom: .6rem; }
.ph-ops { display: flex; flex-direction: column; gap: .5rem; }
.pops { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--r-sm);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); }
.pops.is-mine { border-color: rgba(87,224,138,.25); background: rgba(87,224,138,.07); }
.pops.is-locked { opacity: .78; }
.pops-m { flex: 1; min-width: 0; }
.pops-m b { display: block; font-size: .88rem; font-weight: 700; }
.pops-m small { display: block; font-size: .72rem; color: var(--subtle); }
.pops-need { display: block; margin-top: .15rem; font-size: .7rem; color: var(--rose); font-weight: 650; }
.pops-lock { flex: none; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-soft); background: var(--gold-soft); border-radius: 999px; padding: .25rem .5rem; }

@media (max-width: 720px) {
  .led-tot { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .needs-head { padding: .9rem 1rem; gap: .8rem; }
  .needs-n { width: 50px; height: 50px; font-size: 1.6rem; border-radius: 15px; }
  .needs-head b { font-size: 1.12rem; }
  .lens { flex: 1 1 auto; justify-content: center; }
  .lens-note { font-size: .74rem; }
  .led-row { flex-direction: column; gap: .35rem; }
  .lr-num { text-align: left; }
  .cover-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .lens, .lens:hover { transition: none; transform: none; } }
.cg-role .btn { margin-left: auto; }
.cg-role.is-early .cgr-n { color: var(--faint); }

/* =========================================================================
   HONEST WEATHER LABEL
   The seeded forecasts and alerts are demo data. Nothing here calls a
   weather service, and no real weather office is quoted, so every surface
   that shows weather says so plainly.
   ========================================================================= */
.wx-demo-note { margin-top: .55rem; font-size: .68rem; font-weight: 600; letter-spacing: .01em; color: var(--subtle); }
.wx-demo-note--bar { margin: 0; padding: .4rem .9rem .55rem; border-top: 1px solid var(--line); opacity: .9; }
.ph-wxalert-note { display: block; margin-top: .2rem; font-size: .64rem; font-weight: 600; opacity: .78; }
.wx-none { border: 1px dashed var(--line-hard); border-radius: var(--r); padding: .95rem 1rem; color: var(--muted); font-size: .88rem; }

/* =========================================================================
   THE PARENT PHONE IS THEIRS TO ARRANGE
   Every home-screen section is a collapsible card that folds in place, and a
   parent can move any of them up or down. Two things carry real weight here:
   the count sits on the HEADER, outside the part that folds away, so a closed
   section can still say something happened; and the move controls are real
   buttons in an explicit Arrange mode, never a drag target, because this is a
   phone held in one hand.
   ========================================================================= */
.cbox-badge {
  flex: none; min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--org-bright), var(--org));
  color: #16110A; font-size: .72rem; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 4px 12px -4px rgba(255, 200, 97, .6), inset 0 1px 0 rgba(255,255,255,.4);
}
.ph-sections { display: grid; }
.ph-sec { display: block; }
.ph-sec.is-arranging .cbox { border-color: var(--org-soft); }
.ph-secctl {
  display: flex; align-items: center; gap: .4rem; padding: 0 .2rem .35rem;
}
.ph-secpos { flex: 1; font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ph-mv {
  display: inline-flex; align-items: center; gap: .25rem; padding: .34rem .58rem;
  min-height: 34px; border: 1px solid var(--line-hard); border-radius: 999px;
  background: var(--panel-2); color: var(--txt); font-size: .68rem; font-weight: 700;
  transition: border-color .18s ease, transform .18s ease, opacity .18s ease;
}
.ph-mv:hover { border-color: var(--org-soft); transform: translateY(-1px); }
.ph-mv:active { transform: translateY(0); }
.ph-mv[disabled] { opacity: .34; pointer-events: none; }
.ph-mv svg { color: var(--org-bright); }
.ph-mv[data-phmove$="up"] svg { transform: rotate(180deg); }
.ph-arrangebar { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; }
.ph-arrangetgl {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; min-height: 36px;
  border: 1px solid var(--line-hard); border-radius: 999px; background: var(--panel-2);
  color: var(--subtle); font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  transition: color .18s ease, border-color .18s ease;
}
.ph-arrangetgl svg { transform: rotate(-90deg); color: var(--subtle); transition: color .18s ease; }
.ph-arrangetgl:hover, .ph-arrangetgl.is-on { color: var(--org-bright); border-color: var(--org-soft); }
.ph-arrangetgl.is-on svg, .ph-arrangetgl:hover svg { color: var(--org-bright); }
.ph-arrangereset {
  padding: .4rem .7rem; min-height: 36px; border: 1px solid transparent; border-radius: 999px;
  color: var(--faint); font-size: .7rem; font-weight: 700;
}
.ph-arrangereset:hover { color: var(--txt); border-color: var(--line); }
.ph-arrangehint { margin-top: .5rem; font-size: .74rem; line-height: 1.5; color: var(--subtle); }
.ph-chat--peek { margin-top: .2rem; }
.ph-surveys { display: grid; gap: .5rem; }
.phsv {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2);
}
.phsv-m { flex: 1; min-width: 0; }
.phsv-m b { display: block; font-size: .86rem; line-height: 1.35; }
.phsv-m small { display: block; margin-top: .2rem; font-size: .66rem; font-weight: 600; color: var(--faint); }
@media (prefers-reduced-motion: reduce) {
  .ph-mv, .ph-arrangetgl { transition: none; }
  .ph-mv:hover { transform: none; }
}

/* ---- the honest pre-season ranking card ---------------------------------
   A program named for a real school shows no number until there is a real one.
   The card still teaches the concept, and still links out to the real public
   MaxPreps page, which is the only true number on the screen. */
.rankc--soon { align-items: flex-start; }
.rank-soon-t { margin-top: .5rem; font-size: 1.02rem; line-height: 1.4; }
.rank-soon-s { margin-top: .45rem; font-size: .88rem; line-height: 1.6; color: var(--muted); }
.sched-nores { margin-top: .8rem; font-size: .78rem; line-height: 1.55; color: var(--faint); }

/* ---- carpool alerts: who has your kid, never where they are ------------ */
.rc-seats, .rc-places { margin-top: .7rem; display: grid; gap: .45rem; }
.rc-seat, .rc-place { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); }
.rc-place { border-style: dashed; }
.rcs-m { flex: 1 1 12rem; min-width: 0; }
.rcs-m b { display: block; font-size: .9rem; }
.rcs-m small { display: block; color: var(--dim); font-size: .76rem; margin-top: .1rem; }
.rc-place span:first-child { flex: 1 1 12rem; font-size: .86rem; }
.rcs-move { display: flex; flex-wrap: wrap; gap: .35rem; }
.rcs-move i { color: var(--dim); font-size: .78rem; }
.ride-boundary { display: flex; gap: .6rem; align-items: flex-start; margin: .9rem 0 .2rem;
  padding: .75rem .85rem; border-radius: 14px; line-height: 1.55; font-size: .82rem;
  color: var(--dim); background: rgba(90,190,255,.07); border: 1px solid rgba(90,190,255,.22); }
.ride-boundary svg { flex: none; }
.ra-log { display: grid; gap: .5rem; }
.ra-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start;
  padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); }
.ra-row.is-change { border-color: rgba(255,200,97,.38); background: rgba(255,200,97,.07); }
.ra-m { flex: 1 1 15rem; min-width: 0; }
.ra-m b { font-size: .88rem; }
.ra-m small { display: block; color: var(--dim); font-size: .75rem; margin-top: .1rem; }
.ra-t { display: block; margin-top: .35rem; font-size: .84rem; line-height: 1.55; }
.ph-rides { display: grid; gap: .55rem; }
.phr { padding: .75rem .85rem; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.035); }
.phr.is-change { border-color: rgba(255,200,97,.42); background: rgba(255,200,97,.08); }
.phr-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.phr-when { color: var(--dim); font-size: .72rem; }
.phr-t { margin-top: .45rem; font-size: .87rem; line-height: 1.6; }
.phr .btn { margin-top: .6rem; width: 100%; }
.phr-ok { display: inline-flex; align-items: center; gap: .3rem; margin-top: .55rem;
  color: var(--green, #57E08A); font-size: .78rem; }

/* =======================================================================
   DIRECT MESSAGES  ·  the people directory + one to one threads
   The rows reuse .cust so the directory reads as the roster it comes from.
   The only genuinely new pieces are the safety line and the Direct tag.
   ======================================================================= */
.dm-list { display: grid; gap: .6rem; }
.dm-row { grid-template-columns: auto 1fr auto; text-align: left; width: 100%; font: inherit; color: inherit; }
button.dm-row, a.dm-row { cursor: pointer; }
a.dm-row { text-decoration: none; }
.dm-row > div { min-width: 0; }
.dm-row .who { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.dm-row .addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-row .btn { white-space: nowrap; }
.dm-msg { border-color: var(--org-soft); color: var(--org-bright); }
.dm-msg:hover { background: var(--org-soft); }
.dm-tag { margin-left: .45rem; color: var(--sky); border-color: var(--sky-soft); background: var(--sky-soft); vertical-align: middle; }

/* the line a parent reads exactly where the missing button would have been.
   It sits above the students, in the brand's own confident green, because
   this is a feature of the product and not an apology for one. */
.dm-safety {
  display: flex; gap: .7rem; align-items: flex-start;
  margin: 0 0 .9rem; padding: .95rem 1.05rem;
  border: 1px solid var(--green-soft); border-left: 3px solid var(--green);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(87,224,138,.09), rgba(87,224,138,.03));
  color: var(--text); font-size: .88rem; line-height: 1.55;
}
.dm-safety-ic { color: var(--green); flex: 0 0 auto; margin-top: .12rem; }

/* the second tab row under the rooms: who you talk to one to one */
.chat-tabs--dm { margin-top: -.4rem; align-items: center; }
.chat-tabs--dm .ct-lead { font-family: var(--mono, ui-monospace, "JetBrains Mono", monospace); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: .2rem; }
.chat-tab--dm { border-style: dashed; }
.chat-tab--ghost { color: var(--faint); border-style: dashed; }
.chat-tab .ct-n--new { background: var(--org-bright); color: #2b1503; }
.chat-room--direct { border-color: var(--sky-soft); }
.chat-room--direct .crh-name { display: flex; align-items: center; gap: .5rem; }

/* the phone cut: the same rows, tighter, and the directory scrolls */
.dm-list--phone { gap: .5rem; }
.dm-list--phone .dm-row { padding: .7rem .8rem; gap: .7rem; }
/* on a 390px screen the Direct tag wraps the name onto its own line, and the
   section is already headed "Your threads", so the tag earns nothing here. */
.dm-list--phone .dm-tag { display: none; }
.dm-list--phone .dm-row .who { flex-wrap: nowrap; }
.dm-dir { margin-top: .4rem; }
.dm-dir .section-label { margin: 1.4rem 0 .7rem; }
.dm-dir .dm-safety { font-size: .82rem; padding: .8rem .9rem; }
@media (max-width: 480px) {
  .dm-row { gap: .7rem; padding: .8rem .85rem; }
  .dm-row .btn { padding: .45rem .7rem; }
}

/* The People tab lengthens the nav. On a 1280px window the account cluster was
   already being pushed past the edge of the bar before it existed, so above the
   860px breakpoint the nav yields and scrolls inside itself rather than shoving
   the account button off the screen. */
@media (min-width: 861px) {
  .topbar-inner .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .topbar-inner .nav::-webkit-scrollbar { width: 0; height: 0; }
  .topbar-inner .nav a { flex: none; }
}
