    /* ---------- Design Tokens ---------- */
    :root {
      --card: #ffffff;
      --surface: #f8fafc;
      --surface-strong: #f1f5f9;
      --ink: #111827;
      --muted: #5f6f82;
      --border: #d5dde8;
      --border-strong: #b8c3d1;
      --accent: #d95c13;
      --warning-bg: #fff7e6;
      --warning-border: #d97706;
      --warning-text: #7c3c00;
      --button: #111827;
      --button-text: #ffffff;
      --button-muted: #ffffff;
      --shadow-soft: 0 1px 2px rgba(17, 24, 39, 0.06);
      --accent-glow: 0 0 0 1px rgba(217, 92, 19, 0.12), 0 0 18px rgba(217, 92, 19, 0.16);
      --panel-glow: 0 18px 44px rgba(11, 18, 32, 0.18), 0 0 26px rgba(217, 92, 19, 0.12);
    }

    @media (prefers-color-scheme: dark) {
      :root {
        background: #020617;
        color-scheme: dark;
        --card: #0f172a;
        --surface: #111827;
        --surface-strong: #1e293b;
        --ink: #f8fafc;
        --muted: #94a3b8;
        --border: #243244;
        --border-strong: #334155;
        --accent: #fb923c;
        --warning-bg: #451a03;
        --warning-border: #f97316;
        --warning-text: #fed7aa;
        --button: #f8fafc;
        --button-text: #020617;
        --button-muted: #111827;
        --accent-glow: 0 0 0 1px rgba(251, 146, 60, 0.12), 0 0 18px rgba(251, 146, 60, 0.18);
        --panel-glow: 0 18px 44px rgba(0, 0, 0, 0.32), 0 0 26px rgba(251, 146, 60, 0.12);
      }
    }

    /* ---------- Base Layout ---------- */
    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0) 260px),
        radial-gradient(circle at 12% 0%, rgba(217, 92, 19, 0.11), transparent 30%),
        linear-gradient(135deg, #e7edf3 0%, #f6f8fa 52%, #e9eef3 100%);
      color: var(--ink);
      line-height: 1.4;
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
    }

    @media (prefers-color-scheme: dark) {
      body {
        background:
          radial-gradient(circle at 12% 0%, rgba(251, 146, 60, 0.1), transparent 30%),
          linear-gradient(135deg, #020617 0%, #0b1220 55%, #020617 100%);
      }
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      background-image:
        linear-gradient(rgba(55, 84, 111, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 84, 111, 0.045) 1px, transparent 1px);
      background-size: 28px 28px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 78%);
      pointer-events: none;
    }

    @media (prefers-color-scheme: dark) {
      body::before {
        background-image:
          linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
          linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
      }
    }

    main {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 18px 16px calc(40px + env(safe-area-inset-bottom));
}

    h1 {
      font-size: clamp(32px, 6vw, 48px);
      line-height: 1;
      margin: 14px 0 10px;
      letter-spacing: 0;
    }

    label {
      font-size: 14px;
      font-weight: 700;
      color: #334155;
    }

    input,
    select {
      width: 100%;
      height: 48px;
      border: 1px solid var(--border-strong);
      border-radius: 10px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(239,245,250,0.94)),
        linear-gradient(90deg, rgba(217,92,19,0.055), transparent 42%);
      color: var(--ink);
      font-size: 16px;
      padding: 0 14px;
      outline: none;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.95),
        inset 0 -1px 0 rgba(55,84,111,0.08),
        0 2px 6px rgba(17, 24, 39, 0.055);
    }

    input:focus,
    select:focus {
      border-color: var(--accent);
      background:
        linear-gradient(180deg, #ffffff, #f3f7fb),
        linear-gradient(90deg, rgba(217,92,19,0.09), transparent 48%);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.96),
        inset 3px 0 0 rgba(217,92,19,0.42),
        0 0 0 3px rgba(217, 92, 19, 0.12),
        0 8px 18px rgba(17, 24, 39, 0.08);
    }

    button {
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--button-muted);
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

    button:active { transform: scale(0.98); }

    button.active {
  background: var(--button);
  color: var(--button-text);
  border-color: var(--button);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 8px 18px rgba(17, 24, 39, 0.16),
    var(--accent-glow);
}
    button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: scale(0.985);
}

    button:disabled {
      opacity: 0.35;
      cursor: not-allowed;
      background: #e2e8f0;
      color: #64748b;
    }

    /* ---------- Header ---------- */
    /* ---------- Header ---------- */
.app-header {
  width: 100%;
  background:
    linear-gradient(135deg, #080e1a 0%, #101b2b 58%, #0b1220 100%);
  color: #ffffff;
  padding:
    calc(14px + env(safe-area-inset-top))
    18px
    14px;
  box-sizing: border-box;
  border-bottom: 3px solid var(--accent);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 10px 28px rgba(8, 14, 26, 0.18);
  position: relative;
  overflow: hidden;
}

.app-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251,146,60,0.82), transparent);
  box-shadow: 0 0 18px rgba(251,146,60,0.42);
}

.app-header-inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

.app-header-title {
  color: #ffffff;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0;
  font-weight: 850;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header-title::before {
  content: "";
  width: 8px;
  height: 30px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f97316, #b9470c);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.38);
  flex: 0 0 auto;
}

.app-header-subtitle {
  color: rgba(255,255,255,0.74);
  font-size: 0.88rem;
  line-height: 1.35;
  max-width: 720px;
  margin: 5px 0 0;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

    .web-pro-banner {
      display: flex;
      align-items: center;
      justify-content: center;
      width: min(920px, calc(100% - 32px));
      margin: 16px auto 0;
      padding: 10px 14px;
      border: 1px solid rgba(234, 88, 12, 0.22);
      border-radius: 14px;
      background: rgba(255, 247, 237, 0.92);
      color: #9a3412;
      font-size: 14px;
      font-weight: 750;
      line-height: 1.35;
      text-align: center;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    }

    .web-pro-banner[hidden] {
      display: none;
    }

    /* ---------- Cards / Forms ---------- */
    .card {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.9)),
        var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow:
        0 1px 0 rgba(255,255,255,0.85) inset,
        0 10px 28px rgba(17, 24, 39, 0.075);
      overflow: hidden;
      margin-bottom: 16px;
      position: relative;
    }

    .card:not(#standardResultsCard):not(#splitResultsCard)::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 3px;
      background: linear-gradient(90deg, var(--accent), rgba(55, 84, 111, 0.38), transparent);
      opacity: 0.68;
      pointer-events: none;
    }
