:root {
  color-scheme: light;
  --blue: #3159e9;
  --blue-dark: #2446c5;
  --blue-soft: #eef3ff;
  --ink: #1e283d;
  --muted: #647187;
  --line: #e3e8ef;
  --canvas: #f7f9fc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 1rem; line-height: 1.6; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { display: block; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #7693f5; outline-offset: 4px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: absolute; z-index: 10; left: 20px; top: 16px; padding: 8px 15px; background: white; color: var(--blue); }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1280px; padding: 0 40px; height: 80px; margin: auto; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; font-size: 1.812rem; font-weight: 750; letter-spacing: -1.3px; line-height: 1; }
.brand-mark { width: 34px; height: 34px; color: var(--blue); margin-right: 10px; }
.brand-dot { color: var(--blue); }
nav { display: flex; align-items: center; }
nav { gap: 4px; }
nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted); padding: 8px 13px; border-radius: 7px; white-space: nowrap; transition: color .15s, background .15s; }
nav a:hover { color: var(--ink); background: #f3f6fa; }
nav a[aria-current="page"] { font-weight: 600; color: var(--blue); background: var(--blue-soft); }
.help-link { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 0.875rem; color: var(--muted); }
.help-link svg, .connection-label svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; }
.help-link:hover { color: var(--blue); }
main { max-width: 1280px; margin: auto; padding: 42px 40px 0; }
.eyebrow { color: var(--muted); font-size: 0.75rem; line-height: 1.4; letter-spacing: 1.4px; font-weight: 600; margin: 0 0 11px; }
h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 650; line-height: 1.2; letter-spacing: -1.2px; margin: 0 0 11px; }
h2 { font-size: 1.125rem; font-weight: 650; letter-spacing: -.35px; line-height: 1.4; margin: 0; }
h3 { font-size: 1rem; font-weight: 650; letter-spacing: -.2px; margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.muted { color: var(--muted); }
button:disabled { cursor: not-allowed; }

/* Search */
.hero { text-align: center; margin-bottom: 28px; }
.hero-lead { color: var(--muted); max-width: 620px; margin: 0 auto 26px; font-size: 1.0625rem; }
.hero-lead strong { color: var(--ink); font-weight: 600; }
.search-card { text-align: left; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 16px; box-shadow: 0 3px 5px #26365904, 0 16px 40px #2636590a; }
.search-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.25fr) minmax(0, 1.5fr) auto; gap: 12px; align-items: end; }
.field label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 7px; }
.optional { font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #cbd5e3; border-radius: 8px; color: var(--ink); background: white; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; padding-right: 36px; cursor: pointer; }
.field-type { position: relative; }
.field-type::after { content: ''; position: absolute; right: 16px; bottom: 22px; width: 7px; height: 7px; border: solid #647187; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none; }
#domain { font-size: 1.0625rem; }
.field input::placeholder { color: #8390a4; }
.field input:hover, .field select:hover { border-color: #9baecc; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #3159e91c; outline: none; }
.primary { height: 50px; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 26px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: white; font-size: 0.9375rem; font-weight: 600; white-space: nowrap; box-shadow: 0 3px 7px #3159e920; transition: background .15s, transform .15s; }
.primary svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.6; }
.primary:hover { background: var(--blue-dark); }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: .7; cursor: wait; }
#error { color: #a33542; font-size: 0.875rem; margin: 12px 0 0; }
.search-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; margin-top: 12px; }
#record-help { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.examples { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--muted); }
.examples button { border: 1px solid var(--line); background: #f7f9fc; color: #44516a; border-radius: 999px; padding: 3px 11px; font-size: 0.8125rem; }
.examples button:hover { border-color: #b2c2f4; color: var(--blue); background: var(--blue-soft); }

/* Results */
.results { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 5px #26365902, 0 12px 32px #26365906; overflow: hidden; }
.summary-bar { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.summary-symbol { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 1.25rem; font-weight: 600; flex-shrink: 0; }
.summary-text { min-width: 0; flex: 1; }
.summary-text h2 { overflow-wrap: anywhere; }
.summary-text p { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; }
.summary-score { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding-right: 6px; }
.summary-score strong { font-size: 1.875rem; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.summary-score span { font-size: 0.75rem; color: var(--muted); }
.summary-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ghost { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #3c4960; font-size: 0.8125rem; font-weight: 500; }
.ghost svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; }
.ghost:hover:not(:disabled) { border-color: #b2c2f4; color: var(--blue); }
.ghost:disabled { opacity: .5; }
.auto-check, .issues-only { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); font-weight: 400; cursor: pointer; }
.auto-check input, .issues-only input { accent-color: var(--blue); margin: 0; }
.auto-check:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.results[data-state="match"] .summary-symbol { background: #dcefe4; color: #287352; }
.results[data-state="different"] .summary-symbol, .results[data-state="partial"] .summary-symbol { background: #f7ecd0; color: #8a652b; }
.results[data-state="error"] .summary-symbol { background: #f6e1e4; color: #a33542; }
.results[data-state="loading"] .summary-symbol { animation: spin 1s linear infinite; }
.results[data-state="match"] .summary-score strong { color: #287352; }
.results[data-state="different"] .summary-score strong { color: #8a652b; }

.progress { display: flex; height: 6px; margin: 0 24px; border-radius: 99px; overflow: hidden; background: #edf1f6; gap: 2px; }
.progress span { flex: 0 0 auto; flex-grow: 0; flex-basis: 0; transition: flex-grow .4s; }
.seg-match { background: #2f9467; }.seg-different { background: #e0a53a; }.seg-missing { background: #a7b2c3; }.seg-error { background: #d4596a; }
.status-legend { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; padding: 10px 24px 18px; font-size: 0.8125rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.status-legend li { display: flex; align-items: center; gap: 6px; }
.status-legend i { width: 9px; height: 9px; border-radius: 50%; }
.status-legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
[data-status="match"] > i { background: #2f9467; }[data-status="different"] > i { background: #e0a53a; }[data-status="missing"] > i { background: #a7b2c3; }[data-status="error"] > i { background: #d4596a; }
.status-legend .checked-at { margin-left: auto; }

.overview { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border-bottom: 1px solid var(--line); }
.map-card { margin: 0; padding: 20px 24px 16px; border-right: 1px solid var(--line); min-width: 0; }
.map-wrap { position: relative; }
#map { display: block; width: 100%; height: auto; overflow: visible; }
.land { stroke: #d5dde9; stroke-width: 1.15; stroke-linecap: round; fill: none; }
.marker { cursor: pointer; outline: none; }
.marker .dot { fill: #9aa7bb; stroke: white; stroke-width: .7; transition: fill .3s, transform .15s; transform-box: fill-box; transform-origin: center; }
.marker .pulse { fill: none; stroke: none; }
.marker[data-status="match"] .dot { fill: #2f9467; }
.marker[data-status="different"] .dot { fill: #e0a53a; }
.marker[data-status="missing"] .dot { fill: #8c98ab; }
.marker[data-status="error"] .dot { fill: #d4596a; }
.marker[data-status="loading"] .dot { fill: var(--blue); }
.marker[data-status="loading"] .pulse { stroke: var(--blue); stroke-width: .5; animation: pulse 1.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.marker:hover .dot, .marker:focus-visible .dot, .marker.active .dot { transform: scale(1.6); }
.marker:focus-visible .dot { stroke: var(--ink); }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.map-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 10px)); width: max-content; max-width: 240px; background: var(--ink); color: white; border-radius: 8px; padding: 9px 12px; font-size: 0.75rem; line-height: 1.5; box-shadow: 0 8px 24px #1e283d33; pointer-events: none; display: grid; gap: 2px; }
.map-tip.below { transform: translate(-50%, 10px); }
.map-tip strong { font-size: 0.8125rem; }
.map-tip .tip-provider { color: #b7c1d3; }
.map-tip code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.75rem; color: #dfe6f3; margin-top: 3px; }
.tip-status::before { content: '●'; margin-right: 5px; }
.tip-status[data-status="match"] { color: #7fd6ac; }.tip-status[data-status="different"] { color: #f2c66f; }.tip-status[data-status="error"] { color: #f1919e; }.tip-status[data-status="missing"], .tip-status[data-status="waiting"] { color: #b7c1d3; }.tip-status[data-status="loading"] { color: #9fb4ff; }
.map-card figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 10px; }

.answers-card { padding: 20px 22px; min-width: 0; max-height: 460px; overflow-y: auto; }
.answers-card h3 { margin-bottom: 12px; }
.muted-note { color: var(--muted); font-size: 0.875rem; margin: 0; }
.answer-group { border: 1px solid var(--line); border-left: 3px solid #e0a53a; border-radius: 8px; padding: 11px 13px; }
.answer-group + .answer-group { margin-top: 10px; }
.answer-group[data-status="match"] { border-left-color: #2f9467; }
.group-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.8125rem; }
.group-tag { font-size: 0.6875rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: #f7ecd0; color: #7b5a22; }
.answer-group[data-status="match"] .group-tag { background: #dcefe4; color: #23664a; }
.group-count { margin-left: auto; color: var(--muted); font-size: 0.75rem; }
.group-values { margin-top: 7px; display: grid; gap: 2px; }
.group-values code { font-size: 0.8125rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.group-flags { margin: 7px 0 0; font-size: 0.875rem; line-height: 1.4; letter-spacing: 1px; }

.locations-card { padding: 18px 0 8px; }
.locations-head { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 0 24px 14px; }
.region-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 3px; background: #f2f5f9; border-radius: 9px; }
.region-tabs button { border: 0; background: none; border-radius: 6px; padding: 5px 11px; font-size: 0.8125rem; font-weight: 500; color: #56657d; }
.region-tabs button span { color: #98a4b6; font-weight: 400; margin-left: 2px; font-variant-numeric: tabular-nums; }
.region-tabs button:hover { color: var(--ink); }
.region-tabs button[aria-pressed="true"] { background: white; color: var(--blue); box-shadow: 0 1px 3px #1e283d1a; }
.issues-only { margin-left: auto; }
.table-scroll { overflow-x: auto; }
.locations { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.locations th { text-align: left; font-size: 0.75rem; font-weight: 500; color: var(--muted); background: #f7f9fc; padding: 8px 12px; border-block: 1px solid var(--line); white-space: nowrap; }
.locations th:first-child, .locations td:first-child { padding-left: 24px; }
.locations th:last-child, .locations td:last-child { padding-right: 24px; }
.locations td { padding: 11px 12px; border-bottom: 1px solid #edf1f6; vertical-align: top; }
.locations tbody tr:last-child td { border-bottom: 0; }
.locations tbody tr { transition: background .2s; }
.locations tbody tr:hover, .locations tbody tr.active { background: #f7f9fd; }
.locations tbody tr.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: #e3eaff; } to { background: transparent; } }
.location-cell { white-space: nowrap; font-weight: 500; }
.flag { margin-right: 8px; font-size: 1.0625rem; }
.provider-cell span { display: block; }
.provider-cell code { font-size: 0.75rem; color: var(--muted); }
.answer-cell { width: 42%; }
.answer-cell code { display: block; font-size: 0.8125rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.answer-cell .via { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.ttl-col { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.status-col { text-align: right; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; padding: 3px 9px; border-radius: 99px; background: #f0f3f7; color: #5a677d; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill[data-status="match"] { background: #e6f4ec; color: #23664a; }
.pill[data-status="different"] { background: #fbf1da; color: #7b5a22; }
.pill[data-status="error"] { background: #fbe8eb; color: #9b3040; }
.pill[data-status="loading"] { background: var(--blue-soft); color: var(--blue); }
.pill[data-status="loading"]::before { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.group-letter { font-size: 0.6875rem; font-weight: 700; padding: 0 5px; border-radius: 4px; background: #ffffffaa; }
.empty-filter { color: var(--muted); font-size: 0.875rem; text-align: center; padding: 20px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Shared tool pages */
.tool-card { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 5px #26365902, 0 12px 32px #26365906; padding: 22px 24px; margin-bottom: 20px; min-width: 0; }
.tool-card h3 { margin-bottom: 14px; }
.fine-print { font-size: 0.75rem; color: var(--muted); margin: 12px 0 0; }
a.ghost { text-decoration: none; }
.badge { display: inline-block; font-size: 0.6875rem; font-weight: 600; letter-spacing: .3px; padding: 1px 8px; border-radius: 99px; background: var(--blue-soft); color: var(--blue); margin-left: 6px; vertical-align: 1px; }

/* What's my IP */
.ip-card { text-align: center; padding: 32px 24px 28px; }
.ip-label { margin: 0; color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.ip-address { font: 700 clamp(1.75rem, 5vw, 3rem)/1.15 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -1px; margin: 10px 0 6px; overflow-wrap: anywhere; }
.ip-card[aria-busy="true"] .ip-address { color: #a7b2c3; }
.ip-ptr { margin: 0; color: var(--muted); font-size: 0.875rem; overflow-wrap: anywhere; }
.ip-actions { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.ip-actions .primary { height: 44px; padding: 0 20px; }
.ip-actions .ghost { height: 44px; }
#ip-error, #speed-error { color: #a33542; font-size: 0.875rem; margin: 14px 0 0; }
.ip-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; }
.ip-grid .tool-card { margin-bottom: 20px; }
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf1f6; font-size: 0.875rem; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts-wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 32px; }
.facts-wide > div:last-child { border-bottom: 1px solid #edf1f6; }
.mini-map { display: block; width: 100%; height: auto; overflow: visible; }
.mini-map .halo { fill: #3159e926; animation: halo 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.mini-map .here { fill: var(--blue); stroke: white; stroke-width: .8; }
@keyframes halo { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.tz-check { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 0.8125rem; background: #f0f9f5; color: #23664a; }
.tz-check[data-match="false"] { background: #fffbf1; color: #7b5a22; }

/* Speed test */
.speed-card { text-align: center; padding: 30px 24px 22px; }
.gauge { position: relative; width: min(100%, 360px); margin: 0 auto; }
.gauge svg { display: block; width: 100%; overflow: visible; }
.gauge-track, .gauge-fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge-track { stroke: #edf1f6; }
.gauge-fill { stroke: var(--blue); stroke-dasharray: 0 100; transition: stroke-dasharray .25s ease-out, stroke .3s; }
.speed-card[data-phase="upload"] .gauge-fill { stroke: #7b4fd6; }
.speed-card[data-phase="done"] .gauge-fill { stroke: #2f9467; }
.gauge-tick { font-size: 7px; fill: #98a4b6; font-family: inherit; }
.gauge-readout { position: absolute; left: 0; right: 0; bottom: 4px; }
.gauge-label { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.gauge-value { margin: 0; line-height: 1.1; }
.gauge-value span { font-size: clamp(2.25rem, 7vw, 3.25rem); font-weight: 700; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.gauge-value small { margin-left: 6px; color: var(--muted); font-size: 0.9375rem; }
.start-button { margin: 22px auto 0; min-width: 190px; }
.start-button svg { fill: currentColor; stroke: none; }
.speed-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; text-align: left; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); }
.stat-label svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; }
.stat strong { display: inline-block; font-size: 1.625rem; font-weight: 700; letter-spacing: -.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat small { margin-left: 4px; color: var(--muted); font-size: 0.8125rem; }
.speed-card[data-phase="ping"] [data-stat="ping"], .speed-card[data-phase="download"] [data-stat="download"], .speed-card[data-phase="upload"] [data-stat="upload"] { border-color: var(--blue); background: var(--blue-soft); }
.speed-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; margin: 18px 0 0; font-size: 0.8125rem; }
.speed-meta > div { display: flex; gap: 6px; }
.speed-meta dt { color: var(--muted); }
.speed-meta dd { margin: 0; font-weight: 500; }
.verdict-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }
.verdict-list li { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; padding: 6px 0; }
.verdict-list li::before { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.verdict-list li[data-ok="true"]::before { content: '✓'; background: #dcefe4; color: #23664a; }
.verdict-list li[data-ok="false"]::before { content: '✕'; background: #f6e1e4; color: #9b3040; }
.verdict-list li[data-ok="false"] { color: var(--muted); }
.history-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.history-head h3 { margin: 0; }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.history-table th { text-align: left; font-weight: 500; color: var(--muted); padding: 7px 10px; background: #f7f9fc; border-block: 1px solid var(--line); white-space: nowrap; }
.history-table td { padding: 8px 10px; border-bottom: 1px solid #edf1f6; white-space: nowrap; }
/* Domain checker */
.domain-search .search-row { grid-template-columns: minmax(0, 1fr) auto; }
.domain-search .search-meta p { margin: 0; font-size: 0.8125rem; }
.loading-card { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 0.875rem; }
.loading-card p { margin: 0; }
.spinner { width: 24px; height: 24px; border: 3px solid #e0e8fc; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.report-head { display: flex; align-items: center; gap: 14px; }
.report-head > div { flex: 1; min-width: 0; }
.report-head h2 { font-size: 1.375rem; overflow-wrap: anywhere; }
.report-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; }
#report[data-state="ok"] .summary-symbol { background: #dcefe4; color: #287352; }
#report[data-state="warn"] .summary-symbol { background: #f7ecd0; color: #8a652b; }
#report[data-state="bad"] .summary-symbol { background: #f6e1e4; color: #a33542; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.8125rem; color: var(--muted); }
.checks li::before { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; font-weight: 700; }
.checks li strong { color: var(--ink); font-size: 0.875rem; font-weight: 600; }
.checks li[data-tone="ok"]::before { content: '✓'; background: #dcefe4; color: #23664a; }
.checks li[data-tone="warn"]::before { content: '!'; background: #f7ecd0; color: #7b5a22; }
.checks li[data-tone="bad"]::before { content: '✕'; background: #f6e1e4; color: #9b3040; }
.checks li[data-tone="info"]::before { content: 'i'; background: #eef2f9; color: #5a677d; font-style: italic; font-family: Georgia, serif; }
.checks li[data-tone="bad"] { border-color: #f2d3d8; background: #fdf6f7; }
.checks li[data-tone="warn"] { border-color: #f0e3c2; background: #fffcf4; }
.card-note { margin: 0 0 10px; padding: 9px 12px; border-radius: 8px; font-size: 0.8125rem; background: #f3f6fa; color: #44516a; }
.card-note[data-tone="ok"] { background: #f0f9f5; color: #23664a; }
.card-note[data-tone="warn"] { background: #fffbf1; color: #7b5a22; }
.card-note[data-tone="bad"] { background: #fdf3f4; color: #9b3040; }
.value-stack { display: grid; gap: 2px; }
.value-stack code { font-size: 0.8125rem; font-weight: 400; overflow-wrap: anywhere; white-space: pre-wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 0.75rem; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: #f0f3f7; color: #5a677d; }
.chip[data-tone="ok"] { background: #e6f4ec; color: #23664a; }
.chip[data-tone="warn"] { background: #fbf1da; color: #7b5a22; }
.chip[data-tone="bad"] { background: #fbe8eb; color: #9b3040; }
.dns-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dns-table th, .dns-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid #edf1f6; vertical-align: top; text-align: left; }
.dns-table tr:last-child th, .dns-table tr:last-child td { border-bottom: 0; }
.dns-table th { width: 70px; font: 600 0.75rem/1.9 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--blue); }
.dns-action { width: 130px; text-align: right !important; white-space: nowrap; }
.dns-action a { font-size: 0.8125rem; color: var(--blue); }
.dns-action a:hover { text-decoration: underline; }
/* Admin */
.admin .header-inner { gap: 14px; }
.admin-badge { margin-left: 0; }
.admin-signout { margin-left: auto; }
.login-card { max-width: 400px; margin: 40px auto; padding: 28px; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.login-card p.muted { margin: 0 0 18px; font-size: 0.875rem; }
.login-card .primary { width: 100%; margin-top: 16px; }
#login-error, #stats-error { color: #a33542; font-size: 0.875rem; margin: 12px 0 0; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-toolbar h1 { font-size: 1.75rem; margin: 0; }
.admin-toolbar p { margin: 2px 0 0; font-size: 0.875rem; }
.admin-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 1px; }
.kpi-label { font-size: 0.8125rem; color: var(--muted); font-weight: 500; }
.kpi strong { font-size: 1.75rem; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi-period { font-size: 0.75rem; color: var(--muted); }
.kpi-change { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.kpi-change[data-direction="up"] { color: #23664a; }
.kpi-change[data-direction="down"] { color: #9b3040; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-head h2 { font-size: 1.0625rem; }
.chart-head p { margin: 2px 0 0; font-size: 0.8125rem; }
.chart-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8125rem; color: #44516a; }
.chart-legend li { display: flex; align-items: center; gap: 6px; }
.chart-legend i, .tip-row i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.chart-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chart { position: relative; min-height: 240px; }
.chart svg { display: block; }
.chart .grid { stroke: #edf1f6; stroke-width: 1; }
.chart .baseline { stroke: #b9c3d3; stroke-width: 1; }
.chart .axis { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: default; outline: none; }
.chart .column path, .chart .column rect:not(.hit) { transition: opacity .15s; }
.chart .column.dimmed path, .chart .column.dimmed rect:not(.hit) { opacity: .35; }
.chart-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 10px)); min-width: 170px; background: var(--ink); color: white; border-radius: 8px; padding: 9px 12px; font-size: 0.75rem; line-height: 1.5; box-shadow: 0 8px 24px #1e283d33; pointer-events: none; display: grid; gap: 3px; }
.chart-tip strong { font-size: 0.8125rem; margin-bottom: 2px; }
.tip-row { display: flex; align-items: center; gap: 7px; }
.tip-row span { flex: 1; color: #d3dae6; }
.tip-row b { font-variant-numeric: tabular-nums; }
#table-title { font-size: 1.0625rem; margin-bottom: 12px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.stats-table th, .stats-table td { padding: 8px 10px; border-bottom: 1px solid #edf1f6; text-align: right; white-space: nowrap; }
.stats-table th:first-child { text-align: left; }
.stats-table thead th { font-weight: 500; color: var(--muted); background: #f7f9fc; border-top: 1px solid var(--line); }
.stats-table tbody th { font-weight: 500; }
.scope-note { display: flex; justify-content: flex-start; gap: 8px; padding: 16px 2px 0; color: var(--muted); }.scope-note svg { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.4; }.scope-note p { font-size: 0.75rem; margin: 0; line-height: 1.6; }
.guide { display: grid; grid-template-columns: 318px minmax(0,1fr); gap: 24px; margin: 37px 0 43px; padding-top: 30px; border-top: 1px solid var(--line); }.guide-heading h2 { font-size: 1.312rem; font-weight: 600; letter-spacing: -.5px; }.guide-heading p { color: var(--muted); font-size: 0.875rem; margin: 7px 0 0; }.guide-items { margin-top: -9px; }details { border-bottom: 1px solid var(--line); }details:last-child { border-bottom: 0; }summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; font-size: 0.875rem; font-weight: 500; list-style: none; }summary::-webkit-details-marker { display: none; }summary>span { color: #8c9bb1; font-weight: 400; font-size: 1.25rem; line-height: 1; transition: transform .15s; }details[open] summary>span { transform: rotate(45deg); }details p { color: var(--muted); font-size: 0.875rem; line-height: 1.8; margin: 0; padding: 0 25px 18px 0; }
footer { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 24px 0 29px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; }.footer-brand { font-size: 1.438rem; }.footer-note { margin-left: auto; }
@media(min-width:1440px) { main { padding-top: 48px; } }
@media(max-width:1280px) { footer { margin-left: 40px; margin-right: 40px; } }
@media(max-width:1060px) {
 .header-inner { gap: 28px; }
 .ip-grid { grid-template-columns: 1fr; gap: 0; }
 .search-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
 .field-domain { grid-column: 1 / -1; }
 .primary { grid-column: 1 / -1; }
 .overview { grid-template-columns: 1fr; }
 .map-card { border-right: 0; border-bottom: 1px solid var(--line); }
 .answers-card { max-height: none; }
 .summary-bar { flex-wrap: wrap; }
 .summary-actions { flex-basis: 100%; justify-content: flex-start; }
}
@media(max-width:760px) {
 .header-inner { height: 64px; padding: 0 20px; gap: 20px; }.brand { font-size: 1.625rem; }.brand-mark { width: 30px; height: 30px; }nav { margin-left: auto; }nav { gap: 2px; }nav a { padding: 7px 9px; font-size: 0.8125rem; }.nav-extra { display: none; }.help-link { display: none; }
 main { padding: 26px 16px 0; }
 h1 { font-size: 1.75rem; letter-spacing: -.8px; }
 .hero { margin-bottom: 20px; }.hero-lead { font-size: 0.9375rem; margin-bottom: 20px; }
 .search-card { padding: 16px; }
 .search-row { grid-template-columns: 1fr; }
 .search-meta { flex-direction: column; align-items: flex-start; }
 .summary-bar { padding: 18px 16px; gap: 12px; }
 .summary-score strong { font-size: 1.5rem; }
 .progress { margin: 0 16px; }
 .status-legend { padding: 10px 16px 16px; gap: 6px 14px; }
 .status-legend .checked-at { margin-left: 0; flex-basis: 100%; }
 .map-card { padding: 14px 12px 12px; }.map-card figcaption { padding: 0 4px; }
 .answers-card { padding: 16px; }
 .locations-head { padding: 0 16px 12px; }
 .issues-only { margin-left: 0; }
 .locations thead { display: none; }
 .locations, .locations tbody, .locations tr, .locations td { display: block; }
 .locations tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid #edf1f6; }
 .locations td, .locations th:first-child, .locations td:first-child, .locations td:last-child { padding: 0; border: 0; }
 .location-cell { white-space: normal; }
 .locations .provider-cell { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 0.8125rem; }
 .provider-cell span { display: inline; }
 .answer-cell { width: auto; grid-column: 1; }
 .ttl-col { grid-column: 2; grid-row: 3; text-align: right; font-size: 0.8125rem; }
 .status-col { grid-column: 2; grid-row: 1; }
 .guide { grid-template-columns: 1fr; gap: 20px; margin-top: 26px; padding-top: 25px; margin-bottom: 27px; }.guide-items { margin-top: 0; }summary { font-size: 0.9375rem; padding: 14px 0; }details p { font-size: 0.9375rem; }
 footer { margin: 0 16px; padding: 22px 0; gap: 15px; }.footer-note { display: none; }
 .tool-card { padding: 18px 16px; }
 .ip-grid { grid-template-columns: 1fr; gap: 0; }
 .facts > div { grid-template-columns: 120px minmax(0, 1fr); }
 .speed-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .speed-meta { justify-content: flex-start; flex-direction: column; text-align: left; }
 .domain-search .search-row { grid-template-columns: 1fr; }
 .report-head { flex-wrap: wrap; }
 .checks { grid-template-columns: 1fr; }
 .dns-action { width: auto; }
}
@media(max-width:440px) { .brand { font-size: 0; gap: 0; }.brand-mark { margin-right: 0; }.header-inner { gap: 12px; }nav a { padding: 7px 7px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; }*,*::before,*::after { animation: none!important; transition: none!important; } }
