/* Sightline — design tokens follow the Apple-inspired DESIGN.md spec. */
:root {
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --ink-80: #333333;
  --ink-48: #7a7a7a;
  --body-muted: #cccccc;
  --divider: #f0f0f0;
  --hairline: #e0e0e0;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-1: #272729;
  --tile-2: #2a2a2c;
  --tile-3: #252527;
  --black: #000000;
  --chip: rgba(210, 210, 215, 0.64);
  --on-dark: #ffffff;
  --card: #ffffff;
  --card-ink: var(--ink);

  /* status — always paired with a glyph + label */
  --good: #1f9d55;
  --warn: #c77700;
  --bad: #d93025;
  --neutral: #8e8e93;
  --track: #e8e8ed;
  --track-dark: #3a3a3c;

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans CJK SC", sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans CJK SC", sans-serif;

  --r-sm: 8px; --r-md: 11px; --r-lg: 18px; --r-pill: 9999px;
  --s-xs: 8px; --s-sm: 12px; --s-md: 17px; --s-lg: 24px; --s-xl: 32px; --s-xxl: 48px; --s-section: 80px;
  --product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
  --nav-pad-start: 16px; --nav-pad-end: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f5f5f7;
  --ink-80: #d2d2d7;
  --ink-48: #98989d;
  --divider: #2c2c2e;
  --hairline: #3a3a3c;
  --canvas: #000000;
  --parchment: #161617;
  --pearl: #1d1d1f;
  --card: #1d1d1f;
  --primary: #2997ff;
  --primary-focus: #2997ff;
  --good: #30d158;
  --warn: #ffb340;
  --bad: #ff6961;
  --neutral: #8e8e93;
  --track: #3a3a3c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--font-text);
  font-size: 17px; line-height: 1.47; letter-spacing: -0.374px;
  color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(zh), :lang(ja), :lang(ko), :lang(ar), :lang(ur), :lang(hi) { letter-spacing: 0; }
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- global nav (also the window title bar) ---------- */
.global-nav {
  position: sticky; top: 0; z-index: 30;
  height: 44px; background: var(--black); color: var(--on-dark);
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--nav-pad-start) var(--nav-pad-end);
  font-size: 12px; letter-spacing: -0.12px;
  -webkit-app-region: drag; user-select: none;
}
.platform-darwin .global-nav { --nav-pad-start: 88px; }
.platform-win32 .global-nav, .platform-linux .global-nav { --nav-pad-end: 150px; }
.global-nav .brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: -0.224px; color: var(--on-dark); }
.global-nav .brand svg, .global-nav .brand img { width: 20px; height: 20px; border-radius: 5px; display: block; }
.global-nav nav { display: flex; gap: 22px; }
.global-nav button {
  -webkit-app-region: no-drag; background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: rgba(255, 255, 255, 0.8); font-size: 12px;
}
.global-nav button:hover, .global-nav button[aria-current="page"] { color: #fff; }
.global-nav .brand, .global-nav nav { -webkit-app-region: no-drag; }
.global-nav .nav-link { color: rgba(255, 255, 255, 0.8); padding: 6px 0; }
.global-nav .nav-link:hover { color: #fff; text-decoration: none; }
.platform-web .global-nav { padding-inline: max(22px, calc((100vw - 1100px) / 2)); }

/* ---------- frosted sub-nav ---------- */
.sub-nav {
  position: sticky; top: 44px; z-index: 20; height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(22px, calc((100vw - 1100px) / 2));
  background: color-mix(in srgb, var(--parchment) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
:root[data-theme="dark"] .sub-nav { border-bottom-color: rgba(255, 255, 255, 0.08); }
.sub-nav .title { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.231px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-nav .links { display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: -0.12px; overflow-x: auto; scrollbar-width: none; }
.sub-nav .links a { color: var(--ink); white-space: nowrap; opacity: 0.85; }
.sub-nav .links a:hover { opacity: 1; text-decoration: none; color: var(--primary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  padding: 11px 22px; font-size: 17px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.2s ease;
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0077ed; }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.on-dark .btn-secondary { color: var(--primary-on-dark); border-color: var(--primary-on-dark); }
.btn-small { padding: 7px 15px; font-size: 14px; letter-spacing: -0.224px; }
.btn-hero { padding: 14px 28px; font-size: 18px; font-weight: 300; }
.btn-utility { background: var(--ink); color: var(--canvas); border-radius: var(--r-sm); padding: 8px 15px; font-size: 14px; }
.btn-pearl { background: var(--pearl); color: var(--ink-80); border: 3px solid var(--divider); border-radius: var(--r-md); padding: 6px 14px; font-size: 14px; cursor: pointer; }
.btn-pearl:active { transform: scale(0.95); }
.btn[disabled] { opacity: 0.4; cursor: default; transform: none; }
.text-link { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-size: inherit; }
.on-dark .text-link { color: var(--primary-on-dark); }

/* ---------- tiles ---------- */
.tile { padding: var(--s-section) 22px; text-align: center; }
.tile-light { background: var(--canvas); }
.tile-parchment { background: var(--parchment); }
.tile-dark { background: var(--tile-1); color: var(--on-dark); }
.tile-dark-2 { background: var(--tile-2); color: var(--on-dark); }
.tile-dark-3 { background: var(--tile-3); color: var(--on-dark); }
:root[data-theme="dark"] .tile-dark { background: #101011; }
:root[data-theme="dark"] .tile-dark-2 { background: #0c0c0d; }
.tile .inner { max-width: 1100px; margin: 0 auto; }
section[id] { scroll-margin-top: 96px; }
.tile .inner.wide { max-width: 1440px; }
.on-dark { color: var(--on-dark); }
.on-dark .muted { color: var(--body-muted); }

.eyebrow { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.231px; margin: 0 0 8px; color: var(--ink-48); }
.hero-display { font-family: var(--font-display); font-size: 56px; font-weight: 600; line-height: 1.07; letter-spacing: -0.28px; margin: 0; }
.display-lg { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.1; margin: 0; }
.lead { font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1.14; letter-spacing: 0.196px; margin: 12px auto 0; max-width: 820px; }
.lead-airy { font-size: 24px; font-weight: 300; line-height: 1.5; }
.tagline { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.231px; margin: 0; }
.caption { font-size: 14px; line-height: 1.43; letter-spacing: -0.224px; }
.muted { color: var(--ink-48); }
.fine { font-size: 12px; line-height: 1.3; letter-spacing: -0.12px; }

/* ---------- search ---------- */
.search {
  margin: 40px auto 0; max-width: 680px; display: flex; gap: 10px; align-items: center;
}
.search .field {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 52px;
  background: var(--card); border: 1px solid rgba(0, 0, 0, 0.08); border-radius: var(--r-pill); padding: 0 20px;
}
:root[data-theme="dark"] .search .field { border-color: rgba(255, 255, 255, 0.14); }
.search .field:focus-within { border-color: var(--primary-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-focus) 25%, transparent); }
.search svg { width: 16px; height: 16px; color: var(--ink-48); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; min-width: 0; }
.search .btn { height: 52px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px auto 0; max-width: 820px; }
.chips-label { width: 100%; margin-bottom: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 9px 16px; font-size: 14px; letter-spacing: -0.224px; transition: transform .12s ease;
}
.chip:active { transform: scale(0.95); }
.chip[aria-pressed="true"] { border: 2px solid var(--primary-focus); padding: 8px 15px; }
.chip svg { width: 16px; height: 16px; color: var(--ink-48); }
.chip[aria-pressed="true"] svg { color: var(--primary); }
.chip-disabled { opacity: 0.55; cursor: default; }
.badge { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-pill); background: var(--chip); color: var(--ink-80); }
.on-dark .badge { background: rgba(255,255,255,0.14); color: #fff; }
.feature-card { text-align: start; padding: 4px 4px 12px; }
.feature-card svg { color: var(--primary-on-dark); }
.feature-card .name { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.231px; margin: 12px 0 6px; }
.feature-card .badge { margin-bottom: 6px; }
.feature-card .desc { color: var(--body-muted); font-size: 14px; letter-spacing: -0.224px; margin: 0 0 8px; }
.feature-more { font-size: 14px; letter-spacing: -0.224px; color: var(--body-muted); margin-top: 8px; }
.feature-more ul { margin: 0 0 8px; padding-inline-start: 18px; }
.feature-more li { margin: 3px 0; }
.feature-more strong { color: #fff; }
.web-note { margin: 18px auto 0; font-size: 14px; color: var(--ink-48); }
.web-note a { font-weight: 600; }
.code-box { position: relative; background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 12px 14px; font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 12px; letter-spacing: 0; white-space: pre; overflow-x: auto; text-align: start; }
.error-banner { margin: 20px auto 0; max-width: 680px; color: var(--bad); font-size: 14px; }

/* ---------- utility cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: start; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--card); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: var(--s-lg);
}
.card.clickable { cursor: pointer; transition: transform .15s ease; }
.card.clickable:active { transform: scale(0.98); }
.cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.cat-card .name { font-size: 17px; font-weight: 600; letter-spacing: -0.374px; }
.cat-card .counts { font-size: 12px; color: var(--ink-48); letter-spacing: -0.12px; }

/* ---------- score ring ---------- */
.ring { display: block; }
.ring .track { stroke: var(--track); }
.on-dark .ring .track { stroke: var(--track-dark); }
.ring .value { transition: stroke-dasharray 0.9s cubic-bezier(.2,.8,.2,1); }
.ring text { fill: currentColor; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.5px; }
.grade-good { stroke: var(--good); } .grade-warn { stroke: var(--warn); } .grade-bad { stroke: var(--bad); } .grade-none { stroke: var(--neutral); }
.grade-label { font-size: 12px; font-weight: 600; letter-spacing: -0.12px; display: inline-flex; gap: 4px; align-items: center; }
.grade-label.good { color: var(--good); } .grade-label.warn { color: var(--warn); } .grade-label.bad { color: var(--bad); } .grade-label.none { color: var(--neutral); }

/* ---------- report hero ---------- */
.report-hero { display: flex; align-items: center; justify-content: center; gap: 56px; text-align: start; flex-wrap: wrap; }
.report-hero .meta { max-width: 560px; }
.report-hero .url { color: var(--primary-on-dark); word-break: break-all; }
.report-hero .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- category section ---------- */
.section-head { display: flex; align-items: center; gap: 24px; justify-content: space-between; margin-bottom: 32px; text-align: start; flex-wrap: wrap; }
.section-head .left { display: flex; align-items: center; gap: 20px; }
.segmented { display: inline-flex; background: var(--chip); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.on-dark .segmented { background: rgba(255,255,255,0.12); }
.segmented button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 6px 14px; font-size: 14px; letter-spacing: -0.224px; cursor: pointer; color: inherit; }
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px rgba(0,0,0,0.04); }

.checks { list-style: none; margin: 0; padding: 0; text-align: start; background: var(--card); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.check { border-top: 1px solid var(--divider); }
.check:first-child { border-top: 0; }
.check > button {
  width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start;
  background: none; border: 0; text-align: start; padding: 16px 20px; cursor: pointer; color: inherit;
}
.check > button[aria-expanded] .chev { transition: transform .2s ease; }
.check > button[aria-expanded="true"] .chev { transform: rotate(90deg); }
[dir="rtl"] .check > button .chev { transform: scaleX(-1); }
[dir="rtl"] .check > button[aria-expanded="true"] .chev { transform: rotate(90deg); }
.check .title { font-weight: 600; font-size: 17px; letter-spacing: -0.374px; line-height: 1.24; }
.check .detail { color: var(--ink-80); font-size: 14px; letter-spacing: -0.224px; margin-top: 3px; word-break: break-word; }
.check .chev { width: 14px; height: 14px; color: var(--ink-48); margin-top: 5px; }
.check .body { padding: 0 20px 18px 62px; font-size: 14px; letter-spacing: -0.224px; }
[dir="rtl"] .check .body { padding: 0 62px 18px 20px; }
.check .fix { color: var(--ink); background: var(--parchment); border-radius: var(--r-sm); padding: 10px 14px; margin-bottom: 10px; }
.check .fix strong { display: block; font-size: 12px; color: var(--ink-48); font-weight: 600; margin-bottom: 2px; }
.check .items { margin: 0; padding: 0; list-style: none; font-family: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace; font-size: 12px; letter-spacing: 0; color: var(--ink-80); max-height: 260px; overflow: auto; }
.check .items li { padding: 4px 0; border-top: 1px solid var(--divider); word-break: break-all; }
.check .items li:first-child { border-top: 0; }
.status-icon { width: 22px; height: 22px; display: block; }
.status-icon.pass { color: var(--good); } .status-icon.warn { color: var(--warn); } .status-icon.fail { color: var(--bad); } .status-icon.info { color: var(--neutral); }
.empty-filter { padding: 28px; text-align: center; color: var(--ink-48); font-size: 14px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat { text-align: start; }
.stat .value { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.28px; }
.stat .value small { font-size: 21px; font-weight: 600; margin-inline-start: 2px; }
.stat .label { font-size: 14px; letter-spacing: -0.224px; color: var(--ink-48); margin-top: 4px; }
.on-dark .stat .label { color: var(--body-muted); }

/* ---------- device preview ---------- */
.device-wrap { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: 56px; align-items: start; text-align: start; }
.device {
  background: #1d1d1f; border-radius: 54px; padding: 12px; box-shadow: var(--product-shadow);
  border: 1px solid #3a3a3c; position: relative; margin: 0 auto; width: 100%; max-width: 340px;
}
.device.ipad { border-radius: 32px; max-width: 420px; }
.device .screen { border-radius: 42px; overflow: hidden; background: #000; }
.device.ipad .screen { border-radius: 22px; }
.device img { display: block; width: 100%; background: #fff; }
.device .status-bar { height: 44px; display: flex; align-items: center; justify-content: center; background: #000; }
.device.ipad .status-bar { height: 22px; }
.device .island { width: 32%; height: 24px; background: #000; border-radius: 20px; box-shadow: 0 0 0 1px #1d1d1f; }
.desktop-shot { border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--product-shadow); border: 1px solid var(--hairline); }
.desktop-shot .bar { height: 26px; background: var(--parchment); display: flex; gap: 6px; align-items: center; padding: 0 10px; }
.desktop-shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.desktop-shot img { display: block; width: 100%; }

/* ---------- chart ---------- */
.chart-card { background: var(--card); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 24px; text-align: start; margin-bottom: 24px; position: relative; }
.chart-card h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--divider); stroke-width: 1; }
.chart .axis-label { fill: var(--ink-48); font-size: 11px; letter-spacing: 0; }
.chart .series { stroke: var(--primary); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--primary); opacity: 0.08; }
.chart .marker { fill: var(--primary); stroke: var(--card); stroke-width: 2; }
.chart .marker.active { r: 6; }
.chart .crosshair { stroke: var(--ink-48); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.tooltip {
  position: absolute; pointer-events: none; background: var(--ink); color: var(--canvas);
  border-radius: var(--r-sm); padding: 8px 10px; font-size: 12px; letter-spacing: -0.12px; line-height: 1.4;
  white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .12s ease; z-index: 5;
}
.tooltip.show { opacity: 1; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { text-align: end; padding: 6px 8px; border-top: 1px solid var(--divider); }
.data-table th:first-child, .data-table td:first-child { text-align: start; }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-top: 12px; }
.verdict svg { width: 28px; height: 28px; }

/* ---------- running ---------- */
.running { min-height: calc(100vh - 96px); display: flex; align-items: center; justify-content: center; }
.progress-ring { margin: 0 auto 28px; width: 180px; height: 180px; }
.progress-ring circle { fill: none; stroke-width: 6; }
.progress-ring .track { stroke: var(--track-dark); }
.progress-ring .value { stroke: var(--primary-on-dark); stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.progress-ring text { fill: #fff; font-family: var(--font-display); font-size: 44px; font-weight: 600; }
.step-text { min-height: 26px; color: var(--body-muted); font-size: 17px; }
.module-progress { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 28px auto 32px; max-width: 760px; }
.module-progress span { font-size: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,0.08); color: var(--body-muted); display: inline-flex; gap: 6px; align-items: center; }
.module-progress span.active { background: rgba(41,151,255,0.18); color: #fff; }
.module-progress span.done { color: #fff; }
.module-progress svg { width: 12px; height: 12px; }
@keyframes pulse { 50% { opacity: .45; } }
.module-progress span.active { animation: pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- history & settings ---------- */
.list { list-style: none; padding: 0; margin: 0; text-align: start; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.list li { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--divider); }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .host { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form { text-align: start; max-width: 680px; margin: 0 auto; }
.form .row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--divider); }
.form .row:first-child { border-top: 0; }
.form .row.stack { flex-direction: column; align-items: stretch; }
.form label { font-weight: 400; }
.form select, .form input[type="number"], .form input[type="password"] {
  background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 8px 12px; font-size: 14px; min-width: 160px;
}
.form input[type="password"] { width: 100%; }
.form-actions { margin-top: 24px; display: flex; gap: 12px; align-items: center; justify-content: flex-end; }

/* ---------- footer ---------- */
footer.site-footer { background: var(--parchment); color: var(--ink-80); padding: 48px 22px 64px; font-size: 12px; letter-spacing: -0.12px; }
footer .inner { max-width: 1100px; margin: 0 auto; }
footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-bottom: 1px solid var(--hairline); padding-bottom: 20px; margin-bottom: 16px; }
footer h4 { font-size: 12px; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
footer .cols a, footer .cols button { display: block; line-height: 2.41; color: var(--ink-80); background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; text-align: start; }
footer .legal { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-48); flex-wrap: wrap; }
footer select { background: transparent; border: 0; color: var(--ink-80); font-size: 12px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1068px) {
  .hero-display { font-size: 40px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 833px) {
  .grid, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-wrap { grid-template-columns: 1fr; }
  .global-nav nav { gap: 14px; }
  .sub-nav .links { display: none; }
}
@media (max-width: 640px) {
  .tile { padding: 48px 16px; }
  .hero-display { font-size: 34px; }
  .display-lg { font-size: 28px; }
  .lead { font-size: 21px; }
  .search { flex-direction: column; align-items: stretch; }
  .grid, .grid.cols-3 { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
  .check .body { padding-inline-start: 20px; }
}

@media print {
  .global-nav, .sub-nav, .actions, .segmented, footer { display: none !important; }
  .check .body { display: block !important; }
}

/* ---------- Lighthouse ---------- */
.lh-gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.lh-gauge { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lh-label { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.lh-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; text-align: start; }
.lh-metric { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.06); }
.tile-light .lh-metric, .tile-parchment .lh-metric { background: var(--card); border: 1px solid var(--hairline); }
.lh-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--neutral); }
.lh-metric.good .lh-dot { background: var(--good); }
.lh-metric.warn .lh-dot { background: var(--warn); border-radius: 2px; }
.lh-metric.bad .lh-dot { background: var(--bad); border-radius: 0; transform: rotate(45deg) scale(0.85); }
.lh-mname { font-size: 12px; letter-spacing: -0.12px; color: var(--ink-48); }
.on-dark .lh-mname { color: var(--body-muted); }
.lh-mval { font-family: var(--font-display); font-size: 24px; font-weight: 600; }

/* ---------- coverage ---------- */
.cov-list { text-align: start; margin-bottom: 28px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 8px 18px; }
.cov-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 140px 150px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--divider); font-size: 12px; letter-spacing: -0.12px; }
.cov-row:first-child { border-top: 0; }
.cov-type { font-weight: 600; color: var(--ink-48); }
.cov-url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.cov-bar { height: 8px; border-radius: 4px; background: var(--track); position: relative; overflow: hidden; }
.cov-bar i { position: absolute; inset: 0 auto 0 0; background: var(--bad); border-radius: 4px; }
.cov-num { text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-80); }

/* ---------- test cases ---------- */
.tc-exports { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tc-row { display: flex; align-items: flex-start; gap: 10px; padding-inline-end: 16px; }
.tc-row > button { flex: 1; }
.tc-status { margin-top: 14px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--parchment); padding: 6px 12px; font-size: 13px; }
.tc-status.st-pass { color: var(--good); border-color: var(--good); }
.tc-status.st-fail { color: var(--bad); border-color: var(--bad); }
.tc-status.st-blocked { color: var(--warn); border-color: var(--warn); }
.tc-id { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; color: var(--ink-48); font-weight: 500; }
.tc-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: var(--r-pill); background: var(--parchment); color: var(--ink-80); }
.tc-pill.p-P0 { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.tc-pill.p-P1 { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.tc-h { font-weight: 600; margin: 4px 0; }
.tc-steps { margin: 0 0 10px; padding-inline-start: 20px; }
.tc-evidence { color: var(--ink-80); word-break: break-word; }
.tc-notes { width: 100%; border: 1px solid var(--hairline); border-radius: var(--r-sm); background: var(--parchment); padding: 8px 10px; font-size: 14px; resize: vertical; }

/* ---------- memory-test safety dialog ---------- */
dialog.consent { border: 0; border-radius: var(--r-lg); padding: 32px; max-width: 720px; width: calc(100vw - 32px); background: var(--card); color: var(--ink); text-align: start; }
dialog.consent::backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(4px); }
.consent-icon svg { width: 36px; height: 36px; color: var(--primary); }
.consent h2 { margin: 10px 0 6px; }
.consent-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0; }
.consent-cols h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.consent-cols ul { margin: 0; padding-inline-start: 18px; font-size: 14px; letter-spacing: -0.224px; }
.consent-cols li { margin: 5px 0; }
.consent-cols .wont li::marker { content: "✕  "; color: var(--good); }
.consent-risk { background: color-mix(in srgb, var(--warn) 12%, transparent); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
.consent-risk strong { display: flex; gap: 8px; align-items: center; }
.consent-risk .status-icon { width: 18px; height: 18px; }
.consent-check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 16px 0; cursor: pointer; }
.consent-check input { width: 18px; height: 18px; }
.consent-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.dialog-close { position: absolute; top: 14px; inset-inline-end: 16px; border: 0; background: var(--chip); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--ink); }

/* ---------- memory scenario editor ---------- */
.steps-editor { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.step-row { display: grid; grid-template-columns: 22px 110px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; }
.step-row input, .step-row select { background: var(--parchment); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 7px 10px; font-size: 13px; min-width: 0; }
.step-row input:disabled { opacity: 0.4; }
.step-n { font-size: 12px; color: var(--ink-48); text-align: center; }
.step-risk { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--warn); margin: -4px 0 4px 30px; }
.step-risk .status-icon { width: 14px; height: 14px; }
.inline-check { display: flex; gap: 8px; align-items: center; }
.consent-list { list-style: none; margin: 0; padding: 0; }
.consent-list li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--divider); font-size: 14px; }
.consent-list li:first-child { border-top: 0; }

@media (max-width: 833px) {
  .lh-gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cov-row { grid-template-columns: 34px minmax(0, 1fr) 90px; }
  .cov-num { display: none; }
  .consent-cols { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 22px 1fr; }
}
.tc-row > button {
  width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start;
  background: none; border: 0; text-align: start; padding: 16px 20px; cursor: pointer; color: inherit;
}
.tc-row > button[aria-expanded="true"] .chev { transform: rotate(90deg); }
.tc-list { text-align: start; }
