:root {
  color-scheme: light;
  --page: #f7f8fa;
  --surface: #fff;
  --surface-soft: #fafbfc;
  --text: #202124;
  --muted: #777d86;
  --faint: #9da2aa;
  --line: #e7e9ed;
  --accent: #2867e8;
  --accent-soft: #edf3ff;
  --green: #19966a;
  --shadow: 0 3px 12px rgb(22 31 48 / 5%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #111318;
  --surface: #191c23;
  --surface-soft: #20242c;
  --text: #edf0f5;
  --muted: #a0a6b1;
  --faint: #7e8591;
  --line: #303540;
  --accent: #7ca8ff;
  --accent-soft: #222f47;
  --green: #57c99b;
  --shadow: 0 4px 16px rgb(0 0 0 / 16%);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  transition: background-color .2s, color .2s;
}

button, input { font: inherit; }
button { color: inherit; }

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  padding: 16px 24px 8px;
  background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: blur(14px);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  width: min(100%, 1232px);
  min-height: 58px;
  margin: 0 auto;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }
.tab, .theme-toggle {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .16s, color .16s;
}

.tab:hover, .theme-toggle:hover { background: var(--surface-soft); color: var(--text); }
.tab.active { background: var(--page); color: var(--text); font-weight: 650; }
.theme-toggle {
  display: grid;
  width: 40px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  color: var(--text);
}
.theme-icon { font-size: 19px; line-height: 1; }

.container { width: min(100% - 48px, 1232px); margin: 17px auto 0; }
.page-heading { margin: 12px 0 21px; }
.eyebrow {
  margin: 0 0 5px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
.page-heading .eyebrow { display: none; }
.page-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.035em; line-height: 1.3; }
.subtitle { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

body.tool-view .page-heading,
body.tool-view .dashboard,
body.tool-view .speed-test,
body.tool-view .privacy-bar,
body.tool-view .quick-tools,
body.tool-view .site-footer { display: none; }
body.tool-view .tool-panel { margin-top: 16px; }

.dashboard { display: grid; grid-template-columns: 1.04fr 1fr; gap: 16px; }
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.primary-card, .overview-card { min-height: 295px; padding: 23px 25px; }
.primary-card { display: flex; flex-direction: column; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-actions { display: flex; align-items: center; gap: 10px; }
.field-label { display: block; color: var(--muted); font-size: 12px; }
.address-family {
  display: inline-flex;
  margin-top: 7px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}
.status-dot { width: 10px; height: 10px; margin: 4px 2px 0 0; border-radius: 50%; background: #27ae78; box-shadow: 0 0 0 4px rgb(39 174 120 / 11%); }
.address-line { display: flex; align-items: center; gap: 8px; margin: 5px 0 20px; }
.ip-value {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.35;
}
.icon-button {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  place-items: center;
}
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.primary-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.detail-block:first-child { grid-column: 1 / -1; }
.detail-block p { overflow-wrap: anywhere; margin: 2px 0 0; font-size: 14px; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}
.text-button { padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.empty-state { padding: 30px 0; }
.empty-state p { margin: 0; font-weight: 600; }
.empty-state span { color: var(--muted); font-size: 12px; }
.primary-card > .card-heading h2 { margin: 0; font-size: 18px; }
.family-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 15px; }
.family-panel { display: flex; min-width: 0; flex-direction: column; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.family-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 650; }
.family-indicator { color: var(--muted); font-size: 10px; font-weight: 500; }
.family-indicator.available { color: var(--green); }
.family-indicator.unavailable { color: var(--muted); }
.primary-card .address-line { gap: 8px; margin: 17px 0 13px; }
.primary-card .ip-value { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.04em; }
.primary-card .copy-ip { flex-basis: 30px; width: 30px; height: 30px; font-size: 13px; }
.family-details { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 7px; padding: 6px 0 16px; color: var(--text); font-size: 13px; }
.detail-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: start; gap: 10px; }
.detail-row > span { color: var(--muted); }
.detail-row > strong { overflow-wrap: anywhere; font-weight: 500; text-align: right; }
.family-empty { display: grid; min-height: 120px; margin: 13px 0 8px; color: var(--muted); font-size: 11px; text-align: center; place-items: center; }
.family-query { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 19px; line-height: 1; }
.family-query:hover { border-color: var(--accent); color: var(--accent); }
.family-query:disabled { cursor: wait; opacity: .6; }
.family-query.is-loading { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.speed-test { margin-top: 14px; padding: 22px 24px; }
.speed-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.speed-heading h2 { margin: 0; font-size: 19px; }
.speed-description { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.speed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.speed-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.speed-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.speed-card-heading strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.site-region { padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.speed-value { margin: 11px 0 2px; font-size: 23px; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.speed-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 10px; }
.speed-progress { height: 3px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
.speed-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .15s; }
.speed-failed .speed-value { color: #c64040; }
.speed-note { margin: 12px 0 0; color: var(--faint); font-size: 10px; }

.overview-card h2 { margin: 4px 0 0; font-size: 18px; }
.overview-icon {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--accent);
  font-size: 20px;
  place-items: center;
}
.overview-list { margin-top: 17px; }
.overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 43px;
  border-bottom: 1px solid var(--line);
}
.overview-row:last-child { border-bottom: 0; }
.overview-row > span { color: var(--muted); }
.overview-row strong { text-align: right; font-size: 13px; font-weight: 550; }
.mini-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; }
.ipv4-dot { background: #477ef0; }
.ipv6-dot { background: #1cae98; }
.overview-note { margin: 12px 0 0; color: var(--faint); font-size: 11px; }

.privacy-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 57px;
  margin-top: 14px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.privacy-label { display: flex; align-items: center; gap: 8px; margin-right: auto; color: var(--muted); }
.switch-control { position: relative; display: inline-flex; align-items: center; gap: 9px; color: var(--text); cursor: pointer; font-size: 12px; white-space: nowrap; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch {
  position: relative;
  width: 35px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
  transition: background .18s, border-color .18s;
}
.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
  content: "";
  transition: transform .18s;
}
.switch-control input:checked + .switch { border-color: var(--accent); background: var(--accent); }
.switch-control input:checked + .switch::after { transform: translateX(15px); }
.switch-control input:focus-visible + .switch { outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); }

.quick-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }
.quick-tool {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 83px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.quick-tool:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 6px 18px rgb(22 31 48 / 8%); }
.quick-tool > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.quick-tool strong { font-size: 13px; font-weight: 650; }
.quick-tool small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tool-mark { display: grid; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; font-size: 18px; place-items: center; }
.mark-blue { background: #edf3ff; color: #3877e8; }
.mark-pink { background: #fff0f5; color: #dd5683; }
.mark-green { background: #eaf8f1; color: #22976b; }
.mark-orange { background: #fff5e8; color: #d98b27; }
[data-theme="dark"] .mark-blue { background: #253653; }
[data-theme="dark"] .mark-pink { background: #3a2632; }
[data-theme="dark"] .mark-green { background: #20352d; }
[data-theme="dark"] .mark-orange { background: #3a3023; }
.tool-arrow { margin-left: auto; color: var(--faint); }

.tool-panel { margin-top: 22px; padding: 23px 25px; }
.tool-panel[hidden] { display: none; }
.tool-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.tool-panel-heading h2 { margin: 0; font-size: 20px; }
.tool-description { margin: 4px 0 0; color: var(--muted); }
.close-panel { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 21px; line-height: 1; }
.input-group { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 14px; }
.input-group input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
}
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.btn { min-height: 42px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 9px; background: var(--accent); color: #fff; cursor: pointer; font-weight: 600; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled, .secondary:disabled { cursor: wait; opacity: .6; }
.btn.secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.output {
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.split-test-output { overflow-x: auto; }
.output-message { margin: 0; color: var(--muted); }
.output-message.error { color: #c64040; }
.result-summary { margin: 0 0 12px; font-size: 15px; font-weight: 650; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.result-item { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.result-key { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.result-value { overflow-wrap: anywhere; font-size: 13px; }
.result-details { margin-top: 13px; color: var(--muted); font-size: 12px; }
.result-details summary { width: fit-content; cursor: pointer; }
.result-details pre { overflow: auto; max-height: 320px; margin: 9px 0 0; color: var(--text); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.insight-test-output { display: grid; gap: 12px; overflow-x: auto; }
.insight-test-summary { margin: 0; }
.insight-test-table { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; }
.insight-test-table th, .insight-test-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.insight-test-table thead th { position: sticky; top: 0; background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 650; }
.insight-test-table tbody th { min-width: 175px; font-size: 12px; font-weight: 600; }
.insight-test-table tbody td { min-width: 95px; font-size: 12px; overflow-wrap: anywhere; }
.insight-test-table tbody tr.is-available { background: color-mix(in srgb, var(--green) 4%, var(--surface)); }
.insight-test-table tbody tr.is-unavailable td { color: var(--muted); font-size: 11px; }
.insight-provider-unavailable { text-align: left; }
.insight-provider-error { color: #b44b4b; }
.insight-provider-pending { color: var(--muted); }
.insight-summary-error { color: #b44b4b; }
.insight-region-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.insight-region-domestic { border-color: #3a78df; background: #edf4ff; color: #2459ae; }
.insight-region-international { border-color: #20a077; background: #eaf8f2; color: #167153; }
[data-theme="dark"] .insight-provider-error, [data-theme="dark"] .insight-summary-error { color: #ef8585; }
[data-theme="dark"] .insight-region-domestic { border-color: #467ecf; background: #24334d; color: #a9c8ff; }
[data-theme="dark"] .insight-region-international { border-color: #319c79; background: #203a31; color: #8de0c0; }
.split-test-summary { margin-bottom: 12px; }
.split-test-table { width: 100%; border-collapse: collapse; text-align: left; }
.split-test-table th, .split-test-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.split-test-table th { color: var(--muted); font-size: 12px; font-weight: 600; }
.split-test-table tbody tr:last-child td { border-bottom: 0; }
.split-test-website { min-width: 220px; white-space: nowrap; }
.split-test-logo, .split-test-logo-fallback { display: inline-grid; flex: 0 0 22px; width: 22px; height: 22px; margin-right: 8px; border-radius: 6px; vertical-align: middle; object-fit: contain; }
.split-test-logo-fallback { background: var(--surface-soft); color: var(--muted); font-size: 13px; font-weight: 700; place-items: center; }
.split-test-host { overflow-wrap: anywhere; font-weight: 600; }
.split-test-badge { display: inline-block; margin-left: 7px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.split-test-badge.domestic { border-color: #3a78df; background: #edf4ff; color: #2459ae; }
.split-test-badge.international { border-color: #20a077; background: #eaf8f2; color: #167153; }
.split-test-badge.ai { border-color: #b884df; color: #8548aa; }
.split-test-badge.nsfw { border-color: #e476a1; color: #ba3f70; }
.split-test-ip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.split-test-location { min-width: 150px; }
[data-theme="dark"] .split-test-badge.domestic { border-color: #467ecf; background: #24334d; color: #a9c8ff; }
[data-theme="dark"] .split-test-badge.international { border-color: #319c79; background: #203a31; color: #8de0c0; }
.dns-test-output { display: grid; gap: 14px; overflow-x: auto; }
.dns-category-badge, .dns-provider-badge { display: inline-block; margin: 2px 5px 2px 0; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; line-height: 1.4; white-space: nowrap; }
.dns-category-badge.domestic { border-color: #3a78df; background: #edf4ff; color: #2459ae; }
.dns-category-badge.international { border-color: #20a077; background: #eaf8f2; color: #167153; }
.dns-provider-badge { background: var(--surface); }
.dns-test-table { width: 100%; min-width: 610px; border-collapse: collapse; text-align: left; }
.dns-test-table th, .dns-test-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dns-test-table th { color: var(--muted); font-size: 12px; font-weight: 600; }
.dns-test-table tbody tr:last-child td { border-bottom: 0; }
.dns-test-ip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.dns-test-sources { min-width: 220px; }
.dns-empty-state { color: var(--muted); text-align: center; }
.dns-test-note { margin: 0; color: var(--faint); font-size: 11px; }
[data-theme="dark"] .dns-category-badge.domestic { border-color: #467ecf; background: #24334d; color: #a9c8ff; }
[data-theme="dark"] .dns-category-badge.international { border-color: #319c79; background: #203a31; color: #8de0c0; }
.webrtc-test-output { display: grid; gap: 12px; overflow-x: auto; }
.webrtc-test-summary { margin: 0; }
.webrtc-test-table { width: 100%; min-width: 730px; border-collapse: collapse; text-align: left; }
.webrtc-test-table th, .webrtc-test-table td { padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.webrtc-test-table th { color: var(--muted); font-size: 12px; font-weight: 600; }
.webrtc-test-table tbody tr:last-child td { border-bottom: 0; }
.webrtc-server-cell { min-width: 175px; }
.webrtc-server-cell strong, .webrtc-server-cell small { display: block; }
.webrtc-server-cell strong { font-size: 12px; }
.webrtc-server-cell small { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.webrtc-address-cell { min-width: 210px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.webrtc-location-cell { min-width: 190px; color: var(--muted); font-size: 11px; }
.webrtc-ip-value, .webrtc-location-value { display: block; padding: 2px 0; overflow-wrap: anywhere; }
.webrtc-location-value { border-bottom: 1px solid var(--line); }
.webrtc-location-value:last-child { border-bottom: 0; }
.webrtc-inline-message { display: grid; min-height: 36px; align-content: center; color: var(--muted); font-family: inherit; font-size: 11px; line-height: 1.45; text-align: center; }
.webrtc-inline-message.is-error { color: #c64040; }
[data-theme="dark"] .webrtc-inline-message.is-error { color: #ef8585; }
.cdn-test-output { padding: 0; overflow: visible; border: 0; background: transparent; }
.cdn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cdn-card { position: relative; display: flex; min-width: 0; min-height: 160px; flex-direction: column; align-items: center; justify-content: center; padding: 18px 15px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(155deg, var(--surface) 30%, var(--surface-soft)); box-shadow: var(--shadow); text-align: center; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.cdn-card::before { position: absolute; top: 0; right: 18%; left: 18%; height: 2px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); content: ""; opacity: .7; }
.cdn-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); box-shadow: 0 10px 24px rgb(22 31 48 / 9%); }
.cdn-logo, .cdn-logo-fallback { display: grid; width: 48px; height: 48px; margin-bottom: 10px; padding: 7px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); object-fit: contain; place-items: center; }
.cdn-logo-fallback { background: var(--accent-soft); color: var(--accent); font-size: 21px; font-weight: 700; }
.cdn-name { display: grid; min-height: 42px; width: 100%; align-items: center; font-size: 15px; font-weight: 650; line-height: 1.4; }
.cdn-region { display: inline-flex; min-height: 32px; max-width: 100%; align-items: center; justify-content: center; margin: 9px 0 0; padding: 5px 11px; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.cdn-region.is-unavailable { border-color: var(--line); background: var(--surface-soft); color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 500; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; margin: 24px 0 30px; color: var(--faint); font-size: 11px; }

.is-hidden { filter: blur(7px); user-select: none; }
.is-hidden:focus, .is-hidden:hover { filter: blur(5px); }

@media (max-width: 880px) {
  .tabs { justify-content: flex-start; border-radius: 18px; }
  .dashboard { grid-template-columns: 1fr 1fr; }
  .quick-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-bar { flex-wrap: wrap; gap: 13px 20px; }
  .privacy-label { flex: 1 0 100%; }
  .cdn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .site-header { padding: 10px 12px 5px; }
  .tabs { min-height: 49px; padding: 5px; }
  .tab { min-height: 37px; padding: 0 11px; font-size: 12px; }
  .theme-toggle { min-height: 37px; }
  .container { width: min(100% - 26px, 1232px); margin-top: 14px; }
  .page-heading { margin: 8px 0 16px; }
  .page-heading h1 { font-size: 24px; }
  .subtitle { font-size: 13px; }
  .dashboard { grid-template-columns: 1fr; gap: 11px; }
  .primary-card, .overview-card { min-height: auto; padding: 18px; }
  .speed-test { padding: 18px; }
  .speed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .speed-card { padding: 10px; }
  .speed-value { font-size: 20px; }
  .speed-heading { align-items: flex-start; }
  .family-panels { gap: 8px; }
  .primary-card { padding: 18px; }
  .primary-card .ip-value { font-size: clamp(18px, 5vw, 24px); }
  .family-empty { min-height: 90px; }
  .primary-details { gap: 12px; }
  .card-foot { margin-top: 17px; }
  .privacy-bar { align-items: flex-start; padding: 13px; gap: 13px 16px; }
  .privacy-label { flex-basis: 100%; margin: 0; }
  .switch-control { justify-content: space-between; flex: 1 1 100%; }
  .quick-tools { grid-template-columns: 1fr; gap: 9px; }
  .quick-tool { min-height: 70px; }
  .tool-panel { padding: 18px; }
  .split-test-table { min-width: 650px; }
  .cdn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cdn-card { min-height: 146px; padding: 14px 10px; border-radius: 14px; }
  .cdn-logo, .cdn-logo-fallback { width: 42px; height: 42px; margin-bottom: 8px; }
  .cdn-name { min-height: 40px; font-size: 14px; }
  .cdn-region { min-height: 29px; margin-top: 7px; padding: 4px 9px; font-size: 14px; }
  .site-footer { flex-direction: column; gap: 4px; margin: 20px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
