/* MobileCheck — Fluent Design (Windows 11) inspired styles */
:root {
  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --bg: #f3f3f3;
  --bg-mica: linear-gradient(135deg, #eef2f8 0%, #f3f3f3 40%, #f5f1f3 100%);
  --layer: rgba(255, 255, 255, 0.5);
  --card: #ffffff;
  --card-2: #f9f9f9;
  --card-hover: #f6f6f6;
  --stroke: rgba(0, 0, 0, 0.0803);
  --stroke-strong: rgba(0, 0, 0, 0.16);
  --control: rgba(255, 255, 255, 0.7);
  --control-hover: rgba(249, 249, 249, 0.5);
  --control-stroke: rgba(0, 0, 0, 0.0578);
  --control-stroke-bottom: rgba(0, 0, 0, 0.1622);
  --subtle-hover: rgba(0, 0, 0, 0.0373);
  --subtle-press: rgba(0, 0, 0, 0.0241);
  --text: #1a1a1a;
  --text-2: #5d5d5d;
  --text-3: #6b6b6b;
  --accent: #005fb8;
  --accent-hover: #1a6fc0;
  --accent-text: #ffffff;
  --accent-soft: rgba(0, 95, 184, 0.09);
  --good: #0f7b0f; --good-bg: #dff6dd;
  --mid: #9d5d00; --mid-bg: #fff4ce;
  --bad: #c42b1c; --bad-bg: #fde7e9;
  --info-bg: #f2f6fc;
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-flyout: 0 8px 16px rgba(0, 0, 0, 0.14);
  --shadow-dialog: 0 32px 64px rgba(0, 0, 0, 0.19), 0 2px 21px rgba(0, 0, 0, 0.15);
  --frame: #1f1f1f;
  --radius: 8px;
  --radius-sm: 4px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #202020;
  --bg-mica: linear-gradient(135deg, #1c2029 0%, #202020 45%, #231f22 100%);
  --layer: rgba(58, 58, 58, 0.3);
  --card: #2b2b2b;
  --card-2: #272727;
  --card-hover: #323232;
  --stroke: rgba(255, 255, 255, 0.0698);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --control: rgba(255, 255, 255, 0.0605);
  --control-hover: rgba(255, 255, 255, 0.0837);
  --control-stroke: rgba(255, 255, 255, 0.0698);
  --control-stroke-bottom: rgba(255, 255, 255, 0.0465);
  --subtle-hover: rgba(255, 255, 255, 0.0605);
  --subtle-press: rgba(255, 255, 255, 0.0419);
  --text: #ffffff;
  --text-2: #cfcfcf;
  --text-3: #9d9d9d;
  --accent: #60cdff;
  --accent-hover: #5abce9;
  --accent-text: #000000;
  --accent-soft: rgba(96, 205, 255, 0.12);
  --good: #6ccb5f; --good-bg: #393d1b;
  --mid: #fce100; --mid-bg: #433519;
  --bad: #ff99a4; --bad-bg: #442726;
  --info-bg: #2b2f36;
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-flyout: 0 8px 16px rgba(0, 0, 0, 0.26);
  --shadow-dialog: 0 32px 64px rgba(0, 0, 0, 0.37), 0 2px 21px rgba(0, 0, 0, 0.37);
  --frame: #0c0c0c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 15px/22px var(--font); color: var(--text); background: var(--bg-mica) fixed, var(--bg);
  min-height: 100%; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
svg.i.lg { width: 20px; height: 20px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ── Typography ────────────────────────────────────────── */
h1 { font: 600 28px/36px var(--font-display); margin: 0 0 24px; }
h2 { font: 600 20px/28px var(--font-display); margin: 28px 0 12px; }
h3 { font-weight: 600; font-size: 15px; margin: 0; }
.subtitle { font-weight: 600; font-size: 15px; margin: 28px 0 10px; }

/* ── Cards and setting rows ────────────────────────── */
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-card); }
.stack { display: flex; flex-direction: column; gap: 4px; }
.setting {
  display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 12px 16px; background: var(--card);
  border: 1px solid var(--stroke); border-radius: var(--radius);
}
.setting > .ico { width: 20px; display: grid; place-items: center; color: var(--text); }
.setting .txt { flex: 1; min-width: 0; }
.setting .txt b { font-weight: 400; display: block; }
.setting .txt small { color: var(--text-2); font-size: 12px; line-height: 16px; display: block; }
.setting .ctl { display: flex; align-items: center; gap: 12px; flex: none; }
.setting.disabled { opacity: .55; }
.setting.clickable { cursor: pointer; } .setting.clickable:hover { background: var(--card-hover); }

.expander { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); }
.expander > summary {
  list-style: none; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 16px; cursor: pointer; border-radius: var(--radius);
}
.expander > summary::-webkit-details-marker { display: none; }
.expander > summary:hover { background: var(--card-hover); }
.expander > summary .chev { margin-left: auto; transition: transform .15s; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); }
.expander > summary:hover .chev { background: var(--subtle-hover); }
.expander[open] > summary .chev { transform: rotate(180deg); }
.expander[open] > summary { border-bottom: 1px solid var(--stroke); border-radius: var(--radius) var(--radius) 0 0; }
.expander > .body { padding: 16px 16px 16px 52px; background: var(--card-2); border-radius: 0 0 var(--radius) var(--radius); }
.expander .txt { flex: 1; min-width: 0; }
.expander .txt small { display: block; color: var(--text-2); font-size: 12px; line-height: 16px; }

/* ── Controls ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 5px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--control-stroke); border-bottom-color: var(--control-stroke-bottom); background: var(--control); color: var(--text);
  cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 20px;
}
.btn:hover { background: var(--control-hover); }
.btn:active { color: var(--text-2); background: var(--subtle-press); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.accent { background: var(--accent); color: var(--accent-text); border-color: rgba(255,255,255,.08); border-bottom-color: rgba(0,0,0,.4); }
.btn.accent:hover { background: var(--accent-hover); }
.btn.big { min-height: 40px; padding: 8px 20px; font-weight: 600; }
.btn.subtle { background: transparent; border-color: transparent; }
.btn.subtle:hover { background: var(--subtle-hover); }
.btn.icon { padding: 5px 8px; }
.btn.danger { color: var(--bad); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.input {
  height: 32px; padding: 0 11px; border-radius: var(--radius-sm); border: 1px solid var(--control-stroke); border-bottom: 1px solid var(--text-2);
  background: var(--control); outline: none; width: 100%; min-width: 0;
}
.input:hover { background: var(--control-hover); }
.input:focus { background: var(--card); border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
textarea.input { height: auto; padding: 6px 11px; resize: vertical; line-height: 20px; }
select.input { padding-right: 28px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; width: auto; }
select.input option { background: var(--card); color: var(--text); }
.input.big { height: 44px; font-size: 16px; padding: 0 14px; }
.input.big:focus { padding-bottom: 1px; }
.search-box { position: relative; } .search-box svg { position: absolute; right: 10px; top: 8px; color: var(--text-2); pointer-events: none; }

.toggle { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .track { width: 40px; height: 20px; border-radius: 10px; border: 1px solid var(--text-2); background: var(--control); position: relative; transition: background .15s; flex: none; }
.toggle .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); transition: transform .15s, width .1s; }
.toggle:hover .track::after { width: 14px; height: 14px; top: 2px; }
.toggle input:checked + .track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .track::after { background: var(--accent-text); transform: translateX(20px); }
.toggle:hover input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--text); outline-offset: 2px; }
.toggle input:disabled + .track { opacity: .4; }
.toggle .state { min-width: 34px; color: var(--text); }

.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: var(--radius-sm); border: 1px solid var(--text-2); background: var(--control); display: grid; place-items: center; margin: 0; flex: none; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg) translate(1px, -1px); }
.check input:indeterminate { background: var(--accent); border-color: var(--accent); }
.check input:indeterminate::after { content: ""; width: 8px; height: 2px; background: var(--accent-text); }

.radio { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; padding: 6px 0; }
.radio input { appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--text-2); background: var(--control); margin: 0; flex: none; cursor: pointer; display: grid; place-items: center; }
.radio input:checked { border: 0; background: var(--accent); }
.radio input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); }
.radio small { display: block; color: var(--text-2); font-size: 12px; }

.segmented { display: inline-flex; background: var(--control); border: 1px solid var(--control-stroke); border-radius: var(--radius-sm); padding: 2px; gap: 2px; flex-wrap: wrap; }
.segmented button { border: 0; background: transparent; padding: 4px 12px; border-radius: 3px; cursor: pointer; position: relative; display: inline-flex; gap: 6px; align-items: center; }
.segmented button:hover { background: var(--subtle-hover); }
.segmented button.on { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 600; }
.segmented button.on::after { content: ""; position: absolute; left: 35%; right: 35%; bottom: 1px; height: 3px; border-radius: 2px; background: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-presets { gap: 6px; }
.dev-presets .chip { padding: 2px 10px; font-size: 13px; }
.chip {
  border: 1px solid var(--control-stroke); background: var(--control); border-radius: 99px; padding: 5px 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.chip:hover { background: var(--control-hover); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip small { opacity: .75; }

.pivot { display: flex; gap: 4px; border-bottom: 1px solid var(--stroke); margin: 8px 0 16px; overflow-x: auto; }
.pivot button { border: 0; background: transparent; padding: 10px 12px; cursor: pointer; color: var(--text-2); position: relative; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.pivot button:hover { color: var(--text); }
.pivot button.on { color: var(--text); font-weight: 600; }
.pivot button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--accent); }
.pivot .count { font-size: 11px; background: var(--subtle-hover); border-radius: 99px; padding: 0 7px; font-weight: 400; }

.slider { accent-color: var(--accent); }

.infobar { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--stroke); background: var(--info-bg); }
.infobar.success { background: var(--good-bg); } .infobar.warning { background: var(--mid-bg); } .infobar.error { background: var(--bad-bg); }
.infobar .ico { margin-top: 2px; }
.infobar.success .ico { color: var(--good); } .infobar.warning .ico { color: var(--mid); } .infobar.error .ico { color: var(--bad); } .infobar.info .ico { color: var(--accent); }
.infobar .txt { flex: 1; }
.infobar b { margin-right: 8px; }

.progress { height: 4px; border-radius: 2px; background: var(--stroke-strong); overflow: hidden; position: relative; }
.progress > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; transition: width .3s; }
.progress.indeterminate > i { width: 30% !important; animation: indet 1.4s infinite ease-in-out; }
@keyframes indet { from { left: -30%; } to { left: 100%; } }
.ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scores ────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 22px; padding: 0 8px; border-radius: 11px; font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.mid { background: var(--mid-bg); color: var(--mid); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.none { background: var(--subtle-hover); color: var(--text-2); }
.gauge .track { fill: none; stroke: var(--stroke-strong); }
.gauge .bar { fill: none; stroke-linecap: round; transition: stroke-dasharray .6s; }
.gauge.good .bar { stroke: var(--good); } .gauge.mid .bar { stroke: #d39300; } .gauge.bad .bar { stroke: var(--bad); } .gauge.none .bar { stroke: transparent; }
.gauge text { fill: var(--text); font-family: var(--font-display); font-weight: 600; }
.lvl-ico.error { color: var(--bad); } .lvl-ico.warn { color: #d39300; } .lvl-ico.ok { color: var(--good); } .lvl-ico.info { color: var(--accent); }

/* ── Check form ───────────────────────────────────── */
.hero { display: flex; gap: 8px; align-items: stretch; }
.hero .input { flex: 1; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.summary-panel { position: sticky; top: 0; }
.summary-panel .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--stroke); gap: 12px; }
.summary-panel .row:last-of-type { border: 0; }
.summary-panel .row span:last-child { text-align: right; }
.device-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.device-group h4 { margin: 0 0 6px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; }
.dev-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.dev-row .name { flex: 1; min-width: 0; font-size: 13px; }
.dev-row .meta { color: var(--text-3); font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recent { display: grid; gap: 4px; }
.recent a { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.recent a:hover { background: var(--subtle-hover); }
.recent a .u { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Report ─────────────────────────────────────────────── */
.report-head { display: flex; gap: 24px; align-items: center; }
.report-head .info { flex: 1; min-width: 0; }
.report-head .url { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-head .title { font: 600 28px/36px var(--font-display); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict { display: flex; gap: 20px; align-items: center; }
.verdict h2 { margin: 0 0 4px; }
.btn.danger-fill { background: var(--bad); border-color: transparent; color: #fff; }
.btn.danger-fill:hover { filter: brightness(1.08); }
.verdict-label { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 2px 10px; border-radius: 99px; margin-bottom: 6px; background: var(--mid-bg); color: var(--mid); }
.verdict-label.good { background: var(--good-bg, var(--accent-soft)); color: var(--good); }
.verdict-label.bad { background: var(--bad-bg, var(--mid-bg)); color: var(--bad); }
.verdict p { margin: 0 0 4px; color: var(--text-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.tile { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile .v { font: 600 24px/32px var(--font-display); }
.tile .v.good { color: var(--good); } .tile .v.mid { color: var(--mid); } .tile .v.bad { color: var(--bad); } .tile .v.none { color: var(--text-3); }
.tile small { color: var(--text-2); font-size: 12px; line-height: 16px; }
.live { display: flex; flex-direction: column; gap: 10px; }
.live .now { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: 13px; }

.problem > summary { gap: 14px; }
.problem .aff { color: var(--text-2); font-size: 12px; }
.problem .tag { font-size: 11px; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 600; margin-left: 6px; white-space: nowrap; }
.problem .count { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.explain { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.explain h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; line-height: 18px; }
.explain p { margin: 0 0 12px; }
.ex-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ex-table td { padding: 6px 8px; border-top: 1px solid var(--stroke); vertical-align: top; word-break: break-word; }
.ex-table tr.link { cursor: pointer; } .ex-table tr.link:hover { background: var(--subtle-hover); }
.ex-table code { color: var(--text-3); font-size: 11px; }
@media (max-width: 600px) {
  .ex-table tr { display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--stroke); }
  .ex-table td { border-top: 0; padding: 4px 8px; }
  .ex-table td:first-child { grid-column: 1 / -1; }
  .ex-table td.nowrap { white-space: normal; }
}
.affected { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.affected button { border: 1px solid var(--control-stroke); background: var(--control); border-radius: 99px; padding: 2px 10px; font-size: 12px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.affected button:hover { background: var(--control-hover); border-color: var(--accent); }
.crops { display: flex; flex-direction: column; gap: 10px; }
.crop { position: relative; border: 1px solid var(--stroke); border-radius: 6px; background-repeat: no-repeat; background-color: #fff; overflow: hidden; cursor: zoom-in; }
.crop i { position: absolute; border: 2px solid var(--bad); border-radius: 3px; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .22); }
.crop + small { color: var(--text-3); font-size: 11px; }
.passed { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.passed div { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--stroke); }

.toolbar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar label { display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); }
.toolbar .grow { flex: 1; }

.device-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.dcard { max-width: 100%; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.dcard:hover { box-shadow: var(--shadow-flyout); }
.dcard .head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.dcard .head b { font-weight: 600; font-size: 13px; line-height: 18px; display: block; }
.dcard .head small { color: var(--text-3); font-size: 11px; }
.dcard ul { margin: 0; padding: 0; list-style: none; font-size: 12px; display: grid; gap: 2px; }
.dcard li { display: flex; gap: 6px; align-items: flex-start; line-height: 16px; }
.dcard li svg { margin-top: 0; width: 14px; height: 14px; }
.dcard .placeholder { display: grid; place-items: center; height: 100%; color: var(--text-2); font-size: 12px; text-align: center; padding: 12px; gap: 8px; align-content: center; }

/* ── Device frame ─────────────────────────────────── */
.phone { background: var(--frame); border-radius: calc(var(--s) * 46px); padding: calc(var(--s) * 11px); align-self: center; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 4px 14px rgba(0,0,0,.18); flex: none; }
.phone.home { border-radius: calc(var(--s) * 50px); padding: calc(var(--s) * 60px) calc(var(--s) * 12px); }
.phone.tablet { border-radius: calc(var(--s) * 30px); padding: calc(var(--s) * 20px); }
.phone.android { border-radius: calc(var(--s) * 34px); padding: calc(var(--s) * 9px); }
.screen { position: relative; background: #fff; overflow: hidden; border-radius: calc(var(--s) * 36px); display: flex; flex-direction: column; }
.phone.home .screen { border-radius: 2px; }
.phone.tablet .screen { border-radius: calc(var(--s) * 14px); }
.phone.android .screen { border-radius: calc(var(--s) * 26px); }
.screen.dark-ui { background: #000; }
.sbar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--s) * 24px); font: 600 calc(var(--s) * 14px)/1 var(--font); color: #000; background: #f7f7f7; position: relative; }
.sbar .icons { display: flex; gap: calc(var(--s) * 5px); align-items: center; }
.sbar .icons i { display: block; background: currentColor; border-radius: 1px; }
.sbar .island { position: absolute; left: 50%; transform: translateX(-50%); background: #000; border-radius: 99px; }
.abar { flex: none; display: flex; align-items: center; justify-content: center; background: #f7f7f7; color: #333; font-size: calc(var(--s) * 13px); gap: 6px; overflow: hidden; }
.abar .pillurl { background: #e3e3e8; border-radius: calc(var(--s) * 10px); padding: calc(var(--s) * 6px) calc(var(--s) * 14px); width: 88%; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abar.android .pillurl { background: #eceff1; border-radius: 99px; text-align: left; }
.navbar { flex: none; background: #f7f7f7; display: flex; align-items: center; justify-content: space-around; }
.navbar .home-ind { width: 36%; height: calc(var(--s) * 5px); border-radius: 3px; background: #111; }
.navbar .btn3 { width: calc(var(--s) * 14px); height: calc(var(--s) * 14px); border: calc(var(--s) * 2px) solid #555; }
.vp { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; scrollbar-width: thin; background: #fff; }
.vp.noscroll { overflow: hidden; }
.shot { position: relative; }
.shot img { display: block; width: 100%; user-select: none; -webkit-user-drag: none; }
.shot svg.ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shot svg.ov rect { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: all; cursor: help; }
.shot svg.ov rect.error { stroke: #e5484d; fill: rgba(229, 72, 77, .10); }
.shot svg.ov rect.warn { stroke: #f5a524; fill: rgba(245, 165, 36, .10); stroke-dasharray: 4 3; }
.shot svg.ov rect.touch { stroke: #3e63dd; fill: rgba(62, 99, 221, .08); }
.shot svg.ov rect.focus { stroke: #ff00aa; stroke-width: 3; fill: rgba(255, 0, 170, .15); animation: pulse 1s ease-in-out 3; }
@keyframes pulse { 50% { stroke-width: 6; } }
.shot svg.ov.off rect:not(.focus) { display: none; }

/* ── Device viewer ───────────────────────────────────── */
.viewer { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .3); display: flex; }
.viewer .panel { margin: 24px; flex: 1; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-dialog); display: grid; grid-template-columns: auto minmax(360px, 1fr); overflow: hidden; border: 1px solid var(--stroke); }
.viewer .left { background: var(--card-2); padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; overflow: hidden; border-right: 1px solid var(--stroke); min-width: 420px; }
.viewer .left .phone-wrap { flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.viewer-close { display: none; }
.viewer .right { padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.viewer .right .head { display: flex; align-items: flex-start; gap: 12px; }
.viewer .right .head .t { flex: 1; min-width: 0; }
.viewer .right h2 { margin: 0; }
.viewer .issue { border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--card); }
.viewer .issue > summary { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; }
.viewer .issue > summary::-webkit-details-marker { display: none; }
.viewer .issue > summary:hover { background: var(--card-hover); border-radius: var(--radius); }
.viewer .issue > summary .t { flex: 1; }
.viewer .issue .b { padding: 0 12px 12px 38px; font-size: 13px; }
.viewer .issue .b p { margin: 0 0 8px; color: var(--text-2); }
.viewer .notes { display: grid; gap: 4px; font-size: 12px; color: var(--text-2); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.kv div { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 8px 10px; }
.kv small { display: block; color: var(--text-2); font-size: 11px; }
.kv b { font-variant-numeric: tabular-nums; }
.kv b.good { color: var(--good); } .kv b.mid { color: var(--mid); } .kv b.bad { color: var(--bad); }
video { max-width: 100%; border-radius: var(--radius); background: #000; }

/* ── Tables ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); }
table.grid { border-collapse: collapse; width: 100%; font-size: 13px; }
table.grid th, table.grid td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
table.grid th { font-weight: 600; color: var(--text-2); font-size: 12px; background: var(--card-2); position: sticky; top: 0; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr.link { cursor: pointer; } table.grid tr.link:hover td { background: var(--subtle-hover); }
table.grid td.c, table.grid th.c { text-align: center; }
table.grid td.good { color: var(--good); } table.grid td.mid { color: var(--mid); } table.grid td.bad { color: var(--bad); }
.cell-btn { border: 0; background: transparent; cursor: pointer; padding: 0; }

/* ── History ───────────────────────────────────────────── */
.run-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); }
.run-row:hover { background: var(--card-hover); }
.run-row .main-txt { flex: 1; min-width: 0; cursor: pointer; }
.run-row .main-txt b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-row .main-txt small { color: var(--text-2); display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty svg { width: 48px; height: 48px; stroke-width: 1; color: var(--text-3); margin-bottom: 12px; }

/* ── Compare ─────────────────────────────────────────── */
.cmp-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.cmp-pick label { display: grid; gap: 6px; color: var(--text-2); font-size: 12px; }
.cmp-pick select { width: 100%; }
.delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); } .delta.same { color: var(--text-3); }
.cmp-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cmp-lists .card h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.cmp-lists ul { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 4px; }
.visual { display: flex; gap: 20px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.visual figure { margin: 0; text-align: center; }
.visual figcaption { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.visual .box { border: 1px solid var(--stroke); border-radius: var(--radius-sm); overflow: auto; max-height: 75vh; background: #fff; }
.visual .box img, .visual canvas { display: block; }
.swipe { position: relative; overflow: hidden; user-select: none; }
.swipe img { display: block; }
.swipe .top { position: absolute; inset: 0; overflow: hidden; border-right: 2px solid var(--accent); }
.swipe .top img { max-width: none; }
.swipe input[type=range] { position: absolute; left: 0; right: 0; bottom: 8px; width: 100%; }

/* ── Help ───────────────────────────────────────────── */
.help-grid { display: grid; gap: 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: s; }
.steps .card { counter-increment: s; }
.steps .card::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 600; margin-bottom: 8px; }
pre.code { background: var(--card-2); border: 1px solid var(--stroke); border-radius: var(--radius-sm); padding: 10px 12px; overflow-x: auto; font: 12px/18px "Cascadia Code", Consolas, monospace; margin: 6px 0 12px; }

/* ── Dialogs and toasts ─────────────────────────────── */
.dialog-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); display: grid; place-items: center; z-index: 60; }
.dialog { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-dialog); width: min(480px, 92vw); overflow: hidden; border: 1px solid var(--stroke); }
.dialog .content { padding: 24px; }
.dialog h3 { font: 600 20px/28px var(--font-display); margin: 0 0 12px; }
.dialog .footer { background: var(--card-2); border-top: 1px solid var(--stroke); padding: 20px 24px; display: flex; gap: 8px; justify-content: flex-end; }
.dialog .footer .btn { min-width: 120px; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.82); display: flex; flex-direction: column; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: #fff; gap: 12px; }
.lightbox .bar .btn { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
.lightbox .body { flex: 1; overflow: auto; text-align: center; padding: 0 16px 16px; }
.lightbox .body .shot { display: inline-block; background: #fff; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 80; }
.toast { background: var(--card); border: 1px solid var(--stroke); box-shadow: var(--shadow-flyout); border-radius: var(--radius); padding: 12px 16px; display: flex; gap: 10px; align-items: center; min-width: 260px; max-width: 420px; animation: slidein .2s; }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } }

.tip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--text-3); color: var(--text-2); font-size: 10px; cursor: help; }

@media (max-width: 1100px) {
  .form-grid { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .device-cols { grid-template-columns: 1fr 1fr; }
  .cmp-lists { grid-template-columns: 1fr; }
  .viewer .panel { grid-template-columns: 1fr; overflow-y: auto; }
  .viewer .left { min-width: 0; border-right: 0; }
}
@media (max-width: 760px) {
  .page { padding: 20px 16px 40px; }
  .device-cols { grid-template-columns: 1fr; }
  .explain { grid-template-columns: 1fr; }
}
.screen.dark-ui .sbar, .screen.dark-ui .abar, .screen.dark-ui .navbar { background: #1c1c1e; color: #fff; }
.screen.dark-ui .abar .pillurl { background: #2c2c2e; color: #ddd; }
.screen.dark-ui .navbar .home-ind, .screen.dark-ui .abar .home-ind { background: #eee !important; }
.screen.dark-ui .vp { background: #000; }
.vp .placeholder { display: grid; place-items: center; align-content: center; gap: 10px; height: 100%; color: #666; font-size: 12px; text-align: center; padding: 12px; background: #f4f4f4; }
.dcard .vp .placeholder svg { width: 28px; height: 28px; }

/* ── Website layout ────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; height: 60px; padding: 0 max(20px, calc((100% - 1200px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--stroke);
}
.brand { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--font-display); color: var(--text); text-decoration: none; }
.brand .logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #0a84ff, #6b4bff); display: grid; place-items: center; color: #fff; }
.brand .logo svg { width: 16px; height: 16px; stroke-width: 2; }
.topnav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.topnav a, .topnav button { white-space: nowrap; color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: var(--radius-sm); border: 0; background: transparent; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.topnav a:hover, .topnav button:hover { background: var(--subtle-hover); }
.topnav a.active { font-weight: 600; }
.topnav .short { display: none; }
.site-main { flex: 1 0 auto; } /* grows with its content (a fixed min-height must never cap it) */
/* App pages are built after /api/limits: keep the footer below the fold meanwhile, so it doesn't jump (CLS). */
.site-main:not([data-static]) { min-height: 100vh; }
.page { max-width: 1200px; margin: 0 auto; padding: 32px 20px 64px; }
.page.narrow { max-width: 820px; }
.footer { border-top: 1px solid var(--stroke); padding: 24px max(20px, calc((100% - 1200px) / 2)); color: var(--text-2); font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--text-2); }
.footer .grow { flex: 1; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--card); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.hero { text-align: center; padding: 40px 0 8px; display: block; }
.hero h1 { font: 700 clamp(30px, 5vw, 48px)/1.12 var(--font-display); margin: 0 auto 14px; max-width: 820px; letter-spacing: -0.01em; }
.hero .lead { font-size: 18px; line-height: 28px; color: var(--text-2); max-width: 680px; margin: 0 auto 28px; }
.check-card { max-width: 860px; margin: 0 auto; padding: 22px; text-align: left; }
.url-row { display: flex; gap: 8px; }
.url-row .input { flex: 1; min-width: 0; }
.hint { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.hint.error { color: var(--bad); }
.verify { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); }
.verify .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.verify.ok .dot { background: var(--good); }
.dev-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin-top: 8px; }
.dev-pick label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--stroke); border-radius: var(--radius-sm); background: var(--card-2); cursor: pointer; }
.dev-pick label:hover { border-color: var(--stroke-strong); }
.dev-pick label.on { border-color: var(--accent); background: var(--accent-soft); }
.dev-pick label.disabled { opacity: .5; cursor: not-allowed; }
.dev-pick small { display: block; color: var(--text-3); font-size: 12px; line-height: 15px; }
.dev-more { margin-top: 10px; }
.dev-more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 14px; color: var(--accent); font-weight: 600; }
.dev-more > summary::-webkit-details-marker { display: none; }
.dev-more[open] > summary .i { transform: rotate(180deg); }
.opts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.notice { margin-top: 14px; font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.notice svg { flex: none; margin-top: 2px; }
.quota { font-size: 13px; color: var(--text-2); }

.section { padding: 56px 0 8px; }
.section > h2 { text-align: center; font-size: 28px; line-height: 36px; margin: 0 0 8px; }
.section > p.sub { text-align: center; color: var(--text-2); max-width: 640px; margin: 0 auto 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 20px; }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--text-2); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--stroke); padding: 14px 4px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { color: var(--text-2); margin: 8px 0 0; }
.free-band { margin-top: 56px; padding: 28px; display: flex; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--accent-soft), transparent); }
.free-band h2 { margin: 0 0 6px; }
.free-band p { margin: 0; color: var(--text-2); }
.soon { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px; background: var(--mid-bg); color: var(--mid); vertical-align: middle; }
.legal h2 { font-size: 20px; margin-top: 32px; }
.legal p, .legal li { color: var(--text-2); }
.queue-card { text-align: center; padding: 32px 24px; }
.queue-card .big { font: 600 40px/1 var(--font-display); margin: 8px 0; }
.share { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.share .input { font-size: 13px; }
textarea.input { width: 100%; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: 13px; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.sample-shot { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .free-band { flex-direction: column; align-items: flex-start; }
  .viewer .panel { margin: 0; border-radius: 0; grid-template-rows: auto auto; align-content: start; overflow-y: auto; }
  .viewer .left { overflow: visible; border-bottom: 1px solid var(--stroke); }
  .viewer .left .phone-wrap { flex: none; }
  .viewer-close { display: inline-flex; position: fixed; top: 10px; right: 10px; z-index: 45; width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--shadow-flyout); background: var(--card); }
}
@media (max-width: 600px) {
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .url-row { flex-direction: column; }
  .url-row .input { flex: none; }
  .url-row .btn { width: 100%; }
  .topnav .hide-sm { display: none; }
  .topnav .long { display: none; }
  .topnav .short { display: inline; }
  .topnav { gap: 0; }
  .topbar { gap: 8px; padding: 0 12px; }
  .topnav a, .topnav button { padding: 6px 8px; }
  .brand { font-size: 16px; gap: 8px; }
  @media (max-width: 420px) { .topnav a, .topnav button { padding: 6px 5px; } .topbar { padding: 0 8px; gap: 4px; } }
  @media (max-width: 360px) { .brand { font-size: 0; } }
  .dev-pick { grid-template-columns: 1fr 1fr; }
  .dev-pick label { padding: 6px 8px; font-size: 13px; line-height: 17px; gap: 6px; }
  .check-card { padding: 16px; }
  .hero { padding-top: 20px; }
  .hero .lead { font-size: 16px; line-height: 24px; }
  .report-head { flex-wrap: wrap; }
  .report-head .btn-row { width: 100%; }
  .viewer .left { min-width: 0; padding: 12px; }
  .viewer .right { padding: 14px; }
  .tiles { grid-template-columns: 1fr 1fr; }
}

/* ── Live preview ──────────────────────────────────────── */
.live-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.live-quota { color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.live-setup { padding: 18px; }
.live-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.live-bar { display: flex; gap: 6px; align-items: center; width: 100%; max-width: 860px; background: var(--card); border: 1px solid var(--stroke); border-radius: 22px; padding: 4px 6px; }
.live-bar .btn.icon { width: 34px; height: 32px; padding: 0; border-radius: 16px; }
.live-url { flex: 1; min-width: 0; }
.live-url .input { height: 32px; border-radius: 16px; border-bottom-width: 1px; }
.live-screen { display: flex; justify-content: center; min-height: 200px; width: 100%; }
.live-screen > .live-msg { position: static; padding: 40px; }
.live-msg { position: absolute; inset: 0; display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 20px; background: color-mix(in srgb, #f4f4f4 92%, transparent); color: #444; font-size: 14px; z-index: 3; }
.live-ended { text-align: center; max-width: 520px; padding: 28px; }
.live-ended h2 { margin-top: 0; }
.vp canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='10' fill='rgba(120,120,120,.28)' stroke='rgba(60,60,60,.55)' stroke-width='1.5'/%3E%3C/svg%3E") 14 14, pointer; }
.vp .loadbar { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: #0a84ff; opacity: 0; z-index: 2; pointer-events: none; }
.vp .loadbar.on { opacity: 1; width: 75%; transition: width 6s cubic-bezier(.1,.6,.3,1); }
.vp .loadbar.done { opacity: 0; width: 100%; transition: width .2s, opacity .4s .2s; }
.screen.focused { box-shadow: 0 0 0 3px var(--accent); }
.kbd { position: fixed; left: -1000px; top: 0; width: 10px; height: 10px; opacity: 0; }
.dev-pick input[type=radio] { margin: 0; }
@media (max-width: 600px) {
  .live-bar { border-radius: var(--radius); flex-wrap: wrap; }
  .live-url { order: 10; flex-basis: 100%; }
}

/* ── Content pages (guides, landing pages, viewport reference) ── */
.article { line-height: 1.65; font-size: 16px; }
.article h1 { font: 700 clamp(28px, 4.4vw, 40px)/1.15 var(--font-display); margin: 8px 0 12px; letter-spacing: -0.01em; }
.article h2 { font: 600 22px/1.3 var(--font-display); margin: 36px 0 10px; }
.article h3 { font-size: 17px; margin: 24px 0 6px; }
.article p, .article li { color: var(--text); }
.article ul, .article ol { padding-left: 22px; }
.article li { margin: 4px 0; }
.article code { font: 13.5px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--subtle-hover); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.article pre { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; }
.article pre code { background: none; padding: 0; font-size: 13.5px; overflow-wrap: normal; }
.article blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--text-2); }
.article .note, .article p.note { background: var(--info-bg); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 12px 16px; }
.article .lead-sm { font-size: 18px; color: var(--text-2); margin-top: 0; }
.article .meta { color: var(--text-3); font-size: 13px; }
.article .tag { display: inline-block; background: var(--subtle-hover); border-radius: 10px; padding: 0 8px; margin: 2px 2px 0 0; color: var(--text-2); }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--stroke); border-radius: var(--radius); background: var(--card); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 8px 12px; border-bottom: 1px solid var(--stroke); text-align: left; vertical-align: top; }
.table-wrap th { background: var(--card-2); font-weight: 600; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.vp-table td:nth-child(n+2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 16px 0; }
.vp-facts div { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; }
.vp-facts span { color: var(--text-2); font-size: 13px; }
.vp-facts b { font: 600 20px/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
.crumbs { font-size: 13px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--text-2); }
.crumbs .sep { color: var(--text-3); }
@media (max-width: 640px) { .crumbs .sep:has(+ [aria-current]) { display: none; } }
.cta-box { margin: 32px 0; padding: 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--stroke); }
.cta-box h2 { margin: 0 0 4px; font-size: 20px; }
.cta-box p { margin: 0 0 14px; color: var(--text-2); }
.cta-box .check-card { box-shadow: none; }
.static-form { max-width: 680px; margin: 0 auto; text-align: left; }
.static-form .form-label { display: block; font-weight: 600; margin-bottom: 8px; }
.static-form .hint { margin-top: 8px; color: var(--text-3); font-size: 13px; }
.landing .narrow-col { max-width: 760px; margin: 24px auto 0; }
.faq-static details { border-bottom: 1px solid var(--stroke); padding: 10px 0; }
.faq-static summary { cursor: pointer; font-weight: 600; }
.faq-static p { margin: 8px 0 0; color: var(--text-2); }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.guide-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); color: var(--text); text-decoration: none; line-height: 1.4; }
.guide-card:hover { background: var(--card-hover); border-color: var(--stroke-strong); }
.guide-card span { color: var(--text-2); font-size: 14px; }
.contact-mail { font-size: 18px; }
/* Reserved ad positions: fixed minimum heights so pages don't jump when an ad loads (CLS). */
.ad-slot { margin: 28px auto; min-height: 280px; max-width: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
.ad-slot .ad-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; text-align: center; }
.ad-slot.ad-top { min-height: 100px; }
.ad-slot[data-ad-preview] { border: 1px dashed var(--stroke-strong); border-radius: var(--radius); background: var(--subtle-hover); align-items: center; }
.ad-slot[data-ad-preview] span { color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 768px) { .ad-slot { min-height: 250px; } .ad-slot.ad-top { min-height: 90px; } }
.ad-slot.ad-sidebar { min-height: 600px; margin: 0; }
.ad-slot.ad-progress, .ad-slot.ad-live { margin-top: 32px; } /* kept well away from buttons: no accidental clicks */
/* Sticky ad beside articles, only where there is room for it next to the 820 px text column. */
.side-ad { display: none; }
@media (min-width: 1200px) {
  .with-aside { display: flex; justify-content: center; gap: 32px; max-width: 1200px; margin: 0 auto; }
  .with-aside > .page { flex: 0 1 820px; min-width: 0; margin: 0; }
  .side-ad { display: block; flex: 0 0 300px; padding-top: 32px; }
  .side-ad .ad-slot { position: sticky; top: 72px; }
}

/* Printing a report (Save as PDF): only the report itself. */
@media print {
  .ad-slot, .side-ad, .topbar, .footer, .run-bar, .btn-row, .pivot, .toolbar, .toasts, .skip, .promo-slot, .no-print { display: none !important; }
  .page { padding: 0 4mm; max-width: none; }
  .report-head { flex-wrap: wrap; }
  details.expander { break-inside: avoid; }
  details.expander:not([open]) > .body { display: block; }
  .dcard { break-inside: avoid; }
}
@media (max-width: 640px) { .crumbs [aria-current] { display: none; } }

/* Browser extension offer on the check form */
.ext-offer { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.ext-offer[hidden] { display: none; }

/* Less motion for people who ask for it. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Shown depending on whether the MobileCheck extension is installed (it marks <html data-mobilecheck-extension>). */
html:not([data-mobilecheck-extension]) .if-ext, html[data-mobilecheck-extension] .if-no-ext { display: none !important; }
.shot-figure { margin: 32px auto 0; max-width: 960px; }
.shot-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-flyout); }
