  :root {
    --bg-0: #05080f;
    --bg-1: #0a111d;
    --bg-2: #0f1828;
    --bg-3: #142235;
    --line: #1c2a44;
    --line-2: #2a3a58;
    --text: #ffffff;
    --text-2: #c8d4ea;
    --text-3: #7a8aa8;
    --text-4: #4a5878;
    --blue: #4f8eff;
    --blue-2: #6ea0ff;
    --blue-glow: rgba(79, 142, 255, 0.35);
    --warn: #ff8a5c;
    --hot: #ff5c7a;
    --ok: #34d399;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; height: 100%; }
  body {
    background: var(--bg-0);
    color: var(--text);
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 1200px 800px at 50% 75%, rgba(40, 70, 130, 0.25) 0%, rgba(10, 17, 29, 0) 60%),
      radial-gradient(ellipse 900px 600px at 50% 85%, rgba(60, 110, 200, 0.18) 0%, transparent 55%),
      radial-gradient(circle at 50% 110%, rgba(20, 50, 110, 0.55) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
  }
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
      radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent),
      radial-gradient(1px 1px at 88% 22%, rgba(255,255,255,.35), transparent),
      radial-gradient(1px 1px at 33% 67%, rgba(255,255,255,.45), transparent),
      radial-gradient(1.5px 1.5px at 70% 8%, rgba(255,255,255,.55), transparent),
      radial-gradient(1px 1px at 92% 78%, rgba(255,255,255,.3), transparent),
      radial-gradient(1px 1px at 18% 88%, rgba(255,255,255,.4), transparent),
      radial-gradient(1px 1px at 56% 14%, rgba(255,255,255,.35), transparent),
      radial-gradient(1.5px 1.5px at 8% 45%, rgba(255,255,255,.4), transparent);
    pointer-events: none;
    z-index: 0;
  }

  .wrap { max-width: 1080px; margin: 0 auto; padding: 22px 28px 80px; position: relative; z-index: 1; }
  @media (max-width: 640px) { .wrap { padding: 18px 16px 60px; } }

  nav.top { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 56px; }
  nav.top .logo { font-weight: 600; font-size: 16px; letter-spacing: .18em; color: var(--text); }
  nav.top .logo .dot { color: var(--blue); }
  nav.top .links { display: flex; gap: 28px; align-items: center; }
  nav.top .links a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 400; transition: color .15s; }
  nav.top .links a:hover { color: var(--text); }
  nav.top .cta { background: var(--blue); color: white; border: none; padding: 9px 18px; border-radius: 999px; font-family: 'Geist', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 8px 24px var(--blue-glow); transition: transform .15s, box-shadow .15s; }
  nav.top .cta:hover { transform: translateY(-1px); box-shadow: 0 12px 32px var(--blue-glow); }
  @media (max-width: 640px) {
    nav.top { padding-bottom: 32px; }
    nav.top .links { gap: 14px; }
    nav.top .links a:not(:last-child) { display: none; }
  }

  .hero { text-align: center; padding: 28px 0 40px; }
  .hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; margin: 0 0 22px; color: var(--text); }
  .hero h1 .em { background: linear-gradient(180deg, #fff 0%, #a8c0ee 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero p.sub { color: var(--text-3); font-size: clamp(15px, 1.5vw, 18px); font-weight: 400; margin: 0 auto; max-width: 720px; line-height: 1.55; }

  .card {
    background: rgba(15, 24, 40, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    margin: 28px auto 0;
    max-width: 760px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.02) inset, 0 30px 80px rgba(0, 8, 30, 0.6), 0 0 60px rgba(79, 142, 255, 0.06);
  }
  @media (max-width: 640px) { .card { padding: 18px; border-radius: 18px; } }

  .field { margin-bottom: 18px; }
  .field-label { font-size: 12px; font-weight: 500; color: var(--text-3); margin-bottom: 8px; }

  .drop { border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 20px; background: rgba(10, 17, 29, 0.4); cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 18px; }
  .drop:hover, .drop.over { border-color: var(--blue); background: rgba(79, 142, 255, 0.06); }
  .drop input { display: none; }
  .drop .up-ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: rgba(79, 142, 255, 0.12); border: 1px solid rgba(79, 142, 255, 0.25); display: flex; align-items: center; justify-content: center; color: var(--blue); }
  .drop .up-text { flex: 1; }
  .drop .up-text .title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
  .drop .up-text .title .req { color: var(--hot); margin-left: 4px; }
  .drop .up-text .sub { font-size: 13px; color: var(--text-3); font-weight: 400; }
  .preview { max-width: 120px; max-height: 120px; border-radius: 10px; border: 1px solid var(--line-2); display: none; }

  textarea, select { width: 100%; background: rgba(10, 17, 29, 0.5); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: 'Geist', sans-serif; font-size: 14px; color: var(--text); outline: none; transition: border-color .15s, background .15s; }
  textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
  textarea::placeholder { color: var(--text-4); }
  textarea:focus, select:focus { border-color: var(--blue); background: rgba(10, 17, 29, 0.7); box-shadow: 0 0 0 3px rgba(79, 142, 255, 0.12); }
  select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%237a8aa8' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
  select option { background: var(--bg-2); }

  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 520px) { .pair { grid-template-columns: 1fr; } }

  button.go { width: 100%; background: var(--blue); color: white; border: none; border-radius: 14px; padding: 16px 20px; font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 24px var(--blue-glow); transition: transform .15s, box-shadow .15s, background .15s; }
  button.go:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 14px 32px var(--blue-glow); }
  button.go:disabled { opacity: .55; cursor: wait; transform: none; }
  button.go .ico { width: 18px; height: 18px; }

  .disclaim { text-align: center; color: var(--text-4); font-size: 12.5px; margin-top: 14px; }

  /* ── §232 metal content overrides accordion ── */
  .overrides { background: rgba(15,24,40,.4); border: 1px solid var(--line); border-radius: 12px; padding: 0; margin: 16px 0 0; }
  .overrides summary { cursor: pointer; padding: 12px 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); user-select: none; }
  .overrides summary::-webkit-details-marker { display: none; }
  .overrides summary::before { content: "▸"; color: var(--text-3); transition: transform .2s; font-size: 10px; }
  .overrides[open] summary::before { transform: rotate(90deg); }
  .overrides summary .hint { font-size: 11px; color: var(--text-4); font-weight: 400; }
  .overrides-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
  .overrides-body .field-label { font-size: 11px; color: var(--text-3); letter-spacing: .04em; margin-top: 12px; margin-bottom: 4px; }
  .overrides-body select, .overrides-body input { width: 100%; background: rgba(10,17,29,.6); border: 1px solid var(--line); color: var(--text); padding: 8px 10px; border-radius: 8px; font-family: inherit; font-size: 13px; }
  .overrides-body .content-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 4px; }
  @media (max-width: 600px) { .overrides-body .content-grid { grid-template-columns: repeat(2, 1fr); } }
  .overrides-body .hint { font-size: 11px; color: var(--text-4); }

  /* ── §232 detail row inside tariff stack ── */
  .s232-detail { padding: 12px 26px; background: rgba(60,110,200,.06); border-top: 1px solid rgba(79,142,255,.15); font-size: 12px; color: var(--text-3); }
  .s232-detail .lab { color: var(--text-2); font-weight: 500; }
  .s232-detail .tier-pill { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(79,142,255,.15); color: var(--blue-2); font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; margin-left: 6px; }
  .s232-detail .tier-pill.exempt { background: rgba(52,211,153,.15); color: var(--ok); }
  .s232-detail .content-bar { display: flex; gap: 2px; margin-top: 8px; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(28,42,68,.6); }
  .s232-detail .content-bar > div { background: var(--blue); transition: width .4s ease-out; }
  .s232-detail .content-bar > .cu { background: #c87533; }
  .s232-detail .content-bar > .fe { background: #6b8caf; }
  .s232-detail .content-bar > .al { background: #b5b8bf; }
  .s232-detail .content-legend { display: flex; gap: 14px; margin-top: 6px; font-size: 11px; color: var(--text-4); }
  .s232-detail .content-legend .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

  /* ── §301 Exemption badge ── */
  .layer.exempted { opacity: 0.55; }
  .layer.exempted .rate { text-decoration: line-through; color: var(--text-4); }
  .layer.exempted .name::after { content: "EXEMPT"; display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(52,211,153,.15); border: 1px solid rgba(52,211,153,.3); color: var(--ok); font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .08em; vertical-align: middle; opacity: 1; }
  .exemption-banner { margin: 12px 26px 0; padding: 12px 14px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.3); border-radius: 10px; font-size: 13px; color: var(--text-2); display: flex; gap: 12px; align-items: flex-start; }
  .exemption-banner .icon { font-size: 18px; line-height: 1; color: var(--ok); flex-shrink: 0; margin-top: 1px; }
  .exemption-banner .label { font-weight: 500; color: var(--ok); margin-bottom: 2px; }
  .exemption-banner .meta { font-size: 11.5px; color: var(--text-3); font-family: 'Geist Mono', monospace; }
  .exemption-banner .compare { font-size: 11.5px; margin-top: 6px; color: var(--text-3); }
  .exemption-banner .compare strong { color: var(--text-2); font-weight: 500; }
  .exemption-banner .compare .diff { color: var(--ok); font-weight: 500; }

  /* ── §122 waived (struck-through rate, faded) ── */
  .layer.waived { opacity: 0.55; }
  .layer.waived .rate { text-decoration: line-through; color: var(--text-4); }
  .layer.waived .name::after { content: "WAIVED"; display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(255,138,92,.12); border: 1px solid rgba(255,138,92,.3); color: var(--warn); font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .08em; vertical-align: middle; opacity: 1; }

  /* ── presumptive §301 (LLM-suggested, ch99 not confirmed) ── */
  .layer.presumptive .name::after { content: "PRESUMPTIVE"; display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(79,142,255,.12); border: 1px solid rgba(79,142,255,.35); color: var(--blue-2); font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .08em; vertical-align: middle; }
  .layer.presumptive .rate { color: var(--blue-2); }

  /* ── clickable alt candidate ── */
  .alt-grid .alt { cursor: pointer; transition: background .15s, border-color .15s, transform .15s; position: relative; }
  .alt-grid .alt:hover { background: rgba(79,142,255,.07); border-color: rgba(79,142,255,.35); transform: translateY(-1px); }
  .alt-grid .alt:hover .code { color: var(--blue); }
  .alt-grid .alt::after { content: "Switch →"; position: absolute; top: 12px; right: 14px; font-size: 10.5px; color: var(--text-4); letter-spacing: .04em; text-transform: uppercase; opacity: 0; transition: opacity .15s; font-family: 'Geist Mono', monospace; }
  .alt-grid .alt:hover::after { opacity: 1; }
  .alt-grid .alt.active { background: rgba(79,142,255,.1); border-color: var(--blue); }
  .alt-grid .alt.active::before { content: "● CURRENT"; position: absolute; top: 12px; right: 14px; font-size: 10.5px; color: var(--blue); letter-spacing: .04em; font-family: 'Geist Mono', monospace; }

  /* ── §301 exemption toggle ── */
  .exemption-banner .toggle-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(52,211,153,.2); }
  .exemption-banner .toggle-label { font-size: 12px; color: var(--text-2); cursor: pointer; user-select: none; display: flex; align-items: center; gap: 8px; }
  .switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
  .switch input { opacity: 0; width: 0; height: 0; }
  .switch .slider { position: absolute; cursor: pointer; inset: 0; background: var(--line-2); border-radius: 20px; transition: .2s; }
  .switch .slider::before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; top: 3px; background: var(--text-3); border-radius: 50%; transition: .2s; }
  .switch input:checked + .slider { background: var(--ok); }
  .switch input:checked + .slider::before { transform: translateX(16px); background: #fff; }
  .exemption-banner .src-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-2); text-decoration: none; font-size: 11.5px; margin-top: 4px; }
  .exemption-banner .src-link:hover { text-decoration: underline; }
  .exemption-banner .reason { font-size: 12px; color: var(--text-3); margin-top: 6px; font-style: italic; line-height: 1.5; }

  /* ── exemption inactive notice (when no exclusion applies to this HTS) ── */
  .exemption-banner.inactive { background: rgba(28,42,68,.4); border-color: var(--line); }
  .exemption-banner.inactive .icon { color: var(--text-3); }
  .exemption-banner.inactive .label { color: var(--text-2); }

  /* ── recomputing overlay ── */
  .recomputing { position: relative; }
  .recomputing::after { content: "Recomputing…"; position: absolute; inset: 0; background: rgba(15,24,40,.85); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; color: var(--blue-2); font-size: 13px; font-weight: 500; border-radius: 20px; z-index: 5; letter-spacing: .04em; }

  /* ── possible §301 exclusions (LLM-suggested criteria) ── */
  .possible-ex { padding: 14px 26px; background: rgba(255,138,92,.05); border-top: 1px solid rgba(255,138,92,.15); }
  .possible-ex .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12.5px; color: var(--warn); font-weight: 500; letter-spacing: .04em; }
  .possible-ex .head::before { content: "?"; display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,138,92,.2); color: var(--warn); font-size: 12px; font-weight: 700; }
  .possible-ex .sub { font-size: 12px; color: var(--text-3); margin-bottom: 12px; line-height: 1.5; }
  .ex-criterion { display: flex; align-items: flex-start; gap: 12px; padding: 11px 13px; background: rgba(15,24,40,.5); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
  .ex-criterion:hover { border-color: var(--line-2); }
  .ex-criterion.checked { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.06); }
  .ex-criterion .check-circle { flex-shrink: 0; width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 4px; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s; }
  .ex-criterion.checked .check-circle { background: var(--ok); border-color: var(--ok); }
  .ex-criterion.checked .check-circle::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(0,-1px); }
  .ex-criterion .body { flex: 1; }
  .ex-criterion .label { font-size: 13.5px; color: var(--text); font-weight: 500; margin-bottom: 3px; }
  .ex-criterion.checked .label { color: var(--ok); }
  .ex-criterion .desc { font-size: 12px; color: var(--text-3); line-height: 1.55; margin-bottom: 3px; }
  .ex-criterion .relevance { font-size: 11.5px; color: var(--text-4); font-style: italic; }
  .ex-criterion .source { font-size: 11px; color: var(--blue-2); font-family: 'Geist Mono', monospace; margin-top: 4px; display: inline-block; }

  /* manual exemption summary line */
  .manual-ex-summary { padding: 10px 26px; background: rgba(52,211,153,.08); border-top: 1px solid rgba(52,211,153,.2); font-size: 12.5px; color: var(--ok); display: flex; align-items: center; gap: 8px; }
  .manual-ex-summary::before { content: "✓"; font-weight: 700; }

  .pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

  /* ── §301/§232 catalog cache status bar ── */
  .cache-status { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
  .cs-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); transition: background .2s; }
  .cs-dot.fresh { background: var(--ok); box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
  .cs-dot.stale { background: var(--warn); }
  .cs-dot.error { background: var(--hot); }
  .cs-text { font-family: 'Geist Mono', monospace; letter-spacing: .02em; }
  .cs-refresh { background: transparent; border: 1px solid var(--line-2); color: var(--text-3); padding: 4px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; font-family: inherit; letter-spacing: .04em; transition: border-color .15s, color .15s; }
  .cs-refresh:hover { color: var(--blue-2); border-color: var(--blue); }
  .cs-refresh:disabled { opacity: .5; cursor: progress; }
  .pill { background: rgba(15, 24, 40, 0.6); border: 1px solid var(--line); color: var(--text-2); padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 400; }
  .pill .ck { color: var(--ok); margin-right: 5px; }

  .results { margin-top: 36px; }
  .verdict-card { background: rgba(15, 24, 40, 0.7); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 30px 80px rgba(0, 8, 30, 0.5); }
  .verdict-head { padding: 22px 26px; background: linear-gradient(180deg, rgba(79, 142, 255, 0.08), transparent); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  .verdict-head .product { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
  .verdict-head .product .kicker { display: block; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 4px; }
  .verdict-head .code { font-family: 'Geist Mono', monospace; font-size: 18px; font-weight: 500; color: var(--text); background: rgba(79, 142, 255, 0.12); border: 1px solid rgba(79, 142, 255, 0.3); padding: 8px 14px; border-radius: 10px; }
  .verdict-body { padding: 20px 26px; }
  .verdict-body .meta { font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
  .verdict-body .meta .conf { color: var(--ok); font-family: 'Geist Mono', monospace; margin-right: 12px; }
  .verdict-body .rationale { font-size: 14.5px; color: var(--text-2); line-height: 1.6; }
  .risks { margin-top: 16px; padding: 14px 16px; background: rgba(255, 138, 92, 0.06); border: 1px solid rgba(255, 138, 92, 0.2); border-radius: 12px; }
  .risks .kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); font-weight: 500; margin-bottom: 6px; }
  .risks ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; }
  .risks li { margin: 3px 0; }

  .stack-card { background: rgba(15, 24, 40, 0.7); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 30px 80px rgba(0, 8, 30, 0.5); }
  .stack-head { padding: 16px 26px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(10, 17, 29, 0.4); }
  .stack-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
  .stack-head .origin { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--text-3); }
  .stack-head .origin strong { color: var(--text); }

  .layers { display: flex; flex-direction: column; }
  .layer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 16px 26px; border-bottom: 1px solid rgba(28, 42, 68, 0.5); }
  .layer:last-of-type { border-bottom: none; }
  .layer .name { font-size: 14.5px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
  .layer .auth { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--text-3); }
  .layer .note { font-size: 12px; color: var(--text-4); font-style: italic; margin-top: 2px; }
  .layer .rate { font-family: 'Geist Mono', monospace; font-size: 17px; font-weight: 600; color: var(--blue-2); text-align: right; white-space: nowrap; }
  .total { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 20px 26px; background: linear-gradient(90deg, rgba(79, 142, 255, 0.12), rgba(79, 142, 255, 0.04)); border-top: 1px solid rgba(79, 142, 255, 0.25); }
  .total .name { font-size: 14px; color: var(--text-2); }
  .total .rate { font-family: 'Geist Mono', monospace; font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }

  .sec { background: rgba(15, 24, 40, 0.5); border: 1px solid var(--line); border-radius: 20px; padding: 22px 26px; margin-bottom: 18px; }
  .sec h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
  .sec .kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
  .alt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
  .alt { background: rgba(10, 17, 29, 0.5); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
  .alt .code { font-family: 'Geist Mono', monospace; font-size: 14px; font-weight: 500; color: var(--blue-2); margin-bottom: 4px; }
  .alt .rat { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }

  .news-item { padding: 12px 0; border-bottom: 1px solid rgba(28, 42, 68, 0.5); }
  .news-item:last-child { border-bottom: none; }
  .news-item .head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
  .news-item .date { font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--text-4); }
  .news-item .agency { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--warn); font-weight: 500; padding: 2px 8px; background: rgba(255, 138, 92, 0.1); border-radius: 999px; }
  .news-item .agency.ustr { color: var(--blue-2); background: rgba(79, 142, 255, 0.1); }
  .news-item a { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
  .news-item a:hover { color: var(--blue-2); }
  .news-item .abs { font-size: 13px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }

  .ruling-item { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(28, 42, 68, 0.5); align-items: center; }
  .ruling-item:last-child { border-bottom: none; }
  .ruling-item .rid { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--blue-2); text-decoration: none; border: 1px solid rgba(79, 142, 255, 0.25); padding: 3px 10px; border-radius: 6px; background: rgba(79, 142, 255, 0.05); flex-shrink: 0; }
  .ruling-item .rid:hover { background: rgba(79, 142, 255, 0.12); }
  .ruling-item .desc { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

  .loader { text-align: center; padding: 60px 20px; color: var(--text-3); font-size: 14px; }
  .loader .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin: 0 3px; animation: pulse 1.4s infinite ease-in-out; }
  .loader .pulse:nth-child(2) { animation-delay: .2s; }
  .loader .pulse:nth-child(3) { animation-delay: .4s; }
  @keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
  .err { background: rgba(255, 92, 122, 0.1); border: 1px solid rgba(255, 92, 122, 0.3); color: var(--hot); padding: 14px 18px; border-radius: 12px; font-size: 14px; }

  /* ── multi-step loader (TariffLens-style "AI is doing research") ── */
  .steps-loader { background: rgba(15,24,40,.55); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
  .steps-loader .head { font-size: 12px; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
  .steps-loader .step { display: flex; align-items: flex-start; gap: 14px; padding: 9px 0; opacity: .35; transition: opacity .35s; }
  .steps-loader .step.active { opacity: 1; }
  .steps-loader .step.done { opacity: .8; }
  .steps-loader .step .ind { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; transition: border-color .25s, background .25s; margin-top: 1px; position: relative; }
  .steps-loader .step.active .ind { border-color: var(--blue); background: rgba(79,142,255,.12); }
  .steps-loader .step.active .ind::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: ping 1.1s ease-out infinite; position: absolute; }
  .steps-loader .step.done .ind { background: var(--blue); border-color: var(--blue); }
  .steps-loader .step.done .ind::after { content: ""; width: 6px; height: 9px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-1px); position: absolute; }
  @keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
  .steps-loader .step .name { font-size: 14px; color: var(--text); font-weight: 500; }
  .steps-loader .step:not(.active):not(.done) .name { color: var(--text-3); font-weight: 400; }
  .steps-loader .step .sub { display: block; font-size: 12px; color: var(--text-4); margin-top: 2px; font-weight: 400; }

  /* ── stagger reveal ── */
  @keyframes revealUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  .reveal { animation: revealUp .5s cubic-bezier(.16,1,.3,1) backwards; }

  /* ── HTS code typing ── */
  .verdict-head .code.typing::after { content: "▍"; margin-left: 3px; color: var(--blue); animation: blink .8s steps(2) infinite; font-weight: 300; }
  @keyframes blink { 50% { opacity: 0; } }

  /* ── total rate count-up shimmer ── */
  .total .rate { transition: color .3s; }
  .total .rate.counting { color: var(--blue-2); }

  /* ── Chapter 99 live section ── */
  .ch99 { border: 1px solid rgba(79,142,255,.3); }
  .ch99 .sec-head { padding: 14px 26px; background: linear-gradient(90deg, rgba(79,142,255,.1), transparent); border-bottom: 1px solid rgba(79,142,255,.2); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
  .ch99 .sec-head h3 { font-size: 16px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
  .ch99 .sec-head .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.2); animation: livepulse 2s ease-in-out infinite; }
  @keyframes livepulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(52,211,153,.2); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,.05); } }
  .ch99 .sec-head .meta { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--text-3); }
  .ch99 .ovl { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 26px; border-bottom: 1px solid rgba(28,42,68,.5); align-items: center; }
  .ch99 .ovl:last-child { border-bottom: none; }
  .ch99 .ovl .label { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
  .ch99 .ovl .h99 { font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--blue-2); margin-bottom: 2px; }
  .ch99 .ovl .desc { font-size: 12px; color: var(--text-3); line-height: 1.5; font-style: italic; }
  .ch99 .ovl .conf-pill { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(52,211,153,.3); color: var(--ok); background: rgba(52,211,153,.08); margin-left: 6px; }
  .ch99 .ovl .conf-pill.medium { border-color: rgba(255,138,92,.3); color: var(--warn); background: rgba(255,138,92,.08); }
  .ch99 .ovl .rate { font-family: 'Geist Mono', monospace; font-size: 17px; font-weight: 600; color: var(--blue-2); white-space: nowrap; }
  .ch99 .empty { padding: 18px 26px; font-size: 13px; color: var(--text-3); font-style: italic; }
  .ch99 .compare { padding: 12px 26px; background: rgba(15,24,40,.4); font-size: 12px; color: var(--text-3); border-top: 1px solid rgba(28,42,68,.5); }
  .ch99 .compare strong { color: var(--text-2); font-weight: 500; }
