/* ==========================================================================
   Email Header Analyzer — light, professional security-tool theme
   ========================================================================== */

:root {
  --bg:            #f6f8fc;
  --bg-soft:       #eef2f9;
  --surface:       #ffffff;
  --surface-2:     #fafbfe;
  --border:        #e2e8f2;
  --border-strong: #cfd8e6;

  --text:          #16202e;
  --text-soft:     #47536a;
  --text-muted:    #7a8699;

  --accent:        #2a6ff0;
  --accent-hover:  #1c5ad6;
  --accent-soft:   #e9f1fe;
  --accent-ring:   rgba(42,111,240,.32);
  --accent-ink:    #0f4699;

  --ok:      #10893e;  --ok-soft:   #e6f6ec;  --ok-border: #b7e3c6;
  --warn:    #a86a00;  --warn-soft: #fff4dd;  --warn-border: #f2dba6;
  --bad:     #c62b45;  --bad-soft:  #fdecef;  --bad-border: #f4c2cc;
  --info:    #2a6ff0;  --info-soft: #e9f1fe;  --info-border: #c2d8fb;
  --neutral: #64748b;  --neutral-soft: #f1f4f9; --neutral-border: #dde4ee;

  --code-bg:     #f7f9fc;
  --code-border: #e4eaf3;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-xs: 0 1px 2px rgba(16,30,54,.05);
  --shadow-sm: 0 1px 3px rgba(16,30,54,.07), 0 1px 2px rgba(16,30,54,.04);
  --shadow-md: 0 8px 20px -8px rgba(16,30,54,.16), 0 2px 6px rgba(16,30,54,.05);
  --shadow-lg: 0 24px 48px -20px rgba(16,30,54,.22), 0 8px 20px -14px rgba(16,30,54,.12);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(.4,0,.2,1);
}

html[data-theme="dark"] {
  --bg: #0f141b; --bg-soft: #151c25; --surface: #161e27; --surface-2: #1b242f;
  --border: #26313e; --border-strong: #364456;
  --text: #e7eef8; --text-soft: #b0bfd2; --text-muted: #8294a9;
  --accent: #5b9dff; --accent-hover: #7cb2ff; --accent-soft: #15263e;
  --accent-ring: rgba(91,157,255,.32); --accent-ink: #a9cbff;
  --ok: #3fce78; --ok-soft: #10301e; --ok-border: #1e5236;
  --warn: #e6b153; --warn-soft: #302509; --warn-border: #564318;
  --bad: #ff728d; --bad-soft: #33141b; --bad-border: #5c2533;
  --info: #5b9dff; --info-soft: #15263e; --info-border: #27456e;
  --neutral: #93a3b8; --neutral-soft: #1c2530; --neutral-border: #2c3948;
  --code-bg: #121a23; --code-border: #25313f;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.45);
  --shadow-md: 0 10px 24px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 26px 52px -22px rgba(0,0,0,.72);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; display: flex; flex-direction: column;
}
h1,h2,h3,h4 { margin: 0 0 .35em; line-height: 1.25; letter-spacing: -.018em; font-weight: 700; }
h1,.h1 { font-size: clamp(1.55rem, 1.15rem + 1.7vw, 2.15rem); }
h2,.h2 { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); }
h3,.h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(14px,3vw,26px); }
.wrap-narrow { max-width: 900px; }
.site-main { flex: 1 0 auto; padding: clamp(18px,3vw,34px) 0 clamp(40px,6vw,70px); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- header / footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .site-header { background: rgba(22,30,39,.92); }
.header-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: linear-gradient(140deg, var(--accent), #5a9dff); color: #fff; box-shadow: var(--shadow-sm); }
.brand-name { font-size: 1.02rem; letter-spacing: -.02em; }
.brand-name span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-link { color: var(--text-soft); font-size: .9rem; font-weight: 550; padding: 7px 11px; border-radius: 9px; text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease); }
.nav-link:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.theme-toggle { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-soft); cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease); }
.theme-toggle:hover { background: var(--bg-soft); border-color: var(--border-strong); }
.theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: none; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(14px,3vw,26px); flex-wrap: wrap; }
.footer-note { margin: 0; font-size: .86rem; color: var(--text-muted); }
.footer-note a { color: var(--text-soft); font-weight: 550; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(16px,2.6vw,26px); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-tight { padding: clamp(12px,2vw,18px); }

/* ---------- hero ---------- */
.hero { text-align: center; max-width: 720px; margin: 0 auto clamp(18px,3vw,30px); }
.hero p { color: var(--text-soft); font-size: 1.02rem; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; background: var(--accent-soft); color: var(--accent-ink); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 13px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: inherit; font-size: .92rem; font-weight: 620; line-height: 1; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--surface); color: var(--text-soft); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-soft:hover { color: var(--accent-ink); text-decoration: none; filter: brightness(.97); }
.btn-sm { padding: 7px 12px; font-size: .84rem; border-radius: 8px; }
.btn-xs { padding: 5px 9px; font-size: .78rem; border-radius: 7px; }
.btn-lg { padding: 12px 22px; font-size: .98rem; }
.btn-block { width: 100%; }
.btn-copied { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-border); }

/* ---------- forms ---------- */
.label { display: block; font-size: .87rem; font-weight: 640; color: var(--text-soft); margin-bottom: 6px; }
.input, .textarea, .select { width: 100%; font-family: inherit; font-size: .94rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-ring); }
.textarea { min-height: 230px; font-family: var(--mono); font-size: .82rem; line-height: 1.55; resize: vertical; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3.5px rgba(198,43,69,.18); }
.field-error { display: none; font-size: .82rem; color: var(--bad); margin-top: 6px; font-weight: 550; }
.field-error.is-shown { display: block; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; }
.checkbox-row input[type=checkbox] { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent); flex: none; cursor: pointer; }
.checkbox-row label { font-size: .87rem; color: var(--text-soft); cursor: pointer; margin: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.counter { font-size: .8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.counter.is-warn { color: var(--warn); font-weight: 600; }
.counter.is-over { color: var(--bad); font-weight: 650; }

/* ---------- verdict banner ---------- */
.verdict { border-radius: var(--radius-lg); border: 1px solid var(--border); padding: clamp(16px,2.6vw,24px); display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.verdict-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; }
.verdict-body { min-width: 0; }
.verdict-label { font-size: 1.18rem; font-weight: 720; letter-spacing: -.015em; margin: 0 0 4px; }
.verdict-summary { margin: 0; font-size: .93rem; color: var(--text-soft); }
.verdict-ok    { background: var(--ok-soft);   border-color: var(--ok-border); }
.verdict-ok    .verdict-icon { background: var(--ok);   color: #fff; }
.verdict-ok    .verdict-label { color: var(--ok); }
.verdict-warn  { background: var(--warn-soft); border-color: var(--warn-border); }
.verdict-warn  .verdict-icon { background: var(--warn); color: #fff; }
.verdict-warn  .verdict-label { color: var(--warn); }
.verdict-bad   { background: var(--bad-soft);  border-color: var(--bad-border); }
.verdict-bad   .verdict-icon { background: var(--bad);  color: #fff; }
.verdict-bad   .verdict-label { color: var(--bad); }
.verdict-unknown { background: var(--neutral-soft); border-color: var(--neutral-border); }
.verdict-unknown .verdict-icon { background: var(--neutral); color: #fff; }
.verdict-unknown .verdict-label { color: var(--text-soft); }

/* ---------- badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 660; letter-spacing: .01em; padding: 3px 9px; border-radius: 999px; background: var(--neutral-soft); color: var(--text-soft); border: 1px solid var(--neutral-border); white-space: nowrap; }
.badge-ok   { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-border); }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
.badge-bad  { background: var(--bad-soft);  color: var(--bad);  border-color: var(--bad-border); }
.badge-info { background: var(--info-soft); color: var(--accent-ink); border-color: var(--info-border); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- summary grid ---------- */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.stat { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); padding: 13px 15px; }
.stat-label { font-size: .74rem; font-weight: 660; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 4px; }
.stat-value { font-size: 1.32rem; font-weight: 720; letter-spacing: -.02em; margin: 0; }

/* ---------- field rows (From/To/etc) ---------- */
.fieldlist { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fieldrow { display: grid; grid-template-columns: 132px 1fr; gap: 12px; background: var(--surface); padding: 11px 14px; align-items: start; }
.fieldrow-key { font-size: .8rem; font-weight: 660; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
.fieldrow-val { min-width: 0; font-size: .92rem; word-break: break-word; }
.fieldrow-val .addr { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fieldrow-val .name { font-weight: 620; }
.fieldrow-val .email { font-family: var(--mono); font-size: .85rem; color: var(--text-soft); }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- auth cards ---------- */
.auth-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.authcard { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--surface); }
.authcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.authcard-title { font-size: .84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0; }
.authcard p { font-size: .85rem; color: var(--text-soft); margin: 0 0 8px; }
.authcard .limits { font-size: .79rem; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: 8px; margin: 0; }
.authcard.is-ok   { border-left: 3px solid var(--ok); }
.authcard.is-warn { border-left: 3px solid var(--warn); }
.authcard.is-bad  { border-left: 3px solid var(--bad); }
.authcard.is-none { border-left: 3px solid var(--border-strong); }

/* ---------- findings ---------- */
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.finding { display: flex; gap: 11px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.finding-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .74rem; font-weight: 800; color: #fff; }
.finding-title { font-weight: 640; font-size: .91rem; margin: 0 0 3px; }
.finding-detail { font-size: .86rem; color: var(--text-soft); margin: 0; }
.finding.high  { border-color: var(--bad-border);  background: var(--bad-soft); }
.finding.high  .finding-mark { background: var(--bad); }
.finding.medium{ border-color: var(--warn-border); background: var(--warn-soft); }
.finding.medium .finding-mark { background: var(--warn); }
.finding.low   { border-color: var(--info-border); background: var(--info-soft); }
.finding.low   .finding-mark { background: var(--info); }
.finding.info  { border-color: var(--border); }
.finding.info .finding-mark { background: var(--neutral); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.tlitem { position: relative; padding: 0 0 16px 44px; }
.tlitem:last-child { padding-bottom: 0; }
.tldot { position: absolute; left: 8px; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--surface); background: var(--neutral); box-shadow: 0 0 0 1px var(--border); }
.tlitem.is-trusted .tldot { background: var(--ok); }
.tlitem.is-untrusted .tldot { background: var(--warn); }
.tlitem.is-candidate .tldot { background: var(--bad); box-shadow: 0 0 0 1px var(--bad-border), 0 0 0 5px var(--bad-soft); }
.tlhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.tltime { font-size: .84rem; font-weight: 660; color: var(--text); font-variant-numeric: tabular-nums; }
.tlroute { font-size: .87rem; color: var(--text-soft); margin: 0 0 4px; word-break: break-word; }
.tlroute .host { font-family: var(--mono); font-size: .84rem; }
.tldelay { font-size: .8rem; color: var(--text-muted); }

/* ---------- IP table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; min-width: 660px; }
table.data th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 680; padding: 11px 13px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 11px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .ipcell { font-family: var(--mono); font-weight: 600; font-size: .85rem; white-space: nowrap; }
table.data .rowaction { white-space: nowrap; }
.cand-mark { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin-right: 6px; vertical-align: middle; }

/* ---------- collapsible ---------- */
details.expand { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-top: 9px; overflow: hidden; }
details.expand > summary { cursor: pointer; padding: 11px 14px; font-size: .88rem; font-weight: 620; color: var(--text-soft); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; user-select: none; }
details.expand > summary::-webkit-details-marker { display: none; }
details.expand > summary::after { content: "▾"; color: var(--text-muted); transition: transform .18s var(--ease); font-size: .9rem; }
details.expand[open] > summary::after { transform: rotate(180deg); }
details.expand > summary:hover { background: var(--bg-soft); }
details.expand .expand-body { padding: 0 14px 14px; border-top: 1px solid var(--border); }

pre.raw { margin: 0; padding: 14px; background: var(--code-bg); border: 1px solid var(--code-border); border-radius: var(--radius-sm); font-size: .78rem; line-height: 1.55; color: var(--text); white-space: pre; overflow-x: auto; max-height: 380px; overflow-y: auto; }
pre.raw.wrapped { white-space: pre-wrap; overflow-wrap: anywhere; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: .86rem; }
.kv dt { color: var(--text-muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
.kv dd .mono { font-size: .84rem; }

/* ---------- notices ---------- */
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); font-size: .88rem; }
.notice-mark { flex: none; font-size: 1rem; line-height: 1.4; }
.notice-info { background: var(--info-soft); border-color: var(--info-border); color: var(--accent-ink); }
.notice-warn { background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn); }
.notice-bad  { background: var(--bad-soft);  border-color: var(--bad-border);  color: var(--bad); }
.notice-ok   { background: var(--ok-soft);   border-color: var(--ok-border);   color: var(--ok); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice li { margin-bottom: 4px; }

/* ---------- loading ---------- */
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.4px solid rgba(255,255,255,.42); border-top-color: #fff; animation: spin .68s linear infinite; display: none; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading { pointer-events: none; opacity: .95; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-soft) 25%, var(--surface-2) 37%, var(--bg-soft) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.loading-stack { display: grid; gap: 12px; }
.loading-stack .l1 { height: 68px; } .loading-stack .l2 { height: 120px; } .loading-stack .l3 { height: 200px; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: clamp(30px,5vw,54px) 18px; }
.empty-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); }
.empty h3 { margin-bottom: .3em; }
.empty p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 18px; }

/* ---------- feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; }
.feature { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); margin-bottom: 11px; }
.feature h3 { font-size: .95rem; margin-bottom: .28em; }
.feature p { font-size: .86rem; color: var(--text-muted); margin: 0; }

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

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .fieldrow { grid-template-columns: 1fr; gap: 3px; }
  .fieldrow-key { padding-top: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 6px; }
  .header-inner { height: auto; min-height: 58px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
  .nav-link { padding: 6px 9px; font-size: .86rem; }
  .verdict { flex-direction: column; gap: 12px; }
  .timeline::before { left: 13px; }
  .tlitem { padding-left: 38px; }
  .tldot { left: 6px; }
}
@media (max-width: 430px) {
  .brand-name { font-size: .95rem; }
  .toolbar-actions .btn { flex: 1 1 auto; }
}
@media print {
  .site-header, .site-footer, .toolbar, .toolbar-actions, .rowaction { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; }
  details.expand { border: 1px solid #ccc; }
  details.expand[open] > summary::after { content: ""; }
}
