/* =========================================================================
   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; }
@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-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; } .team-switch::-webkit-scrollbar { display: none; } .ts-hint, .ts-lead { display: none; } .team-tab { flex: none; } }

/* 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
   ========================================================================= */
.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; }
.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); }
}
html, body { overflow-x: hidden; overflow-x: clip; }

