:root {
  color-scheme: light;
  --page: #f0f2f5;
  --paper: #fff;
  --line: #d4dce5;
  --ink: #202a36;
  --muted: #526070;
  --blue: #24598a;
  --stripe: #f4f7fa;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font: 15px/1.5 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.shell { width: min(940px, calc(100% - 32px)); margin-inline: auto; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-inner { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 650; }
nav { display: flex; align-items: center; gap: 18px; font-size: .875rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
main { padding-block: 24px; }
section { scroll-margin-top: 18px; }
h2 { font-size: 1.05rem; font-weight: 650; }
.muted, figcaption { color: var(--muted); font-size: .875rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.ip-panel { text-align: center; padding-top: 16px; }
.ip-panel h1 { font-size: 1.05rem; font-weight: 650; }
.ip-line { margin: 5px 14px 3px; display: flex; align-items: center; justify-content: center; gap: 10px; }
#public-ip { color: var(--blue); font: 650 clamp(1.2rem, 4.8vw, 1.9rem)/1.25 var(--mono); overflow-wrap: anywhere; }
.location { font-size: .95rem; }
#copy-status { padding: 4px 0 9px; }
#copy-status:empty { padding-top: 0; }
.button {
  display: inline-block;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 11px;
  border: 1px solid #bccbda;
  border-radius: 4px;
  background: #eef4f9;
  color: #214c78;
  font: inherit;
  font-size: .85rem;
}
.button:not(:disabled):hover { background: #dfeaf5; }
.button:not(:disabled), summary { cursor: pointer; }
.button:disabled { opacity: .65; }
.detail { text-align: left; }
.ip-panel > .detail { border-top: 1px solid var(--line); }
summary { padding: 8px 14px; font-size: .88rem; font-weight: 600; }
.detail[open] > summary { border-bottom: 1px solid var(--line); }
.ip-details { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.ip-details figure { padding: 8px 12px; text-align: center; }
.world { width: 100%; max-height: 150px; display: block; background: #f6f9fc; }
#graticule path { fill: none; stroke: #d9e3ec; stroke-width: .6; }
.land { fill: #d0e0ef; stroke: #aac0d5; stroke-width: .6; stroke-linejoin: round; }
.marker-halo { fill: #3579bd35; stroke: #356fa7; stroke-width: 1; }
.marker-center { fill: #24598a; stroke: white; stroke-width: 1; }
figcaption { margin-top: 5px; }
.rows > div { display: grid; grid-template-columns: minmax(6.2rem, 34%) minmax(0, 1fr); }
.rows dt, .rows dd { padding: 6px 12px; font-size: .85rem; overflow-wrap: anywhere; }
.rows dt { background: #e9eff6; font-weight: 550; }
.rows > div:nth-child(even) { background: var(--stripe); }
.rows > div:nth-child(even) dt { background: #e1eaf3; }

.test-directory { margin-top: 24px; }
.test-directory h2 { margin-bottom: 10px; }
.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.test-card { padding: 16px; display: grid; align-content: start; justify-items: start; gap: 7px; }
.test-card h3 { font-size: 1rem; }
.test-card .button { margin-top: 3px; }
.test-intro { margin-bottom: 20px; }
.test-intro h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; }
.test-intro p { margin-top: 8px; color: var(--muted); }
.vpn-outcome { padding: 18px; border-bottom: 1px solid var(--line); }
.vpn-outcome[data-state="mismatch"] { background: #fff7e9; }
.vpn-outcome h2 { font-size: 1.2rem; margin-bottom: 5px; }
#vpn-reasons { margin: 10px 0 0; padding-inline-start: 1.25rem; }
#vpn-reasons:empty { display: none; }
.vpn-note { margin-top: 10px; }
.panel-heading { padding: 9px 13px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.status { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.status[data-state="running"] { color: var(--blue); }
.status[data-state="success"] { color: #216643; }
.probe-body { min-height: 112px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.probe-message { font-size: .85rem; color: var(--muted); }
.result-list { list-style: none; padding: 0; margin: 0; font: 1rem/1.5 var(--mono); overflow-wrap: anywhere; width: 100%; }
.result-list li { padding: 8px 10px; background: var(--stripe); border-bottom: 1px solid var(--line); }
.probe-message:empty, .result-list:empty { display: none; }
.device-location { margin-top: 12px; padding: 9px 13px; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.request-details { margin-top: 12px; }

.incognito-page .shell { width: min(1180px, calc(100% - 32px)); }
.private-window {
  min-height: 68svh;
  padding: clamp(22px, 5vw, 64px);
  display: grid;
  align-content: center;
  gap: clamp(16px, 2vw, 26px);
  border-top: 3px solid var(--blue);
}
.private-window h1 { font-size: clamp(1.75rem, 4.6vw, 3.1rem); line-height: 1.12; }
.private-window h1 + p { font-size: clamp(1rem, 2vw, 1.2rem); }
#private-test-form { display: grid; gap: 8px; }
#private-test-form label { font-weight: 650; }
.private-test-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
#private-test-input {
  min-width: 0;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #bccbda;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
}
#start-private-test {
  min-height: 58px;
  padding: 10px 20px;
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-size: 1rem;
}
#start-private-test:not(:disabled):hover { background: #1b456d; }
#private-test-message[data-state="started"] {
  padding: 12px 16px;
  background: var(--stripe);
  border-left: 3px solid var(--blue);
  color: var(--blue);
  font-size: 1rem;
  font-weight: 600;
}
.private-reveal {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  min-height: 100svh;
  text-align: center;
}
.private-reveal h1 {
  max-width: 100%;
  color: var(--blue);
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.private-reveal .button { padding: 8px 18px; }
.filters { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
#attribute-search {
  width: min(100%, 24rem);
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid #bccbda;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}
#attribute-count { white-space: nowrap; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; }
th, td { border-top: 1px solid var(--line); padding: 6px 12px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
thead th { background: #f7f8fa; font-weight: 650; }
thead th:first-child { width: 33%; }
.group-label { background: #e6edf5; color: #243d58; font-weight: 650; }
.signal th { font-weight: 550; }
.signal:nth-child(odd) { background: var(--stripe); }
.signal small { display: block; color: var(--muted); margin-top: 3px; }
.signal summary { padding: 0; }
.signal ul { padding-inline-start: 1.25rem; margin-block: 5px; }
.sample { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); margin-bottom: 5px; }
.waveform { background: #f7faff; }
.waveform .axis { stroke: #c4d4e4; }
.waveform polyline { fill: none; stroke: var(--blue); stroke-width: 1.25; }
.font-list { max-height: 10rem; overflow-y: auto; }
.inline-action { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fingerprint-bait { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; pointer-events: none; }
#no-attributes { padding: 10px 14px; border-top: 1px solid var(--line); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.footer { gap: 12px; border-top: 1px solid var(--line); padding-block: 12px 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }

.footer a { white-space: nowrap; }

@media (max-width: 540px) {
  .private-test-entry { grid-template-columns: 1fr; }
  .shell { width: calc(100% - 22px); }
  .bar-inner { min-height: 50px; gap: 10px; }
  nav { gap: 10px; font-size: .8rem; }
  main { padding-top: 12px; }
  .test-grid, .ip-details { grid-template-columns: 1fr; }
  .filters { flex-wrap: wrap; }
  th, td { padding-inline: 8px; }
  thead th:first-child { width: 36%; }
}
