/* === CrawlReady shared components (single source) === */
/* ==========================================================================
   CrawlReady shared component stylesheet — single source of truth for:
   design tokens, base type, header/nav/footer + hamburger, buttons,
   content primitives, auth screens, report modules, GBP/NAP tools,
   competitor compare, admin panels.
   build.py stamps this in front of each property's own stylesheet at
   build time: dist/*.css = components/shared.css + <site>/<site>.css
   Brand: teal var(--teal) (primary), orange var(--orange) (secondary). NO BLUE.
   ========================================================================== */

:root {
  color-scheme: light;
  --teal: #1e5f7b;
  --teal-dark: #164a61;
  --teal-ink: #0f3c50;
  --orange: #ff7e00;
  --orange-dark: #e56f00;
  --ink: #1a2b33;
  --muted: #5a6f78;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --bg-sage: #eef3f1;
  --border: #dde5e8;
  --red: #c0392b;
  --red-bg: #fde8e8;
  --amber: #b7791f;
  --amber-bg: #fef3e2;
  --green: #1e7e34;
  --green-bg: #e6f4ea;
  --surface: #fff;
  --surface-2: #fbfdff;
  --ink-2: #3a4a52;
  --ink-3: #24333b;
  --doc-ink: #17211f;
  --muted-2: #71828c;
  --line: #dde6ea;
  --line-2: #e3ebee;
  --ok: #1a7a3a;
  --ok-dark: #14522a;
  --ok-bg: #e8f5e9;
  --err-bg: #fdecea;
  --err-line: #f5c6cb;
  --warn-bg: #fff8e1;
  --warn-line: #ffe082;
  --teal-bg: #eaf3f6;
  --teal-2: #1E6F67;
  --soft-2: #eef2f3;
  --soft-3: #e8eef0;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Sticky footer (all properties): every page is header / main / footer, so a
   flex column on body with main flex:1 keeps the footer at the viewport
   bottom on short pages. Replaces the app-only rule formerly in app/app.css. */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > header, body > footer { flex-shrink: 0; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

/* ---------- Header / nav / hamburger ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.home-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); }
.home-icon-link svg { width: 22px; height: 22px; }
.home-icon-link:hover { color: var(--teal); background: var(--bg-soft); }
/* Help-site articles toggle: lives in the header on mobile (≤820px),
   where the home icon used to be. Desktop hides it (rail always visible). */
.hamburger.header-menu-btn { align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; border-radius: 10px; }
.hamburger.header-menu-btn:hover { background: var(--bg-soft); }
.hamburger.header-menu-btn span { width: 22px; }
.brand-mark { width: 30px; height: 30px; color: var(--teal); }
.brand-mark-img { height: 36px; width: auto; display: block; }
.brand-word { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; color: var(--teal); }
.brand-word em { font-style: normal; color: var(--orange); }
/* Two-tone page titles: same effect as the CrawlReady wordmark —
   first word teal, the rest orange, extrabold. Applied via JS. */
.brand-head { font-weight: 800; letter-spacing: -0.5px; }
.brand-head .w1 { color: var(--teal); }
.brand-head .w2 { color: var(--orange); }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { font-size: 15px; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--teal); }
.nav-cta { background: var(--orange); color: #fff !important; padding: 10px 22px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--orange-dark); }
.nav-toggle { display: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--teal); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Language switcher (marketing header) ---------- */
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.lang-btn:hover { border-color: var(--teal); color: var(--teal); }
.lang-btn svg.globe { width: 17px; height: 17px; }
.lang-btn svg.chev-sm { width: 14px; height: 14px; }
.lang-code { font-size: 13px; font-weight: 800; letter-spacing: .4px; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15,44,58,.14); padding: 6px; margin: 0;
  list-style: none; min-width: 168px;
}
.lang-menu button {
  display: flex; align-items: center; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer; font: inherit;
  font-size: 14.5px; color: var(--ink); padding: 10px 14px; border-radius: 9px;
}
.lang-menu button:hover { background: var(--bg-soft); }
.lang-menu button.active { color: var(--teal); font-weight: 700; }
.lang-menu button.active::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-left: auto; flex: none; }
.lang-switcher.in-nav { display: none; }
@media (max-width: 820px) {
  .lang-switcher.in-header-bar { display: none; }
  .lang-switcher.in-nav { display: block; margin-top: 6px; }
  .lang-switcher.in-nav .lang-menu { position: static; box-shadow: none; border: 1px solid var(--border); margin-top: 8px; }
}

/* slim app header (logo + token pill + auth nav) */
.app-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.app-header-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.app-head-right { display: flex; align-items: center; gap: 14px; }
.token-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.token-pill svg { width: 15px; height: 15px; color: var(--orange); }
.token-pill a { color: var(--orange-dark); font-weight: 700; }
a.mon-pill { text-decoration: none; }
a.mon-pill:hover { border-color: var(--teal); }
.admin-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; background: var(--teal-ink); color: #fff; padding: 6px 14px; border-radius: 999px; }

/* auth pages: logo only */
body.auth-page .token-pill, body.auth-page .admin-tag,
body.auth-page .site-nav, body.auth-page .hamburger { display: none !important; }
body.admin-mode .nav-app, body.admin-mode .token-pill { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-ink); color: #cfe0e7; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 24px 28px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-mark { color: var(--orange); }
.footer-brand p { margin-top: 10px; font-size: 14.5px; color: #9fb8c2; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { font-size: 14.5px; color: #cfe0e7; }
.footer-nav a:hover { color: #fff; }
.footer-fine { border-top: 1px solid rgba(255,255,255,.14); text-align: center; padding: 16px 24px; font-size: 13px; color: #9fb8c2; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; border: none; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-orange:disabled { opacity: .55; cursor: not-allowed; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-outline { background: var(--sage); color: var(--teal); border: none; }
.btn-outline:hover { background: var(--teal); color: #fff; }

/* ---------- Content primitives ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.12; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px; }
.lede { font-size: 18px; color: var(--muted); max-width: 620px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: var(--muted); font-size: 16.5px; margin-bottom: 14px; }
.prose p.kicker { color: var(--orange); font-size: 15px; }
.prose ul { padding-left: 22px; }
.prose pre { background: #0f2b3a; color: #d9e8ef; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 18px 0 22px; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose code { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 14.5px; color: var(--teal-ink); }
.page-hero { padding: 64px 0 24px; }

/* ---------- Severity / impact badges ---------- */
.sev { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 3px 12px; border-radius: 999px; margin-left: 10px; vertical-align: 2px; }
.sev-high { background: var(--red-bg); color: var(--red); }
.sev-med { background: var(--amber-bg); color: var(--amber); }
.sev-low { background: var(--green-bg); color: var(--green); }
.severity { flex-shrink: 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 5px 12px; border-radius: 6px; margin-top: 2px; }

/* ---------- Auth screens ---------- */
.auth-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg-soft); min-height: calc(100vh - 120px); }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 44px 40px; width: 100%; max-width: 440px; box-shadow: 0 12px 40px rgba(30,95,123,.08); }
/* FAQ block under auth cards / wizard: plain Q&A for visitors and AI readers. */
.faq-block { max-width: 720px; margin: 0 auto; padding: 8px 24px 64px; }
.faq-block h2 { font-size: 24px; letter-spacing: -0.3px; margin: 0 0 4px; }
.faq-block h3 { font-size: 16.5px; margin: 22px 0 6px; color: var(--teal); }
.faq-block p { font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0; }
.auth-card h1 { font-size: 26px; letter-spacing: -0.5px; margin-bottom: 8px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.auth-error { display: none; background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.field { position: relative; margin-bottom: 18px; }
.field input { width: 100%; padding: 24px 16px 10px; border: 2px solid var(--border); border-radius: 10px; font-size: 15px; outline: none; transition: border-color .15s; background: var(--surface); font-family: inherit; }
.field input:focus { border-color: var(--teal); }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
/* Floating labels: only when the label follows its input (auth forms).
   Scoped with input + label so tool pages using .field with plain
   labels (e.g. robots.txt generator) are not affected. */
.field input + label { position: absolute; left: 16px; top: 16px; font-size: 15px; font-weight: 400; color: var(--muted); pointer-events: none; transition: all .15s ease; margin-bottom: 0; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 8px; font-size: 12px; font-weight: 600; color: var(--teal); }
.show-pw { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 2px 0 18px; cursor: pointer; user-select: none; }
.show-pw input { width: 16px; height: 16px; accent-color: var(--teal); }
.auth-btn { display: block; width: 100%; padding: 15px; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; border: none; text-align: center; background: var(--orange); color: #fff; margin-top: 8px; }
.auth-btn:hover { background: var(--orange-dark); }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; background: var(--surface); border: 2px solid var(--border); color: var(--ink); }
.btn-google:hover { border-color: #bbb; }
.btn-google svg { width: 20px; height: 20px; }
.switch { text-align: center; margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.switch a { color: var(--teal); font-weight: 600; }

/* ---------- Report ---------- */
.report-wrap { max-width: 880px; margin: 0 auto; padding: 36px 24px 80px; }
.score-hero { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; text-align: center; margin-bottom: 24px; }
.score-hero .url { font-size: 15px; color: var(--muted); }
.score-hero .date { font-size: 13px; color: var(--muted); margin-top: 2px; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; margin: 20px auto; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--ringc, var(--orange)) 0% var(--pct, 0%), var(--soft-3) var(--pct, 0%) 100%); }
.score-ring .inner { width: 118px; height: 118px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.score-ring .grade { font-size: 40px; font-weight: 800; line-height: 1; }
.score-ring .num { font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--muted); }
.score-ring .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.verdict { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.verdict-sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 15.5px; }
.section-label { font-size: 22px; font-weight: 800; margin: 32px 0 6px; letter-spacing: -0.3px; }
.section-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.cat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 12px; margin-bottom: 16px; }
.cat-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 8px; text-align: center; }
.cat-chip .s { font-size: 20px; font-weight: 800; }
.cat-chip .n { font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.viz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.viz-card h3 { font-size: 17px; margin-bottom: 4px; }
.viz-card .viz-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
/* Industry landscape: 2-col card grid (was unstyled in the portal report — cards stacked with no gap) */
.landscape-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
/* horizontal bar chart */
.hbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hbar-row:last-child { margin-bottom: 0; }
.hbar-name { flex: 0 0 150px; font-size: 13.5px; font-weight: 600; text-align: right; }
.hbar-track { flex: 1; background: var(--soft-2); border-radius: 999px; height: 22px; overflow: hidden; }
.hbar-fill { width: var(--w, 0%); height: 100%; border-radius: 999px; }
.hbar-fill.teal { background: var(--teal); }
.hbar-fill.orange { background: var(--orange); }
.hbar-fill.red { background: var(--red); }
.hbar-fill.gray { background: #9aa5ad; }
.hbar-score { flex: 0 0 34px; font-size: 14px; font-weight: 800; text-align: right; }
/* vertical bar chart (local stacking) */
.vbar-chart { display: flex; align-items: flex-end; justify-content: center; gap: 18px; height: 220px; padding-top: 30px; }
.vbar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; flex: 1; max-width: 110px; }
.vbar-score { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.vbar { width: 100%; border-radius: 8px 8px 0 0; }
.vbar.teal { background: var(--teal); }
.vbar.gray { background: #b9c8cd; }
.vbar.orange { background: var(--orange); }
.vbar-name { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 8px; line-height: 1.35; min-height: 32px; }
.vbar-name strong { color: var(--ink); }
/* ranked fix cards */
.rank-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 16px; display: flex; gap: 20px; }
/* Collapsible fix guidance (2026-10-13, Kuang: shorten the report) */
.fix-toggle { background: none; border: none; padding: 2px 0; margin-top: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--teal, var(--teal)); cursor: pointer; }
.fix-toggle:hover { text-decoration: underline; }
.fix-toggle-caret { font-size: 12px; }
.fix-collapsible { margin-top: 8px; }
.rank-num { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.rank-card.impact-high .rank-num { background: var(--orange); }
.rank-body { flex: 1; min-width: 0; }
.rank-body h3 { font-size: 18px; margin-bottom: 4px; }
.rank-cat { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; margin-bottom: 8px; }
.rank-body .why { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.fix { background: var(--bg-soft); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 14.5px; }
.fix strong { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--teal); margin-bottom: 6px; }
.fix code, .snippet code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.snippet { position: relative; background: var(--teal-ink); color: #d9e8ee; border-radius: 8px; padding: 14px 18px; margin-top: 10px; overflow-x: auto; white-space: pre; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.snippet-copy { position: absolute; top: 8px; right: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #d9e8ee; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.snippet-copy:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
/* uplift: shared report component (app + marketing sample report) */
.uplift-banner { border-left: 4px solid var(--teal); margin-bottom: 16px; }
.uplift-badge { display: inline-block; background: #e6f2f5; color: var(--teal); font-size: 12px; font-weight: 800;
  border-radius: 20px; padding: 3px 10px; margin-left: 10px; vertical-align: middle; white-space: nowrap; }
.tier-badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 20px; padding: 3px 10px;
  margin-left: 10px; vertical-align: middle; white-space: nowrap; }
.tier-diy { background: var(--green-bg); color: var(--ok); }
.tier-wp { background: #fff4e0; color: #9a6200; }
.tier-split { background: #e8f0fe; color: #1a5fb4; }
.tier-summary { font-size: 15px; color: var(--muted); margin: 0 0 20px; }
.tier-summary strong { color: var(--ink); }
/* professional group: one compact header, no per-card tier labels */
.pro-group-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #fff8ec; border: 1px solid #f0dfb8; border-radius: var(--radius);
  padding: 14px 18px; margin: 24px 0 16px; }
.pro-group-label { font-size: 15.5px; color: var(--ink); }
.pro-group-label strong { font-weight: 800; }
.report-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.callout-note { background: #eef5f8; border: 1px solid #cfe0e8; border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: var(--ink); margin-bottom: 18px; }
.callout-note strong { color: var(--teal); }

/* ---------- GBP checklist ---------- */
.meter-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.meter-label { font-size: 14px; font-weight: 700; color: var(--teal); }
.meter-count { font-size: 14px; font-weight: 700; color: var(--ink); }
.meter-bar { height: 10px; background: var(--soft-3); border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; width: 0%; background: var(--teal); border-radius: 999px; transition: width .3s ease; }
.gbp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 24px 16px; margin-bottom: 16px; }
.gbp-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.gbp-row:last-child { border-bottom: none; }
.gbp-q { font-size: 15px; font-weight: 600; }
.gbp-q small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.yn-toggle { display: flex; border: 2px solid var(--border); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.yn-toggle button { border: none; background: var(--surface); padding: 8px 20px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--muted); }
.yn-toggle button:first-child { border-right: 2px solid var(--border); }
.yn-toggle button.on-yes { background: var(--green-bg); color: var(--green); }
.yn-toggle button.on-no { background: var(--red-bg); color: var(--red); }
.gbp-fix { display: none; background: #fff8f2; border: 1px solid #f3d9b8; border-radius: 10px; padding: 14px 18px; margin: 4px 0 12px; font-size: 14px; }
.gbp-fix.show { display: block; }
.gbp-fix strong { color: var(--orange-dark); }
.gbp-fix ol, .gbp-fix ul { margin: 8px 0 0 20px; }
.gbp-fix li { margin-bottom: 6px; }

/* ---------- NAP consistency check ---------- */
.consist-grid { display: grid; grid-template-columns: 130px 1fr 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.consist-grid .cg-head { background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px; }
.consist-grid .cg-label { background: var(--bg-soft); font-size: 14px; font-weight: 700; padding: 12px 14px; border-top: 1px solid var(--border); display: flex; align-items: center; }
.consist-grid .cg-cell { padding: 8px 10px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.consist-grid input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--ink); }
.consist-grid input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.consist-result-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.consist-result-row:last-child { border-bottom: none; }
.cr-icon { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.cr-icon svg { width: 14px; height: 14px; }
.cr-pass { background: var(--green-bg); } .cr-pass svg { stroke: var(--green); }
.cr-fail { background: var(--red-bg); } .cr-fail svg { stroke: var(--red); }
.cr-empty { background: var(--bg-soft); } .cr-empty svg { stroke: var(--muted); }
#consist-results { display: none; }
#consist-results.show { display: block; }
.consist-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- Competitor compare ---------- */
.compare-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 16px; }
.compare-note { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.compare-note strong { color: var(--orange-dark); }
.comp-add { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.comp-add input { flex: 1; min-width: 200px; border: 2px solid var(--border); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-family: inherit; }
.comp-add input:focus { outline: none; border-color: var(--teal); }
.comp-add select { border: 2px solid var(--border); border-radius: 999px; padding: 12px 16px; font-size: 14px; font-family: inherit; color: var(--muted); max-width: 220px; }
.comp-list { list-style: none; margin-bottom: 18px; }
.comp-list li { display: grid; grid-template-columns: 1fr 150px 70px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
.comp-list .comp-remove { justify-self: end; }
.comp-list li:last-child { border-bottom: none; }
.comp-list .comp-status { font-size: 13px; color: var(--muted); }
.comp-list .comp-status.scanning { color: var(--orange-dark); font-weight: 600; }
.comp-list .comp-status.done { color: var(--green); font-weight: 700; }
.comp-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }

/* ---------- Scan history ---------- */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.hist-row { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-decoration: none; color: inherit; }
.hist-row:hover { border-color: var(--teal); }
.hist-doc { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.hist-doc svg { width: 20px; height: 20px; }
.hist-score { font-size: 26px; font-weight: 800; min-width: 64px; text-align: center; }
.hist-score.hist-queued, .hist-score.hist-running { font-size: 13px; font-weight: 600; color: var(--orange-dark); }
.hist-score.hist-error { font-size: 13px; font-weight: 600; color: var(--red); }
.hist-url { flex: 1; font-size: 16px; font-weight: 600; }
.hist-date { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.hist-arrow { color: var(--teal); font-size: 20px; }

/* ---------- Settings ---------- */
.settings-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.settings-card h2 { font-size: 18px; margin-bottom: 14px; }
.settings-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
.settings-row:last-child { border-bottom: none; }
.settings-label { min-width: 140px; color: var(--muted); }
.field-label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; }
.field-input { width: 100%; max-width: 380px; border: 2px solid var(--border); border-radius: 12px; padding: 11px 16px; font-size: 15px; font-family: inherit; }
.field-input:focus { outline: none; border-color: var(--teal); }
.pw-ok { color: var(--green); font-weight: 600; font-size: 14px; margin: 10px 0; }

/* ---------- Billing & invoices ---------- */
.inv-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.inv-sub { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.inv-meta { text-align: right; display: flex; flex-direction: column; gap: 8px; }
.inv-meta span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.inv-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 20px; }
.inv-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--border); }
.inv-table td { padding: 14px 8px; border-bottom: 1px solid var(--border); }
.inv-total { display: flex; justify-content: space-between; font-size: 18px; padding: 12px 8px; }
.invoice-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; margin-top: 16px; }
@media print {
  .app-header, .report-actions, #invoice-back, .btn-link { display: none !important; }
  .invoice-card { border: none; padding: 0; }
}
.step-kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.comp-add-row { display: flex; gap: 10px; margin: 18px 0 6px; }
.comp-add-row input { flex: 1; border: 2px solid var(--border); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-family: inherit; }
.comp-add-row input:focus { outline: none; border-color: var(--teal); }
.listings-block { margin: 26px 0 6px; padding-top: 20px; border-top: 1px solid var(--border); }
.listings-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.listings-title .opt { font-weight: 500; color: var(--muted); font-size: 13px; }
.listings-sub { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.listings-block input { display: block; width: 100%; border: 2px solid var(--border); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-family: inherit; margin-bottom: 10px; }
.listings-block input:focus { outline: none; border-color: var(--teal); }
.comp-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 15px; }
.comp-item .comp-remove { font-size: 20px; text-decoration: none; line-height: 1; padding: 4px 8px; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.btn-link { background: none; border: none; color: var(--teal); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 8px 0; }
.btn-link:hover { text-decoration: underline; }
.skip-row { text-align: center; margin-top: 10px; }

/* ---------- Scan progress steps (Siftly-style) ---------- */
.pulse-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.scan-steps { list-style: none; margin: 0 0 20px; padding: 0; }
.scan-steps li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; color: var(--muted); }
.scan-steps li .st-ic { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.scan-steps li.done { color: var(--ink); }
.scan-steps li.done .st-ic { color: var(--green); }
.scan-steps li.active { color: var(--ink); font-weight: 600; }
.scan-steps li.active .st-ic { color: var(--orange-dark); }
.scan-steps li.active .st-ic .mini-spin { width: 16px; height: 16px; border: 2.5px solid var(--border); border-top-color: var(--orange-dark); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-steps li.todo .st-ic { color: var(--border); }
.scan-progress { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.scan-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal), var(--orange)); border-radius: 999px; transition: width .6s ease; }
.scan-progress-label { font-size: 13px; color: var(--muted); }

/* ---------- Local query test ---------- */
.query-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.query-row { display: flex; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.query-row:last-child { border-bottom: none; }
.query-row .q { font-weight: 700; display: block; margin-bottom: 2px; }
.query-row .a { color: var(--muted); }
.query-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.query-ic svg { width: 14px; height: 14px; }
.query-ic.bad { background: var(--red-bg); } .query-ic.bad svg { stroke: var(--red); }
.query-ic.good { background: var(--green-bg); } .query-ic.good svg { stroke: var(--green); }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1120px; margin: 0 auto; padding: 36px 24px 80px; }
.admin-wrap h1 { font-size: 30px; letter-spacing: -0.8px; margin-bottom: 6px; }
.admin-sub { color: var(--muted); margin-bottom: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.stat .v { font-size: 32px; font-weight: 800; color: var(--teal); }
.stat .l { font-size: 13px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 20px; overflow-x: auto; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.panel table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.panel th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border); }
.panel td { padding: 10px; border-bottom: 1px solid var(--bg-soft); }
.panel tr:last-child td { border-bottom: none; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.tag.ok { background: var(--green-bg); color: var(--green); }
.tag.err { background: var(--red-bg); color: var(--red); }
.tag.warn { background: var(--amber-bg); color: var(--amber); }
.delta-pos { color: var(--green); font-weight: 700; }
.delta-neg { color: var(--red); font-weight: 700; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.inline-form input[type="email"] { flex: 1 1 260px; max-width: 340px; }
.inline-form input[type="number"] { width: 110px; }
.inline-form input { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; font-family: inherit; color: var(--ink); background: var(--surface); }
.inline-form input:focus { outline: none; border-color: var(--teal); }
.inline-form .btn { padding: 12px 24px; font-size: 15px; }
.form-msg { font-size: 14px; font-weight: 600; color: var(--muted); }
.form-msg.form-ok { color: var(--green); }
.form-msg.form-err { color: var(--red); }
.admin-login-row { display: flex; align-items: center; gap: 12px; }

/* ---------- Service-unavailable / empty states ---------- */
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px 40px; text-align: center; max-width: 560px; margin: 80px auto; }
.service-card h1 { font-size: 26px; margin-bottom: 10px; }
.service-card p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Nav dropdown (Resources) ---------- */
.nav-drop { position: relative; }
.nav-drop-btn { font-size: 15px; color: var(--muted); font-weight: 500; cursor: default; white-space: nowrap; }
.nav-drop-btn:hover { color: var(--teal); }
.nav-drop-btn .caret { font-size: 11px; }
.nav-drop-menu { display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; min-width: 260px; box-shadow: 0 16px 40px rgba(30,95,123,.12); z-index: 60; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 15px; }
.nav-drop-menu a:hover { background: var(--bg-soft); }
.nav-drop-menu a strong { display: block; font-size: 15px; }
.nav-drop-menu a small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .hamburger { display: flex; }
  .header-inner, .app-header-inner { position: relative; }
  .app-header-inner { padding: 12px 16px; max-width: 100%; box-sizing: border-box; }
  .app-head-right { gap: 10px; }
  .site-nav { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: 90; background: var(--surface); flex-direction: column; align-items: stretch; padding: calc(84px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); gap: 0; overflow-y: auto; box-sizing: border-box; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--bg-soft); font-size: 18px; }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  /* Keep the hamburger (now an X) tappable above the full-screen nav overlay. */
  .nav-toggle:checked ~ .hamburger { position: relative; z-index: 95; }
  /* Lock body scroll while the full-screen mobile menu is open. */
  body:has(.nav-toggle:checked) { overflow: hidden; }
  .nav-drop { width: 100%; }
  .nav-drop-btn { display: block; padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 16px; }
  .nav-drop-menu { position: static; transform: none; display: block; box-shadow: none; border: none; border-radius: 0; padding: 0 0 0 14px; min-width: 0; }
  .nav-drop-menu a { border-bottom: 1px solid var(--bg-soft); border-radius: 0; }
  .section { padding: 52px 0; }
  .token-pill { padding: 6px 12px; font-size: 13px; }
  /* dropdown becomes an inline section on mobile */
  .nav-drop-btn { display: block; padding: 13px 0; border-bottom: 1px solid var(--bg-soft); font-size: 16px; color: var(--ink); font-weight: 700; cursor: default; }
  .nav-drop-btn .caret { display: none; }
  .nav-drop-menu { display: block; position: static; transform: none; border: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav-drop-menu a { border-bottom: 1px solid var(--bg-soft); border-radius: 0; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .landscape-grid { grid-template-columns: 1fr; }
  .rank-card { padding: 20px; gap: 14px; }
  .hbar-name { flex: 0 0 108px; font-size: 12px; }
  .vbar-chart { gap: 10px; height: 190px; }
  .vbar-name { font-size: 10px; }
  .gbp-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .consist-grid { grid-template-columns: 1fr; }
  .consist-grid .cg-head { display: none; }
  .consist-grid .cg-label { border-left: none; }
  .consist-grid .cg-cell { border-left: none; }
  .consist-grid .cg-cell::before { content: attr(data-src); display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 36px 28px; }
}

/* ---------- Person account menu (app header) ---------- */
.profile-menu { position: relative; }
.profile-toggle { display: none; }
.profile-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); color: var(--teal); cursor: pointer; transition: border-color .15s, background .15s; }
.profile-btn svg { width: 21px; height: 21px; }
.profile-btn:hover { border-color: var(--teal); background: var(--bg-soft); }
.profile-toggle:checked + .profile-btn { border-color: var(--teal); background: var(--bg-soft); }
.profile-drop { display: none; position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; min-width: 230px; box-shadow: 0 16px 40px rgba(30,95,123,.14); padding: 8px; z-index: 200; }
.profile-toggle:checked ~ .profile-drop { display: block; }
.profile-drop-email { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 14px 10px; border-bottom: 1px solid var(--bg-soft); margin-bottom: 6px; word-break: break-all; }
.profile-drop a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink); }
.profile-drop a:hover { background: var(--bg-soft); color: var(--teal); }
.profile-drop-div { border-top: 1px solid var(--bg-soft); margin: 6px 0; }
body.admin-mode .profile-menu { display: none !important; }
.admin-only { display: none !important; }
body.admin-mode .admin-only { display: block !important; }
@media (min-width: 821px) {
  .acct-link { display: none !important; }
}

/* ---------- Account area: left sidebar layout ---------- */
.acct-layout { display: flex; gap: 44px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 40px 24px 88px; align-items: flex-start; box-sizing: border-box; }
.side-nav { flex: none; width: 240px; position: sticky; top: 92px; }
.side-nav-title { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 10px; padding: 0 12px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.side-nav a svg { width: 18px; height: 18px; flex: none; }
.side-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side-nav a.active { background: var(--bg-soft); color: var(--teal); font-weight: 700; }
.acct-content { flex: 1; min-width: 0; }
.acct-content > h1 { font-size: 28px; letter-spacing: -0.6px; margin-bottom: 20px; }
@media (max-width: 820px) {
  .acct-layout { flex-direction: column; gap: 20px; padding-top: 28px; align-items: stretch; width: 100%; min-width: 0; }
  .side-nav { width: 100%; min-width: 0; position: static; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
  .side-nav-title { display: none; }
  .side-nav a { white-space: nowrap; font-size: 14px; padding: 10px 10px; flex: none; }
  .side-nav a svg { display: none; }
  /* Expanded submenus join the horizontal strip instead of widening the page:
     before this, an auto-expanded submenu pushed the layout to ~800px on a
     390px phone (flex items would not shrink below content width). */
  .side-head { white-space: nowrap; font-size: 14px; padding: 10px 10px; flex: none; width: auto; }
  .side-head > svg:first-child { display: none; }
  .side-submenu { margin: 0; padding-left: 0; border-left: none; display: flex; gap: 4px; align-items: center; }
  .side-submenu.collapsed { display: none; }
}

/* ---------- Article rails (blog + help): left sidebar nav ---------- */
.page-with-rail { display: flex; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 48px 24px 88px; align-items: flex-start; }
.rail-toggle { display: none; }
.rail-toggle-btn { display: none; }
.rail { flex: none; width: 264px; position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto; }
.rail-link { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--muted); line-height: 1.45; }
.rail-link:hover { background: var(--bg-soft); color: var(--ink); }
.rail-link.current { background: var(--bg-soft); color: var(--teal); font-weight: 700; }
.rail-group { margin-bottom: 6px; }
.rail-group:last-child { margin-bottom: 0; }
/* Collapsible categories (checkbox-hack, zero JS — same pattern as the header). */
/* Text column: category headers and article links share one clean left edge.
   The chevron lives in its own fixed 24px gutter so it never shifts the text;
   article rows get an empty gutter to match. */
.rail-group-toggle { display: none; }
.rail-cat { display: grid; grid-template-columns: 24px 1fr; align-items: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 8px 12px 8px 8px; margin-bottom: 2px; cursor: pointer; border-radius: 8px; user-select: none; }
.rail-cat:hover { color: var(--ink); background: var(--bg-soft); }
.rail-cat > span { overflow: hidden; text-overflow: ellipsis; }
.rail-chevron { width: 14px; height: 14px; justify-self: center; transition: transform .15s ease; }
.rail-group-toggle:checked ~ .rail-cat .rail-chevron { transform: rotate(90deg); }
.rail-group-toggle:checked ~ .rail-cat { color: var(--teal); }
.rail-group-items { display: none; }
.rail-group-toggle:checked ~ .rail-group-items { display: block; }
.rail-group-items .rail-link { display: grid; grid-template-columns: 24px 1fr; align-items: start; padding-left: 8px; padding-right: 12px; }
.rail-group-items .rail-link::before { content: ""; display: block; }
.rail-close { display: none; }
.rail-main { flex: 1; min-width: 0; }
/* Rail layout: the article's own top padding is redundant — .page-with-rail
   already provides it. Zero it so the rail column and article column start
   on the same baseline (rail heading aligned with the article kicker). */
.rail-main .page-hero { padding-top: 0; }
.rail-main .article-wrap { padding-top: 0; }
/* rail filter: progressive enhancement — full list renders with zero JS */
.rail-top { position: sticky; top: 0; background: var(--surface); z-index: 2; padding: 2px 0 10px; }
.rail-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.rail-search:focus-within { border-color: var(--teal); }
.rail-search svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.rail-filter { flex: 1; min-width: 0; border: none; outline: none; font-size: 14px; font-family: inherit; color: var(--ink); background: none; padding: 0; }
.rail-filter::placeholder { color: var(--muted); }
.rail-clear { border: none; background: none; font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.rail-clear:hover { color: var(--ink); }
.rail-empty { padding: 12px; font-size: 14px; color: var(--muted); }
.rail [hidden] { display: none !important; }
@media (max-width: 820px) {
  .page-with-rail { flex-direction: column; gap: 0; padding: 24px 20px 64px; }
  .rail-toggle-btn { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 10px 16px 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 14.5px; font-weight: 700; color: var(--teal); cursor: pointer; }
  .rail-toggle-btn::after { content: "Articles"; }
  .rail-toggle-btn span { width: 20px; }
  .rail { display: none; position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 400; background: var(--surface); border-right: 1px solid var(--border); box-shadow: 24px 0 64px rgba(15,44,58,.18); padding: 16px 16px 32px; max-height: none; }
  .rail-toggle:checked ~ .rail { display: block; }
  .rail-close { display: block; text-align: right; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px 6px; }
}

/* ---------- Profile cards (Cloudflare-style) ---------- */
.pf-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px 24px; margin-bottom: 20px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--bg-soft); }
.pf-row:last-child { border-bottom: none; }
.pf-label { font-size: 16px; font-weight: 700; }
.pf-value { color: var(--muted); font-size: 14.5px; margin-top: 2px; word-break: break-all; }
.pf-hint { color: var(--muted); font-size: 14px; margin-top: 2px; }
.btn-sm { padding: 10px 22px; font-size: 14.5px; flex: none; }

/* ---------- Modals ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,44,58,.52); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 500; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 460px; padding: 28px; box-shadow: 0 24px 64px rgba(0,0,0,.25); max-height: calc(100vh - 60px); overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h2 { font-size: 21px; letter-spacing: -0.4px; margin: 0; }
.modal-x { background: none; border: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.modal-x:hover { color: var(--ink); }
.modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.modal-sub strong { color: var(--ink); }
.modal .field-input { max-width: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal-actions .btn { padding: 11px 28px; font-size: 15px; }
.req { color: var(--red); }
.location-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.location-table th { padding: 10px 16px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); border-bottom: 2px solid var(--border); }
.location-table th:first-child { width: 42%; }
.location-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; text-align: left; word-wrap: break-word; }
.location-table tbody tr:last-child td { border-bottom: none; }
.location-table tbody tr:hover td { background: var(--bg-soft); }
.location-table td a { color: var(--teal); font-weight: 600; text-decoration: none; }
.location-table td a:hover { text-decoration: underline; }
.page-matrix { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.page-matrix th, .page-matrix td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: center; }
.page-matrix th:first-child, .page-matrix td:first-child { text-align: left; }
.page-matrix thead th { font-size: 12px; color: var(--muted); border-bottom: 2px solid var(--border); }
.page-matrix thead th a { color: var(--teal); font-weight: 700; text-decoration: none; }
.page-matrix tbody tr:last-child td { border-bottom: none; }
.page-matrix tbody tr:hover td { background: var(--bg-soft); }
.mx-check { display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; }
.platform-steps { margin: 12px 0 0; padding: 0; }
.platform-steps dt { font-weight: 700; color: var(--teal); font-size: 13.5px; margin-top: 10px; }
.platform-steps dt:first-child { margin-top: 0; }
.platform-steps dd { margin: 2px 0 0; padding: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.fix p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }

/* ===== merged QA batch qa-css-a.css ===== */
/* ===== QA batch A — CrawlReady wizard fixes (Items 1–4) =====
   Merge AFTER components/shared.css so these rules win ties. */

/* --- ITEM 1: competitor rows — one clean baseline for URL text, Edit, and × --- */
ul.comp-list li.comp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  line-height: 1.45;
}
ul.comp-list li.comp-item .comp-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
ul.comp-list li.comp-item .comp-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
ul.comp-list li.comp-item .comp-edit {
  background: none;
  border: none;
  color: var(--teal);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  padding: 6px 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
ul.comp-list li.comp-item .comp-edit:hover { color: var(--teal-dark); }
ul.comp-list li.comp-item .comp-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  text-decoration: none;
}
ul.comp-list li.comp-item .comp-remove:hover { color: var(--ink); }

/* --- ITEM 2: wizard nav — Back left, Skip + primary grouped right --- */
.wizard .wizard-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 480px) {
  .wizard .wizard-nav { flex-wrap: wrap; gap: 12px; }
}

/* --- ITEM 3: listings labels + ~20px spacing between fields --- */
.listings-block .listing-field { margin-bottom: 20px; }
.listings-block .listing-field:last-child { margin-bottom: 0; }
.listings-block .listing-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
/* beat .listings-block input's 10px bottom margin in shared.css */
.listings-block .listing-field input { margin-bottom: 0; }

/* --- ITEM 4: app scan steps match marketing free-preview .fs-step style --- */
.fs-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--muted);
}
.fs-step .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.fs-step.active { color: var(--ink); font-weight: 600; }
.fs-step.active .dot { border-color: var(--orange); }
.fs-step.active .dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  animation: fs-pulse 1s infinite;
}
.fs-step.done { color: var(--ink); }
.fs-step.done .dot { border-color: var(--teal); background: var(--teal); color: #fff; }
.fs-step.done .dot::after { content: "✓"; }
@keyframes fs-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ===== merged QA batch qa-css-b.css ===== */
/* QA batch B CSS — report page fixes (items 5-8). Merge into shared.css. */

/* ITEM 5: "Where we found it" line matches the description (.why) size (15px),
   never smaller. Replaces the removed inline font-size:13px style. */
.rank-body .finding-location {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 8px;
}

/* ITEM 6: report bottom buttons — Rescan left, Download right. */
#report-root .report-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
/* Report top bar (2026-10-13, Kuang): the action buttons sit at the right
   of the logo/masthead section, as one tight group — not spread across
   their own row. */
.report-topbar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.report-topbar .wl-masthead {
  flex: 1;
  margin-bottom: 0;
}
#report-root .report-topbar .report-actions {
  justify-content: flex-end;
  margin-top: 0;
  margin-left: auto;
  padding-top: 4px;
  flex-wrap: nowrap;
}
#report-root .wl-masthead .report-actions {
  justify-content: flex-end;
  align-items: center;
  margin-top: 0;
  margin-left: auto;
  flex-wrap: nowrap;
}
.report-topbar { margin-bottom: 14px; }
.rescan-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rescan-days {
  font-size: 13.5px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ITEM 7: monitoring upsell above the bottom buttons. */
.monitor-upsell {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0 0;
}
.monitor-upsell h2 {
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.monitor-upsell p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 10px;
  max-width: 640px;
}
.monitor-upsell .btn {
  margin-top: 8px;
}

/* ITEM 8: "Developer" — two side-by-side cards. */
.pro-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pro-tool-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.pro-tool-card:hover {
  border-color: var(--teal);
}
.pro-tool-card h3 {
  font-size: 16.5px;
  margin: 0 0 6px;
  color: var(--teal);
}
.pro-tool-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 640px) {
  .pro-tools-grid {
    grid-template-columns: 1fr;
  }
  .report-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rescan-wrap {
    align-items: stretch;
  }
}

/* ===== merged QA batch qa-css-c.css ===== */
/* qa-css-c.css — NEW styles for billing/profile/monitoring (batch C, 2026-10-06).
   To be merged by parent into the build. Do NOT duplicate these in shared.css/app.css. */

/* ---------- Item 12: purchase history table (softer ink) ---------- */
.purch-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.purch-table thead th {
  padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); text-align: left; border-bottom: 1px solid var(--border);
}
.purch-table tbody td {
  padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted);
}
.purch-table tbody td.amt { color: var(--ink); font-weight: 600; }
.purch-table .inv-dl {
  color: var(--teal); display: inline-flex; padding: 6px; border-radius: 8px; line-height: 0;
}
.purch-table .inv-dl:hover { background: var(--bg-soft); color: var(--teal-dark); }
.purch-table .inv-dl svg { display: block; }

/* ---------- Item 13: invoice bill-to / notes / footer ---------- */
.inv-billto { margin: 0 0 26px; font-size: 14.5px; }
.inv-billto .bill-k {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 4px;
}
.inv-billto strong { font-size: 16px; }
.inv-billto .bill-addr { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.inv-notes {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--muted);
}
.inv-notes strong {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 6px;
}
.inv-notes p { margin: 4px 0; }
.inv-foot {
  margin-top: 30px; padding-top: 14px; border-top: 2px solid var(--border);
  font-size: 12.5px; color: var(--muted); text-align: center;
}

/* ---------- Item 14: download-all print layout ---------- */
.inv-print-item { margin-bottom: 24px; }
@media print {
  .inv-print-item { break-before: page; }
  .inv-print-item:first-child { break-before: auto; }
  #invoices-print .report-actions { display: none !important; }
}

/* ---------- Item 15: pill file picker (button inside the input) ---------- */
.file-pill {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--border); border-radius: 999px; background: var(--surface);
  padding: 8px 8px 8px 20px; max-width: 440px;
}
.file-pill:focus-within { border-color: var(--teal); }
.file-pill .file-name {
  flex: 1; min-width: 0; font-size: 14.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-pill .file-name.has-file { color: var(--ink); }
.file-btn {
  flex: none; display: inline-block; border: none; cursor: pointer;
  background: var(--teal); color: #fff; font-weight: 600; font-size: 14px; font-family: inherit;
  padding: 10px 22px; border-radius: 999px;
}
.file-btn:hover { background: var(--teal-dark); }

/* ---------- Items 10 + 15: logo preview container + corner x ---------- */
.logo-wrap { position: relative; display: inline-block; }
.logo-wrap img {
  display: block; max-height: 64px; max-width: 200px;
  border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: var(--surface);
}
.logo-x {
  position: absolute; top: -10px; right: -10px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-size: 15px; line-height: 1; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.logo-x:hover { color: var(--red); border-color: var(--red); }

/* ---------- Item 16: active monitoring ---------- */
.mon-sites { list-style: none; margin: 12px 0 0; padding: 0; }
.mon-sites li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--bg-soft); font-size: 14.5px;
}
.mon-sites li:last-child { border-bottom: none; }
.mon-sites .mon-url {
  font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mon-remove {
  flex: none; border: none; background: none; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.mon-remove:hover { color: var(--red); background: var(--bg-soft); }
.mon-add-row { display: flex; gap: 10px; margin-top: 14px; }
.mon-add-row input {
  flex: 1; min-width: 0; border: 2px solid var(--border); border-radius: 999px;
  padding: 11px 18px; font-size: 14.5px; font-family: inherit; background: var(--surface);
}
.mon-add-row input:focus { outline: none; border-color: var(--teal); }
.mon-empty { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* ===== merged QA batch qa-css-d.css ===== */
/* =====================================================================
   qa-css-d.css — QA batch D: new CSS for the CrawlReady marketing + help sites.
   Merge into the site stylesheets. Uses the site variables:
   --teal var(--teal) · --teal-ink #0f3c50 · --orange var(--orange) · --orange-dark #e56f00
   --ink #1a2b33 · --muted #5a6f78 · --bg-soft #f4f7f8 · --border #dde5e8
   --radius 12px · --green var(--green) · --amber var(--amber)
   ===================================================================== */

/* ---------------- ITEM 9 — sample report: blurred teaser ---------------- */
.report-teaser{position:relative;margin:0 0 28px;}
.teaser-blurred{filter:blur(6px);-webkit-filter:blur(6px);
  user-select:none;-webkit-user-select:none;pointer-events:none;}
.teaser-lock{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  padding:24px;border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.68) 55%,rgba(255,255,255,.94) 100%);}
.teaser-lock-card{background: var(--surface);border:1px solid var(--border);border-radius:16px;
  box-shadow:0 16px 48px rgba(15,60,80,.16);padding:34px 38px;text-align:center;max-width:460px;}
.teaser-lock-ic{width:54px;height:54px;border-radius:50%;background:var(--bg-soft);color:var(--teal);
  display:flex;align-items:center;justify-content:center;margin:0 auto 16px;}
.teaser-lock-ic svg{width:25px;height:25px;}
.teaser-lock-card h3{font-size:21px;letter-spacing:-.3px;margin:0 0 6px;}
.teaser-lock-card p{color:var(--muted);font-size:15.5px;margin:0 0 20px;}
.teaser-lock-cta{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
@media (max-width:560px){
  .teaser-lock-card{padding:26px 22px;}
}

/* Sample report bits that were previously unstyled (QA fix) */
.est-line{margin-top:14px;font-size:14.5px;color:var(--muted);}
.est-line strong{color:var(--ink);}
.mx-chip{display:inline-block;font-size:12px;font-weight:700;padding:3px 12px;border-radius:999px;white-space:nowrap;}
.mx-chip.mx-ok{background:var(--green-bg);color:var(--ok);}
.mx-chip.mx-bad{background:var(--red-bg);color:#a93226;}

/* ---------------- ITEM 11 — blog graphics ---------------- */

/* Pull quote */
.pull-quote{border-left:4px solid var(--orange);margin:30px 0;padding:8px 0 8px 24px;
  font-size:19px;line-height:1.55;font-weight:600;color:var(--ink);}
.pull-quote cite{display:block;margin-top:10px;font-size:14px;font-style:normal;color:var(--muted);font-weight:400;}

/* Stat / key-takeaway callout */
.stat-callout{background:var(--bg-soft);border:1px solid var(--border);border-radius:var(--radius);
  padding:22px 26px;margin:30px 0;display:flex;gap:20px;align-items:center;}
.stat-callout .stat-num{font-size:42px;font-weight:800;color:var(--teal);line-height:1;flex:none;white-space:nowrap;}
.stat-callout .stat-txt{font-size:15.5px;color:var(--muted);line-height:1.55;}
.stat-callout .stat-txt strong{color:var(--ink);}
@media (max-width:560px){
  .stat-callout{flex-direction:column;align-items:flex-start;gap:8px;}
}

/* Generic graphic wrapper + caption */
.graphic-card{background: var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:28px;margin:30px 0;}
.graphic-card h4{font-size:15px;margin:0 0 18px;text-align:center;color:var(--ink);}
.graphic-cap{font-size:13.5px;color:var(--muted);margin:14px 0 0;text-align:center;}

/* 3-step diagram (Crawl → Parse → Cite, etc.) */
.steps-diagram{display:flex;align-items:stretch;justify-content:center;}
.step-node{flex:1 1 0;max-width:210px;text-align:center;padding:0 6px;}
.step-node .dot{width:46px;height:46px;border-radius:50%;background:var(--teal);color:#fff;
  font-weight:800;font-size:19px;display:flex;align-items:center;justify-content:center;margin:0 auto 10px;}
.step-node .t{font-weight:700;font-size:15px;margin-bottom:4px;}
.step-node .d{font-size:13px;color:var(--muted);line-height:1.45;}
.step-link{flex:0 0 44px;align-self:center;color:#b9c8cd;display:flex;justify-content:center;}
.step-link svg{width:28px;height:28px;}
@media (max-width:560px){
  .steps-diagram{flex-direction:column;gap:18px;}
  .step-node{max-width:none;}
  .step-link{transform:rotate(90deg);align-self:center;}
}

/* Before / after bar pair */
.ba-row{margin:0 0 16px;}
.ba-row:last-child{margin-bottom:0;}
.ba-top{display:flex;justify-content:space-between;align-items:baseline;font-size:13.5px;font-weight:600;margin-bottom:6px;}
.ba-top .ba-val{color:var(--teal);font-weight:800;}
.ba-track{background:var(--soft-2);border-radius:999px;height:26px;overflow:hidden;}
.ba-fill{width:var(--w,0%);height:100%;border-radius:999px;display:flex;align-items:center;justify-content:flex-end;
  padding-right:12px;color:#fff;font-size:12.5px;font-weight:700;min-width:52px;box-sizing:border-box;}
.ba-fill.before{background:#9aa5ad;}
.ba-fill.after{background:var(--teal);}

/* Mini score ring (blog-sized; independent of the app's .score-ring) */
.mini-ring{width:124px;height:124px;border-radius:50%;margin:0 auto;display:flex;align-items:center;justify-content:center;
  background:conic-gradient(var(--ringc,var(--orange)) 0% var(--pct,0%),var(--soft-3) var(--pct,0%) 100%);}
.mini-ring .inner{width:94px;height:94px;border-radius:50%;background: var(--surface);
  display:flex;flex-direction:column;align-items:center;justify-content:center;}
.mini-ring .big{font-size:32px;font-weight:800;line-height:1;}
.mini-ring .cap{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:1px;margin-top:2px;}
.ring-row{display:flex;gap:28px;justify-content:center;flex-wrap:wrap;align-items:flex-start;}
.ring-item{text-align:center;max-width:170px;}
.ring-item .rl{font-weight:700;font-size:14px;margin-top:10px;}
.ring-item .rd{font-size:12.5px;color:var(--muted);margin-top:2px;}

/* "Label maker" diagram (facts → labels) */
.label-diagram{display:flex;flex-direction:column;gap:12px;max-width:460px;margin:0 auto;text-align:left;}
.label-row{display:flex;align-items:center;gap:12px;background:var(--bg-soft);
  border:1px solid var(--border);border-radius:10px;padding:12px 16px;font-size:15px;}
.label-row .fact{flex:1;font-weight:600;}
.label-row .tag{flex:none;background:var(--teal);color:#fff;font-size:12px;font-weight:700;
  padding:4px 12px;border-radius:999px;white-space:nowrap;}

/* Crawler allow / block mini table */
.crawler-table{width:100%;border-collapse:collapse;font-size:14px;text-align:left;}
.crawler-table th{font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);
  padding:8px 12px;border-bottom:2px solid var(--border);text-align:left;}
.crawler-table td{padding:9px 12px;border-bottom:1px solid var(--border);}
.crawler-table tr:last-child td{border-bottom:none;}
.pill{display:inline-block;font-size:12px;font-weight:700;padding:3px 12px;border-radius:999px;white-space:nowrap;}
.pill.allow{background:var(--green-bg);color:var(--ok);}
.pill.block{background:var(--red-bg);color:#a93226;}
.pill.neutral{background:var(--soft-2);color:var(--muted);}

/* llms.txt structure diagram */
.doc-tree{max-width:440px;margin:0 auto;text-align:left;}
.doc-node{border:1px solid var(--border);border-radius:10px;padding:12px 16px;margin-bottom:10px;
  background: var(--surface);font-size:14.5px;}
.doc-node:last-child{margin-bottom:0;}
.doc-node .k{font-size:11.5px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);
  display:block;margin-bottom:2px;font-weight:700;}
.doc-node.root{background:var(--teal-ink);border-color:var(--teal-ink);color:#fff;font-weight:700;}
.doc-node.root .k{color:#a9c3cd;}
.doc-node.child{margin-left:30px;position:relative;}
.doc-node.child::before{content:"";position:absolute;left:-20px;top:50%;width:20px;height:2px;background:var(--border);}

/* Two-doors diagram (robots.txt vs server) */
.doors{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:580px;margin:0 auto;}
@media (max-width:560px){.doors{grid-template-columns:1fr;}}
.door{background: var(--surface);border:2px solid var(--border);border-radius:var(--radius);padding:22px 18px;text-align:center;}
.door.bad{border-color:var(--red);}
.door .door-ic{width:44px;height:44px;margin:0 auto 12px;color:var(--teal);}
.door.bad .door-ic{color:var(--red);}
.door .door-ic svg{width:100%;height:100%;}
.door .door-t{font-weight:800;font-size:15.5px;margin-bottom:6px;}
.door .door-d{font-size:13.5px;color:var(--muted);line-height:1.5;}
.door .door-d code{font-size:12.5px;}

/* Monitoring submenu */
.side-submenu { margin: 2px 0 4px 30px; padding-left: 12px; border-left: 2px solid var(--border); }
.side-submenu.collapsed { display: none; }
/* Section headers work like the help rail: the whole row (icon, text,
   chevron) is one toggle button, styled to match the nav links. */
.side-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: none; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); text-align: left; cursor: pointer; }
.side-head > svg:first-child { width: 18px; height: 18px; flex: none; }
.side-head:hover { background: var(--bg-soft); color: var(--ink); }
.side-head.active { background: var(--bg-soft); color: var(--teal); font-weight: 700; }
.side-head .side-chev { width: 16px; height: 16px; flex: none; margin-left: auto; transition: transform .15s ease; }
.side-toggle[aria-expanded="true"] .side-chev { transform: rotate(180deg); }
.side-sub-link { display: block !important; padding: 8px 12px !important; font-size: 13.5px !important; }

/* ---------- Utilities (2026-10-14: inline styles moved to the sheet) ----------
   Single-purpose classes replacing the most common style="..." patterns.
   New markup uses these, never inline styles. */
.u-muted { color: var(--muted); }
.u-sub { font-weight: 400; color: var(--muted); }
.u-teal { color: var(--teal); }
.u-teal-b { color: var(--teal); font-weight: 700; }
.u-teal-6 { color: var(--teal); font-weight: 600; }
.u-center { text-align: center; }
.u-right { text-align: right; }
.u-ox { overflow-x: auto; }
.u-w100 { width: 100%; }
.u-soft { background: var(--bg-soft); }
.u-mb-2 { margin-bottom: 2px; }
.u-mb-6 { margin-bottom: 6px; }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-14 { margin-bottom: 14px; }
.u-mb-16 { margin-bottom: 16px; }
.u-mb-24 { margin-bottom: 24px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-28 { margin-top: 28px; }
.u-mt-48 { margin-top: 48px; }
.u-pb-12 { padding-bottom: 12px; }
.u-pt-28 { padding-top: 28px; }
.u-w760 { max-width: 760px; }
.u-w860 { max-width: 860px; }
.u-lead-sm { font-size: 12px; margin-bottom: 2px; }
.u-h3-reset { font-size: 16px; margin: 0 0 12px; }
.u-center-col { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-md { padding: 8px 18px; font-size: 14px; }
.btn-mini { padding: 6px 14px; font-size: 13px; }
.btn-mini2 { padding: 7px 14px; font-size: 13px; }
.input-plain { width: 100%; padding: 10px; font-size: 14px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; }
.input-lg { width: 100%; padding: 12px 14px; font-size: 15px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; background: var(--surface); color: var(--ink); }
.u-mt-3 { margin-top: 3px; }
.u-mt-10 { margin-top: 10px; }
.u-mt-12 { margin-top: 12px; }
.u-mb-10 { margin-bottom: 10px; }
.u-pb-16 { padding: 0 0 16px; }
.u-pt-0 { padding-top: 0; }
.u-upper { text-transform: uppercase; }
.u-pre { margin: 8px 0 0; white-space: pre-wrap; font-size: 12.5px; max-height: 200px; overflow-y: auto; }
.u-pre-sm { margin: 8px 0 0; font-size: 13px; }
.u-check { margin-top: 3px; accent-color: var(--teal); }
.u-flex240 { flex: 1; min-width: 240px; }
.u-flex1 { flex: 1; }
.u-align-start { align-items: flex-start; }
.u-stack { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.u-check-row { display: flex; gap: 8px; align-items: center; font-size: 14.5px; cursor: pointer; }
.u-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.u-m-4-10 { margin: 4px 0 10px; }
.u-mt-18 { margin-top: 18px; }
.u-mt-22 { margin-top: 22px; }
.u-mt-32 { margin-top: 32px; }
.u-mb-8 { margin-bottom: 8px; }
.u-mb-18 { margin-bottom: 18px; }
.u-fs14 { font-size: 14px; }
.u-fs145 { font-size: 14.5px; }
.u-fs22 { font-size: 22px; }
.u-fs15 { font-size: 15px; }
.u-ink { color: var(--ink); }
.u-muted-145 { color: var(--muted); font-size: 14.5px; }
.u-note-13 { margin-top: 10px; font-size: 13px; color: var(--muted); }
.u-note-14m { margin-top: 18px; font-size: 14px; color: var(--muted); }
.u-note-666 { font-size: 12px; color: #666; margin: 6px 0 0; }
.u-hint-lg { font-size: 13.5px; color: var(--muted); }
.u-label-b { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.u-label-b2 { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.u-flex-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.u-cb { width: 16px; height: 16px; }
.u-block { display: block; }
.u-h2-18 { font-size: 18px; margin: 0 0 16px; }
.u-h2-22 { font-size: 22px; margin-bottom: 6px; }
.u-flex-between { display: flex; justify-content: space-between; }
.u-flex-between-c { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.u-m-0 { margin: 0; }
.u-m-40-6 { margin: 40px 0 6px; }
.u-flush { padding: 0; overflow: hidden; }
.u-btn-pad { padding: 11px 26px; }
.u-msg { font-size: 13.5px; margin-top: 8px; }
.u-msg-14 { margin-top: 10px; font-size: 14px; }
.u-note-13m { font-size: 13px; color: var(--muted); margin-top: 6px; }
.u-note-14 { margin-top: 8px; font-size: 14px; }
.u-tos { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: 14px; color: var(--ink-2); }
.u-tos2 { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); }
.st-err { color: var(--red); }
.st-ok2 { color: var(--green); }
.u-verify { max-width: 480px; margin: 80px auto; padding: 0 20px; text-align: center; }
.btn-md2 { padding: 9px 20px; font-size: 14px; }
.u-mb-0 { margin-bottom: 0; }
.u-pf-hint { margin: 6px 0 4px; }
.u-grid2b { display: grid; grid-template-columns: 1fr 130px; gap: 12px; max-width: 520px; }
.u-ra-a { margin: 0 0 20px; justify-content: flex-start; }
.u-ra-b { margin-top: 20px; }
.u-co-row { padding-bottom: 0; justify-content: center; }
.u-pt-24 { padding-top: 24px; }
.u-pt-8 { padding-top: 8px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-24 { margin-top: 24px; }
.u-w680 { max-width: 680px; }
.u-w720 { max-width: 720px; }
.u-w1100 { max-width: 1100px; margin-left: auto; margin-right: auto; }
.u-foot-note { text-align: center; font-size: 14px; color: #666; margin: 8px 0 0; }
.u-left-reset { text-align: left; margin-left: 0; margin-right: 0; }
.u-jc-start { justify-content: flex-start; }
.u-lead-17 { font-size: 17px; color: var(--muted); line-height: 1.65; }
.u-p15a { font-size: 15px; margin: 8px 0; }
.u-p15b { font-size: 15px; margin: 12px 0 0; }
.u-anchor-soft { background: var(--bg-soft); scroll-margin-top: 80px; }
.u-soft-pt { background: var(--bg-soft); padding-top: 56px; }
/* Text-color utilities (blog/content pages, 2026-10-14 cleanup) */
.u-c-orange { color: var(--orange); }
.u-c-teal { color: var(--teal); }

.blog-fig { width: 100%; height: auto; background: var(--surface); border-radius: 12px; padding: 16px; box-sizing: border-box; }
.u-c-muted { color: var(--muted); }
.u-c-ok { color: #1e7e34; }
.cat-strip .cat-score { color: var(--c); }

/* ---------- Theme: dark (Kuang 2026-10-14) ----------
   Light is the default. Dark applies only when the user picks it with
   the header toggle (data-theme="dark" on <html>, persisted in
   localStorage 'ui_theme'; set pre-paint by the build-injected init
   script). No OS auto-switching. Print always renders light. The dark
   palette stays in the brand family: deep teal-ink surfaces, brighter
   teal for text, the same orange. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --teal: #4aa8cc;
  --teal-dark: #2e7ea6;
  --orange: #ff7e00;
  --orange-dark: #ffa040;
  --ink: #e9f1f3;
  --muted: #9db4bc;
  --bg: #0b181e;
  --bg-soft: #10222a;
  --bg-sage: #0f2420;
  --border: #22414d;
  --red: #ff9a8a;
  --red-bg: #3a1e1a;
  --amber: #e3ac55;
  --amber-bg: #33290f;
  --green: #4cc38a;
  --green-bg: #11301f;
  --surface: #0f2027;
  --surface-2: #12262e;
  --ink-2: #c2d3d9;
  --ink-3: #d9e5e9;
  --doc-ink: #e9f1f3;
  --muted-2: #87a0a8;
  --line: #22414d;
  --line-2: #1b333d;
  --ok: #4cc38a;
  --ok-dark: #8fe0b0;
  --ok-bg: #11301f;
  --err-bg: #3a1e1a;
  --err-line: #6e352c;
  --warn-bg: #2f2a0e;
  --warn-line: #6b5d1e;
  --teal-bg: #10303d;
  --teal-2: #2ea89b;
  --soft-2: #12262e;
  --soft-3: #16303a;
}
/* Theme toggle (app header): moon in light, sun in dark. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: none; border: 1px solid transparent; cursor: pointer; color: var(--muted);
}
.theme-toggle:hover { color: var(--teal); background: var(--bg-soft); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
/* Dark overrides for shared rules that hardcode light tints (their text
   uses var(--ink), which flips light in dark — Kuang's report screenshot,
   2026-10-14: the "For your web person" bar was unreadable). */
:root[data-theme="dark"] .pro-group-header { background: var(--surface-2); border-color: #5c4d1c; }
:root[data-theme="dark"] .callout-note { background: var(--teal-bg); border-color: var(--border); }
:root[data-theme="dark"] .gbp-fix { background: var(--surface-2); border-color: #5c4d1c; }
:root[data-theme="dark"] .uplift-badge { background: var(--teal-bg); }
:root[data-theme="dark"] .tier-wp { background: var(--surface-2); color: var(--amber); }
:root[data-theme="dark"] .tier-split { background: var(--teal-bg); color: #7cc4e8; }
:root[data-theme="dark"] .teaser-lock { background: linear-gradient(180deg, rgba(11,24,30,.08) 0%, rgba(11,24,30,.68) 55%, rgba(11,24,30,.94) 100%); }
:root[data-theme="dark"] .prose code, :root[data-theme="dark"] .article-body code { color: #7cc4e8; }
@media print {
  :root[data-theme="dark"] {
    color-scheme: light;
    --bg: #ffffff; --surface: #ffffff; --surface-2: #fbfdff;
    --ink: #1a2b33; --ink-2: #3a4a52; --ink-3: #24333b; --doc-ink: #17211f;
    --muted: #5a6f78; --muted-2: #71828c; --border: #dde5e8;
    --line: #dde6ea; --line-2: #e3ebee; --bg-soft: #f4f7f8; --bg-sage: #eef3f1;
  }
}

/* Blog editorial package (2026-10-15): takeaways box, data note, tables */
.takeaways { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 22px 0; }
.takeaways h2 { font-size: 17px; margin: 0 0 8px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { margin: 5px 0; line-height: 1.55; }
.about-data { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 28px; }
.related-reading { font-size: 14.5px; margin-top: 14px; }
.prose table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }

.sources { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 14px; }
.sources h2 { font-size: 16px; margin: 0 0 8px; }
.sources ul { margin: 0; padding-left: 20px; }
.sources li { margin: 4px 0; font-size: 14px; }

/* === app property styles === */
/* CrawlReady app + admin site-specific styles.
   Shared system (tokens, app header, buttons, report modules, auth, admin
   panels) comes from components/shared.css, prepended at build time. */

body { background: var(--bg-soft); }

/* The `hidden` attribute must win over display:* rules (e.g. .mon-plan's
   display:flex) or toggled sections stay visible. */
[hidden] { display: none !important; }

/* wizard */
.wizard { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; }
.wizard h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -1px; text-align: left; margin-bottom: 10px; }
.wizard .sub { text-align: left; color: var(--muted); margin-bottom: 32px; }
.url-row { display: flex; border: 2px solid var(--border); border-radius: 999px; background: var(--surface); overflow: hidden; }
.url-row:focus-within { border-color: var(--teal); }
.url-row input { flex: 1; border: none; outline: none; padding: 16px 24px; font-size: 16px; min-width: 0; background: transparent; font-family: inherit; }
.url-row button { border: none; background: var(--orange); color: #fff; font-weight: 600; font-size: 16px; padding: 16px 34px; cursor: pointer; font-family: inherit; }
.url-row button:hover { background: var(--orange-dark); }
.url-row button:disabled { opacity: .55; cursor: not-allowed; }
.url-hint { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.url-error { display: none; text-align: center; color: var(--red); font-size: 14.5px; margin-top: 12px; }

/* progress */
.progress-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; text-align: center; }
.progress-card .spin { width: 46px; height: 46px; border: 4px solid var(--border); border-top-color: var(--orange); border-radius: 50%; margin: 0 auto 20px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-card p { color: var(--muted); }
.checks-line { margin-top: 18px; font-size: 14px; color: var(--teal); font-weight: 600; min-height: 22px; }

/* paywall */
.paywall-card { background: var(--surface); border: 2px solid var(--orange); border-radius: 16px; padding: 40px; text-align: center; }
.paywall-card h2 { font-size: 24px; margin-bottom: 8px; }
.paywall-card p { color: var(--muted); margin-bottom: 24px; }

/* recent scans */
.recent-block { margin-top: 48px; }
.recent-block h2 { font-size: 20px; text-align: left; margin-bottom: 4px; }
.recent-block p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.recent-list { list-style: none; }
.recent-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.recent-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14.5px; }
.recent-list .r-url { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list .r-meta { font-size: 12.5px; color: var(--muted); flex: none; }

/* tokens page */
.tokens-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 40px; max-width: 720px; margin: 0 auto; text-align: center; }
.tokens-card .big { font-size: 56px; font-weight: 800; color: var(--teal); }
.pack-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.pack { border: 2px solid var(--border); border-radius: 12px; padding: 22px 14px; }
.pack .t { font-weight: 700; color: var(--teal); }
.pack .p { font-size: 26px; font-weight: 800; margin: 6px 0 12px; }
.pack-zone { min-height: 212px; }
@media (max-width: 720px) { .pack-zone { min-height: 0; } }

@media (max-width: 720px) {
  .pack-row { grid-template-columns: 1fr; }
  .url-row { flex-direction: column; border-radius: 16px; }
  .url-row input { border-radius: 16px 16px 0 0; }
  .url-row button { border-radius: 0 0 14px 14px; }
}

/* two-section report layout */
.rep-section { margin-bottom: 8px; }
.rep-section-head { display: flex; gap: 14px; align-items: flex-start; margin: 36px 0 20px; }
.rep-section-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rep-section-head h2 { font-size: 24px; margin: 0 0 4px; }
.rep-section-head p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* platform note + estimated score in hero */
.platform-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.est-line { font-size: 15px; margin-top: 6px; }

/* crawler matrix chips */
.mx-chip { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 20px; padding: 3px 12px; }
.mx-ok { background: #e3f2e8; color: var(--green); }
.mx-bad { background: #fbe3e3; color: var(--red); }
.mx-warn { background: #fdf0dd; color: var(--amber); }
.mx-mut { background: #eef1f3; color: var(--muted); }

/* rescan policy line */
.rescan-policy { font-size: 13px; color: var(--muted); text-align: center; width: 100%; margin: 8px 0 0; }

@media (max-width: 720px) {
  .rep-section-head h2 { font-size: 20px; }
}

/* agency white-label */
.wl-masthead { display: flex; align-items: center; gap: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin-bottom: 14px; }
@media print {
  .wl-masthead { break-inside: avoid; }
}

/* checkout */
.test-banner { background: #fff8e6; border: 2px solid #e8a13c; color: #7a4d0f; border-radius: 12px; padding: 14px 18px; font-size: 14.5px; margin-bottom: 20px; }
.co-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 28px; padding: 0; }
.co-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.co-steps li span { width: 26px; height: 26px; border-radius: 50%; background: var(--border); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.co-steps li.on { color: var(--ink); }
.co-steps li.on span { background: var(--teal); color: #fff; }
.co-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.co-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px 24px 24px; margin-bottom: 20px; }
.co-card h2 { font-size: 18px; margin: 16px 0 4px; }
.co-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-row2 .field-input { max-width: none; }
.co-card .field-input { max-width: none; }
.co-hint { font-size: 13px; color: var(--muted); margin-top: 14px; }
.field-err { color: var(--red, var(--red)); font-size: 13.5px; margin-top: 6px; }
.field-err.ok { color: #2e7d6f; }
.co-coupon-toggle { background: none; border: none; font: inherit; font-weight: 700; color: var(--teal); cursor: pointer; padding: 18px 0; width: 100%; text-align: left; }
.co-coupon-row { display: flex; gap: 10px; padding-bottom: 6px; }
.co-coupon-row .field-input { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.co-error { color: var(--red, var(--red)); font-size: 14.5px; font-weight: 600; margin: 4px 0 12px; }
.co-cta { width: 100%; font-size: 17px; padding: 16px; }
.co-secure { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.co-summary { position: sticky; top: 24px; }
.co-sum-mobile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.co-sum-mobile summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.co-sum-mobile summary::-webkit-details-marker { display: none; }
.co-sum-body { padding: 0 20px 20px; border-top: 1px solid var(--border); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 10px 0; }
.sum-line.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-weight: 800; font-size: 17px; }
.sum-line .disc { color: #2e7d6f; }
.sum-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .co-row2 { grid-template-columns: 1fr; }
}

/* monitoring */
.mon-plan { background: var(--surface); border: 2px solid var(--teal); border-radius: 14px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.mon-price { font-size: 40px; font-weight: 800; color: var(--teal); }
.mon-price span { font-size: 16px; font-weight: 600; color: var(--muted); }
.mon-label { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 12px; }

/* Report warnings (heads-up) section */
.warn-list { list-style: none; margin: 0 0 28px; padding: 0; }
.warn-item {
  background: #fffdf5; border: 1px solid #f0dfae; border-left: 4px solid #d9a521;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 10px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink, #1a1a1a);
}
.warn-badge {
  display: inline-block; background: #fdf0dd; color: var(--amber);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 4px; margin-right: 8px;
}

/* Icon-only buttons (copy/download for file builders) */
.btn.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* PDF Background Queue (2026-10-11): muted note shown while PDF generates. */
.pdf-pending-note {
  display: inline-block;
  font-size: 13px;
  color: #6b7a81;
  font-style: italic;
  padding: 8px 12px;
  background: #f3f5f6;
  border-radius: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Report UI improvements (2026-10-11): executive summary, findings cards, radar chart. */
.exec-summary { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 24px 0; }
.exec-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 8px; }
.exec-summary h3 { font-size: 20px; margin: 0 0 8px; }
.exec-desc { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
/* Monitoring-report elements (2026-10-14): next best action, what changed, streak. */
.next-action { margin: 0 0 24px; }
.na-head { display: flex; justify-content: space-between; align-items: center; }
.na-head h3 { margin: 0; }
.na-title { font-weight: 600; margin: 10px 0 4px; }
.na-why { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.na-btn { background: var(--orange); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
.chg-row { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.chg-row:last-of-type { border-bottom: 0; }
.chg-row .rep-bad-b, .chg-row .rep-good-b { flex: 0 0 62px; font-weight: 600; font-size: 13px; }
.chg-none { color: var(--muted); margin: 0; }
.chg-when { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.chg-more { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.streak-chip { display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; margin-left: 10px; vertical-align: middle; }
.exec-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.exec-card { flex: 1; min-width: 120px; background: #f8f9fa; border-radius: 10px; padding: 16px; text-align: center; }
.exec-num { font-size: 32px; font-weight: 800; }
.exec-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.findings-summary { margin: 24px 0; }
.findings-summary h3 { font-size: 18px; margin: 0 0 4px; }
.fs-cards { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.fs-card { flex: 1; min-width: 100px; border-radius: 10px; padding: 16px; text-align: center; }
.fs-critical { background: var(--err-bg); border: 1px solid var(--err-line); }
.fs-warning { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.fs-info { background: var(--green-bg); border: 1px solid #bfe3c9; }
.fs-num { font-size: 28px; font-weight: 800; }
.fs-critical .fs-num { color: var(--red); }
.fs-warning .fs-num { color: #e8930c; }
.fs-info .fs-num { color: var(--green); }
.fs-label { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }


/* (Sticky footer now lives in components/shared.css, single-source for all properties.) */

/* Ensure footer is full-width */
.site-footer { width: 100%; }

/* ---- Tabbed report layout (2026-10-13, Kuang-approved design) ---- */
.rep-meta{font-size:13px;color:var(--muted);margin:4px 0 12px;}
.rep-stat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:14px;}
.rep-stat{background: var(--surface);border:1px solid var(--line,var(--line));border-radius:12px;padding:14px 15px;}
.rep-stat-lab{font-size:11px;font-weight:700;letter-spacing:.7px;color:var(--muted);text-transform:uppercase;}
.rep-stat-big{font-size:29px;font-weight:800;margin:5px 0 2px;}
.rep-stat-big small{font-size:14px;color:var(--muted);font-weight:600;}
.rep-stat-sub{font-size:12.5px;color:var(--muted);line-height:1.45;}
.rep-chip{display:inline-block;background:#e7f0f3;color:var(--teal);font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:20px;margin-top:6px;}
/* Stat-card explanations: info-icon tooltip (screen) / inline line (print).
   Cards stay clean — label + big number only (Kuang, 2026-10-14). */
#report-root .rep-stat-lab{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.rep-tip{position:relative;display:inline-flex;flex:none;color:var(--muted);cursor:help;outline:none;}
.rep-tip::after{content:attr(data-tip);position:absolute;right:-4px;top:calc(100% + 8px);width:max-content;max-width:230px;background:#1a2b33;color:#fff;font-size:12px;font-weight:500;line-height:1.45;letter-spacing:0;text-transform:none;padding:8px 10px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .15s ease;z-index:40;box-shadow:0 8px 24px rgba(16,42,54,.25);}
.rep-tip:hover::after,.rep-tip:focus::after,.rep-tip:focus-visible::after{opacity:1;}
.rep-parity{margin-top:9px;display:grid;gap:5px;}
.rep-parity-row{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);}
.rep-parity-row .pl{width:46px;flex:none;}
.rep-parity-row .pv{width:32px;flex:none;text-align:right;font-weight:700;color:var(--ink);}
.rep-parity-track{flex:1;height:6px;background:var(--bg-soft);border-radius:4px;overflow:hidden;}
.rep-parity-fill{height:100%;width:var(--w,0%);background:var(--teal);border-radius:4px;}
.rep-parity-fill.gray{background:#b9c6cc;}
.rep-tabs{display:flex;gap:2px;border-bottom:2px solid var(--line,var(--line));margin:10px 0 18px;flex-wrap:wrap;}
.rep-tab{background:none;border:0;font:inherit;font-size:14.5px;font-weight:600;color:var(--muted);padding:10px 16px;cursor:pointer;border-bottom:3px solid transparent;margin-bottom:-2px;}
.rep-tab.active{color:var(--teal);border-bottom-color:var(--orange,var(--orange));}
.rep-tab-cnt{background:#e7f0f3;border-radius:12px;padding:0 7px;font-size:12px;}
.rep-panel{display:none;}
.rep-panel.active{display:block;}
.rep-soon{border:1.5px dashed #b9cdd5;border-radius:12px;padding:26px;text-align:center;background:#fbfdfd;}
.rep-soon p{color:var(--muted);font-size:14px;line-height:1.6;max-width:600px;margin:8px auto 0;}
.rep-ghost{opacity:.4;margin:18px auto 0;text-align:left;border-collapse:collapse;font-size:13.5px;}
.rep-ghost th,.rep-ghost td{padding:7px 12px;border-bottom:1px solid var(--line,var(--line));}
.rep-statusbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background: var(--surface);border:1px solid var(--line,var(--line));border-radius:10px;padding:9px 14px;font-size:13px;color:var(--muted);margin-bottom:14px;}
.rep-statusbar span + span{border-left:1px solid var(--line,var(--line));padding-left:10px;}
.rep-status-host{font-weight:800;color:var(--teal);font-size:14px;}
.rep-status-mon{margin-left:auto;border-left:0 !important;font-style:italic;}

/* ---------- Admin standardization (2026-10-14: inline styles moved here) ---------- */
.page-h1 { font-size: 28px; margin-bottom: 6px; }
.u-none { display: none; }
.input-std { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 15px; font-family: inherit; background: var(--surface); color: var(--ink); }
select { font-family: inherit; font-size: 14px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); }
.st-ok { color: var(--ok); }
.st-ok-b { color: var(--ok); font-weight: 700; }
.st-bad { color: var(--red); font-weight: 600; }
.st-bad-b { color: var(--red); font-weight: 700; }
.st-warn-b { color: var(--amber); font-weight: 700; }
.st-home-b { color: var(--teal-2); font-weight: 700; }
.u-minw-200 { min-width: 200px; }
.u-minw-220 { min-width: 220px; }
.u-minw-280 { min-width: 280px; }
.u-minw-700 { min-width: 700px; }
.u-minw-800 { min-width: 800px; }
.u-mr-6 { margin-right: 6px; }
.u-ml-8 { margin-left: 8px; }
.u-ml-10 { margin-left: 10px; }
.u-ml-12 { margin-left: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.u-note { font-size: 12px; color: var(--muted); }
.u-note-125 { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.u-sub-sm { font-weight: 400; font-size: 0.8em; color: var(--muted); }
.u-note-div { font-size: 11px; color: var(--muted); font-weight: 400; }
.u-w400 { max-width: 400px; }
.u-fw4 { font-weight: 400; }
.u-fs13 { font-size: 13px; }
.u-note-m { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.admin-denied { padding: 40px; max-width: 720px; margin: 0 auto; }
.u-cell-wrap { max-width: 280px; word-break: break-word; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 230px; }


/* ================= Page styles moved from inline <style> blocks (2026-10-14) ================= */
/* ===== schema-wizard (moved from page, scoped body.pg-wizard) ===== */
body.pg-wizard .tool-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;}
@media (max-width: 860px) {
body.pg-wizard .tool-grid {grid-template-columns: 1fr;}
}
body.pg-wizard .tool-form .field, body.pg-schemaval .tool-form .field, body.pg-robotsval .tool-form .field, body.pg-llmsgen .tool-form .field, body.pg-robotsgen .tool-form .field {margin-bottom: 18px;}
body.pg-wizard .tool-form label.flabel, body.pg-schemaval .tool-form label.flabel, body.pg-robotsval .tool-form label.flabel, body.pg-llmsgen .tool-form label.flabel, body.pg-robotsgen .tool-form label.flabel {display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px;}
body.pg-wizard .tool-form .hint, body.pg-schemaval .tool-form .hint, body.pg-robotsval .tool-form .hint, body.pg-llmsgen .tool-form .hint, body.pg-robotsgen .tool-form .hint {font-size: 13.5px; color: var(--muted); margin-top: 5px; line-height: 1.5;}
body.pg-wizard .tool-form input[type="text"], body.pg-wizard .tool-form input[type="url"], body.pg-wizard .tool-form input[type="tel"], body.pg-wizard .tool-form textarea, body.pg-wizard .tool-form select {width: 100%; padding: 12px 14px; font-size: 15px; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: inherit; background: var(--surface); color: var(--ink);}
body.pg-wizard .tool-form input:focus, body.pg-wizard .tool-form textarea:focus, body.pg-wizard .tool-form select:focus {outline: none; border-color: var(--teal);}
body.pg-wizard .tool-form textarea {min-height: 80px; resize: vertical;}
body.pg-wizard .type-tabs {display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;}
body.pg-wizard .type-tab {padding: 10px 18px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink);}
body.pg-wizard .type-tab.active {background: var(--teal); border-color: var(--teal); color: #fff;}
body.pg-wizard .type-tab:hover:not(.active) {border-color: var(--teal);}
body.pg-wizard .schema-fields {display: none;}
body.pg-wizard .schema-fields.active {display: block;}
body.pg-wizard .faq-item, body.pg-wizard .offer-item {border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; background: var(--surface); position: relative;}
body.pg-wizard .rm-item {position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1;}
body.pg-wizard .rm-item:hover {color: var(--red); border-color: var(--red);}
body.pg-wizard .add-item-btn {background: none; border: none; color: var(--teal); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 0;}
body.pg-wizard .add-item-btn:hover {text-decoration: underline;}
body.pg-wizard .output-pane, body.pg-schemaval .output-pane, body.pg-robotsval .output-pane, body.pg-llmsgen .output-pane, body.pg-robotsgen .output-pane {position: sticky; top: 90px;}
body.pg-wizard .output-pane pre {background: var(--teal-ink); color: var(--teal-bg); border-radius: 14px; padding: 20px;
  font-size: 15px; line-height: 1.65; overflow-x: auto; min-height: 380px; max-height: 600px; overflow-y: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all;}
body.pg-wizard .output-actions {display: flex; gap: 10px; margin: 12px 0 26px; flex-wrap: wrap;}
body.pg-wizard .out-label, body.pg-schemaval .out-label, body.pg-robotsval .out-label, body.pg-llmsgen .out-label, body.pg-robotsgen .out-label {display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px;}
body.pg-wizard .steps-list, body.pg-schemaval .steps-list, body.pg-robotsval .steps-list, body.pg-llmsgen .steps-list, body.pg-robotsgen .steps-list {counter-reset: step; list-style: none; padding: 0; margin: 20px 0 0;}
body.pg-wizard .steps-list li, body.pg-schemaval .steps-list li, body.pg-robotsval .steps-list li, body.pg-llmsgen .steps-list li, body.pg-robotsgen .steps-list li {counter-increment: step; padding: 14px 0 14px 52px; position: relative; font-size: 16px; line-height: 1.6; border-bottom: 1px solid var(--border);}
body.pg-wizard .steps-list li::before, body.pg-schemaval .steps-list li::before, body.pg-robotsval .steps-list li::before, body.pg-llmsgen .steps-list li::before, body.pg-robotsgen .steps-list li::before {content: counter(step); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;}
body.pg-wizard .steps-list li:last-child, body.pg-schemaval .steps-list li:last-child, body.pg-robotsval .steps-list li:last-child, body.pg-llmsgen .steps-list li:last-child, body.pg-robotsgen .steps-list li:last-child {border-bottom: none;}
body.pg-wizard .webperson-box, body.pg-schemaval .webperson-box, body.pg-robotsval .webperson-box, body.pg-llmsgen .webperson-box, body.pg-robotsgen .webperson-box {background: var(--surface); border: 1.5px dashed var(--teal); border-radius: 12px; padding: 18px; font-size: 14.5px; line-height: 1.65; margin-top: 16px;}
body.pg-wizard code.inline {background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.9em;}

/* ===== schema-validator (moved from page, scoped body.pg-schemaval) ===== */
body.pg-schemaval .tool-form input[type="text"], body.pg-schemaval .tool-form textarea {width: 100%; padding: 12px 14px; font-size: 15px; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: inherit; background: var(--surface); color: var(--ink);}
body.pg-schemaval .tool-form input:focus, body.pg-schemaval .tool-form textarea:focus {outline: none; border-color: var(--teal);}
body.pg-schemaval .tool-form textarea {min-height: 160px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;}
body.pg-wizard .field-tip, body.pg-schemaval .field-tip, body.pg-robotsval .field-tip, body.pg-llmsgen .field-tip, body.pg-robotsgen .field-tip {position: relative; display: flex; align-items: center;}
body.pg-wizard .field-tip input, body.pg-schemaval .field-tip input, body.pg-robotsval .field-tip input, body.pg-llmsgen .field-tip input, body.pg-robotsgen .field-tip input {flex: 1; padding-right: 36px;}
body.pg-wizard .tip-icon, body.pg-schemaval .tip-icon, body.pg-robotsval .tip-icon, body.pg-llmsgen .tip-icon, body.pg-robotsgen .tip-icon {position: absolute; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-soft, #f0ede4); color: var(--muted, #5a6a64); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: help; flex-shrink: 0;}
body.pg-wizard .tip-icon:hover, body.pg-schemaval .tip-icon:hover, body.pg-robotsval .tip-icon:hover, body.pg-llmsgen .tip-icon:hover, body.pg-robotsgen .tip-icon:hover {background: var(--teal, var(--teal-2)); color: #fff;}
body.pg-schemaval .schema-verdict {margin: 24px 0; padding: 20px; border-radius: 12px; font-size: 16px; line-height: 1.6;}
body.pg-schemaval .schema-good {background: var(--ok-bg); border: 1px solid #a5d6a7;}
body.pg-schemaval .schema-bad {background: var(--err-bg); border: 1px solid var(--err-line);}
body.pg-schemaval .schema-warn {background: var(--warn-bg); border: 1px solid var(--warn-line);}
body.pg-schemaval .schema-block {border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 16px; background: var(--surface);}
body.pg-schemaval .schema-block h3 {margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}
body.pg-schemaval .schema-block .block-sub {font-size: 13px; color: var(--muted); margin-bottom: 10px;}
body.pg-schemaval .badge {display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px;}
body.pg-schemaval .badge-ok {background: var(--ok-bg); color: var(--ok);}
body.pg-schemaval .badge-warn {background: var(--warn-bg); color: #8a6d00;}
body.pg-schemaval .badge-err {background: var(--err-bg); color: var(--red);}
body.pg-schemaval .issue {display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14.5px; line-height: 1.55;}
body.pg-schemaval .issue:first-of-type {border-top: none;}
body.pg-schemaval .issue .dot {width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;}
body.pg-schemaval .dot-err {background: var(--red);}
body.pg-schemaval .dot-warn {background: #e8930c;}
body.pg-schemaval .dot-info {background: #1976d2;}
body.pg-schemaval .issue .fix {display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px;}
body.pg-schemaval .issue .fix code {background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; font-size: 12.5px;}
body.pg-schemaval details.raw-json {margin-top: 10px;}
body.pg-schemaval details.raw-json summary {cursor: pointer; font-size: 13.5px; color: var(--teal); font-weight: 600;}
body.pg-schemaval details.raw-json pre {background: var(--teal-ink); color: var(--teal-bg); border-radius: 10px; padding: 14px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; max-height: 300px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;}
body.pg-schemaval .paste-toggle {background: none; border: none; color: var(--teal); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 0;}
body.pg-schemaval .paste-toggle:hover {text-decoration: underline;}
body.pg-schemaval .summary-counts {display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0;}
body.pg-schemaval .count-card {border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px; background: var(--surface); text-align: center; min-width: 110px;}
body.pg-schemaval .count-card .num {font-size: 26px; font-weight: 800;}
body.pg-schemaval .count-card .lbl {font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px;}

/* ===== robots-validator (moved from page, scoped body.pg-robotsval) ===== */
body.pg-robotsval .tool-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;}
@media (max-width: 860px) {
body.pg-robotsval .tool-grid {grid-template-columns: 1fr;}
}
body.pg-robotsval .tool-form input[type="text"], body.pg-robotsval .tool-form textarea {width: 100%; padding: 12px 14px; font-size: 15px; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: inherit; background: var(--surface); color: var(--ink);}
body.pg-robotsval .tool-form input:focus, body.pg-robotsval .tool-form textarea:focus {outline: none; border-color: var(--teal);}
body.pg-robotsval .tool-form textarea {min-height: 180px; resize: vertical; font-family: ui-monospace, monospace; font-size: 13.5px;}
body.pg-robotsval .mode-toggle {display: flex; gap: 8px; margin-bottom: 16px;}
body.pg-robotsval .mode-toggle button {flex: 1; padding: 10px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink);}
body.pg-robotsval .mode-toggle button.active {border-color: var(--teal); background: var(--bg-soft); color: var(--teal-ink);}
body.pg-robotsval .verdict-box {border-radius: 12px; padding: 16px 18px; font-size: 15px; line-height: 1.6; margin-bottom: 18px;}
body.pg-robotsval .verdict-red {background: var(--red-bg); border: 1.5px solid var(--red);}
body.pg-robotsval .verdict-amber {background: var(--amber-bg); border: 1.5px solid var(--amber);}
body.pg-robotsval .verdict-green {background: var(--green-bg); border: 1.5px solid var(--green);}
body.pg-robotsval .verdict-box strong {display: block; font-size: 17px; margin-bottom: 4px;}
body.pg-robotsval .stat-row {display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;}
body.pg-robotsval .stat-chip {flex: 1; min-width: 90px; border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; background: var(--surface);}
body.pg-robotsval .stat-chip .num {font-size: 24px; font-weight: 800;}
body.pg-robotsval .stat-chip .lbl {font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px;}
body.pg-robotsval .line-table-wrap {overflow-x: auto; margin-bottom: 18px;}
body.pg-robotsval table.line-table {width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px;}
body.pg-robotsval table.line-table th {text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--border);}
body.pg-robotsval table.line-table td {padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top;}
body.pg-robotsval table.line-table td.ln {font-family: ui-monospace, monospace; color: var(--muted); width: 40px;}
body.pg-robotsval table.line-table td.rule {font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all;}
body.pg-robotsval .badge {display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap;}
body.pg-robotsval .badge-ok {background: var(--green-bg); color: var(--ok-dark);}
body.pg-robotsval .badge-warn {background: #fff3d6; color: #6b4a12;}
body.pg-robotsval .badge-err {background: var(--err-bg); color: #7a1f16;}
body.pg-robotsval .badge-info {background: #e3f2fd; color: #1a4f7a;}
body.pg-robotsval .line-explain {font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5;}
body.pg-robotsval .output-pane pre {background: var(--teal-ink); color: var(--teal-bg); border-radius: 14px; padding: 20px;
  font-size: 15px; line-height: 1.65; overflow-x: auto; min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all;}
body.pg-robotsval .output-actions {display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;}
body.pg-robotsval .check-cards {display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px;}
body.pg-robotsval .check-card {border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--surface);}
body.pg-robotsval .check-card h3 {font-size: 15px; margin: 0 0 6px;}
body.pg-robotsval .check-card p {font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55;}
body.pg-robotsval .form-msg {font-size: 14px;}

/* ===== llms-txt-generator (moved from page, scoped body.pg-llmsgen) ===== */
body.pg-llmsgen .tool-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;}
@media (max-width: 860px) {
body.pg-llmsgen .tool-grid {grid-template-columns: 1fr;}
}
body.pg-llmsgen .tool-form input[type="text"], body.pg-llmsgen .tool-form textarea {width: 100%; padding: 12px 14px; font-size: 15px; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: inherit; background: var(--surface); color: var(--ink);}
body.pg-llmsgen .tool-form input:focus, body.pg-llmsgen .tool-form textarea:focus {outline: none; border-color: var(--teal);}
body.pg-llmsgen .tool-form textarea {min-height: 96px; resize: vertical;}
body.pg-llmsgen .section-card {border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 14px; background: var(--surface);}
body.pg-llmsgen .section-card h3 {font-size: 15px; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center;}
body.pg-llmsgen .link-row {display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px;}
body.pg-llmsgen .link-row input {padding: 10px 12px; font-size: 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; width: 100%;}
body.pg-llmsgen .link-row input:focus {outline: none; border-color: var(--teal);}
body.pg-llmsgen .link-row .link-desc {width: 100%;}
body.pg-llmsgen .link-row-wrap {position: relative;}
body.pg-llmsgen .rm-link {position: absolute; right: -6px; top: -8px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1;}
body.pg-llmsgen .rm-link:hover {color: var(--red); border-color: var(--red);}
body.pg-llmsgen .add-row-btn {background: none; border: none; color: var(--teal); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 0;}
body.pg-llmsgen .add-row-btn:hover {text-decoration: underline;}
body.pg-llmsgen .rm-section {background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer;}
body.pg-llmsgen .rm-section:hover {color: var(--red);}
body.pg-llmsgen .check-row {display: flex; gap: 10px; align-items: flex-start; background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; margin: 18px 0;}
body.pg-llmsgen .check-row input {margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal);}
body.pg-llmsgen .check-row .hint {margin-top: 2px;}
body.pg-llmsgen .output-pane pre {background: var(--teal-ink); color: var(--teal-bg); border-radius: 14px; padding: 20px;
  font-size: 15px; line-height: 1.65; overflow-x: auto; min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all;}
body.pg-llmsgen .output-actions {display: flex; gap: 10px; margin: 12px 0 26px; flex-wrap: wrap;}
body.pg-llmsgen .out-label .fname {font-family: ui-monospace, monospace; font-weight: 700; color: var(--teal);}

/* ===== robots-txt-generator (moved from page, scoped body.pg-robotsgen) ===== */
body.pg-robotsgen .tool-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;}
@media (max-width: 860px) {
body.pg-robotsgen .tool-grid {grid-template-columns: 1fr;}
}
body.pg-robotsgen .tool-form label {display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px;}
body.pg-robotsgen .tool-form input[type="text"], body.pg-robotsgen .tool-form input[type="number"], body.pg-robotsgen .tool-form textarea {width: 100%; padding: 12px 14px; font-size: 15px; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: inherit; background: var(--surface); color: var(--ink);}
body.pg-robotsgen .tool-form input:focus, body.pg-robotsgen .tool-form textarea:focus {outline: none; border-color: var(--teal);}
body.pg-robotsgen .tool-form textarea {min-height: 90px; resize: vertical; font-family: ui-monospace, monospace; font-size: 14px;}
body.pg-robotsgen .bot-row {display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--surface);}
body.pg-robotsgen .bot-row > div:first-child {flex: 1; min-width: 0;}
body.pg-robotsgen .bot-row .bot-name {font-weight: 600; font-size: 14.5px; font-family: ui-monospace, monospace;}
body.pg-robotsgen .bot-row .bot-who {font-size: 13px; color: var(--muted);}
body.pg-robotsgen .bot-row .bot-opts {flex-shrink: 0;}
body.pg-robotsgen .bot-opts {display: flex; gap: 4px;}
body.pg-robotsgen .bot-opts label {font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; margin: 0;}
body.pg-robotsgen .bot-opts input {position: absolute; opacity: 0; pointer-events: none; width: auto; padding: 0; border: none;}
body.pg-robotsgen .bot-opts input:checked + span {font-weight: 700;}
body.pg-robotsgen .bot-opts .opt-allow input:checked + span {color: var(--green);}
body.pg-robotsgen .bot-opts .opt-block input:checked + span {color: var(--red);}
body.pg-robotsgen .bot-opts label:has(input:checked) {border-color: var(--border); background: var(--bg-soft);}
body.pg-robotsgen .output-pane pre {background: var(--teal-ink); color: var(--teal-bg); border-radius: 14px; padding: 20px;
  font-size: 15px; line-height: 1.65; overflow-x: auto; min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all;}
body.pg-robotsgen .output-actions {display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;}
body.pg-robotsgen .warn-box {border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; margin-top: 14px;}
body.pg-robotsgen .warn-red {background: var(--red-bg); border: 1.5px solid var(--red); color: #7a1f16;}
body.pg-robotsgen .warn-amber {background: var(--amber-bg); border: 1.5px solid var(--amber); color: #6b4a12;}
body.pg-robotsgen .warn-ok {background: var(--green-bg); border: 1.5px solid var(--green); color: var(--ok-dark);}

/* ===== parity-check (moved from page, scoped body.pg-parity) ===== */
body.pg-parity .parity-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px;}
@media (max-width: 860px) {
body.pg-parity .parity-grid {grid-template-columns: 1fr;}
}
body.pg-parity .parity-pane {border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--surface);}
body.pg-parity .parity-pane h3 {margin: 0 0 12px; font-size: 18px;}
body.pg-parity .parity-pane .word-count {font-size: 32px; font-weight: 800; margin: 8px 0;}
body.pg-parity .parity-pane .word-label {font-size: 13px; color: var(--muted);}
body.pg-parity .parity-text {background: var(--bg-soft); border-radius: 8px; padding: 16px; font-size: 14px; line-height: 1.6; max-height: 400px; overflow-y: auto; margin-top: 12px; white-space: pre-wrap;}
body.pg-parity .parity-verdict {margin-top: 24px; padding: 20px; border-radius: 12px; font-size: 16px; line-height: 1.6;}
body.pg-parity .parity-good {background: var(--ok-bg); border: 1px solid #a5d6a7;}
body.pg-parity .parity-bad {background: var(--err-bg); border: 1px solid var(--err-line);}
body.pg-parity .parity-warn {background: var(--warn-bg); border: 1px solid var(--warn-line);}

/* ===== settings (moved from page, scoped body.pg-settings) ===== */
body.pg-settings .chips-list {display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;}
body.pg-settings .chips-list:empty {display: none;}
body.pg-settings .chip {display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8F2EF;
  color: #173F3A;
  border-radius: 20px;
  padding: 8px 8px 8px 16px;
  font-size: 14px;
  font-weight: 600;
  max-width: 100%;}
body.pg-settings .chip span {overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;}
body.pg-settings .chip button {background: none;
  border: none;
  color: #5b6b68;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;}
body.pg-settings .chip button:hover {background: rgba(23,63,58,.12);
  color: #173F3A;}

/* ===== papers (moved from page, scoped body.pg-papers) ===== */
body.pg-papers .btn-print, body.pg-agencyrep .btn-print {display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: #fff; border: none; border-radius: 10px; padding: 13px 26px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;}
body.pg-papers .btn-print:hover, body.pg-agencyrep .btn-print:hover {background: var(--orange-dark);}
body.pg-papers .btn-print svg, body.pg-agencyrep .btn-print svg {width: 19px; height: 19px;}
body.pg-papers .profile-nudge {display: none; margin-top: 14px; background: #fdf3e3; border: 1px solid #f0d9ae; color: #6b5312; border-radius: 10px; padding: 12px 16px; font-size: 14px; max-width: 820px;}
body.pg-papers .side-sub-link.active {background: var(--teal); color: #fff; border-radius: 8px;}
body.pg-papers .masthead {display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 3px solid var(--teal); padding-bottom: 22px;}
body.pg-papers .masthead .logo-slot img, body.pg-agencyrep .masthead .logo-slot img {max-height: 64px; max-width: 260px; object-fit: contain;}
body.pg-papers .masthead .logo-slot .placeholder-logo, body.pg-agencyrep .masthead .logo-slot .placeholder-logo {font-size: 15px; font-weight: 800; color: var(--teal); border: 2px dashed #b9cdd6; border-radius: 10px; padding: 14px 20px; display: inline-block;}
body.pg-papers .masthead .who, body.pg-agencyrep .masthead .who {text-align: right;}
body.pg-papers .masthead .aname {font-size: 21px; font-weight: 800; color: var(--teal);}
body.pg-papers .masthead .aaddr {font-size: 14px; color: var(--ink-2); margin-top: 3px; white-space: pre-line;}
body.pg-papers .doc-sheet {display: none; max-width: 820px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(30,95,123,.10); padding: 60px 68px 48px; margin: 28px auto 36px; color: var(--doc-ink);}
body.pg-papers .doc-sheet.active {display: block;}
body.pg-papers .doc-sheet .kicker, body.pg-agencyrep .doc-sheet .kicker {display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--orange); margin: 30px 0 10px;}
body.pg-papers .doc-sheet h2.doc-title, body.pg-agencyrep .doc-sheet h2.doc-title {font-size: 37px; line-height: 1.15; letter-spacing: -0.8px; color: var(--doc-ink); margin: 0 0 10px;}
body.pg-papers .doc-sheet .doc-sub {font-size: 16px; color: var(--ink-2); line-height: 1.55; margin: 0 0 26px;}
body.pg-papers .doc-sheet h3.sec-title {font-size: 24px; color: var(--teal); letter-spacing: -0.4px; margin: 28px 0 6px;}
body.pg-papers .doc-sheet .sec-sub {font-size: 14.5px; color: var(--ink-2); margin: 0 0 20px; line-height: 1.55;}
body.pg-papers .doc-sheet p.body {font-size: 15.5px; line-height: 1.65; color: var(--ink-3); margin: 0 0 14px;}
body.pg-papers .stat-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 6px 0 8px;}
body.pg-papers .stat-card, body.pg-agencyrep .stat-card {border: 1px solid var(--line-2); border-radius: 12px; padding: 22px 24px; background: var(--surface-2);}
body.pg-papers .stat-card .num, body.pg-agencyrep .stat-card .num {font-size: 44px; font-weight: 800; color: var(--teal); line-height: 1; letter-spacing: -1px;}
body.pg-papers .stat-card .num .unit, body.pg-agencyrep .stat-card .num .unit {font-size: 22px; color: var(--orange); font-weight: 800;}
body.pg-papers .stat-card .lbl, body.pg-agencyrep .stat-card .lbl {font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.45;}
body.pg-papers .method {font-size: 12.5px; color: var(--muted-2); line-height: 1.55; margin-top: 26px; border-top: 1px solid var(--line-2); padding-top: 14px;}
body.pg-papers .cta-block {background: var(--teal); color: #fff; border-radius: 14px; padding: 26px 30px; margin-top: 30px; display: flex; gap: 20px; align-items: center;}
body.pg-papers .cta-block .cta-t {font-size: 16px; line-height: 1.55;}
body.pg-papers .cta-block .cta-t strong {color: #ffd9a8;}
body.pg-papers .chart-row {display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin: 10px 0 6px;}
body.pg-papers .donut-box {text-align: center;}
body.pg-papers .donut-box .d-lbl {font-size: 13.5px; color: var(--ink-2); margin-top: 6px; max-width: 170px; line-height: 1.4;}
body.pg-papers .donut-box .d-num {font-size: 26px; font-weight: 800; fill: var(--teal);}
body.pg-papers .gauge-row {display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0 4px;}
body.pg-papers .gauge {flex: 1 1 120px; text-align: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 8px 12px; background: var(--surface-2);}
body.pg-papers .gauge .g-name {font-size: 13.5px; font-weight: 700; color: var(--ink-3); margin-top: 4px;}
body.pg-papers .gauge .g-note {font-size: 12px; color: var(--muted-2); line-height: 1.4; margin-top: 3px;}
body.pg-papers .waffle {display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: 230px;}
body.pg-papers .waffle i {aspect-ratio: 1; border-radius: 3px; background: var(--line-2); display: block;}
body.pg-papers .waffle i.on {background: var(--orange);}
body.pg-papers .waffle i.on.teal {background: var(--teal);}
body.pg-papers .pictogram {display: flex; gap: 7px;}
body.pg-papers .pictogram svg {width: 30px; height: 30px;}
body.pg-papers .dotplot {margin: 10px 0 4px;}
body.pg-papers .dotplot .dp-row {display: grid; grid-template-columns: 150px 1fr 92px; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-2);}
body.pg-papers .dotplot .dp-name {font-size: 14.5px; font-weight: 600; color: var(--ink-3);}
body.pg-papers .dotplot .dp-track {position: relative; height: 22px; background: #f2f6f8; border-radius: 6px;}
body.pg-papers .dotplot .dp-avg {position: absolute; top: -3px; bottom: -3px; width: 2px; background: #98a8b1;}
body.pg-papers .dotplot .dp-dot {position: absolute; top: 50%; width: 15px; height: 15px; border-radius: 50%; background: var(--orange); transform: translate(-50%, -50%); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);}
body.pg-papers .dotplot .dp-val {font-size: 14px; color: var(--ink-2);}
body.pg-papers .dotplot .dp-val strong {color: var(--teal); font-size: 16px;}
body.pg-papers .lolli {margin: 8px 0 4px;}
body.pg-papers .lolli .l-row {display: grid; grid-template-columns: 1fr 130px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line-2);}
body.pg-papers .lolli .l-name {font-size: 15px; color: var(--ink-3);}
body.pg-papers .lolli .l-name .l-fix {display: block; font-size: 13px; color: var(--muted-2); margin-top: 2px; line-height: 1.45;}
body.pg-papers .lolli .l-track {position: relative; height: 4px; background: var(--line-2); border-radius: 2px;}
body.pg-papers .lolli .l-line {position: absolute; left: 0; top: 0; height: 4px; background: var(--teal); border-radius: 2px;}
body.pg-papers .lolli .l-dot {position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); transform: translate(-50%, -50%); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);}
body.pg-papers .lolli .l-val {position: absolute; right: -4px; top: -20px; font-size: 13px; font-weight: 800; color: var(--teal); transform: translateX(50%);}
body.pg-papers .steps {display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 4px;}
body.pg-papers .step {border: 1px solid var(--line-2); border-radius: 12px; padding: 18px; background: var(--surface-2);}
body.pg-papers .step .s-num {font-size: 13px; font-weight: 800; color: var(--orange); letter-spacing: 1.2px;}
body.pg-papers .step .s-title {font-size: 16.5px; font-weight: 800; color: var(--teal); margin: 5px 0 6px;}
body.pg-papers .step .s-body {font-size: 13.5px; color: var(--ink-2); line-height: 1.55;}
body.pg-papers table.bots {width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 4px;}
body.pg-papers table.bots th {text-align: left; color: var(--teal); font-size: 13px; letter-spacing: .6px; text-transform: uppercase; padding: 8px 10px; border-bottom: 2px solid var(--teal);}
body.pg-papers table.bots td {padding: 9px 10px; border-bottom: 1px solid var(--line-2); color: var(--ink-3); vertical-align: top; line-height: 1.5;}
body.pg-papers table.bots td.bot {font-weight: 800; white-space: nowrap;}
body.pg-papers .checklist {margin: 8px 0 4px;}
body.pg-papers .checklist .c-row {display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); align-items: flex-start;}
body.pg-papers .checklist .c-box {flex: none; width: 21px; height: 21px; border: 2.2px solid var(--teal); border-radius: 6px; margin-top: 2px;}
body.pg-papers .checklist .c-text {font-size: 15px; color: var(--ink-3); line-height: 1.55;}
body.pg-papers .checklist .c-text .c-why {display: block; font-size: 13px; color: var(--muted-2); margin-top: 2px;}
@media print {
body.pg-papers .doc-head, body.pg-papers .profile-nudge, body.pg-papers .side-nav, body.pg-papers header, body.pg-papers footer {display: none !important;}
body.pg-papers .doc-sheet {display: none !important;}
body.pg-papers .doc-sheet.active {display: block !important; box-shadow: none !important; border: none !important; border-radius: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important;}
body.pg-papers .doc-sheet, body.pg-papers .stat-card, body.pg-papers .cta-block, body.pg-papers .gauge, body.pg-papers .step, body.pg-papers .placeholder-logo {-webkit-print-color-adjust: exact; print-color-adjust: exact;}
a {text-decoration: none !important; color: inherit !important;}
}

/* ===== agency-report (moved from page, scoped body.pg-agencyrep) ===== */
/* Doc-page heads are SHARED by papers + agency-report (Kuang 2026-10-14:
   the two pages had drifted apart — 54px ink vs 28px teal. One format:
   28px two-tone brand-head, 15px sub at 640px, actions 20/8, head mb 24.) */
body.pg-agencyrep .doc-head, body.pg-papers .doc-head {margin-bottom: 24px;}
body.pg-agencyrep .doc-head h1, body.pg-papers .doc-head h1 {font-size: 28px; letter-spacing: -0.6px; margin-bottom: 8px;}
body.pg-agencyrep .doc-head p, body.pg-papers .doc-head p {color: var(--muted); font-size: 15px; max-width: 640px; line-height: 1.55;}
body.pg-agencyrep .doc-actions, body.pg-papers .doc-actions {display: flex; gap: 12px; margin: 20px 0 8px; flex-wrap: wrap;}
body.pg-agencyrep .profile-nudge {display: none; background: #fff8f0; border: 1px solid #f3ddc0; border-radius: 12px; padding: 14px 18px; margin: 14px 0 4px; font-size: 14px; color: #6b5136; line-height: 1.55; max-width: 720px;}
body.pg-agencyrep .profile-nudge a {color: var(--teal); font-weight: 700;}
body.pg-agencyrep .doc-sheet {max-width: 820px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 40px rgba(30,95,123,.10); padding: 60px 68px 48px; margin: 28px auto 36px; color: var(--doc-ink);}
body.pg-agencyrep .masthead {display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 26px; border-bottom: 3px solid var(--teal);}
body.pg-agencyrep .masthead .who .aname {font-size: 21px; font-weight: 800; color: var(--teal);}
body.pg-agencyrep .masthead .who .aaddr {font-size: 13px; color: #5b6b72; margin-top: 4px;}
body.pg-agencyrep .doc-sheet .doc-sub {font-size: 16px; color: var(--ink-2); line-height: 1.55; margin: 0 0 30px;}
body.pg-agencyrep .stat-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px;}
body.pg-agencyrep .method {font-size: 12.5px; color: #7a8b92; line-height: 1.6; border-top: 1px solid #eef2f4; padding-top: 18px;}
body.pg-agencyrep .powered {text-align: center; font-size: 12.5px; color: #9aa8ae; letter-spacing: 0.4px; margin-top: 30px;}
body.pg-agencyrep .doc-sheet h3.sec-title {font-size: 24px; color: var(--teal); letter-spacing: -0.4px; margin: 28px 0 6px;}
body.pg-agencyrep .doc-sheet .sec-sub {font-size: 14.5px; color: var(--ink-2); margin: 0 0 22px; line-height: 1.55;}
body.pg-agencyrep .finding {display: flex; gap: 16px; margin-bottom: 20px;}
body.pg-agencyrep .finding .ico {flex: none; width: 42px; height: 42px; border-radius: 12px; background: #e8f1f5; display: flex; align-items: center; justify-content: center;}
body.pg-agencyrep .finding .ico svg {width: 22px; height: 22px; color: var(--teal);}
body.pg-agencyrep .finding .f-title {font-size: 16.5px; font-weight: 800; color: var(--doc-ink);}
body.pg-agencyrep .finding .f-num {color: var(--orange);}
body.pg-agencyrep .finding .f-text {font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.55;}
body.pg-agencyrep .chart-wrap {margin: 22px 0 6px;}
body.pg-agencyrep .chart-wrap .chart-cap {font-size: 14px; font-weight: 700; color: var(--doc-ink); margin-bottom: 10px;}
body.pg-agencyrep .chart-wrap svg {width: 100%; height: auto; display: block;}
body.pg-agencyrep .chart-note {font-size: 12.5px; color: #7a8b92; margin: 8px 0 0;}
body.pg-agencyrep .cta-block {background: var(--teal); color: #fff; border-radius: 14px; padding: 26px 30px; margin-top: 26px;}
body.pg-agencyrep .cta-block .cta-q {font-size: 20px; font-weight: 800; letter-spacing: -0.3px;}
body.pg-agencyrep .cta-block .cta-t {font-size: 15px; line-height: 1.6; margin-top: 8px;}
body.pg-agencyrep .cta-block .cta-t strong {color: #ffd9b3;}
@page { size: letter; margin: 0.5in 0.6in; }
@media print {
body.pg-agencyrep .app-header, body.pg-agencyrep .side-nav, body.pg-agencyrep .site-footer, body.pg-agencyrep .no-print {display: none !important;}
body.pg-agencyrep .acct-layout {display: block !important; max-width: none !important; padding: 0 !important; margin: 0 !important;}
body.pg-agencyrep .acct-content {padding: 0 !important;}
body {background: #fff !important;}
body.pg-agencyrep .doc-sheet {box-shadow: none !important; border: none !important; border-radius: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important;}
body.pg-agencyrep .doc-sheet.page-2 {break-before: page; page-break-after: avoid;}
body.pg-agencyrep .doc-sheet .masthead {break-inside: avoid;}
body.pg-agencyrep .doc-sheet h3.sec-title {margin-top: 14px !important;}
body.pg-agencyrep .doc-sheet .sec-sub {margin-bottom: 12px !important;}
body.pg-agencyrep .finding {margin-bottom: 13px !important;}
body.pg-agencyrep .chart-wrap {margin: 12px 0 4px !important;}
body.pg-agencyrep .chart-wrap svg {max-height: 150px;}
body.pg-agencyrep .cta-block {padding: 18px 24px !important; margin-top: 16px !important;}
body.pg-agencyrep .doc-sheet .doc-sub {margin-bottom: 20px !important;}
body.pg-agencyrep .stat-grid {margin-bottom: 20px !important; gap: 12px !important;}
body.pg-agencyrep .doc-sheet, body.pg-agencyrep .stat-card, body.pg-agencyrep .cta-block, body.pg-agencyrep .finding .ico, body.pg-agencyrep .placeholder-logo {-webkit-print-color-adjust: exact; print-color-adjust: exact;}
}

/* ===== report (moved from page, scoped body.pg-report) ===== */
@media print {
body.pg-report .report-close, body.pg-report .report-actions, body.pg-report .dropdown-toggle, body.pg-report button.close, body.pg-report .no-print {display: none !important;}
body.pg-report .fix-toggle {display: none !important;}
body.pg-report .fix-collapsible {display: block !important;}
body.pg-report .score-category, body.pg-report .chart-container, body.pg-report .crawler-matrix, body.pg-report .report-section {page-break-inside: avoid;}
body.pg-report .fs-cats, body.pg-report .category-bars {page-break-inside: avoid;}
body.pg-report .rep-panel {display: block !important;}
body.pg-report .rep-tabs {display: none !important;}
body.pg-report .rep-tip {display: block; position: static; margin-top: 4px; cursor: default;}
body.pg-report .rep-tip svg {display: none !important;}
body.pg-report .rep-tip::after {content: attr(data-tip); position: static; opacity: 1; background: none; color: var(--muted); box-shadow: none; padding: 0; font-size: 11.5px; max-width: none; width: auto;}
}
body.pg-papers .dp-avg, body.pg-papers .dp-dot, body.pg-papers .l-dot, body.pg-papers .l-val { left: var(--x); }
body.pg-papers .l-line { width: var(--x); }
.svg-score { font-size: 20px; font-weight: 800; fill: #173f3a; }
body.pg-papers .dp-note { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; max-width: 230px; }
body.pg-papers .dp-src { font-size: 13px; color: var(--muted-2); text-align: right; }
body.pg-settings .pf-amber { color: #b45309; }
body.pg-settings .agency-fields { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
body.pg-wizard .site-pick { margin-bottom: 16px; padding: 12px; background: #fff8f0; border: 1px solid #ffd8a8; border-radius: 8px; }
body.pg-wizard .combine-box { margin: 12px 0; padding: 10px; background: #f0f7ff; border-radius: 8px; }
body.pg-llmsgen .warn-box { background: #fff8e6; border: 1.5px solid #d4a017; color: #6b4e0a; border-radius: 10px; padding: 14px; margin-bottom: 16px; }
body.pg-llmsgen .warn-box.warn-ok { background: #f0f7f4; border-color: var(--teal); color: var(--ok-dark); font-size: 13.5px; }
body.pg-llmsgen .sec-title { flex: 1; margin-right: 8px; padding: 8px 10px; font-size: 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; background: var(--surface); }
body.pg-papers .star-on { color: var(--orange); }
body.pg-papers .star-off { color: #c3d0d7; }
body.pg-robotsval .num, body.pg-schemaval .num { color: var(--c); }
.hist-score { color: var(--c); }

/* ---------- Report.js generated markup (2026-10-14: inline styles moved here) ---------- */
#report-root .rep-c { color: var(--c); }
#report-root .exec-num { color: var(--c); }
#report-root .cat-score { color: var(--c); }
#report-root .hbar-fill { width: var(--w, 0%); }
#report-root .rep-stat-big { color: var(--c); }
#report-root .rep-table { width: 100%; border-collapse: collapse; font-size: 14px; }
#report-root .rep-table tbody tr { border-top: 1px solid var(--border); }
#report-root .rep-td { padding: 10px 16px; }
#report-root .rep-td-b { padding: 10px 16px; font-weight: 600; }
#report-root .rep-th { padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); text-align: left; }
#report-root .rep-copy-label { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
#report-root .rep-copy-area { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); resize: vertical; }
#report-root .rep-copy-actions { margin-top: 12px; display: flex; gap: 10px; }
#report-root .rep-flex-between { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
#report-root .rep-b { font-weight: 700; }
#report-root .rep-note-p { font-size: 14px; margin-top: 4px; }
#report-root .rep-bench-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
#report-root .rep-mini-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
#report-root .rep-big-num { font-size: 36px; font-weight: 800; color: var(--c); }
#report-root .rep-bench-note { background: var(--bg-soft); border-radius: 8px; padding: 16px 20px; font-size: 14.5px; }
#report-root .rep-means { margin-top: 10px; font-size: 13.5px; }
#report-root .rep-bad-b { color: var(--red, var(--red)); font-weight: 700; }
#report-root .rep-good-b { color: var(--green, var(--green)); font-weight: 700; }
#report-root .rep-loading { color: var(--muted); font-size: 14px; }
#report-root .rep-hist-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13.5px; }
#report-root .rep-hist-date { width: 86px; color: var(--muted); }
#report-root .rep-hist-track { flex: 1; background: var(--bg-soft); border-radius: 6px; height: 14px; }
#report-root .rep-hist-bar { height: 100%; border-radius: 6px; width: var(--w); background: var(--bg); }
/* Monitoring upsell (report page, non-subscribers) */
#report-root .mon-banner { background: #e8f4f0; border: 1px solid #bfe0d2; border-radius: 10px; padding: 12px 16px; font-size: 14.5px; margin: 18px 0 12px; color: var(--ink); }
#report-root .mon-panel { margin: 12px 0 26px; }
/* Columns sized by the CONTAINER (auto-fit/minmax), not the viewport: the
   report column is narrower than the window, and a viewport breakpoint
   squeezed the first panel into a sliver (Kuang's screenshot, 2026-10-15). */
#report-root .aeo-upsell-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 16px; grid-auto-rows: 1fr; margin: 12px 0 26px; }
/* Uniform blocks (Kuang, 2026-10-15): every panel the same size, CTA pinned
   to the bottom so the grid reads as one tidy set, not a jumble. */
#report-root .aeo-upsell-grid .mon-panel { margin: 0; display: flex; flex-direction: column; }
#report-root .aeo-upsell-grid .mon-cta { margin-top: auto; padding-top: 14px; }
#report-root .aeo-upsell-grid #aeo-history-slot { display: contents; }
#report-root .mon-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
#report-root .mon-panel-head h3 { margin: 0; font-size: 17px; }
#report-root .mon-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
#report-root .mon-future { margin-top: 2px; }
#report-root .mon-future-row { opacity: .8; }
#report-root .mon-future-track { flex: 1; height: 14px; border-radius: 6px; border: 1.5px dashed var(--border); filter: blur(1px); }
#report-root .mon-future-lab { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
#report-root .aeo-rate-row { display: flex; align-items: center; gap: 12px; margin: 7px 0; }
#report-root .aeo-rate-name { flex: 0 0 92px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
#report-root .aeo-rate-track { flex: 1; height: 12px; background: var(--surface-2, #eef3f5); border-radius: 6px; overflow: hidden; }
#report-root .aeo-blur-fill { height: 100%; width: 62%; background: var(--teal); border-radius: 6px; }
#report-root .aeo-rate-fill { height: 100%; background: var(--teal); border-radius: 6px; }
#report-root .aeo-rate-fill.alt { background: var(--amber); }
#report-root .aeo-rate-val { flex: 0 0 128px; font-size: 13px; color: var(--muted); text-align: right; }
#report-root .aeo-record { text-align: left; }
#report-root .aeo-record > h3 { font-size: 19px; margin: 2px 0 8px; }
#report-root .aeo-record .viz-card { margin-top: 14px; }
#report-root .aeo-rec-h { font-size: 15px; margin: 0 0 10px; }
#report-root .aeo-matrix td.aeo-hit { color: var(--teal-ink); font-weight: 700; }
#report-root .aeo-skel-bar { height: 13px; border-radius: 6px; background: var(--surface-2, #e3ebee); margin: 9px 0; }
#report-root .aeo-change-head { font-size: 14.5px; margin: 4px 0 6px; }
#report-root .aeo-peek { display: flex; gap: 12px; margin: 8px 0 4px; }
#report-root .aeo-peek-fig { flex: 1; background: var(--surface-2, #f4f8f9); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-align: center; }
#report-root .aeo-peek-num { font-size: 24px; font-weight: 800; color: var(--teal-ink); line-height: 1.1; }
#report-root .aeo-peek-lab { font-size: 12px; color: var(--muted); margin-top: 2px; }
#report-root .aeo-blur { filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }
#report-root .aeo-blur .rep-ghost { opacity: 1; margin-top: 4px; }
#report-root .mon-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
#report-root .mon-start { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
#report-root .mon-start:hover { background: var(--orange-dark); }
#report-root .mon-note { font-size: 13px; color: var(--muted); }
#report-root .mon-plans { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
#report-root .mon-plan { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 14.5px; cursor: pointer; }
#report-root .mon-plan:has(input:checked) { border-color: var(--orange); background: #fff7ef; }
#report-root .mon-tos { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0 12px; }
#report-root .mon-go-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
#report-root .mon-err { color: #b3261e; font-size: 13.5px; }
.tools-pager { display: flex; align-items: center; gap: 14px; margin: 4px 0 24px; }
#report-root .rep-float-r { float: right; }
#report-root .location-table-wrap, #report-root .page-matrix-wrap { margin: 0 0 24px; overflow-x: auto; }
#report-root .rep-p15 { font-size: 15px; }
#report-root .rep-list { margin: 14px 0 6px 20px; font-size: 14.5px; line-height: 1.65; }
#report-root .rep-list2 { margin: 8px 0 2px 20px; font-size: 14.5px; line-height: 1.65; }
#report-root .rep-guide-link { color: var(--teal); font-weight: 700; }
#report-root .rep-pm-note { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
#report-root .rep-ico { width: 18px; height: 18px; }
#report-root .rep-uplift-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
#report-root .rep-up-label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
#report-root .rep-up-num { font-size: 40px; font-weight: 800; color: var(--c); }
#report-root .rep-cmp-th { padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
#report-root .rep-cmp-td { padding: 12px 16px; }
#report-root .rep-cmp-td-b { padding: 12px 16px; font-weight: 700; }
#report-root .rep-cmp-score { padding: 12px 16px; font-weight: 800; color: var(--c); }
#report-root .rep-cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
#report-root .rep-cmp-table tbody tr { border-top: 1px solid var(--border); }
#report-root .rep-cmp-table tr.you { background: #fef6ee; }
#report-root .rep-cmp-note { padding: 18px 24px; background: var(--bg-soft); font-size: 14.5px; border-top: 1px solid var(--border); }
#report-root .vbar { height: var(--h); }
.wl-logo { max-height: 64px; max-width: 240px; object-fit: contain; border-radius: 8px; }
.wl-name { font-size: 22px; font-weight: 800; }
.wl-addr { font-size: 13px; color: var(--muted); }
.wl-sub { font-size: 13px; color: var(--muted); }
.u-mt-24 { margin-top: 24px; }
#report-root .rep-p145 { font-size: 14.5px; }
/* Checkout test-handoff state (converted from inline styles, 2026-10-14) */
.co-state { text-align: center; padding: 40px 24px; }
.co-state-p { color: var(--muted); max-width: 420px; margin: 0 auto 8px; }
.co-state-p2 { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }

/* ===== App work-page headings: ONE standard (Kuang 2026-10-14) =====
   28px two-tone brand-head, -0.6px tracking, 6px under the title; the
   header block keeps its 24px bottom spacing via the sub where one
   exists, or the title itself where it does not (settings). */
.acct-content h1.brand-head { font-size: 28px; letter-spacing: -0.6px; margin-bottom: 6px; }
body[data-section="scan"] .wizard h1 { font-size: 28px; letter-spacing: -0.6px; margin-bottom: 6px; }
body.pg-settings .acct-content h1.brand-head { margin-bottom: 24px; }

/* Tool hero kicker (Kuang, 2026-10-14): the orange "Free tool · No signup"
   line on the five portal tool heroes goes a little bigger than the global
   13px kicker — scoped to tool heroes inside the app shell only. */
.acct-content .hero .kicker { font-size: 15px; }

/* Legacy robots generator: local pieces (moved from inline styles 2026-10-14) */
.bot-toggle-row { display: flex; gap: 8px; margin-bottom: 12px; }
.btn-xs { font-size: 13px; padding: 7px 14px; }
.btn-copy { font-size: 14px; padding: 8px 18px; }
.notice-pre { margin: 8px 0 0; white-space: pre-wrap; font-size: 12.5px; max-height: 200px; overflow-y: auto; }
.notice-note { margin: 8px 0 0; font-size: 13px; }

/* --- Admin pages (moved from per-page <style> 2026-10-14) --- */
body[data-admin-gate] main.acct-layout{visibility:hidden}body[data-admin-gate].admin-verified main.acct-layout{visibility:visible}
.tool-result { margin-top: 12px; padding: 10px 12px; background: #f5f7f8; border: 1px solid #e2e8eb; border-radius: 6px; font-family: monospace; font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 300px; overflow: auto; }
.tool-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.scan-list { margin-top: 12px; font-size: 13px; }
.scan-list table { width: 100%; border-collapse: collapse; }
.scan-list td, .scan-list th { padding: 5px 8px; border-bottom: 1px solid #e2e8eb; text-align: left; }
.scan-list .jid { font-family: monospace; font-size: 11.5px; }

/* ---------- Dark theme overrides for literal tint backgrounds ----------
   (shared.css carries the token-level dark palette; these are the app
   rules that hardcode light tints, remapped for data-theme="dark".) */
:root[data-theme="dark"] .mx-warn { background: var(--surface-2); }
:root[data-theme="dark"] .test-banner { background: var(--surface-2); border-color: #8a6d1f; color: #e8c98a; }
:root[data-theme="dark"] .warn-item { background: var(--surface-2); border-color: var(--border); border-left-color: #d9a521; }
:root[data-theme="dark"] .warn-badge { background: #3a2c10; }
:root[data-theme="dark"] .exec-card { background: var(--surface-2); }
:root[data-theme="dark"] .rep-chip { background: var(--teal-bg); }
:root[data-theme="dark"] .rep-tab-cnt { background: var(--teal-bg); }
:root[data-theme="dark"] .rep-soon { background: var(--surface); border-color: var(--border); }
:root[data-theme="dark"] body.pg-robotsval .badge-warn { background: var(--surface-2); color: var(--amber); }
:root[data-theme="dark"] body.pg-papers .profile-nudge { background: var(--surface-2); border-color: #5c4d1c; color: var(--ink); }
:root[data-theme="dark"] body.pg-agencyrep .profile-nudge { background: var(--surface-2); border-color: #5c4d1c; color: var(--ink); }
:root[data-theme="dark"] body.pg-wizard .site-pick { background: var(--surface-2); border-color: #5c4d1c; }
:root[data-theme="dark"] body.pg-llmsgen .warn-box { background: var(--surface-2); color: #e8c98a; }
:root[data-theme="dark"] #report-root .mon-plan:has(input:checked) { background: var(--surface-2); }
:root[data-theme="dark"] #report-root .mon-banner { background: var(--surface-2); border-color: var(--border); color: var(--ink); }
:root[data-theme="dark"] #report-root .rep-cmp-table tr.you { background: var(--surface-2); }
:root[data-theme="dark"] .scan-list td, :root[data-theme="dark"] .scan-list th { border-bottom-color: var(--line); }
:root[data-theme="dark"] body.pg-robotsval .mode-toggle button.active { color: var(--ink); }
:root[data-theme="dark"] .output-pane pre, :root[data-theme="dark"] body.pg-schemaval details.raw-json pre { color: #d9e8ee; }
:root[data-theme="dark"] body.pg-wizard .combine-box { background: var(--surface-2); }

/* Monitoring summary + detail pages (2026-10-15) — .mons- prefix. */
.mons-meta { color: var(--muted); font-size: 13px; }
.plan-card { padding: 6px 18px 14px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.plan-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--border); }
.plan-table td { padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.plan-table tr:last-child td { border-bottom: none; }
.plan-n { font-weight: 700; width: 34px; }
.plan-jump { color: var(--ink); font-weight: 600; text-decoration: none; }
.plan-jump:hover { color: var(--teal); text-decoration: underline; }
.hist-tools { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; flex-wrap: wrap; }
.hist-search { flex: 1 1 260px; max-width: 440px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14.5px; background: var(--surface); color: var(--ink); }
.hist-count { color: var(--muted); font-size: 13.5px; }
.hist-pager { display: flex; align-items: center; gap: 16px; margin: 20px 0 8px; }
.hist-pager-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--teal); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.hist-pager-btn:disabled { opacity: .4; cursor: default; }
.hist-page-lab { color: var(--muted); font-size: 13.5px; }
.plan-box { background: var(--surface-2, #eef3f5); border-radius: 10px; padding: 14px 16px; margin: 14px 0 6px; }
.plan-box-msg { font-size: 13.5px; line-height: 1.5; color: var(--ink-2, #3a4a52); margin: 8px 0 10px; }
.mons-next { font-size: 14.5px; margin: 12px 0 2px; }
.mons-streak { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.mons-earlier { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.mons-earlier-row { font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.mons-view { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 600; color: var(--teal); cursor: pointer; margin-left: 10px; }
.mons-rep-view { padding: 10px 0 4px; font-size: 14px; line-height: 1.5; }
.mons-rep-view h4 { margin: 12px 0 4px; font-size: 14px; }
.mons-err { color: var(--red); font-size: 14px; margin-top: 10px; }
.mons-row { position: relative; }
.mons-row-main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mons-row-site { flex: 1 1 180px; display: flex; flex-direction: column; }
.mons-row-site strong { font-size: 17px; }
.mons-row-score { font-size: 30px; font-weight: 800; min-width: 52px; text-align: right; }
.mons-row-meta { margin-top: 10px; }
.mons-row-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mons-remove { background: none; border: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.mons-remove:hover { color: var(--red); }
.mons-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mons-chip-up { background: #e5f4ea; color: #157347; }
.mons-chip-down { background: #fbeaea; color: #b3362b; }
.mons-chip-flat { background: var(--surface-2, #eef3f5); color: var(--muted); }
.mons-spark { display: block; }
.mons-add { display: flex; gap: 10px; flex-wrap: wrap; }
.mons-add input { flex: 1 1 240px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; background: var(--surface); color: var(--ink); }
.mons-plans { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.mons-plan { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 14.5px; }
.mons-plan-sel { border-color: var(--orange,#ff7e00); background: #fff7ec; }
.mons-tos { display: block; font-size: 14px; margin: 8px 0 12px; }
.mons-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mons-detail-h1 { font-size: 26px; margin: 0 0 4px; }
.mons-detail-score { display: flex; align-items: center; gap: 12px; font-size: 40px; font-weight: 800; }
.mons-chart { width: 100%; height: auto; display: block; }
.mons-grid { stroke: var(--border); stroke-width: 1; }
.mons-axis { font-size: 11px; fill: var(--muted); }
.mons-cats { margin-top: 14px; border-top: 1px solid var(--border); }
.mons-cat-row { display: flex; align-items: center; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.mons-cat-row span:first-child { flex: 1; }
.mons-delta-up { color: #157347; font-weight: 700; font-size: 13px; }
.mons-delta-down { color: #b3362b; font-weight: 700; font-size: 13px; }
.mons-list { list-style: none; margin: 0; padding: 0; }
.mons-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.mons-list li:last-child { border-bottom: none; }
.mons-muted { color: var(--muted); }
.mons-fixed-h { font-weight: 700; margin: 14px 0 4px; }
.mons-new-h { font-weight: 700; margin: 14px 0 4px; color: #b3362b; }
.mons-flip { margin: 8px 0 0; font-size: 14.5px; }
.mons-sev { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface-2, #eef3f5); color: var(--muted); }
.mons-sev-critical, .mons-sev-high { background: #fbeaea; color: #b3362b; }
.mons-sev-medium { background: #fdf3e0; color: #b7791f; }
.mons-cg { overflow-x: auto; }
.mons-cg-row { display: flex; align-items: center; gap: 4px; padding: 4px 0; min-width: 520px; }
.mons-cg-name { flex: 0 0 130px; font-size: 13.5px; font-weight: 600; }
.mons-cg-cell { flex: 1; text-align: center; font-size: 11px; }
.mons-cg-pct { flex: 0 0 44px; text-align: right; }
.mons-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.mons-dot-ok { background: #2e9e5b; }
.mons-dot-bad { background: #d64541; }
/* Compact upsell panels (Kuang, 2026-10-15): the blocks should read at the
   report module's scale — a whole set visible in one screen, no scrolling
   past stretched-empty cards. */
#report-root .aeo-upsell-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
#report-root .aeo-upsell-grid .mon-panel { padding: 16px 18px; }
#report-root .aeo-upsell-grid .mon-panel-head h3 { font-size: 16px; }
#report-root .aeo-upsell-grid .aeo-peek { gap: 8px; margin: 6px 0 2px; }
#report-root .aeo-upsell-grid .aeo-peek-fig { padding: 8px 10px; }
#report-root .aeo-upsell-grid .aeo-peek-num { font-size: 20px; }
#report-root .aeo-upsell-grid .rep-ghost th, #report-root .aeo-upsell-grid .rep-ghost td { padding: 5px 10px; font-size: 13px; }
#report-root .aeo-upsell-grid .aeo-rate-row { margin: 5px 0; }
#report-root .aeo-upsell-grid .aeo-skel-bar { margin: 7px 0; }
#report-root .aeo-upsell-grid .mon-cta { padding-top: 10px; }
#report-root .aeo-upsell-grid .aeo-qpeek { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; margin: 8px 0 4px; }
#report-root .aeo-upsell-grid .mon-lock { font-size: 12px; padding: 3px 8px; }
#report-root .aeo-upsell-grid .aeo-peek-lab { font-size: 11.5px; }
