@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --panel: #111114;
  --input: #15151a;
  --text: #f1f0ea;
  --muted: #b4b2a9;
  --quiet: #96949e;
  --accent: #7f77dd;
  --accent-text: #b9b1ff;
  --accent-bg: #1e1b31;
  --line: rgb(241 240 234 / 12%);
  --line-strong: rgb(241 240 234 / 22%);
  --ok: #a0d0ad;
  --warn: #e4c092;
  --bad: #eba9a9;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font: 16px Geist, "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; }
svg:not(.symbols) { width: 1.1em; height: 1.1em; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.shell { width: min(100% - 48px, 1080px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { display: flex; justify-content: space-between; align-items: center; min-height: 70px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-weight: 700; line-height: 1.15; }
.brand small { display: block; margin-top: 4px; color: var(--quiet); font: 9px var(--mono); letter-spacing: .16em; }
.mode { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 11px var(--mono); padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
.mode i { height: 6px; width: 6px; border-radius: 50%; background: var(--accent); }
.mode.live i { background: var(--ok); }
main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.intro { margin: 37px 0 29px; }
.eyebrow, .field-label, legend, .foot, .stat dt { color: var(--quiet); font: 10px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.eyebrow { margin: 0 0 9px; }
.eyebrow span { color: var(--accent-text); }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(35px, 5.3vw, 61px); line-height: 1; letter-spacing: -.056em; margin-bottom: 13px; }
h2 { font-size: 20px; letter-spacing: -.028em; margin-bottom: 4px; line-height: 1.2; }
p { line-height: 1.5; }
.intro > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.check-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); gap: 16px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.form-panel { padding: 21px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.panel-heading p, .side-panel p:not(.eyebrow), .recent-state p { color: var(--muted); font-size: 13px; margin: 5px 0 0; }
.tag { border-radius: 4px; border: 1px solid var(--line); color: var(--accent-text); background: var(--accent-bg); padding: 4px 7px; font: 10px/1.35 var(--mono); white-space: nowrap; }
form { margin: 0; }
#probe-form { margin-top: 21px; }
.field-label { display: block; margin-bottom: 7px; }
textarea, input[type=number], input[type=search], select { color: var(--text); background: var(--input); border: 1px solid var(--line-strong); border-radius: 5px; min-height: 44px; font: 16px/1.45 Geist, "Space Grotesk", system-ui, sans-serif; padding: 9px 11px; }
textarea { display: block; width: 100%; resize: vertical; font-family: var(--mono); overflow-wrap: anywhere; }
textarea::placeholder, input::placeholder { color: var(--quiet); }
.hint, .mono { font-family: var(--mono); }
.hint { margin: 7px 0 17px; font-size: 10px; color: var(--quiet); overflow-wrap: anywhere; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend { margin-bottom: 7px; padding: 0; }
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.profiles label { cursor: pointer; position: relative; min-width: 0; }
.profiles input { position: absolute; opacity: 0; }
.profiles span { display: flex; flex-direction: column; justify-content: center; gap: 3px; height: 100%; min-height: 53px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--input); }
.profiles strong { font-size: 13px; }
.profiles small { font-size: 11px; color: var(--muted); }
.profiles input:checked + span { border-color: var(--accent); background: var(--accent-bg); }
:focus-visible, .profiles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.options { margin: 8px 0 12px; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; min-height: 44px; align-content: center; color: var(--muted); font-size: 13px; }
.settings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 0 0 12px; }
.settings label { font-size: 12px; color: var(--muted); display: grid; gap: 4px; min-width: 0; }
.settings .toggle { display: flex; align-items: center; gap: 7px; min-height: 44px; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; font: 600 13px Geist, "Space Grotesk", system-ui, sans-serif; color: var(--text); border: 1px solid transparent; border-radius: 5px; padding: 8px 13px; background: none; cursor: pointer; text-decoration: none; transition: background-color 120ms, border-color 120ms; }
button:disabled { opacity: .64; cursor: wait; }
button.primary { background: var(--accent); color: #0d0b15; }
button.primary:hover { background: #a097f1; }
button.secondary { border-color: var(--line-strong); background: var(--input); }
button.secondary:hover, button.ghost:hover, .text-link:hover { background: var(--accent-bg); }
button.ghost, .text-link { color: var(--accent-text); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar { display: grid; gap: 12px; }
.side-panel { padding: 17px; }
.side-panel h2 { font-size: 18px; }
.cover-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 35px; border-bottom: 1px solid var(--line); font-size: 12px; }
.cover-row:first-child { margin-top: 6px; }
.cover-row:last-child { border-bottom: 0; }
.cover-row span:last-child { color: var(--quiet); font: 10px var(--mono); text-align: right; }
.cover-row span.on:last-child { color: var(--accent-text); }
.connection .text-link { margin: 3px 0 -7px -10px; padding-inline: 9px; }
.recent { margin: 23px 0 9px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.recent .eyebrow { margin-bottom: 3px; }
.recent h2 { margin: 0; }
.recent-state { padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recent-state strong { font-size: 14px; }
.recent-state p { margin: 2px 0 0; }
.message { margin: 10px 0 0; color: var(--warn); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.foot { display: flex; justify-content: space-between; gap: 8px; padding: 16px 0 7px; margin-top: 10px; font-size: 9px; }
.dock { position: fixed; bottom: 0; inset-inline: 0; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 1; }
.dock-inner { display: flex; justify-content: center; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; width: min(100%, 155px); border-top: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 13px; }
.dock a[aria-current=page] { color: var(--accent-text); border-color: var(--accent); background: var(--accent-bg); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stat { margin: 0; padding: 12px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat dd { font: 20px/1.3 var(--mono); margin: 3px 0 0; overflow-wrap: anywhere; }
.status { font: 10px/1.4 var(--mono); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.bad { color: var(--bad); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
a { color: var(--accent-text); }
pre { max-width: 100%; max-height: 24rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 5px; padding: 11px; background: var(--bg); font: 12px/1.5 var(--mono); color: var(--muted); margin: 9px 0; }
code { font-family: var(--mono); overflow-wrap: anywhere; }
dialog { color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 6px; width: min(720px, calc(100% - 24px)); max-height: 87dvh; padding: 0; }
dialog::backdrop { background: rgb(0 0 0 / 72%); }
.sheet-head { position: sticky; top: 0; z-index: 1; padding: 13px 16px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.sheet-head h2 { overflow-wrap: anywhere; }
.sheet-head .eyebrow { margin-bottom: 3px; }
#sheet-body { padding: 14px 16px 17px; }
#sheet-body > p { font-size: 13px; color: var(--muted); }
#sheet-body details { border-top: 1px solid var(--line); }
#sheet-body details:last-child { border-bottom: 1px solid var(--line); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 14px; gap: 8px 16px; }
.detail-grid div { border-bottom: 1px solid var(--line); padding: 4px 0 7px; }
.detail-grid dt { font: 10px/1.4 var(--mono); color: var(--quiet); text-transform: uppercase; }
.detail-grid dd { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin-bottom: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { color: var(--quiet); font-family: var(--mono); }
#toast { position: fixed; inset: auto 12px calc(63px + env(safe-area-inset-bottom)); margin-inline: auto; width: fit-content; max-width: calc(100% - 24px); z-index: 2; padding: 9px 12px; color: var(--text); background: var(--accent-bg); border: 1px solid var(--accent); border-radius: 5px; font-size: 13px; }
@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { min-height: 60px; }
  .intro { margin: 25px 0 20px; }
  .intro > p:last-child { font-size: 14px; }
  .check-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .form-panel { padding: 14px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .form-actions > button { flex: 1 1 auto; padding-inline: 8px; }
  .recent { align-items: center; }
  .recent .ghost { padding-inline: 3px; text-align: right; }
  .dock-inner { width: 100%; }
  .dock a { width: 33.333%; max-width: none; min-height: 54px; flex-direction: column; gap: 2px; font-size: 11px; }
  .dock svg { font-size: 17px; }
  .stat { padding: 9px 7px; }
  .stat dd { font-size: 17px; }
  dialog { position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none; max-height: 88dvh; padding-bottom: env(safe-area-inset-bottom); border-radius: 6px 6px 0 0; }
}

.provider-note { color: var(--muted); font-size: 12px; line-height: 1.5; }

.rules-table table { table-layout: fixed; }
.rules-table th:first-child { width: 35%; }
.rules-table td { vertical-align: top; }

.result-intro > .text-link { padding-left: 0; margin: -10px 0 14px; }
.result-intro h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; overflow-wrap: anywhere; }
.result-intro > p:last-of-type { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.result-picker { margin-bottom: 18px; }
.result-picker select { width: 100%; min-width: 0; }
.probe-details { display: grid; gap: 14px; }
.probe-details > details { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 0 18px; min-width: 0; }
.probe-details > details > summary { font-size: 15px; min-height: 56px; color: var(--text); }
.probe-details > details > .table-wrap { margin-bottom: 18px; }
.server-overview .stats { border-bottom: 1px solid var(--line); }
.server-overview .detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px 16px; margin: 0; }
.provider-table table { table-layout: fixed; }
.provider-table th:first-child { width: 26%; }
.provider-table th:nth-child(2) { width: 28%; }
.provider-table td { vertical-align: top; }
.provider-table .status { display: inline-block; overflow-wrap: normal; }
.capture-tools { padding: 0 17px 12px; margin-bottom: 18px; }
.capture-tools summary { font-size: 15px; color: var(--text); }
.capture-tools > p { color: var(--muted); font-size: 13px; }
[data-page="results"] > .message { margin-bottom: 14px; }
@media (max-width: 700px) {
  .server-overview .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 12px; }
  .server-overview .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-overview .stat:nth-child(2) { border-right: 0; }
  .server-overview .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .probe-details > details { padding-inline: 12px; }
  .result-actions > button { flex: 1 1 auto; }
}

.rules-table td:last-child { white-space: pre-wrap; }
