/* WebIgnite — modern SaaS surface: soft neutrals, glass nav, indigo→cyan accent */
:root {
  --paper: #F3F5F9;
  --surface: #FFFFFF;
  --well: #EEF1F7;
  --ink: #0F172A;
  --muted: #5B6677;
  --rule: #E2E6EF;
  --accent-1: #4F46E5;
  --accent-2: #06B6D4;
  --signal: #4F46E5;
  --signal-soft: #EEF0FD;
  --on-signal: #FFFFFF;
  --pass: #15803D;
  --warn: #B45309;
  --fail: #DC2626;
  --info: #0E7490;
  --focus: #4F46E5;
  --grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 20px 48px -12px rgba(15, 23, 42, 0.22);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B0F1A; --surface: #121726; --well: #0E1320; --ink: #EDF0F7; --muted: #8E98AE;
    --rule: #232B3E; --accent-1: #818CF8; --accent-2: #22D3EE; --signal: #818CF8; --signal-soft: #1C2340; --on-signal: #0B0F1A;
    --pass: #4ADE80; --warn: #FBBF24; --fail: #FB7185; --info: #67E8F9; --focus: #818CF8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3); --shadow-md: 0 8px 28px -8px rgba(0,0,0,0.55); --shadow-lg: 0 24px 56px -16px rgba(0,0,0,0.65);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B0F1A; --surface: #121726; --well: #0E1320; --ink: #EDF0F7; --muted: #8E98AE;
  --rule: #232B3E; --accent-1: #818CF8; --accent-2: #22D3EE; --signal: #818CF8; --signal-soft: #1C2340; --on-signal: #0B0F1A;
  --pass: #4ADE80; --warn: #FBBF24; --fail: #FB7185; --info: #67E8F9; --focus: #818CF8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3); --shadow-md: 0 8px 28px -8px rgba(0,0,0,0.55); --shadow-lg: 0 24px 56px -16px rgba(0,0,0,0.65);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--grad); color: #fff;
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip:focus { left: 16px; }
code, kbd, pre, textarea.code, .mono { font-family: var(--mono); font-size: 0.86em; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px 16px 20px;
  border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px);
}
.rail-top { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand svg rect { filter: drop-shadow(0 2px 6px rgba(79,70,229,.35)); }
.menu-btn { display: none; }
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%; padding: 9px 36px 9px 12px; border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--well); color: var(--ink); font: inherit; font-size: 14px; transition: border-color .15s, background .15s;
}
.search-wrap input:focus { background: var(--surface); border-color: var(--accent-1); }
.search-wrap kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; }
nav h2 { font-size: 12px; font-weight: 700; color: var(--muted); margin: 20px 0 6px; letter-spacing: 0.02em; }
nav h2:first-child { margin-top: 6px; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav a { display: block; padding: 7px 10px; margin-left: -10px; border-radius: 10px; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: background .12s; }
nav a:hover { background: var(--well); }
nav a[aria-current="page"] { background: var(--grad); color: #fff; font-weight: 600; box-shadow: var(--shadow-sm); }
.rail-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

main { padding: 44px clamp(16px, 4vw, 60px) 90px; outline: none; min-width: 0; }
.wrap { max-width: 1080px; }

/* ---------- home ---------- */
.hero { position: relative; padding: 28px 0 48px; margin-bottom: 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -220px; right: -160px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent-1) 45%, transparent), transparent 70%); pointer-events: none; z-index: 0;
}
.hero::after {
  content: ""; position: absolute; top: 40px; right: 220px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, color-mix(in srgb, var(--accent-2) 40%, transparent), transparent 70%); pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 18px;
  font-weight: 800; max-width: 15ch;
}
.hero p.lede { font-size: 18px; color: var(--muted); max-width: 56ch; margin: 0 0 28px; }
.probe { display: flex; gap: 8px; max-width: 720px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow-md); padding: 6px; }
.probe input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 16px var(--sans); padding: 10px 10px 10px 16px; }
.probe input:focus { outline: none; }
.probe:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-1) 30%, transparent), var(--shadow-md); }
.probe button { border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 600 15px var(--sans); padding: 0 24px; cursor: pointer; box-shadow: var(--shadow-sm); }
.probe button:hover { filter: brightness(1.05); }
.probe-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; max-width: 980px; }
.probe-results:empty { display: none; }
.probe-cell { padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-sm); min-width: 0; }
.probe-cell .k { font-size: 13px; color: var(--muted); font-weight: 500; }
.probe-cell .v { font-size: 28px; font-weight: 800; line-height: 1.15; margin: 3px 0; overflow-wrap: anywhere; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.probe-cell .s { font-size: 13px; color: var(--muted); }
.probe-cell a { font-size: 13px; color: var(--accent-1); font-weight: 600; }

.index { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.index section {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px 20px 8px;
  box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s;
}
.index section:hover { box-shadow: var(--shadow-md); }
.index section h2 { font-size: 18px; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 9px; }
.index section h2 .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--grad); flex-shrink: 0; }
.index ul { list-style: none; margin: 8px 0 0; padding: 0; }
.index li { border-top: 1px solid var(--rule); }
.index li:first-child { border-top: 0; }
.index li a { display: block; padding: 11px 0; text-decoration: none; border-radius: 8px; transition: padding-left .12s; }
.index li a strong { display: block; font-weight: 600; font-size: 14.5px; }
.index li a span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.index li a:hover { padding-left: 4px; }
.index li a:hover strong { color: var(--accent-1); }

/* ---------- tool page ---------- */
.tool-head { margin-bottom: 28px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent-1); }
.tool-head h1 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.05; margin: 0 0 10px; font-weight: 800; letter-spacing: -0.025em; }
.tool-head p { margin: 0; color: var(--muted); max-width: 64ch; font-size: 15.5px; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row > .grow { flex: 1 1 260px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.row .field { margin-bottom: 0; }
label, .label { font-size: 13.5px; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=url], input[type=number], input[type=search]:not(#toolSearch), select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--well);
  border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 10px 12px; transition: border-color .15s, background .15s;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
textarea.code { font-size: 13.5px; tab-size: 2; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-1); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-1) 16%, transparent); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.checks label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px var(--sans);
  padding: 10px 20px; border-radius: 999px; border: 0; background: var(--grad); color: #fff;
  cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-sm); transition: filter .12s, box-shadow .12s, transform .08s;
}
.btn:hover { filter: brightness(1.05); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--well); color: var(--ink); border: 1px solid var(--rule); font-weight: 500; box-shadow: none; }
.btn.secondary:hover { border-color: var(--accent-1); color: var(--accent-1); filter: none; box-shadow: none; }
.btn.small { padding: 6px 14px; font-size: 13.5px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seg { display: inline-flex; background: var(--well); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 13.5px var(--sans); padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: background .12s, color .12s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- results ---------- */
.result:empty { display: none; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 0; }
.loading::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--rule); border-top-color: var(--accent-1); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { border: 1px solid color-mix(in srgb, var(--fail) 35%, var(--rule)); background: color-mix(in srgb, var(--fail) 7%, var(--surface)); padding: 13px 15px; border-radius: var(--r-md); margin: 12px 0; }
.error strong { color: var(--fail); }

.scoreline { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin: 6px 0 24px; }
.gauge { display: inline-flex; align-items: center; gap: 14px; }
.gauge svg { display: block; }
.gauge .num { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.gauge .lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; }
.facts div { min-width: 0; }
.facts b { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 2px; }
.checklist li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 14px; padding: 12px 10px; border-radius: 10px; }
.checklist li:hover { background: var(--well); }
.checklist .name { font-weight: 600; }
.checklist .detail { color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.checklist .fix { color: var(--muted); font-size: 14px; margin-top: 2px; }
.checklist .fix code { color: var(--ink); background: var(--well); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.6; text-align: center; height: fit-content; }
.tag.pass { color: var(--pass); background: color-mix(in srgb, var(--pass) 14%, transparent); }
.tag.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.tag.fail { color: var(--fail); background: color-mix(in srgb, var(--fail) 14%, transparent); }
.tag.info { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
h2.section { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 28px 0 10px; }
h3.sub { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-md); margin-bottom: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; font-size: 12.5px; color: var(--muted); background: var(--well); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.wrap-any { overflow-wrap: anywhere; word-break: break-word; min-width: 180px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

pre.out, .out-box {
  background: var(--well); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 13px 15px; margin: 0 0 12px;
  overflow: auto; max-height: 560px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
}
pre.out.nowrap { white-space: pre; overflow-wrap: normal; }
.line-hit { background: var(--signal-soft); display: inline-block; width: 100%; }
mark { background: color-mix(in srgb, var(--accent-1) 28%, transparent); color: var(--ink); border-radius: 3px; padding: 0 1px; }
mark.alt { background: color-mix(in srgb, var(--accent-2) 35%, transparent); }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.stat { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-sm); }
.stat .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .k { font-size: 13px; color: var(--muted); margin-top: 2px; }

.bar { height: 10px; background: var(--well); border-radius: 999px; overflow: hidden; display: flex; margin: 6px 0 4px; }
.bar span { display: block; height: 100%; }
.waterfall { display: grid; grid-template-columns: 130px minmax(0,1fr) 70px; gap: 6px 10px; align-items: center; font-size: 14px; margin-bottom: 18px; }
.waterfall .track { height: 14px; background: var(--well); border-radius: 4px; position: relative; }
.waterfall .seg-bar { position: absolute; top: 0; bottom: 0; background: var(--muted); border-radius: 4px; }
.waterfall .seg-bar.hl { background: var(--grad); }

.dropzone {
  border: 1.5px dashed var(--rule); border-radius: var(--r-lg); padding: 36px 18px; text-align: center; cursor: pointer; background: var(--well);
  transition: border-color .15s, background .15s;
}
.dropzone:hover { border-color: var(--accent-1); }
.dropzone.over { border-color: var(--accent-1); background: var(--signal-soft); }
.dropzone strong { display: block; font-size: 17px; margin-bottom: 4px; }
.dropzone span { color: var(--muted); font-size: 14px; }
.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-list li { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-md); background: var(--well); }
.file-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--rule); }
.file-list .thumb-ph { width: 56px; height: 56px; border-radius: 10px; background: var(--rule); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.file-list .meta { font-size: 13.5px; color: var(--muted); }
.file-list .nm { font-weight: 600; overflow-wrap: anywhere; }
.saving { color: var(--pass); font-weight: 600; }
.saving.bad { color: var(--warn); }

.two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.serp { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 16px 18px; max-width: 600px; font-family: Arial, sans-serif; box-shadow: var(--shadow-sm); }
.serp .u { font-size: 13px; color: var(--muted); }
.serp .t { font-size: 19px; color: #1a0dab; margin: 2px 0; line-height: 1.3; }
:root[data-theme="dark"] .serp .t { color: #8ab4f8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .serp .t { color: #8ab4f8; } }
.serp .d { font-size: 14px; color: var(--muted); }
.card-preview { border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; max-width: 500px; background: var(--surface); box-shadow: var(--shadow-sm); }
.card-preview .img { aspect-ratio: 1.91/1; background: var(--well) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.card-preview .body { padding: 12px 14px; }
.card-preview .dom { font-size: 12.5px; color: var(--muted); }
.card-preview .tt { font-weight: 600; margin: 2px 0; }
.card-preview .dd { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.verdict { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 4px; }
.verdict.pass { color: var(--pass); } .verdict.fail { color: var(--fail); }
.robots-view { counter-reset: ln; }
.robots-view .ln { display: block; padding-left: 3.4em; position: relative; }
.robots-view .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 2.6em; text-align: right; color: var(--muted); }

.tree { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; }
.tree details { padding-left: 16px; }
.tree summary { cursor: pointer; margin-left: -16px; list-style: none; }
.tree summary::before { content: "▸ "; color: var(--muted); }
.tree details[open] > summary::before { content: "▾ "; }
.tree .leaf { padding-left: 0; }
.tree .k { color: var(--info); } .tree .s { color: var(--pass); } .tree .n { color: var(--warn); } .tree .b { color: var(--fail); }
.tree .c { color: var(--muted); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 60; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--rule); padding: 2px 0 2px 12px; margin: 12px 0; }
.empty { color: var(--muted); padding: 10px 0; }
details.raw summary { cursor: pointer; font-size: 14px; color: var(--accent-1); font-weight: 600; margin: 8px 0; }
.noscript { padding: 40px; }
.print-only { display: none; }

/* ---------- audit report (SEO Checker) ---------- */
.verdict-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 22px 26px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-1) 10%, var(--surface)), color-mix(in srgb, var(--accent-2) 8%, var(--surface)));
  border: 1px solid var(--rule); margin-bottom: 8px; }
.verdict-head .gauge svg { width: 84px; height: 84px; }
.verdict-head .gauge circle { stroke-width: 8; }
.verdict-head .gauge .num { font-size: 42px; }
.verdict-head .vtext { flex: 1; min-width: 220px; }
.verdict-head .vtext .label { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.verdict-head .vtext .sub { color: var(--muted); font-size: 14.5px; margin-top: 2px; overflow-wrap: anywhere; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 26px; }
.cat-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.cat-card .nm { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.cat-card .nm b { font-size: 19px; font-weight: 800; }
.cat-track { height: 7px; border-radius: 999px; background: var(--well); overflow: hidden; }
.cat-track span { display: block; height: 100%; border-radius: 999px; }
.cat-card .sub { font-size: 12px; color: var(--muted); margin-top: 7px; }

.priority { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.priority-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r-md); border: 1px solid var(--rule); background: var(--surface); }
.priority-item .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.priority-item .dot.fail { background: var(--fail); } .priority-item .dot.warn { background: var(--warn); }
.priority-item .body strong { display: block; font-size: 14.5px; }
.priority-item .body .d { font-size: 13.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.priority-item .grp { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--well); padding: 2px 8px; border-radius: 999px; flex-shrink: 0; }

.group-block { border: 1px solid var(--rule); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.group-block summary { list-style: none; cursor: pointer; padding: 15px 18px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15.5px; }
.group-block summary::-webkit-details-marker { display: none; }
.group-block summary::before { content: "▸"; color: var(--muted); font-size: 13px; transition: transform .15s; }
.group-block[open] summary::before { transform: rotate(90deg); }
.group-block summary .ratio { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.group-block .checklist { padding: 0 10px 8px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: sticky; height: auto; z-index: 20; border-right: 0; border-bottom: 1px solid var(--rule); padding: 14px 16px; gap: 0; }
  .menu-btn { display: inline-block; font: 600 14px var(--sans); background: var(--well); color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
  .rail .search-wrap, .rail nav, .rail-foot { display: none; }
  .rail.open { max-height: 100vh; overflow-y: auto; }
  .rail.open .search-wrap, .rail.open nav, .rail.open .rail-foot { display: block; }
  .rail.open .search-wrap { margin-top: 12px; }
  main { padding: 28px 16px 70px; }
  .hero::before, .hero::after { display: none; }
  .probe-results { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two { grid-template-columns: 1fr; }
  .waterfall { grid-template-columns: 96px minmax(0,1fr) 60px; }
}
@media (max-width: 520px) {
  .probe { flex-direction: column; border-radius: var(--r-lg); }
  .probe button { padding: 12px; }
  .checklist li { grid-template-columns: 1fr; }
  .gauge .num { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- print (SEO report export) ---------- */
@media print {
  .rail, .btn-row, .no-print, form.panel { display: none !important; }
  .print-only { display: block; }
  main { padding: 0; }
  body { background: #fff; color: #000; }
  .shell { display: block; }
  .tag.pass { color: #15803D; background: none; }
  .tag.warn { color: #B45309; background: none; }
  .tag.fail { color: #DC2626; background: none; }
  .checklist li { break-inside: avoid; border-bottom: 1px solid #ddd; }
  a { color: inherit; text-decoration: none; }
}
