/* Shell + shared components. Section-specific styles live in assets/css/sections/<name>.css */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #000;
  color: var(--shot-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Below 560px nothing else overrides body's background (the phone-frame, tablet and web blocks
   further down all do); #000 stays the dark default there, this is the one light counterpart. */
[data-theme="light"] body { background: var(--shot-background); }
/* .gallery-body (widgets.html only, docs/WIDGETS.md "Contrast rule"): the gallery page has no
   brand frame to keep dark, so the whole page goes light under Mixed, the same as full Light --
   tokens.css re-scopes [data-theme="mixed"] .gallery-body onto the same light token block #main
   uses; body's own `color: var(--shot-text)` above already follows that re-scope for free (an
   inherited property resolves against whatever custom-property scope is live), only `background`
   needed repeating here, mirroring the light-mode line immediately above. */
[data-theme="mixed"] .gallery-body { background: var(--shot-background); }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; line-height: 1.3; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--status-upcoming-text); }
.nav-item, .icon-btn, .logo-link, .sec-link, .card, .row, .btn, .pill, .tab, .quick-btn { text-decoration: none; }
a.card, a.row { color: inherit; }
img { max-width: 100%; display: block; }
/* The one shared focus-visible style for every interactive element in the app and the widget
   library, native and custom alike (button, a, input, [role=tab], [role=switch]...). Do not
   replace this with a per-widget outline; if an element needs its outline suppressed for a
   visual reason, give it its own :focus-visible override here instead of `outline: none` with
   nothing in its place (docs/A11Y.md finding 8). */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--shot-teal); color: #000; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: 8px; }
[hidden] { display: none !important; }

/* ---------- App frame ---------- */
.app {
  position: relative;
  max-width: var(--app-max);
  height: 100dvh;
  margin: 0 auto;
  background: var(--shot-background);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* clip, where supported, also stops script and focus from scrolling the frame (see app.js). */
  overflow: clip;
}
/* Phone frame: 560px up to the 768px tablet breakpoint only (docs/WIDGETS.md "Responsive layout").
   Below 768px the app is pixel-identical to the original single-breakpoint build; from 768px the
   frame is replaced by the tablet/web layouts below, so this rule must not also match there. */
@media (min-width: 560px) and (max-width: 767px) {
  /* The phone frame (.app) sits on --shot-background (#0A0A0A); body was plain #000, near-
     indistinguishable from it on a real screen (docs/UX-REVIEW-2.md item 29). A flat, neutral
     --shot-surface-light fill plus a crisp border gives the frame a visible edge, no gradient,
     per SHOTclubhouse/DESIGN.md. */
  body { padding: 16px 0; background: var(--shot-surface-light); }
  .app { height: min(900px, calc(100dvh - 32px)); border-radius: 28px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 50px rgba(0,0,0,.6); }
}

/* ---------- Top bar (never themed per section) ---------- */
/* Production StandardHeader (docs/PARITY-PARTICIPATION-2026-11-24.md Part 2, 3.1): a 72px band on
   --shot-chrome with a 1px bottom border and a light blur, a 32px logo on the left and, on the
   right in this order, the role pill, bell, Locker bag and a 40px avatar. */
.topbar {
  flex: none;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--shot-chrome);
  border-bottom: 1px solid var(--shot-chrome-border);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  z-index: 5;
}
@media (min-width: 431px) { .topbar { padding: 0 20px; } }
/* Social used a 56px bar until 27 Nov 2026; Liam: the bar jumping in size made Social look like a different app. One height everywhere. */
.topbar-left { display: flex; align-items: center; gap: 2px; min-height: 44px; min-width: 0; flex: 0 1 auto; }
.topbar-right { display: flex; align-items: center; gap: 2px; min-height: 44px; flex: none; margin-left: auto; }
.logo-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; flex: none; }
.topbar-logo { height: 32px; width: auto; }
/* Two marks, one shown (25 Nov 2026, Liam): the white-on-black logo bakes its own black tile, so
   on Light's pale top bar it read as a stray black block. Light shows the inverted Brand Library
   mark (D15: black text and frame, colour bars, transparent); Dark and Mixed, whose top bar
   stays dark, keep the original. */
.topbar-logo--on-light { display: none; }
[data-theme="light"] .topbar-logo--on-dark { display: none; }
[data-theme="light"] .topbar-logo--on-light { display: block; }
/* The role pill is the demo's "Viewing as" persona switcher, dressed as production's RoleSwitcherTopBar:
   44px minimum, an 8px role dot (coach teal, parent gold, athlete purple, others grey, roleConfig.ts:162),
   the role in 14px/500, a chevron. The label truncates at 6rem and goes below 360px, as production does. */
.role-pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 10px; flex: none;
  font-size: 14px; font-weight: 500; color: var(--shot-text);
}
.role-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--role-dot, #B3B3B3); flex: none; }
.role-pill[data-role="coach"] { --role-dot: #1ABC9C; }
.role-pill[data-role="parent"] { --role-dot: #F7B613; }
.role-pill[data-role="athlete"] { --role-dot: #6B00DB; }
.role-pill svg, .role-pill i { width: 14px; height: 14px; flex: none; color: var(--shot-nav-off); }
.role-pill-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 6rem; }
@media (max-width: 359px) { .role-pill-label { display: none; } }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--shot-text);
}
.icon-btn:hover { background: var(--shot-surface-hover); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot-unread { position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--shot-teal); border: 2px solid var(--shot-chrome); }
.icon-btn--bag { color: var(--shot-nav-off); }
/* Ask Alex (27 Nov 2026, Liam: Alex needs to be prominent on every page): in the top bar at every width and on every
   section, where the Locker bag used to sit; the bag now shows only with something in it. A teal ring marks Alex out. */
.topbar .icon-btn--alex { color: var(--status-upcoming-text); box-shadow: inset 0 0 0 1.5px var(--status-upcoming-text); }
.topbar .icon-btn--alex:hover { background: var(--shot-surface-hover); }
/* Messages is production's envelope (MessagesEnvelopeButton.tsx), after the bell, in Beta and Alpha, where team chat is on. Alex is not in
   production's top bar, so below 768px it waits in More (and the tablet and web layouts keep it). */
.icon-btn-soon { display: none; }
@media (max-width: 767px) { .topbar .icon-btn--extra, .topbar a[href="#/social/search"] { display: none; } }
/* Phones with Messages in the bar: the bar carries the logo, the mode pill, then role pill, bell, envelope, Locker bag and avatar, each
   target 44px. Below 431px the mode pill is a dot, the role pill drops its chevron and loses side padding (the dot and word stay,
   aria-label carries the rest), and the logo steps down a size, so nothing meets at 360, 375 or 390px. Live has no envelope, so it keeps the roomy bar. */
@media (max-width: 430px) {
  .topbar:has(.icon-btn--msg) { padding: 0 12px; }
  .topbar:has(.icon-btn--msg) .topbar-logo { height: 26px; }
  .topbar:has(.icon-btn--msg) .logo-link { min-width: 38px; }
  .topbar:has(.icon-btn--msg) .mode-pill { padding: 0 6px; min-width: 24px; }
  .topbar:has(.icon-btn--msg) .mode-pill svg, .topbar:has(.icon-btn--msg) .mode-pill i { display: none; }
  .topbar:has(.icon-btn--msg) .role-pill { padding: 0 4px; gap: 5px; }
  .topbar:has(.icon-btn--msg) .role-pill > svg, .topbar:has(.icon-btn--msg) .role-pill > i { display: none; }
  .topbar:has(.icon-btn--msg) .topbar-right { gap: 0; }
}
/* --shot-error-fill-text (tokens.css): white on this fill measured 3.76:1, short of the 4.5:1 AA
   floor (tools/contrast.mjs), pre-existing in every theme (the fill hue never changes by theme). */
.icon-btn .count-badge {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--shot-error); color: var(--shot-error-fill-text); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--shot-chrome);
}
/* Decorative text label for an icon-btn, shown only in the 1024px+ sidebar (see the responsive
   layout block at the end of this file); aria-hidden in the markup because aria-label already
   carries the accessible name at every width, so this never doubles up for assistive tech.
   Hidden (not just visually) below 1024px so it takes no part in the icon-btn's centring at
   every width the pixel-parity contract covers. */
.icon-btn-label { display: none; }
/* App view (27 Nov 2026): the way back to the phone frame, offered from 768px only (app.js appViewOffered). */
.icon-btn--appview { display: none; }
@media (min-width: 768px) { .topbar .icon-btn--appview { display: inline-flex; } }
/* Inside device.html's phone frame (view-init.js): no desktop scrollbars, as on a phone. */
.in-device, .in-device * { scrollbar-width: none; }
.in-device ::-webkit-scrollbar { display: none; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--shot-surface-light); color: var(--shot-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
/* Production's header avatar button: a 40px round image (StandardHeader.tsx). */
.topbar .avatar { width: 40px; height: 40px; }

/* ---------- Main scroll area ---------- */
/* background and color are the same var()s body/.app already paint (identical colour in Dark and
   Light, so no visual change there). Both exist so Mixed mode (docs/WIDGETS.md "Mixed mode") can
   re-scope the tokens to light on #main specifically: background because .app's own background
   would otherwise bleed through unchanged, and color because `color` is an inherited property --
   without #main re-declaring it, every descendant that doesn't set its own `color` would keep
   inheriting body's already-computed dark-theme white rather than re-resolving var(--shot-text)
   against #main's re-scoped value (re-scoping a custom property only changes what var() resolves
   to at that point in the tree; it does not retroactively change an inherited value a distant
   ancestor already computed).
   Keyed on #main as well as .main (docs/WIDGETS.md "Contrast rule"): tokens.css's Mixed-mode
   re-scope targets the #main *id*, so any page carrying that id inherits the fix even if it never
   picks up the .main class -- widgets.html's gallery previously had exactly that gap (bare
   <main id="main">, no class), which is why its Mixed cards rendered white text on white. */
.main, #main { background: var(--shot-background); color: var(--shot-text); }
.main { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* Home paints pure black under its cards in Dark (production Home.tsx:169 bg-black); Mixed and Light use the page canvas. */
#main:has(.clubhouse) { background: var(--shot-canvas-home); }
.main-inner { padding: 0 var(--s3) calc(var(--s8) + 8px); }

/* ---------- Bottom nav: member preferences apply across every section ---------- */
/* Production StandardFooter (Part 2, 3.2): --shot-chrome with a blur and a 1px top border, a 20px icon
   over a 10px semibold uppercase label, the active tab gold with a 24x2px gold indicator on its top edge.
   The Social slot between Perform and Pulse is the demo's own addition. */
.bottomnav {
  flex: none; height: var(--nav-h);
  display: grid; grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr)); align-items: center;
  background: var(--shot-chrome);
  border-top: 1px solid var(--shot-chrome-border);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  z-index: 5;
}
.nav-item {
  position: relative; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; color: var(--shot-nav-off); font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
}
.nav-item svg { width: 20px; height: 20px; }
/* A phone turned on its side has about 375px of height: the top bar and bottom nav give back space (every control stays 44px tall). */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1023px) {
  :root { --topbar-h: 48px; --nav-h: 44px; }
  .nav-item { flex-direction: row; gap: 6px; min-height: 44px; }
  .nav-item svg { width: 20px; height: 20px; }
}
.nav-item[aria-current="page"] { color: var(--status-past-text, var(--shot-gold, #F59E0B)); }
.nav-item[aria-current="page"]::before { content: ''; position: absolute; top: -1px; left: 50%; width: 24px; height: 2px; margin-left: -12px; background: var(--status-past-text, var(--shot-gold, #F59E0B)); }

/* ---------- Section header + tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 3;
  display: flex; gap: 4px; padding: var(--s2) var(--s3);
  margin: 0 calc(var(--s3) * -1) var(--s3);
  background: var(--shot-background);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
/* Chrome drops a scrolling flex row's end padding, so the last tab sat flush against the screen
   edge once scrolled. A spacer gives it the same gutter as the first tab. */
.tabs::after { content: ''; flex: 0 0 calc(var(--s3) - 4px); }
.tab {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-small);
  color: var(--shot-text-secondary); background: rgba(255,255,255,.05);
  transition: background var(--t-fast), box-shadow var(--t-fast);
}
/* Kept in step with .w-tab in widgets.css (docs/REAL-APP-SURFACES.md: LiveSportTabs.tsx). */
.tab:hover { background: rgba(255,255,255,.1); color: var(--shot-text); }
.tab[aria-selected="true"] { background: var(--shot-teal); color: #000; box-shadow: 0 8px 20px -6px rgba(26,188,156,.4); }
.tab[aria-selected="true"]:hover { background: var(--shot-teal); }
.tab .badge-tbc { margin-left: 6px; }

.picker {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: 48px; padding: 0 var(--s4); margin: var(--s3) 0;
  background: var(--shot-surface); border-radius: var(--r-md); box-shadow: var(--e-default);
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; text-align: left;
}
.picker small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--shot-text-muted); font-size: var(--fs-caption); }

/* ---------- Section label with accent edge ---------- */
.sec { margin-top: var(--s6); }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s2); }
.sec-label {
  font-family: var(--font-heading); font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em;
  padding-left: 10px; border-left: 3px solid var(--accent, var(--shot-teal));
}
.sec-link { font-size: 12px; font-weight: 600; color: var(--status-upcoming-text); min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.accent-teal { --accent: var(--shot-teal); }
.accent-purple { --accent: var(--shot-purple); }
.accent-gold { --accent: var(--shot-gold); }
.accent-green { --accent: var(--shot-success); }
.accent-red { --accent: var(--shot-error); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card-bg); border-radius: var(--r-lg); padding: var(--s4);
  box-shadow: var(--e-default);
}
.card + .card { margin-top: var(--s2); }
.card.tap {
  cursor: pointer; display: block; width: 100%; text-align: left;
  transition: transform var(--t-fast) var(--ease-standard), background var(--t-fast), box-shadow var(--t-fast) var(--ease-standard);
}
/* Kept in step with .w-card--tap in widgets.css (docs/REAL-APP-SURFACES.md: GenericScoreCard.tsx
   hover:shadow-xl hover:shadow-black/30, active:scale-[0.99]). */
.card.tap:hover { background: var(--shot-surface-hover); box-shadow: var(--e-elevated); }
@media (prefers-reduced-motion: no-preference) {
  .card.tap:hover { transform: translateY(-2px); }
  .card.tap:active { transform: scale(.98); }
}
.card-title { font-family: var(--font-heading); font-weight: 600; font-size: 14px; }
.card-meta { font-size: 12px; color: var(--shot-text-muted); margin-top: 2px; }
.card-kicker { font-size: var(--fs-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--shot-text-muted); margin-bottom: 6px; }
.edge-teal { border-left: 3px solid var(--shot-teal); }
.edge-gold { border-left: 3px solid var(--shot-gold); }
.edge-red { border-left: 3px solid var(--shot-error); }
.edge-green { border-left: 3px solid var(--shot-success); }
.edge-purple { border-left: 3px solid var(--shot-purple); }

/* Horizontal scroll row */
.hscroll {
  display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--s3) * -1); padding: 4px var(--s3) 10px; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { flex: none; width: 78%; scroll-snap-align: start; }
.hscroll.narrow > * { width: 46%; }
/* Reflows into a wrapped grid on web, same rule and reasoning as .w-hscroll in widgets.css. */
@media (min-width: 1024px) {
  .hscroll { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); overflow-x: visible; scroll-snap-type: none; margin: 0; padding: 4px 0 var(--s2); }
  .hscroll.narrow { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .hscroll > * { width: auto; scroll-snap-align: none; }
}

/* List rows */
.row {
  display: flex; align-items: center; gap: var(--s3); width: 100%; text-align: left;
  min-height: 56px; padding: var(--s2) 0; border-bottom: 1px solid var(--hairline);
}
.row:last-child { border-bottom: 0; }
button.row, a.row { cursor: pointer; border-radius: var(--r-sm); transition: background var(--t-fast); }
button.row:not(:disabled):hover, a.row:not([aria-disabled="true"]):hover { background: var(--shot-surface-hover); }
button.row:not(:disabled):active, a.row:not([aria-disabled="true"]):active { background: var(--shot-surface-hover); }
button.row[disabled], a.row[aria-disabled="true"] { cursor: not-allowed; }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { display: block; font-size: 12px; color: var(--shot-text-muted); }
.row-end { flex: none; color: var(--shot-text-muted); display: flex; align-items: center; gap: 6px; font-size: 12px; }
.row-end svg { width: 16px; height: 16px; }
/* A .row whose content stacks (a label above a control) instead of the usual left/right flex line
   -- currently just the "Viewing as" sheet's Appearance row (SHOT.w.themeSwitch). */
.row-appearance { display: block; }
.row-appearance .row-title { margin-bottom: var(--s2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-md);
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: .02em;
  transition: box-shadow var(--t-fast);
}
/* Kept in step with .w-btn in widgets.css (docs/REAL-APP-SURFACES.md: app-wide active:scale-*
   convention). */
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: scale(.97); } }
.btn svg { width: 18px; height: 18px; }
.btn-teal { background: var(--shot-teal); color: #000; box-shadow: 0 8px 20px -6px rgba(26,188,156,.45); }
.btn-purple { background: var(--shot-purple); color: #fff; box-shadow: 0 8px 20px -6px rgba(107,0,219,.45); }
/* Gold had no coloured CTA shadow (docs/REAL-APP-SURFACES.md: DESIGN.md §7.3 shadow-amber-500/30,
   kept in step with .w-btn--gold in widgets.css). */
.btn-gold { background: var(--shot-gold); color: #000; box-shadow: 0 8px 20px -6px rgba(247,182,19,.4); }
.btn-ghost { background: var(--shot-surface-light); color: var(--shot-text); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 12px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: var(--s2); margin-top: var(--s3); }
.btn-row > .btn { flex: 1; }
.btn[aria-pressed="true"].btn-ghost { background: var(--shot-teal); color: #000; }

/* Pills / chips / badges */
.pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: var(--s3); }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; min-height: 36px; padding: 0 14px; border-radius: var(--r-full);
  background: rgba(255,255,255,.05); color: var(--shot-text-secondary); font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; transition: background var(--t-fast);
}
/* Kept in step with .w-pill in widgets.css (docs/REAL-APP-SURFACES.md: LiveSportTabs.tsx). */
.pill:hover { background: rgba(255,255,255,.1); }
.pill[aria-pressed="true"] { background: var(--shot-surface-light); color: var(--shot-text); box-shadow: inset 0 0 0 1.5px var(--shot-teal); }
.pill svg { width: 14px; height: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-full);
  font-size: var(--fs-caption); font-weight: 700; letter-spacing: .03em; vertical-align: middle;
}
.badge-teal { background: rgba(26,188,156,.15); color: var(--status-upcoming-text); }
.badge-purple { background: rgba(107,0,219,.3); color: var(--accent-purple-text); }
.badge-gold { background: var(--shot-gold); color: #000; }
.badge-red { background: rgba(239,68,68,.15); color: var(--status-overdue-text); }
.badge-grey { background: var(--shot-surface-light); color: var(--shot-text-secondary); }
.badge-live { background: var(--shot-live); color: #fff; }

/* Dismiss control */
.dismiss { width: 44px; height: 44px; margin: -12px -12px 0 0; display: inline-flex; align-items: center; justify-content: center; color: var(--shot-text-muted); flex: none; }
.dismiss svg { width: 16px; height: 16px; }

/* Empty / notice states */
.empty { text-align: center; padding: var(--s6) var(--s4); color: var(--shot-text-muted); font-size: var(--fs-small); }
.empty svg { width: 32px; height: 32px; color: var(--status-upcoming-text); margin: 0 auto 8px; display: block; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: var(--s3); border-radius: var(--r-md); background: var(--shot-surface-light); font-size: 12px; color: var(--shot-text-secondary); }
.notice svg { flex: none; width: 18px; height: 18px; color: var(--status-past-text); }

/* Fixed sample calendar notice on Clubhouse and Perform */
.demo-calendar-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin: var(--s2) 0 var(--s3);
  border-radius: var(--r-full);
  background: var(--shot-surface-light);
  color: var(--shot-text-secondary);
  font-size: var(--fs-caption);
  font-weight: 600;
  line-height: 1.4;
}
.demo-calendar-notice svg, .demo-calendar-notice i {
  width: 14px;
  height: 14px;
  color: var(--status-upcoming-text);
  flex: none;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.stat { background: var(--shot-surface); border-radius: var(--r-lg); padding: var(--s3); box-shadow: var(--e-default); }
.stat-v { font-family: var(--font-heading); font-size: var(--fs-2xl); font-weight: 700; }
.stat-l { font-size: var(--fs-caption); color: var(--shot-text-muted); }

/* Quick actions */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); margin-top: var(--s3); }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 72px; font-size: var(--fs-caption); font-weight: 600; color: var(--shot-text-secondary); text-align: center; }
.quick-btn .q-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--shot-surface); box-shadow: var(--e-default); display: flex; align-items: center; justify-content: center; color: var(--status-upcoming-text); }
.quick-btn svg { width: 22px; height: 22px; }

/* Progress */
.bar { height: 6px; background: var(--shot-surface-light); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--shot-teal); border-radius: 3px; }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop {
  position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--t-base) var(--ease-standard);
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21;
  max-height: 88%; display: flex; flex-direction: column;
  background: var(--shot-surface-elevated); color: var(--shot-text);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  /* Hairline top edge (docs/REAL-APP-SURFACES.md: PulseSportSheet.tsx ring-1 ring-white/10) plus
     an upward-cast shadow -- a sheet rises from the bottom of the screen, so its shadow falls on
     the content above it, not below it (BottomSheetJourney.tsx: shadow-[0_-4px_24px_rgba(0,0,0,0.4)],
     --e-sheet in tokens.css). --e-deep stayed here previously and cast downward, the wrong
     direction for this surface. */
  box-shadow: inset 0 1px 0 var(--surface-card-border), var(--e-sheet); transform: translateY(100%);
  transition: transform var(--t-base) var(--ease-spring);
}
.sheet.open { transform: translateY(0); }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--shot-surface-light); margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s2) var(--s2) 0 var(--s4); flex: none; }
.sheet-title { font-size: 16px; font-weight: 700; }
/* background and color are the same var()s .sheet/body already paint (identical colour in Dark
   and Light, so no visual change there); both exist so Mixed mode (docs/WIDGETS.md "Mixed mode")
   can re-scope the tokens to light on .sheet-body specifically -- color for the same inherited-
   property reason #main needs its own declaration above -- while .sheet-head keeps showing the
   dark colour painted on .sheet itself underneath it. */
.sheet-body { overflow-y: auto; padding: var(--s3) var(--s4) var(--s6); background: var(--shot-surface-elevated); color: var(--shot-text); }
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-backdrop, .card.tap { transition: opacity var(--t-fast); }
}

/* Toast */
.toast {
  position: absolute; left: 50%; bottom: calc(var(--nav-h) + 12px); z-index: 30;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--shot-surface-light); color: var(--shot-text); padding: 10px 16px; border-radius: 12.75px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-small); font-weight: 600; box-shadow: var(--e-elevated);
  /* Long messages wrap inside the screen instead of running off both edges (5 Oct 2026). */
  width: max-content; max-width: min(24rem, calc(100% - 32px)); text-align: center;
  transition: opacity var(--t-base), transform var(--t-base) var(--ease-standard);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Form bits */
.field { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-md); border: 0; background: var(--shot-input); color: var(--shot-text); font: inherit; }
/* --shot-text-secondary: same fix and reasoning as .w-field::placeholder in widgets.css. */
.field::placeholder { color: var(--shot-placeholder); }
/* --shot-control-off: same fix as .w-switch in widgets.css, kept in step (docs/WIDGETS.md
   "Contrast rule"); unused by any current call site (SHOT.w.toggle's .w-switch is what actually
   renders) but left correct rather than a known-bad rule sitting unfixed next to its twin. */
.switch { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--shot-control-off); flex: none; transition: background var(--t-fast); }
/* Kept in step with .w-switch in widgets.css (docs/REAL-APP-SURFACES.md: ui/switch.tsx thumb
   shadow-lg). */
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform var(--t-fast) var(--ease-standard); }
/* --status-upcoming-text: same fix as .w-toggle-row[aria-checked="true"] .w-switch in
   widgets.css, kept in step. */
.switch[aria-checked="true"] { background: var(--status-upcoming-text); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

/* Stacked-card spacing must not offset cards laid out in a grid */
.grid-2 > .card, .reels-grid > .card, .pd-related > .card, [class*="grid"] > .card { margin-top: 0; }

/* The sheet close button never shrinks under a long title */
.sheet-head .icon-btn { flex: none; }
/* Full pages (SHOT.screen in app.js): a sticky header with Back and the title, so the way out
   never scrolls off the top. The negative margin runs it edge to edge across .main-inner's gutter. */
.pg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: var(--s1); margin: 0 calc(-1 * var(--s3)) var(--s3); padding: var(--s1) var(--s3) var(--s1) 0; background: var(--shot-background); border-bottom: 1px solid var(--shot-border); }
.pg-head .icon-btn { flex: none; }
.pg-title { font-size: var(--fs-xl); font-weight: 700; line-height: 1.25; min-width: 0; }
/* Header Back sits in the gutter with the title right beside it */
.sheet-head .sheet-title { flex: 1 1 auto; min-width: 0; }
.sheet-back { margin-left: -12px; }

/* =====================================================================================
   Responsive layout (docs/WIDGETS.md "Responsive layout"). Placed last on purpose: every
   selector below (.topbar, .icon-btn, .bottomnav, .nav-item, .main-inner,
   .sheet, .sheet-backdrop, .toast) already has an equal-specificity base rule earlier in this
   file, and CSS resolves equal-specificity conflicts by source order, not media-query position --
   an override declared *before* the rule it overrides would silently lose at the very breakpoints
   it exists for. Below 768px nothing here matches, so the app renders exactly as the un-touched
   base rules above (plus the existing 560-767px phone-frame block, also untouched apart from
   being scoped with max-width: 767px so it no longer bleeds into the ranges below).
   ===================================================================================== */

/* ---------- Tablet (768-1023px): full width, no phone frame, bottom nav kept, content in a
   comfortable centred column ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  body { padding: 0; background: var(--shot-background); }
  .app { max-width: none; height: 100dvh; border-radius: 0; border: 0; box-shadow: none; }
  .main-inner { max-width: var(--tablet-col); margin: 0 auto; }
}

/* ---------- Web (1024px+): full-page app, persistent left sidebar, bottom nav hidden, wide main
   area. The sidebar is the existing #topbar (logo, persona pill, Alex/Messages/bell/Profile)
   stacked directly above the existing #bottomnav (the four tabs), placed in the same CSS grid
   column via matching grid-area names -- no new DOM, both elements are simply restyled from a
   horizontal bar into a vertical column. ---------- */
@media (min-width: 1024px) {
  body { padding: 0; background: var(--shot-background); }
  .app {
    max-width: none; height: 100vh; border-radius: 0; border: 0; box-shadow: none; overflow: visible;
    display: grid; grid-template-columns: var(--sidebar-w) 1fr; grid-template-rows: auto 1fr;
    grid-template-areas: "sidebar-top main" "sidebar-nav main";
  }

  /* ---- sidebar: top half (logo, persona pill, top-bar icon buttons) ---- */
  .topbar {
    grid-area: sidebar-top; height: auto; flex-direction: column; align-items: stretch;
    gap: var(--s4); padding: var(--s4) var(--s2) var(--s2); background: var(--shot-chrome);
    border-right: 1px solid var(--shot-chrome-border); border-bottom: 0; box-shadow: none;
  }
  .topbar-left, .topbar-right { flex-direction: column; align-items: stretch; gap: var(--s2); min-height: 0; }
  .logo-link { justify-content: flex-start; padding: 0 var(--s3); }
  .role-pill { width: 100%; justify-content: flex-start; margin-left: 0; padding: 0 var(--s3); }
  .role-pill-label { max-width: none; }
  /* Scoped to .topbar .icon-btn, not the bare .icon-btn: the sheet close button is also an
     .icon-btn (#sheet-close), and an unscoped width: 100% here fed straight into its flex-basis
     (flex: none only fixes grow/shrink, not an explicit width), squeezing the sheet title into
     wrapping on every sheet, not just in the sidebar -- caught in visual QA before this shipped. */
  .topbar .icon-btn { width: 100%; height: 44px; border-radius: var(--r-md); justify-content: flex-start; gap: var(--s3); padding: 0 var(--s3); }
  /* Reads icon, label, count left to right ("bell, Notifications, 3") instead of the mobile
     corner-badge treatment, which only makes sense pinned to a small circular icon. */
  .icon-btn-label { display: inline; font-size: var(--fs-small); font-weight: 600; order: 1; }
  .topbar .icon-btn .count-badge { position: static; border: 0; order: 2; margin-left: auto; }
  .icon-btn-soon { display: inline; order: 2; margin-left: auto; font-size: 10px; font-weight: 600; line-height: 1; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--shot-text-secondary); color: var(--shot-text-secondary); }

  /* ---- sidebar: bottom half (the five tabs, now a vertical list, not a bottom bar) ---- */
  .bottomnav {
    grid-area: sidebar-nav; height: auto; display: flex; flex-direction: column; align-items: stretch;
    gap: 2px; padding: var(--s2); background: var(--shot-chrome);
    border-right: 1px solid var(--shot-chrome-border); border-top: 0; box-shadow: none;
  }
  .nav-item {
    flex-direction: row; justify-content: flex-start; gap: var(--s3); min-height: 44px;
    padding: 0 var(--s3); border-radius: var(--r-md); font-size: var(--fs-small);
  }
  .nav-item[aria-current="page"] { background: var(--shot-surface); }
  .nav-item[aria-current="page"]::before { display: none; }
  .nav-item { height: auto; letter-spacing: 0; }

  /* ---- main content ---- */
  .main { grid-area: main; }
  .main-inner { max-width: var(--web-max); margin: 0 auto; padding: var(--s6); }

  /* ---- sheets: a right-hand side panel instead of a bottom sheet stretched full width; focus
     trap and Escape are unchanged in app.js, neither depends on the sheet's position. Fixed
     positioning escapes .app's grid/overflow entirely, so the panel always spans the full
     viewport height regardless of the sidebar. ---- */
  .sheet-backdrop { position: fixed; }
  .sheet {
    position: fixed; left: auto; right: 0; top: 0; bottom: 0;
    width: min(480px, 92vw); max-height: none; height: 100vh;
    border-radius: 0; transform: translateX(100%);
    box-shadow: -20px 0 50px rgba(0,0,0,.5);
  }
  .sheet.open { transform: translateX(0); }
  .sheet-grip { display: none; } /* a drag-grip only makes sense on a bottom sheet */

.toast { position: fixed; bottom: var(--s6); }
}

/* ---------- Mode pill & Environment indicator ---------- */
.mode-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  margin-left: 4px; min-height: 32px; min-width: 32px; height: 32px; padding: 0 10px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer; border: 1px solid transparent; transition: all .15s ease;
  background: transparent;
}
.mode-pill .mode-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.mode-pill-live {
  background: rgba(26, 188, 156, 0.15);
  color: #1ABC9C;
  border-color: rgba(26, 188, 156, 0.35);
}
.mode-pill-live .mode-dot { background: #1ABC9C; box-shadow: 0 0 6px rgba(26, 188, 156, 0.6); }

.mode-pill-beta {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.35);
}
.mode-pill-beta .mode-dot { background: #F59E0B; box-shadow: 0 0 6px rgba(245, 158, 11, 0.6); }

.mode-pill-alpha {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border-color: rgba(168, 85, 247, 0.35);
}
.mode-pill-alpha .mode-dot { background: #C084FC; box-shadow: 0 0 6px rgba(168, 85, 247, 0.6); }

.mode-pill:hover { filter: brightness(1.15); }
.mode-pill { flex: none; }
@media (max-width: 430px) {
  .mode-pill { padding: 0 8px; margin-left: 0; }
  .mode-pill .mode-label { display: none; }
}
.mode-pill svg, .mode-pill i { width: 11px; height: 11px; margin-left: 2px; }

/* Mode selector sheet */
.mode-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; margin-bottom: 10px; border-radius: var(--r-md);
  background: var(--shot-surface); border: 1px solid var(--shot-border);
  text-align: left; width: 100%; cursor: pointer; transition: border-color .15s, background .15s;
}
.mode-card:hover { background: var(--shot-surface-hover); border-color: var(--shot-text-muted); }
.mode-card.is-active {
  border-color: var(--shot-teal);
  background: rgba(26, 188, 156, 0.08);
}
.mode-card-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; font-weight: 700; font-size: 13px;
}
.mode-badge-live { background: rgba(26, 188, 156, 0.2); color: #1ABC9C; }
.mode-badge-beta { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.mode-badge-alpha { background: rgba(168, 85, 247, 0.2); color: #C084FC; }

.mode-card-body { flex: 1 1 auto; min-width: 0; }
.mode-card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--shot-text); margin-bottom: 2px; }
.mode-card-desc { font-size: 12px; line-height: 1.4; color: var(--shot-text-muted); }
.mode-card-lock { flex: none; color: var(--shot-text-muted); padding-top: 2px; }
.mode-card-lock svg { width: 16px; height: 16px; }

/* ---------- Pulse BBSL PPV streaming suite (PR #4618-#4630) ---------- */
.pulse-ppv-card { margin-bottom: var(--s3); border-color: rgba(229, 169, 60, 0.35) !important; }
.pulse-ppv-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pulse-ppv-badge-row { display: flex; gap: 6px; align-items: center; }
.pulse-ppv-title { font-size: 16px; font-weight: 700; margin: 4px 0 2px 0; }
.pulse-ppv-sub { font-size: 13px; font-weight: 600; color: var(--status-upcoming-text, #1ABC9C); margin-bottom: 4px; }
.pulse-ppv-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; align-items: center; }
.pulse-ppv-price { font-size: 20px; font-weight: 800; color: var(--status-past-text, #E5A93C); }
.pulse-ppv-buy-row, .pulse-ppv-unlocked-row { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; gap: 8px; }
.ppv-player-container { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #050508; border-radius: 12px; overflow: hidden; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.ppv-mock-screen { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; background: #121218; }
.ppv-overlay-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: #fff; }
.ppv-live-tag { background: #E53935; color: #fff; padding: 2px 8px; border-radius: 4px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; letter-spacing: 0.05em; }
.ppv-viewers, .ppv-quality { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,0.55); padding: 2px 6px; border-radius: 4px; }
.ppv-screen-center { text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ppv-arena-graphic { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ppv-arena-graphic svg, .ppv-arena-graphic i { width: 36px; height: 36px; color: var(--gold, #E5A93C); opacity: 0.9; }
.ppv-arena-title { font-size: 14px; font-weight: 800; letter-spacing: 0.08em; color: #fff; margin: 0; text-transform: uppercase; }
.ppv-arena-matchup { font-size: 12px; color: rgba(255,255,255,0.8); margin: 0; }
.ppv-overlay-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: 10px; color: rgba(255,255,255,0.5); }
.ppv-stream-badge { background: rgba(0,0,0,0.65); padding: 2px 6px; border-radius: 4px; }
.ppv-watermark { font-family: ui-monospace, monospace; letter-spacing: 0.05em; }
.ppv-checkout-card { padding: 16px; margin-top: 12px; }
.ppv-checkout-price { font-size: 28px; font-weight: 800; color: var(--gold, #E5A93C); margin: 8px 0; }
.ppv-checkout-price span { font-size: 14px; font-weight: 500; color: var(--shot-text-muted); }
.ppv-bout-list { list-style: none; padding: 0; margin: 8px 0 0 0; font-size: 13px; line-height: 1.6; }
.ppv-bout-list li { padding: 4px 0; border-bottom: 1px solid var(--border-soft); }
.ppv-rights-note { font-size: 12px; color: var(--shot-text-muted); margin: 8px 0 12px 0; }

.ev-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.ev-toolbar-sub { flex: 1; min-width: 0; }
/* ---------- Alpha Mode Visionary Styling & Components ---------- */
html[data-mode="alpha"] .mode-pill-alpha {
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.45);
  border-color: #C084FC;
}

/* Alpha Glassmorphic Card Accents */
.alpha-card {
  position: relative;
  background: var(--shot-surface);
  border: 1px solid rgba(192, 132, 252, 0.25) !important;
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.alpha-card-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  background: rgba(168, 85, 247, 0.18); color: #C084FC;
  margin-bottom: 8px;
}

/* Alpha Match Momentum Visualizer */
.momentum-container {
  padding: 12px;
  background: var(--shot-surface-light);
  border-radius: var(--r-md);
  margin: 12px 0;
}
.momentum-bar-wrap {
  display: flex; height: 10px; border-radius: 5px; overflow: hidden;
  background: rgba(255, 255, 255, 0.08); margin: 8px 0;
}
.momentum-bar-home {
  background: #1ABC9C;
  transition: width 0.3s ease;
}
.momentum-bar-away {
  background: #E53935;
  transition: width 0.3s ease;
}
.momentum-labels {
  display: flex; justify-content: space-between; font-size: 11px; font-weight: 600;
  color: var(--shot-text-muted);
}

/* Alpha Match Stats Comparison */
.stat-comp-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid var(--shot-border);
  font-size: 13px;
}
.stat-comp-val { font-weight: 700; width: 44px; }
.stat-comp-label { flex: 1; text-align: center; color: var(--shot-text-muted); font-size: 12px; }
.stat-comp-bar {
  display: flex; height: 6px; width: 100%; border-radius: 3px;
  overflow: hidden; background: rgba(255, 255, 255, 0.08); margin-top: 4px;
}

/* Tactical Pitch Heatmap Overlay */
.pitch-heatmap-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  border-radius: var(--r-md); overflow: hidden;
}
.heatmap-zone {
  position: absolute; border-radius: 50%; filter: blur(14px); opacity: 0.55;
}
.heatmap-zone--high { background: rgba(239, 68, 68, 0.6); }
.heatmap-zone--med { background: rgba(245, 158, 11, 0.5); }
.heatmap-zone--build { background: rgba(26, 188, 156, 0.45); }

/* Tactical Balance Card */
.tactical-balance-card {
  padding: 10px 12px; background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2); border-radius: var(--r-md);
  margin: 10px 0; font-size: 12px;
}

/* Alpha Social Matchday Card */
.social-match-card {
  background: #0D0E12;
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: #fff;
  margin-bottom: 14px;
}
.social-match-teams {
  display: flex; align-items: center; justify-content: space-around;
  margin-bottom: 10px;
}
.social-match-crest {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; border: 2px solid rgba(255, 255, 255, 0.2);
  background: var(--shot-surface);
}
.social-match-score {
  font-size: 36px; font-weight: 800; letter-spacing: 2px;
  margin: 6px 0; color: #fff; font-family: var(--font-heading);
}

/* Alpha Carpool / Lift-Share Card */
.carpool-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: var(--shot-surface);
  border-radius: var(--r-md); border: 1px solid var(--shot-border);
  margin-bottom: 8px;
}

/* Wellness & Readiness */
.wellness-radar-card {
  display: flex; align-items: center; justify-content: space-around;
  padding: 14px; background: var(--shot-surface); border-radius: var(--r-md);
  border: 1px solid var(--shot-border); margin-bottom: 12px;
}
.wellness-metric { text-align: center; }
.wellness-metric-val { font-size: 22px; font-weight: 800; }
.wellness-metric-lbl { font-size: 11px; color: var(--shot-text-muted); text-transform: uppercase; margin-top: 2px; }

/* Route breadcrumbs and sub-navigation */
.route-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--s3);
  background: var(--shot-surface);
  border-bottom: 1px solid var(--shot-border);
  font-size: 12px;
  min-height: 40px;
  position: sticky;
  top: 0;
  z-index: 4;
}
.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  min-width: 0;
  flex: 1;
}
.breadcrumb-trail::-webkit-scrollbar { display: none; }
.breadcrumb-item {
  color: var(--shot-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  min-height: 36px;
  min-width: 36px;
  padding: 0 4px;
}
.breadcrumb-item:hover {
  color: var(--status-upcoming-text);
}
.breadcrumb-item svg, .breadcrumb-item i {
  width: 14px;
  height: 14px;
  color: var(--shot-text-muted);
}
.breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: var(--shot-text-muted);
  opacity: 0.6;
}
.breadcrumb-sep svg, .breadcrumb-sep i {
  width: 12px;
  height: 12px;
}
.breadcrumb-current {
  color: var(--shot-text);
  font-weight: 700;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--shot-surface-light);
  border: 1px solid var(--shot-border);
  color: var(--shot-text);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  cursor: pointer;
  flex: none;
  margin-left: 8px;
  min-height: 36px;
  min-width: 36px;
}
.breadcrumb-back-btn:hover {
  background: var(--shot-surface-hover);
  color: var(--status-upcoming-text);
}
.breadcrumb-back-btn svg, .breadcrumb-back-btn i {
  width: 13px;
  height: 13px;
}

/* ---------- Light mode overrides (docs/WIDGETS.md "Light mode") ----------
   .badge-purple's background is a 30%-alpha wash meant to blend into a near-black card; over a
   white/off-white card that same alpha reads as a solid pale lilac, which is too close to
   --accent-purple-text's own hue to hold 4.5:1 (verified ~4.3:1 at the unchanged alpha). Only the
   alpha needs to drop for light; the text colour already repoints to --accent-purple-text above. */
[data-theme="light"] .badge-purple { background: rgba(107,0,219,.12); }
/* .badge-purple never renders inside a Mixed-mode dark band, so it takes the same light fix as
   full Light rather than needing a band-scoped companion rule (contrast with .w-badge--live/
   .w-badge--purple below, which do appear inside one). */
[data-theme="mixed"] .badge-purple { background: rgba(107,0,219,.12); }

/* Mixed-mode dark hero bands (SHOT.w.band, .w-band) get their token re-scope from tokens.css and
   their own visible panel treatment plus badge overrides from widgets.css -- one CSS home for the
   band, docs/WIDGETS.md "Mixed mode". */

/* Hosted release notice (app.js "Hosted release notice"): one Refresh button, added to #app only
   when the hosted demo is newer than the open page. z-index 19 keeps it under the sheet (21) and
   backdrop (20), so it never covers the camera, editor or any open sheet; the toast (30) wins. */
.release-notice { flex: none; display: grid; place-items: center; z-index: 19; padding: var(--s1) var(--s3); }
.release-notice-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s4);
  border: 1px solid var(--shot-border); border-radius: var(--r-full);
  background: var(--shot-surface-light); color: var(--shot-text);
  font-size: var(--fs-small); font-weight: 600; box-shadow: var(--e-elevated);
}
@media (min-width: 1024px) {
  .release-notice { position: fixed; bottom: var(--s6); left: calc(var(--sidebar-w) + var(--s6)); padding: 0; }
}

/* Light only: the active tab is dark ink on a gold pill (gold text would need a brown tint). */
:root[data-theme="light"] .nav-item { isolation: isolate; }
:root[data-theme="light"] .nav-item[aria-current="page"] { color: var(--gold-ink); }
:root[data-theme="light"] .nav-item[aria-current="page"]::before {
  top: 7px; bottom: 7px; left: 3px; right: 3px; width: auto; height: auto; margin-left: 0; border-radius: var(--r-full);
  background: var(--gold-fill); z-index: -1;
}
