/* ============================================================
   Resto AI · SEO Command Center
   Minimalist layer. Neutral cards, one orange accent, muted
   semantic health dots, monochrome micro-charts.
   Shell (rail/topbar) comes from delivery dashboard.css.
   ============================================================ */

:root {
  /* Mapped to the dashboard's own theme tokens so the Command Center follows
     the dashboard's light/dark mode (not the reference's fixed dark hexes).
     Reference fallbacks kept for any context where the dashboard tokens are absent. */
  --seo-card: var(--card-bg, var(--surface-1, #1a1612));
  --seo-card-2: var(--surface-2, var(--surface, #211c16));
  --seo-line: var(--card-border, var(--border, #3b3327));
  --seo-line-soft: var(--border, var(--border-subtle, #2a2419));
  --seo-fg: var(--text-primary, var(--fg-1, #F1ECE2));
  --seo-fg2: var(--text-secondary, var(--fg-2, #C9BCA4));
  --seo-fg3: var(--text-muted, var(--fg-3, #998973));
  --seo-mut: var(--text-muted, var(--fg-muted, #6d6149));
  --h-great: #4FB477;
  --h-good:  #6CA9F2;
  --h-watch: #F4A93A;
  --h-risk:  #F26B5C;
  --seo-ease: cubic-bezier(.2,.8,.2,1);
}

/* Branch charts reuse RepCharts (inline SVG) whose axis text + dot strokes use
   --fg-1/2/3 + --surface-page — report tokens only defined under .rai-reports.
   Alias them to the SEO tokens here so chart text is legible in the Command Center
   (otherwise the labels paint black on the dark background). */
.seo-page, .seo-detail {
  --fg-1: var(--seo-fg);
  --fg-2: var(--seo-fg2);
  --fg-3: var(--seo-fg3);
  --fg-muted: var(--seo-mut);
  --surface-page: var(--seo-card);
}

.seo-page { padding: 30px 36px 80px; max-width: 1320px; margin: 0 auto; }

/* shell has no secondary sidebar in the SEO section — collapse grid to 2 cols
   (overview.css normally provides this; we load the base dashboard.css only) */
.shell.no-sidebar { grid-template-columns: var(--rail-width, 72px) 1fr; }

/* ---------- page head ---------- */
.seo-head { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 26px; }
.seo-head .grow { flex: 1; }
.seo-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--seo-fg3); margin-bottom: 12px; }
.seo-eyebrow .crumb-mut { color: var(--seo-mut); }
.seo-eyebrow .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--seo-mut); }
.seo-h1 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; color: var(--seo-fg); margin: 0; }
.seo-h1 em { font-style: normal; color: var(--brand-orange, #FB5F2C); }
.seo-sub { margin: 9px 0 0; color: var(--seo-fg3); font-size: 14px; line-height: 1.5; max-width: 640px; }
.seo-head-actions { display: flex; gap: 8px; flex: none; }

.seo-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--seo-line); background: var(--seo-card);
  color: var(--seo-fg2); font: 500 13px Inter, sans-serif; cursor: pointer;
  transition: all .16s var(--seo-ease); white-space: nowrap; }
.seo-btn:hover { border-color: var(--border-strong, #5a4d3b); color: var(--seo-fg); }
.seo-btn.primary { background: var(--brand-orange, #FB5F2C); border-color: var(--brand-orange, #FB5F2C); color: #fff; }
.seo-btn.primary:hover { background: var(--brand-orange-hover, #E54E1E); border-color: var(--brand-orange-hover, #E54E1E); }
.seo-btn.ghost { background: transparent; border-color: transparent; padding: 0 8px; }
.seo-btn.ghost:hover { background: var(--seo-card-2); }

/* ---------- cards (neutral) ---------- */
.seo-card { background: var(--seo-card); border: 1px solid var(--seo-line); border-radius: 14px; }
.seo-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--seo-line-soft); }
.seo-card-h h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--seo-fg); }
.seo-card-h .csub { font-size: 12px; color: var(--seo-fg3); margin-top: 2px; }
.seo-card-b { padding: 20px; }

/* ---------- Resty priority brief ---------- */
.seo-brief { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden; margin-bottom: 22px; }
.seo-brief-lead { padding: 24px 26px; border-right: 1px solid var(--seo-line-soft); position: relative; }
.seo-brief-lead::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 180px at 0% 0%, rgba(251,95,44,.05), transparent 62%); }
.seo-brief-top { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; position: relative; }
.seo-brief-top .who { display: flex; flex-direction: column; }
.seo-brief-top .nm { font-size: 13px; font-weight: 600; color: var(--seo-fg); }
.seo-brief-top .rl { font-size: 11px; color: var(--seo-fg3); }
.seo-brief-top .when { margin-left: auto; font-size: 11px; color: var(--seo-mut);
  font-family: var(--font-mono, monospace); }
.seo-brief-lead p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--seo-fg2); position: relative; }
.seo-brief-lead p em { font-style: normal; color: var(--seo-fg); font-weight: 600; }

.seo-prio { padding: 18px 20px; }
.seo-prio-h { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--seo-fg3); margin-bottom: 12px; }
.seo-prio-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 10px;
  cursor: pointer; transition: background .14s var(--seo-ease); }
.seo-prio-row:hover { background: var(--seo-card-2); }
.seo-prio-rank { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--seo-card-2);
  display: flex; align-items: center; justify-content: center; font: 600 11px var(--font-mono, monospace);
  color: var(--seo-fg3); margin-top: 1px; }
.seo-prio-main { flex: 1; min-width: 0; }
.seo-prio-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--seo-fg); }
.seo-prio-why { font-size: 12px; color: var(--seo-fg3); line-height: 1.45; margin-top: 2px; }
.seo-prio-score { flex: none; font: 600 13px var(--font-mono, monospace); color: var(--seo-fg2);
  font-variant-numeric: tabular-nums; }

/* ---------- KPI strip ---------- */
.seo-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.seo-kpi { background: var(--seo-card); border: 1px solid var(--seo-line); border-radius: 12px; padding: 16px 18px; }
.seo-kpi .k-lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--seo-fg3); }
.seo-kpi .k-val { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--seo-fg);
  font-variant-numeric: tabular-nums; margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.seo-kpi .k-val .unit { font-size: 14px; font-weight: 500; color: var(--seo-fg3); letter-spacing: 0; }
.seo-kpi .k-foot { margin-top: 8px; display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--seo-fg3); }
.seo-kpi .spark { margin-top: 10px; }

/* tiny health pips group */
.seo-pips { display: flex; gap: 4px; margin-top: 11px; }
.seo-pip { height: 6px; border-radius: 3px; flex: 1; opacity: .9; }

/* ---------- triage / filter bar ---------- */
.seo-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.seo-seg { display: inline-flex; background: var(--seo-card); border: 1px solid var(--seo-line); border-radius: 10px; padding: 3px; gap: 2px; }
.seo-seg button { appearance: none; border: 0; background: transparent; color: var(--seo-fg3);
  font: 500 12.5px Inter, sans-serif; padding: 6px 12px; border-radius: 7px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: all .14s var(--seo-ease); }
.seo-seg button:hover { color: var(--seo-fg); }
.seo-seg button.active { background: var(--seo-card-2); color: var(--seo-fg); }
.seo-seg button .cnt { font: 600 11px var(--font-mono, monospace); color: var(--seo-mut); }
.seo-seg button.active .cnt { color: var(--seo-fg3); }
.seo-seg .dot { width: 7px; height: 7px; border-radius: 50%; }
.seo-search { flex: 1; min-width: 180px; max-width: 280px; display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px; background: var(--seo-card); border: 1px solid var(--seo-line); border-radius: 10px; color: var(--seo-fg3); }
.seo-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--seo-fg); font: 400 13px Inter, sans-serif; }
.seo-search input::placeholder { color: var(--seo-mut); }
.seo-sort { margin-left: auto; display: flex; align-items: center; }
.seo-sort select { height: 36px; background: var(--seo-card); border: 1px solid var(--seo-line); border-radius: 10px;
  color: var(--seo-fg2); font: 500 12.5px Inter, sans-serif; padding: 0 12px; cursor: pointer; }

/* calm card health label (one small color point) */
.seo-hmini { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px;
  font-size: 11.5px; font-weight: 500; color: var(--seo-fg3); }
.seo-hmini .d { width: 7px; height: 7px; border-radius: 50%; }
/* calm cards: quieter delta */
.seo-cli.calm .seo-cli-metric .delta.up { color: var(--seo-fg2); }
.seo-cli.calm .seo-cli-metric .delta.down { color: var(--seo-fg2); }
.seo-cli.calm .seo-cli-flag .fdot { opacity: .6; }

/* ---------- client cards grid ---------- */
.seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(312px, 1fr)); gap: 14px; }
.seo-cli { background: var(--seo-card); border: 1px solid var(--seo-line); border-radius: 14px;
  padding: 18px 18px 16px; cursor: pointer; transition: border-color .18s var(--seo-ease), transform .18s var(--seo-ease);
  position: relative; overflow: hidden; }
.seo-cli:hover { border-color: var(--border-strong, #5a4d3b); transform: translateY(-2px); }
.seo-cli-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.seo-cli-id .nm { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--seo-fg); }
.seo-cli-id .mk { font-size: 12px; color: var(--seo-fg3); margin-top: 2px; }
.seo-cli-score { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.seo-cli-score .sc { font: 600 24px var(--font-mono, monospace); letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--seo-fg); }
.seo-cli-score .sc .den { font-size: 12px; color: var(--seo-mut); }

/* health chip */
.seo-hchip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.seo-hchip .d { width: 6px; height: 6px; border-radius: 50%; }
.seo-hchip[data-h="great"] { color: var(--h-great); background: color-mix(in srgb, var(--h-great) 14%, transparent); }
.seo-hchip[data-h="good"]  { color: var(--h-good);  background: color-mix(in srgb, var(--h-good) 14%, transparent); }
.seo-hchip[data-h="watch"] { color: var(--h-watch); background: color-mix(in srgb, var(--h-watch) 14%, transparent); }
.seo-hchip[data-h="risk"]  { color: var(--h-risk);  background: color-mix(in srgb, var(--h-risk) 16%, transparent); }

/* headline metric + spark */
.seo-cli-metric { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 16px 0 4px; }
.seo-cli-metric .mv { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--seo-fg);
  font-variant-numeric: tabular-nums; line-height: 1; }
.seo-cli-metric .ml { font-size: 11px; color: var(--seo-fg3); margin-top: 5px; }
.seo-cli-metric .delta { font: 600 12px var(--font-mono, monospace); }
.seo-cli-metric .delta.up { color: var(--h-great); }
.seo-cli-metric .delta.down { color: var(--h-risk); }
.seo-cli-spark { margin-top: 6px; }

/* branch micro bars */
.seo-branchbar { display: flex; gap: 5px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--seo-line-soft); }
.seo-bb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.seo-bb .track { width: 100%; height: 30px; background: var(--seo-card-2); border-radius: 4px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.seo-bb .fill { width: 100%; border-radius: 4px; transition: height .4s var(--seo-ease); }
.seo-bb .bl { font-size: 9px; font-weight: 600; letter-spacing: .02em; color: var(--seo-mut); text-transform: uppercase; }

/* card footer flag */
.seo-cli-flag { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 11.5px; color: var(--seo-fg3); }
.seo-cli-flag .fdot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.seo-cli-flag .open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--seo-mut); }
.seo-cli:hover .seo-cli-flag .open { color: var(--brand-orange, #FB5F2C); }

/* ============================================================
   CLIENT DETAIL
   ============================================================ */
.seo-detail { padding: 26px 36px 90px; max-width: 1180px; margin: 0 auto; }
.seo-back { display: inline-flex; align-items: center; gap: 7px; font: 500 13px Inter, sans-serif;
  color: var(--seo-fg3); background: transparent; border: 0; cursor: pointer; margin-bottom: 18px; padding: 4px 0; }
.seo-back:hover { color: var(--seo-fg); }

.seo-d-head { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.seo-d-id .nm { font-size: 26px; font-weight: 600; letter-spacing: -.025em; color: var(--seo-fg); line-height: 1.05; }
.seo-d-id .meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--seo-fg3); flex-wrap: wrap; }
.seo-d-id .meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--seo-mut); }
.seo-d-id .dom { color: var(--brand-orange, #FB5F2C); }
.seo-d-score { margin-left: auto; flex: none; text-align: right; }
.seo-d-score .big { font: 600 44px var(--font-mono, monospace); letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--seo-fg); }
.seo-d-score .big .den { font-size: 18px; color: var(--seo-mut); }
.seo-d-score .lbl { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--seo-fg3); margin-bottom: 8px; }

/* verdict */
.seo-verdict { display: flex; gap: 14px; padding: 18px 20px; margin-bottom: 22px; }
.seo-verdict .body { flex: 1; }
.seo-verdict .vh { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.seo-verdict .vh .nm { font-size: 13px; font-weight: 600; color: var(--seo-fg); }
.seo-verdict .vh .rl { font-size: 11px; color: var(--seo-fg3); }
.seo-verdict .vh .tag { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.seo-verdict p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--seo-fg2); }

/* branch sub-nav (sticky) */
.seo-subnav { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; padding: 10px 0; margin-bottom: 8px;
  background: linear-gradient(to bottom, var(--bg, #14110d) 70%, transparent);
  overflow-x: auto; scrollbar-width: none; }
.seo-subnav::-webkit-scrollbar { display: none; }
.seo-subnav button { appearance: none; border: 1px solid transparent; background: transparent; color: var(--seo-fg3);
  font: 500 12.5px Inter, sans-serif; padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; transition: all .14s var(--seo-ease); }
.seo-subnav button:hover { color: var(--seo-fg); background: var(--seo-card); }
.seo-subnav button.active { background: var(--seo-card); border-color: var(--seo-line); color: var(--seo-fg); }
.seo-subnav button .d { width: 6px; height: 6px; border-radius: 50%; }

/* branch section */
.seo-branch { scroll-margin-top: 64px; margin-bottom: 14px; }
.seo-branch-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--seo-line-soft); }
.seo-branch-head .ttl { font-size: 15px; font-weight: 600; color: var(--seo-fg); }
.seo-branch-head .bl { font-size: 12px; color: var(--seo-fg3); margin-top: 2px; }
.seo-branch-head .bscore { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.seo-branch-head .bscore .n { font: 600 20px var(--font-mono, monospace); font-variant-numeric: tabular-nums; color: var(--seo-fg); }

/* metric grid */
.seo-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.seo-metric { padding: 18px 20px; border-right: 1px solid var(--seo-line-soft); border-top: 1px solid var(--seo-line-soft); }
.seo-metrics .seo-metric:nth-child(4n) { border-right: 0; }
.seo-metric .ml { font-size: 11.5px; color: var(--seo-fg3); margin-bottom: 8px; }
.seo-metric .mv { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--seo-fg); font-variant-numeric: tabular-nums; line-height: 1; }
.seo-metric .ms { font-size: 11.5px; color: var(--seo-mut); margin-top: 6px; }
.seo-metric .ms.up { color: var(--h-great); } .seo-metric .ms.down { color: var(--h-risk); }

/* extra chart row inside branch */
.seo-branch-extra { padding: 18px 20px; border-top: 1px solid var(--seo-line-soft); }
.seo-legend { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.seo-legend .lg { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--seo-fg3); }
.seo-legend .lg .d { width: 8px; height: 8px; border-radius: 2px; }

/* Report-style chart focus-dim + hover points for branch charts (RepCharts opts.tip).
   The report rules are scoped to .rai-reports; mirror them inside the SEO CC. */
.seo-branch-extra .rc-focusable .rc-grp { transition: opacity .12s ease; }
.seo-branch-extra svg.rc-focusable:hover .rc-grp { opacity: .28; }
.seo-branch-extra svg.rc-focusable .rc-grp:hover { opacity: 1; }
.seo-branch-extra .rc-pt .pt-dot, .seo-branch-extra .rc-pt .pt-line { opacity: 0; transition: opacity .12s ease; }
.seo-branch-extra .rc-pt:hover .pt-dot, .seo-branch-extra .rc-pt:hover .pt-line { opacity: 1; }

/* Per-branch Resty note: why this score + fixes to reach 100 */
.seo-branch-note { margin: 0 20px 18px; padding: 13px 15px; border-radius: 10px;
  background: var(--seo-card-2, rgba(255,255,255,.02)); border: 1px solid var(--seo-line-soft); }
.seo-branch-note .bn-head { display: flex; align-items: flex-start; gap: 9px; }
.seo-branch-note .bn-nm { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand, #FB5F2C); white-space: nowrap; padding-top: 1px; }
.seo-branch-note .bn-why { font-size: 13px; color: var(--seo-fg2); line-height: 1.5; flex: 1; }
.seo-branch-note .bn-fixes { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--seo-line-soft); }
.seo-branch-note .bn-fl { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--seo-fg3); margin-bottom: 6px; }
.seo-branch-note .bn-fixes ul { margin: 0; padding-left: 18px; }
.seo-branch-note .bn-fixes li { font-size: 12.5px; color: var(--seo-fg2); line-height: 1.7; }

/* ════════════════════════════════════════════════════════════════════════
   Local SEO · Maps ranking grid — 1:1 port of the report's block.
   Source: public/reports/reports.css (.rai-reports .lsm-* / .slm-pop*),
   re-tokenized to the Command Center theme vars (--seo-*) so the block
   follows the dashboard's LIGHT and DARK modes (the report's rules are
   scoped under .rai-reports and use report-only tokens, so they never
   reach this page — hence the copy). Scoped under .seo-detail so these
   rules can't leak back into the report either.
   ════════════════════════════════════════════════════════════════════════ */
.seo-detail .lsm-cc-title { margin: 2px 0 14px; }
.seo-detail .lsm-cc-title h4 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: var(--seo-fg); }
.seo-detail .lsm-cc-sub { font-size: 12px; color: var(--seo-fg3); margin-top: 3px; line-height: 1.5; }
.seo-detail .lsm-cc-sub strong { color: var(--seo-fg2); font-weight: 600; }

.seo-detail .lsm-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .seo-detail .lsm-wrap { grid-template-columns: 1fr; } }
.seo-detail .lsm-list { display: flex; flex-direction: column; gap: 8px; }
.seo-detail .lsm-entry { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--seo-card-2); border: 1px solid var(--seo-line-soft);
  border-radius: 10px; transition: border-color .14s var(--seo-ease); }
.seo-detail .lsm-entry:hover { border-color: var(--seo-line); }
.seo-detail .lsm-entry.is-you { background: linear-gradient(90deg, rgba(34,197,94,.08), transparent 80%);
  border-color: rgba(34,197,94,.35); }
.seo-detail .lsm-rank { font: 600 14px var(--font-mono, monospace); color: var(--seo-fg3); text-align: center;
  font-variant-numeric: tabular-nums; }
.seo-detail .lsm-entry.is-you .lsm-rank { color: var(--success, #22C55E); }
.seo-detail .lsm-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.seo-detail .lsm-name { font-size: 13px; font-weight: 600; color: var(--seo-fg);
  display: inline-flex; align-items: center; gap: 5px; letter-spacing: -.005em; }
.seo-detail .lsm-name svg { color: var(--seo-fg3); flex-shrink: 0; }
.seo-detail .lsm-you-pill { font-size: 9.5px; font-weight: 600; background: var(--success, #22C55E); color: #fff;
  padding: 1px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; margin-left: 4px; }
.seo-detail .lsm-rating { display: inline-flex; align-items: center; gap: 5px; margin-top: 1px;
  font: 500 11px var(--font-mono, monospace); font-variant-numeric: tabular-nums; color: var(--seo-fg2); }
.seo-detail .lsm-r-num { color: var(--seo-fg); font-weight: 600; }
.seo-detail .lsm-r-stars { letter-spacing: 1px; font-size: 11px; }
.seo-detail .lsm-r-count { color: var(--seo-fg3); }
/* GBP category chips — same chips the report shows on each competitor */
.seo-detail .lsm-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.seo-detail .lsm-cat { font-size: 10px; font-weight: 600; color: var(--seo-fg2);
  background: color-mix(in srgb, var(--seo-fg) 4%, transparent);
  border: 1px solid var(--seo-line-soft); border-radius: 5px; padding: 2px 6px; }
.seo-detail .lsm-entry.is-you .lsm-cat { border-color: rgba(34,197,94,.4); color: var(--seo-fg); }
.seo-detail .lsm-addr { font-size: 11px; color: var(--seo-fg3); margin-top: 4px; line-height: 1.45; }
.seo-detail .lsm-gmaps { color: var(--brand, #FB5F2C); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 3px; }
.seo-detail .lsm-gmaps:hover { text-decoration: underline; }
.seo-detail .lsm-more { margin-top: 2px; }
.seo-detail .lsm-more-sum { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--brand, #FB5F2C);
  padding: 6px 2px; list-style: none; }
.seo-detail .lsm-more-sum::-webkit-details-marker { display: none; }
.seo-detail .lsm-more-sum::before { content: '▸ '; }
.seo-detail .lsm-more[open] > .lsm-more-sum::before { content: '▾ '; }
.seo-detail .lsm-more[open] > .lsm-more-sum { color: var(--seo-fg3); }
.seo-detail .lsm-more .lsm-entry { margin-top: 8px; }
/* SoLV / avg-pos / top-3 stat tiles */
.seo-detail .lsm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.seo-detail .lsm-stat { background: var(--seo-card-2); border: 1px solid var(--seo-line-soft);
  border-radius: 10px; padding: 10px 14px; }
.seo-detail .lsm-stat-l { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--seo-fg3); }
.seo-detail .lsm-stat-v { font: 500 22px var(--font-mono, monospace); color: var(--seo-fg); letter-spacing: -.02em;
  line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 2px; }
/* Interactive Mapbox geo-grid container */
.seo-detail .lsm-map { position: relative; background: var(--seo-card-2); border-radius: 12px; overflow: hidden;
  min-height: 380px; height: 380px; border: 1px solid var(--seo-line-soft); }
.seo-detail .lsm-map .mapboxgl-ctrl-logo,
.seo-detail .lsm-map .mapboxgl-ctrl-attrib,
.seo-detail .lsm-map .mapboxgl-ctrl-bottom-left { display: none !important; }
.seo-detail .lsm-map .slm-empty { display: flex; align-items: center; justify-content: center; height: 100%;
  color: var(--seo-fg3); font-size: 13px; text-align: center; padding: 24px; }
/* Map popup (who ranks at this point) — THE white-on-white fix. Mapbox's
   default .mapboxgl-popup-content is solid white; the report themes it via
   .rai-reports-scoped rules that don't exist on this page, so the Command
   Center popup rendered white background + inherited light text. Theme it
   with the CC tokens so it's legible in BOTH dark and light mode. */
.seo-detail .slm-popup .mapboxgl-popup-content { background: var(--seo-card); border: 1px solid var(--seo-line);
  border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.4); color: var(--seo-fg2); }
.seo-detail .slm-popup .mapboxgl-popup-tip { display: none; }
.seo-detail .slm-pop-head { margin-bottom: 6px; }
.seo-detail .slm-pop-rank { display: inline-block; padding: 2px 9px; border-radius: 9px; color: #fff; font-size: 11px; font-weight: 700; }
.seo-detail .slm-pop-list-lbl { font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--seo-fg3); margin: 4px 0; }
.seo-detail .slm-pop-row { display: block; padding: 4px 0; font-size: 12px; color: var(--seo-fg2); }
.seo-detail .slm-pop-row + .slm-pop-row { border-top: 1px solid var(--seo-line-soft); }
.seo-detail .slm-pop-rowtop { display: flex; align-items: center; gap: 7px; }
.seo-detail .slm-pop-row.is-you { color: var(--brand, #FB5F2C); font-weight: 600; }
.seo-detail .slm-pop-pos { flex: 0 0 16px; text-align: center; font-weight: 700; color: var(--seo-fg3); }
.seo-detail .slm-pop-row.is-you .slm-pop-pos { color: var(--brand, #FB5F2C); }
.seo-detail .slm-pop-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-detail .slm-pop-meta { font-size: 10.5px; font-weight: 500; color: var(--seo-fg3); margin: 2px 0 0 23px; }
.seo-detail .slm-pop-cats { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 0 23px; }
.seo-detail .slm-pop-cat { font-size: 9.5px; font-weight: 600; color: var(--seo-fg2);
  background: color-mix(in srgb, var(--seo-fg) 6%, transparent);
  border: 1px solid var(--seo-line-soft); border-radius: 4px; padding: 1px 5px; }
/* Legend */
.seo-detail .lsm-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 11px; font-weight: 500;
  color: var(--seo-fg3); justify-content: center; flex-wrap: wrap; }
.seo-detail .lsm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.seo-detail .lsm-leg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
/* Optimization recommendations — severity bar + icon + chips */
.seo-detail .lsm-recs { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--seo-line-soft); }
.seo-detail .lsm-recs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.seo-detail .lsm-recs-mark { display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px; color: #fff;
  background: linear-gradient(135deg, #EA4335, #FB5F2C); }
.seo-detail .lsm-recs-title { font-size: 14px; font-weight: 700; color: var(--seo-fg); }
.seo-detail .lsm-recs-sub { font-size: 11.5px; font-weight: 500; color: var(--seo-fg3); }
.seo-detail .lsm-rec { display: flex; background: var(--seo-card-2); border: 1px solid var(--seo-line-soft);
  border-radius: 10px; overflow: hidden; margin-top: 8px; }
.seo-detail .lsm-rec-bar { width: 3px; flex: none; align-self: stretch; }
.seo-detail .lsm-rec-main { padding: 11px 13px; flex: 1; min-width: 0; }
.seo-detail .lsm-rec-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--seo-fg); flex-wrap: wrap; }
.seo-detail .lsm-rec-ic { display: inline-flex; }
.seo-detail .lsm-rec-sev { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid; border-radius: 999px; padding: 1px 8px; margin-left: auto; }
.seo-detail .lsm-rec-text { font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--seo-fg2); margin-top: 5px; }
.seo-detail .lsm-rec-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.seo-detail .lsm-rec-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  color: var(--seo-fg); background: color-mix(in srgb, var(--seo-fg) 5%, transparent);
  border: 1px solid var(--seo-line); border-radius: 999px; padding: 3px 10px; }
.seo-detail .lsm-rec-chip-n { font-weight: 500; font-size: 9.5px; color: var(--seo-fg3); }
/* Keyword selector chips (report's .lsm-kw-chips, re-tokenized) */
.seo-detail .lsm-kw-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.seo-detail .seo-loc-tabs + .lsm-kw-chips { padding-top: 13px; border-top: 1px solid var(--seo-line-soft); }
.seo-detail .lsm-kw-lead { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--seo-fg3); margin-right: 2px; }
.seo-detail .lsm-kw-chip { display: inline-flex; align-items: center; gap: 7px; line-height: 1; cursor: pointer;
  font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--seo-line); background: var(--seo-card-2); color: var(--seo-fg);
  transition: background .12s, border-color .12s, color .12s; }
.seo-detail .lsm-kw-chip:hover { border-color: var(--brand, #FB5F2C); color: var(--brand, #FB5F2C); }
.seo-detail .lsm-kw-chip .lsm-kw-chip-v { font: 700 11.5px var(--font-mono, monospace); color: var(--seo-fg3);
  font-variant-numeric: tabular-nums; }
.seo-detail .lsm-kw-chip.on { background: var(--brand, #FB5F2C); border-color: transparent; color: #fff; }
.seo-detail .lsm-kw-chip.on .lsm-kw-chip-v { color: rgba(255,255,255,.85); }
/* Footer meta line */
.seo-detail .lsm-foot { font-size: 11.5px; color: var(--seo-mut); margin-top: 14px; }

/* Keyword distribution bar + View-all */
.seo-kwd { padding: 0 20px 12px; }
.seo-kwd-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.seo-kwd-leg { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--seo-fg3); flex-wrap: wrap; }
.seo-kwd-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.seo-kwt-all summary { cursor: pointer; font-size: 12px; color: var(--brand, #FB5F2C); padding: 10px 20px; list-style: none; }
.seo-kwt-all summary::-webkit-details-marker { display: none; }

/* Keyword group tabs (Company / per location) */
.seo-kw-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 12px; }
.seo-kw-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--seo-line-soft); background: transparent; color: var(--seo-fg2); font-size: 12.5px; cursor: pointer; }
.seo-kw-tab:hover { color: var(--seo-fg); }
.seo-kw-tab.on { background: color-mix(in srgb, var(--brand, #FB5F2C) 14%, transparent); border-color: var(--brand, #FB5F2C); color: var(--seo-fg); }
.seo-kw-tab-n { font: 600 11px var(--font-mono, monospace); color: var(--seo-fg3); }
.seo-kw-tab.on .seo-kw-tab-n { color: var(--brand, #FB5F2C); }

/* Local SEO location tabs (keyword chips use .lsm-kw-chip above, report parity) */
.seo-loc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.seo-loc-tab { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--seo-line-soft); background: transparent; color: var(--seo-fg2); font-size: 13px; font-weight: 500; cursor: pointer; }
.seo-loc-tab:hover { color: var(--seo-fg); }
.seo-loc-tab.on { background: color-mix(in srgb, var(--brand, #FB5F2C) 14%, transparent); border-color: var(--brand, #FB5F2C); color: var(--seo-fg); }

/* Drill-down "View detail" button + Site Audit issues modal */
.seo-issues-btn { appearance: none; border: 1px solid var(--brand, #FB5F2C); background: transparent; color: var(--brand, #FB5F2C); font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 9px; cursor: pointer; }
.seo-issues-btn:hover { background: color-mix(in srgb, var(--brand, #FB5F2C) 12%, transparent); }
.seo-modal-ov { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.seo-modal { background: var(--seo-card, #1a1612); border: 1px solid var(--seo-line); border-radius: 16px; width: 100%; max-width: 620px; max-height: 82vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.seo-modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--seo-line-soft); }
.seo-modal-h h3 { margin: 0; font-size: 16px; color: var(--seo-fg); }
.seo-modal-x { appearance: none; border: 0; background: transparent; color: var(--seo-fg3); font-size: 18px; cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.seo-modal-x:hover { color: var(--seo-fg); background: var(--seo-card-2); }
.seo-modal-b { padding: 8px 22px 22px; overflow-y: auto; }
.seo-iss-sub { font-size: 11.5px; color: var(--seo-fg3); padding: 10px 0; font-family: var(--font-mono, monospace); }
.seo-iss-grp { margin-top: 14px; }
.seo-iss-grp-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.seo-iss-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--seo-line-soft); }
.seo-iss-row:last-child { border-bottom: 0; }
.seo-iss-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.seo-iss-main { flex: 1; min-width: 0; }
.seo-iss-nm { font-size: 13.5px; color: var(--seo-fg); }
.seo-iss-cat { font-size: 11px; color: var(--seo-fg3); margin-top: 1px; }
.seo-iss-cnt { font: 600 12.5px var(--font-mono, monospace); color: var(--seo-fg2); white-space: nowrap; }

/* maps grid */
.seo-mapsgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; max-width: 280px; }
.seo-mapsgrid .cell { aspect-ratio: 1; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font: 600 12px var(--font-mono, monospace); color: #fff; }

/* keyword table */
.seo-kwt { width: 100%; border-collapse: collapse; }
.seo-kwt th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--seo-fg3); padding: 8px 20px; border-bottom: 1px solid var(--seo-line-soft); }
.seo-kwt td { padding: 11px 20px; border-bottom: 1px solid var(--seo-line-soft); font-size: 13px; color: var(--seo-fg2); }
.seo-kwt tr:last-child td { border-bottom: 0; }
.seo-kwt .kw { color: var(--seo-fg); font-weight: 500; }
.seo-kwpos { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px;
  border-radius: 6px; font: 600 12px var(--font-mono, monospace); }
.seo-kwpos.top { color: var(--h-great); background: color-mix(in srgb, var(--h-great) 14%, transparent); }
.seo-kwpos.mid { color: var(--h-good); background: color-mix(in srgb, var(--h-good) 14%, transparent); }
.seo-kwpos.low { color: var(--seo-fg3); background: var(--seo-card-2); }
.seo-kwmove { font: 600 12px var(--font-mono, monospace); }
.seo-kwmove.up { color: var(--h-great); } .seo-kwmove.down { color: var(--h-risk); } .seo-kwmove.flat { color: var(--seo-mut); }

/* gauges row */
.seo-gauges { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.seo-gauge { text-align: center; } .seo-gauge .gl { font-size: 11.5px; color: var(--seo-fg3); margin-top: 4px; }

/* ============================================================
   ACTIVITY
   ============================================================ */
.seo-act-toolbar { display: flex; align-items: center; gap: 12px; }
.seo-act-toolbar .grow { flex: 1; }

/* timeline */
.seo-timeline { padding: 6px 20px 14px; }
.seo-tl-row { display: flex; gap: 14px; padding: 12px 0; position: relative; }
.seo-tl-row:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: -12px; width: 1px; background: var(--seo-line-soft); }
.seo-tl-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--seo-card-2); position: relative; z-index: 1; }
.seo-tl-main { flex: 1; min-width: 0; }
.seo-tl-row .tl-top { display: flex; align-items: baseline; gap: 8px; }
.seo-tl-row .tl-title { font-size: 13.5px; font-weight: 500; color: var(--seo-fg); }
.seo-tl-row .tl-date { margin-left: auto; font: 500 11px var(--font-mono, monospace); color: var(--seo-mut); flex: none; }
.seo-tl-row .tl-meta { font-size: 12px; color: var(--seo-fg3); margin-top: 3px; display: flex; align-items: center; gap: 8px; }
.seo-tl-row .tl-agent { color: var(--seo-fg2); }
.seo-tl-row .tl-status { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.seo-tl-row .tl-status.done { color: var(--h-great); background: color-mix(in srgb, var(--h-great) 13%, transparent); }
.seo-tl-row .tl-status.pending { color: var(--h-watch); background: color-mix(in srgb, var(--h-watch) 13%, transparent); }

/* monthly matrix */
.seo-matrix { width: 100%; border-collapse: collapse; }
.seo-matrix th, .seo-matrix td { padding: 9px 10px; font-size: 12px; text-align: center; border-bottom: 1px solid var(--seo-line-soft); }
.seo-matrix th { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--seo-fg3); }
.seo-matrix th:first-child, .seo-matrix td:first-child { text-align: left; }
.seo-matrix td:first-child { color: var(--seo-fg2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.seo-matrix .cellnum { font: 600 12px var(--font-mono, monospace); font-variant-numeric: tabular-nums; }
.seo-matrix .heat { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; border-radius: 6px; }
.seo-matrix tfoot td { font-weight: 600; color: var(--seo-fg); border-bottom: 0; border-top: 1px solid var(--seo-line); }
.seo-act-typeicon { width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex: none; }

@media (max-width: 1080px) {
  .seo-kpis { grid-template-columns: repeat(2, 1fr); }
  .seo-brief { grid-template-columns: 1fr; }
  .seo-brief-lead { border-right: 0; border-bottom: 1px solid var(--seo-line-soft); }
  .seo-metrics { grid-template-columns: repeat(2, 1fr); }
  .seo-metrics .seo-metric:nth-child(2n) { border-right: 0; }
}
@media (max-width: 720px) {
  .seo-page, .seo-detail { padding-left: 18px; padding-right: 18px; }
  .seo-head, .seo-d-head { flex-direction: column; gap: 14px; }
  .seo-d-score { margin-left: 0; text-align: left; }
  .seo-kpis { grid-template-columns: 1fr; }
}

/* ============================================================
   HEALTH v2 (2026-06-12) — driver WHY panel, coverage strip,
   point-lift projections. Data: seo_health_daily (deterministic
   engine, _lib/seoHealthDrivers.js). Theme tokens only.
   ============================================================ */

/* ---------- data-coverage honesty strip (board head) ---------- */
.seo-cov-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.seo-cov-lbl { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--seo-mut); margin-right: 2px; }
.seo-cov-chip { appearance: none; cursor: pointer; border: 1px solid var(--seo-line); background: var(--seo-card);
  color: var(--seo-fg3); border-radius: 999px; padding: 4px 12px; font: 500 12px Inter, sans-serif;
  transition: all .15s var(--seo-ease); }
.seo-cov-chip:hover { color: var(--seo-fg); border-color: var(--border-strong, #5a4d3b); }
.seo-cov-chip.on { color: var(--brand-orange, #FB5F2C); border-color: var(--brand-orange, #FB5F2C);
  background: color-mix(in srgb, var(--brand-orange, #FB5F2C) 10%, transparent); }
.seo-cov-chip.clear { border-style: dashed; }

/* ---------- client card: point-lift line ---------- */
.seo-cli-lift { font-size: 11.5px; font-family: var(--font-mono); color: var(--seo-fg3);
  padding: 6px 0 0; }
.seo-cli.calm .seo-cli-lift { color: var(--seo-mut); }

/* ---------- detail head: lift + cap chips ---------- */
.seo-d-lift { margin-top: 6px; font-size: 12px; font-family: var(--font-mono); color: var(--seo-fg3); }
.seo-d-cap { margin-top: 6px; display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--h-watch); border: 1px solid color-mix(in srgb, var(--h-watch) 50%, transparent);
  border-radius: 7px; padding: 2px 8px; }

/* ---------- WHY panel ---------- */
.seo-why .seo-card-b { display: flex; flex-direction: column; gap: 4px; }
.seo-why-cap { font-size: 12.5px; font-weight: 600; color: var(--h-watch);
  background: color-mix(in srgb, var(--h-watch) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--h-watch) 35%, transparent);
  border-radius: 9px; padding: 8px 12px; margin-bottom: 6px; }
.seo-why-lift { font-size: 12.5px; color: var(--seo-fg2); background: var(--seo-card-2);
  border-radius: 9px; padding: 8px 12px; margin-bottom: 6px; }
.seo-why-lift b { color: var(--seo-fg); }
.seo-why-row { display: flex; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--seo-line-soft); }
.seo-why-row:last-child { border-bottom: 0; }
.seo-why-row.nodata { opacity: .62; }
.seo-why-score { flex: none; width: 84px; }
.seo-why-score .n { font-size: 22px; font-weight: 600; font-family: var(--font-mono); letter-spacing: -.02em; }
.seo-why-track { margin-top: 6px; height: 4px; border-radius: 99px; background: var(--seo-card-2); overflow: hidden; }
.seo-why-fill { height: 100%; border-radius: 99px; transition: width .5s var(--seo-ease); }
.seo-why-main { flex: 1; min-width: 0; }
.seo-why-top { display: flex; align-items: baseline; gap: 10px; }
.seo-why-name { font-size: 13.5px; font-weight: 600; color: var(--seo-fg); }
.seo-why-w { font-size: 11px; font-family: var(--font-mono); color: var(--seo-mut); }
.seo-why-val { font-size: 12.5px; color: var(--seo-fg2); margin-top: 3px; }
.seo-why-read { font-size: 12px; color: var(--seo-fg3); margin-top: 3px; line-height: 1.5; }
.seo-why-info { margin-top: 5px; }
.seo-why-info summary { cursor: pointer; font-size: 11px; color: var(--seo-mut); list-style: none; }
.seo-why-info summary::-webkit-details-marker { display: none; }
.seo-why-info summary::before { content: "ⓘ "; }
.seo-why-info summary:hover { color: var(--seo-fg3); }
.seo-why-detail { font-size: 12px; color: var(--seo-fg3); line-height: 1.55; background: var(--seo-card-2);
  border-radius: 8px; padding: 9px 12px; margin-top: 6px; }
.seo-why-bench { margin-top: 5px; color: var(--seo-mut); }
@media (max-width: 720px) {
  .seo-why-row { flex-direction: column; gap: 8px; }
  .seo-why-score { width: 100%; display: flex; align-items: center; gap: 10px; }
  .seo-why-track { flex: 1; margin-top: 0; }
}
