    .app-shell {
      position: relative;
      width: 100vw;
      height: 100vh;
      padding: 16px 22px 12px;
      display: grid;
      grid-template-rows: 1fr var(--footer-height);
      gap: 10px;
    }

    .app-shell::before,
    .app-shell::after {
      content: "";
      position: absolute;
      inset: auto auto 14% -5%;
      width: 320px;
      height: 320px;
      border-radius: 50%;
      background: rgba(180, 83, 9, 0.08);
      filter: blur(12px);
      pointer-events: none;
    }

    .app-shell::after {
      inset: 10% -4% auto auto;
      background: rgba(21, 128, 61, 0.08);
    }

    .display-pairing {
      position: relative;
      z-index: 1;
      display: grid;
      place-items: center;
      min-height: 0;
    }

    .display-pairing[hidden] {
      display: none !important;
    }

    .display-pairing-card {
      width: min(100%, 560px);
      padding: 36px 34px;
      border-radius: var(--radius-lg);
      background: var(--panel);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
      display: grid;
      gap: 18px;
      text-align: center;
    }

    .display-pairing-logo {
      display: block;
      width: 160px;
      max-width: 100%;
      height: auto;
      margin: 0 auto;
      opacity: 0.92;
      filter: brightness(0.97);
    }

    html[data-scheme="slate"] .display-pairing-logo {
      filter: none;
    }

    html[data-scheme="dark"] .display-pairing-logo {
      filter: saturate(0) brightness(0) invert(0.93) sepia(0.22) saturate(0.7) brightness(1.02);
    }

    .display-pairing-title {
      margin: 0;
      font-size: clamp(2rem, 4vw, 2.8rem);
      line-height: 1.05;
    }

    .display-pairing-copy,
    .display-pairing-help,
    .display-pairing-error {
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
    }

    .display-pairing-form {
      display: grid;
      gap: 14px;
    }

    .display-pairing-label {
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .display-pairing-input {
      width: min(100%, 320px);
      margin: 0 auto;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: var(--panel-strong);
      color: var(--ink);
      font: inherit;
      font-size: clamp(1.8rem, 5vw, 2.5rem);
      font-weight: 800;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      text-align: center;
      padding: 18px 22px;
    }

    .display-pairing-input:focus-visible {
      outline: 3px solid var(--color-accent-subtle);
      outline-offset: 2px;
      border-color: var(--color-accent);
    }

    .display-pairing-button {
      justify-self: center;
      min-width: min(100%, 320px);
      border: 0;
      border-radius: var(--button-radius);
      background: var(--color-accent);
      color: var(--color-text-on-accent);
      font: inherit;
      font-weight: 800;
      padding: 14px 22px;
      cursor: pointer;
      transition: transform 140ms ease, filter 140ms ease, opacity 140ms ease;
    }

    .display-pairing-button:hover,
    .display-pairing-button:focus-visible {
      transform: translateY(-1px);
      filter: brightness(1.03);
    }

    .display-pairing-button:focus-visible {
      outline: 3px solid var(--color-accent-subtle);
      outline-offset: 2px;
    }

    .display-pairing-button:disabled {
      opacity: 0.7;
      cursor: wait;
      transform: none;
    }

    .display-pairing-error {
      min-height: 1.5em;
      color: var(--rose);
      font-weight: 700;
    }

    .display-pairing-version {
      margin-top: 4px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--muted);
      opacity: 0.62;
      text-transform: none;
    }

    #display-app[data-display-state="pairing"] .household-name {
      display: none;
    }

    .progress-bar {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 0 4px;
      min-height: var(--footer-height);
    }

    .household-name {
      display: inline-flex;
      align-items: center;
      min-width: 0;
      pointer-events: none;
      user-select: none;
    }

    .household-name__text {
      font-family: Righteous, "Bricolage Grotesque", Manrope, sans-serif;
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.13em;
      color: var(--amber);
      opacity: 0.52;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .household-logo {
      display: block;
      width: 120px;
      height: auto;
      max-width: 100%;
      opacity: 0.9;
      filter: brightness(0.97);
    }

    html[data-scheme="slate"] .household-logo {
      filter: none;
    }

    html[data-scheme="dark"] .household-logo {
      filter: saturate(0) brightness(0) invert(0.93) sepia(0.22) saturate(0.7) brightness(1.02);
    }

    .version-label {
      text-align: right;
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      color: var(--muted);
      opacity: 0.36;
      pointer-events: none;
      user-select: none;
      white-space: nowrap;
    }

    .footer-right {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
    }

    .display-celebration-debug {
      position: absolute;
      right: 4px;
      bottom: calc(100% - 8px);
      max-width: 180px;
      color: var(--muted);
      font-size: 0.58rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      line-height: 1.3;
      opacity: 0;
      pointer-events: none;
      text-align: right;
      transition: opacity 220ms ease;
    }

    .display-celebration-debug.is-visible {
      opacity: 0.48;
    }

    .last-synced-label {
      font-size: 0.56rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      color: var(--muted);
      opacity: 0.38;
      white-space: nowrap;
      user-select: none;
    }

    .sync-btn {
      background: none;
      border: 1px solid transparent;
      padding: 3px;
      cursor: pointer;
      color: var(--muted);
      opacity: 0.44;
      display: flex;
      align-items: center;
      border-radius: var(--button-radius);
      transition: opacity 150ms ease, background-color 150ms ease, border-color 150ms ease;
    }

    .sync-btn:hover,
    .sync-btn:focus-visible {
      opacity: 0.9;
      background: rgba(124, 96, 69, 0.1);
      border-color: var(--border);
    }

    .sync-btn:focus-visible {
      outline: none;
    }

    .sync-btn svg {
      width: 12px;
      height: 12px;
    }

    .sync-btn.is-syncing svg {
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* ── Dark color scheme ── */
    html[data-scheme="dark"] {
      --bg: #1c1917;
      --bg-soft: #231f1c;
      --panel: rgba(30, 26, 24, 0.94);
      --panel-strong: rgba(36, 31, 28, 0.98);
      --ink: #f2ede6;
      --muted: #a89990;
      --border: rgba(255, 240, 220, 0.11);
      /* Legacy color tokens — being migrated to --color-accent and --color-accent-subtle. Do not use for new components. */
      --amber: #f59e0b;
      --amber-soft: rgba(245, 158, 11, 0.18);
      /* Semantic interaction tokens — use these for any new interactive/active states. See design token audit ticket for full migration plan. */
      --color-accent: #f59e0b;
      --color-accent-subtle: rgba(245, 158, 11, 0.18);
      --color-text-on-accent: #ffffff;
      --sage: #22c55e;
      --sage-soft: rgba(34, 197, 94, 0.14);
      --rsvp-clear: #4ade80;
      --rsvp-flagged: #f59e0b;
      --rsvp-pending-bg: rgba(59, 130, 246, 0.18);
      --rsvp-review-bg-clear: rgba(34, 197, 94, 0.18);
      --rsvp-review-bg-flagged: rgba(245, 158, 11, 0.18);
      --rsvp-attending-pill-bg: rgba(34, 197, 94, 0.2);
      --rsvp-attending-pill-color: #bbf7d0;
      --rsvp-undercount-pill-bg: rgba(245, 158, 11, 0.24);
      --rsvp-undercount-pill-color: #fcd34d;
      --rose: #fb7185;
      --rose-soft: rgba(251, 113, 133, 0.14);
      --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
      --display-nav-active-bg: var(--color-accent-subtle);
      --display-nav-active-border: transparent;
    }

    html[data-scheme="dark"] body {
      background-image:
        radial-gradient(circle at top left, rgba(180, 83, 9, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(21, 128, 61, 0.07), transparent 30%),
        linear-gradient(135deg, #221e1b 0%, #1c1917 44%, #17140f 100%);
    }

    /* ── Slate color scheme ── */
    html[data-scheme="slate"] {
      --bg: #e2e8f0;
      --bg-soft: #edf2f7;
      --panel: rgba(248, 250, 252, 0.92);
      --panel-strong: rgba(255, 255, 255, 0.98);
      --ink: #0f172a;
      --muted: #64748b;
      --border: rgba(15, 23, 42, 0.11);
      /* Legacy color tokens — being migrated to --color-accent and --color-accent-subtle. Do not use for new components. */
      --amber: #0369a1;
      --amber-soft: rgba(3, 105, 161, 0.11);
      /* Semantic interaction tokens — use these for any new interactive/active states. See design token audit ticket for full migration plan. */
      --color-accent: #0369a1;
      --color-accent-subtle: rgba(3, 105, 161, 0.11);
      --color-text-on-accent: #ffffff;
      --sage: #0d9488;
      --sage-soft: rgba(13, 148, 136, 0.13);
      --rsvp-clear: #0f766e;
      --rsvp-flagged: #ca8a04;
      --rsvp-pending-bg: rgba(59, 130, 246, 0.14);
      --rsvp-review-bg-clear: rgba(13, 148, 136, 0.16);
      --rsvp-review-bg-flagged: rgba(202, 138, 4, 0.16);
      --rsvp-attending-pill-bg: rgba(13, 148, 136, 0.18);
      --rsvp-attending-pill-color: #0f766e;
      --rsvp-undercount-pill-bg: rgba(202, 138, 4, 0.18);
      --rsvp-undercount-pill-color: #a16207;
      --rose: #be123c;
      --rose-soft: rgba(190, 18, 60, 0.11);
      --shadow: 0 18px 44px rgba(15, 23, 42, 0.11);
      --display-nav-active-bg: var(--color-accent);
      --display-nav-active-border: transparent;
    }

    html[data-scheme="slate"] body {
      background-image:
        radial-gradient(circle at top left, rgba(3, 105, 161, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(13, 148, 136, 0.09), transparent 30%),
        linear-gradient(135deg, #edf2f7 0%, #e2e8f0 44%, #cbd5e1 100%);
    }

    /* ── Dark scheme component overrides ──────────────────────────────────────
       Purpose: fix white-on-white text — card surfaces that use hardcoded
       rgba(255,255,255,...) become invisible in dark mode because --ink is
       light (#f2ede6). Replace with dark semi-transparent surfaces.
    ── */

    /* Glow orbs */
    html[data-scheme="dark"] .app-shell::before {
      background: rgba(245, 158, 11, 0.07);
    }

    /* Nav arrows */
    html[data-scheme="dark"] .nav-arrow {
      background: rgba(255, 255, 255, 0.07);
      color: var(--ink);
      box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    }
    html[data-scheme="dark"] .nav-arrow:hover,
    html[data-scheme="dark"] .nav-arrow:focus-visible {
      background: rgba(255, 255, 255, 0.12);
    }

    /* Cal nav button */
    html[data-scheme="dark"] .cal-nav-btn {
      background: rgba(255, 255, 255, 0.07);
    }

    /* Eyebrow badge */
    html[data-scheme="dark"] .eyebrow {
      background: rgba(245, 158, 11, 0.14);
    }

    /* Calendar day columns */
    html[data-scheme="dark"] .day-column {
      background: rgba(255, 255, 255, 0.06);
      border-color: var(--border);
    }
    html[data-scheme="dark"] .day-column.today {
      background: rgba(245, 158, 11, 0.14);
      border-color: rgba(245, 158, 11, 0.28);
      box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.08);
    }
    html[data-scheme="dark"] .day-header {
      border-bottom-color: var(--border);
    }

    /* Event cards */
    html[data-scheme="dark"] .event-card {
      background: rgba(255, 255, 255, 0.07);
      border-color: var(--border);
    }
    html[data-scheme="dark"] .event-card[role="button"]:hover {
      background: rgba(245, 158, 11, 0.12);
    }

    /* Month grid */
    html[data-scheme="dark"] .month-day {
      background: rgba(255, 255, 255, 0.06);
      border-color: var(--border);
    }
    html[data-scheme="dark"] .month-day--today {
      background: rgba(245, 158, 11, 0.14);
      border-color: rgba(245, 158, 11, 0.28);
      box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.08);
    }
    html[data-scheme="dark"] .month-event {
      background: rgba(255, 255, 255, 0.09);
    }
    html[data-scheme="dark"] .month-event:hover {
      background: rgba(245, 158, 11, 0.16);
    }
    html[data-scheme="dark"] .month-more-pill {
      background: rgba(245, 158, 11, 0.14);
    }
    html[data-scheme="dark"] .month-more-pill:hover {
      background: rgba(245, 158, 11, 0.24);
    }

    /* Modal */
    html[data-scheme="dark"] .display-modal-backdrop {
      background: rgba(0, 0, 0, 0.62);
    }
    html[data-scheme="dark"] .day-event-item {
      background: rgba(255, 255, 255, 0.07);
      border-color: var(--border);
    }
    html[data-scheme="dark"] .day-event-item:hover {
      background: rgba(245, 158, 11, 0.12);
    }

    /* To-do cards */
    html[data-scheme="dark"] .todo-card {
      background: rgba(255, 255, 255, 0.06);
      border-color: var(--border);
    }
    html[data-scheme="dark"] .todo-card--overdue {
      background: rgba(251, 113, 133, 0.12);
      border-left-color: #fb7185;
      box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.08);
    }
    html[data-scheme="dark"] .todo-assignee--other {
      background: rgba(255, 255, 255, 0.1);
      color: #e7ddd5;
    }
    html[data-scheme="dark"] .todo-due-pill--overdue {
      background: rgba(251, 113, 133, 0.18);
      color: #fecdd3;
    }
    html[data-scheme="dark"] .todo-due-pill--today {
      background: rgba(34, 197, 94, 0.18);
      color: #bbf7d0;
    }
    html[data-scheme="dark"] .todo-due-pill--soon {
      background: rgba(251, 146, 60, 0.18);
      color: #fed7aa;
    }
    html[data-scheme="dark"] .todo-due-pill--future {
      background: rgba(255, 255, 255, 0.1);
      color: #e7ddd5;
    }

    /* Meal cards */
    html[data-scheme="dark"] .meal-card {
      background: rgba(255, 255, 255, 0.06);
      border-color: var(--border);
    }
    html[data-scheme="dark"] .meal-card.today {
      background: rgba(245, 158, 11, 0.18);
      border-color: rgba(245, 158, 11, 0.3);
    }
    html[data-scheme="dark"] .meal-note-card {
      background: rgba(245, 158, 11, 0.12);
      border-color: rgba(245, 158, 11, 0.22);
    }

    /* Countdown cards */
    html[data-scheme="dark"] .countdown-card {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
      border-color: var(--border);
      box-shadow: 0 20px 36px rgba(0, 0, 0, 0.32);
    }
    html[data-scheme="dark"] .countdown-card--variant-2 {
      background: linear-gradient(180deg, rgba(34, 197, 94, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
      border-color: rgba(34, 197, 94, 0.18);
    }
    html[data-scheme="dark"] .countdown-card--variant-3 {
      background: linear-gradient(180deg, rgba(251, 113, 133, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
      border-color: rgba(251, 113, 133, 0.18);
    }
    html[data-scheme="dark"] .countdown-card--variant-4 {
      background: linear-gradient(180deg, rgba(139, 92, 246, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
      border-color: rgba(139, 92, 246, 0.18);
    }
    html[data-scheme="dark"] .countdown-icon {
      background: rgba(255, 255, 255, 0.10);
    }
    html[data-scheme="dark"] .countdown-photo-wrap {
      background: rgba(245, 158, 11, 0.16);
    }

    /* Display nav */
    html[data-scheme="dark"] .progress-bar > .display-nav {
      background: transparent;
      border-color: transparent;
      box-shadow: none;
      backdrop-filter: none;
    }
    html[data-scheme="dark"] .progress-bar > .display-nav > .display-nav-button {
      background: rgba(255, 255, 255, 0.04);
      border-color: rgba(255, 255, 255, 0.14);
      color: rgba(255, 255, 255, 0.78);
    }
    html[data-scheme="dark"] .progress-bar > .display-nav > .display-nav-button.is-active {
      background: var(--display-nav-active-bg);
      border-color: var(--display-nav-active-border);
      color: #fff7ed;
    }
    html[data-scheme="dark"] .progress-bar > .display-nav .display-nav-badge {
      color: #fff7ed;
    }

    /* RSVP screen */
    html[data-scheme="dark"] .rsvp-screen .panel {
      background: var(--panel-strong);
      border-color: var(--border);
    }
    html[data-scheme="dark"] .rsvp-screen .eyebrow {
      background: rgba(251, 113, 133, 0.14);
    }
    html[data-scheme="dark"] .hero-card,
    html[data-scheme="dark"] .names-card {
      background: rgba(255, 255, 255, 0.06);
      border-color: var(--border);
    }
    html[data-scheme="dark"] .breakdown-row {
      background: rgba(59, 130, 246, 0.14);
      border-color: rgba(96, 165, 250, 0.18);
    }
    html[data-scheme="dark"] .breakdown-row:nth-child(2) {
      background: rgba(239, 68, 68, 0.14);
      border-color: rgba(248, 113, 113, 0.18);
    }
    html[data-scheme="dark"] .breakdown-row:nth-child(3) {
      background: rgba(255, 255, 255, 0.07);
      border-color: rgba(255, 240, 220, 0.11);
    }
    html[data-scheme="dark"] .name-pill {
      background: rgba(255, 255, 255, 0.07);
    }
    html[data-scheme="dark"] .name-pill--attending {
      background: rgba(34, 197, 94, 0.12);
    }
    html[data-scheme="dark"] .name-pill--declined {
      background: rgba(239, 68, 68, 0.12);
    }
    html[data-scheme="dark"] .name-pill--pending {
      background: rgba(255, 255, 255, 0.08);
    }
    html[data-scheme="dark"] .name-pill--more {
      background: rgba(251, 113, 133, 0.12);
    }
    html[data-scheme="dark"] .name-status {
      background: rgba(255, 255, 255, 0.10);
    }
    html[data-scheme="dark"] .name-pill--attending .name-status {
      background: var(--rsvp-attending-pill-bg);
      color: var(--rsvp-attending-pill-color);
    }
    html[data-scheme="dark"] .name-pill--undercount .name-status {
      background: var(--rsvp-undercount-pill-bg);
      color: var(--rsvp-undercount-pill-color);
    }
    html[data-scheme="dark"] .name-pill--declined .name-status {
      background: rgba(239, 68, 68, 0.2);
      color: #fecaca;
    }
    html[data-scheme="dark"] .name-pill--pending .name-status {
      background: rgba(255, 255, 255, 0.14);
      color: #e7ddd5;
    }
    html[data-scheme="dark"] .rsvp-detail-item {
      background: rgba(255, 255, 255, 0.06);
      border-color: rgba(255, 240, 220, 0.11);
      color: var(--ink);
    }

    /* ── Slate scheme component overrides ─────────────────────────────────────
       Purpose: replace hardcoded amber/warm rgba() values with slate-blue
       equivalents so warm palette doesn't bleed through. CSS variable
       overrides already handle --amber / --amber-soft, but many surfaces
       use literal rgba(180,83,9,...) or rgba(247,217,170,...) directly.
    ── */

    /* Glow orbs */
    html[data-scheme="slate"] .app-shell::before {
      background: rgba(3, 105, 161, 0.08);
    }

    /* Eyebrow badge */
    html[data-scheme="slate"] .eyebrow {
      background: rgba(3, 105, 161, 0.10);
    }

    /* Calendar today */
    html[data-scheme="slate"] .day-column.today {
      background: rgba(3, 105, 161, 0.10);
      border-color: rgba(3, 105, 161, 0.22);
      box-shadow: inset 0 0 0 1px rgba(3, 105, 161, 0.06);
    }
    html[data-scheme="slate"] .month-day--today {
      background: rgba(3, 105, 161, 0.10);
      border-color: rgba(3, 105, 161, 0.22);
      box-shadow: inset 0 0 0 1px rgba(3, 105, 161, 0.06);
    }

    /* Month event hover / pill */
    html[data-scheme="slate"] .month-event:hover {
      background: rgba(3, 105, 161, 0.10);
    }
    html[data-scheme="slate"] .month-more-pill {
      background: rgba(3, 105, 161, 0.10);
    }
    html[data-scheme="slate"] .month-more-pill:hover {
      background: rgba(3, 105, 161, 0.18);
    }

    /* Event card hover */
    html[data-scheme="slate"] .event-card[role="button"]:hover {
      background: rgba(3, 105, 161, 0.07);
    }
    html[data-scheme="slate"] .day-event-item:hover {
      background: rgba(3, 105, 161, 0.07);
    }

    /* Nav arrow hover */
    html[data-scheme="slate"] .nav-arrow:hover,
    html[data-scheme="slate"] .nav-arrow:focus-visible {
      color: var(--amber);
    }

    /* Meal today + note */
    html[data-scheme="slate"] .meal-card.today {
      background: rgba(3, 105, 161, 0.14);
      border-color: rgba(3, 105, 161, 0.24);
    }
    html[data-scheme="slate"] .meal-note-card {
      background: rgba(3, 105, 161, 0.08);
      border-color: rgba(3, 105, 161, 0.16);
    }

    /* Countdown card — replace warm amber gradient with neutral */
    html[data-scheme="slate"] .countdown-card {
      background: linear-gradient(180deg, rgba(3, 105, 161, 0.10) 0%, rgba(248, 250, 252, 0.92) 100%);
      border-color: rgba(3, 105, 161, 0.14);
      box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
    }
    html[data-scheme="slate"] .countdown-photo-wrap {
      background: rgba(3, 105, 161, 0.12);
    }

    /* RSVP screen */
    html[data-scheme="slate"] .rsvp-screen .panel {
      background: var(--panel-strong);
      border-color: var(--border);
    }
    html[data-scheme="slate"] .breakdown-row {
      background: rgba(3, 105, 161, 0.08);
      border-color: rgba(3, 105, 161, 0.14);
    }
    html[data-scheme="slate"] .breakdown-row:nth-child(2) {
      background: rgba(190, 24, 93, 0.08);
    }
    html[data-scheme="slate"] .breakdown-row:nth-child(3) {
      background: rgba(148, 163, 184, 0.18);
    }
    html[data-scheme="slate"] .name-pill--more {
      background: rgba(190, 18, 60, 0.08);
    }
    html[data-scheme="slate"] .name-pill--undercount .name-status {
      background: var(--rsvp-undercount-pill-bg);
      color: var(--rsvp-undercount-pill-color);
    }

    .viewport {
      position: relative;
      z-index: 1;
      overflow: hidden;
      border-radius: 34px;
      touch-action: pan-y;
      min-width: 0;
    }

    .track {
      display: flex;
      height: 100%;
      width: 100%;
      transition: transform var(--transition);
      will-change: transform;
    }

    .screen {
      flex: 0 0 100%;
      min-width: 100%;
      height: 100%;
      padding: 16px;
      display: flex;
      overflow: hidden;
    }

    .screen--disabled {
      display: none !important;
    }

    .screen--empty-hidden {
      display: none !important;
    }

    .panel {
      width: 100%;
      height: 100%;
      padding: 12px 15px;
      border-radius: var(--radius-lg);
      background: var(--panel);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .nav-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 84px;
      border: 0;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 250, 243, 0.48);
      color: rgba(48, 38, 29, 0.72);
      box-shadow: 0 10px 24px rgba(98, 73, 46, 0.08);
      backdrop-filter: blur(12px);
      z-index: 3;
      cursor: pointer;
      transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
      opacity: 0.72;
    }

    .nav-arrow:hover,
    .nav-arrow:focus-visible {
      background: rgba(255, 250, 243, 0.78);
      color: var(--amber);
      opacity: 1;
      outline: none;
    }

    .nav-arrow--left {
      left: 8px;
    }

    .nav-arrow--right {
      right: 8px;
    }

    .nav-arrow svg {
      width: 22px;
      height: 22px;
      stroke-width: 2.8;
    }

    .screen-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .cal-nav-controls {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    .cal-nav-btn {
      background: rgba(255, 250, 243, 0.88);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 5px 10px;
      color: var(--ink);
      cursor: pointer;
      font-family: inherit;
      font-size: 0.75rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 3px;
      transition: background 150ms ease, color 150ms ease;
      line-height: 1;
    }

    .cal-nav-btn:hover,
    .cal-nav-btn:focus-visible {
      background: var(--amber-soft);
      color: var(--amber);
      outline: none;
    }

    .cal-nav-btn--today {
      padding: 5px 12px;
      letter-spacing: 0.02em;
    }

    .cal-nav-btn svg {
      width: 13px;
      height: 13px;
      stroke-width: 2.8;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: var(--tag-radius);
      background: rgba(180, 83, 9, 0.10);
      color: var(--amber);
      font-family: "Bricolage Grotesque", Manrope, sans-serif;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    h1,
    h2,
    h3,
    p {
      margin: 0;
    }

    .calendar-layout {
      display: flex;
      flex-wrap: nowrap;
      gap: 14px;
      flex: 1;
      min-height: 0;
    }

    /* ── Calendar screen — tighter layout for wider/shorter tablets ── */
    .screen--calendar .panel {
      padding: 10px 12px;
    }

    /* ── Month screen — tighter header→grid gap ── */
    .screen--month .month-layout {
      gap: 5px;
    }

    .screen--calendar .calendar-layout {
      gap: 8px;
    }

    .screen--calendar .day-column {
      padding: 10px 10px 8px;
      gap: 8px;
    }

    .screen--calendar .event-card {
      padding: 8px 10px;
      min-height: 0;
    }

    .screen--calendar .event-title {
      font-size: 0.95rem;
    }

    .screen--calendar .event-time {
      font-size: 0.75rem;
    }

    .day-column {
      flex: 1 1 0;
      min-width: 0;
      padding: 16px 14px 14px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.52);
      border: 1px solid rgba(124, 96, 69, 0.12);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .day-column.today {
      background: rgba(247, 217, 170, 0.6);
      border-color: rgba(180, 83, 9, 0.22);
      box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.08);
    }

    .day-header {
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(124, 96, 69, 0.12);
    }

    .day-name {
      font-size: 1.12rem;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      word-break: keep-all;
    }

    .event-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 0;
    }

    .event-card {
      padding: 12px;
      border-radius: var(--tag-radius);
      background: rgba(255, 250, 243, 0.94);
      border: 1px solid rgba(124, 96, 69, 0.1);
      min-height: 88px;
    }

    .event-time {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .event-title {
      margin-top: 5px;
      font-size: 1.08rem;
      font-weight: 700;
      line-height: 1.25;
      word-break: keep-all;
      overflow-wrap: anywhere;
    }

    .event-empty {
      margin-top: auto;
      font-size: 1rem;
      color: var(--muted);
      opacity: 0.8;
    }

    .month-layout {
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 8px;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }

    .month-weekdays,
    .month-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 8px;
    }

    .month-weekday {
      font-size: 0.78rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      text-align: center;
    }

    .month-grid {
      min-height: 0;
      overflow: hidden;
      grid-auto-rows: minmax(0, 1fr);
    }

    .month-day {
      min-width: 0;
      min-height: 0;
      padding: 8px 10px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.56);
      border: 1px solid rgba(124, 96, 69, 0.12);
      display: flex;
      flex-direction: column;
      gap: 6px;
      overflow: hidden;
    }

    .month-day--outside {
      opacity: 0.48;
    }

    .month-day--today {
      background: rgba(247, 217, 170, 0.58);
      border-color: rgba(180, 83, 9, 0.22);
      box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.08);
    }

    .month-date {
      font-size: 0.88rem;
      font-weight: 800;
      color: var(--ink);
      line-height: 1;
    }

    .month-events {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-height: 0;
    }

    .month-event {
      padding: 2px 4px;
      border-radius: var(--tag-radius);
      background: rgba(255, 250, 243, 0.96);
      font-size: 0.7rem;
      line-height: 1.15;
      color: var(--ink);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-break: keep-all;
      cursor: pointer;
      transition: background 120ms ease;
    }

    .month-event--wrap {
      white-space: normal;
      display: block;
      overflow-wrap: anywhere;
    }

    .month-event:hover {
      background: rgba(180, 83, 9, 0.14);
    }

    .month-more-pill {
      padding: 2px 6px;
      border-radius: var(--tag-radius);
      background: rgba(180, 83, 9, 0.10);
      font-size: 0.65rem;
      font-weight: 800;
      color: var(--amber);
      cursor: pointer;
      white-space: nowrap;
      align-self: flex-start;
      transition: background 120ms ease;
    }

    .month-more-pill:hover {
      background: rgba(180, 83, 9, 0.20);
    }

    .event-card[role="button"] {
      cursor: pointer;
      transition: background 150ms ease;
    }

    .event-card[role="button"]:hover {
      background: rgba(247, 217, 170, 0.5);
    }

    /* ── Display-mode modals ── */
    .display-modal {
      position: fixed;
      inset: 0;
      z-index: 50;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .display-modal[hidden] {
      display: none;
    }

    #event-detail-modal {
      z-index: 60;
    }

    .display-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(48, 38, 29, 0.44);
      backdrop-filter: blur(5px);
    }

    .display-modal-sheet {
      position: relative;
      z-index: 1;
      background: var(--panel-strong);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      box-shadow: 0 24px 56px rgba(98, 73, 46, 0.22);
      width: min(520px, 100%);
      max-height: calc(100vh - 96px);
      overflow-y: auto;
      padding: 26px 28px;
    }

    .display-modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 16px;
    }

    .display-modal-title {
      font-family: "Bricolage Grotesque", Manrope, sans-serif;
      font-size: 1.3rem;
      font-weight: 800;
      line-height: 1.2;
      color: var(--ink);
    }

    .display-modal-close {
      background: rgba(124, 96, 69, 0.10);
      border: none;
      border-radius: var(--button-radius);
      width: 30px;
      height: 30px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      color: var(--muted);
      transition: background 150ms ease;
    }

    .display-modal-close:hover {
      background: rgba(124, 96, 69, 0.18);
    }

    .display-modal-close svg {
      width: 15px;
      height: 15px;
      stroke-width: 2.5;
    }

    .display-modal-body {
      display: flex;
      flex-direction: column;
      gap: 11px;
    }

    .event-detail-row {
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }

    .event-detail-row svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      margin-top: 2px;
      stroke-width: 2;
      color: var(--muted);
    }

    .event-detail-text {
      font-size: 1rem;
      font-weight: 500;
      line-height: 1.5;
      color: var(--ink);
    }

    .day-event-item {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.56);
      border: 1px solid rgba(124, 96, 69, 0.12);
      cursor: pointer;
      transition: background 150ms ease;
    }

    .day-event-item:hover {
      background: rgba(247, 217, 170, 0.32);
    }

    .day-event-item-time {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .day-event-item-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.3;
    }

    /* Error/retry block and empty state span both columns */
    .todo-list > .screen-error {
      column-span: all;
    }

    .todo-card--empty {
      column-span: all;
    }

    /* Two-column scrollable layout — fills left column first, then right */
    .todo-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      overflow-y: auto;
      flex: 1;
      min-height: 0;
      align-content: start;
    }

    .todo-card {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: start;
      gap: 12px;
      padding: 16px 18px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.56);
      border: 1px solid rgba(124, 96, 69, 0.12);
      border-left: 5px solid transparent;
      min-width: 0;
      transition: opacity 0.2s, transform 0.2s;
      break-inside: avoid;
    }

    .todo-card--overdue {
      background: rgba(190, 18, 60, 0.08);
      border-left-color: #be123c;
      box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.06);
    }

    .todo-card.is-completing {
      opacity: 0.75;
    }

    .todo-card.is-completing .todo-check {
      background: var(--amber);
      border-color: var(--amber);
      color: white;
    }

    .todo-card.is-completing .todo-check-icon {
      opacity: 1;
      transform: scale(1);
    }

    .todo-card.is-done {
      opacity: 0;
      transform: scale(0.92);
      pointer-events: none;
    }

    /* Rounded-square checkbox button */
    .todo-check-btn {
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      flex-shrink: 0;
      margin-top: 3px;
      touch-action: manipulation;
    }

    .todo-check {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      border: 2.5px solid var(--amber);
      display: flex;
      align-items: center;
      justify-content: center;
      color: transparent;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }

    .todo-check-btn:active .todo-check {
      background: var(--amber);
      color: white;
    }

    .todo-check-icon {
      width: 12px;
      height: 10px;
      opacity: 0;
      transform: scale(0.5);
      transition: opacity 0.15s, transform 0.15s;
    }

    .todo-copy {
      min-width: 0;
    }

    .todo-detail-trigger {
      width: 100%;
      border: none;
      padding: 0;
      background: transparent;
      color: inherit;
      text-align: left;
      cursor: pointer;
      touch-action: manipulation;
    }

    .todo-detail-trigger:focus-visible {
      outline: 3px solid var(--color-accent-subtle);
      outline-offset: 4px;
      border-radius: var(--button-radius);
    }

    .todo-title-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
    }

    .todo-title {
      font-size: 1.35rem;
      font-weight: 700;
      line-height: 1.25;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .todo-detail-indicator {
      width: 28px;
      height: 28px;
      border-radius: var(--button-radius);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      background: var(--color-accent-subtle);
      color: var(--color-accent);
    }

    .todo-detail-indicators {
      display: inline-flex;
      gap: 4px;
      flex-shrink: 0;
    }

    .todo-detail-indicator--muted {
      background: color-mix(in srgb, var(--muted) 12%, transparent);
      color: var(--muted);
    }

    .todo-detail-indicator svg {
      width: 14px;
      height: 14px;
      stroke-width: 2.2;
    }

    .todo-meta {
      margin-top: 6px;
      font-size: 1.05rem;
      color: var(--muted);
    }

    .todo-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 7px;
    }

    /* Person-color assignee pills — distinct from status colors (no amber/green/red) */
    .todo-assignee {
      padding: 5px 10px;
      border-radius: var(--tag-radius);
      font-size: 0.88rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .todo-assignee--other {
      background: rgba(121, 106, 94, 0.12);
      color: var(--muted);
    }

    /* Urgency-coded due date pills */
    .todo-due-pill {
      padding: 5px 10px;
      border-radius: var(--tag-radius);
      font-size: 0.88rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .todo-due-pill--overdue {
      background: rgba(190, 18, 60, 0.12);
      color: #be123c;
    }

    .todo-due-pill--today {
      background: rgba(21, 128, 61, 0.13);
      color: var(--sage);
    }

    .todo-due-pill--soon {
      /* distinctly orange — warmer and brighter than the amber used for "today" */
      background: rgba(234, 88, 12, 0.13);
      color: #ea580c;
    }

    .todo-due-pill--future {
      background: rgba(121, 106, 94, 0.1);
      color: var(--muted);
    }

    .todo-detail-text {
      font-size: 1rem;
      font-weight: 500;
      line-height: 1.6;
      color: var(--ink);
      white-space: normal;
    }

    .todo-detail-meta-row {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      padding-top: 2px;
    }

    .todo-detail-meta-row svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      margin-top: 2px;
      stroke-width: 2;
      color: var(--muted);
    }

    .todo-detail-meta-text {
      font-size: 1rem;
      font-weight: 600;
      line-height: 1.5;
      color: var(--muted);
    }

    .todo-celebration-layer {
      position: fixed;
      inset: 0;
      z-index: 30;
      pointer-events: none;
      overflow: hidden;
    }

    .todo-celebration-canvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .todo-gsap-piece {
      position: absolute;
      left: 0;
      top: 0;
      transform: translate(-50%, -50%);
      will-change: transform, opacity;
    }

    .todo-gsap-piece--bubble {
      border-radius: 999px;
      box-shadow:
        inset -4px -4px 0 rgba(255, 255, 255, 0.25),
        0 10px 18px rgba(48, 38, 29, 0.12);
    }

    .todo-fallback-particle {
      position: absolute;
      border-radius: 999px;
      transform: translate(-50%, -50%);
      opacity: 0;
      animation: todo-fallback-burst 950ms cubic-bezier(0.2, 0.8, 0.28, 1) forwards;
      box-shadow: 0 0 10px rgba(48, 38, 29, 0.12);
    }

    .todo-ripple-ring {
      position: absolute;
      width: 18px;
      height: 18px;
      border: 3px solid var(--amber);
      border-radius: 999px;
      transform: translate(-50%, -50%) scale(0.18);
      opacity: 0;
      animation: todo-ripple-ring 1200ms cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
    }

    .todo-thumbs-up {
      position: absolute;
      font-size: clamp(54px, 8vw, 88px);
      line-height: 1;
      transform: translate(-50%, -50%);
      filter: drop-shadow(0 14px 28px rgba(48, 38, 29, 0.18));
    }

    .todo-gsap-piece--ink {
      box-shadow: 0 14px 24px rgba(48, 38, 29, 0.14);
      transform: translate(-50%, -50%);
      will-change: transform, opacity;
    }

    .todo-ink-ring {
      position: absolute;
      width: 18px;
      height: 18px;
      border: 2px solid var(--amber);
      border-radius: 999px;
      transform: translate(-50%, -50%);
      opacity: 0.7;
    }

    @keyframes todo-ripple-ring {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.18);
      }
      8% {
        opacity: 0.7;
      }
      100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(15);
      }
    }

    @keyframes todo-fallback-burst {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.25);
      }
      18% {
        opacity: 1;
      }
      100% {
        opacity: 0;
        transform:
          translate(
            calc(-50% + var(--burst-x)),
            calc(-50% + var(--burst-y))
          )
          rotate(var(--burst-rotate))
          scale(0.85);
      }
    }

    /* Kept for RSVP screen — do not remove */
    .summary-label {
      font-size: 1rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--amber);
    }

    .summary-value {
      margin-top: 10px;
      font-family: "Bricolage Grotesque", Manrope, sans-serif;
      font-size: 3.3rem;
      font-weight: 800;
      line-height: 1;
    }

    .summary-text {
      margin-top: 10px;
      font-size: 1.15rem;
      line-height: 1.4;
      color: var(--muted);
    }

    .meals-layout {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: repeat(4, minmax(0, 1fr));
      grid-auto-flow: column;
      gap: 14px;
      flex: 1;
      min-height: 0;
    }

    .meal-card {
      padding: 12px 10px;
      border-radius: var(--radius-md);
      background: rgba(255, 255, 255, 0.56);
      border: 1px solid rgba(124, 96, 69, 0.12);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      text-align: center;
      min-height: 0;
      overflow: hidden;
    }

    .meal-card.today {
      background: rgba(247, 217, 170, 0.38);
      border-color: rgba(180, 83, 9, 0.22);
    }

    .meal-day {
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
    }

    .meal-name {
      font-family: Bricolage Grotesque, sans-serif;
      font-size: 1rem;
      font-weight: 700;
      line-height: 1.25;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      color: var(--ink);
      padding: 4px 0;
    }

    .meal-type {
      padding: 5px 10px;
      border-radius: var(--tag-radius);
      font-size: 0.72rem;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
    }

    .meal-type--cooking {
      background: rgba(180, 83, 9, 0.15);
      color: #b45309;
    }

    .meal-type--hellofresh {
      background: rgba(21, 128, 61, 0.15);
      color: #15803d;
    }

    .meal-type--going-out {
      background: rgba(79, 70, 229, 0.15);
      color: #4338ca;
    }

    .meal-type--delivery {
      background: rgba(234, 88, 12, 0.15);
      color: #ea580c;
    }

    .meal-type--pick-up {
      background: rgba(217, 119, 6, 0.15);
      color: #d97706;
    }

    .meal-type--fend-for-yourself {
      background: rgba(107, 114, 128, 0.15);
      color: #6b7280;
    }

    .meal-type--date-night {
      background: rgba(190, 24, 93, 0.15);
      color: #be185d;
    }

    .meal-note-card {
      border-radius: var(--tag-radius);
      background: rgba(247, 217, 170, 0.18);
      border: 1px solid rgba(180, 83, 9, 0.16);
      padding: 12px 12px 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-height: 0;
      overflow: hidden;
    }

    .meal-note-card--empty {
      background: transparent;
      border-style: dashed;
      border-color: rgba(124, 96, 69, 0.14);
    }

    .meal-note-label {
      font-size: 0.65rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--amber);
    }

    .meal-note-card--empty .meal-note-label {
      opacity: 0.4;
    }

    .meal-note-text {
      font-size: 0.88rem;
      font-weight: 500;
      line-height: 1.45;
      color: var(--ink);
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 5;
      -webkit-box-orient: vertical;
    }

    .meal-note-empty {
      font-size: 0.8rem;
      color: var(--muted);
      opacity: 0.5;
      font-style: italic;
    }

    .countdown-layout {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 1;
      min-height: 0;
    }

    .countdown-card {
      position: relative;
      width: 100%;
      height: 100%;
      padding: 28px 36px;
      border-radius: var(--radius-lg);
      overflow: hidden;
      background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.75), transparent 30%),
        linear-gradient(180deg, rgba(255, 244, 227, 0.96), rgba(255, 251, 245, 0.94));
      border: 1px solid rgba(180, 83, 9, 0.14);
      box-shadow: 0 20px 36px rgba(153, 104, 48, 0.12);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 14px;
      min-width: 0;
      text-align: center;
    }

    .countdown-card--photo {
      display: grid;
      grid-template-columns: minmax(260px, 40%) 1fr;
      padding: 0;
      gap: 0;
      align-items: stretch;
      text-align: left;
      overflow: hidden;
    }

    .countdown-photo-wrap {
      position: relative;
      overflow: hidden;
      background: rgba(180, 83, 9, 0.12);
    }

    .countdown-photo {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .countdown-photo-credit {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 20px 10px 8px;
      font-size: 0.58rem;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: rgba(255, 255, 255, 0.82);
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.36));
      pointer-events: none;
    }

    .countdown-copy {
      padding: 36px 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
      min-width: 0;
      width: 100%;
    }

    .countdown-card--photo .countdown-icon,
    .countdown-card--photo .countdown-days {
      align-self: flex-start;
    }

    .countdown-card--photo .countdown-name {
      max-width: 100%;
    }

    .countdown-card--photo .countdown-caption {
      max-width: 100%;
    }

    .countdown-card--variant-2 {
      background: linear-gradient(180deg, rgba(220, 239, 220, 0.94), rgba(247, 252, 245, 0.94));
      border-color: rgba(21, 128, 61, 0.14);
    }

    .countdown-card--variant-3 {
      background: linear-gradient(180deg, rgba(248, 220, 227, 0.94), rgba(255, 247, 249, 0.94));
      border-color: rgba(166, 76, 99, 0.14);
    }

    .countdown-card--variant-4 {
      background: linear-gradient(180deg, rgba(235, 229, 250, 0.94), rgba(251, 249, 255, 0.94));
      border-color: rgba(88, 84, 154, 0.14);
    }

    .countdown-icon {
      width: 96px;
      height: 96px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--tag-radius);
      background: rgba(255, 255, 255, 0.62);
    }

    .countdown-icon svg {
      width: 64px;
      height: 64px;
      stroke-width: 2;
    }

    .countdown-name {
      font-family: "Bricolage Grotesque", Manrope, sans-serif;
      font-size: 2.6rem;
      font-weight: 800;
      line-height: 1.1;
      min-height: 0;
      max-width: 100%;
      overflow: visible;
      display: block;
      white-space: normal;
      text-wrap: balance;
    }

    .countdown-days {
      display: flex;
      flex-direction: row;
      align-items: baseline;
      gap: 10px;
    }

    .countdown-value {
      font-family: "Bricolage Grotesque", Manrope, sans-serif;
      font-size: 7rem;
      font-weight: 800;
      line-height: 0.9;
      letter-spacing: -0.05em;
    }

    .countdown-unit {
      align-self: baseline;
      font-size: 0.95rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
      line-height: 1;
    }

    .countdown-caption {
      font-size: 1.05rem;
      line-height: 1.35;
      color: var(--muted);
      max-width: 100%;
      white-space: nowrap;
    }

    .rsvp-screen .panel {
      background: rgba(255, 248, 250, 0.96);
      border-color: rgba(166, 76, 99, 0.16);
    }

    .rsvp-screen .eyebrow {
      background: rgba(166, 76, 99, 0.12);
      color: var(--rose);
    }

    .rsvp-layout {
      display: grid;
      grid-template-rows: auto auto 1fr;
      gap: 16px;
      flex: 1;
      min-height: 0;
    }

    .hero-card,
    .breakdown-card,
    .names-card {
      border-radius: var(--radius-md);
      border: 1px solid rgba(166, 76, 99, 0.14);
      background: rgba(255, 255, 255, 0.58);
    }

    .hero-card {
      padding: 18px 22px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      min-height: 0;
    }

    .hero-card-main {
      display: grid;
      gap: 4px;
    }

    .hero-meta {
      margin-left: auto;
      display: grid;
      gap: 6px;
      text-align: right;
      align-self: flex-start;
    }

    .hero-meta-line {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--muted);
    }

    .hero-number {
      font-family: "Bricolage Grotesque", Manrope, sans-serif;
      font-size: 5.8rem;
      font-weight: 800;
      line-height: 0.92;
      color: var(--rose);
    }

    .hero-number--empty {
      color: #6b8fb8;
    }

    .hero-number--active {
      color: var(--rose);
    }

    .hero-label {
      margin-top: 8px;
      font-size: 1.1rem;
      font-weight: 700;
    }

    .breakdown-card {
      padding: 0;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      border: 0;
      background: transparent;
    }

    .breakdown-row {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(248, 220, 227, 0.3);
      font-size: 1rem;
      font-weight: 700;
      border: 1px solid rgba(166, 76, 99, 0.14);
    }

    .breakdown-row small {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--muted);
    }

    .breakdown-value-row {
      display: flex;
      align-items: baseline;
      gap: 6px;
      margin-top: 4px;
      flex-wrap: wrap;
    }

    .breakdown-row--button {
      width: 100%;
      border: 1px solid rgba(166, 76, 99, 0.14);
      cursor: pointer;
      text-align: left;
      font: inherit;
      color: inherit;
      transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
    }

    .breakdown-row--button:hover,
    .breakdown-row--button:focus-visible {
      transform: translateY(-1px);
      border-color: rgba(166, 76, 99, 0.28);
    }

    .breakdown-row--button:focus-visible {
      outline: 3px solid rgba(166, 76, 99, 0.28);
      outline-offset: 2px;
    }

    .breakdown-row--disabled {
      cursor: default;
    }

    .breakdown-row--disabled:hover,
    .breakdown-row--disabled:focus-visible {
      transform: none;
      border-color: rgba(166, 76, 99, 0.14);
      outline: none;
    }

    .breakdown-row:nth-child(2) {
      background: var(--rsvp-pending-bg);
    }

    .breakdown-row:nth-child(3) {
      background: var(--rsvp-review-bg-clear);
    }

    .names-card {
      padding: 18px;
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 12px;
      min-height: 0;
    }

    .names-title {
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--rose);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .names-list {
      min-height: 0;
      overflow-y: auto;
      position: relative;
      padding-right: 4px;
      display: grid;
    }

    .names-scroll {
      display: grid;
      gap: 10px;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      align-content: start;
      min-height: min-content;
    }

    .names-scroll--empty {
      min-height: 100%;
      grid-template-columns: 1fr;
      align-content: stretch;
    }

    .name-pill {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 14px;
      border-radius: var(--tag-radius);
      background: rgba(255, 255, 255, 0.74);
      font-size: 1rem;
      font-weight: 700;
      min-height: 56px;
      text-align: left;
    }

    .name-status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 8px;
      border-radius: var(--tag-radius);
      font-size: 0.78rem;
      font-weight: 800;
      white-space: nowrap;
      background: rgba(28, 25, 23, 0.08);
      color: var(--ink);
    }

    .name-pill--more {
      justify-content: center;
      color: var(--rose);
      background: rgba(248, 220, 227, 0.4);
    }

    .name-pill--attending {
      background: rgba(229, 246, 234, 0.92);
    }

    .rsvp-empty-state {
      display: grid;
      place-items: center;
      align-content: center;
      justify-items: center;
      gap: 12px;
      min-height: 100%;
      text-align: center;
      padding: 24px;
      color: #6b8fb8;
    }

    .rsvp-empty-icon {
      width: 52px;
      height: 52px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      border: 1px solid rgba(107, 143, 184, 0.28);
      background: rgba(191, 219, 254, 0.24);
      color: #6b8fb8;
    }

    .rsvp-empty-icon svg {
      width: 24px;
      height: 24px;
      stroke-width: 1.8;
    }

    .rsvp-empty-headline {
      font-size: 1.15rem;
      font-weight: 800;
      color: #6b8fb8;
    }

    .rsvp-empty-copy {
      max-width: 24rem;
      font-size: 0.98rem;
      line-height: 1.45;
      color: #6b8fb8;
    }

    .rsvp-detail-list {
      display: grid;
      gap: 10px;
      max-height: 56dvh;
      overflow-y: auto;
    }

    .rsvp-detail-item {
      padding: 12px 14px;
      border-radius: 16px;
      background: rgba(255, 248, 250, 0.92);
      border: 1px solid rgba(166, 76, 99, 0.12);
      font-weight: 700;
    }

    .rsvp-review-copy {
      display: grid;
      gap: 12px;
      line-height: 1.6;
    }

    .rsvp-review-list {
      margin-top: 2px;
    }

    .rsvp-review-item {
      display: grid;
      gap: 6px;
    }

    .rsvp-review-item-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .rsvp-review-item-meta {
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--muted);
    }

    .rsvp-review-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 9px;
      border-radius: var(--tag-radius);
      background: var(--rsvp-review-bg-flagged);
      color: var(--rsvp-flagged);
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }

    .rsvp-review-copy p {
      margin: 0;
    }

    .rsvp-review-cta {
      font-weight: 700;
      color: var(--rsvp-flagged);
    }

    .rsvp-stat-value--clear {
      color: var(--rsvp-clear);
    }

    .rsvp-stat-value--flagged {
      color: var(--rsvp-flagged);
    }

    #rsvp-review-trigger.breakdown-row--disabled {
      background: var(--rsvp-review-bg-clear);
    }

    #rsvp-review-trigger:not(.breakdown-row--disabled) {
      background: var(--rsvp-review-bg-flagged);
    }

    .name-pill--attending .name-status {
      background: var(--rsvp-attending-pill-bg);
      color: var(--rsvp-attending-pill-color);
    }

    .name-pill--undercount .name-status {
      background: var(--rsvp-undercount-pill-bg);
      color: var(--rsvp-undercount-pill-color);
    }

    .name-pill--declined {
      background: rgba(255, 243, 232, 0.92);
    }

    .name-pill--declined .name-status {
      background: rgba(234, 88, 12, 0.16);
      color: #c2410c;
    }

    .name-pill--pending {
      background: rgba(244, 232, 236, 0.92);
    }

    .name-pill--pending .name-status {
      background: rgba(107, 114, 128, 0.16);
      color: #6b7280;
    }

    .progress-bar > .display-nav {
      display: inline-flex;
      align-items: center;
      align-self: center;
      justify-self: center;
      gap: var(--display-nav-button-gap);
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: 0;
      box-shadow: none;
      backdrop-filter: none;
    }

    .progress-bar > .display-nav > .display-nav-button {
      flex: 0 0 var(--display-nav-button-width);
      width: var(--display-nav-button-width);
      min-width: var(--display-nav-button-width);
      height: var(--display-nav-button-height);
      padding: 0;
      border-radius: var(--button-radius);
      border: 1px solid rgba(124, 96, 69, 0.16);
      background: rgba(255, 253, 247, 0.82);
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    }

    .progress-bar > .display-nav > .display-nav-button:hover,
    .progress-bar > .display-nav > .display-nav-button:focus-visible {
      transform: translateY(-1px);
      border-color: var(--color-accent);
      color: var(--ink);
    }

    .progress-bar > .display-nav > .display-nav-button:focus-visible {
      outline: 3px solid rgba(28, 25, 23, 0.2);
      outline-offset: 2px;
    }

    .progress-bar > .display-nav > .display-nav-button.is-active {
      flex-basis: var(--display-nav-button-active-width);
      width: var(--display-nav-button-active-width);
      min-width: var(--display-nav-button-active-width);
      background: var(--display-nav-active-bg);
      border-color: var(--display-nav-active-border);
      color: var(--color-text-on-accent);
      box-shadow: 0 6px 14px rgba(180, 83, 9, 0.22);
    }

    .progress-bar > .display-nav > .display-nav-button .display-nav-icon {
      position: relative;
      width: var(--display-nav-icon-size);
      height: var(--display-nav-icon-size);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .progress-bar > .display-nav > .display-nav-button .display-nav-icon svg {
      width: var(--display-nav-icon-size);
      height: var(--display-nav-icon-size);
      stroke-width: 2;
    }

    .progress-bar > .display-nav > .display-nav-button .display-nav-icon--calendar svg {
      opacity: 0.9;
    }

    .progress-bar > .display-nav > .display-nav-button .display-nav-calendar-svg {
      overflow: visible;
    }

    .progress-bar > .display-nav > .display-nav-button .display-nav-badge {
      position: absolute;
      inset: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 0.55rem;
      font-weight: 800;
      line-height: 1;
      letter-spacing: -0.01em;
      color: currentcolor;
    }

    .progress-bar > .display-nav > .display-nav-button .display-nav-icon--calendar .display-nav-badge {
      inset: 5px 0 0;
      font-size: 0.56rem;
    }

    /* ── Skeleton loader ── */
    @keyframes skeleton-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.35; }
    }

    .sk {
      display: block;
      background: rgba(124, 96, 69, 0.14);
      border-radius: 6px;
      animation: skeleton-pulse 1.6s ease-in-out infinite;
    }

    /* ── Screen error state ── */
    .screen-error {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 160px;
      gap: 12px;
      text-align: center;
      color: var(--muted);
    }

    .screen-error svg {
      width: 28px;
      height: 28px;
    }

    .screen-error-msg {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--muted);
    }

    .screen-error-retry {
      background: none;
      border: 1.5px solid var(--border);
      border-radius: 20px;
      padding: 7px 18px;
      font-size: 0.82rem;
      font-family: inherit;
      color: var(--amber);
      font-weight: 700;
      cursor: pointer;
      letter-spacing: 0.02em;
      transition: background-color 150ms ease;
    }

    .screen-error-retry:hover {
      background: var(--amber-soft);
    }

    /* Error inside grid containers must span all columns */
    .meals-layout > .screen-error,
    .month-grid > .screen-error,
    .names-scroll > .screen-error {
      grid-column: 1 / -1;
    }

    /* calendar-layout is flex, so use flex to span full width */
    .calendar-layout > .screen-error {
      flex: 1 1 100%;
    }

    /* Meal layout error also spans all rows */
    .meals-layout > .screen-error {
      grid-row: 1 / -1;
    }

    /* ── Countdown error ── */
    .countdown-error {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      flex: 1;
      min-height: 0;
      gap: 12px;
      text-align: center;
      color: var(--muted);
    }

    .countdown-error svg {
      width: 28px;
      height: 28px;
    }

    @media (pointer: coarse) {
      .nav-arrow {
        display: none;
      }
    }

    @media (max-width: 1120px) {
      .screen-title {
        font-size: 2.35rem;
      }

      .calendar-layout,
      .meals-layout,
      .countdown-layout {
        gap: 10px;
      }

      .todo-layout,
      .rsvp-layout {
        grid-template-columns: 1fr;
      }

    }

    .scorecard-layout,
    .scorecard-columns,
    .scorecard-rows,
    .scorecard-player-row-list,
    .scorecard-history-list,
    .scorecard-increment-stack,
    .scorecard-bonus-stack {
      display: grid;
      gap: 14px;
    }

    .scorecard-columns {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      align-items: stretch;
    }

    .scorecard-player-card,
    .scorecard-player-row,
    .scorecard-history-item {
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--panel);
      color: var(--ink);
    }

    .scorecard-player-card {
      padding: 16px;
      display: grid;
      gap: 14px;
    }

    .scorecard-player-card.is-leading,
    .scorecard-player-row.is-selected {
      background: var(--color-accent-subtle);
      border-color: var(--color-accent);
    }

    .scorecard-player-name,
    .scorecard-player-row-name {
      font-size: 1rem;
      font-weight: 800;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .scorecard-player-score {
      font-size: clamp(2rem, 3vw, 3rem);
      font-weight: 800;
      line-height: 1;
      display: inline-block;
      justify-self: start;
      transform-origin: center center;
      will-change: transform;
      transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease;
      border-radius: 14px;
      padding: 6px 8px;
    }

    .scorecard-player-score.is-score-updating {
      transform: scale(1.08);
    }

    .scorecard-player-score.is-score-positive {
      background: var(--sage-soft);
    }

    .scorecard-player-score.is-score-negative {
      background: var(--rose-soft);
    }

    .scorecard-button-grid,
    .scorecard-shared-buttons {
      display: grid;
      gap: 10px;
    }

    .scorecard-action-btn,
    .scorecard-secondary-btn,
    .scorecard-player-row {
      font: inherit;
      cursor: pointer;
      transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
    }

    .scorecard-action-btn,
    .scorecard-secondary-btn {
      border-radius: var(--button-radius);
      border: 1px solid var(--border);
      padding: 10px 14px;
      background: var(--panel-strong);
      color: var(--ink);
      font-weight: 800;
      white-space: nowrap;
    }

    .scorecard-action-btn:hover,
    .scorecard-action-btn:focus-visible,
    .scorecard-secondary-btn:hover,
    .scorecard-secondary-btn:focus-visible,
    .scorecard-player-row:hover,
    .scorecard-player-row:focus-visible {
      transform: translateY(-1px);
    }

    .scorecard-action-btn:hover,
    .scorecard-action-btn:focus-visible {
      background: var(--color-accent-subtle);
      border-color: var(--color-accent);
    }

    .scorecard-increment-row,
    .scorecard-increment-scroll,
    .scorecard-secondary-actions,
    .scorecard-bonus-toggle-row {
      display: flex;
      gap: 10px;
    }

    .scorecard-secondary-actions {
      justify-content: center;
    }

    .scorecard-increment-row .scorecard-action-btn {
      flex: 1;
      min-width: 0;
    }

    .scorecard-increment-scroll {
      overflow-x: auto;
      padding-bottom: 2px;
      -webkit-overflow-scrolling: touch;
    }

    .scorecard-action-btn {
      min-width: 96px;
      justify-content: center;
      text-align: center;
    }

    .scorecard-secondary-actions {
      border-top: 1px solid var(--border);
      padding-top: 10px;
      flex-wrap: wrap;
    }

    .scorecard-secondary-btn {
      min-width: 120px;
    }

    .scorecard-secondary-btn[data-action="scorecard-bonus-reveal"]:disabled {
      opacity: 1;
      background: var(--bg-soft);
      border-color: var(--border);
      color: var(--muted);
      cursor: default;
      pointer-events: none;
      box-shadow: none;
      transform: none;
    }

    .scorecard-player-row {
      width: 100%;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      text-align: left;
    }

    .scorecard-player-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .scorecard-history {
      border-top: 1px solid var(--border);
      padding-top: 14px;
    }

    .scorecard-history summary {
      cursor: pointer;
      font-weight: 800;
      color: var(--muted);
    }

    .scorecard-history-list {
      margin-top: 12px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-content: start;
      max-height: min(34dvh, 320px);
      overflow-y: auto;
      padding-right: 4px;
    }

    .scorecard-history-item {
      min-width: 0;
      padding: 14px;
      display: grid;
      gap: 12px;
    }

    .scorecard-history-head {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      color: var(--muted);
      font-size: 0.86rem;
    }

    .scorecard-history-head strong {
      line-height: 1.35;
    }

    .scorecard-history-scores {
      display: grid;
      gap: 8px;
    }

    .scorecard-history-pill {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 10px 12px;
      border-radius: 16px;
      background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
      color: var(--ink);
      border: 1px solid var(--border);
      font-size: 0.82rem;
      font-weight: 700;
    }

    .scorecard-history-pill-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--amber);
    }

    .scorecard-history-pill-icon svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }

    .scorecard-history-pill-name {
      min-width: 0;
    }

    .scorecard-history-pill strong {
      justify-self: end;
    }

    .scorecard-history-pill.is-winner {
      background: color-mix(in srgb, var(--amber-soft) 92%, var(--panel));
      border-color: color-mix(in srgb, var(--amber) 52%, var(--border));
    }

    .scorecard-bonus-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .scorecard-bonus-screen,
    .scorecard-bonus-status,
    .scorecard-bonus-reveal-grid,
    .scorecard-bonus-results-form,
    .scorecard-celebration-scores {
      display: grid;
      gap: 14px;
    }

    .scorecard-bonus-status {
      justify-items: center;
      text-align: center;
      color: var(--muted);
    }

    .scorecard-bonus-note {
      margin-top: 4px;
      color: var(--muted);
      font-size: 0.86rem;
    }

    .scorecard-bonus-entry-controls {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .scorecard-bonus-entry-side {
      display: grid;
      gap: 6px;
      justify-items: end;
    }

    .scorecard-bonus-input-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .scorecard-bonus-input {
      width: 110px;
      min-width: 0;
      border: 1px solid var(--border);
      border-radius: var(--button-radius);
      padding: 10px 42px 10px 12px;
      background: var(--panel-strong);
      color: var(--ink);
      font: inherit;
    }

    .scorecard-bonus-input:not(.is-locked) {
      border-color: var(--color-accent);
      background: var(--panel-strong);
    }

    .scorecard-bonus-input.is-locked {
      background: var(--color-accent-subtle);
      border-color: var(--color-accent);
      color: var(--color-accent);
      font-weight: 800;
    }

    .scorecard-bonus-peek-btn {
      position: absolute;
      right: 8px;
      width: 28px;
      height: 28px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .scorecard-bonus-peek-btn:disabled {
      opacity: 0.35;
      cursor: default;
    }

    .scorecard-bonus-peek-btn svg,
    .scorecard-bonus-lock-btn svg {
      width: 16px;
      height: 16px;
    }

    .scorecard-bonus-row.is-locked {
      opacity: 0.92;
    }

    .scorecard-bonus-input:focus-visible {
      outline: 3px solid var(--color-accent);
      outline-offset: 2px;
      border-color: var(--color-accent);
    }

    .scorecard-secondary-btn--accent {
      background: var(--color-accent);
      border-color: var(--color-accent);
      color: var(--color-text-on-accent);
    }

    .scorecard-bonus-lock-btn {
      min-width: 120px;
    }

    .scorecard-bonus-lock-btn.is-locked {
      background: var(--sage-soft);
      border-color: var(--sage);
      color: var(--sage);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      cursor: default;
    }

    .scorecard-bonus-error {
      color: var(--rose);
      font-size: 0.82rem;
      font-weight: 700;
      line-height: 1.2;
      text-align: right;
      min-height: 1.05rem;
    }

    .scorecard-bonus-reveal-grid {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .scorecard-bonus-reveal-card {
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--panel);
      padding: 18px;
      display: grid;
      gap: 8px;
      text-align: left;
      opacity: 0;
      transform: perspective(600px) rotateX(-18deg) translateY(12px);
      animation: scorecard-reveal-in 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .scorecard-bonus-player-name {
      font-size: 1rem;
      font-weight: 800;
      line-height: 1.1;
    }

    .scorecard-bonus-reveal-value {
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      font-weight: 800;
      line-height: 1;
    }

    .scorecard-bonus-reveal-card.is-correct .scorecard-bonus-reveal-value {
      color: var(--sage);
    }

    .scorecard-bonus-reveal-card.is-incorrect .scorecard-bonus-reveal-value {
      color: var(--rose);
    }

    .scorecard-bonus-before {
      font-size: 0.86rem;
      color: var(--muted);
    }

    .scorecard-bonus-result-label {
      font-size: 0.9rem;
      font-weight: 800;
      letter-spacing: 0.01em;
    }

    .scorecard-bonus-result-label.is-correct {
      color: var(--sage);
    }

    .scorecard-bonus-result-label.is-incorrect {
      color: var(--rose);
    }

    .scorecard-bonus-result-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--panel);
    }

    .scorecard-celebration-overlay {
      position: absolute;
      inset: 0;
      z-index: 30;
      display: grid;
      place-items: center;
      padding: 28px;
      background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 42%),
        rgba(12, 10, 9, 0.72);
      backdrop-filter: blur(8px);
    }

    .scorecard-celebration-overlay[hidden] {
      display: none !important;
    }

    .scorecard-celebration-stage {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }

    .scorecard-celebration-card {
      --scorecard-celebration-grid-gap: 28px;
      position: relative;
      z-index: 1;
      width: min(100%, 1040px);
      display: grid;
      gap: 22px;
      padding: 30px;
      border-radius: 28px;
      border: 1px solid rgba(255, 255, 255, 0.16);
      background: rgba(20, 16, 14, 0.82);
      color: #fffaf3;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    }

    .scorecard-celebration-layout {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--scorecard-celebration-grid-gap);
      align-items: stretch;
    }

    .scorecard-celebration-hero,
    .scorecard-celebration-scoreboard,
    .scorecard-celebration-actions {
      display: grid;
      gap: 16px;
    }

    .scorecard-celebration-hero {
      align-content: center;
      justify-items: center;
      text-align: center;
    }

    .scorecard-celebration-icon {
      color: var(--scorecard-celebration-accent, var(--color-accent));
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .scorecard-celebration-icon svg,
    .scorecard-celebration-emoji {
      width: clamp(72px, 10vw, 112px);
      height: clamp(72px, 10vw, 112px);
    }

    .scorecard-celebration-kicker {
      display: inline-flex;
      align-items: center;
      color: rgba(255, 250, 243, 0.72);
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .scorecard-celebration-title {
      margin: 0;
      font-size: clamp(2.5rem, 4.8vw, 4.8rem);
      line-height: 0.96;
      text-align: center;
    }

    .scorecard-celebration-scoreboard {
      align-content: start;
    }

    .scorecard-celebration-score-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 12px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .scorecard-celebration-score-row.is-winner {
      font-size: 1.04rem;
      font-weight: 800;
    }

    .scorecard-celebration-score-name {
      font-weight: 800;
    }

    .scorecard-celebration-actions {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--scorecard-celebration-grid-gap);
    }

    .scorecard-celebration-button {
      width: 100%;
      border: 1px solid var(--scorecard-celebration-accent, var(--color-accent));
      border-radius: var(--button-radius);
      padding: 12px 18px;
      background: var(--scorecard-celebration-accent, var(--color-accent));
      color: var(--color-text-on-accent);
      font: inherit;
      font-weight: 800;
      cursor: pointer;
    }

    .scorecard-celebration-button--secondary {
      background: transparent;
      color: #fffaf3;
      border-color: rgba(255, 255, 255, 0.28);
    }

    @keyframes scorecard-reveal-in {
      from {
        opacity: 0;
        transform: perspective(600px) rotateX(-18deg) translateY(12px);
      }
      to {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) translateY(0);
      }
    }

    .scorecard-bonus-toggle-pill {
      position: relative;
      display: flex;
      align-items: stretch;
      flex: 1 1 0;
      min-width: 0;
    }

    .scorecard-bonus-toggle-pill input {
      position: absolute;
      inset: 0;
      opacity: 0;
    }

    .scorecard-bonus-toggle-pill span {
      width: 100%;
      padding: 8px 12px;
      border-radius: var(--tag-radius);
      background: var(--panel-strong);
      border: 1px solid var(--border);
      color: var(--ink);
      font-size: 0.82rem;
      font-weight: 700;
      text-align: center;
    }

    .scorecard-bonus-toggle-pill.is-correct input:checked + span {
      background: var(--sage);
      border-color: var(--sage);
      color: #fff;
    }

    .scorecard-bonus-toggle-pill.is-incorrect input:checked + span {
      background: var(--rose);
      border-color: var(--rose);
      color: #fff;
    }

    @media (max-width: 1120px) {
      .scorecard-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 720px) {
      .scorecard-bonus-row {
        flex-direction: column;
        align-items: stretch;
      }

      .scorecard-bonus-result-row {
        flex-direction: column;
        align-items: stretch;
      }

      .scorecard-bonus-entry-controls {
        flex-direction: column;
        align-items: stretch;
      }

      .scorecard-bonus-input {
        width: 100%;
      }

      .scorecard-celebration-overlay {
        padding: 18px;
      }

      .scorecard-celebration-card {
        padding: 22px 18px;
      }

      .scorecard-celebration-layout,
      .scorecard-celebration-actions {
        grid-template-columns: 1fr;
      }

      .scorecard-celebration-hero {
        justify-items: center;
        text-align: center;
      }

      .scorecard-celebration-title {
        text-align: center;
      }
    }
