:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #020617;
  color: #f8fafc;
  --card: rgba(15, 23, 42, 0.86);
  --border: rgba(148, 163, 184, 0.16);
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --good: #34d399;
  --warn: #fbbf24;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% -10%, rgba(14, 165, 233, 0.28), transparent 34rem),
    radial-gradient(circle at 100% 25%, rgba(16, 185, 129, 0.12), transparent 30rem),
    #020617;
}

button, input, textarea { font: inherit; }

button {
  border: 0;
  border-radius: 12px;
  padding: 0.78rem 1rem;
  font-weight: 700;
  color: #001018;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  cursor: pointer;
}

button:disabled { opacity: 0.55; cursor: wait; }

button.secondary {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.75);
  border: 1px solid var(--border);
}

.shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(2rem, env(safe-area-inset-bottom));
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

h1 { font-size: clamp(2rem, 8vw, 3.25rem); margin: 0.15rem 0 0; letter-spacing: -0.045em; }
h2 { margin: 0; font-size: 1.1rem; }
p { line-height: 1.5; }
.subtitle { color: #cbd5e1; margin: 0.5rem 0 0; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.13em; margin: 0 0 0.3rem; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 0.82rem; margin-bottom: 0; }

.status-pill, .status-dot {
  flex: 0 0 auto;
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgba(51, 65, 85, 0.72);
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.utility-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.72);
}

.utility-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.25rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.62rem;
  color: #fff;
  background: #ef4444;
  border: 2px solid #020617;
}

.card {
  margin: 0.9rem 0;
  padding: 1rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.button-row { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.question-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.72);
  padding: 0.8rem 0.9rem;
  outline: none;
}

input:focus,
textarea:focus { border-color: rgba(56, 189, 248, 0.8); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }

textarea {
  resize: vertical;
}



.question-input-wrap {
  position: relative;
  min-width: 0;
}

.question-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  max-height: 19rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.35rem;
  background: #0f172a;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.question-suggestion {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  color: #e2e8f0;
  background: transparent;
  text-align: left;
}

.question-suggestion:hover,
.question-suggestion[aria-selected="true"] {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.13);
}

.question-suggestion strong {
  font-size: 0.9rem;
}

.question-suggestion span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: right;
}

.answer {
  white-space: pre-wrap;
  margin-top: 0.8rem;
  padding: 0.9rem;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(14, 165, 233, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.18);
  touch-action: pan-y;
}

.answer-feedback-status {
  margin: 0.38rem 0 0;
  color: #64748b;
  font-size: 0.7rem;
}

.answer-feedback-pending {
  border-color: rgba(251, 191, 36, 0.38);
}

.answer-feedback-sent {
  border-color: rgba(52, 211, 153, 0.34);
}

.board {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
  max-height: min(62vh, 34rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notice {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.notice h3 { margin: 0; font-size: 0.98rem; }
.notice p { margin: 0.38rem 0 0; white-space: pre-wrap; color: #cbd5e1; }
.notice time { display: block; margin-top: 0.55rem; color: #64748b; font-size: 0.75rem; }

.icon-button { padding: 0.45rem 0.7rem; color: #e2e8f0; background: rgba(51, 65, 85, 0.7); }
.dialog-actions { display: flex; gap: 0.45rem; }

footer {
  color: #64748b;
  font-size: 0.78rem;
  padding: 1.2rem 0;
}

.footer-install {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: #cbd5e1;
}

.footer-install strong {
  color: #e2e8f0;
  font-size: 0.88rem;
}

.footer-install p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.compact-button {
  flex: 0 0 auto;
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
}

a { color: #7dd3fc; }

dialog {
  width: min(92vw, 520px);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: #f8fafc;
  background: #0f172a;
}

dialog::backdrop { background: rgba(2, 6, 23, 0.78); }
dialog li { margin: 0.55rem 0; }

.notification-dialog {
  width: min(94vw, 620px);
  max-height: 82vh;
  padding: 0;
}

.dialog-shell { padding: 1rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 560px) {
  .hero { align-items: flex-start; }
  .hero-actions { flex-direction: row; align-items: center; flex-wrap: nowrap; }
  .footer-install { align-items: flex-start; flex-direction: column; }
  .question-row { grid-template-columns: 1fr; }
  .question-row button { width: 100%; }
}


.notification-push-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.notification-push-row strong {
  display: block;
  font-size: 0.92rem;
}

.switch-state {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 3rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.9);
  border: 1px solid var(--border);
  transition: background 160ms ease, opacity 160ms ease;
}

.switch-thumb {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 999px;
  background: #f8fafc;
  transition: transform 160ms ease;
}

.switch input:checked + .switch-track {
  background: var(--good);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(1.24rem);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid rgba(56, 189, 248, 0.28);
  outline-offset: 2px;
}

.switch input:disabled + .switch-track {
  opacity: 0.45;
  cursor: not-allowed;
}


.next-game-card {
  overflow: hidden;
}

.next-game-meta {
  margin: 0.75rem 0 0;
  color: #e2e8f0;
  font-weight: 600;
}

.next-game-location {
  margin: 0.35rem 0 0;
}

.next-game-actions {
  margin-top: 0.9rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 12px;
  padding: 0.78rem 1rem;
  color: #001018;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  font-weight: 700;
  text-decoration: none;
}

.notification-test-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.35rem;
  min-height: 1.25rem;
}

.notification-test-row .hint {
  margin: 0;
  font-size: 0.72rem;
}

.subtle-action {
  padding: 0.15rem 0;
  border-radius: 0;
  color: #64748b;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
}

.subtle-action:hover {
  color: #94a3b8;
}


.settings-dialog {
  width: min(92vw, 500px);
}

.settings-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.settings-form label {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
}

.settings-form .hint {
  margin: -0.25rem 0 0.1rem;
}

.privacy-note {
  margin: 1rem 0 0.65rem;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.45;
}


/* v5 dashboard */
:root {
  --surface: rgba(10, 17, 31, 0.82);
  --surface-strong: rgba(15, 24, 42, 0.96);
  --surface-soft: rgba(30, 41, 59, 0.55);
  --line: rgba(148, 163, 184, 0.14);
  --text-soft: #cbd5e1;
  --cyan: #67e8f9;
  --blue: #60a5fa;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(14, 165, 233, 0.22), transparent 30rem),
    radial-gradient(circle at 92% 16%, rgba(16, 185, 129, 0.13), transparent 26rem),
    linear-gradient(180deg, #06101f 0%, #020617 56%, #020617 100%);
}

.shell {
  width: min(900px, 100%);
  padding-inline: clamp(0.9rem, 3vw, 1.5rem);
}

.hero {
  align-items: center;
  padding: 1.05rem 0 0.45rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(186, 230, 253, 0.22);
  box-shadow:
    0 9px 26px rgba(0, 8, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.brand-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  letter-spacing: -0.045em;
}

.hero .subtitle {
  max-width: 32rem;
  margin-top: 0.16rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.hero .eyebrow {
  margin-bottom: 0.08rem;
  font-size: 0.61rem;
}

.hero-actions {
  align-self: center;
}

.utility-button {
  width: 2.6rem;
  height: 2.6rem;
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
}

.utility-button:active {
  transform: scale(0.96);
}

.system-line {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 1.3rem;
  margin: 0.1rem 0 0.65rem 3.65rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
}

.system-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.09);
}

.card {
  border-radius: 22px;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.15rem, 3vw, 1.5rem);
  background:
    radial-gradient(circle at 90% 0%, rgba(103, 232, 249, 0.18), transparent 19rem),
    linear-gradient(145deg, rgba(15, 36, 58, 0.94), rgba(10, 17, 31, 0.93));
  border-color: rgba(103, 232, 249, 0.2);
}

.spotlight-card::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: -4rem;
  bottom: -6rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.08);
  filter: blur(2px);
  pointer-events: none;
}

.spotlight-card h2 {
  max-width: 80%;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.spotlight-card .status-dot {
  background: rgba(103, 232, 249, 0.1);
  border-color: rgba(103, 232, 249, 0.2);
  color: #a5f3fc;
}

.next-game-meta {
  margin-top: 0.9rem;
  font-size: 0.94rem;
}

.next-game-location {
  max-width: 38rem;
  font-size: 0.84rem;
}

.next-game-weather {
  width: fit-content;
  margin-top: 0.75rem;
  padding: 0.48rem 0.68rem;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
}

.next-game-actions {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
}

.calendar-card {
  padding: clamp(1rem, 3vw, 1.3rem);
}

.calendar-heading {
  margin-bottom: 0.9rem;
}

.calendar-updated,
.ask-shortcut {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-day {
  position: relative;
  min-width: 0;
  min-height: 5.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  padding: 0.55rem 0.2rem 0.45rem;
  border-radius: 15px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: none;
}

.calendar-day[aria-selected="true"] {
  color: #f8fafc;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.16), rgba(30, 41, 59, 0.66));
  border-color: rgba(103, 232, 249, 0.36);
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.07);
}

.calendar-weekday {
  color: #64748b;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calendar-number {
  font-size: 1rem;
  line-height: 1.2;
}

.calendar-signal {
  height: 0.72rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
}

.calendar-signal.has-game {
  color: #67e8f9;
}

.calendar-mini-weather {
  margin-top: auto;
  color: #94a3b8;
  font-size: 0.61rem;
  white-space: nowrap;
}

.calendar-detail {
  margin-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding-top: 0.8rem;
}

.calendar-detail-heading {
  margin-bottom: 0.55rem;
}

.calendar-detail-heading h3 {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.calendar-empty {
  margin: 0.35rem 0;
  color: #64748b;
  font-size: 0.78rem;
}

.calendar-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.72rem 0;
}

.calendar-game + .calendar-game {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.calendar-game-main,
.calendar-game-side {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.calendar-game-main strong {
  font-size: 0.9rem;
  color: #f8fafc;
}

.calendar-game-main span,
.calendar-game-weather {
  color: #94a3b8;
  font-size: 0.73rem;
}

.calendar-game-side {
  align-items: flex-end;
  text-align: right;
}

.calendar-game-weather {
  color: #cbd5e1;
  font-weight: 600;
}

.calendar-directions {
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.weather-credit {
  margin: 0.7rem 0 0;
  color: #475569;
  font-size: 0.61rem;
}

.ask-card {
  padding: clamp(1rem, 3vw, 1.3rem);
}

.ask-card .question-row {
  margin-top: 0.75rem;
  padding: 0.32rem;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

.ask-card input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.72rem 0.76rem;
}

.ask-card input:focus {
  border: 0;
  box-shadow: none;
}

.ask-card .question-row > button {
  align-self: stretch;
  min-width: 4.4rem;
  border-radius: 12px;
}

.answer {
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.065);
}

.footer-install {
  border-radius: 16px;
  padding-inline: 0.8rem;
  background: rgba(15, 23, 42, 0.42);
}

dialog {
  border-radius: 22px;
  background: #0b1322;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

@media (max-width: 560px) {
  .shell {
    padding-inline: 0.85rem;
  }

  .hero {
    gap: 0.65rem;
  }

  .brand-mark {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 12px;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .hero .subtitle {
    display: none;
  }

  .system-line {
    margin-left: 3.25rem;
  }

  .calendar-grid {
    gap: 0.3rem;
  }

  .calendar-day {
    min-height: 4.75rem;
    border-radius: 13px;
    padding-inline: 0.08rem;
  }

  .calendar-mini-weather {
    font-size: 0.56rem;
  }

  .calendar-game {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .calendar-game-side {
    align-items: flex-start;
    text-align: left;
  }

  .ask-card .question-row {
    grid-template-columns: 1fr auto;
  }

  .ask-card .question-row button {
    width: auto;
  }
}


/* v5.1 liquid glass */
:root {
  --glass-fill: rgba(12, 22, 38, 0.46);
  --glass-fill-strong: rgba(15, 28, 47, 0.62);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --glass-shadow: rgba(0, 0, 0, 0.34);
  --glass-cyan: rgba(103, 232, 249, 0.2);
  --glass-blue: rgba(96, 165, 250, 0.16);
}

html {
  background: #020617;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 5%, rgba(56, 189, 248, 0.24), transparent 30rem),
    radial-gradient(circle at 88% 12%, rgba(45, 212, 191, 0.16), transparent 28rem),
    radial-gradient(circle at 55% 82%, rgba(99, 102, 241, 0.13), transparent 34rem),
    linear-gradient(180deg, #07111f 0%, #030817 52%, #020617 100%);
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.45;
  pointer-events: none;
}

body::before {
  top: 10%;
  left: -7rem;
  background: rgba(14, 165, 233, 0.28);
}

body::after {
  right: -8rem;
  bottom: 7%;
  background: rgba(45, 212, 191, 0.18);
}

.card,
.footer-install,
.question-suggestions,
dialog {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025) 34%, rgba(6, 12, 24, 0.18)),
    var(--glass-fill);
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 24px 70px var(--glass-shadow);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
}

.card {
  overflow: hidden;
}

.card::before,
dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 24%, transparent 70%, rgba(255, 255, 255, 0.035));
  pointer-events: none;
}

.card > *,
dialog > * {
  position: relative;
  z-index: 1;
}

.spotlight-card {
  background:
    radial-gradient(circle at 84% 8%, rgba(103, 232, 249, 0.24), transparent 18rem),
    radial-gradient(circle at 10% 110%, rgba(45, 212, 191, 0.14), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(10, 24, 42, 0.40)),
    rgba(8, 20, 36, 0.52);
  border-color: rgba(165, 243, 252, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 22px 68px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(103, 232, 249, 0.04);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.spotlight-card.spotlight-selected {
  border-color: rgba(103, 232, 249, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 24px 72px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(103, 232, 249, 0.08);
}

.utility-button,
.icon-button,
.button-link,
.secondary,
.question-row > button,
.settings-form button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(15, 23, 42, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

.button-link,
.question-row > button,
.settings-form button:not(.secondary) {
  color: #effcff;
  background:
    linear-gradient(145deg, rgba(125, 211, 252, 0.26), rgba(56, 189, 248, 0.12)),
    rgba(8, 47, 73, 0.48);
}

.utility-button:hover,
.icon-button:hover,
.calendar-day:not(:disabled):hover,
.calendar-game-choice:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background-color: rgba(30, 41, 59, 0.58);
}

.calendar-card,
.ask-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02)),
    rgba(9, 18, 32, 0.44);
}

.calendar-day {
  min-height: 5.2rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  backdrop-filter: blur(14px) saturate(155%);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.calendar-day:not(:disabled):active {
  transform: scale(0.97);
}

.calendar-day:disabled {
  cursor: default;
  opacity: 0.45;
}

.calendar-day[aria-selected="true"] {
  color: #f8fdff;
  background:
    radial-gradient(circle at 50% 0%, rgba(103, 232, 249, 0.18), transparent 75%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.12), rgba(56, 189, 248, 0.07)),
    rgba(9, 37, 58, 0.46);
  border-color: rgba(165, 243, 252, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    0 8px 24px rgba(2, 132, 199, 0.12);
}

.calendar-game-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.calendar-game-choice {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  padding: 0.52rem 0.72rem;
  border-radius: 999px;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(15, 23, 42, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.calendar-game-choice[aria-pressed="true"] {
  color: #ecfeff;
  border-color: rgba(103, 232, 249, 0.34);
  background: rgba(14, 116, 144, 0.20);
}

.calendar-game-choice strong {
  font-size: 0.72rem;
}

.calendar-game-choice span {
  color: #94a3b8;
  font-size: 0.66rem;
}

.ask-card .question-row {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
}

.question-suggestions {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(9, 18, 32, 0.76);
}

.notification-push-row,
.answer,
.next-game-weather {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(14, 165, 233, 0.07);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.switch-track {
  background: rgba(51, 65, 85, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.26);
}

.switch input:checked + .switch-track {
  background: rgba(34, 197, 94, 0.48);
  border-color: rgba(134, 239, 172, 0.34);
}

footer {
  opacity: 0.9;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card,
  .footer-install,
  .question-suggestions,
  dialog,
  .utility-button,
  .calendar-day,
  .calendar-game-choice {
    background-color: rgba(10, 18, 32, 0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-card,
  .calendar-day,
  .utility-button {
    transition: none;
  }
}

@media (max-width: 560px) {
  .card {
    border-radius: 20px;
  }

  .calendar-day {
    min-height: 4.85rem;
  }

  .calendar-game-picker {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .calendar-game-picker::-webkit-scrollbar {
    display: none;
  }

  .calendar-game-choice {
    flex: 0 0 auto;
  }
}


/* v5.1.1 typography system */
:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --type-caption: 0.6875rem;
  --type-small: 0.75rem;
  --type-meta: 0.8125rem;
  --type-body: 0.875rem;
  --type-body-strong: 0.9375rem;
  --type-control: 0.875rem;
  --type-section: 1.125rem;
}

html,
body,
button,
input,
textarea {
  font-family: var(--font-ui);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 1rem;
  line-height: 1.45;
}

h1,
h2,
h3,
p {
  font-family: inherit;
}

h1,
.hero h1 {
  font-size: clamp(1.625rem, 5vw, 2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--type-section);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.spotlight-card h2 {
  font-size: clamp(1.375rem, 5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

p {
  line-height: 1.45;
}

.eyebrow,
.hero .eyebrow {
  font-size: var(--type-caption);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.11em;
}

.hero .subtitle {
  font-size: var(--type-body);
  line-height: 1.4;
}

.brand-mark,
.status-pill,
.status-dot,
.system-line,
.calendar-updated,
.ask-shortcut,
.switch-state,
footer,
.compact-button,
.notification-test-row .hint,
.subtle-action,
.answer-feedback-status,
.privacy-note,
.notice time,
.question-suggestion span {
  font-size: var(--type-small);
}

.status-pill,
.status-dot,
.system-line,
.calendar-updated,
.ask-shortcut,
.switch-state {
  font-weight: 600;
}

.next-game-meta {
  font-size: var(--type-body-strong);
  font-weight: 600;
  line-height: 1.4;
}

.next-game-location,
.notice p,
.footer-install p {
  font-size: var(--type-body);
  line-height: 1.45;
}

.next-game-weather,
.settings-form label {
  font-size: var(--type-meta);
  font-weight: 600;
}

button,
.button-link,
.calendar-game-choice,
.question-suggestion {
  font-size: var(--type-control);
}

button,
.button-link {
  font-weight: 700;
}

input,
textarea {
  font-size: 1rem;
  line-height: 1.35;
}

.hint {
  font-size: var(--type-meta);
  line-height: 1.45;
}

.answer {
  font-size: var(--type-body-strong);
  line-height: 1.5;
}

.notice h3,
.footer-install strong,
.notification-push-row strong {
  font-size: var(--type-body-strong);
  font-weight: 700;
  line-height: 1.3;
}

.calendar-weekday,
.calendar-mini-weather,
.weather-credit,
.calendar-game-choice span {
  font-size: var(--type-caption);
  line-height: 1.2;
}

.calendar-weekday {
  font-weight: 700;
  letter-spacing: 0.055em;
}

.calendar-number {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
}

.calendar-signal {
  font-size: var(--type-small);
  font-weight: 800;
}

.calendar-game-choice strong {
  font-size: var(--type-small);
  font-weight: 700;
}

.icon-button {
  font-size: 1rem;
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .calendar-mini-weather {
    font-size: var(--type-caption);
  }
}


/* v5.1.3 live presence */
.system-line.is-live .system-dot {
  animation: ballerwatch-live-pulse 1.35s ease-in-out infinite;
}

.system-line.is-live #system-status {
  color: #86efac;
}

.system-line.is-offline .system-dot {
  animation: none;
  background: #fbbf24;
  box-shadow: none;
}

@keyframes ballerwatch-live-pulse {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.82);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.05);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow:
      0 0 0 4px rgba(52, 211, 153, 0.10),
      0 0 12px rgba(52, 211, 153, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-line.is-live .system-dot {
    animation-duration: 2.4s;
  }
}


/* v5.1.4 interaction polish */
.question-input-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ask-card .question-row {
  align-items: start;
}

.question-suggestions {
  position: static;
  z-index: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-height: min(14rem, 35vh);
  margin-top: 0.45rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.18);
}

.ask-card .question-row > button {
  align-self: start;
  min-height: 2.85rem;
}

.answer {
  touch-action: manipulation;
}

.answer.answer-feedback-sent {
  border-color: rgba(248, 113, 113, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(248, 113, 113, 0.05);
}

@media (max-width: 560px) {
  .question-suggestions {
    max-height: 12rem;
  }
}


/* v5.2 notification inbox and destination sharing */
.dialog-actions {
  align-items: center;
}

.push-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0 0.3rem 0 0.5rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
}

.push-compact .switch-state {
  margin: 0;
  min-width: 1.6rem;
  text-align: right;
  color: #cbd5e1;
}

.switch-compact .switch-track {
  width: 2.15rem;
  height: 1.28rem;
}

.switch-compact .switch-thumb {
  top: 0.13rem;
  left: 0.13rem;
  width: 0.9rem;
  height: 0.9rem;
}

.switch-compact input:checked + .switch-track .switch-thumb {
  transform: translateX(0.86rem);
}

.board {
  gap: 0.5rem;
}

.notice {
  position: relative;
  min-height: 4.7rem;
  max-height: 5.6rem;
  overflow: hidden;
  cursor: pointer;
  touch-action: pan-y;
  transition: transform 140ms ease, opacity 140ms ease, border-color 140ms ease;
}

.notice:active {
  transform: scale(0.985);
}

.notice.is-unread {
  border-color: rgba(103, 232, 249, 0.30);
  background:
    linear-gradient(145deg, rgba(103, 232, 249, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(2, 6, 23, 0.56);
}

.notice.is-unread::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  right: 0.75rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.10);
}

.notice h3 {
  overflow: hidden;
  padding-right: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice .notice-preview {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.28rem;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice time {
  margin-top: 0.35rem;
}

.notification-reader {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: #020617;
}

.notification-reader::backdrop {
  background: #020617;
}

.notification-reader-shell {
  width: min(760px, 100%);
  max-width: 100%;
  min-width: 0;
  min-height: 100dvh;
  box-sizing: border-box;
  margin: 0 auto;
  padding:
    max(1rem, env(safe-area-inset-top))
    1rem
    max(1.5rem, env(safe-area-inset-bottom));
}

.notification-reader-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  color: #cbd5e1;
  font-size: var(--type-small);
  font-weight: 700;
}

.notification-reader-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 1.25rem;
  padding: 1.15rem;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(9, 18, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.notification-reader-content h2 {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}

.notification-reader-content time {
  display: block;
  margin-top: 0.45rem;
  color: #64748b;
  font-size: var(--type-small);
}

.notification-reader-content p {
  max-width: 100%;
  min-width: 0;
  margin: 1rem 0 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #dbeafe;
  font-size: var(--type-body-strong);
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
  .notice {
    transition: none;
  }
}

@media (max-width: 560px) {
  .notification-dialog {
    width: min(96vw, 620px);
  }

  .dialog-actions {
    gap: 0.3rem;
  }

  .push-compact {
    gap: 0.25rem;
    padding-left: 0.4rem;
  }
}


/* v5.2.1 notification fit and swipe polish */
.notification-dialog {
  max-width: calc(100vw - 1rem);
  max-height: min(86dvh, 42rem);
  overflow: hidden;
}

.notification-dialog .dialog-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(86dvh, 42rem);
  overflow: hidden;
}

.notification-dialog .section-heading {
  flex: 0 0 auto;
  min-width: 0;
  gap: 0.55rem;
}

.notification-dialog .section-heading > div:first-child {
  min-width: 0;
}

.notification-dialog .section-heading h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-dialog .dialog-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.notification-dialog .board {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(54dvh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
}

.notification-test-row {
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.notification-test-row #test-notification-status {
  flex: 1 1 100%;
  min-width: 0;
}

.subtle-danger {
  color: #7f8a9c;
}

.subtle-danger:hover {
  color: #fca5a5;
}

.notice {
  transform: translateX(0);
  transition:
    transform 190ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 160ms ease,
    max-height 210ms ease,
    min-height 210ms ease,
    padding 210ms ease,
    margin 210ms ease,
    border-width 210ms ease,
    border-color 140ms ease;
  will-change: transform, opacity;
}

.notice.is-swiping {
  transition: none;
}

.notice.is-deleting {
  min-height: 0;
  max-height: 0;
  margin-top: -0.25rem;
  margin-bottom: -0.25rem;
  padding-top: 0;
  padding-bottom: 0;
  border-top-width: 0;
  border-bottom-width: 0;
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

@media (max-width: 560px) {
  .notification-dialog {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
    max-height: calc(100dvh - 0.75rem);
  }

  .notification-dialog .dialog-shell {
    max-height: calc(100dvh - 0.75rem);
    padding: 0.85rem;
  }

  .notification-dialog .board {
    max-height: 52dvh;
  }

  .notification-dialog .section-heading {
    gap: 0.4rem;
  }

  .push-compact {
    min-height: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice,
  .notice.is-deleting {
    transition: none;
  }
}


/* v5.3.3 connected-card carousel swipe */
.spotlight-carousel {
  --spotlight-train-gap: 12px;
  position: relative;
  margin: 0.9rem 0;
  overflow: hidden;
  border-radius: 24px;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

.spotlight-carousel .spotlight-card {
  width: 100%;
  height: var(--spotlight-card-height, auto);
  box-sizing: border-box;
  margin: 0;
  transform: translate3d(0, 0, 0);
}

.spotlight-measure-card {
  height: auto !important;
  min-height: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transform: none !important;
  transition: none !important;
}

.spotlight-carousel .spotlight-card.spotlight-train-card {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.spotlight-card.is-train-dragging {
  transition: none !important;
  will-change: transform;
}

.spotlight-card.is-train-settling {
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

html.spotlight-swipe-active,
html.spotlight-swipe-active body {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-card.is-train-settling {
    transition-duration: 1ms;
  }
}


/* v5.5 iPhone dashboard visual refresh */
:root {
  --v55-glass: rgba(22, 31, 49, 0.52);
  --v55-glass-strong: rgba(22, 31, 49, 0.70);
  --v55-line: rgba(255, 255, 255, 0.18);
  --v55-highlight: rgba(255, 255, 255, 0.25);
  --v55-blue: #2f8cff;
  --v55-green: #45e47c;
  --v55-shadow: rgba(1, 7, 18, 0.42);
}

body {
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 141, 92, 0.32), transparent 24rem),
    radial-gradient(circle at 20% 6%, rgba(95, 139, 218, 0.45), transparent 28rem),
    radial-gradient(circle at 88% 42%, rgba(224, 126, 87, 0.18), transparent 24rem),
    linear-gradient(180deg, #21314c 0%, #152236 24%, #0d1727 58%, #08121f 100%);
  background-attachment: fixed;
}

body::before {
  top: -5rem;
  left: -7rem;
  width: 25rem;
  height: 25rem;
  background: rgba(96, 165, 250, 0.28);
}

body::after {
  right: -7rem;
  bottom: 8%;
  width: 24rem;
  height: 24rem;
  background: rgba(251, 146, 60, 0.18);
}

.shell {
  width: min(720px, 100%);
  padding-inline: clamp(0.9rem, 3vw, 1.35rem);
}

.hero {
  padding: 1.55rem 0 0.35rem;
  align-items: center;
}

.brand-lockup {
  gap: 0;
}

.brand-mark,
.brand-lockup .eyebrow {
  display: none;
}

.hero h1,
h1 {
  font-size: clamp(2.45rem, 9vw, 3.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.hero .subtitle {
  display: block;
  margin-top: 0.42rem;
  color: rgba(239, 246, 255, 0.84);
  font-size: 1rem;
  font-weight: 500;
}

.hero-actions {
  gap: 0.65rem;
}

.utility-button {
  width: 3.15rem;
  height: 3.15rem;
  border-color: rgba(255, 255, 255, 0.20);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(70, 79, 102, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 30px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}

.utility-button svg {
  width: 1.45rem;
  height: 1.45rem;
  stroke-width: 1.7;
}

.notification-badge {
  top: 0.18rem;
  right: 0.16rem;
  border-color: rgba(31, 41, 55, 0.92);
}

.system-line {
  margin: 0.18rem 0 0.8rem;
  min-height: 1.2rem;
  color: rgba(203, 213, 225, 0.72);
}

.card,
.footer-install {
  border-radius: 30px;
  border-color: var(--v55-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.025) 38%, rgba(8, 15, 28, 0.12)),
    var(--v55-glass);
  box-shadow:
    inset 0 1px 0 var(--v55-highlight),
    0 26px 70px var(--v55-shadow);
  -webkit-backdrop-filter: blur(30px) saturate(185%);
  backdrop-filter: blur(30px) saturate(185%);
}

.spotlight-carousel {
  border-radius: 32px;
  margin: 0.75rem 0 1rem;
}

.spotlight-card {
  --spotlight-card-inset: clamp(1.35rem, 4vw, 1.8rem);
  min-height: 25rem;
  padding: var(--spotlight-card-inset);
  border-radius: 32px;
  border-color: rgba(255, 255, 255, 0.23);
  background:
    radial-gradient(circle at 88% 25%, rgba(255, 166, 104, 0.44), transparent 16rem),
    radial-gradient(circle at 72% 8%, rgba(120, 174, 255, 0.38), transparent 18rem),
    linear-gradient(100deg, rgba(8, 17, 30, 0.93) 0%, rgba(14, 25, 41, 0.76) 46%, rgba(57, 48, 55, 0.47) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 28px 80px rgba(0, 0, 0, 0.35);
}

.spotlight-card::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.15), transparent 27%, transparent 62%, rgba(255, 188, 139, 0.12)),
    linear-gradient(180deg, transparent 62%, rgba(5, 12, 22, 0.34));
}

.spotlight-card::after {
  width: 16rem;
  height: 8rem;
  right: -2rem;
  bottom: 4.9rem;
  border-radius: 60% 0 0 0;
  background:
    linear-gradient(178deg, transparent 0 40%, rgba(10, 20, 31, 0.42) 41% 48%, transparent 49%),
    linear-gradient(168deg, transparent 0 55%, rgba(8, 18, 28, 0.34) 56% 61%, transparent 62%);
  filter: none;
  opacity: 0.72;
}

.spotlight-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 9rem);
  grid-template-areas:
    "heading heading"
    "meta meta"
    "location weather"
    "capacity rsvp"
    "actions actions"
    "hint hint"
    "footer footer";
  grid-template-rows: auto auto auto auto auto 1fr auto;
  min-height: 21.5rem;
  column-gap: 1rem;
  align-items: end;
}

.spotlight-content .section-heading {
  grid-area: heading;
  align-items: flex-start;
}

.spotlight-card .eyebrow {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.spotlight-card h2 {
  max-width: 100%;
  margin-top: 0.36rem;
  font-size: clamp(2.2rem, 9vw, 3.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.spotlight-card .status-dot {
  margin-top: 0.05rem;
  color: rgba(240, 249, 255, 0.90);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.next-game-meta {
  grid-area: meta;
  margin: 1.05rem 0 0;
  color: #f8fafc;
  font-size: 1.12rem;
  font-weight: 700;
}

.next-game-location {
  grid-area: location;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0.7rem 0 0;
  color: rgba(241, 245, 249, 0.92);
  font-size: 1rem;
  font-weight: 700;
}

.next-game-location:not(:empty)::before {
  content: "⌖";
  flex: 0 0 auto;
  color: #dbeafe;
  font-size: 1.35rem;
  line-height: 1;
}

.next-game-capacity {
  grid-area: capacity;
  min-width: 0;
  margin-top: 0.95rem;
}

.next-game-capacity-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
}

.next-game-capacity-spots {
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.next-game-capacity-track {
  height: 0.48rem;
  margin-top: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.20);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.next-game-capacity-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #40dc77, #59e68c);
  box-shadow: 0 0 16px rgba(69, 228, 124, 0.24);
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.next-game-weather {
  grid-area: weather;
  align-self: center;
  justify-self: end;
  width: fit-content;
  max-width: 9rem;
  margin: 0;
  padding: 0.56rem 0.75rem;
  border-radius: 999px;
  color: #f8fafc;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.035)),
    rgba(78, 78, 93, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
}

.next-game-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.next-game-actions .button-link,
.next-game-actions button,
.next-game-rsvp-pill {
  width: 100%;
  min-height: 3.35rem;
  border-radius: 999px;
  color: #f8fafc;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(71, 85, 105, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 8px 22px rgba(0, 0, 0, 0.16);
}

.next-game-rsvp-pill {
  grid-area: rsvp;
  align-self: start;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  margin-top: 0.95rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
}

#next-game-directions::before {
  content: "➤";
  margin-right: 0.5rem;
}

#next-game-share::before {
  content: "⇧";
  margin-right: 0.5rem;
}

.next-game-hint {
  grid-area: hint;
}

.calendar-card,
.ask-card {
  padding: clamp(1.15rem, 4vw, 1.5rem);
}

.calendar-card .section-heading,
.ask-card .section-heading {
  align-items: flex-start;
}

.calendar-card h2,
.ask-card h2 {
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.calendar-card .eyebrow,
.ask-card .eyebrow {
  color: rgba(191, 219, 254, 0.72);
}

.calendar-updated,
.ask-shortcut {
  margin-top: 0.3rem;
  color: rgba(203, 213, 225, 0.64);
}

.calendar-grid {
  gap: 0.42rem;
}

.calendar-day {
  min-height: 5rem;
  padding: 0.58rem 0.16rem 0.45rem;
  border-radius: 17px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.015)),
    rgba(65, 77, 101, 0.28);
}

.calendar-day:disabled {
  opacity: 0.70;
}

.calendar-day[aria-selected="true"] {
  color: #fff;
  border-color: rgba(124, 190, 255, 0.75);
  background:
    linear-gradient(145deg, rgba(72, 161, 255, 0.98), rgba(29, 112, 246, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 8px 28px rgba(39, 125, 255, 0.30);
}

.calendar-weekday {
  color: rgba(203, 213, 225, 0.64);
  font-size: 0.64rem;
}

.calendar-number {
  font-size: 1.08rem;
}

.calendar-signal {
  height: 0.6rem;
  line-height: 0.55rem;
}

.calendar-signal.has-game {
  color: var(--v55-green);
  text-shadow: 0 0 12px rgba(69, 228, 124, 0.55);
}

.calendar-mini-weather {
  color: rgba(226, 232, 240, 0.66);
}

.calendar-game-choice {
  min-height: 2.45rem;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02)),
    rgba(56, 66, 88, 0.32);
}

.ask-card h2::before {
  content: "✦";
  display: inline-block;
  margin-right: 0.48rem;
  color: #5aa2ff;
  text-shadow: 0 0 18px rgba(90, 162, 255, 0.42);
}

.ask-card .question-row {
  align-items: center;
  padding: 0.34rem 0.36rem 0.34rem 0.62rem;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(79, 92, 117, 0.34);
  border-color: rgba(255, 255, 255, 0.18);
}

.ask-card input {
  min-height: 3.15rem;
  padding-left: 0.35rem;
}

.ask-card .question-row > button {
  width: 3.1rem;
  min-width: 3.1rem;
  min-height: 3.1rem;
  align-self: center;
  overflow: hidden;
  border-radius: 999px;
  padding: 0;
  font-size: 0;
  color: #fff;
  background: linear-gradient(145deg, #4a9cff, #2878ee);
}

.ask-card .question-row > button::before {
  content: "➤";
  font-size: 1.2rem;
}

.question-suggestions {
  border-radius: 20px;
}

.answer {
  margin-top: 0.85rem;
  border-radius: 20px;
  color: #eff6ff;
  background:
    linear-gradient(145deg, rgba(90, 162, 255, 0.12), rgba(255, 255, 255, 0.025)),
    rgba(64, 77, 101, 0.30);
  border-color: rgba(255, 255, 255, 0.14);
}

.notification-dialog {
  position: fixed;
  top: max(5.8rem, calc(env(safe-area-inset-top) + 4.8rem));
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: auto;
  left: auto;
  width: min(31rem, calc(100vw - 1.7rem));
  margin: 0;
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.20);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.025)),
    rgba(45, 51, 72, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 28px 80px rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(34px) saturate(185%);
  backdrop-filter: blur(34px) saturate(185%);
}

.notification-dialog::backdrop {
  background: rgba(4, 10, 20, 0.18);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.notice {
  min-height: 5.25rem;
  max-height: 6.2rem;
  padding: 0.85rem 0.85rem 0.85rem 3.75rem;
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(31, 41, 59, 0.30);
}

.notice::before {
  content: "✦";
  position: absolute;
  top: 0.95rem;
  left: 0.85rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #4a9cff, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.notification-reader {
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 142, 93, 0.16), transparent 28rem),
    linear-gradient(180deg, #18263d, #08121f);
}

.notification-reader-content {
  border-radius: 28px;
}

.settings-dialog,
#install-dialog {
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(25, 34, 52, 0.86);
  -webkit-backdrop-filter: blur(30px) saturate(175%);
  backdrop-filter: blur(30px) saturate(175%);
}

@media (max-width: 560px) {
  .shell {
    padding-inline: 0.8rem;
  }

  .hero {
    padding-top: 1.15rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.75rem);
  }

  .hero .subtitle {
    display: block;
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 0.45rem;
  }

  .utility-button {
    width: 2.85rem;
    height: 2.85rem;
  }

  .spotlight-card {
    min-height: 24rem;
    border-radius: 28px;
  }

  .spotlight-content {
    grid-template-columns: minmax(0, 1fr) minmax(6.4rem, 7.6rem);
    min-height: 20.9rem;
    column-gap: 0.7rem;
  }

  .spotlight-card h2 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .next-game-meta {
    font-size: 1rem;
  }

  .next-game-location {
    font-size: 0.9rem;
  }

  .next-game-weather {
    max-width: 7.6rem;
    padding: 0.5rem 0.64rem;
    font-size: 0.66rem;
  }

  .next-game-rsvp-pill {
    min-height: 2.65rem;
    padding: 0.5rem 0.65rem;
  }

  .next-game-capacity-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.1rem;
  }

  .next-game-actions {
    gap: 0.55rem;
  }

  .next-game-actions .button-link,
  .next-game-actions button {
    min-height: 3.15rem;
    padding-inline: 0.65rem;
  }

  .calendar-grid {
    gap: 0.28rem;
  }

  .calendar-day {
    min-height: 4.45rem;
    border-radius: 14px;
  }

  .calendar-weekday {
    font-size: 0.56rem;
  }

  .calendar-number {
    font-size: 0.98rem;
  }

  .calendar-mini-weather {
    font-size: 0.58rem;
  }

  .notification-dialog {
    top: max(5.2rem, calc(env(safe-area-inset-top) + 4.2rem));
    right: 0.45rem;
    width: calc(100vw - 0.9rem);
    max-width: calc(100vw - 0.9rem);
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .next-game-capacity-fill {
    transition: none;
  }
}


/* v5.6 feedback interaction polish */
.answer {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.answer-feedback-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.answer-feedback-status {
  flex: 1 1 12rem;
  margin: 0;
}

@media (max-width: 560px) {
  .answer-feedback-controls {
    align-items: flex-start;
  }
}


/* v5.6 autocomplete overlay */
.ask-card {
  position: relative;
  z-index: 4;
  overflow: visible;
}

.ask-card form {
  position: relative;
  z-index: 10;
}

.question-input-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.ask-card .question-row {
  align-items: center;
}

.question-suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.45rem);
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  max-height: min(18rem, 42vh);
  margin-top: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(20, 30, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 22px 56px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
}

.ask-card .question-row > button {
  align-self: center;
}

@media (max-width: 560px) {
  .question-suggestions {
    max-height: min(16rem, 38vh);
  }
}


/* v5.8 desktop carousel edge affordance + installed status glass */
.spotlight-edge-control {
  display: none;
}

.status-bar-glass {
  display: none;
}

html.is-standalone .status-bar-glass {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  height: calc(env(safe-area-inset-top) + 0.7rem);
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(7, 15, 27, 0.64) 0%,
      rgba(14, 25, 42, 0.42) 58%,
      rgba(14, 25, 42, 0.08) 100%
    );
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  backdrop-filter: blur(22px) saturate(175%);
}

.settings-recovery {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.settings-recovery summary {
  width: fit-content;
  color: rgba(203, 213, 225, 0.76);
  font-size: var(--type-small);
  font-weight: 700;
  cursor: pointer;
}

.settings-recovery[open] summary {
  margin-bottom: 0.7rem;
  color: #dbeafe;
}

.settings-divider {
  height: 1px;
  margin: 1.15rem 0;
  background: rgba(255, 255, 255, 0.10);
}

#owner-password-form {
  margin-top: 0;
}

@media (hover: hover) and (pointer: fine) {
  .spotlight-edge-control {
    position: absolute;
    z-index: 30;
    top: 0.35rem;
    bottom: 0.35rem;
    display: flex;
    align-items: center;
    width: min(5.5rem, 18%);
    padding: 0;
    border: 0;
    border-radius: 28px;
    color: rgba(248, 250, 252, 0.92);
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
  }

  .spotlight-edge-control::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 170ms ease;
    -webkit-backdrop-filter: blur(7px) saturate(150%);
    backdrop-filter: blur(7px) saturate(150%);
    pointer-events: none;
  }

  .spotlight-edge-previous {
    left: 0;
    justify-content: flex-start;
    padding-left: 0.7rem;
  }

  .spotlight-edge-next {
    top: 4.6rem;
    right: 0;
    justify-content: flex-end;
    padding-right: 0.7rem;
  }

  .spotlight-edge-previous::before {
    background: linear-gradient(
      90deg,
      rgba(125, 211, 252, 0.20) 0%,
      rgba(96, 165, 250, 0.08) 42%,
      transparent 100%
    );
    box-shadow: inset 14px 0 30px -24px rgba(191, 219, 254, 0.95);
  }

  .spotlight-edge-next::before {
    background: linear-gradient(
      270deg,
      rgba(125, 211, 252, 0.20) 0%,
      rgba(96, 165, 250, 0.08) 42%,
      transparent 100%
    );
    box-shadow: inset -14px 0 30px -24px rgba(191, 219, 254, 0.95);
  }

  .spotlight-edge-control span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.8rem;
    border: 0;
    border-radius: 0;
    opacity: 0;
    color: rgba(248, 250, 252, 0.96);
    background: transparent;
    box-shadow: none;
    text-shadow:
      0 0 10px rgba(191, 219, 254, 0.78),
      0 3px 14px rgba(0, 0, 0, 0.46);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    transform: translateX(0) scale(0.9);
    transition:
      opacity 150ms ease,
      transform 180ms ease,
      text-shadow 180ms ease;
  }

  .spotlight-edge-previous span {
    transform: translateX(-0.28rem) scale(0.9);
  }

  .spotlight-edge-next span {
    transform: translateX(0.28rem) scale(0.9);
  }

  .spotlight-edge-control:not(:disabled):hover::before,
  .spotlight-edge-control:not(:disabled):focus-visible::before {
    opacity: 1;
  }

  .spotlight-edge-control:not(:disabled):hover span,
  .spotlight-edge-control:not(:disabled):focus-visible span {
    opacity: 1;
    transform: translateX(0) scale(1);
    text-shadow:
      0 0 14px rgba(219, 234, 254, 0.95),
      0 0 30px rgba(59, 130, 246, 0.36),
      0 3px 14px rgba(0, 0, 0, 0.48);
  }

  .spotlight-edge-control:disabled {
    pointer-events: none;
  }

  .spotlight-edge-control:disabled::before,
  .spotlight-edge-control:disabled span {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-edge-control::before,
  .spotlight-edge-control span {
    transition: none;
  }
}



/* v6.0.3 calendar navigation, pickup RSVP, and install-card consistency */
.next-game-actions {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

#next-game-rsvp::before {
  content: "✓";
  margin-right: 0.5rem;
}

.pickup-rsvp-link {
  border-color: rgba(74, 222, 128, 0.34) !important;
  background:
    linear-gradient(145deg, rgba(74, 222, 128, 0.24), rgba(34, 197, 94, 0.08)),
    rgba(22, 101, 52, 0.28) !important;
}

.calendar-card {
  cursor: pointer;
}

.calendar-card .calendar-day,
.calendar-card .calendar-game-choice,
.calendar-card .calendar-expand-toggle {
  cursor: pointer;
}

.calendar-heading-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.calendar-expand-toggle {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(226, 232, 240, 0.9);
  background: rgba(51, 65, 85, 0.36);
  font-size: 0.72rem;
  font-weight: 700;
}

.calendar-card.is-expanded .calendar-grid {
  margin-top: 0.15rem;
}

.footer-install.card {
  margin: 0.9rem 0 1rem;
  padding: clamp(1.15rem, 4vw, 1.5rem);
  border: 1px solid var(--v55-line);
  border-radius: 30px;
  color: #cbd5e1;
}

.footer-install-copy {
  min-width: 0;
}

.footer-install .eyebrow {
  margin: 0 0 0.35rem;
  color: rgba(191, 219, 254, 0.72);
}

.footer-install strong {
  display: block;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.footer-install p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: rgba(203, 213, 225, 0.72);
  line-height: 1.55;
}

@media (max-width: 560px) {
  .calendar-heading {
    gap: 0.7rem;
  }

  .calendar-heading-actions {
    align-items: flex-end;
  }

  .calendar-updated {
    max-width: 8rem;
    text-align: right;
  }

  .footer-install.card {
    align-items: stretch;
  }

  .footer-install .compact-button {
    width: 100%;
  }
}


/* v6.0.5 portrait surfaces, card-only calendar expansion, RSVP state, and edge waterfall */
:root {
  --app-portrait-width: 430px;
}

.shell {
  width: min(var(--app-portrait-width), 100%);
}

.notification-dialog,
.settings-dialog,
#install-dialog {
  width: min(var(--app-portrait-width), calc(100vw - 1.25rem));
  max-width: min(var(--app-portrait-width), calc(100vw - 1.25rem));
}

.notification-dialog {
  top: max(5.2rem, calc(env(safe-area-inset-top) + 4.2rem));
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.notification-reader {
  width: min(var(--app-portrait-width), 100vw);
  max-width: var(--app-portrait-width);
  height: 100dvh;
  margin: 0 auto;
}

.notification-reader-shell {
  width: 100%;
  max-width: 100%;
}

.calendar-card .calendar-day,
.calendar-card .calendar-game-choice {
  cursor: pointer;
}

#next-game-rsvp::before {
  content: none;
}

.pickup-rsvp-link {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(71, 85, 105, 0.36) !important;
}

.pickup-rsvp-link.is-confirmed {
  border-color: rgba(74, 222, 128, 0.40) !important;
  background:
    linear-gradient(145deg, rgba(74, 222, 128, 0.26), rgba(34, 197, 94, 0.09)),
    rgba(22, 101, 52, 0.30) !important;
}

.pickup-rsvp-link.is-confirmed::before {
  content: "✓";
  margin-right: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .spotlight-edge-control {
    top: 0;
    bottom: 0;
    width: min(5.75rem, 20%);
    border-radius: 0;
  }

  .spotlight-edge-previous {
    left: 0;
    border-radius: 32px 0 0 32px;
  }

  .spotlight-edge-next {
    right: 0;
    border-radius: 0 32px 32px 0;
  }

  .spotlight-edge-control::before {
    opacity: var(--edge-opacity, 0.10);
    transition: opacity 90ms linear;
    -webkit-backdrop-filter: blur(13px) saturate(160%);
    backdrop-filter: blur(13px) saturate(160%);
  }

  .spotlight-edge-previous::before {
    background: linear-gradient(
      90deg,
      rgba(186, 230, 253, 0.30) 0%,
      rgba(125, 211, 252, 0.19) 18%,
      rgba(96, 165, 250, 0.09) 44%,
      rgba(96, 165, 250, 0.025) 68%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.86) 36%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.86) 36%, transparent 100%);
  }

  .spotlight-edge-next::before {
    background: linear-gradient(
      270deg,
      rgba(186, 230, 253, 0.30) 0%,
      rgba(125, 211, 252, 0.19) 18%,
      rgba(96, 165, 250, 0.09) 44%,
      rgba(96, 165, 250, 0.025) 68%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.86) 36%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.86) 36%, transparent 100%);
  }

  .spotlight-edge-control span,
  .spotlight-edge-control:not(:disabled):hover span,
  .spotlight-edge-control:not(:disabled):focus-visible span {
    opacity: var(--edge-arrow-opacity, 0);
  }
}

@media (max-width: 560px) {
  .notification-dialog,
  .settings-dialog,
  #install-dialog {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
  }

  .notification-dialog {
    right: auto;
    left: 50%;
  }
}


/* v6.0.6 wider web canvas, in-page utility surfaces, match freshness, copyright */
:root {
  --app-surface-width: 920px;
}

.shell {
  width: min(var(--app-surface-width), 100%);
}

.notification-dialog,
.settings-dialog,
.notification-reader {
  width: min(var(--app-surface-width), calc(100vw - 2rem));
  max-width: min(var(--app-surface-width), calc(100vw - 2rem));
}

.notification-dialog {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  max-height: min(86dvh, 48rem);
  transform: translate(-50%, -50%);
}

.notification-dialog .dialog-shell {
  max-height: min(86dvh, 48rem);
}

.settings-dialog {
  max-height: min(86dvh, 48rem);
}

.notification-reader {
  height: auto;
  max-height: min(86dvh, 48rem);
  margin: auto;
  padding: 0;
  overflow: hidden auto;
  border: 1px solid var(--v55-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 142, 93, 0.16), transparent 28rem),
    linear-gradient(180deg, rgba(24, 38, 61, 0.96), rgba(8, 18, 31, 0.96));
}

.notification-reader-shell {
  min-height: 0;
  max-height: min(86dvh, 48rem);
}

.notification-dialog::backdrop,
.settings-dialog::backdrop,
.notification-reader::backdrop {
  background: rgba(4, 10, 20, 0.20);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.match-update-credit {
  margin: 0.7rem 0 0;
  color: #64748b;
  font-size: var(--type-caption);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.calendar-update-credit {
  width: 100%;
  margin: 0.72rem 0 0;
  color: #475569;
  font-size: var(--type-caption);
  line-height: 1.2;
  opacity: 0.72;
  text-align: right;
}

.footer-links .copyright {
  color: #64748b;
  font-size: var(--type-caption);
}

.data-attribution {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28rem;
  margin-top: 0.42rem;
  color: #475569;
  font-size: var(--type-caption);
  line-height: 1.25;
}

.data-attribution a {
  color: #64748b;
}

@media (max-width: 640px) {
  .notification-dialog,
  .settings-dialog,
  .notification-reader {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
  }

  .notification-dialog {
    max-height: calc(100dvh - 0.75rem);
  }

  .notification-dialog .dialog-shell,
  .notification-reader-shell {
    max-height: calc(100dvh - 0.75rem);
  }
}


/* v6.1 multi-user settings */
.settings-account-summary {
  margin: 0.3rem 0 0.8rem;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
}

#owner-team-settings {
  display: grid;
  gap: 0.7rem;
}

.settings-subheading {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}

.settings-user-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.settings-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.45);
}

.settings-user-meta {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.settings-user-meta strong {
  color: #e2e8f0;
  font-size: 0.82rem;
}

.settings-user-meta span {
  color: #64748b;
  font-size: 0.7rem;
}


/* v6.2 hidden administrator match override editor */
.next-game-card {
  cursor: default;
}

.match-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.1rem;
}

.match-card-footer .match-update-credit {
  margin: 0;
  min-width: 0;
}

.match-override-dialog {
  width: min(34rem, calc(100vw - 1.25rem));
  max-width: min(34rem, calc(100vw - 1.25rem));
  max-height: min(86dvh, 44rem);
  margin: auto;
  padding: 0;
  overflow: hidden auto;
  box-sizing: border-box;
}

.match-override-dialog::backdrop {
  background: rgba(4, 10, 20, 0.20);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.match-override-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1rem, 4vw, 1.25rem);
  box-sizing: border-box;
}

.match-override-form,
.match-override-time-grid,
.match-override-time-grid > div {
  min-width: 0;
}

.match-override-form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.match-override-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.match-override-time-grid > div {
  display: grid;
  gap: 0.45rem;
}

.match-override-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: center;
}

.match-override-actions button {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
}

@media (max-width: 560px) {
  .match-override-dialog {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
  }

  .match-override-time-grid {
    grid-template-columns: 1fr;
  }

  .match-override-actions {
    grid-template-columns: 1fr;
  }
}


/* v6.3.2 in-app production promotion */
.release-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.release-status-row > div {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.release-status-row strong {
  color: #e2e8f0;
  font-size: 0.82rem;
}

.release-status-row span {
  color: #64748b;
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.release-status-row button {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .release-status-row {
    grid-template-columns: 1fr;
  }

  .release-status-row button {
    width: 100%;
  }
}


/* v6.4.1 touch-safe match actions and quieter freshness footer */
.match-card-menu-wrap {
  position: relative;
  flex: 0 0 auto;
  z-index: 8;
}

.match-card-menu-trigger.status-dot {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  margin: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}

.match-card-action-dialog {
  width: min(20rem, calc(100vw - 1.5rem));
  max-width: min(20rem, calc(100vw - 1.5rem));
  margin: auto;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 20px;
  color: #e2e8f0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)),
    rgba(8, 18, 31, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
}

.match-card-action-dialog::backdrop {
  background: rgba(2, 6, 23, 0.34);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.match-card-action-shell {
  padding: 1rem;
}

.match-card-action-shell h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.match-card-action-buttons {
  display: grid;
  gap: 0.55rem;
}

.match-card-action-buttons button {
  width: 100%;
  min-height: 2.75rem;
}

.match-card-action-buttons .match-card-menu-delete {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(127, 29, 29, 0.20);
}

.match-card-footer {
  grid-area: footer;
  align-self: end;
  display: block;
  margin-top: 1rem;
  padding-top: 0.68rem;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.match-card-footer .match-update-credit {
  margin: 0;
  color: #475569;
  font-size: 0.60rem;
  line-height: 1.15;
  opacity: 0.72;
  letter-spacing: 0.015em;
  text-align: right;
}

.deleted-match-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.deleted-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.75rem;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.38);
}

.deleted-match-meta {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.deleted-match-meta strong {
  color: #dbeafe;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.deleted-match-meta span {
  color: #64748b;
  font-size: 0.64rem;
  overflow-wrap: anywhere;
}


/* v7.0.1 top-icon navigation, soccer-pitch backdrop, and true card footer */
body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 2%, rgba(72, 187, 120, 0.20), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(56, 189, 248, 0.12), transparent 24rem),
    repeating-linear-gradient(
      90deg,
      rgba(34, 197, 94, 0.055) 0,
      rgba(34, 197, 94, 0.055) 12.5%,
      rgba(3, 20, 16, 0.08) 12.5%,
      rgba(3, 20, 16, 0.08) 25%
    ),
    linear-gradient(180deg, #123f2e 0%, #0c3327 34%, #08251f 68%, #061a18 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  z-index: 0;
  top: max(5.2rem, calc(env(safe-area-inset-top) + 4.4rem));
  right: clamp(0.75rem, 4vw, 3rem);
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.75rem));
  left: clamp(0.75rem, 4vw, 3rem);
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(
      circle at 50% 50%,
      transparent 0 8.9rem,
      rgba(220, 252, 231, 0.15) 9rem 9.12rem,
      transparent 9.22rem
    ),
    linear-gradient(
      180deg,
      transparent calc(50% - 0.7px),
      rgba(220, 252, 231, 0.18) calc(50% - 0.7px),
      rgba(220, 252, 231, 0.18) calc(50% + 0.7px),
      transparent calc(50% + 0.7px)
    );
  box-shadow: none;
  filter: none;
  opacity: 0.82;
  pointer-events: none;
}

body::after {
  z-index: 0;
  opacity: 0.18;
}

.shell {
  position: relative;
  z-index: 1;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.card,
.footer-install {
  border-color: rgba(226, 232, 240, 0.16);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.095),
      rgba(255, 255, 255, 0.018) 42%,
      rgba(2, 12, 10, 0.12)
    ),
    rgba(6, 18, 22, 0.57);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 60px rgba(0, 7, 6, 0.26);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  backdrop-filter: blur(24px) saturate(135%);
}

.spotlight-card {
  position: relative;
  background:
    radial-gradient(circle at 88% 18%, rgba(74, 222, 128, 0.15), transparent 17rem),
    radial-gradient(circle at 18% 2%, rgba(56, 189, 248, 0.12), transparent 18rem),
    linear-gradient(110deg, rgba(4, 16, 22, 0.72), rgba(8, 24, 28, 0.56) 52%, rgba(13, 39, 31, 0.46));
}

.calendar-card,
.ask-card,
.footer-install.card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.012)),
    rgba(5, 19, 22, 0.54);
}

.spotlight-content {
  position: relative;
  grid-template-areas:
    "heading heading"
    "meta meta"
    "location weather"
    "capacity rsvp"
    "actions actions"
    "hint hint";
  grid-template-rows: auto auto auto auto auto 1fr;
  padding-bottom: 2.2rem;
}

.match-card-footer {
  position: absolute;
  right: var(--spotlight-card-inset, clamp(1.35rem, 4vw, 1.8rem));
  bottom: 0.45rem;
  left: var(--spotlight-card-inset, clamp(1.35rem, 4vw, 1.8rem));
  display: block;
  min-height: 0;
  margin: 0;
  padding-top: 0.42rem;
  border-top: 0;
  pointer-events: none;
}

.match-card-footer .match-update-credit {
  margin: 0;
  color: rgba(148, 163, 184, 0.46);
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1.1;
  opacity: 1;
  text-align: right;
}

.notification-dialog,
.settings-dialog {
  width: min(var(--app-surface-width), calc(100vw - 2rem));
  max-width: min(var(--app-surface-width), calc(100vw - 2rem));
  margin: auto;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(6, 18, 22, 0.88);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  backdrop-filter: blur(30px) saturate(145%);
}

.notification-dialog {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  max-height: min(86dvh, 48rem);
  transform: translate(-50%, -50%);
}

.notification-dialog .dialog-shell,
.settings-dialog .dialog-shell {
  max-height: min(86dvh, 48rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.notification-dialog::backdrop,
.settings-dialog::backdrop {
  background: rgba(2, 12, 10, 0.32);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0.75rem 0;
}

.notification-filters {
  display: flex;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.notification-filters::-webkit-scrollbar {
  display: none;
}

.notification-filter {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.3rem 0.68rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--muted);
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 700;
}

.notification-filter.is-active {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(34, 197, 94, 0.13);
  color: #dcfce7;
}

.notification-preferences {
  margin: 0.2rem 0 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(3, 18, 15, 0.20);
}

.notification-preferences.is-local-only {
  opacity: 0.72;
}

.notification-preferences-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.notification-preferences-heading strong {
  font-size: 0.82rem;
}

.notification-preferences-heading .hint {
  margin: 0;
  text-align: right;
}

.notification-preference-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.notification-preference-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 2rem;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: rgba(2, 14, 12, 0.42);
  color: var(--text);
  font-size: 0.76rem;
}

.notification-preference-options input {
  accent-color: #4ade80;
}

.notice-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.notice-heading h3 {
  min-width: 0;
}

.notice-channel {
  flex: 0 0 auto;
  padding: 0.18rem 0.44rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.10);
  color: #bbf7d0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: capitalize;
}

@media (max-width: 560px) {
  body::before {
    top: max(4.5rem, calc(env(safe-area-inset-top) + 3.8rem));
    right: 0.45rem;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    left: 0.45rem;
    border-radius: 0;
  }

  .notification-dialog,
  .settings-dialog {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
    border-radius: 24px;
  }

  .notification-dialog {
    max-height: calc(100dvh - 0.75rem);
  }

  .notification-dialog .dialog-shell,
  .settings-dialog .dialog-shell {
    max-height: calc(100dvh - 0.75rem);
  }

  .notification-toolbar,
  .notification-preferences-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-preferences-heading .hint {
    text-align: left;
  }
}


/* v7.0.8 notification-row and calendar freshness polish */
.notification-preference-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.notification-preference-options label {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: 0.38rem;
  white-space: nowrap;
}

.calendar-card {
  --calendar-card-inset: clamp(1.15rem, 4vw, 1.5rem);
  position: relative;
  padding: var(--calendar-card-inset);
  padding-bottom: calc(var(--calendar-card-inset) + 1.55rem);
}

.calendar-card-footer {
  position: absolute;
  right: var(--calendar-card-inset);
  bottom: 0.42rem;
  left: var(--calendar-card-inset);
  min-height: 0;
  margin: 0;
  padding-top: 0.34rem;
  border-top: 0;
  pointer-events: none;
}

.calendar-card-footer .calendar-update-credit {
  width: auto;
  max-width: none;
  margin: 0;
  color: rgba(148, 163, 184, 0.46);
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.015em;
  opacity: 1;
  text-align: right;
}

@media (max-width: 560px) {
  .notification-preference-options {
    gap: 0.32rem;
  }

  .notification-preference-options label {
    gap: 0.3rem;
    padding-inline: 0.28rem;
    font-size: 0.70rem;
  }
}


/* v7.0.12 cinematic launch + local music control */
.launch-intro[hidden] {
  display: none;
}

html.launch-intro-pending .launch-intro {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.launch-intro {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(34, 197, 94, 0.18), transparent 24rem),
    radial-gradient(circle at 50% 52%, rgba(16, 185, 129, 0.10), transparent 38rem),
    linear-gradient(180deg, #020b09 0%, #04150f 42%, #020806 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms ease, visibility 360ms ease;
  pointer-events: none;
}

.launch-intro.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.launch-intro.is-exiting {
  opacity: 0;
  visibility: hidden;
}

.launch-intro-stage {
  position: relative;
  width: min(92vw, 54rem);
  height: min(42vh, 20rem);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.launch-intro-stage::before,
.launch-intro-stage::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: 50%;
  width: 115vw;
  height: 1px;
  transform: translateX(-50%) scaleX(0.05);
  transform-origin: center;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(74, 222, 128, 0.08) 22%,
    rgba(134, 239, 172, 0.9) 50%,
    rgba(74, 222, 128, 0.08) 78%,
    transparent 100%
  );
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.55);
  animation: ballerwatch-intro-line 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.launch-intro-stage::before {
  top: 42%;
}

.launch-intro-stage::after {
  top: 59%;
  animation-delay: 90ms;
}

.launch-intro-beam {
  position: absolute;
  z-index: -1;
  top: -30%;
  width: 22%;
  height: 160%;
  border-radius: 50%;
  opacity: 0;
  filter: blur(22px);
  transform: rotate(18deg) translateY(16%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(34, 197, 94, 0.42) 32%,
    rgba(16, 185, 129, 0.18) 66%,
    transparent
  );
  animation: ballerwatch-intro-beam 1.7s ease-out forwards;
}

.launch-intro-beam-a {
  left: 16%;
  animation-delay: 80ms;
}

.launch-intro-beam-b {
  left: 40%;
  width: 16%;
  animation-delay: 170ms;
}

.launch-intro-beam-c {
  right: 12%;
  animation-delay: 260ms;
}

.launch-intro-word {
  position: relative;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.86);
  animation: ballerwatch-intro-word 1.45s cubic-bezier(0.16, 1, 0.3, 1) 160ms forwards;
}

.launch-intro-word-main,
.launch-intro-word-shadow {
  grid-area: 1 / 1;
  font-size: clamp(2.8rem, 10vw, 7.2rem);
  font-weight: 850;
  letter-spacing: -0.075em;
  line-height: 0.92;
  white-space: nowrap;
}

.launch-intro-word-main {
  position: relative;
  color: #eaffef;
  text-shadow:
    0 0 12px rgba(134, 239, 172, 0.42),
    0 0 38px rgba(34, 197, 94, 0.28);
}

.launch-intro-word-main::after {
  content: "";
  position: absolute;
  inset: -12% -5%;
  background: linear-gradient(
    100deg,
    transparent 34%,
    rgba(220, 252, 231, 0.92) 48%,
    rgba(74, 222, 128, 0.72) 52%,
    transparent 66%
  );
  mix-blend-mode: screen;
  transform: translateX(-115%) skewX(-12deg);
  animation: ballerwatch-intro-shine 1.05s ease-out 520ms forwards;
  pointer-events: none;
}

.launch-intro-word-shadow {
  color: rgba(34, 197, 94, 0.62);
  filter: blur(13px);
  transform: translate3d(0.08em, 0.03em, 0) scale(1.015);
}

.launch-intro-pulse {
  position: absolute;
  width: min(24rem, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.3);
  opacity: 0;
  transform: scale(0.2);
  animation: ballerwatch-intro-pulse 1.4s ease-out 540ms forwards;
}

.experience-settings {
  display: grid;
  gap: 0.65rem;
}

.experience-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.experience-setting-row > div {
  min-width: 0;
}

.experience-setting-row .hint,
.experience-status {
  margin: 0.2rem 0 0;
}

.experience-toggle {
  flex: 0 0 auto;
  min-width: 4.5rem;
}

.experience-toggle.is-on,
.experience-toggle[aria-pressed="true"] {
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(34, 197, 94, 0.14);
  color: #dcfce7;
}

@keyframes ballerwatch-intro-line {
  0% {
    opacity: 0;
    transform: translateX(-50%) scaleX(0.05);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0.18;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes ballerwatch-intro-beam {
  0% {
    opacity: 0;
    transform: rotate(18deg) translateY(18%) scaleX(0.6);
  }
  42% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.16;
    transform: rotate(18deg) translateY(-8%) scaleX(1.15);
  }
}

@keyframes ballerwatch-intro-word {
  0% {
    opacity: 0;
    transform: scale(0.86);
    filter: blur(16px);
  }
  46% {
    opacity: 1;
    filter: blur(0);
  }
  78% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes ballerwatch-intro-shine {
  from {
    transform: translateX(-115%) skewX(-12deg);
  }
  to {
    transform: translateX(115%) skewX(-12deg);
  }
}

@keyframes ballerwatch-intro-pulse {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  35% {
    opacity: 0.48;
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@media (max-width: 560px) {
  .launch-intro-stage {
    width: 96vw;
  }

  .launch-intro-word-main,
  .launch-intro-word-shadow {
    font-size: clamp(2.45rem, 12vw, 4.3rem);
  }

  .experience-setting-row {
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .launch-intro {
    display: none !important;
  }

  .launch-intro *,
  .launch-intro::before,
  .launch-intro::after {
    animation: none !important;
    transition: none !important;
  }
}


/* v7.0.13 floating chat, icon-only music, and single-scroll settings */
html:has(.settings-dialog[open]),
body:has(.settings-dialog[open]),
html:has(.chat-dialog[open]),
body:has(.chat-dialog[open]) {
  overflow: hidden;
}

.settings-dialog {
  padding: 0;
  overflow: hidden;
  max-height: min(86dvh, 48rem);
}

.settings-dialog .dialog-shell {
  box-sizing: border-box;
  width: 100%;
  max-height: min(86dvh, 48rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.settings-heading {
  align-items: center;
}

.settings-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.music-icon-toggle {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.46);
}

.music-icon-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-icon-toggle .music-speaker {
  fill: currentColor;
  stroke: currentColor;
}

.music-icon-toggle .music-wave {
  display: none;
}

.music-icon-toggle .music-slash {
  display: block;
}

.music-icon-toggle.is-on {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(34, 197, 94, 0.13);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.05), 0 0 20px rgba(34, 197, 94, 0.08);
}

.music-icon-toggle.is-on .music-wave {
  display: block;
}

.music-icon-toggle.is-on .music-slash {
  display: none;
}

.chat-launcher {
  position: fixed;
  z-index: 80;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.65rem));
  width: 3.45rem;
  height: 3.45rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(134, 239, 172, 0.32);
  border-radius: 50%;
  color: #eaffef;
  background:
    radial-gradient(circle at 32% 24%, rgba(134, 239, 172, 0.24), transparent 44%),
    linear-gradient(145deg, #14804d, #075638);
  box-shadow:
    0 14px 34px rgba(2, 16, 12, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

.chat-launcher:hover {
  transform: translateY(-1px);
}

.chat-launcher:active {
  transform: scale(0.96);
}

.chat-launcher svg {
  width: 1.85rem;
  height: 1.85rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-dialog {
  width: min(34rem, calc(100vw - 1.25rem));
  max-width: min(34rem, calc(100vw - 1.25rem));
  max-height: min(78dvh, 38rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 26px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.12), transparent 20rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012)),
    rgba(6, 18, 22, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 28px 80px rgba(0, 7, 6, 0.42);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  backdrop-filter: blur(30px) saturate(145%);
}

.chat-dialog::backdrop {
  background: rgba(2, 12, 10, 0.30);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.chat-dialog-shell {
  box-sizing: border-box;
  max-height: min(78dvh, 38rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
}

.chat-dialog-heading {
  align-items: center;
  margin-bottom: 0.85rem;
}

.chat-dialog-title {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
}

.chat-dialog-bot {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 50%;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.10);
}

.chat-dialog-bot svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-dialog .question-row {
  margin-top: 0;
}

.chat-dialog .answer {
  max-height: min(42dvh, 18rem);
  overflow-y: auto;
}

.chat-dialog-hint {
  margin-bottom: 0;
  font-size: 0.66rem;
  opacity: 0.72;
}

@media (max-width: 560px) {
  .settings-dialog {
    max-height: calc(100dvh - 0.75rem);
  }

  .settings-dialog .dialog-shell {
    max-height: calc(100dvh - 0.75rem);
  }

  .chat-launcher {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, calc(env(safe-area-inset-bottom) + 0.5rem));
    width: 3.15rem;
    height: 3.15rem;
  }

  .chat-dialog {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
    max-height: calc(100dvh - 1rem);
    border-radius: 24px;
  }

  .chat-dialog-shell {
    max-height: calc(100dvh - 1rem);
    padding: 0.9rem;
  }

  .chat-dialog .question-row {
    grid-template-columns: 1fr;
  }

  .chat-dialog .question-row button {
    width: 100%;
  }
}


/* v7.0.14 iPhone-safe symmetric modal frame */
@media (max-width: 560px) {
  :root {
    --iphone-modal-frame-inset: max(
      0.85rem,
      calc(env(safe-area-inset-top) + 0.7rem),
      calc(env(safe-area-inset-bottom) + 0.7rem)
    );
  }

  .notification-dialog,
  .settings-dialog {
    position: fixed;
    top: var(--iphone-modal-frame-inset);
    right: auto;
    bottom: var(--iphone-modal-frame-inset);
    left: 50%;
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
    height: auto;
    max-height: none;
    margin: 0;
    transform: translateX(-50%);
  }

  .notification-dialog .dialog-shell,
  .settings-dialog .dialog-shell {
    box-sizing: border-box;
    height: 100%;
    max-height: none;
  }
}


/* v7.0.16 signed-in RSVP roster popup */
.next-game-capacity[role="button"] {
  margin-right: -0.42rem;
  margin-left: -0.42rem;
  padding: 0.42rem;
  border-radius: 14px;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}
.next-game-capacity[role="button"]:hover { background: rgba(255, 255, 255, 0.045); }
.next-game-capacity[role="button"]:active { transform: scale(0.99); }
.next-game-capacity[role="button"]:focus-visible {
  outline: 2px solid rgba(74, 222, 128, 0.7);
  outline-offset: 2px;
}
.rsvp-roster-dialog {
  width: min(27rem, calc(100vw - 1rem));
  max-width: min(27rem, calc(100vw - 1rem));
  max-height: min(66dvh, 32rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.11), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012)),
    rgba(6, 18, 22, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 24px 70px rgba(0, 7, 6, 0.42);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  backdrop-filter: blur(28px) saturate(145%);
}
.rsvp-roster-dialog::backdrop {
  background: rgba(2, 12, 10, 0.28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.rsvp-roster-shell {
  box-sizing: border-box;
  max-height: min(66dvh, 32rem);
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rsvp-roster-heading { align-items: center; margin-bottom: 0.75rem; }
.rsvp-roster-heading h2 { margin-top: 0.12rem; font-size: 1.35rem; }
.rsvp-roster-summary {
  margin: 0 0 0.9rem;
  color: rgba(203, 213, 225, 0.72);
  font-size: 0.76rem;
  line-height: 1.35;
}
.rsvp-roster-group { padding: 0.78rem 0; border-top: 1px solid rgba(226, 232, 240, 0.08); }
.rsvp-roster-group:first-of-type { border-top: 0; }
.rsvp-roster-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.48rem;
}
.rsvp-roster-group-heading strong { font-size: 0.82rem; }
.rsvp-roster-group-heading span { color: rgba(148, 163, 184, 0.62); font-size: 0.66rem; }
.rsvp-roster-list { display: grid; gap: 0.3rem; margin: 0; padding-left: 1.55rem; }
.rsvp-roster-person {
  padding: 0.42rem 0.5rem 0.42rem 0.15rem;
  color: rgba(241, 245, 249, 0.95);
  font-size: 0.8rem;
  line-height: 1.25;
}
.rsvp-roster-person::marker {
  color: rgba(134, 239, 172, 0.68);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.rsvp-roster-name { font-weight: 600; }
.rsvp-roster-guest {
  margin-left: 0.45rem;
  color: rgba(148, 163, 184, 0.64);
  font-size: 0.68rem;
  white-space: nowrap;
}
.rsvp-roster-sign-in { width: 100%; margin-top: 0.4rem; }
html:has(.rsvp-roster-dialog[open]),
body:has(.rsvp-roster-dialog[open]) { overflow: hidden; }
@media (max-width: 560px) {
  .rsvp-roster-dialog {
    width: calc(100vw - 1.25rem);
    max-width: calc(100vw - 1.25rem);
    max-height: min(62dvh, 30rem);
    border-radius: 22px;
  }
  .rsvp-roster-shell { max-height: min(62dvh, 30rem); padding: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .next-game-capacity[role="button"] { transition: none; }
}

/* v7.0.24 clearer match-card action hierarchy */
.spotlight-card .match-card-menu-trigger.status-dot {
  min-height: 1.95rem;
  padding: 0.38rem 0.66rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
}

.next-game-weather {
  max-width: 9.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(226, 232, 240, 0.82);
  background: transparent;
  box-shadow: none;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.next-game-rsvp-pill {
  min-height: 3rem;
  padding: 0.58rem 0.85rem;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.015em;
}

.pickup-rsvp-link {
  color: #f8fafc;
  border-color: rgba(226, 232, 240, 0.26) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(51, 65, 85, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.14);
}

.pickup-rsvp-link.is-confirmed {
  color: #f0fdf4;
  border-color: rgba(134, 239, 172, 0.52) !important;
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.92), rgba(22, 163, 74, 0.84)),
    rgba(21, 128, 61, 0.88) !important;
  box-shadow:
    inset 0 1px 0 rgba(220, 252, 231, 0.32),
    0 9px 24px rgba(22, 163, 74, 0.18);
}

.next-game-actions {
  gap: 0.6rem;
  margin-top: 1.05rem;
}

.next-game-actions .button-link,
.next-game-actions button {
  min-height: 2.8rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(226, 232, 240, 0.10);
  border-radius: 12px;
  color: rgba(241, 245, 249, 0.88);
  background: rgba(51, 65, 85, 0.16);
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 700;
}

.next-game-actions .button-link:hover,
.next-game-actions button:hover {
  border-color: rgba(226, 232, 240, 0.18);
  background: rgba(71, 85, 105, 0.24);
}

@media (max-width: 560px) {
  .spotlight-card .match-card-menu-trigger.status-dot {
    min-height: 1.85rem;
    padding: 0.34rem 0.58rem;
    font-size: 0.64rem;
  }

  .next-game-weather {
    max-width: 7.8rem;
    padding: 0;
    font-size: 0.64rem;
  }

  .next-game-rsvp-pill {
    min-height: 2.8rem;
    padding: 0.52rem 0.68rem;
  }

  .next-game-actions {
    gap: 0.5rem;
  }

  .next-game-actions .button-link,
  .next-game-actions button {
    min-height: 2.7rem;
    padding-inline: 0.55rem;
  }
}

/* v7.0.25 preserve match-type action priority over desktop carousel edge */
@media (hover: hover) and (pointer: fine) {
  .spotlight-edge-next {
    top: 5.75rem;
  }
}

/* v7.0.25 full-width RSVP roster sheet */
.spotlight-content {
  grid-template-areas:
    "heading heading"
    "meta meta"
    "location weather"
    "capacity capacity"
    "actions actions"
    "hint hint";
}

.rsvp-roster-dialog {
  width: min(var(--app-surface-width), calc(100vw - 2rem));
  max-width: min(var(--app-surface-width), calc(100vw - 2rem));
  max-height: min(82dvh, 48rem);
  border-radius: 28px;
}

.rsvp-roster-shell {
  max-height: min(82dvh, 48rem);
  padding: 1.15rem 1.25rem 0;
}

.rsvp-roster-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 0.55rem;
  margin: 0.65rem -1.25rem 0;
  padding: 0.85rem 1.25rem max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 232, 240, 0.09);
  background:
    linear-gradient(180deg, rgba(6, 18, 22, 0.82), rgba(6, 18, 22, 0.98) 36%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.rsvp-roster-rsvp,
.rsvp-roster-sign-in {
  width: 100%;
  min-height: 3rem;
  border-radius: 14px;
}

@media (max-width: 560px) {
  .rsvp-roster-dialog {
    width: calc(100vw - 0.75rem);
    max-width: calc(100vw - 0.75rem);
    max-height: min(78dvh, 42rem);
    border-radius: 24px;
  }

  .rsvp-roster-shell {
    max-height: min(78dvh, 42rem);
    padding: 1rem 1rem 0;
  }

  .rsvp-roster-actions {
    margin-right: -1rem;
    margin-left: -1rem;
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* v7.0.26 full-height right waterfall with a reserved action hit zone */
@media (hover: hover) and (pointer: fine) {
  .spotlight-edge-next {
    top: 5.75rem;
    overflow: visible;
  }

  .spotlight-edge-next::before {
    top: -5.75rem;
    bottom: 0;
    pointer-events: none;
  }
}


/* Desktop affordance: the match-type pill becomes an Edit cue on hover/focus. */
@media (hover: hover) and (pointer: fine) {
  .match-card-menu-trigger:not([hidden]) { position: relative; }
  .match-card-menu-trigger:not([hidden])::after {
    content: "✎ Edit";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
  }
  .match-card-menu-trigger:not([hidden]) > span {
    transition: opacity 160ms ease;
  }
  .match-card-menu-trigger:not([hidden]):is(:hover, :focus-visible) {
    filter: brightness(1.15);
  }
  .match-card-menu-trigger:not([hidden]):is(:hover, :focus-visible) > span {
    opacity: 0;
  }
  .match-card-menu-trigger:not([hidden]):is(:hover, :focus-visible)::after {
    opacity: 1;
    transform: translateY(0);
  }
}

/* v8.1.3 calendar paging stays compact, with a separate full-card expansion target. */
.calendar-heading {
  align-items: center;
  gap: 0.75rem;
}

.calendar-heading > div:first-child {
  min-width: 0;
}

.calendar-window-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.38rem;
  margin-left: auto;
}

.calendar-window-control {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 13px;
  background: linear-gradient(130deg, rgba(125, 211, 252, 0.09), rgba(15, 35, 42, 0.24));
  color: rgba(226, 250, 255, 0.92);
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.calendar-window-control span {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

.calendar-window-control:not(:disabled):is(:hover, :focus-visible) {
  border-color: rgba(125, 211, 252, 0.56);
  background-color: rgba(14, 116, 144, 0.22);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.14);
}

.calendar-window-control:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.72);
  outline-offset: 2px;
}

.calendar-window-control:disabled {
  cursor: default;
  opacity: 0.3;
}

.calendar-card.is-expanded .calendar-window-controls {
  display: none;
}

/* Keep empty calendar dates clickable so the card still expands everywhere. */
.calendar-day[aria-disabled="true"] {
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  /* The right hit area begins below Edit; its chevron tracks the full card center. */
  .spotlight-edge-next span {
    top: -2.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-window-control {
    transition: none;
  }
}

/* v8.2.0 public division standings, tracked-team carousel, and match history. */
.standings-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 88% 0%, rgba(34, 197, 94, 0.10), transparent 17rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)),
    rgba(6, 19, 24, 0.48);
  border-color: rgba(148, 163, 184, 0.16);
}

.standings-heading {
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.standings-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.standings-step {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.4rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #e0faff;
  background: transparent;
}

.standings-step span { font-size: 1.8rem; font-weight: 400; line-height: 1; }
.standings-step:disabled { opacity: 0.28; cursor: default; }
/* No standings-only hover surface here: the shared masked ::before waterfall
 * is the entire hover treatment, exactly as it is for match cards. */
.standings-position {
  min-width: 2.8rem;
  color: rgba(203, 213, 225, 0.76);
  font-size: var(--type-small);
  text-align: center;
}

.standings-viewport {
  overflow: hidden;
  touch-action: pan-y;
  border-radius: 16px;
}

.standings-track {
  display: flex;
  align-items: flex-start;
  transition: transform 290ms cubic-bezier(0.22, 0.68, 0.15, 1);
  will-change: transform;
}

.standings-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0.85rem 0.7rem 0.3rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(3, 17, 23, 0.26);
}

.standings-team-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.standings-team-copy { display: grid; gap: 0.25rem; min-width: 0; }
.standings-team-name {
  overflow-wrap: anywhere;
  color: #f0fdf4;
  font-size: clamp(1.02rem, 3vw, 1.3rem);
  font-weight: 800;
}
.standings-division {
  color: #94a3b8;
  font-size: var(--type-small);
}
.standings-rank {
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(74, 222, 128, 0.20);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.10);
  color: #bbf7d0;
  font-size: var(--type-small);
  font-weight: 800;
}

.standings-table-scroll { overflow-x: auto; scrollbar-width: thin; }
.standings-table {
  width: 100%;
  min-width: 325px;
  border-collapse: collapse;
  color: #cbd5e1;
  font-size: clamp(0.60rem, 1.9vw, 0.76rem);
  font-variant-numeric: tabular-nums;
}
.standings-table th {
  padding: 0.5rem 0.20rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.20);
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 700;
}
.standings-table td {
  padding: 0.30rem 0.20rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  text-align: center;
}
.standings-table th:nth-child(2),
.standings-table td:nth-child(2) { width: 42%; text-align: left; }
.standings-table td:first-child { color: #94a3b8; }
.standings-table td:last-child { color: #f8fafc; font-weight: 800; }

.standings-team-link {
  display: block;
  width: 100%;
  min-height: 2rem;
  padding: 0.24rem 0.05rem;
  border: 0;
  border-radius: 6px;
  color: #cbd5e1;
  background: transparent;
  text-align: left;
  font-size: inherit;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}
.standings-team-link:hover,
.standings-team-link:focus-visible {
  color: #7dd3fc;
  background: rgba(14, 116, 144, 0.12);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.standings-highlight {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.08));
  outline: 1px solid rgba(74, 222, 128, 0.28);
  outline-offset: -1px;
}
.standings-highlight td,
.standings-highlight .standings-team-link {
  color: #dcfce7;
  font-weight: 800;
}
.standings-highlight td:first-child,
.standings-highlight td:last-child { color: #86efac; }

.standings-footnote {
  margin: 0.72rem 0 0;
  color: rgba(148, 163, 184, 0.7);
  font-size: var(--type-caption);
  line-height: 1.35;
}
.standings-gesture-hint {
  margin: 0.65rem 0 0.2rem;
  color: rgba(203, 213, 225, 0.62);
  font-size: var(--type-caption);
}
.standings-message { margin: 0.8rem 0; font-size: var(--type-small); }
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.team-history-dialog {
  width: min(34rem, calc(100vw - 1rem));
  max-width: min(34rem, calc(100vw - 1rem));
  max-height: min(82dvh, 44rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(134, 239, 172, 0.24);
  border-radius: 26px;
  color: #f8fafc;
  background: rgba(7, 22, 29, 0.96);
  box-shadow: 0 24px 70px rgba(0, 7, 12, 0.50);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.team-history-dialog::backdrop {
  background: rgba(2, 6, 12, 0.54);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.team-history-shell {
  max-height: min(82dvh, 44rem);
  padding: 1.15rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.team-history-heading { gap: 0.65rem; }
.team-history-heading h2 { overflow-wrap: anywhere; }
.team-history-list { display: grid; gap: 0.25rem; margin-top: 1rem; }
.team-history-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.82rem 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.team-history-match-detail { display: grid; min-width: 0; gap: 0.28rem; }
.team-history-match-date {
  color: #94a3b8;
  font-size: var(--type-caption);
}
.team-history-score {
  overflow-wrap: anywhere;
  color: #e2e8f0;
  font-size: var(--type-small);
  font-weight: 700;
}
.team-history-result {
  flex: 0 0 auto;
  width: 1.85rem;
  padding: 0.37rem 0;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  font-size: var(--type-small);
  font-weight: 800;
  text-align: center;
}
.team-history-result[data-result="W"] {
  background: rgba(34, 197, 94, 0.20);
  color: #86efac;
}
.team-history-result[data-result="L"] {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

@media (max-width: 560px) {
  .standings-slide { padding: 0.75rem 0.34rem 0.2rem; }
  .standings-table { font-size: 0.66rem; }
  .standings-table td { padding-inline: 0.13rem; }
  .standings-table th { padding-inline: 0.13rem; }
}

@media (prefers-reduced-motion: reduce) {
  .standings-track { transition: none; }
}

/* v8.2.1 match-style standings train: each team is one complete glass card. */
.standings-card {
  margin: 1.15rem 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.standings-heading {
  padding: 0.1rem 0.45rem 0.3rem;
  margin-bottom: 0.35rem;
}

.standings-heading .eyebrow {
  margin-bottom: 0.18rem;
}

.standings-position {
  min-width: auto;
  margin-left: auto;
  padding: 0 0.35rem;
  color: rgba(203, 213, 225, 0.54);
  font-size: var(--type-caption);
}

.standings-rail {
  position: relative;
  isolation: isolate;
}

.standings-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 27px;
  touch-action: pan-y;
  transition: height 270ms ease;
}

.standings-track {
  --standings-train-gap: 12px;
  display: flex;
  align-items: flex-start;
  gap: var(--standings-train-gap);
  width: 100%;
  transition: transform 270ms cubic-bezier(0.22, 0.68, 0.15, 1);
  will-change: transform;
}

.standings-track.is-train-dragging { transition: none; }

.standings-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: clamp(0.9rem, 3vw, 1.4rem);
  border: 1px solid rgba(191, 219, 254, 0.13);
  border-radius: 27px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 44%),
    rgba(6, 20, 28, 0.67);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.13);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.standings-team-heading {
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-right: 0.15rem;
}

.standings-team-copy { gap: 0.2rem; }
.standings-team-name {
  color: #eefcf5;
  font-size: clamp(1.03rem, 2.8vw, 1.27rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.standings-division {
  color: rgba(203, 213, 225, 0.70);
  font-size: var(--type-caption);
  line-height: 1.4;
}

.standings-rank {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #86efac;
  font-size: var(--type-small);
  font-weight: 700;
}

.standings-table-scroll {
  overflow-x: auto;
  scrollbar-width: none;
}
.standings-table-scroll::-webkit-scrollbar { display: none; }

.standings-table {
  min-width: 0;
  table-layout: fixed;
  font-size: clamp(0.62rem, 1.9vw, 0.75rem);
}
.standings-table th {
  padding: 0.48rem 0.18rem;
  font-size: var(--type-caption);
  letter-spacing: 0.01em;
}
.standings-table td {
  padding: 0.3rem 0.18rem;
  border-bottom-color: rgba(148, 163, 184, 0.065);
}
.standings-table th:nth-child(1),
.standings-table td:nth-child(1) { width: 7%; }
.standings-table th:nth-child(2),
.standings-table td:nth-child(2) { width: 45%; }
.standings-table th:nth-child(3),
.standings-table td:nth-child(3) { width: 8%; }
.standings-table th:nth-child(4),
.standings-table td:nth-child(4) { width: 18%; white-space: nowrap; }
.standings-table th:nth-child(5),
.standings-table td:nth-child(5) { width: 10%; }
.standings-table th:nth-child(6),
.standings-table td:nth-child(6) { width: 12%; }

.standings-table tbody tr:last-child td { border-bottom: 0; }
.standings-team-link {
  min-height: 1.9rem;
  padding: 0.17rem 0;
  font-weight: 500;
  line-height: 1.3;
}
.standings-highlight {
  background: rgba(34, 197, 94, 0.085);
  outline: none;
  box-shadow: inset 3px 0 rgba(74, 222, 128, 0.76);
}
.standings-highlight td,
.standings-highlight .standings-team-link {
  color: #d9fbe2;
  font-weight: 800;
}

.standings-footnote {
  margin: 0.55rem 0 0;
  padding: 0 0.45rem;
  color: rgba(148, 163, 184, 0.60);
  font-size: var(--type-caption);
}

/* Carousel arrows share one visual implementation. Standings controls remain
 * inside their accessible group; display:contents preserves rail positioning. */
.standings-controls { display: contents; }
.standings-step { display: none; }

@media (max-width: 560px) {
  .standings-slide { padding: 0.95rem 0.55rem; border-radius: 24px; }
  .standings-viewport { border-radius: 24px; }
  .standings-table { font-size: 0.64rem; }
  .standings-table th { font-size: 0.6rem; }
  .standings-table th,
  .standings-table td { padding-inline: 0.12rem; }
  .standings-team-heading { padding-inline: 0.45rem; }
  .standings-step { width: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .standings-viewport,
  .standings-track,
  .standings-step::before { transition: none; }
}

.standings-slide .eyebrow {
  margin: 0 0 0.22rem;
}

.standings-slide .standings-team-name {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.13rem, 3.3vw, 1.42rem);
  line-height: 1.27;
}
.standings-slide .standings-division {
  color: #aab8ca;
  font-size: 0.77rem;
}

.standings-table {
  font-size: clamp(0.79rem, 1.9vw, 0.91rem);
}
.standings-table th {
  font-size: clamp(0.69rem, 1.6vw, 0.78rem);
  padding: 0.55rem 0.1rem;
}
.standings-table td {
  padding: 0.35rem 0.1rem;
}
.standings-table th:nth-child(1),
.standings-table td:nth-child(1) { width: 6%; }
.standings-table th:nth-child(2),
.standings-table td:nth-child(2) { width: 49%; }
.standings-table th:nth-child(3),
.standings-table td:nth-child(3) { width: 5%; }
.standings-table th:nth-child(4),
.standings-table td:nth-child(4) { width: 18%; }
.standings-table th:nth-child(5),
.standings-table td:nth-child(5) { width: 9%; }
.standings-table th:nth-child(6),
.standings-table td:nth-child(6) { width: 13%; }

.standings-rail .standings-position {
  position: absolute;
  z-index: 6;
  top: 1.05rem;
  right: 1rem;
  font-size: 0.75rem;
  opacity: 0.85;
}
.standings-team-heading { padding-right: 2rem; }
.standings-slide .standings-table-scroll {
  position: relative;
  z-index: 5;
}
.standings-slide .standings-team-link { font-size: inherit; }

.standings-stats {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.standings-stats-label { color: #9fb8b6; }
.standings-stats-chart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.standings-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.37rem;
}
.standings-stat-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}
.standings-stat-heading strong {
  color: #a7f3d0;
  font-size: 0.79rem;
  white-space: nowrap;
}
.standings-stat-track {
  height: 0.42rem;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.17);
}
.standings-stat-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.58), #86efac);
}
.standings-stat.is-unavailable .standings-stat-heading strong { color: #94a3b8; }
.standings-stat-detail {
  font-size: 0.73rem;
  line-height: 1.35;
  color: #a3b4c2;
}
.standings-stats-note {
  margin: 0.75rem 0 0;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.69rem;
}

@media (max-width: 560px) {
  .standings-slide .standings-team-name { font-size: 1.19rem; }
  .standings-slide { padding: 1rem 0.65rem; }
  .standings-table { font-size: 0.8rem; }
  .standings-table th { font-size: 0.7rem; }
  .standings-stat-heading { font-size: 0.83rem; }
  .standings-stats-chart { grid-template-columns: 1fr; gap: 0.75rem; }
  .standings-stat { gap: 0.28rem; }
  .calendar-carousel .calendar-window-control { width: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-carousel .calendar-card.is-train-settling,
  .calendar-carousel .calendar-train-preview.is-train-settling,
  .calendar-carousel .calendar-window-control::before,
  .calendar-carousel .calendar-window-control span { transition: none !important; }
}

/* v8.4.0 — compact standings, detailed opponent scouting only on team tap. */
.standings-slide {
  display: flex;
  flex-direction: column;
}
.standings-card-updated {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.68rem;
  text-align: left;
}
.team-history-dialog {
  width: min(39rem, calc(100vw - 0.8rem));
  max-width: min(39rem, calc(100vw - 0.8rem));
  max-height: min(90dvh, 54rem);
}
.team-history-shell {
  max-height: min(90dvh, 54rem);
  padding: clamp(0.85rem, 3vw, 1.25rem);
  scrollbar-width: thin;
}
.team-history-heading {
  position: relative;
  padding-right: 2.5rem;
}
#team-history-note {
  margin: 0.15rem 0 1.05rem;
  padding: 0;
}
.scout-dashboard {
  display: grid;
  gap: 0.95rem;
}
.scout-quality {
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 20px;
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(145deg, rgba(34,197,94,0.12), rgba(10,27,34,0.25));
}
.scout-quality-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}
.scout-quality-heading .eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.65rem;
}
.scout-season {
  font-size: 0.74rem;
  line-height: 1.45;
  color: #b6c6ca;
}
.scout-quality-score {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.2rem;
}
.scout-quality-score strong {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  line-height: 1;
  color: #baf7d1;
  font-variant-numeric: tabular-nums;
}
.scout-quality-score span { color: #95adab; font-size: 0.8rem; }
.scout-quality-meter {
  height: 0.46rem;
  margin-top: 0.85rem;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(148,163,184,0.22);
}
.scout-quality-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #21a978, #a7f3d0);
}
.scout-quality-caption,
.scout-method-text {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #a8bdbb;
}
.scout-snapshot,
.scout-scoring {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.scout-scoring { grid-template-columns: repeat(2, minmax(0,1fr)); }
.scout-summary-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.8rem;
  border-radius: 15px;
  background: rgba(148,163,184,0.075);
  border: 1px solid rgba(148,163,184,0.085);
}
.scout-summary-label {
  font-size: 0.61rem;
  letter-spacing: 0.085em;
  color: #92a6b7;
  font-weight: 700;
}
.scout-summary-value {
  font-size: clamp(0.83rem, 2.6vw, 1.05rem);
  font-weight: 780;
  line-height: 1.25;
  color: #e6f5ef;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.scout-summary-detail { font-size: 0.68rem; color: #97aabb; }
.scout-subheading {
  margin: 0 0 0.6rem;
  color: #e5f7f2;
  font-size: 0.9rem;
  font-weight: 760;
}
.scout-form { display: flex; flex-direction: column; }
.scout-form-results { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.scout-form-result {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  background: rgba(74, 222, 128, 0.12);
  color: #a7f3d0;
  font-size: 0.82rem;
  font-weight: 800;
}
.scout-form-result[data-result="D"] {
  background: rgba(148,163,184,0.16);
  color: #e2e8f0;
}
.scout-form-result[data-result="L"] {
  background: rgba(251,113,133,0.14);
  color: #fda4af;
}
.team-scout-overview .standings-stats {
  margin-top: 0;
  padding: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 17px;
  background: rgba(148,163,184,0.035);
}
.team-scout-overview .standings-stats-chart { gap: 0.75rem; }
.scout-formats { margin-top: 0.1rem; }
.scout-format-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0.55rem;
}
.scout-format-note {
  margin-top: 0.5rem;
  color: #a8b7c5;
  font-size: 0.72rem;
}
.scout-method {
  border-top: 1px solid rgba(148,163,184,0.13);
  padding: 0.65rem 0 0;
  color: #aec0c5;
  font-size: 0.74rem;
}
.scout-method summary,
.scout-more-matches summary {
  cursor: pointer;
  color: #9fe5c0;
  font-weight: 700;
  padding: 0.35rem 0;
}
.scout-method summary:focus-visible,
.scout-more-matches summary:focus-visible {
  outline: 2px solid rgba(74,222,128,0.65);
  outline-offset: 3px;
  border-radius: 6px;
}
.team-history-list {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(148,163,184,0.15);
  padding-top: 0.95rem;
}
.team-history-match { padding: 0.65rem 0.25rem; }
.scout-more-matches {
  border-top: 1px solid rgba(148,163,184,0.1);
  padding-top: 0.4rem;
}

@media (max-width: 560px) {
  .team-history-dialog {
    width: calc(100vw - 0.5rem);
    max-width: calc(100vw - 0.5rem);
    max-height: 86dvh;
    border-radius: 22px;
  }
  .team-history-shell {
    max-height: 86dvh;
    padding: 1rem;
  }
  .scout-snapshot { gap: 0.4rem; }
  .scout-summary-cell { padding: 0.65rem 0.45rem; }
  .scout-summary-value { font-size: 0.85rem; }
  .scout-summary-detail { font-size: 0.64rem; }
  .team-scout-overview .standings-stats-chart {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 0.6rem;
  }
  .team-scout-overview .standings-stat-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.68rem;
  }
  .team-scout-overview .standings-stat-detail { font-size: 0.67rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scout-quality-meter span { transition: none; }
}

/* v8.5.0 — simple calendar and opponent form. */
.calendar-card { touch-action: auto; }
.next-game-form {
  grid-area: form;
  margin: 0;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(74, 222, 128, 0.13);
  border-radius: 11px;
  background: rgba(34, 197, 94, 0.055);
  color: #c7e9dc;
  font-size: 0.77rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.next-game-form[hidden] { display: none; }
.spotlight-content {
  grid-template-areas:
    "heading heading"
    "meta meta"
    "form form"
    "location weather"
    "capacity capacity"
    "actions actions"
    "hint hint";
}
.scout-quality-caption { line-height: 1.45; }
@media (max-width: 560px) {
  .next-game-form { font-size: 0.73rem; }
}

/* v8.5.1: distinct connected-card train spacing and match-style rank badge. */
.spotlight-carousel { --spotlight-train-gap: 12px; }
.standings-track { --standings-train-gap: 12px; gap: var(--standings-train-gap); }
.standings-slide,
.standings-slide:first-child,
.standings-slide:last-child {
  border: 1px solid rgba(191, 219, 254, 0.13);
  border-radius: 25px;
}
.standings-viewport { border-radius: 25px; }
.standings-team-heading {
  align-items: flex-start;
  justify-content: space-between;
  padding-right: 0.15rem;
}
.standings-team-copy { min-width: 0; flex: 1 1 auto; }
.standings-slide .status-dot.standings-rank {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  margin-top: 0.1rem;
  padding: 0.38rem 0.66rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  color: rgba(240, 249, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}
.standings-slide .match-update-credit.standings-card-updated {
  margin-top: auto;
  padding-top: 0.9rem;
  text-align: right;
}
@media (max-width: 560px) {
  .standings-slide,
  .standings-slide:first-child,
  .standings-slide:last-child { border-radius: 23px; }
  .standings-slide .status-dot.standings-rank {
    min-height: 1.85rem;
    padding: 0.34rem 0.52rem;
    font-size: 0.64rem;
  }
}

/* v8.5.2: betting-style monitored-team win rate, no stacked sentence. */
.next-game-form {
  justify-self: start;
  align-self: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0.29rem 0.62rem;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.10);
  color: #baf7d1;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .next-game-form { font-size: 0.72rem; padding: 0.28rem 0.55rem; }
}

/* v8.6.1: a single inline win estimate follows jersey color, rather than
 * consuming its own row/pill in the match-card grid. */
.spotlight-content {
  grid-template-areas:
    "heading heading"
    "meta meta"
    "location weather"
    "capacity capacity"
    "actions actions"
    "hint hint";
}
.next-game-form { display: none !important; }
.standings-slide .standings-team-name {
  color: #f8fafc;
}
.standings-slide .eyebrow {
  color: rgba(191, 219, 254, 0.72);
}

/* v8.7.0: shared sports-card typography, affordances and accessible scout close. */
:root {
  --type-section: 1.1875rem;
  --type-body: 0.90625rem;
  --type-body-strong: 0.96875rem;
  --card-surface-line: rgba(188, 214, 205, 0.18);
}
.card,
.standings-slide {
  border-color: var(--card-surface-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(0, 9, 12, 0.18);
}
.card .eyebrow,
.standings-slide .eyebrow {
  font-size: var(--type-caption);
  font-weight: 700;
  letter-spacing: 0.11em;
  color: rgba(191, 219, 254, 0.78);
}
.calendar-card h2,
.standings-slide .standings-team-name {
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.16;
}
.standings-division,
.next-game-meta,
.next-game-location,
.standings-card-updated {
  font-variant-numeric: tabular-nums;
}
.team-history-heading {
  padding-right: 0;
  align-items: flex-start;
}
.team-history-heading > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.team-history-heading #close-team-history {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 2.35rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  font-size: 1rem;
  align-self: flex-start;
}
/* Prior v8.7 / v8.8 waterfall forks removed; canonical design rules are below. */
/* Allow native vertical scrolling while recognizing horizontal card swipes.
 * No text selection/callout on team buttons during the active iOS gesture. */
.standings-viewport,
.standings-slide,
.standings-team-link {
  touch-action: pan-y;
}
.standings-team-link {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.standings-track {
  transition: transform 220ms cubic-bezier(0.22, 0.68, 0.15, 1);
}
@media (prefers-reduced-motion: reduce) {
  .standings-track,
  .standings-rail .carousel-waterfall-edge::before,
  .standings-rail .carousel-waterfall-edge span {
    transition: none;
  }
}

/* Searchable glass selection panels used by RSVP identities and monitored teams. */
.settings-choice-field { position: relative; display: grid; gap: 0.48rem; min-width: 0; }
.settings-choice { position: relative; min-width: 0; }
.settings-choice-trigger {
  display: flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.72rem 0.88rem;
  border: 1px solid rgba(148, 210, 196, 0.25);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(33, 71, 69, 0.49), rgba(9, 26, 35, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e8fff2;
  font-weight: 600;
  text-align: left;
}
.settings-choice-trigger:is(:hover, :focus-visible, .is-open) {
  border-color: rgba(74, 222, 128, 0.59);
  background: linear-gradient(135deg, rgba(34, 102, 82, 0.54), rgba(10, 34, 41, 0.82));
}
.settings-choice-trigger:focus-visible,
.settings-choice-option:focus-visible,
.settings-choice-chip button:focus-visible {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}
.settings-choice-trigger .choice-chevron {
  color: #86efac;
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 160ms ease;
}
.settings-choice-trigger.is-open .choice-chevron { transform: rotate(180deg); }
.settings-choice-popover {
  position: relative;
  z-index: 5;
  margin-top: 0.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(148, 210, 196, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(14, 43, 46, 0.99), rgba(7, 22, 34, 0.98));
  box-shadow: 0 16px 35px rgba(0, 8, 12, 0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  animation: settings-choices-in 150ms ease-out;
}
@keyframes settings-choices-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.settings-choice-popover .choice-search-label {
  display: block;
  margin-bottom: 0.38rem;
  color: #bdd3ce;
  font-size: var(--type-caption);
  font-weight: 700;
}
.settings-choice-popover input[type="search"] {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(148, 210, 196, 0.27);
  border-radius: 12px;
  outline-offset: 2px;
  background: rgba(1, 15, 23, 0.60);
  color: #f8fafc;
}
.settings-choice-options {
  display: grid;
  gap: 0.18rem;
  max-height: 16rem;
  margin-top: 0.55rem;
  padding: 0.16rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.settings-choice-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 2.6rem;
  width: 100%;
  padding: 0.63rem 0.74rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #dbe8e9;
  text-align: left;
  font-size: var(--type-body);
  font-weight: 550;
}
.settings-choice-option:hover,
.settings-choice-option:focus-visible { background: rgba(34, 197, 94, 0.12); }
.settings-choice-option[aria-selected="true"] {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.13);
}
.settings-choice-mark {
  color: #86efac;
  font-size: 1.08rem;
  font-weight: 800;
}
.settings-choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.45rem;
}
.settings-choice-chips:empty { display: none; }
.settings-choice-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.3rem;
  padding: 0.22rem 0.35rem 0.22rem 0.6rem;
  border: 1px solid rgba(134, 239, 172, 0.21);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.11);
  color: #d0f9e0;
  font-size: 0.76rem;
}
.settings-choice-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-choice-chip button {
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(134, 239, 172, 0.12);
  color: #ddfbe4;
  font-size: 1rem;
}
.settings-choice-empty { padding: 0.75rem; color: #a7bbc1; font-size: var(--type-small); }
.settings-choice-popover .choice-hint { margin: 0.48rem 0 0.1rem; font-size: var(--type-caption); }
@media (prefers-reduced-motion: reduce) {
  .settings-choice-popover { animation: none; }
  .settings-choice-trigger .choice-chevron { transition: none; }
}

/* The standings table itself must not steal an iOS horizontal card swipe. */
@media (pointer: coarse) {
  .standings-table-scroll {
    overflow-x: clip;
    touch-action: pan-y;
  }
  .standings-step { touch-action: manipulation; }
}


/* BallerWatch card contract v1 — one card, one typographic and footer scale.
 * All dashboard cards reuse these tokens: no independent headline sizes. */
:root {
  --bw-card-title-size: clamp(1.24rem, 3.2vw, 1.57rem);
  --bw-card-title-weight: 800;
  --bw-card-title-leading: 1.17;
  --bw-card-title-tracking: -0.032em;
  --bw-card-kicker-size: var(--type-caption);
  --bw-card-meta-size: var(--type-body);
  --bw-card-credit-size: 0.60rem;
  --bw-card-footer-inset: 0.62rem;
  --bw-edge-width: min(5.75rem, 20%);
  --bw-edge-blur: blur(13px) saturate(160%);
  --bw-edge-background-alpha: 0.10;
  --bw-card-border: var(--card-surface-line);
}
.card h2,
.standings-slide h2,
.spotlight-card h2,
.calendar-card h2,
.footer-install h2,
.ask-card h2 {
  font-family: var(--font-ui);
  font-size: var(--bw-card-title-size);
  font-weight: var(--bw-card-title-weight);
  line-height: var(--bw-card-title-leading);
  letter-spacing: var(--bw-card-title-tracking);
  overflow-wrap: anywhere;
}
.spotlight-card h2 { margin-top: 0.26rem; }
.card .section-heading .eyebrow,
.standings-slide .eyebrow,
.card .eyebrow {
  font-size: var(--bw-card-kicker-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.11em;
}
.next-game-meta,
.standings-division,
.calendar-game-picker,
.next-game-location {
  font-size: var(--bw-card-meta-size);
  line-height: 1.4;
}
.next-game-meta { margin-top: 0.68rem; font-weight: 600; }
.standings-team-heading { align-items: flex-start; }
.standings-slide {
  display: flex;
  flex-direction: column;
  padding-bottom: var(--bw-card-footer-inset);
}
.standings-track { align-items: stretch; }
.bw-card-footer {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 1rem;
  margin-top: auto;
  padding-top: 0.68rem;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  text-align: right;
}
.standings-slide .bw-card-footer {
  padding-top: 0.68rem;
  margin-bottom: 0;
}
.standings-slide .bw-card-footer .match-update-credit.standings-card-updated {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: var(--bw-card-credit-size);
  font-weight: 500;
  line-height: 1.15;
  color: rgba(148, 163, 184, 0.56);
  letter-spacing: 0.015em;
  text-align: right;
}
.match-card-footer .match-update-credit,
.calendar-card-footer .calendar-update-credit {
  font-size: var(--bw-card-credit-size);
  font-weight: 500;
  line-height: 1.15;
  color: rgba(148, 163, 184, 0.56);
  opacity: 1;
  text-align: right;
}

/* Both DOM paths MUST match the same waterfall selector:
 * .spotlight-carousel > .carousel-waterfall-edge
 * .standings-rail > .standings-controls > .carousel-waterfall-edge
 * The standings-controls wrapper is display:contents, so absolute placement
 * still anchors on the standings rail. */
/* The *only* waterfall visual contract for both card carousels.
 * Both pseudo elements get the exact same opacity/blur/mask/gradient/easing.
 * The match right-side control reserves the top-right edit action hit target. */
@media (hover: hover) and (pointer: fine) {
  :is(.spotlight-carousel, .standings-controls) > .carousel-waterfall-edge {
    position: absolute;
    display: flex;
    align-items: center;
    z-index: 30;
    top: 0;
    bottom: 0;
    height: auto;
    width: var(--bw-edge-width);
    padding: 0;
    border: 0;
    color: rgba(248, 250, 252, 0.92);
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: hidden;
  }
  :is(.spotlight-carousel, .standings-controls) >
  .carousel-waterfall-edge:is(.spotlight-edge-previous, .standings-step-previous) {
    left: 0;
    justify-content: flex-start;
    padding-left: 0.7rem;
    border-radius: 32px 0 0 32px;
  }
  :is(.spotlight-carousel, .standings-controls) >
  .carousel-waterfall-edge:is(.spotlight-edge-next, .standings-step-next) {
    right: 0;
    justify-content: flex-end;
    padding-right: 0.7rem;
    border-radius: 0 32px 32px 0;
  }
  /* Keep the button's entire hit surface optically empty across idle, hover,
     focus and pressed states. Only its shared masked ::before may be visible.
     This also defeats stale v8.2 standings hover backgrounds on Safari. */
  :is(.spotlight-carousel, .standings-controls) >
  .carousel-waterfall-edge:not(:disabled):is(:hover, :focus-visible, :active),
  :is(.spotlight-carousel, .standings-controls) > .carousel-waterfall-edge {
    background: transparent;
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  /* Override the legacy match-card :hover specificity as well: otherwise
     old hover: opacity 1 would beat the new shared pointer-distance variable,
     making match and standings visibly different on hover. */
  :is(.spotlight-carousel, .standings-controls) >
  .carousel-waterfall-edge:not(:disabled):is(:hover, :focus-visible)::before {
    opacity: var(--edge-opacity, var(--bw-edge-background-alpha));
  }
  :is(.spotlight-carousel, .standings-controls) > .carousel-waterfall-edge::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    opacity: var(--edge-opacity, var(--bw-edge-background-alpha));
    -webkit-backdrop-filter: var(--bw-edge-blur);
    backdrop-filter: var(--bw-edge-blur);
    transition: opacity 90ms linear;
    box-shadow: none;
    pointer-events: none;
  }
  :is(.spotlight-carousel, .standings-controls) >
  .carousel-waterfall-edge:is(.spotlight-edge-previous, .standings-step-previous)::before {
    background: linear-gradient(90deg,
      rgba(186, 230, 253, 0.30) 0%,
      rgba(125, 211, 252, 0.19) 18%,
      rgba(96, 165, 250, 0.09) 44%,
      rgba(96, 165, 250, 0.025) 68%,
      transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.86) 36%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.86) 36%, transparent 100%);
  }
  :is(.spotlight-carousel, .standings-controls) >
  .carousel-waterfall-edge:is(.spotlight-edge-next, .standings-step-next)::before {
    background: linear-gradient(270deg,
      rgba(186, 230, 253, 0.30) 0%,
      rgba(125, 211, 252, 0.19) 18%,
      rgba(96, 165, 250, 0.09) 44%,
      rgba(96, 165, 250, 0.025) 68%,
      transparent 100%);
    -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.86) 36%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.86) 36%, transparent 100%);
  }
  :is(.spotlight-carousel, .standings-controls) > .carousel-waterfall-edge span,
  :is(.spotlight-carousel, .standings-controls) > .carousel-waterfall-edge:not(:disabled):is(:hover, :focus-visible) span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.8rem;
    border: 0;
    background: transparent;
    color: rgba(248, 250, 252, 0.96);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    opacity: var(--edge-arrow-opacity, 0);
    text-shadow: 0 0 10px rgba(191, 219, 254, 0.78),
      0 3px 14px rgba(0, 0, 0, 0.46);
    transform: translateX(0) scale(0.9);
    transition: opacity 150ms ease, transform 180ms ease;
  }
  :is(.spotlight-carousel, .standings-controls) > .carousel-waterfall-edge:not(:disabled):is(:hover, :focus-visible) span {
    transform: translateX(0) scale(1);
  }
  :is(.spotlight-carousel, .standings-controls) > .carousel-waterfall-edge:disabled {
    opacity: 0;
    pointer-events: none;
  }
  /* This special hit-zone offset is interaction-only: its visual reaches
     over the header, but never steals Edit or the match category pill. */
  .spotlight-carousel > .carousel-waterfall-edge.spotlight-edge-next {
    top: 5.75rem;
    overflow: visible;
  }
  .spotlight-carousel > .carousel-waterfall-edge.spotlight-edge-next::before {
    top: -5.75rem;
    height: calc(100% + 5.75rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(.spotlight-carousel, .standings-controls) > .carousel-waterfall-edge::before,
  :is(.spotlight-carousel, .standings-controls) > .carousel-waterfall-edge span {
    transition: none;
  }
}

/* Shared component-class entry points. Old cards and new cards use the same
 * tokens even if their internal layouts (grid/flex) differ. */
.bw-card-frame {
  border-color: var(--bw-card-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.bw-card-frame .bw-card-title {
  font-size: var(--bw-card-title-size);
  font-weight: var(--bw-card-title-weight);
  line-height: var(--bw-card-title-leading);
  letter-spacing: var(--bw-card-title-tracking);
}
.bw-card-heading { align-items: flex-start; }
.calendar-card-footer.bw-card-footer {
  min-height: 0;
  margin: 0;
  border-top: 0;
  pointer-events: none;
}

/* v8.11.2 — probability and RSVP tracks share the full-width row just
   below the venue/address, rather than inserting odds above the address. */
.spotlight-content {
  grid-template-areas:
    "heading heading" "meta meta" "location weather" "form form"
    "capacity capacity" "actions actions" "hint hint";
}
.next-game-form {
  display: grid !important;
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 0.95rem 0 0;
  gap: 0.5rem;
  white-space: normal;
  line-height: 1.4;
}
.next-game-form[hidden] { display: none !important; }
.win-chance-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  font-size: var(--type-caption);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.win-chance-labels span:nth-child(1) { text-align: left; color: #a7f3d0; }
.win-chance-labels span:nth-child(2) { text-align: center; color: #e2e8f0; }
.win-chance-labels span:nth-child(3) { text-align: right; color: #fecdd3; }
.win-chance-track {
  display: flex;
  width: 100%;
  height: 0.48rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}
.win-chance-fill { display: block; height: 100%; flex: 0 0 auto; }
.win-chance-win { background: #4ade80; }
.win-chance-draw { background: #a7b4c8; }
.win-chance-loss { background: #fb7185; }
@media (max-width: 390px) {
  .next-game-form { padding: 0; }
  .win-chance-labels { font-size: 0.66rem; }
}

/* v8.12.0: guest-first device preferences; protected administration is optional. */
#guest-settings-view { padding: 0.35rem 0 0.7rem; }
#guest-settings-view .settings-form { margin-top: 0.9rem; }
.admin-settings-details { margin-top: 0.8rem; }
.admin-settings-details > summary { cursor: pointer; padding: 0.75rem 0; font-weight: 700; color: var(--muted); }
.admin-settings-details[open] > summary { color: var(--accent, #4ade80); }
.win-chance-labels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.win-chance-labels span:nth-child(2) { text-align: right; color: #fecdd3; }

/* v8.12.1: individual match dots, not a number or extra selection pills. */
.calendar-signal { display:flex; align-items:center; justify-content:center; gap:0.18rem; min-height:0.72rem; }
.calendar-signal-dot { display:block; width:0.29rem; height:0.29rem; flex:0 0 auto; background:#4ade80; border-radius:50%; box-shadow:0 0 5px rgba(74,222,128,0.25); }
.calendar-game-picker { display:none !important; }

/* v8.14.0 explicit route switch; each installed app keeps its own launch identity. */
.app-version-settings { display: grid; gap: .65rem; margin-bottom: 1rem; }
.app-version-settings .hint { margin: 0; }
.app-version-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .3rem; border: 1px solid var(--border); border-radius: 16px; background: rgba(6, 18, 22, .35); }
.app-version-switch a { display: grid; place-items: center; min-height: 44px; padding: .65rem .5rem; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-size: var(--type-small); font-weight: 600; text-decoration: none; }
.app-version-switch a[aria-current="page"] { color: #e0f2fe; border-color: rgba(125, 211, 252, .22); background: linear-gradient(135deg, rgba(56, 189, 248, .15), rgba(52, 211, 153, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.app-version-settings > button { justify-self: start; }
#v2-offline-tools { color: var(--muted); font-size: var(--type-small); }
#v2-offline-tools summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
#v2-offline-tools summary::after { content: "+"; margin-left: .6rem; }
#v2-offline-tools[open] summary::after { content: "−"; }
#v2-offline-tools button { margin-top: .65rem; }

/* v9.0.0 keep native notification checks beside their label text. */
.notification-preference-options input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  flex: 0 0 1rem;
  padding: 0;
  margin: 0;
  align-self: center;
}

/* Channel selection reuses existing device settings typography and spacing. */
.app-channel-settings { display: grid; gap: .5rem; }
.app-channel-select { width: 100%; min-height: 44px; border-radius: 12px;
  font: inherit; font-size: 1rem; color: inherit; background: var(--surface, #12292a);
  border: 1px solid var(--border, rgba(255,255,255,.2)); padding: .65rem .75rem; }
.app-channel-select:focus-visible { outline: 2px solid #86efac; outline-offset: 3px; }
