[data-claude-promo][hidden] { display: none !important; }

:root {
    --bg: #f4f5f2;
    --surface: #ffffff;
    --surface-2: #f8f9f6;
    --inset: #f8f9f6;
    --line: #e3e6e1;
    --line-strong: #c3c9c2;
    --ink: #1c1f1c;
    --ink-soft: #4e544f;
    --ink-muted: #727972;
    --green: #16794d;
    --green-hi: #11633e;
    --green-deep: #ffffff;
    --green-soft: #e9f4ed;
    --green-line: #c8e1d2;
    --amber: #a1640f;
    --amber-soft: #fdf4e3;
    --amber-line: #eeddbf;
    --red: #b42318;
    --red-soft: #fff3f1;
    --red-line: #f3cbc7;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 10px;
    --sans: Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  }

  * { box-sizing: border-box; }

  html { color-scheme: light; }

  body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  ::selection { background: rgba(22, 121, 77, .16); }

  button,
  a { -webkit-tap-highlight-color: transparent; }

  button { font: inherit; }

  a,
  button,
  summary { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }

  :focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
  }

  .container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
  }

  /* ---------- nav ---------- */

  .nav {
    height: 62px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
  }

  .brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
  }

  .brand-mark.has-brand-logo {
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: 0 7px 16px -10px rgba(10, 70, 43, 0.8);
  }

  .brand-mark.has-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .referral-nav-entry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid var(--green);
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    color: var(--green);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    animation: referral-nudge .58s ease 1.15s 3 both;
    transform-origin: 50% 60%;
  }

  .referral-nav-entry:hover {
    background: var(--green);
    color: #fff;
  }

  .referral-nav-entry svg { width: 14px; height: 14px; flex: 0 0 auto; }

  .referral-nav-badge {
    padding: 2px 4px;
    border-radius: 3px;
    background: var(--amber);
    color: #fff;
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .contact-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .contact-nav-link:hover {
    border-color: var(--green-line);
    background: var(--green-soft);
    color: var(--green);
  }

  .contact-nav-link svg { width: 14px; height: 14px; }

  .image-lab-entry {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 14px -12px rgba(22, 121, 77, .8);
  }

  .image-lab-entry:hover {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
  }

  .image-lab-entry svg { width: 15px; height: 15px; }

  .image-lab-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  .image-lab-model {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 9px;
  }

  .image-lab-new {
    padding: 2px 4px;
    border-radius: 3px;
    background: var(--green);
    color: #fff;
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1;
  }

  .image-lab-entry:hover .image-lab-new { background: #fff; color: var(--green); }

  .status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
  }

  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink-muted);
    box-shadow: none;
  }

  .status.is-healthy .status-dot {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 121, 77, .12);
    animation: status-pulse 2.4s ease-in-out infinite;
  }

  .status.is-unhealthy .status-dot {
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
  }

  /* ---------- hero ---------- */

  .hero {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(520px, 1.22fr);
    gap: 64px;
    align-items: start;
    padding: 84px 0 64px;
  }

  .intro { padding-top: 12px; }

  .eyebrow {
    margin: 0 0 26px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .eyebrow .bracket { color: var(--green); }

  .intro h1 {
    margin: 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
  }

  .caret {
    color: var(--green);
    font-weight: 400;
    animation: caret-blink 1.1s step-end infinite;
  }

  .lede {
    max-width: 380px;
    margin: 26px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.8;
  }

  .notes {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
  }

  .notes::before {
    content: "//";
    color: var(--green);
    font-family: var(--mono);
    font-size: 12px;
  }

  .notes-divider {
    width: 1px;
    height: 13px;
    background: var(--line-strong);
  }

  .hero-image-launcher {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 28px;
    align-items: center;
    gap: 12px;
    width: min(100%, 400px);
    min-height: 68px;
    margin-top: 24px;
    padding: 9px 11px;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 15px 28px -24px rgba(22, 121, 77, .72);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
  }

  .hero-image-launcher:hover {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
    transform: translateY(-2px);
  }

  .hero-image-launcher-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--green);
  }

  .hero-image-launcher-icon svg { width: 20px; height: 20px; }

  .hero-image-launcher-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .hero-image-launcher-copy strong {
    font-size: 14px;
    line-height: 1.2;
  }

  .hero-image-launcher-copy small {
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .hero-image-launcher-new {
    padding: 4px 6px;
    border-radius: 3px;
    background: var(--green);
    color: #fff;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
  }

  .hero-image-launcher:hover .hero-image-launcher-new {
    background: #fff;
    color: var(--green);
  }

  .hero-image-launcher:hover .hero-image-launcher-icon {
    background: rgba(255, 255, 255, .14);
    color: #fff;
  }

  .hero-image-launcher:hover .hero-image-launcher-copy small { color: rgba(255, 255, 255, .72); }

  .hero-image-launcher-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-left: 1px solid var(--green-line);
    color: var(--green);
  }

  .hero-image-launcher-arrow svg { width: 17px; height: 17px; }

  .hero-referral-entry {
    display: grid;
    position: relative;
    overflow: hidden;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: min(100%, 400px);
    min-height: 72px;
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid #155e43;
    border-radius: var(--radius-sm);
    background:
      linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
      linear-gradient(135deg, #123d2e, #0b2c21);
    background-size: 16px 16px, 16px 16px, auto;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 14px 30px -20px rgba(10, 63, 43, .85);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  }

  .hero-referral-entry::after {
    content: "";
    position: absolute;
    top: -45px;
    right: -25px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(67, 214, 142, .12);
    filter: blur(4px);
    pointer-events: none;
  }

  .hero-referral-entry:hover {
    border-color: #35b878;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -18px rgba(10, 63, 43, .95);
  }

  .hero-referral-models {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 58px;
  }

  .hero-referral-models b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: #f4fbf7;
    color: #0e5035;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  }

  .hero-referral-models b img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .hero-referral-models b.is-claude {
    margin-left: -13px;
    background: #f2e9dc;
  }

  .hero-referral-models b.is-claude img {
    width: 23px;
    height: 23px;
  }

  .hero-referral-copy,
  .hero-referral-copy strong,
  .hero-referral-copy small { display: block; min-width: 0; }
  .hero-referral-copy { position: relative; z-index: 1; }
  .hero-referral-kicker {
    display: block;
    margin-bottom: 2px;
    color: #65dda0;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .06em;
  }
  .hero-referral-copy strong { font-size: 13px; }
  .hero-referral-copy small { margin-top: 2px; color: rgba(255, 255, 255, .65); font-size: 9px; }

  .hero-referral-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7ce6ad;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
  }

  .hero-referral-action svg { width: 14px; height: 14px; }

  .spec {
    max-width: 400px;
    margin-top: 30px;
    padding: 4px 0;
    border-top: 1px solid var(--line);
  }

  .spec-row {
    display: flex;
    align-items: baseline;
    min-height: 46px;
    padding-top: 12px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0;
  }

  .spec-key { color: var(--ink-soft); transition: color .18s ease; }
  .spec-row:hover .spec-key { color: var(--ink); }

  .spec-dots {
    flex: 1;
    margin: 0 12px;
    border-bottom: 1px dotted var(--line-strong);
    transform: translateY(-3px);
  }

  .spec-val {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
  }

  .spec-val svg { width: 12px; height: 12px; }

  /* ---------- claim card ---------- */

  .card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 24px 60px -32px rgba(28, 31, 28, .28);
    animation: card-enter .55s ease-out both;
  }

  .card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
  }

  .card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
  }

  .card-no {
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
  }

  .ttl {
    padding: 5px 11px;
    border: 1px solid var(--green-line);
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .route-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 18px 26px 0;
  }

  /* Four equal cards on a 2x2 grid, so every channel reads the same. */
  .route-meta {
    display: grid;
    align-content: space-between;
    justify-items: end;
    gap: 4px;
    height: 100%;
  }

  .route-ttl {
    padding: 2px 7px;
    border: 1px solid var(--green-line);
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
  }

  .route-option:disabled .route-state {
    border-style: dashed;
  }

  .key-remaining {
    margin: 10px 0 0;
    font-size: 0.86rem;
    color: var(--ink-muted, #6b7280);
    letter-spacing: 0.01em;
  }

  .key-remaining span {
    font-variant-numeric: tabular-nums;
    font-family: var(--mono);
    color: var(--ink, #111);
  }

  .route-option {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--ink-soft);
    cursor: pointer;
    text-align: left;
  }

  .route-option:hover:not(:disabled):not(.is-active) { border-color: var(--line-strong); }

  .route-option.is-active {
    border-color: var(--ink);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 4px 14px -10px rgba(28, 31, 28, .45);
  }

  .route-option:disabled {
    cursor: not-allowed;
    opacity: .5;
  }

  .route-logo {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
  }

  .route-option.is-active .route-logo {
    border-color: var(--green-line);
    background: var(--green-soft);
    color: var(--green);
  }

  .route-logo.is-zai,
  .route-option.is-active .route-logo.is-zai {
    overflow: hidden;
    border-color: #2d2d2d;
    background: #2d2d2d;
  }

  .route-logo.is-zai img {
    display: block;
    width: 29px;
    height: 29px;
    object-fit: contain;
  }

  .route-logo.is-grok,
  .route-option.is-active .route-logo.is-grok {
    overflow: hidden;
    border-color: #050505;
    background: #050505;
  }

  .route-logo.is-grok img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
  }

  .route-logo.is-claude,
  .route-option.is-active .route-logo.is-claude {
    overflow: hidden;
    border-color: #d4a574;
    background: #f2e9dc;
  }

  .route-logo.is-claude img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .route-logo.is-gpt {
    overflow: hidden;
    border-color: #1f2320;
    background: #1f2320;
  }

  .route-logo.is-gpt img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

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

  .route-name {
    display: block;
    overflow: hidden;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .route-desc {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .route-state {
    align-self: start;
    justify-self: end;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
  }

  .route-window-countdown {
    min-width: 8.2ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }

  .route-option.is-active .route-state {
    border-color: var(--green-line);
    background: var(--green-soft);
    color: var(--green);
  }

  .route-option.is-status-off .route-state,
  .route-option.is-active.is-status-off .route-state {
    border-color: #d6d9d6;
    background: #f0f1ef;
    color: #6c716c;
  }

  .route-option.is-status-cooldown .route-state,
  .route-option.is-active.is-status-cooldown .route-state,
  .route-option.is-status-check .route-state,
  .route-option.is-active.is-status-check .route-state {
    border-color: #e6c986;
    background: #fff7df;
    color: #8a5d00;
  }

  .route-option.is-status-recovery .route-state,
  .route-option.is-active.is-status-recovery .route-state {
    border-color: #9fc4e7;
    background: #edf6ff;
    color: #17649d;
  }

  .card-body { padding: 26px 26px 24px; }

  .channel-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 0 2px;
  }

  .channel-context-label {
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
  }

  .channel-context-value {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
  }

  .channel-context-value::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 121, 77, .1);
  }

  .channel-context-value.is-status-off::before {
    background: #8a908a;
    box-shadow: 0 0 0 3px rgba(108, 113, 108, .1);
  }

  .channel-context-value.is-status-cooldown::before,
  .channel-context-value.is-status-check::before {
    background: #b77a00;
    box-shadow: 0 0 0 3px rgba(183, 122, 0, .11);
  }

  .channel-context-value.is-status-recovery::before {
    background: #247ab5;
    box-shadow: 0 0 0 3px rgba(36, 122, 181, .11);
  }

  .claim-policy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 2px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .claim-policy-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  .claim-policy-label svg {
    width: 14px;
    height: 14px;
    color: var(--green);
  }

  .claim-policy p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.6;
  }

  .policy-ttl {
    color: var(--green);
    font-weight: 800;
  }

  /* The revocation rule gets its own full-width line: it is a condition on the
     key, not a footnote to the line above. */
  .claim-policy .claim-policy-rule {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    color: #8a5d00;
  }

  .claim-policy .claim-policy-rule strong { font-weight: 800; }

  .referral-task[hidden] { display: none; }

  .referral-task {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0 0 14px;
    padding: 12px 13px;
    border: 1px solid var(--amber-line);
    border-radius: var(--radius);
    background: var(--amber-soft);
  }

  .referral-task-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--amber-line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--amber);
  }

  .referral-task-icon svg { width: 17px; height: 17px; }
  .referral-task-copy,
  .referral-task-copy strong,
  .referral-task-copy span,
  .referral-task-copy small { display: block; }
  .referral-task-copy strong { color: var(--ink); font-size: 12px; }
  .referral-task-copy span { margin-top: 3px; color: var(--ink-soft); font-size: 11px; line-height: 1.62; }
  .referral-task-copy small { margin-top: 3px; color: var(--amber); font-size: 9px; font-weight: 700; }

  .verification {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 300px;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--inset);
  }

  .verification.is-ready { grid-template-columns: 1fr; }

  .verification-lead {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  .verification-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--amber-line);
    border-radius: var(--radius-sm);
    background: var(--amber-soft);
    color: var(--amber);
  }

  .verification-icon svg { width: 19px; height: 19px; }

  .verification.is-ready .verification-icon {
    border-color: var(--green-line);
    background: var(--green-soft);
    color: var(--green);
  }

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

  .verification-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
  }

  .verification-desc {
    margin: 0;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 1.55;
  }

  #turnstile-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    min-height: 65px;
    overflow: hidden;
  }

  #turnstile-box:empty {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 10px;
  }

  #turnstile-box:empty::before { content: "SECURITY CHECK LOADING"; }
  .verification.is-ready #turnstile-box { display: none; }

  .claim-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    margin-top: 16px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(24, 28, 24, .12);
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  }

  .claim-button:hover:not(:disabled) {
    border-color: #2f342f;
    background: #2f342f;
    box-shadow: 0 6px 16px -6px rgba(24, 28, 24, .3);
    transform: translateY(-1px);
  }

  .claim-button:active:not(:disabled) {
    box-shadow: 0 1px 2px rgba(24, 28, 24, .12);
    transform: translateY(0);
  }

  .claim-button:disabled {
    border-color: #b9bdb9;
    background: #b9bdb9;
    box-shadow: none;
    cursor: not-allowed;
  }

  .claim-button-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
  }

  .claim-button-icon svg { width: 18px; height: 18px; }

  .risk-challenge[hidden] { display: none; }

  .risk-challenge {
    min-width: 0;
    margin-top: 16px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--amber-line);
    border-radius: var(--radius);
    background:
      linear-gradient(rgba(177, 111, 10, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(177, 111, 10, .035) 1px, transparent 1px),
      var(--amber-soft);
    background-size: 18px 18px, 18px 18px, auto;
  }

  .risk-challenge-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .risk-challenge-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--amber-line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--amber);
  }

  .risk-challenge-icon svg { width: 20px; height: 20px; }

  .risk-challenge-copy,
  .risk-challenge-copy > span,
  .risk-challenge-copy > strong { display: block; min-width: 0; }

  .risk-challenge-kicker {
    color: var(--amber);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .risk-challenge-copy > strong { margin-top: 2px; color: var(--ink); font-size: 14px; }
  .risk-challenge-copy > span:last-child { margin-top: 3px; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }

  .risk-tutorial-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    padding: 12px;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }

  .risk-step-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 800;
  }

  .risk-step-copy,
  .risk-step-copy strong,
  .risk-step-copy span { display: block; min-width: 0; }
  .risk-step-copy strong { color: var(--ink); font-size: 11px; }
  .risk-step-copy span { margin-top: 2px; color: var(--ink-muted); font-size: 9px; line-height: 1.5; }

  .risk-tutorial-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--green);
    border-radius: var(--radius-sm);
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
  }

  .risk-tutorial-link:hover { background: var(--green-hi); }
  .risk-tutorial-link svg { flex: 0 0 auto; width: 14px; height: 14px; }

  .risk-tutorial-countdown {
    margin: 8px 2px 0;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 750;
  }

  .risk-tutorial-countdown.is-ready { color: var(--green); }

  .risk-verification-step {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 300px;
    gap: 14px;
    align-items: center;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--inset);
  }

  .risk-verification-copy {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
  }

  .risk-verification-copy > span:last-child,
  .risk-verification-copy strong,
  .risk-verification-copy small { display: block; min-width: 0; }
  .risk-verification-copy strong { color: var(--ink); font-size: 11px; }
  .risk-verification-copy small { margin-top: 2px; color: var(--ink-muted); font-size: 9px; }

  #risk-turnstile-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    max-width: 100%;
    min-height: 65px;
    overflow: hidden;
  }

  #risk-turnstile-box:empty {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 9px;
  }

  #risk-turnstile-box:empty::before { content: "ADDITIONAL CHECK LOADING"; }

  .risk-submit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    margin-top: 12px;
    padding: 0 15px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
  }

  .risk-submit-button:hover:not(:disabled) { border-color: #2f342f; background: #2f342f; }
  .risk-submit-button:disabled { border-color: #b9bdb9; background: #b9bdb9; cursor: not-allowed; }
  .risk-submit-button svg { width: 17px; height: 17px; }

  .risk-restart-button {
    display: block;
    margin: 10px auto 0;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .risk-restart-button:hover { color: var(--green); }

  .risk-challenge-note {
    margin: 8px 0 0;
    color: var(--ink-muted);
    font-size: 8px;
    line-height: 1.5;
    text-align: center;
  }

  .claim-consent {
    display: grid;
    gap: 4px;
    margin: 10px 8px 0;
    color: var(--ink-muted);
    font-size: 9px;
    line-height: 1.65;
    text-align: center;
  }

  .claim-consent-purpose {
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 650;
  }

  .legal-inline-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: rgba(22, 121, 77, .35);
    text-underline-offset: 2px;
  }

  .legal-inline-link:hover,
  .legal-inline-link:focus-visible {
    color: var(--green-hi);
    text-decoration-color: currentColor;
  }

  .spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: var(--green-deep);
    border-radius: 50%;
    animation: spin .7s linear infinite;
  }

  .error-panel {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--red-line);
    border-radius: var(--radius);
    background: var(--red-soft);
    color: var(--red);
  }

  .error-title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
  }

  .error-message {
    margin: 0;
    color: var(--red);
    font-size: 12px;
    line-height: 1.55;
  }

  /* Contact hint on a failed claim. The panel is anchored to the trigger, so it
     opens over the following section instead of pushing the layout down. */
  .error-contact {
    position: relative;
    margin-top: 10px;
  }

  .error-contact-trigger {
    appearance: none;
    padding: 6px 12px;
    border: 1px solid var(--red-line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--red);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .error-contact-trigger:hover,
  .error-contact-trigger:focus-visible {
    border-color: var(--red);
  }

  .error-contact-qr {
    position: absolute;
    z-index: 30;
    /* Opens upward: .card clips overflow and only leaves ~228px below the
       trigger, which cut the bottom off the QR. Flush against the trigger on
       purpose — a gap would sit outside both hover targets, so crossing it
       would close the panel mid-move. */
    bottom: 100%;
    left: 0;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 28px rgba(17, 24, 20, .16);
  }

  .error-contact-qr[hidden] { display: none; }

  .error-contact-qr img {
    display: block;
    /* A dense WeChat QR needs roughly 4px per module to survive a phone camera
       pointed at a screen; 180px was too small to decode. */
    width: 240px;
    height: auto;
    border-radius: var(--radius-sm);
  }

  .error-contact-qr span {
    color: var(--ink-muted);
    font-size: 12px;
  }

  .success-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }

  .success-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
  }

  .success-status-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-soft);
  }

  .success-status-icon svg { width: 16px; height: 16px; }

  .expiry {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0;
  }

  .expiry::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: status-pulse 2.4s ease-in-out infinite;
  }

  .key-block {
    border: 1px solid var(--green-line);
    border-radius: var(--radius);
    background: var(--inset);
  }

  .key-label {
    padding: 12px 14px 0;
    color: var(--green);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .key-value-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 12px 14px;
  }

  .model-id-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 14px;
    padding: 11px 0 12px;
    border-top: 1px solid var(--green-line);
    color: var(--ink-muted);
    font-size: 11px;
  }

  /* Netdisk delivery hides the key label and value, so the model row must not
     draw a second hairline right under the block border. */
  #result.is-netdisk .model-id-row { border-top: 0; }

  .model-id-row code {
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .protocol-note {
    margin: 0 14px 12px;
    padding: 9px 10px;
    border: 1px solid var(--amber-line);
    border-radius: var(--radius-sm);
    background: var(--amber-soft);
    color: var(--amber);
    font-size: 11px;
    line-height: 1.55;
  }

  .key-value {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--green);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .copy-button {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
  }

  .copy-button:hover { border-color: var(--green); color: var(--green); }
  .copy-button svg { width: 16px; height: 16px; }

  .save-warning {
    margin: 12px 0 0;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 1.6;
  }

  /* Losing the key to the idle timer is silent, so the deadline is stated where
     the user is already looking at what they just claimed. */
  .idle-revoke-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    padding: 9px 12px;
    border: 1px solid #e6c986;
    border-radius: var(--radius-sm);
    background: #fff7df;
    color: #8a5d00;
    font-size: 12px;
    line-height: 1.5;
  }

  .idle-revoke-note svg {
    flex: none;
    width: 15px;
    height: 15px;
  }

  .idle-revoke-note strong { font-weight: 800; }

  .success-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 18px;
  }

  /* Netdisk delivery leaves a single button, so the copy button's empty track
     would hang a 10px gap off its right edge. */
  #result.is-netdisk .success-actions { grid-template-columns: 1fr; }

  .success-guide,
  .copy-text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  /* Author display wins over the UA [hidden] rule, so hidden must be explicit. */
  .success-guide[hidden],
  .copy-text-button[hidden] { display: none; }

  .success-guide {
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #ffffff;
  }

  .success-guide:hover { border-color: #2f342f; background: #2f342f; }

  .success-guide.is-referral-required {
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 121, 77, .12);
  }

  .success-guide.is-referral-required:hover { border-color: var(--green-hi); background: var(--green-hi); }

  .success-guide-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 6px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 4px;
    background: rgba(255, 255, 255, .14);
    font-size: 9px;
  }

  .success-guide-badge[hidden] { display: none; }

  .copy-text-button {
    min-width: 102px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .copy-text-button:hover { border-color: var(--green); color: var(--green); }

  .success-guide svg,
  .copy-text-button svg { width: 15px; height: 15px; }

  .success-reward {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
  }

  .success-reward-copy { min-width: 0; }

  .success-reward-copy strong,
  .success-reward-copy small { display: block; }

  .success-reward-copy strong { font-size: 12px; }

  .success-reward-copy small {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.5;
  }

  .success-reward-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .success-reward-action svg {
    width: 15px;
    height: 15px;
    transition: transform .18s ease;
  }

  .success-reward:hover .success-reward-action svg { transform: translateX(2px); }

  .trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    padding: 14px 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
  }

  .trust-item svg {
    width: 15px;
    height: 15px;
    color: var(--green);
    flex: 0 0 auto;
  }

  .trust-item + .trust-item { border-left: 1px solid var(--line); }

  .guide-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    margin-top: 14px;
    padding: 0 2px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
  }

  .guide-link span { display: inline-flex; align-items: center; gap: 9px; }
  .guide-link svg { width: 17px; height: 17px; transition: transform .18s ease; }
  .guide-link:hover { color: var(--green); }
  .guide-link:hover > svg { transform: translate(2px, -2px); }

  .card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 58px;
    padding: 0 24px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
  }

  .card-foot-label {
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0;
  }

  .reward-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .reward-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .reward-links a:hover { color: var(--green); }

  .reward-links svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
  }

  .reward-links-divider {
    width: 1px;
    height: 16px;
    background: var(--line-strong);
  }

  .reward-links .claude-redeem-entry,
  .reward-links .claude-redeem-entry:hover { color: var(--amber); }

  .reward-only {
    padding: 2px 5px;
    border: 1px solid var(--amber-line);
    border-radius: 3px;
    background: var(--amber-soft);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
  }

  .always-guide {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  .always-guide:hover { color: var(--green); }
  .always-guide svg { width: 14px; height: 14px; transition: transform .18s ease; }
  .always-guide:hover svg { transform: translateX(2px); }

  /* ---------- steps ---------- */

  .steps { padding: 0 0 64px; }

  .section-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .section-eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
  }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
  }

  .step {
    padding: 26px 28px 28px;
    transition: background .18s ease;
  }

  .step:hover { background: var(--surface-2); }
  .step + .step { border-left: 1px solid var(--line); }

  .step-no {
    display: block;
    margin-bottom: 16px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .step h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
  }

  .step p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 1.7;
  }

  /* ---------- details / faq ---------- */

  .lower { padding: 0 0 52px; }

  .panel {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    color: var(--ink-soft);
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
  }

  .panel > summary:hover { color: var(--ink); }
  .panel > summary::-webkit-details-marker { display: none; }

  .panel-chevron {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: transform .2s ease, border-color .18s ease;
  }

  .panel > summary:hover .panel-chevron { border-color: var(--line-strong); }
  .panel-chevron svg { width: 14px; height: 14px; }
  .panel[open] .panel-chevron { transform: rotate(180deg); }

  .panel-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    padding: 4px 0 30px;
  }

  .panel-column h2 {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
  }

  .model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .model-item {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 10px;
  }

  .model-item:hover { border-color: var(--green-line); color: var(--green); }

  .seo-note {
    margin: 14px 0 0;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.65;
  }

  .faq-line {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .faq-line:first-of-type { padding-top: 0; }
  .faq-line:last-child { border-bottom: 0; }

  .faq-line strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
  }

  .faq-line p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.65;
  }

  /* ---------- footer ---------- */

  .foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 0 0 46px;
    color: var(--ink-muted);
    font-size: 11px;
    line-height: 1.7;
  }

  .foot p { max-width: 680px; margin: 0; }

  .toast {
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: 22px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 10px 28px -8px rgba(28, 31, 28, .28);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .18s ease, transform .18s ease;
  }

  .toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

  /* ---------- referral modal ---------- */

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

  .referral-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(28, 31, 28, .42);
  }

  .referral-modal {
    width: min(448px, 100%);
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(28, 31, 28, .24);
    animation: referral-modal-enter .2s ease-out both;
  }

  .referral-modal-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 36px;
    gap: 11px;
    align-items: center;
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
  }

  .referral-modal-icon,
  .referral-claude-lock {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    color: var(--green);
  }

  .referral-modal-icon svg,
  .referral-claude-lock svg { width: 17px; height: 17px; }

  .referral-modal-heading,
  .referral-modal-heading strong,
  .referral-modal-heading small { display: block; min-width: 0; }

  .referral-modal-kicker {
    display: block;
    color: var(--ink-muted);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
  }

  .referral-modal-heading strong { margin-top: 2px; font-size: 16px; }
  .referral-modal-heading small { margin-top: 2px; color: var(--ink-muted); font-size: 10px; }

  .referral-modal-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
  }

  .referral-modal-close:hover { border-color: var(--green); color: var(--green); }
  .referral-modal-close svg { width: 15px; height: 15px; }

  .referral-modal-body { padding: 20px 18px 18px; }

  .referral-quick-rewards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .referral-quick-rewards > span {
    min-width: 0;
    padding: 14px 10px;
    text-align: center;
  }

  .referral-quick-rewards > span + span { border-left: 1px solid var(--line); }
  .referral-quick-rewards strong,
  .referral-quick-rewards small,
  .referral-quick-rewards b { display: block; }
  .referral-quick-rewards strong { font-family: var(--mono); font-size: 17px; }
  .referral-quick-rewards small { color: var(--ink-muted); font-size: 8px; }
  .referral-quick-rewards b { margin-top: 7px; font-size: 10px; }

  .referral-claude-reward {
    display: grid;
    position: relative;
    overflow: hidden;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #1f7955;
    border-radius: var(--radius-sm);
    background:
      linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
      linear-gradient(135deg, #123d2e, #0b2c21);
    background-size: 16px 16px, 16px 16px, auto;
    color: #fff;
  }

  .referral-claude-reward::after {
    content: "30 DAYS";
    position: absolute;
    right: 9px;
    bottom: -8px;
    color: rgba(255, 255, 255, .045);
    font-family: var(--mono);
    font-size: 32px;
    font-weight: 900;
    pointer-events: none;
  }

  .referral-claude-models {
    position: relative;
    z-index: 1;
    display: flex;
    width: 58px;
  }

  .referral-claude-models b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: #f4fbf7;
    color: #0e5035;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
  }

  .referral-claude-models b img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .referral-claude-models b.is-claude { margin-left: -13px; background: #f2e9dc; }
  .referral-claude-models b.is-claude img { width: 23px; height: 23px; }

  .referral-claude-copy { position: relative; z-index: 1; min-width: 0; }
  .referral-claude-copy strong,
  .referral-claude-copy small { display: block; }
  .referral-claude-kicker {
    display: block;
    margin-bottom: 2px;
    color: #65dda0;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
  }
  .referral-claude-copy strong { font-size: 12px; }
  .referral-claude-copy small { margin-top: 3px; color: rgba(255, 255, 255, .64); font-size: 9px; line-height: 1.45; }

  .referral-claude-tag {
    position: relative;
    z-index: 1;
    padding: 3px 5px;
    border: 1px solid rgba(124, 230, 173, .42);
    border-radius: 3px;
    background: rgba(124, 230, 173, .1);
    color: #7ce6ad;
    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
  }

  .referral-validity-note {
    margin: 12px 0 0;
    color: var(--ink-muted);
    font-size: 9px;
    line-height: 1.55;
  }

  .referral-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 13px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
  }

  .referral-modal-later,
  .referral-modal-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
  }

  .referral-modal-later {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-soft);
  }

  .referral-modal-primary { border: 1px solid var(--green); background: var(--green); color: #fff; }
  .referral-modal-primary:hover { background: var(--green-hi); }
  .referral-modal-primary svg { width: 14px; height: 14px; }

  /* ---------- legal modal ---------- */

  .legal-modal-backdrop[hidden],
  .legal-panel[hidden] { display: none; }

  .legal-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(20, 25, 21, .56);
    backdrop-filter: blur(3px);
  }

  .legal-modal {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(660px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: 0 28px 90px rgba(20, 25, 21, .28);
    animation: referral-modal-enter .2s ease-out both;
  }

  .legal-modal-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 36px;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
  }

  .legal-modal-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-sm);
    background: var(--green-soft);
    color: var(--green);
  }

  .legal-modal-icon svg { width: 20px; height: 20px; }
  .legal-modal-heading,
  .legal-modal-heading strong,
  .legal-modal-heading small { display: block; min-width: 0; }

  .legal-modal-kicker {
    color: var(--green);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .legal-modal-heading strong { margin-top: 2px; font-size: 16px; }
  .legal-modal-heading small { margin-top: 2px; color: var(--ink-muted); font-size: 9px; }

  .legal-modal-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
  }

  .legal-modal-close:hover { border-color: var(--green); color: var(--green); }
  .legal-modal-close svg { width: 15px; height: 15px; }

  .legal-modal-body {
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
  }

  .legal-summary {
    position: relative;
    overflow: hidden;
    padding: 15px 16px;
    border: 1px solid var(--green-line);
    border-radius: var(--radius-sm);
    background:
      linear-gradient(rgba(22, 121, 77, .045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(22, 121, 77, .045) 1px, transparent 1px),
      var(--green-soft);
    background-size: 18px 18px, 18px 18px, auto;
  }

  .legal-summary-code {
    display: block;
    color: var(--green);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
  }

  .legal-summary strong { display: block; margin-top: 5px; font-size: 13px; }
  .legal-summary p { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }

  .legal-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 14px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--inset);
  }

  .legal-tab {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
  }

  .legal-tab:hover { color: var(--ink); }
  .legal-tab.is-active {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--green);
    box-shadow: 0 2px 7px rgba(24, 28, 24, .06);
  }

  .legal-panel { padding-top: 16px; }
  .legal-panel h3 { margin: 0 0 9px; font-size: 13px; }

  .legal-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
  }

  .legal-list li {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--line);
  }

  .legal-list strong { color: var(--ink); font-size: 10px; }
  .legal-list span { color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
  .legal-list a {
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
    padding: 1px 5px;
    border: 1px solid var(--green-line);
    border-radius: 3px;
    background: var(--green-soft);
    color: var(--green);
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    vertical-align: baseline;
  }
  .legal-list a:hover { border-color: var(--green); background: #dceee3; color: var(--green-hi); }

  .legal-privacy-highlight {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-left: 3px solid var(--green);
    background: var(--green-soft);
  }

  .legal-privacy-highlight strong { color: var(--green); font-size: 11px; }
  .legal-privacy-highlight span { color: var(--ink-soft); font-size: 9px; }

  .legal-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
  }

  .legal-contact {
    color: var(--ink-muted);
    font-size: 9px;
    font-weight: 650;
    text-decoration: none;
  }

  .legal-contact:hover { color: var(--green); text-decoration: underline; }

  .legal-understand {
    min-height: 39px;
    padding: 0 18px;
    border: 1px solid var(--green);
    border-radius: var(--radius-sm);
    background: var(--green);
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
  }

  .legal-understand:hover { background: var(--green-hi); }

  /* ---------- animations ---------- */

  @keyframes card-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes caret-blink {
    50% { opacity: 0; }
  }

  @keyframes status-pulse {
    50% { box-shadow: 0 0 0 5px rgba(22, 121, 77, .07); }
  }

  @keyframes referral-nudge {
    0%, 100% { transform: translateX(0) rotate(0); }
    32% { transform: translateX(-1.5px) rotate(-1deg); }
    66% { transform: translateX(1.5px) rotate(1deg); }
  }

  @keyframes referral-modal-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

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

  /* ---------- responsive ---------- */

  @media (max-width: 900px) {
    .image-lab-entry { display: none; }

    .hero {
      grid-template-columns: 1fr;
      gap: 48px;
      max-width: 640px;
      padding-top: 56px;
    }

    .intro { padding-top: 0; }
    .intro h1 { font-size: 56px; }
    .lede { max-width: none; }
    .spec { display: none; }

    .steps,
    .lower,
    .foot { max-width: 640px; }

    .steps-grid { grid-template-columns: 1fr; }
    .step + .step { border-top: 1px solid var(--line); border-left: 0; }
  }

  @media (max-width: 560px) {
    .container { width: calc(100% - 32px); }

    .nav { height: 56px; }
    .brand-name { font-size: 14px; }
    .contact-nav-link { min-height: 30px; padding: 0 8px; font-size: 10px; }
    .referral-nav-entry { min-height: 30px; padding: 0 7px; font-size: 10px; }
    .referral-nav-badge { display: none; }
    .status { min-height: 30px; padding: 0 10px; font-size: 11px; }
    .image-lab-entry { padding: 0 9px; }
    .image-lab-model { display: none; }
    .image-lab-new { display: none; }

    .hero {
      gap: 24px;
      padding: 40px 0 48px;
    }

    .eyebrow { margin-bottom: 18px; }
    .intro h1 { font-size: 44px; }

    .lede {
      margin-top: 20px;
      font-size: 15px;
      line-height: 1.7;
    }

    .notes { gap: 9px; margin-top: 12px; font-size: 12px; }
    .hero-image-launcher {
      width: 100%;
      min-height: 54px;
      margin-top: 14px;
      grid-template-columns: 34px minmax(0, 1fr) auto 24px;
      gap: 9px;
      padding: 7px 9px;
    }
    .hero-image-launcher-icon { width: 34px; height: 34px; }
    .hero-image-launcher-copy strong { font-size: 13px; }
    .hero-referral-entry { width: 100%; }
    .card-head { min-height: 54px; padding: 0 18px; }
    .route-picker { gap: 6px; padding: 14px 18px 0; }
    .route-option {
      grid-template-columns: 30px minmax(0, 1fr);
      min-height: 62px;
      padding: 8px;
    }
    .route-logo { width: 30px; height: 30px; }
    .route-state {
      position: absolute;
      top: 5px;
      right: 5px;
      display: inline-flex;
      max-width: calc(100% - 10px);
      padding: 2px 5px;
      font-size: 7px;
      line-height: 1.1;
    }
    .card-body { padding: 20px 18px 20px; }
    .claim-policy { grid-template-columns: 1fr; gap: 5px; }
    .verification {
      grid-template-columns: 1fr;
      min-height: 72px;
      padding: 12px;
    }
    #turnstile-box { margin: 0 auto; }
    .claim-button { min-height: 52px; }
    .claim-consent { margin-right: 0; margin-left: 0; }
    .risk-challenge { padding: 14px 12px; }
    .risk-tutorial-step { grid-template-columns: 28px minmax(0, 1fr); }
    .risk-tutorial-link { grid-column: 1 / -1; width: 100%; white-space: normal; }
    .risk-verification-step { grid-template-columns: 1fr; }
    #risk-turnstile-box { width: 100%; margin: 0 auto; }

    .trust { grid-template-columns: 1fr; }

    .trust-item {
      justify-content: flex-start;
      min-height: 42px;
      padding: 0 4px;
    }

    .trust-item + .trust-item { border-top: 1px solid var(--line); border-left: 0; }

    .key-value { font-size: 11px; }
    .success-actions { grid-template-columns: 1fr; }
    .copy-text-button { width: 100%; }
    .success-reward { grid-template-columns: 1fr; gap: 9px; }

    .referral-modal-backdrop { padding: 16px; }
    .referral-modal { max-height: calc(100vh - 32px); }
    .referral-modal-head { padding: 14px; }
    .referral-modal-body { padding: 17px 14px 15px; }
    .referral-quick-rewards > span { padding: 12px 5px; }
    .referral-quick-rewards b { font-size: 9px; }
    .referral-claude-reward { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; }
    .referral-claude-models { width: 52px; }
    .referral-claude-models b { width: 34px; height: 34px; }
    .referral-claude-tag { grid-column: 2; justify-self: start; }
    .referral-modal-actions { padding: 12px 14px; }

    .legal-modal-backdrop { align-items: end; padding: 0; }
    .legal-modal {
      width: 100%;
      max-height: 92vh;
      border-right: 0;
      border-bottom: 0;
      border-left: 0;
      border-radius: 12px 12px 0 0;
    }
    .legal-modal-head { padding: 14px; }
    .legal-modal-body { padding: 14px; }
    .legal-list li { grid-template-columns: 1fr; gap: 4px; padding: 10px 1px; }
    .legal-privacy-highlight { align-items: flex-start; flex-direction: column; gap: 3px; }
    .legal-modal-actions { padding: 11px 14px; }

    .card-foot {
      align-items: flex-start;
      flex-direction: column;
      gap: 8px;
      min-height: 72px;
      padding: 14px 18px;
    }

    .reward-links {
      width: 100%;
      justify-content: space-between;
    }

    .reward-links a { min-height: 40px; }

    .steps { padding-bottom: 48px; }
    .step { padding: 22px 20px; }

    .panel-content { grid-template-columns: 1fr; gap: 28px; }

    .foot {
      flex-direction: column;
      gap: 10px;
      padding-bottom: 46px;
    }
  }

  @media (max-width: 420px) {
    .route-picker {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 5px;
      padding-right: 12px;
      padding-left: 12px;
    }
    .route-option {
      grid-template-columns: 1fr;
      justify-items: center;
      min-height: 72px;
      gap: 5px;
      padding: 7px 3px;
      text-align: center;
    }
    /* Stacked cards put both badges on one line to keep the card short. */
    .route-meta {
      grid-auto-flow: column;
      align-content: center;
      justify-items: center;
      height: auto;
    }
    .route-logo { width: 30px; height: 30px; }
    .route-name {
      width: 100%;
      font-size: 10px;
    }
    .route-desc { display: none; }
  }

  @media (max-width: 360px) {
    .route-picker { gap: 4px; padding-right: 10px; padding-left: 10px; }
    .route-option { min-height: 68px; }
    .route-name { font-size: 9px; }
    .hero-image-launcher-new { display: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      scroll-behavior: auto !important;
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }
