  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
  }

  :root {
    --bg: #1802a6;
    --bg-surface: rgba(255,255,255,0.06);
    --bg-surface-hover: rgba(255,255,255,0.09);
    --bg-input: rgba(255,255,255,0.08);
    --bg-input-focus: rgba(255,255,255,0.11);
    --border: rgba(255,255,255,0.18);
    --border-focus: rgba(255,255,255,0.45);
    --text: #ffffff;
    --text-dim: rgba(255,255,255,0.62);
    --text-dimmer: rgba(255,255,255,0.2);
    --accent: #ffffff;
    --accent-dim: rgba(255,255,255,0.1);
    --error: #ff6b6b;
    --error-dim: rgba(255,107,107,0.15);
    --tab-active-bg: rgba(255,255,255,0.08);
    --radius: 8px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
  }

  html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  body.intake-locked {
    overflow: hidden;
  }

  #app {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  /* Entry veil (see index.html) — same #1802a6 + "Anvil." the homepage veil ended on,
     held briefly then dissolved to reveal the intake. Top-layer overlay, NEVER an
     ancestor of .card, so the backdrop glow stays intact. Plays once on load. */
  .ghost-entry-veil {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1802a6;
    pointer-events: none;
    animation: ghost-entry-fade 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
  }
  @keyframes ghost-entry-fade {
    0%   { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
  }
  .ghost-entry-veil__mark {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(38px, 5vw, 56px);
    letter-spacing: -0.025em;
    color: #ffffff;
    animation: ghost-entry-mark 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  @keyframes ghost-entry-mark {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    50%  { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-6px) scale(0.99); }
  }
  @media (prefers-reduced-motion: reduce) {
    .ghost-entry-veil { animation: none; opacity: 0; visibility: hidden; }
    .ghost-entry-veil__mark { animation: none; }
  }

  .intake-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* Tall connectors (CloudWatch + its AWS setup panel) can exceed the viewport on a
       short laptop. Let the stage scroll internally so the Analyze row is always
       reachable. Top-anchored (align-items:flex-start) so short forms look identical and
       the hero never recenters or bounces — the shell's min-height:100% keeps it pinned. */
    overflow-y: auto;
    overscroll-behavior: contain;
    /* NO entrance animation on the intake — not here, and not on .intake-shell.
       Chrome composites ANY animated element onto its own layer, which isolates the
       .card backdrop-filter from the #intake-canvas behind it, making the halftone
       render as hard dots instead of the intended soft glow. (Even animating this
       common parent breaks it.) The homepage "Try Ghost Mode" veil already supplies
       the cross-fade into this page, so the intake just settles in cleanly. */
  }

  .intake-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* Tuned in the halftone lab: subtle, soft, reads as a background wash. The card's
       backdrop-filter dissolves the dots behind it into a glow. */
    opacity: 0.85;
    filter: blur(0.6px);
  }

  .intake-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 860px);
    max-width: 860px;
    min-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Top-anchored: the hero and the card's top stay put on every tab — only the card's
       bottom flexes (and it eases; see #intake-panes height animation in app.js). No
       recentering bounce. (No transform here — keeps the card's backdrop-filter intact.) */
    justify-content: flex-start;
    padding-top: clamp(28px, 5vh, 64px);
    /* Breathing room below the card when a tall form scrolls to the bottom. */
    padding-bottom: clamp(28px, 5vh, 64px);
    box-sizing: border-box;
  }

  /* Entrance — the intake content fades out of the blue, completing the cross-fade
     from the homepage's Try-Ghost-Mode veil (both surfaces share #1802a6).
     IMPORTANT: opacity-only, NO transform. A transform here creates a containing
     block that isolates the card's backdrop-filter, so it can no longer blur the
     halftone canvas behind it (the dots would show as dots instead of a soft glow). */
  @keyframes intake-rise {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* Header */
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
    max-width: 860px;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent);
    margin-bottom: 18px;
  }

  .logo img,
  .logo svg {
    flex-shrink: 0;
    display: block;
  }

  .logo img {
    height: 28px;
    width: auto;
  }

  .tagline {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.28;
    white-space: nowrap;
    width: 100%;
    max-width: 980px;
    text-align: center;
  }
  /* "Upload or connect your logs…" is longer than the old copy — let it wrap before it
     would clip inside the 860px shell (the intake is overflow:hidden, so no scrollbar). */
  @media (max-width: 900px) { .tagline { white-space: normal; } }

  .tagline-sub {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255,255,255,0.58);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
  }

  .tagline-strong {
    font-weight: 700;
    color: #ffffff;
  }

  .tagline-emphasis {
    font-style: italic;
    font-weight: 500;
    color: rgba(255,255,255,0.94);
  }

  .tagline-underline {
    display: inline-block;
    border-bottom: 1.5px solid rgba(255,255,255,0.88);
    line-height: 0.95;
    padding-bottom: 0.04em;
  }

  /* Card */
  .card {
    width: 100%;
    /* A touch wider than the copy above it so the 5 equal-width tabs get room — the longest
       label ("Monitoring & logs") was crowding the right edge at 700px. Still well inside the
       860px shell, so the card stays a centered panel, not full-bleed. */
    max-width: 780px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(6, 0, 74, 0.22), inset 0 1px 0 rgba(255,255,255,0.08);
    /* Strong blur so the halftone behind the card dissolves into a soft glow
       (barely lighting up the blue) instead of showing as distinct dots. */
    -webkit-backdrop-filter: blur(60px) saturate(1.1);
    backdrop-filter: blur(60px) saturate(1.1);
  }

  /* ══════════════════════════════════════════════════════════════════════════
     Descriptor-driven intake (.gi-*). Scoped so it never touches the bare
     input/select/label rules or the report/gate/protect styles below.
     ══════════════════════════════════════════════════════════════════════════ */
  .intake-tabs { display: flex; position: relative; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .gi-tab {
    flex: 1 1 0; min-width: 0; background: transparent; border: none; color: rgba(255,255,255,0.6);
    font-family: var(--font); font-size: 14px; font-weight: 600; padding: 15px 10px; cursor: pointer;
    white-space: nowrap; position: relative; transition: color 0.28s cubic-bezier(0.16,1,0.3,1);
  }
  .gi-tab:hover { color: rgba(255,255,255,0.82); }
  .gi-tab.active { color: #fff; }
  .gi-tab-underline { position: absolute; bottom: -1px; left: 0; height: 2px; background: #fff; border-radius: 2px 2px 0 0;
    transition: transform 0.42s cubic-bezier(0.76,0,0.24,1), width 0.42s cubic-bezier(0.76,0,0.24,1); pointer-events: none; }

  .intake-panes { position: relative; transition: height 0.5s cubic-bezier(0.76,0,0.24,1); }
  .gi-pane { display: none; padding: 18px 24px 20px; }
  /* Incoming pane cross-fades in (opacity only — the card height is already easing, so a
     translate here would be a second thing moving, and translateY left an empty gap at the
     top of the card while it faded). */
  .gi-pane.active { display: block; animation: gi-pane-in 0.34s cubic-bezier(0.16,1,0.3,1); }
  /* Outgoing pane during a tab switch: lifted out of flow (so the container height still
     measures the incoming pane for the FLIP height ease) and painted over the incoming,
     then faded out — old dissolves to reveal new. A true cross-fade, replacing the instant
     display:none cut that flashed an empty card body on every tab click. */
  .gi-pane.gi-pane-leaving { display: block; position: absolute; left: 0; right: 0; top: 0;
    opacity: 0; transition: opacity 0.28s cubic-bezier(0.16,1,0.3,1); pointer-events: none; }
  @keyframes gi-pane-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes gi-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  /* Category lede + read-only line */
  .gi-lede { margin: 0 2px 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .gi-lede-q { font-family: var(--font); font-weight: 600; font-size: 15px; color: #fff; letter-spacing: -0.01em; }
  .gi-lede-ro { color: rgba(255,255,255,0.5); font-size: 13px; }

  /* Vendor picker */
  .gi-vendors { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 11px; }
  .gi-vendor { display: flex; align-items: center; gap: 12px; text-align: left; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.16); border-radius: 13px; padding: 11px 14px; cursor: pointer; color: #fff;
    transition: transform 0.16s cubic-bezier(0.22,1,0.36,1), border-color 0.16s, background 0.16s, box-shadow 0.16s; }
  .gi-vendor:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.1); }
  .gi-vendor.selected { border-color: rgba(110,162,255,0.72); box-shadow: 0 0 0 3px rgba(76,139,255,0.2); background: rgba(76,139,255,0.13); }
  .gi-vendor.gi-coming { opacity: 0.62; }
  .gi-v-logo { width: 32px; height: 32px; border-radius: 8px; overflow: hidden; display: grid; place-items: center;
    font-size: 12.5px; font-weight: 700; color: #fff; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,0.28); }
  .gi-v-logo img { width: 19px; height: 19px; object-fit: contain; display: block; }
  .gi-v-logo img.gi-v-full { width: 100%; height: 100%; }
  .gi-v-text { display: flex; flex-direction: column; min-width: 0; }
  .gi-v-name { font-family: var(--font); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 7px; }
  .gi-v-desc { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; line-height: 1.3; }
  .gi-soon { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.1); border-radius: 999px; padding: 2px 7px; }

  /* Form (a distinct well below the picker) */
  .gi-formwrap { margin-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; display: none; }
  .gi-formwrap.show { display: block; }
  .gi-form-inner { animation: gi-fade 0.34s cubic-bezier(0.76,0,0.24,1); }
  .gi-form-soon { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: #a8aebd; line-height: 1.5; padding: 6px 0; }
  .gi-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 18px; align-items: start; }
  .gi-field { min-width: 0; }
  .gi-field.gi-wide { grid-column: 1 / -1; }
  .gi-fl { display: block; font-size: 12.5px; color: rgba(255,255,255,0.7); font-weight: 500; margin-bottom: 5px; }
  .gi-req { color: #6ea2ff; margin-left: 2px; }
  .gi-inp {
    width: 100%; box-sizing: border-box; background: rgba(0,0,0,0.14); border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px; color: #fff; font-family: var(--font); font-size: 14px; padding: 9px 12px; outline: none;
    transition: border-color 0.14s, box-shadow 0.14s;
  }
  .gi-inp.gi-mono { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; }
  .gi-inp::placeholder { color: rgba(255,255,255,0.5); }
  .gi-inp:focus { border-color: rgba(76,139,255,0.6); box-shadow: 0 0 0 3px rgba(76,139,255,0.18); }
  .gi-inp.gi-bad { border-color: rgba(248,113,113,0.6); }
  select.gi-inp { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='rgba(255,255,255,.5)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
  .gi-hint { font-size: 11px; margin-top: 4px; line-height: 1.35; min-height: 0; }
  .gi-hint.gi-bad-hint { color: #f8a0a0; }

  .gi-adv-toggle { background: none; border: none; color: rgba(255,255,255,0.7); font-family: var(--font); font-size: 12.5px;
    cursor: pointer; padding: 4px 0; margin: 12px 0 0; display: inline-flex; align-items: center; gap: 6px; }
  .gi-adv-toggle:hover { color: rgba(255,255,255,0.75); }
  .gi-adv-toggle .gi-chev { transition: transform 0.2s cubic-bezier(0.22,1,0.36,1); }
  .gi-adv-toggle.open .gi-chev { transform: rotate(90deg); }
  .gi-adv { display: none; margin-top: 12px; }
  .gi-adv.open { display: block; animation: gi-fade 0.24s cubic-bezier(0.76,0,0.24,1); }

  .gi-how { background: none; border: none; color: rgba(255,255,255,0.7); font-family: var(--font); font-size: 12.5px;
    cursor: pointer; padding: 2px 0; margin-top: 12px; text-align: left; display: block; }
  .gi-how:hover { color: rgba(255,255,255,0.75); }
  .gi-how-cta { color: #6ea2ff; font-weight: 500; }
  .gi-recipe { max-height: 0; overflow: hidden; transition: max-height 0.34s cubic-bezier(0.16,1,0.3,1); }
  .gi-recipe.open { max-height: 620px; margin-top: 10px; }
  .gi-recipe ol { margin: 0; padding: 2px 0 2px 20px; }
  .gi-recipe li { font-size: 12.5px; color: rgba(255,255,255,0.7); line-height: 1.5; margin-bottom: 9px; }
  .gi-recipe a { color: #6ea2ff; text-decoration: none; font-weight: 500; }
  .gi-recipe a:hover { text-decoration: underline; }
  .gi-snippet { background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 9px 11px;
    margin-top: 8px; position: relative; }
  .gi-snippet code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 11.5px;
    color: rgba(255,255,255,0.72); white-space: pre-wrap; display: block; }
  .gi-snippet-tall code { max-height: 130px; overflow: auto; }
  .gi-copy { position: absolute; top: 7px; right: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.72); border-radius: 6px; font-size: 10px; padding: 3px 7px; cursor: pointer; font-family: var(--font); }

  /* Read-only reassurance — deliberately subtle: a light * marker + low-opacity text
     so it reads as a quiet footnote, not a callout. */
  .gi-ro { display: flex; align-items: baseline; gap: 6px; font-size: 11px; color: rgba(255,255,255,0.6); margin: 11px 0 0; line-height: 1.45; }
  .gi-ro-star { color: rgba(255,255,255,0.52); font-size: 12px; line-height: 1; flex: none; font-weight: 600; }
  .gi-ro-dot { width: 7px; height: 7px; border-radius: 50%; background: #a8aebd; margin-top: 4px; flex: none; animation: gi-breathe 1.7s ease-in-out infinite; }
  @keyframes gi-breathe { 0%, 100% { opacity: 0.5; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.15); } }

  .gi-alt-sep { display: flex; align-items: center; gap: 14px; margin: 16px 0 10px; color: rgba(255,255,255,0.4); font-size: 11.5px; letter-spacing: 0.04em; }
  .gi-alt-sep::before, .gi-alt-sep::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }
  .gi-magic { margin-top: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .gi-magic-lead { font-size: 12.5px; color: rgba(255,255,255,0.7); }
  .gi-magic-btn { font-family: var(--font); font-weight: 600; font-size: 14px; cursor: pointer; border-radius: 999px;
    padding: 9px 18px; color: #fff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.14s cubic-bezier(0.22,1,0.36,1), background 0.14s, border-color 0.14s; }
  .gi-magic-btn:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); }
  .gi-magic-btn:disabled { opacity: 0.6; cursor: default; }
  .gi-aws-panel { flex-basis: 100%; margin-top: 10px; }
  .gi-aws-launch { display: inline-block; color: #6ea2ff; text-decoration: none; font-weight: 600; font-size: 13px; }
  .gi-aws-launch:hover { text-decoration: underline; }
  .gi-aws-steps { margin: 8px 0 0; padding-left: 20px; font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.5; }
  .gi-form-error { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.45;
    color: #ffd7d7; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.32); }

  /* Upload pane */
  .gi-dropzone { position: relative; overflow: hidden; border: 1px dashed rgba(255,255,255,0.2); border-radius: 14px; background: rgba(255,255,255,0.015);
    padding: 50px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    color: rgba(255,255,255,0.55); cursor: pointer; transition: border-color 0.32s ease, background 0.32s ease, color 0.32s ease; }
  .gi-dropzone:hover, .gi-dropzone.drag-over { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
  .gi-dropzone input[type="file"] { position: absolute; inset: 0; z-index: 2; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
  /* Fill sweep — a soft accent wipes across the box as a file/sample loads. */
  .gi-dropzone::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(115deg, rgba(76,139,255,0.16), rgba(76,139,255,0.05));
    transform: scaleX(0); transform-origin: left center; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
  .gi-dropzone > *:not(input) { position: relative; z-index: 1; }
  .gi-dropzone.gi-filled { border-style: solid; border-color: rgba(110,162,255,0.55); background: rgba(76,139,255,0.05); }
  .gi-dropzone.gi-filled::before { transform: scaleX(1); }
  .gi-up { font-size: 28px; color: rgba(255,255,255,0.4); margin-bottom: 4px; transition: color 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1); }
  .gi-dropzone.gi-filled .gi-up { color: #6ea2ff; transform: scale(1.08); }
  .gi-drop-title { font-size: 15px; transition: color 0.32s ease; }
  .gi-dropzone.gi-filled .gi-drop-title { color: #fff; font-weight: 600; }
  .gi-drop-hint { font-size: 11.5px; color: rgba(255,255,255,0.4); letter-spacing: 0.02em; transition: color 0.32s ease; }
  .gi-dropzone.gi-filled .gi-drop-hint { color: rgba(110,162,255,0.9); }
  .gi-sample { display: block; margin: 18px auto 2px; background: none; border: none; color: rgba(255,255,255,0.7);
    font-family: var(--font); font-size: 13px; cursor: pointer; transition: color 0.14s; }
  .gi-sample:hover { color: rgba(255,255,255,0.8); }

  @media (max-width: 640px) {
    .gi-fields { grid-template-columns: 1fr; }
    .gi-vendors { grid-template-columns: 1fr; }
    .gi-pane { padding: 16px 16px 18px; }
    .gi-dropzone { padding: 38px 18px; }
  }

  /* Keyboard focus — the intake is built entirely from <button>s, so give them a
     visible ring (WCAG 2.4.7). Reuses the product-blue accent from .gi-inp:focus;
     the browser follows each element's own border-radius for the outline. */
  .gi-tab:focus-visible, .gi-vendor:focus-visible, .gi-how:focus-visible,
  .gi-adv-toggle:focus-visible, .gi-copy:focus-visible, .gi-magic-btn:focus-visible,
  .gi-sample:focus-visible, .gi-aws-launch:focus-visible {
    outline: 2px solid #6ea2ff;
    outline-offset: 2px;
  }

  /* Reduced motion for the intake. The JS height-ease already short-circuits under
     reduce (animatePanesHeight); this neutralizes the remaining CSS keyframes — pane/
     form fades, the sliding underline, vendor hover-lift, and the breathing RO dot. */
  @media (prefers-reduced-motion: reduce) {
    .intake-panes { transition: none; }
    .gi-tab-underline { transition: none; }
    .gi-pane.active, .gi-form-inner, .gi-adv.open { animation: none; }
    .gi-pane.gi-pane-leaving { transition: none; }
    .gi-vendor { transition: none; }
    .gi-ro-dot { animation: none; }
    .gi-dropzone::before, .gi-dropzone .gi-up { transition: none; }
  }

  /* Source tabs */
  .source-tabs {
    display: flex;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Sliding indicator under the active tab — glides between the three. */
  .source-tabs::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: calc(100% / 3);
    height: 2px;
    background: #fff;
    border-radius: 2px 2px 0 0;
    transform: translateX(0);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
  }
  .source-tabs[data-active="datadog"]::after { transform: translateX(100%); }
  .source-tabs[data-active="cloudwatch"]::after { transform: translateX(200%); }

  .tab {
    flex: 1;
    padding: 17px 16px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.6);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .tab:hover { color: rgba(255,255,255,0.78); }

  .tab.active {
    color: #fff;
  }

  /* Forms */
  .source-form {
    display: none;
    padding: 24px 24px 22px;
    flex-direction: column;
    gap: 18px;
  }

  .source-form.active {
    display: flex;
    animation: source-panel-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes source-panel-in {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: none; }
  }

  .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
  }

  label .req {
    color: rgba(255,255,255,0.7);
    margin-left: 2px;
  }

  label .opt {
    color: var(--text-dimmer);
    font-size: 11px;
    font-weight: 400;
    margin-left: 4px;
  }

  input[type="text"],
  input[type="password"],
  select,
  textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
  }

  input[type="text"]:focus,
  input[type="password"]:focus,
  select:focus,
  textarea:focus {
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
  }

  select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
  }

  select option { background: #1802a6; }

  textarea { resize: vertical; min-height: 64px; line-height: 1.5; }

  .field-error {
    font-size: 11px;
    color: var(--error);
    display: none;
  }

  .field-error.visible { display: block; }

  ::placeholder { color: rgba(255,255,255,0.25); }

  /* Drop zone */
  .drop-zone {
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 52px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
    background: rgba(255,255,255,0.015);
  }

  .drop-zone:hover,
  .drop-zone.drag-over {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.07);
  }

  .drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
  }

  .drop-icon {
    display: block;
    font-size: 28px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
  }

  .drop-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dim);
    pointer-events: none;
  }

  .file-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: none;
  }

  .file-name.visible { display: block; }

  /* Action row */
  .action-row {
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Ready (logs loaded) = solid white, professional. Empty = muted. Clean fade between. */
  .analyze-btn {
    width: 100%;
    padding: 15px 24px;
    background: #ffffff;
    color: #1802a6;
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.4s cubic-bezier(0.16,1,0.3,1), color 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.1s;
  }

  .analyze-btn:hover:not(:disabled) { background: rgba(255,255,255,0.9); }
  .analyze-btn:active:not(:disabled) { transform: scale(0.99); }

  .analyze-btn:disabled {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.44);
    cursor: not-allowed;
  }

  .action-trust-note {
    margin-top: 10px;
    max-width: none;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
    color: rgba(255,255,255,0.34);
    white-space: nowrap;
  }

  /* Data-handling disclosure (src/ghost/data-disclosure.ts). Deliberately quiet — a consent
     notice that shouts reads as a warning and stops the flow; one legible line, always visible,
     with the full statement one click away. NOT `white-space: nowrap` like the old trust note:
     this text wraps, and on a phone it must wrap rather than force a horizontal scroll. */
  .intake-disclosure {
    margin-top: 12px;
    max-width: 520px;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    color: rgba(255,255,255,0.38);
  }

  .intake-disclosure__lead {
    margin: 0;
  }

  .intake-disclosure__more {
    margin-top: 6px;
    text-align: left;
  }

  .intake-disclosure__more > summary {
    display: inline-block;
    text-align: center;
    width: 100%;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255,255,255,0.24);
    transition: color 0.15s ease;
  }

  .intake-disclosure__more > summary:hover,
  .intake-disclosure__more > summary:focus-visible {
    color: rgba(255,255,255,0.78);
  }

  .intake-disclosure__more[open] > summary {
    margin-bottom: 8px;
  }

  .intake-disclosure__more ul {
    margin: 0;
    padding-left: 16px;
    list-style: disc;
  }

  .intake-disclosure__more li + li {
    margin-top: 6px;
  }

  .intake-disclosure__link {
    margin-top: 8px;
    text-align: center;
  }

  .intake-disclosure a {
    color: rgba(255,255,255,0.62);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255,255,255,0.28);
  }

  .intake-disclosure a:hover,
  .intake-disclosure a:focus-visible {
    color: #ffffff;
  }

  @media (prefers-reduced-motion: reduce) {
    .intake-disclosure__more > summary { transition: none; }
  }

  /* Loading overlay */
  #loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(24, 2, 166, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.2s;
  }

  #loading-overlay.hidden {
    display: none;
  }

  .loading-card {
    position: relative;
    /* Solid, filled indigo (matches the snippet dialog) so the card reads as an opaque
       panel over the blurred report behind it — not a see-through pane. */
    background:
      linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04)),
      linear-gradient(180deg, rgba(46, 31, 240, 0.96), rgba(28, 16, 198, 0.95));
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 44px 52px;
    text-align: center;
    width: min(420px, calc(100vw - 32px));
    min-height: 292px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }

  .loading-icon {
    position: relative;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    perspective: 1400px;
  }

  .loading-icon::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 42%, rgba(255,255,255,0) 74%);
    filter: blur(10px);
    opacity: 0.8;
  }

  .loading-icon::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.34) 0 1.2px, transparent 1.7px);
    background-size: 10px 10px;
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,0.95) 24%, rgba(0,0,0,0.3) 56%, rgba(0,0,0,0) 74%);
    mask-image: radial-gradient(circle, rgba(0,0,0,0.95) 24%, rgba(0,0,0,0.3) 56%, rgba(0,0,0,0) 74%);
    opacity: 0.18;
    animation: loadingHaloOrbit 7.5s linear infinite;
  }

  .loading-icon-shadow {
    position: relative;
    z-index: 0;
    width: 54px;
    height: 16px;
    margin-top: 44px;
    border-radius: 999px;
    background: radial-gradient(ellipse, rgba(6, 0, 74, 0.38) 0%, rgba(6, 0, 74, 0.18) 42%, rgba(6, 0, 74, 0) 76%);
    filter: blur(7px);
    animation: loadingShadowDrift 7.2s ease-in-out infinite;
  }

  .loading-mark-3d {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
    transform-origin: center center;
    animation: anvilSpin3d 7.2s cubic-bezier(0.42, 0.08, 0.2, 0.98) infinite;
  }

  .loading-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: auto;
    display: block;
    transform-origin: center center;
    backface-visibility: hidden;
  }

  .loading-mark-front {
    transform: translate(-50%, -50%) translateZ(9px);
    filter: drop-shadow(0 12px 18px rgba(6, 0, 74, 0.24)) brightness(1.03);
  }

  .loading-mark-mid {
    transform: translate(-50%, -50%) translateZ(0);
    opacity: 0.32;
    filter: brightness(0.82) blur(0.2px);
  }

  .loading-mark-back {
    transform: translate(-50%, -50%) translateZ(-9px) rotateY(180deg);
    opacity: 0.16;
    filter: brightness(0.64) blur(0.35px);
  }

  .done-icon img {
    width: 38px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  @keyframes anvilSpin3d {
    0% {
      transform: rotateX(18deg) rotateY(-18deg) rotateZ(-7deg) translateY(0) scale(1);
    }
    25% {
      transform: rotateX(8deg) rotateY(78deg) rotateZ(-2deg) translateY(-1px) scale(1.03);
    }
    50% {
      transform: rotateX(-16deg) rotateY(176deg) rotateZ(5deg) translateY(-2px) scale(1.05);
    }
    75% {
      transform: rotateX(9deg) rotateY(278deg) rotateZ(2deg) translateY(-1px) scale(1.03);
    }
    100% {
      transform: rotateX(18deg) rotateY(342deg) rotateZ(-7deg) translateY(0) scale(1);
    }
  }

  @keyframes loadingHaloOrbit {
    0% {
      transform: rotate(0deg) scale(0.96);
      opacity: 0.14;
    }
    50% {
      transform: rotate(180deg) scale(1.02);
      opacity: 0.2;
    }
    100% {
      transform: rotate(360deg) scale(0.96);
      opacity: 0.14;
    }
  }

  @keyframes loadingShadowDrift {
    0%, 100% {
      transform: scale(0.92);
      opacity: 0.42;
    }
    50% {
      transform: scale(1.04);
      opacity: 0.26;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .loading-icon::after,
    .loading-icon-shadow,
    .loading-mark-3d {
      animation: none;
    }
    .loading-mark-3d {
      transform: rotateX(14deg) rotateY(20deg) rotateZ(-5deg);
    }
  }

  .loading-icon {
    margin-bottom: 22px;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  .loading-message {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 8px;
    min-height: 28px;
    width: 100%;
    transition: opacity 0.3s;
  }

  .loading-sub {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
    min-height: 36px;
    width: 100%;
  }

  .loading-track {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    height: 2px;
    overflow: hidden;
  }

  .loading-bar {
    height: 100%;
    background: #ffffff;
    border-radius: 2px;
    width: 0%;
    transition: width 0.6s ease-out;
  }

  /* Done / Error states */
  .done-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 44px 52px;
    text-align: center;
    min-width: 340px;
    max-width: 440px;
  }

  .done-icon {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 18px;
  }

  .error-hero-mark {
    margin-bottom: 22px;
  }

  .error-hero-mark img {
    width: 57px;
    height: auto;
  }

  .done-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 6px;
  }

  .done-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 28px;
  }

  .done-meta {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 32px;
  }

  .meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .meta-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
  }

  .meta-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.45);
  }

  .reset-btn {
    padding: 12px 28px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: var(--radius);
    color: rgba(255,255,255,0.7);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
  }

  .reset-btn:hover {
    border-color: rgba(255,255,255,0.7);
    color: #ffffff;
    background: rgba(255,255,255,0.05);
  }

  .error-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,107,107,0.5);
    border-radius: 14px;
    padding: 44px 52px;
    text-align: center;
    min-width: 340px;
    max-width: 440px;
  }

  .error-icon { font-size: 26px; color: var(--error); margin-bottom: 18px; }
  .error-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #ffffff; margin-bottom: 10px; }

  .error-title-upgrade {
    font-size: 25px;
    line-height: 1.22;
    font-weight: 700;
    margin-bottom: 24px;
    text-wrap: balance;
  }

  .error-title-upgrade em {
    font-style: italic;
    font-weight: 600;
  }

  .error-message {
    font-size: 15px;
    color: #ffc2c2;
    background: rgba(180, 40, 60, 0.34);
    border: 1px solid rgba(255,107,107,0.4);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 30px;
    text-align: left;
    word-break: break-word;
    line-height: 1.45;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .error-message-center {
    text-align: center;
  }

  .error-install-block {
    margin-bottom: 28px;
  }

  .error-install-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
  }

  .error-install-command {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 15px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 14px 18px;
    color: rgba(255,255,255,0.92);
    text-align: center;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }

  /* ── Report page ─────────────────────────────────────────────────────── */

  #report-page {
    display: none;
    min-height: 100vh;
    background: var(--bg);
  }

  .report-container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 28px 20px 40px;
    font-family: var(--font);
  }

  /* Eyebrow */
  .rpt-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    margin-bottom: 18px;
    text-align: center;
  }

  /* Headline */
  .rpt-headline {
    font-size: clamp(42px, 6.2vw, 78px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 0.98;
    margin-bottom: 32px;
    text-align: center;
  }

  /* Subhead */
  .rpt-sub {
    display: none;
  }

  .rpt-grid-primary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px;
  }

  .rpt-card-primary {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 258px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 26px 24px 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .rpt-card-highlight {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.055));
    border-color: rgba(255,255,255,0.18);
  }

  .rpt-card-muted { opacity: 0.62; }

  .rpt-card-big-number {
    font-size: clamp(64px, 6vw, 92px);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 14px;
  }

  .rpt-card-title {
    font-size: clamp(18px, 1.9vw, 24px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .rpt-card-detail {
    margin-top: auto;
    font-size: 16px;
    color: rgba(255,255,255,0.64);
    line-height: 1.4;
  }

  .rpt-path-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
  }

  .rpt-path-name {
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    overflow-wrap: anywhere;
    line-height: 1.04;
    margin-bottom: 12px;
  }

  .rpt-path-name.dim { color: rgba(255,255,255,0.28); }

  .rpt-path-summary {
    display: none;
  }

  .rpt-path-detail {
    margin-top: auto;
    font-size: 16px;
    color: rgba(255,255,255,0.64);
    line-height: 1.4;
  }

  #rpt-standard-secondary {
    margin-bottom: 18px;
  }

  .rpt-grid-secondary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 920px;
    margin: 0 auto 28px;
  }

  .rpt-card-secondary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 176px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 22px 22px 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .rpt-sec-value {
    font-size: clamp(44px, 4.5vw, 66px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 12px;
  }

  .rpt-sec-value.dim { color: rgba(255,255,255,0.28); }

  .rpt-sec-label {
    font-size: clamp(17px, 1.6vw, 22px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .rpt-sec-tag {
    font-size: 16px;
    color: rgba(255,255,255,0.64);
    line-height: 1.4;
  }

  .rpt-honesty-note {
    display: none;
  }

  .rpt-recommendation {
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 28px 28px 24px;
    margin-bottom: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .rpt-rec-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    text-align: center;
  }

  .rpt-rec-main {
    font-size: clamp(32px, 3.3vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
    line-height: 1.08;
    margin-bottom: 18px;
    word-break: break-word;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.34);
    text-underline-offset: 5px;
    text-align: center;
  }

  .rpt-rec-why {
    font-size: 16px;
    color: rgba(255,255,255,0.62);
    line-height: 1.34;
    max-width: 980px;
    margin: 0 auto 12px;
    text-align: center;
  }

  .rpt-rec-what {
    font-size: 16px;
    color: rgba(255,255,255,0.62);
    line-height: 1.34;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
  }

  .rpt-cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }

  .rpt-cta-primary {
    min-width: 470px;
    padding: 15px 22px;
    background: #ffffff;
    color: #1802a6;
    border: none;
    border-radius: 16px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: opacity 0.15s;
  }

  .rpt-cta-primary:hover { opacity: 0.88; }

  .rpt-cta-secondary {
    min-width: 260px;
    padding: 15px 22px;
    background: transparent;
    color: rgba(255,255,255,0.54);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
  }

  .rpt-cta-secondary:hover { border-color: rgba(255,255,255,0.5); color: #ffffff; }

  .rpt-footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(640px, 100%);
    margin: 14px auto 0;
  }

  .rpt-footer-divider::before,
  .rpt-footer-divider::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background: rgba(255,255,255,0.42);
  }

  .rpt-footer-link {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
    text-align: center;
    width: auto;
    flex: 0 0 auto;
    padding: 0;
  }

  @media (min-width: 1024px) and (max-height: 940px) {
    .report-container { padding: 14px 18px; }
    .rpt-eyebrow { margin-bottom: 10px; }
    .rpt-headline { font-size: clamp(38px, 5.4vw, 66px); margin-bottom: 20px; }
    .rpt-grid-primary,
    .rpt-grid-secondary { gap: 12px; margin-bottom: 16px; }
    .rpt-card-primary { min-height: 214px; padding: 20px 18px 18px; }
    .rpt-grid-secondary { max-width: 820px; }
    .rpt-card-secondary { min-height: 154px; padding: 18px 18px 16px; }
    .rpt-card-big-number { font-size: clamp(54px, 5vw, 76px); margin-bottom: 10px; }
    .rpt-sec-value { font-size: clamp(38px, 3.8vw, 56px); margin-bottom: 10px; }
    .rpt-card-title,
    .rpt-sec-label { font-size: clamp(15px, 1.4vw, 19px); margin-bottom: 8px; }
    .rpt-card-detail,
    .rpt-path-detail,
    .rpt-sec-tag,
    .rpt-rec-why,
    .rpt-rec-what { font-size: 14px; }
    .rpt-path-eyebrow,
    .rpt-rec-label { font-size: 12px; margin-bottom: 12px; }
    .rpt-path-name { font-size: clamp(24px, 2.5vw, 34px); margin-bottom: 8px; }
    .rpt-recommendation { padding: 22px 20px 18px; margin-bottom: 16px; }
    .rpt-rec-main { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 12px; }
    .rpt-cta-row { gap: 12px; margin-bottom: 12px; }
    .rpt-cta-primary,
    .rpt-cta-secondary { padding: 12px 18px; font-size: 15px; }
    .rpt-cta-primary { min-width: 420px; }
    .rpt-cta-secondary { min-width: 230px; }
    .rpt-footer-divider { width: min(580px, 100%); }
    .rpt-footer-link { font-size: 13px; }
    .rpt-early-hero { margin-bottom: 10px; }
    .rpt-early-eyebrow { margin-bottom: 8px; }
    .rpt-early-lead { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 8px; }
    .rpt-early-copy { font-size: 14px; }
    .rpt-early-grid { gap: 12px; margin-bottom: 12px; }
    .rpt-early-card { min-height: 154px; padding: 16px 16px 14px; }
    .rpt-early-card-value { font-size: clamp(22px, 2.2vw, 32px); margin-bottom: 8px; }
    .rpt-early-card-detail,
    .rpt-early-note { font-size: 13px; }
  }

  .rpt-footer-link:hover { color: rgba(255,255,255,0.48); }

  /* ── Early / low-signal report ────────────────────────────────────── */

  .rpt-early-layout {
    display: none;
  }

  .rpt-early-hero {
    text-align: center;
    margin-bottom: 14px;
  }

  .rpt-early-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.34);
    margin-bottom: 10px;
  }

  .rpt-early-lead {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: #ffffff;
    margin-bottom: 10px;
  }

  .rpt-early-copy {
    font-size: 16px;
    color: rgba(255,255,255,0.56);
    line-height: 1.38;
    max-width: 920px;
    margin: 0 auto;
  }

  .rpt-early-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
  }

  .rpt-early-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.045));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 20px 20px 18px;
    min-height: 184px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  }

  .rpt-early-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    margin-bottom: 10px;
  }

  .rpt-early-card-value {
    font-size: clamp(28px, 2.8vw, 40px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.06;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
  }

  .rpt-early-card-detail {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.32;
  }

  .rpt-early-note {
    text-align: center;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,0.54);
  }

  .rpt-early-note strong {
    color: #ffffff;
    font-weight: 700;
  }

  #rpt-early-layout .rpt-recommendation {
    margin-bottom: 14px;
  }

  #rpt-early-layout .rpt-cta-row {
    justify-content: center;
  }

  /* Reveal animation */
  .rpt-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }

  .rpt-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Full report stub */
  #full-report-stub {
    display: none;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  #full-report-stub .report-container {
    width: 100%;
    min-height: 100vh;
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
  }

  .full-report-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
  }

  .gate-card {
    width: 100%;
    padding: 28px 30px 22px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.05)),
      rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.11),
      0 26px 80px rgba(14, 0, 88, 0.22);
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(10px) scale(0.988);
    transition: opacity 0.22s ease, transform 0.22s ease;
    max-height: calc(100vh - 40px);
    overflow: hidden;
  }

  .gate-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
    background:
      radial-gradient(circle at 50% 0%, rgba(255,255,255,0.1), transparent 56%),
      linear-gradient(180deg, rgba(61, 45, 255, 0.74), rgba(42, 24, 238, 0.68));
    backdrop-filter: blur(12px) saturate(112%);
    -webkit-backdrop-filter: blur(12px) saturate(112%);
  }

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

  #full-report-stub.is-visible .gate-card {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .gate-headline {
    margin: 0 auto 10px;
    font-size: clamp(32px, 4.6vw, 52px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.96;
    color: #ffffff;
  }

  .gate-copy {
    max-width: 430px;
    margin: 0 auto 14px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,0.5);
  }

  .gate-feature-list {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
  }

  .gate-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.058), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    text-align: left;
    opacity: 0;
    transform: translateY(8px);
    transform-origin: center;
    cursor: default;
    transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  #full-report-stub.is-visible .gate-feature {
    opacity: 1;
    transform: translateY(0);
  }

  #full-report-stub.is-visible .gate-feature:nth-child(1) { transition-delay: 0.04s; }
  #full-report-stub.is-visible .gate-feature:nth-child(2) { transition-delay: 0.08s; }
  #full-report-stub.is-visible .gate-feature:nth-child(3) { transition-delay: 0.12s; }

  .gate-feature:hover {
    transform: translateY(-2px) scale(1.018);
    border-color: rgba(255,255,255,0.16);
    background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.055));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.1),
      0 14px 36px rgba(8, 0, 72, 0.2);
  }

  .gate-feature:hover .gate-feature-icon {
    background: rgba(255,255,255,0.085);
    border-color: rgba(255,255,255,0.1);
  }

  .gate-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.06);
  }

  .gate-feature-icon svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255,255,255,0.76);
  }

  .gate-feature-title {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 1px;
  }

  .gate-feature-copy {
    font-size: 12.5px;
    line-height: 1.35;
    color: rgba(255,255,255,0.38);
  }

  .gate-actions {
    display: grid;
    gap: 8px;
  }

  .gate-actions .rpt-cta-primary,
  .gate-actions .rpt-cta-secondary {
    width: 100%;
    min-width: 0;
  }

  .gate-signin {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.24);
  }

  .gate-signin-link {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: rgba(255,255,255,0.48);
    cursor: pointer;
    transition: color 0.15s ease;
  }

  .gate-signin-link:hover {
    color: rgba(255,255,255,0.9);
  }

  #gate-root {
    width: 100%;
  }

  .gate-shell {
    width: min(100%, 580px);
    margin: 0 auto;
  }

  .gate-intent-note {
    margin: 0 auto 22px;
    max-width: 430px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.42);
  }

  .gate-intent-path {
    color: rgba(255,173,96,0.95);
  }

  .auth-card {
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 18px;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04)),
      linear-gradient(180deg, rgba(46, 31, 240, 0.9), rgba(28, 16, 198, 0.88));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
      0 28px 72px rgba(7, 2, 58, 0.24),
      inset 0 1px 0 rgba(255,255,255,0.1);
    color: #ffffff;
    max-height: calc(100vh - 40px);
    overflow: hidden;
  }

  .auth-title {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #ffffff;
    text-align: center;
  }

  .auth-copy {
    margin: 8px auto 16px;
    max-width: 330px;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    color: rgba(255,255,255,0.58);
  }

  .auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
  }

  /* The sliding pill that glides between Sign In / Sign Up. Position + size are
     set in JS (syncAuthIndicator) from the active tab, so it tracks any width. */
  .auth-tab-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(7, 2, 58, 0.16);
    transform: translate(0, 0);
    transition:
      transform 0.52s cubic-bezier(0.4, 0.02, 0.1, 1),
      width 0.52s cubic-bezier(0.4, 0.02, 0.1, 1),
      height 0.52s cubic-bezier(0.4, 0.02, 0.1, 1);
    pointer-events: none;
    z-index: 0;
  }

  .auth-tab {
    position: relative;
    z-index: 1;
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 11px 14px;
    background: transparent;
    color: rgba(255,255,255,0.55);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.42s ease;
  }

  .auth-tab:hover {
    color: rgba(255,255,255,0.88);
  }

  /* Background + shadow now come from the sliding pill behind the tabs. */
  .auth-tab.is-active {
    color: #1802a6;
  }

  .auth-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  }

  .auth-social:hover {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 14px 28px rgba(7, 2, 58, 0.14);
    transform: translateY(-1px);
  }

  .auth-google-mark {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 18px;
    line-height: 1;
  }

  .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.34);
    font-size: 12px;
    font-weight: 600;
  }

  .auth-divider::before,
  .auth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: rgba(255,255,255,0.14);
  }

  .auth-form {
    display: grid;
    gap: 10px;
  }

  .auth-field {
    display: grid;
    gap: 6px;
    text-align: left;
  }

  .auth-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .auth-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.66);
  }

  .auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  }

  .auth-input::placeholder {
    color: rgba(255,255,255,0.32);
  }

  .auth-input:focus {
    border-color: rgba(255,255,255,0.34);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.08);
  }

  .auth-pw-wrap {
    position: relative;
  }

  .auth-pw-wrap .auth-input {
    padding-right: 42px;
  }

  .auth-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: rgba(255,255,255,0.38);
    display: flex;
    align-items: center;
    transition: color 0.15s;
    line-height: 0;
  }

  .auth-pw-toggle:hover {
    color: rgba(255,255,255,0.72);
  }

  .auth-pw-toggle svg {
    width: 16px;
    height: 16px;
  }

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

  .auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255,255,255,0.6);
  }

  .auth-check input {
    width: 15px;
    height: 15px;
    accent-color: #ffffff;
  }

  .auth-inline-link,
  .auth-legal-link,
  .auth-back-link {
    background: none;
    border: none;
    padding: 0;
    color: rgba(255,255,255,0.74);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
  }

  .auth-inline-link:hover,
  .auth-legal-link:hover,
  .auth-back-link:hover {
    color: #ffffff;
  }

  .auth-feedback {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255,255,255,0.52);
    text-align: left;
  }

  .auth-feedback.is-error {
    color: #ffd0c7;
  }

  .auth-submit {
    width: 100%;
    appearance: none;
    border: none;
    border-radius: 16px;
    padding: 13px 16px;
    background: #ffffff;
    color: #1802a6;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(7, 2, 58, 0.14);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  }

  .auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 18px 30px rgba(7, 2, 58, 0.18);
  }

  .auth-footer {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.48);
  }

  .auth-footer strong {
    color: #ffffff;
  }

  .auth-subtle {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255,255,255,0.32);
  }

  .auth-back {
    margin-top: 10px;
    text-align: center;
  }

  /* Responsive */
  @media (max-width: 640px) {
    #app { height: auto; min-height: 100vh; padding: 20px 16px; }
    /* On mobile the stage grows with content (height:auto), so it can't scroll
       internally — let the page scroll instead of the desktop intake-lock. */
    body.intake-locked { overflow-y: auto; }
    .intake-stage { min-height: calc(100vh - 40px); height: auto; overflow: visible; }
    .intake-shell { width: 100%; }
    header { margin-bottom: 22px; }
    .logo { font-size: 30px; }
    .tagline { font-size: 21px; }
    .tagline-sub { font-size: 16px; max-width: 100%; }
    .card { max-width: 100%; }
    .source-form { padding: 20px 18px 18px; }
    .drop-zone { padding: 40px 20px; }
    .action-row { padding: 16px 18px 18px; }
    .tagline { white-space: normal; }
    .report-container { padding: 40px 20px 60px; }
    .rpt-headline { line-height: 1.02; }
    .rpt-grid-primary { grid-template-columns: 1fr; }
    .rpt-grid-secondary { grid-template-columns: 1fr; }
    .rpt-early-grid { grid-template-columns: 1fr; }
    .rpt-cta-row { flex-direction: column; }
    .rpt-cta-primary,
    .rpt-cta-secondary { min-width: 0; width: 100%; }
    .rpt-footer-divider { width: 100%; gap: 10px; }
    .rpt-early-lead { font-size: 28px; }
    #full-report-stub .report-container { padding: 16px; }
    .gate-card { padding: 24px 18px 18px; border-radius: 24px; max-height: calc(100vh - 32px); }
    .gate-headline { font-size: 28px; margin-bottom: 8px; }
    .gate-copy { font-size: 13px; margin-bottom: 12px; }
    .gate-feature { padding: 13px 13px; border-radius: 16px; }
    .gate-feature-title { font-size: 13.5px; }
    .gate-feature-copy { font-size: 12px; }
    .gate-signin { font-size: 12px; }
    .gate-shell { width: min(100%, 580px); margin: 0 auto; }
    .auth-card { padding: 22px 18px 16px; border-radius: 22px; max-height: calc(100vh - 32px); }
    .auth-title { font-size: 30px; }
    .auth-copy { font-size: 12px; margin-bottom: 14px; }
    .auth-tabs { margin-bottom: 10px; }
    .auth-tab { padding: 10px 12px; font-size: 13px; }
    .auth-social { font-size: 14px; padding: 13px 14px; }
    .auth-row { align-items: flex-start; flex-direction: column; }
    .auth-field-grid { grid-template-columns: 1fr; gap: 10px; }
  }

  /* Snapshot card v2 */
  #report-page {
    display: none;
    height: 100vh;
    background: var(--bg);
  }

  #report-page .report-container {
    width: 100%;
    height: 100vh;
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .rpt-report-stack {
    width: min(980px, calc(100vw - 40px));
    display: grid;
    gap: 18px;
  }

  .rpt-story-frame {
    width: 100%;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    justify-self: center;
    overflow: hidden;
  }

  .rpt-story-card {
    width: 780px;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 32px;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.12),
      0 0 0 1px rgba(255,255,255,0.06);
    padding: 40px 32px 18px;
    overflow: hidden;
    isolation: isolate;
  }

  .rpt-story-eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    margin-bottom: 16px;
  }

  .rpt-story-title {
    margin: 0 0 16px;
    font-size: clamp(36px, 4.1vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.05em;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    width: 100%;
  }

  .rpt-story-title.rpt-story-title-early {
    white-space: normal;
    font-size: clamp(34px, 3.8vw, 50px);
    line-height: 1.08;
  }

  .rpt-story-title.rpt-story-title-early .rpt-code-pill {
    margin-top: 10px;
  }

  .rpt-code-pill {
    display: inline-block;
    padding: 4px 16px 7px;
    border-radius: 14px;
    background: rgba(255,112,84,0.16);
    border: 1px solid rgba(255,138,108,0.32);
    color: #ff7a57;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    white-space: nowrap;
  }

  .rpt-story-subtitle {
    margin: 0 0 34px;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255,255,255,0.84);
  }

  .rpt-story-section {
    margin-bottom: 18px;
  }

  .rpt-story-section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    margin-bottom: 12px;
  }

  .rpt-story-grid {
    display: grid;
    gap: 10px;
  }

  .rpt-story-grid-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rpt-story-grid-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* When the PII card is significant, the bottom row carries 3 cards so it
     mirrors the top row (clean 3 + 3). Without it, the row stays 2-up. */
  .rpt-story-grid-bottom.rpt-bottom-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rpt-story-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    transform-origin: center;
  }

  .rpt-story-stat:hover {
    transform: scale(1.025);
    background: rgba(255,255,255,0.075);
    border-color: rgba(255,255,255,0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(0,0,0,0.08);
  }

  .rpt-story-stat:focus-visible {
    outline: none;
    transform: scale(1.025);
    border-color: rgba(255,255,255,0.3);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 0 0 2px rgba(255,255,255,0.18),
      0 10px 24px rgba(0,0,0,0.08);
  }

  .rpt-story-stat-label {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,0.58);
    margin-bottom: 12px;
    /* Reserve two lines so labels of different lengths (e.g. "Potentially
       sensitive fields") keep every stat value on the same baseline across a row. */
    min-height: 2.8em;
  }

  .rpt-story-stat-value {
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(255,255,255,0.94);
    white-space: nowrap;
  }

  .rpt-story-stat-value-danger {
    color: #ff6a4d;
  }

  .rpt-story-stat-value-warn {
    color: #ff6a4d;
  }

  .rpt-story-stat-value.dim,
  .rpt-story-stat-value-danger.dim,
  .rpt-story-stat-value-warn.dim {
    color: rgba(255,255,255,0.3);
  }

  .rpt-story-stat-detail {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.42;
    color: rgba(255,255,255,0.46);
  }

  .rpt-story-note {
    margin: 30px 0 34px;
    text-align: center;
  }

  .rpt-story-note-line {
    text-align: center;
  }

  .rpt-story-note-line {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.64);
  }

  .rpt-story-card.rpt-story-card-early .rpt-story-subtitle {
    color: rgba(255,255,255,0.8);
  }

  .rpt-story-card.rpt-story-card-early .rpt-story-stat-label {
    color: rgba(255,255,255,0.5);
  }

  .rpt-story-card.rpt-story-card-early .rpt-code-pill {
    background: rgba(255,218,26,0.16);
    border-color: rgba(255,226,86,0.32);
    color: #ffda1a;
  }

  .rpt-story-card.rpt-story-card-early .rpt-story-stat-value-danger,
  .rpt-story-card.rpt-story-card-early .rpt-story-stat-value {
    color: #ffda1a;
  }

  .rpt-story-card.rpt-story-card-early .rpt-story-stat-detail {
    display: block;
    color: rgba(255,245,199,0.66);
  }

  .rpt-story-card.rpt-story-card-early .rpt-story-note {
    border-left-color: rgba(255,218,26,0.34);
  }

  .rpt-story-card.rpt-story-card-invalid .rpt-story-subtitle {
    color: rgba(255,255,255,0.8);
  }

  .rpt-invalid-panel {
    display: none;
    margin: 0 0 28px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  }

  .rpt-invalid-panel-line {
    font-size: 15px;
    line-height: 1.62;
    color: rgba(255,255,255,0.72);
  }

  .rpt-story-note:empty {
    display: none;
  }

  #report-page .rpt-cta-row {
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }

  #report-page .rpt-cta-primary {
    min-width: 0;
    flex: 1 1 auto;
    padding: 15px 20px;
    border-radius: 16px;
    white-space: nowrap;
  }

  #report-page .rpt-cta-secondary {
    min-width: 0;
    flex: 0 0 auto;
    padding: 15px 20px;
    color: rgba(255,255,255,0.56);
    border-color: rgba(255,255,255,0.14);
    white-space: nowrap;
  }

  .rpt-upload-link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    text-align: center;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.28);
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-color 0.15s;
  }

  .rpt-upload-link:hover {
    color: rgba(255,255,255,0.86);
    text-decoration-color: rgba(255,255,255,0.48);
  }

  .rpt-control-shell {
    display: none;
  }

  .ghost-cc {
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 28px;
    padding: 28px 26px 26px;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 18px 40px rgba(0,0,0,0.12);
  }

  .ghost-cc-header {
    margin-bottom: 18px;
  }

  .ghost-cc-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    margin-bottom: 12px;
  }

  .ghost-cc-topline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
  }

  .ghost-cc-question {
    font-size: 13px;
    color: rgba(255,255,255,0.58);
    margin-bottom: 6px;
  }

  .ghost-cc h2 {
    margin: 0;
    font-size: clamp(24px, 2.9vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: #fff;
  }

  .ghost-cc-why-first {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.72);
  }

  .ghost-cc-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .ghost-cc-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    line-height: 1;
    color: rgba(255,255,255,0.76);
  }

  .ghost-cc-badge-primitive {
    background: rgba(255,112,84,0.12);
    border-color: rgba(255,138,108,0.22);
    color: #ffbe9e;
  }

  .ghost-cc-findings {
    display: grid;
    gap: 14px;
  }

  .ghost-cc-finding {
    border-radius: 22px;
    padding: 18px 18px 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.1);
  }

  .ghost-cc-finding-high {
    border-color: rgba(255,112,84,0.22);
    background: linear-gradient(180deg, rgba(255,112,84,0.08), rgba(255,255,255,0.03));
  }

  .ghost-cc-finding-medium {
    border-color: rgba(255,210,74,0.18);
  }

  .ghost-cc-finding-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .ghost-cc-finding-kicker {
    font-size: 12px;
    color: rgba(255,255,255,0.46);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }

  .ghost-cc-finding h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    color: #fff;
  }

  .ghost-cc-summary {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.82);
  }

  .ghost-cc-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .ghost-cc-meta div {
    padding: 12px 13px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .ghost-cc-meta span {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.46);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .ghost-cc-meta strong {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255,255,255,0.86);
    word-break: break-word;
  }

  .ghost-cc-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
  }

  .ghost-cc-copy-block {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .ghost-cc-copy-label {
    font-size: 12px;
    color: rgba(255,255,255,0.46);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }

  .ghost-cc-copy-block p,
  .ghost-cc-case p {
    margin: 0;
    font-size: 14px;
    line-height: 1.62;
    color: rgba(255,255,255,0.74);
  }

  .ghost-cc-evidence {
    margin-top: 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px 14px 10px;
  }

  .ghost-cc-evidence summary {
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.86);
  }

  .ghost-cc-evidence summary::-webkit-details-marker {
    display: none;
  }

  .ghost-cc-list {
    margin: 14px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: rgba(255,255,255,0.74);
    font-size: 14px;
    line-height: 1.58;
  }

  .ghost-cc-case-grid {
    display: grid;
    gap: 10px;
    margin-top: 14px;
  }

  .ghost-cc-case {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
  }

  .ghost-cc-case-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: #fff;
  }

  .ghost-cc-case-head span {
    color: rgba(255,173,96,0.9);
    font-size: 13px;
  }

  .ghost-cc-case-meta,
  .ghost-cc-empty-note {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.58);
  }

  .rpt-story-card.rpt-visible {
    animation: rpt-card-in 0.45s ease both;
  }

  .rpt-story-card.rpt-reveal {
    opacity: 1;
    transform: none;
  }

  .rpt-story-stat.rpt-visible {
    animation: rpt-box-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes rpt-card-in {
    from {
      translate: 0 8px;
    }
    to {
      translate: 0 0;
    }
  }

  @keyframes rpt-box-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 640px) {
    #report-page .report-container {
      height: 100vh;
      padding: 16px;
      align-items: center;
    }

    .rpt-story-frame {
      width: 100%;
    }

    .rpt-story-card {
      border-radius: 24px;
      padding: 28px 20px 18px;
    }

    .rpt-story-title {
      font-size: 24px;
    }

    .rpt-story-grid-top,
    .rpt-story-grid-bottom {
      grid-template-columns: 1fr;
    }

    .ghost-cc {
      padding: 22px 18px 20px;
      border-radius: 24px;
    }

    .ghost-cc-topline {
      flex-direction: column;
    }

    .ghost-cc-badges {
      justify-content: flex-start;
    }

    .ghost-cc-meta,
    .ghost-cc-copy-grid {
      grid-template-columns: 1fr;
    }

    #report-page .rpt-cta-row {
      flex-direction: column;
    }

    #report-page .rpt-cta-primary,
    #report-page .rpt-cta-secondary {
      width: 100%;
    }
  }

  /* ── Wrap snippet modal ──────────────────────────────────────────────────── */

  #snippet-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .snippet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 18, 0.45);
    backdrop-filter: blur(20px) saturate(0.7);
    -webkit-backdrop-filter: blur(20px) saturate(0.7);
    animation: backdrop-in 0.4s ease both;
  }

  @keyframes backdrop-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .snippet-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 580px);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04)),
      linear-gradient(180deg, rgba(46, 31, 240, 0.96), rgba(28, 16, 198, 0.95));
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 20px;
    box-shadow:
      0 32px 80px rgba(7, 2, 58, 0.4),
      inset 0 1px 0 rgba(255,255,255,0.12);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: snippet-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes snippet-in {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to   { opacity: 1; transform: none; }
  }

  .snippet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .snippet-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .snippet-path-pill {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 2px 8px;
    color: #ffffff;
  }

  .snippet-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1;
  }

  .snippet-close:hover {
    color: #ffffff;
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.08);
  }

  .snippet-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.55;
    margin: -6px 0;
  }

  .snippet-code-wrap {
    position: relative;
  }

  .snippet-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255,255,255,0.92);
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 18px 20px;
    padding-right: 60px;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
  }

  .snippet-copy-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }

  .snippet-copy-icon:hover {
    background: rgba(255,255,255,0.18);
    color: #ffffff;
  }

  .snippet-install {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
  }

  .snippet-inline-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 1px 6px;
    color: rgba(255,255,255,0.7);
  }

  .snippet-actions {
    display: flex;
    gap: 12px;
  }

  .snippet-back-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  /* Email capture form (View A) */
  .snippet-signup-field {
    display: flex;
    gap: 10px;
    margin-top: 4px;
  }

  .snippet-email-input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s;
  }

  .snippet-email-input::placeholder {
    color: rgba(255,255,255,0.35);
  }

  .snippet-email-input:focus {
    border-color: rgba(255,255,255,0.4);
  }

  .snippet-signup-btn {
    flex-shrink: 0;
    padding: 11px 20px;
    font-size: 14px;
    white-space: nowrap;
  }

  .snippet-signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .snippet-signup-error {
    margin: 8px 0 0;
    font-size: 13px;
    color: #ff6b6b;
  }

  /* API key display (View B) */
  .snippet-key-block {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 4px;
  }

  .snippet-key-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
  }

  .snippet-key-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .snippet-key-value {
    flex: 1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #a8f0c6;
    word-break: break-all;
  }

  .snippet-key-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
  }

  @media (max-width: 520px) {
    .snippet-dialog {
      padding: 24px 20px;
      border-radius: 16px;
    }
    .snippet-actions {
      flex-direction: column;
    }
    .snippet-back-btn {
      width: 100%;
    }
    .snippet-signup-field {
      flex-direction: column;
    }
    .snippet-signup-btn {
      width: 100%;
    }
  }

  /* ── Protect dialog (replaces snippet modal content) ────────────────────── */

  .protect-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    background: #1802a6;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    box-shadow: 0 36px 90px rgba(0,0,40,0.52), inset 0 1px 0 rgba(255,255,255,0.1);
    padding: 38px 52px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: snippet-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .protect-mark {
    width: 46px;
    height: auto;
    margin-bottom: 22px;
    opacity: 0.96;
  }

  .protect-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
  }

  .protect-headline {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 36px;
    white-space: nowrap;
  }

  /* fn name reads as an identifier — lighter, slightly smaller */
  .protect-headline .protect-fn {
    display: block;
    font-size: 0.75em;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.65);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    margin-bottom: 6px;
  }

  .protect-cmd-block {
    width: 100%;
    box-sizing: border-box;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 8px;
    padding: 17px 22px;
    display: block;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
  }

  .protect-cmd-hint {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.52);
    text-align: center;
    max-width: 460px;
    margin: 2px auto 16px;
    letter-spacing: 0.005em;
  }

  .protect-cmd-note {
    width: 100%;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.76);
    text-align: center;
    margin-bottom: 16px;
  }

  /* G3 — the session-handoff degrade hint. Amber so it reads as "heads up, but
     fine," not an error. Hidden by default; toggled via the [hidden] attribute. */
  .protect-session-degrade {
    color: rgba(255,196,120,0.92);
    margin-top: -6px;
  }
  .protect-session-degrade[hidden] { display: none; }

  .protect-inline-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    color: #fff;
  }

  .protect-prompt { color: rgba(255,255,255,0.35); user-select: none; }
  .protect-pkg    { color: rgba(255,255,255,0.9); }
  .protect-sub    { color: rgba(255,255,255,0.45); }
  .protect-arg    { color: #fff; font-weight: 600; }

  @keyframes cta-glow {
    0%, 100% { box-shadow: 0 0 0px 0px rgba(255,255,255,0); }
    50%       { box-shadow: 0 0 16px 4px rgba(255,255,255,0.13); }
  }

  .protect-copy-btn {
    width: 100%;
    background: #fff;
    color: #1802a6;
    border: none;
    border-radius: 8px;
    padding: 19px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    letter-spacing: -0.02em;
    transition: background 0.5s ease, color 0.5s ease, transform 0.1s;
    animation: cta-glow 4s ease-in-out infinite;
  }
  .protect-copy-btn:hover  { background: rgba(255,255,255,0.92); }
  .protect-copy-btn:active { transform: scale(0.99); }
  .protect-copy-btn.done {
    background: #0d9b6b;
    color: #fff;
    cursor: default;
    animation: none;
  }

  .protect-alt-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
  }

  .protect-secondary-btn {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .protect-secondary-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
  }

  .protect-secondary-btn.done {
    background: rgba(13,155,107,0.18);
    border-color: rgba(13,155,107,0.42);
    color: #c8ffeb;
  }

  .protect-manual {
    width: 100%;
    margin-top: 14px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(0,0,0,0.18);
    text-align: left;
  }

  .protect-manual-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
  }

  .protect-manual-copy {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
  }

  .protect-manual-code {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
  }

  .protect-back-link {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
    font-family: var(--font);
    cursor: pointer;
    margin-top: 22px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s;
  }
  .protect-back-link:hover { color: rgba(255,255,255,0.6); }

  @media (max-width: 520px) {
    .protect-dialog { padding: 32px 24px 28px; border-radius: 10px; }
    .protect-headline { font-size: 34px; }
    .protect-alt-actions { grid-template-columns: 1fr; }
  }
