/* === CrawlReady shared components (single source) === */
/* Q18 / M15 (Kuang, Oct 17 22:17): Inter is self-hosted so every visitor
   sees the same designed font (it was named here but never loaded, so each
   visitor got their system sans). Variable weight 100-900, latin +
   latin-ext; files + OFL licence in /fonts/. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   SeraVerra 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;
  /* M10 (Kuang, Oct 17, option A): the fill stays #ff7e00; text ON orange is
     dark (5.7:1), orange TEXT on light grounds is #b85300 (4.9:1 on white). */
  --on-orange: #0f2c3a;
  --orange-text: #b85300;
  --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; }
/* 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-img { height: 36px; width: auto; display: block; }
.brand-word { font-size: 20px; 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 SeraVerra 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-text); }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { font-size: 14.5px; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--teal); }
.nav-cta { background: var(--orange); color: var(--on-orange) !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: 14.5px; 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: 14.5px; 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-text); 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; text-transform: capitalize; 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; line-height: 1.6; cursor: pointer; border: none; }
.btn-orange { background: var(--orange); color: var(--on-orange); }
.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: transparent; color: var(--teal); border: none; box-shadow: inset 0 0 0 2px var(--teal); }
.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: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange-text); 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; }
/* Q24 (Kuang, Oct 17 22:35): long headings break into balanced lines — no
   lone last word ("you." alone under the home H1). Same words, better break. */
h1, h2 { text-wrap: balance; }
.lede { font-size: 14.5px; color: var(--muted); max-width: 620px; }
.u-center .lede { margin-left: auto; margin-right: auto; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 40px; }
.prose p, .prose li { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.prose p.kicker { color: var(--orange-text); font-size: 12.5px; }
.prose ul { padding-left: 22px; }
.prose pre { background: #0f2b3a; color: #d9e8ef; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; margin: 18px 0 22px; }
.prose pre code { background: none; border: 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); }
/* Q11 / B1 (Kuang, Oct 17 22:07): code never widens an article on phones.
   Code blocks are capped at the column and scroll inside themselves; long
   inline code (URLs, file paths) wraps. */
.prose pre, .article-body pre { max-width: 100%; }
.prose :not(pre) > code, .article-body :not(pre) > code { overflow-wrap: anywhere; }
.page-hero { padding: 64px 0 24px; }

/* ---------- Severity / impact badges ---------- */
.sev { display: inline-flex; align-items: center; height: 24px; font-size: 11.5px; font-weight: 700; text-transform: capitalize; padding: 0 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); }

/* ---------- 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. */

.auth-card h1 { font-size: 30px; letter-spacing: -0.5px; margin-bottom: 8px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.auth-error { display: none; background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 16px; font-size: 14.5px; 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: 14.5px; 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: 14.5px; 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: 14.5px; font-weight: 400; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .15s ease, color .15s ease; margin-bottom: 0; }
/* Q10 / X4: the label floats by transform (same 8px / 12px end state as top + font-size gave). */
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-8px) scale(.8276); font-weight: 600; color: var(--teal); }
.show-pw { display: flex; align-items: center; gap: 8px; font-size: 14.5px; 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: var(--on-orange); 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: 14.5px; 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-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: 42px; 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; }
.section-label { font-size: 20px; font-weight: 800; margin: 32px 0 6px; letter-spacing: -0.3px; }
.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 p, .viz-card li { color: var(--muted); font-size: 13px; }
.viz-card p strong, .viz-card li strong { font-weight: 400; color: var(--ink); }
.viz-card .viz-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.rank-num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.rank-card.impact-high .rank-num { background: var(--orange); color: var(--on-orange); }
.fix { background: var(--bg-soft); border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; padding: 14px 18px; font-size: 13px; color: var(--muted); }
.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; }
.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; }
.report-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- GBP checklist ---------- */

/* ---------- NAP consistency check ---------- */

/* ---------- Competitor compare ---------- */
.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: 14.5px; 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: 14.5px; 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: 14.5px; }
.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-text); font-weight: 600; }
.comp-list .comp-status.done { color: var(--green); font-weight: 700; }

/* ---------- 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: 30px; 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-text); }
.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 ---------- */

.field-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
/* style-phase2 D12: login card title lives in the shared sheet (both login
   pages carried identical private copies). Alignment/margin stay per page. */
.login-card h1 { font-size: 24px; letter-spacing: -0.4px; line-height: 1.2; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.field-input { width: 100%; max-width: 380px; border: 2px solid var(--border); border-radius: 12px; padding: 11px 16px; font-size: 14.5px; font-family: inherit; }
.field-input:focus { outline: none; border-color: var(--teal); }
.pw-ok { color: var(--green); font-weight: 600; font-size: 14.5px; margin: 10px 0; }

/* ---------- Billing & invoices ---------- */
.inv-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.inv-sub { font-size: 13px; 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: 14.5px; 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: 20px; 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: 14.5px; 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 .opt { font-weight: 500; color: var(--muted); font-size: 13px; }
.listings-block input { display: block; width: 100%; border: 2px solid var(--border); border-radius: 999px; padding: 12px 20px; font-size: 14.5px; font-family: inherit; margin-bottom: 10px; }
.listings-block input:focus { outline: none; border-color: var(--teal); }
.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: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 8px 0; }
.btn-link:hover { text-decoration: underline; }

/* ---------- 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: 14.5px; 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: 100%; background: linear-gradient(90deg, var(--teal), var(--orange)); border-radius: 999px; transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform .6s ease; }
.scan-progress-label { font-size: 13px; color: var(--muted); }

/* ---------- Local query test ---------- */

/* ---------- Admin ---------- */

.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: 30px; 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: 20px; 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.warn { background: var(--amber-bg); color: var(--amber); }
.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: 14.5px; }
.form-msg { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.form-msg.form-ok { color: var(--green); }
.form-msg.form-err { color: var(--red); }@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: 20px; }
  .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; }
  
  
  
  
  .section { padding: 52px 0; }
  .token-pill { padding: 6px 12px; font-size: 13px; }
  .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: 14.5px; 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: 14.5px; 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: 30px; 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: 14.5px; 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: 14.5px; 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 */
/* desktop rail sits on the page (--bg); the mobile drawer is a --surface panel.
   The search box stays transparent so it always matches what's behind it. */
.rail-top { position: sticky; top: 0; background: var(--bg); 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: none; }
.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: 14.5px; font-family: inherit; color: var(--ink); background: none; padding: 0; }
.rail-filter::placeholder { color: var(--muted); }
.rail-clear { border: none; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
.rail-clear:hover { color: var(--ink); }
.rail-empty { padding: 12px; font-size: 14.5px; color: var(--muted); }
.rail [hidden] { display: none !important; }@media (max-width: 820px) {
  .page-with-rail { flex-direction: column; gap: 0; padding: 24px 20px 64px; }
  /* Q11 / B1: the column is the screen, never its widest code line (the auto
     margins in body's flex column otherwise size it to its content). */
  .page-with-rail { width: 100%; min-width: 0; }
  .page-with-rail > .rail-main { width: 100%; }
  .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-top { background: var(--surface); }
  .rail-close { display: block; text-align: right; font-size: 30px; 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: 14.5px; 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: 20px; letter-spacing: -0.4px; margin: 0; }
.modal-x { background: none; border: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; padding: 2px 6px; }
.modal-x:hover { color: var(--ink); }
.modal-sub { font-size: 14.5px; 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: 14.5px; }
.req { color: var(--red); }
.fix p { margin: 0 0 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ===== merged QA batch qa-css-a.css ===== */
/* ===== QA batch A — SeraVerra 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: 20px;
  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: 14.5px;
  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: 14.5px;
  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 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-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;
}
/* ITEM 7: monitoring upsell above the bottom buttons. */

.monitor-upsell .btn {
  margin-top: 8px;
}@media (max-width: 640px) {
  .report-actions {
    flex-direction: column;
    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: 13px; }
.inv-notes {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13px; 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: 14.5px; 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: 14.5px; 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 ---------- */


/* ===== merged QA batch qa-css-d.css ===== */
/* =====================================================================
   qa-css-d.css — QA batch D: new CSS for the SeraVerra 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 ---------------- */


/* Sample report bits that were previously unstyled (QA fix) */
.mx-chip.mx-bad{background:var(--red-bg);color:#a93226;}

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

/* 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:14.5px;color:var(--muted);line-height:1.55;}
.stat-callout .stat-txt strong{color:var(--ink);font-weight:400;}@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: 14.5px;margin:0 0 18px;text-align:center;color:var(--ink);}

/* 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: 20px;display:flex;align-items:center;justify-content:center;margin:0 auto 10px;}
.step-node .t{font-weight:700;font-size: 14.5px;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;}
}

/* Mini score ring (blog-sized; independent of the app's .score-ring) */

.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: 30px;font-weight:800;line-height:1;}

.pill{display:inline-flex;align-items:center;height:24px;font-size:12px;font-weight:700;padding:0 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 */

/* 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: 14.5px; 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: 13px !important; }
/* Submenu group labels (admin Tools: Customer / Scan / System tools) */



/* ---------- 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-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-72 { margin-top: 72px; }
.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-md { padding: 8px 18px; font-size: 14.5px; }
.btn-mini { padding: 6px 14px; font-size: 13px; }
.input-plain { width: 100%; padding: 10px; font-size: 14.5px; border: 1px solid #ccc; border-radius: 6px; font-family: inherit; }
.input-lg { width: 100%; padding: 12px 14px; font-size: 14.5px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; background: var(--surface); color: var(--ink); }
.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: 14.5px; }
.u-fs145 { font-size: 14.5px; }
/* Text link (the "Read the study →" treatment, Kuang Oct 20): an open text
   link renders teal, semibold, NOT underlined — the same look .hero-links a
   and the about/how-steps links carry. The recognizability is the ARROW,
   never an underline (Kuang, 2026-10-20 20:04: "i never had underline
   added. I add -> arrow"; link-underline-remove-1020 took the underline
   back out). Carried on a wrapper (.text-link a) or on the anchor itself
   (a.text-link). open-link-style-1020 extended the rule site-wide:
   standalone links also end with a trailing arrow in their text;
   inline prose links carry the class alone, no arrow. */
.text-link a, a.text-link { color: var(--teal); font-weight: 600; text-decoration: none; }
.text-link a:hover, a.text-link:hover { color: var(--ink); }
.u-fs22 { font-size: 20px; }
.u-fs15 { font-size: 14.5px; }
.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: 14.5px; color: var(--muted); }
.u-note-666 { font-size: 12px; color: #666; margin: 6px 0 0; }
.u-hint-lg { font-size: 13px; color: var(--muted); }
.u-label-b { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14.5px; }
.u-label-b2 { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.u-flex-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14.5px; }
.u-cb { width: 16px; height: 16px; }
.u-block { display: block; }
.u-h2-18 { font-size: 20px; margin: 0 0 16px; }
.u-h2-22 { font-size: 20px; 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: 13px; margin-top: 8px; }
.u-msg-14 { margin-top: 10px; font-size: 14.5px; }
.u-note-13m { font-size: 13px; color: var(--muted); margin-top: 6px; }
.u-note-14 { margin-top: 8px; font-size: 14.5px; }
.u-tos { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; font-size: 14.5px; color: var(--ink-2); }
.u-tos2 { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 12px; font-size: 14.5px; 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: 14.5px; }
.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-w620 { max-width: 620px; }
.u-w680 { max-width: 680px; }
.u-w720 { max-width: 720px; }
.u-foot-note { text-align: center; font-size: 14.5px; color: #666; margin: 8px 0 0; }
.u-left-reset { text-align: left; margin-left: 0; margin-right: 0; }
.u-lead-17 { font-size: 14.5px; color: var(--muted); line-height: 1.65; }
.u-p15a { font-size: 14.5px; margin: 8px 0; }
.u-p15b { font-size: 14.5px; margin: 12px 0 0; }
.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-text); }
.u-c-muted { color: var(--muted); }

/* ---------- 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;
  --orange-text: #ff7e00;
  --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; }
/* Help icon (Kuang, Oct 20): the nav's Help text link became a Lucide
   circle-help icon sitting right of the theme toggle — same box, same
   hover, so the pair reads as one control group. */
.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  color: var(--muted); text-decoration: none;
}
.help-icon:hover { color: var(--teal); background: var(--bg-soft); }
.help-icon svg { width: 21px; height: 21px; }
/* Header icon group (Kuang, Oct 20 19:12, on the help pages: "can we
   have the two icon next to each other"): the theme toggle and the help
   icon form ONE flex item in the bar, so the bar's
   justify-content: space-between cannot split the pair apart — the two
   icons always sit next to each other on the right. */
.header-icons { display: flex; align-items: center; gap: 8px; flex: none; }
.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"] .uplift-badge { background: var(--teal-bg); }
: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; font-size: 14.5px; color: var(--muted); }
.related-reading { font-size: 14.5px; margin-top: 14px; }
.prose h3 { font-size: 16px; margin: 28px 0 8px; }
.prose .chart-label, .prose .chart-val, .article-body .chart-label, .article-body .chart-val { font-size: 14.5px; }

.prose table, .article-body table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 14.5px; color: var(--muted); }
.prose th, .prose td, .article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
.prose th, .article-body th { background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

.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: 14.5px; }

.prose p strong, .prose li strong, .prose td strong, .article-body td strong, .takeaways strong { font-weight: 400; color: var(--ink); }

.h-ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 7px; color: var(--teal); flex: none; }

.sample-badge { display: inline-block; background: var(--amber-bg); color: var(--amber); font-weight: 700; font-size: 13px; padding: 8px 16px; border-radius: 20px; margin: 8px 0 20px; border: 1px solid var(--line); }
.sr-dl-row { text-align: center; margin: 4px 0 26px; }
.sr-doc-page { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 14px rgba(13,42,74,.10); margin: 0 0 22px; }
.sample-cta { text-align: center; margin-top: 40px; }
.sample-cta h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.8px; margin-bottom: 8px; }
.sample-cta p { color: var(--muted); font-size: 14.5px; }
.sample-cta .btn { margin: 4px 6px; }

.bf-ok { background: var(--green); }
.bf-warn { background: var(--amber); }
.bf-bad { background: var(--red); }
.bf-teal { background: var(--teal); }
.bf-mute { background: var(--muted); }@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spin, .progress-card .spin { animation: none !important; }
  .pulse-dot, .fs-step.active .dot::after, .icobtn.is-busy svg { animation-duration: 2.4s !important; }
}

/* Q16 / X5 item 1 (Kuang, Oct 17 22:15): buttons answer a press — a subtle
   scale while held (feedback; tens a day, so 160ms and .97 only). Transform
   only, so the existing colour hovers are untouched. Reduced motion: no
   scale. */
.btn, .auth-btn, .btn-google { transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color .15s, color .15s, border-color .15s; }
.btn:active:not(:disabled), .auth-btn:active:not(:disabled), .btn-google:active { transform: scale(0.97); }@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled), .auth-btn:active:not(:disabled), .btn-google:active { transform: none; }
}

/* RESTORED (style-finish-1021, verification — shared removals needed by both surfaces):
   rules the HTML-corpus trim removed whose classes are rendered
   by this surface's JS. Restored verbatim from the trim backups. */

.tag.ok { background: var(--green-bg); color: var(--green); }

.tag.err { background: var(--red-bg); color: var(--red); }

/* === app property styles === */
body { font-size: 13px; }
/* SeraVerra 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: var(--on-orange); 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-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); }


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

/* 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: 54px; 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: 30px; 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; }
}

/* 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: 14.5px; 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: 20px; 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: 13px; margin-top: 6px; }
.field-err.ok { color: #2e7d6f; }

.co-coupon-row { display: flex; gap: 10px; padding-bottom: 6px; }
.co-coupon-row .field-input { flex: 1; }
.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: 13px; 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); }@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .co-row2 { grid-template-columns: 1fr; }
}

/* 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;
}


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

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


/* 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:flex-start;justify-content:space-between;gap:8px;}
.rep-tab.active{color:var(--teal);border-bottom-color:var(--orange,var(--orange));}
.rep-panel.active{display:block;}


/* ---------- Admin standardization (2026-10-14: inline styles moved here) ---------- */
.page-h1 { font-size: 30px; 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: 14.5px; font-family: inherit; background: var(--surface); color: var(--ink); }
/* The .panel prefix outranks portal/app.css's :root :is(input...)
   padding shorthand, which would otherwise cap this at 14px. */
.panel .key-input-wrap .key-input { padding-right: 42px; }
select { font-family: inherit; font-size: 14.5px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); }
.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-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-w400 { max-width: 400px; }

.u-fs13 { font-size: 13px; }
.u-note-m { font-size: 12px; color: var(--muted); margin: 10px 0 0; }


/* ================= 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;}
.tool-form label {display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px;}
/* Option-row labels (checkbox rows) are their own role — like .bot-opts
   pills, they keep their component style, not the field-label standard. */
.tool-form label.u-flex-label {display: flex; font-weight: 400; margin-bottom: 0;}
.tool-form label.u-fs145 {display: inline; font-weight: 400; margin-bottom: 0;}
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: 13px; 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: 14.5px; 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: 13px; 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: 14.5px; 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: 14.5px; 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: 14.5px; 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: 13px; 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: 13px;}

/* ===== 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: 14.5px; 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); color: var(--muted); 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: 13px; 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: 13px; 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: 14.5px; 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: 30px; 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: 14.5px; 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: 13px;}
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: 14.5px; 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: 14.5px; 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: 20px; 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: 14.5px; 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: 14.5px; 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: 17px; font-weight: 800; margin: 0 0 6px;}
body.pg-robotsval .check-card p {font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55;}
body.pg-robotsval .form-msg {font-size: 14.5px;}

/* ===== 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: 14.5px; 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: 14.5px; 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: 14.5px; 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: 14.5px; 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: 14.5px; 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: 14.5px; 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;}
}
/* (robotsgen tool-form labels take the general .tool-form label rule above) */
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: 14.5px; 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: 14.5px;}
body.pg-robotsgen .output-pane pre {background: var(--teal-ink); color: var(--teal-bg); border-radius: 14px; padding: 20px;
  font-size: 14.5px; 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-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: 20px;}
body.pg-parity .parity-pane .word-count {font-size: 30px; 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: 14.5px; 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: 14.5px;
  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: 20px;
  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: var(--on-orange); 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: 14.5px; 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: 14.5px; 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: 20px; font-weight: 800; color: var(--teal);}
body.pg-papers .masthead .aaddr {font-size: 14.5px; 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-text); margin: 30px 0 10px;}
body.pg-papers .doc-sheet h2.doc-title, body.pg-agencyrep .doc-sheet h2.doc-title {font-size: 36px; 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: 20px; 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: 14.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: 20px; color: var(--orange-text); font-weight: 800;}
body.pg-papers .stat-card .lbl, body.pg-agencyrep .stat-card .lbl {font-size: 14.5px; 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: 13px; color: var(--ink-2); margin-top: 6px; max-width: 170px; line-height: 1.4;}
body.pg-papers .donut-box .d-num {font-size: 30px; 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: 13px; 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: 14.5px; 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: 14.5px; 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-text); letter-spacing: 1.2px;}
body.pg-papers .step .s-title {font-size: 16px; font-weight: 800; color: var(--teal); margin: 5px 0 6px;}
body.pg-papers .step .s-body {font-size: 13px; 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: 14.5px; 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: 30px; letter-spacing: -0.6px; margin-bottom: 8px;}
body.pg-agencyrep .doc-head p, body.pg-papers .doc-head p {color: var(--muted); font-size: 14.5px; 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: 14.5px; 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: 20px; 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: 20px; 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: 16px; font-weight: 800; color: var(--doc-ink);}
body.pg-agencyrep .finding .f-num {color: var(--orange-text);}
body.pg-agencyrep .finding .f-text {font-size: 14.5px; 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: 14.5px; 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: 14.5px; 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;}
}@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: 13px; 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: 13px; }
body.pg-llmsgen .sec-title { flex: 1; margin-right: 8px; padding: 8px 10px; font-size: 14.5px; 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: 14.5px; }
#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: 14.5px; 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: 13px; margin-bottom: 6px; }
#report-root .rep-b { font-weight: 700; }
#report-root .rep-note-p { font-size: 14.5px; margin-top: 4px; }
#report-root .rep-bench-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }
#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: 13px; color: var(--muted); }
#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: 14.5px; }
#report-root .rep-hist-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13px; }
#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; }
/* Mockup shape: the Start button floats CENTERED over the blurred body —
   same spot on every panel regardless of content height. */
#report-root .mon-panel-body { position: relative; flex: 1; min-height: 92px; }
#report-root .aeo-upsell-grid .mon-cta { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; }
#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 118px; font-size: 13px; font-weight: 600; color: var(--ink); }
#report-root .aeo-rate-track { flex: 1; height: 12px; background: var(--surface-2); 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 52px; font-size: 13px; color: var(--muted); text-align: right; }
#report-root .aeo-record { text-align: left; }
#report-root .aeo-record > h3 { font-size: 20px; margin: 2px 0 8px; }
#report-root .aeo-record .viz-card { margin-top: 14px; padding-left: 16px; padding-right: 16px; }
/* AEO record: the two top charts share one row (Kuang, 2026-10-15). */
#report-root .aeo-rec-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 16px; }
#report-root .aeo-rec-two .viz-card { margin-top: 14px; height: 100%; }@media (max-width: 900px) { #report-root .aeo-rec-two { grid-template-columns: 1fr; } }
#report-root .aeo-rec-h { font-size: 14.5px; margin: 0 0 10px; }
#report-root .aeo-matrix td.aeo-hit { color: var(--ink); font-weight: 700; }
#report-root .aeo-skel-bar { height: 13px; border-radius: 6px; background: var(--surface-2); 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); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-align: center; }
#report-root .aeo-peek-num { font-size: 20px; 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; }
/* Static report: the real AEO record, shown locked behind the house blur. */
#report-root .aeo-locked { max-height: 560px; overflow: hidden; border-radius: 12px; margin-top: 14px; }
#report-root .aeo-blur .rep-ghost { opacity: 1; margin-top: 4px; }
/* Compact pass (2026-10-15 QA): teaser panels were 433px tall; Kuang's rule is
   fit more in one page view. Trim the vertical drivers inside the AEO grid. */
#report-root .aeo-upsell-grid .mon-panel { padding: 12px 16px; }
#report-root .aeo-upsell-grid .mon-panel-head { margin-bottom: 2px; }
#report-root .aeo-upsell-grid .aeo-rate-row { margin: 3px 0; }
#report-root .aeo-upsell-grid .aeo-skel-bar { height: 10px; margin: 5px 0; }
#report-root .aeo-upsell-grid .aeo-peek { margin: 5px 0 2px; gap: 8px; }
#report-root .aeo-upsell-grid .aeo-peek-fig { padding: 6px 10px; }
#report-root .aeo-upsell-grid .aeo-peek-num { font-size: 20px; }
#report-root .aeo-upsell-grid .mon-future-track { height: 11px; }
#report-root .aeo-upsell-grid .viz-card { margin-top: 8px; padding: 10px 12px; }
/* Round 2 (same QA pass): the measured drivers were the CTA block (104px),
   the head (51-77px) and one panel's blurred question table (213px). Cap the
   blurred peek so it hints instead of unfolding, tighten head + CTA. */
#report-root .aeo-upsell-grid .aeo-blur { max-height: 118px; overflow: hidden; }
#report-root .aeo-upsell-grid .mon-panel-head h3 { font-size: 14.5px; line-height: 1.25; }
#report-root .aeo-upsell-grid .mon-lock { padding: 2px 8px; font-size: 11.5px; }
#report-root .aeo-upsell-grid .mon-cta { gap: 8px; }
#report-root .aeo-upsell-grid .mon-start { padding: 8px 16px; font-size: 14.5px; }
#report-root .aeo-upsell-grid .mon-note { font-size: 12px; line-height: 1.35; }
#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: var(--on-orange); border: none; border-radius: 8px; padding: 10px 20px; font-size: 14.5px; 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: 14.5px; 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: 13px; }

#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: 14.5px; color: var(--muted); }
#report-root .rep-list { margin: 14px 0 6px 20px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
#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: 400; }
#report-root .rep-pm-note { font-size: 13px; 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: 42px; 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); }
#report-root .rep-p145 { font-size: 14.5px; }

/* ===== 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: 30px; letter-spacing: -0.6px; margin-bottom: 6px; }
body[data-section="scan"] .wizard h1 { font-size: 30px; 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: 14.5px; }



/* --- 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; }
:root[data-theme="dark"] .test-banner { background: var(--surface-2); border-color: #8a6d1f; color: #e8c98a; }
: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); }
.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: 13px; }
.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: 13px; cursor: pointer; }
.hist-pager-btn:disabled { opacity: .4; cursor: default; }
.hist-page-lab { color: var(--muted); font-size: 13px; }
.monc-ov-grid .viz-card { margin: 0; }
.monc-ov-grid > .viz-card { height: 100%; }
.monc-two-eq .viz-card { margin: 0; height: 100%; }
.monc-reports-grid .viz-card { margin: 0; height: 100%; }
/* 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: 13px; 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; }
/* Columns end together (Kuang, 2026-10-15): the last card in each
   column flexes to the row's full height — no white space under the
   shorter side. The watch card spreads its rows to fill. */
.monc-three .monc-col > .viz-card:last-child { flex: 1; }
.monc-col .viz-card { margin: 0; }

.switch { font-size: 13px; }

.btn { font-size: 13px; padding: 10px 20px; }

/* Public share page (moved out of share.html 2026-10-16 — every page on the stylesheet) */
.share-pg { font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); margin: 0; background: #F7F4EC; font-size: 13px; }
.share-pg .wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
.share-pg .brandbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--teal); padding-bottom: 12px; }
.share-pg .brandname { font-size: 21px; font-weight: 800; color: var(--teal); }
.share-pg .brandname span { color: var(--orange); }
.share-pg .brandbar img { max-height: 40px; max-width: 180px; }
.share-pg h1 { font-size: 23px; margin: 20px 0 2px; }
.share-pg .sub { color: var(--muted); margin: 0 0 16px; }
.share-pg .card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 14px 0; }
.share-pg .scoreband { display: flex; gap: 20px; align-items: center; }
.share-pg .scorebig { font-size: 50px; font-weight: 800; color: var(--teal); line-height: 1; }
.share-pg .gradechip { display: inline-block; color: #fff; font-weight: 800; border-radius: 8px; padding: 3px 12px; font-size: 16px; background: var(--teal); }
.share-pg .up { color: var(--green); font-weight: 700; }
.share-pg .down { color: var(--red); font-weight: 700; }
.share-pg h2 { font-size: 14px; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.share-pg ul { margin: 0; padding-left: 18px; }
.share-pg li { margin: 3px 0; }
.share-pg .muted { color: var(--muted); }
.share-pg .pdfbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; border-radius: 9px; padding: 9px 16px; margin-top: 6px; }
.share-pg .foot { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 26px; }

/* Claude portal build (2026-10-16): x- layout helpers used by the generated screens.
   Presentation only — no behavior. Component styles stay in shared.css. */
.x-field { display: flex; flex-direction: column; gap: 4px; }
.x-field input { width: 100%; }
.x-full { width: 100%; justify-content: center; }
.x-row .show-pw { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.x-field .show-pw { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.x-grid12 .wizard { max-width: none; margin: 0; }

/* Claude portal build: sites page + shared bits. */
.muted { color: var(--muted); }
.x-search { position: relative; flex: 1 1 280px; max-width: 420px; display: block; }
.x-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.x-search input { width: 100%; padding-left: 36px; }
.x-mast-actions .report-actions { display: flex; gap: 8px; align-items: center; }
body.pg-report .rank-card { display: block; }
body.pg-report .mode-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
body.pg-report .mode-toggle button { padding: 0 16px; height: 32px; background: transparent; border: 0; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
body.pg-report .mode-toggle button.active { color: var(--teal); background: var(--bg-soft); }

/* Report panels: only the active tab shows (the x-stack flex must not win). */
body.pg-report .rep-panel { display: none; }
body.pg-report .rep-panel.active { display: block; }
body.pg-report .rep-panel.x-stack.active { display: flex; }
body.pg-report .x-mast { padding-top: 64px; }
body.pg-report .plan-table td:nth-child(4) { white-space: nowrap; }
body.pg-report .pro-group-header { background: transparent; border: 0; padding: 0; }
body.pg-report .plan-box-msg { white-space: pre-wrap; }@media print { body.pg-report .rep-panel { display: block !important; } }
body.pg-report .x-mast { align-items: start; }
/* Masthead actions: their own right-aligned row above the grid cells —
   absolute positioning clipped the verdict at app content widths. */
body.pg-report .x-mast { padding-top: 24px; }
body.pg-report .x-mast-actions { position: static; grid-column: 1 / -1; justify-self: end; }
.x-pack .btn { margin-top: 16px; width: 100%; }
.x-field{margin-bottom:16px}
.x-rep-row .field-input{flex:1;margin:0}
.x-full{margin-top:32px}
.bots{display:flex;flex-direction:column}
.add-row-btn{display:inline-flex;align-items:center;gap:6px;margin-top:4px}
.type-tabs{display:flex;gap:8px;flex-wrap:wrap}
.type-tab{padding:8px 16px;border:1.5px solid var(--border);border-radius:999px;background:var(--surface);font:inherit;font-size:13px;font-weight:600;cursor:pointer;color:var(--muted)}
.type-tab.active{background:var(--teal);border-color:var(--teal);color:#fff}
body.pg-robotsval .line-table td.num{color:var(--muted);white-space:nowrap}
body.pg-robotsval .line-table td code{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace;font-size:12.5px}

/* Q19 / A2+A6+A7 (Kuang, Oct 17 22:18): admin clean-up. Titles are plain
   single-colour (no brand-head) and the marketing footer is gone (build).
   Funnel range = a small segmented control beside its heading, the active
   range marked. Phones: ONE nav — the section tab strip (with a fade as the
   scroll hint); the header's hamburger goes and Log out sits in the bar. */
body[data-admin-gate] .acct-content > h1.page-h1 { letter-spacing: -0.6px; margin-bottom: 6px; }  /* the spacing brand-head gave it */
.admin-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-cardhead h2 { margin: 0; }
.admin-cardhead .admin-sub { font-weight: 400; margin: 0; }
.seg { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; padding: 2px; gap: 2px; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--teal); color: #fff; }@media (max-width: 820px) {
  body[data-admin-gate] .app-header .hamburger { display: none; }
  body[data-admin-gate] .app-header .site-nav { display: flex; position: static; width: auto; height: auto; padding: 0; background: none; flex-direction: row; }
  body[data-admin-gate] .app-header .site-nav a { padding: 0; border: 0; font-size: 14.5px; }
  body[data-admin-gate] .side-nav { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
}

/* G5 one-CSS completion (style-finish-1021): the app-shell rules the admin
   pages use, previously reachable only via the layered /portal/app.css link
   (audit V1). Copied verbatim from portal/app.css so /app.css alone carries
   everything admin renders; the portal link is removed from admin pages. */
.brandrow img { height: 30px; width: auto; display: block; }
.brandrow a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brandrow .brand-text { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.brandrow .brand-text em { font-style: normal; color: var(--orange-text); }
.navgroup > summary { list-style: none; cursor: pointer; user-select: none; }
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary::marker { content: ""; }
.navgroup > summary:hover { color: var(--ink); }
.navgroup .navchev { width: 14px; height: 14px; flex: none; margin-left: auto; transition: transform .15s ease; }
.navsub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 18px; padding-left: 12px; border-left: 2px solid var(--border); }
.navgroup:not([open]) .navsub { display: none; }
.navsub-link { display: block; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--muted); text-decoration: none; }
.navsub-link.active { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.navsub-link:hover { background: var(--bg-soft); color: var(--ink); }@media print { body:has(#invoice-view:not([hidden])) :is(.side, .apphead, #tokens-main),
  #invoice-view > :not(.invoice-card) { display: none !important; } }@media print { body:has(#invoice-view:not([hidden])) :is(.shell, .shell > div, .content, #invoice-view) { display: block !important; width: auto !important; min-width: 0 !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; } }
.logout-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; flex: none;
  border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
}
.logout-btn:hover { color: var(--teal); background: var(--bg-soft); }
.logout-btn svg { width: 19px; height: 19px; flex: none; }
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side .brandrow { display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px; }
.navitem { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.navitem svg { width: 17px; height: 17px; flex: none; }
.side .sp { flex: 1; }
.apphead { height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--border); background: var(--surface); }
.content { padding: 28px 32px 40px; max-width: 1200px; }@media (min-width: 821px) { body[data-admin-gate] .shell { grid-template-columns: 200px 1fr; } }@media (min-width: 821px) { body[data-admin-gate] .shell > div { min-width: 0; } }@media (min-width: 821px) { body[data-admin-gate] .content { max-width: none; padding: 28px 20px 40px; } }@media (min-width: 821px) { body[data-admin-gate] .panel { padding: 20px; } }
input[type="radio"], input[type="checkbox"] { accent-color: var(--teal); }@media (max-width: 820px) { .shell { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; position: relative; } }@media (max-width: 820px) { .shell > div { display: contents; } }@media (max-width: 820px) { .apphead { order: 1; height: auto; flex-wrap: wrap; justify-content: flex-start; gap: 10px 8px; padding: 12px 16px; } }@media (max-width: 820px) { .apphead::before { content: ""; order: 1; flex-basis: 100%; height: 0; } }@media (max-width: 820px) { .apphead > * { order: 2; } }@media (max-width: 820px) { .apphead > .theme-toggle, .apphead > .js-logout { order: 0; } }@media (max-width: 820px) { .apphead > .theme-toggle { margin-left: auto; } }@media (max-width: 820px) { .side .brandrow { position: absolute; top: 12px; left: 16px; padding: 0; height: 36px; z-index: 2; } }@media (max-width: 820px) { .side .brandrow img { height: 22px; width: auto; display: block; } }@media (max-width: 820px) { .side .sp, .side .rail-label { display: none; } }@media (max-width: 820px) { .navgroup { display: contents; } }@media (max-width: 820px) { .side > .navitem, .navgroup > summary { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 2px; border-radius: 10px; font-size: 11px; line-height: 1.2; text-align: center; } }@media (max-width: 820px) { .navitem[data-short] { font-size: 0; } }@media (max-width: 820px) { .navitem[data-short]::after { content: attr(data-short); font-size: 11px; } }@media (max-width: 820px) { .navgroup .navchev { display: none; } }@media (max-width: 820px) { .navgroup::details-content { order: 10; flex-basis: 100%; min-width: 0; } }@media (max-width: 820px) { .navgroup:not([open])::details-content { display: none; } }@media (max-width: 820px) { .navsub { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; margin: 2px 0 4px; padding: 6px 0 2px; border-left: 0; border-top: 1px solid var(--border); } }@media (max-width: 820px) { .navsub-link { white-space: nowrap; flex: none; } }@media (max-width: 820px) { .navsub { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); } }@media (max-width: 820px) { .content { order: 3; padding: 20px 16px 32px; min-width: 0; } }

/* Login layout (style-finish-1021, audit V3 / DECISIONS D12): moved out of
   admin/src/login.html's private <style> block into the group sheet.
   Centered sign-in card: no rail, no top bar. Card, button and input specs
   come from the sheet; this section is layout only. */
body.pg-login { background: var(--bg-soft); }
.login-wrap { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 48px 16px; }
.login-card { width: 100%; max-width: 400px; padding: 32px; }
.login-card .brandrow { display: flex; justify-content: center; margin-bottom: 24px; }
.login-card .brandrow img { height: 30px; width: auto; }
.login-card h1 { font-size: 24px; letter-spacing: -0.4px; line-height: 1.2; text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.login-card .btn { width: 100%; }
.login-card .field-label { margin-top: 16px; }
.login-card input:not([type="checkbox"]) { width: 100%; }
.login-card .show-pw { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 8px 0 0; cursor: pointer; }
.login-card .show-pw input { width: 14px; height: 14px; }
.login-card .auth-error { margin: 16px 0 0; font-size: 13px; }
.login-card button[type="submit"] { margin-top: 24px; }

/* RESTORED (style-finish-1021, verification — app/admin JS):
   rules the HTML-corpus trim removed whose classes are rendered
   by this surface's JS. Restored verbatim from the trim backups. */
/* Keys page (admin-keys-eye-icon-1020): the reveal eye sits INSIDE the
   value box's right end — there is no separate Show button. The input
   keeps its full width; right padding keeps text out from under the
   icon. */
.key-input-wrap { position: relative; display: block; }
.key-eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; padding: 5px; background: none; border: none; border-radius: 6px; color: var(--muted); cursor: pointer; }
.key-eye:hover { color: var(--ink); }
.key-eye:disabled { opacity: .5; cursor: default; }
.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; }
.u-note-div { font-size: 11px; color: var(--muted); font-weight: 400; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 230px; }
/* Legacy robots generator: local pieces (moved from inline styles 2026-10-14) */

.btn-xs { font-size: 13px; padding: 7px 14px; }
.pill.warn { background: #fff6ea; color: var(--orange-text); }
 /* M10: #b85300 on --amber-bg is 4.48:1; this tint gives 4.59:1 */
:root[data-theme="dark"] .pill.warn { background: var(--amber-bg); }

/* RESTORED (style-finish-1021, verification — shared removals needed by app/admin JS only):
   rules the HTML-corpus trim removed whose classes are rendered
   by this surface's JS. Restored verbatim from the trim backups. */

.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }


/* ---------- 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: 30px; margin-bottom: 10px; }

.service-card p { color: var(--muted); margin-bottom: 24px; }

.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;}

.btn-xs { padding: 4px 10px; font-size: 12px; }

/* #990540: report page shell frames — reserved space so the shell
   paints at full layout from the route alone, before any fetch. */
.rep-frame-top{min-height:64px}
.rep-frame-verdict{min-height:180px}
.rep-shell-note{padding:28px 16px;text-align:center;color:#667085}

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 42px; }
.pw-eye { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; padding: 5px; background: none; border: none; border-radius: 6px; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--ink, var(--text)); }
