:root {
  color-scheme: light;
  --background: #f5f5f7;
  --background-elevated: #ffffff;
  --foreground: #1d1d1f;
  --text-strong: #1d1d1f;
  --text-subtle: #515154;
  --text-muted: #86868b;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --surface: rgba(0, 0, 0, 0.035);
  --surface-strong: rgba(0, 0, 0, 0.065);
  --surface-hover: rgba(0, 113, 227, 0.1);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.18);
  --blue: #0071e3;
  --blue-strong: #0066cc;
  --green: #28cd41;
  --orange: #ff9500;
  --red: #ff3b30;
  --yellow: #ffcc00;
  --screen: #0b0b0d;
  --screen-soft: #17171a;
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 36px 90px rgba(0, 0, 0, 0.18);
  --radius-panel: 28px;
  --radius-card: 8px;
  --radius-control: 999px;
  --pointer-x: 50%;
  --pointer-y: 24%;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #000000;
  --background-elevated: #161617;
  --foreground: #f5f5f7;
  --text-strong: #f5f5f7;
  --text-subtle: #d2d2d7;
  --text-muted: #86868b;
  --panel: rgba(22, 22, 23, 0.74);
  --panel-strong: rgba(29, 29, 31, 0.88);
  --surface: rgba(255, 255, 255, 0.075);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --surface-hover: rgba(41, 151, 255, 0.16);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --blue: #2997ff;
  --blue-strong: #6bb8ff;
  --screen: #050506;
  --screen-soft: #101013;
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, 0.34);
  --shadow-deep: 0 44px 110px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.liquid-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, var(--background) 34%, var(--background) 100%),
    linear-gradient(100deg, rgba(0, 113, 227, 0.08), transparent 36% 68%, rgba(255, 149, 0, 0.08));
  overflow-x: hidden;
}

:root[data-theme="dark"] .liquid-shell {
  background:
    linear-gradient(180deg, #000 0%, #111113 45%, #000 100%),
    linear-gradient(105deg, rgba(41, 151, 255, 0.12), transparent 40% 66%, rgba(40, 205, 65, 0.08));
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 48px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 max(18px, env(safe-area-inset-left)) 0 max(18px, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--panel-strong), transparent 14%);
  border-bottom: 1px solid color-mix(in srgb, var(--border), transparent 38%);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 680;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, var(--blue), #34c759 50%, var(--orange));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 14px rgba(0, 113, 227, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 520;
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text-strong);
}

.app-toolbar {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.soft-button,
.run-button,
.window-tab,
.command-tab,
.filter-chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--panel), transparent 12%);
  color: var(--text-subtle);
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.icon-button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-color: transparent;
  background: transparent;
}

.icon-button svg,
.run-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.icon-button:hover,
.soft-button:hover,
.window-tab:hover,
.command-tab:hover,
.filter-chip:hover {
  color: var(--text-strong);
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.icon-button:focus-visible,
.soft-button:focus-visible,
.run-button:focus-visible,
.window-tab:focus-visible,
.command-tab:focus-visible,
.filter-chip:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue), transparent 72%);
  outline-offset: 3px;
}

.select-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
}

.select-chip select {
  height: 30px;
  max-width: 78px;
  padding: 0 4px;
  color: var(--text-subtle);
  background: transparent;
  border: 0;
  outline: none;
}

.liquid-grid {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(18px, 3vh, 32px) 0 80px;
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(560px, 1.38fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}

.glass-panel,
.mac-window {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(28px) saturate(1.18);
  -webkit-backdrop-filter: blur(28px) saturate(1.18);
}

.info-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(22px, 2.2vw, 34px);
}

.info-section {
  min-width: 0;
  scroll-margin-top: 76px;
}

.section-heading {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.15;
  font-weight: 740;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.title-bar {
  width: 4px;
  height: 24px;
  border-radius: 4px;
  background: var(--blue);
}

.title-bar.slate { background: linear-gradient(#c7c7cc, #636366); }
.title-bar.blue { background: var(--blue); }
.title-bar.purple { background: #af52de; }
.title-bar.orange { background: var(--orange); }

.soft-button {
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 650;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.address-card,
.source-card,
.cdn-card,
.latency-card,
.probe-stats article {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--border), transparent 34%);
}

.address-card {
  min-height: 94px;
  padding: 16px;
}

.address-card span,
.source-card p,
.cdn-card span,
.latency-card span,
.probe-stats span,
.field span {
  color: var(--text-muted);
}

.address-card span {
  display: block;
  margin-bottom: 10px;
  font-weight: 650;
}

.address-card strong {
  display: block;
  color: var(--text-strong);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-muted) !important;
}

.identity-meta {
  display: grid;
  grid-template-columns: minmax(88px, 0.38fr) minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
}

.identity-meta dt {
  color: var(--text-muted);
  font-weight: 640;
}

.identity-meta dd {
  margin: 0;
  min-width: 0;
  color: var(--text-strong);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.source-card {
  min-height: 106px;
  padding: 14px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.source-card:hover,
.cdn-card:hover,
.latency-card:hover,
.probe-stats article:hover {
  transform: translateY(-1px);
  background: var(--surface-hover);
}

.source-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-weight: 720;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px currentColor;
}

.status-dot.bad {
  background: var(--red);
}

.source-card strong {
  display: block;
  margin-top: 10px;
  color: var(--text-strong);
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.3vw, 18px);
  overflow-wrap: anywhere;
}

.source-card p {
  margin: 7px 0 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cdn-grid,
.latency-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cdn-card,
.latency-card {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 5px;
  padding: 12px 8px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.cdn-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111113;
  font-weight: 860;
}

.cdn-card strong,
.latency-card strong {
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.1;
}

.cdn-card span,
.latency-card span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 720;
}

.latency-card .flag {
  font-size: 20px;
}

.latency-card .bar {
  width: min(52px, 82%);
  height: 5px;
  border-radius: 999px;
  background: var(--surface-strong);
  overflow: hidden;
}

.latency-card .bar i {
  display: block;
  width: var(--bar-width, 40%);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.latency-card.medium .bar i {
  background: var(--orange);
}

.latency-card.slow .bar i {
  background: var(--red);
}

.segmented,
.window-tabs,
.command-strip {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-control);
  background: var(--surface);
}

.segmented button,
.window-tab,
.command-tab {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0 12px;
  font-weight: 680;
}

.segmented button {
  border-radius: var(--radius-control);
  cursor: pointer;
}

.segmented button.is-active,
.window-tab.is-active,
.command-tab.is-active,
.filter-chip.is-active {
  color: var(--blue);
  background: var(--background-elevated);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.mac-window {
  display: flex;
  flex-direction: column;
  min-height: 780px;
  overflow: hidden;
  background: var(--screen);
  color: #f5f5f7;
  box-shadow: var(--shadow-deep);
  scroll-margin-top: 76px;
}

.mac-titlebar {
  min-height: 58px;
  display: grid;
  grid-template-columns: 98px 1fr 108px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic.red { background: #ff5f57; }
.traffic.yellow { background: #ffbd2e; }
.traffic.green { background: #28c840; }

.window-tabs {
  justify-self: center;
  background: rgba(255, 255, 255, 0.08);
}

.window-tab {
  min-height: 32px;
  color: rgba(245, 245, 247, 0.64);
}

.window-tab.is-active {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.16);
}

.run-state {
  justify-self: end;
  color: rgba(245, 245, 247, 0.58);
  font-weight: 720;
}

.run-state.running { color: var(--blue-strong); }
.run-state.error { color: #ff6961; }
.run-state.complete { color: #32d74b; }

.probe-panel {
  display: none;
  flex: 1;
  min-height: 0;
  padding: 20px;
}

.probe-panel.is-active {
  display: flex;
  flex-direction: column;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.command-tab {
  min-height: 40px;
  color: rgba(245, 245, 247, 0.58);
}

.command-tab.is-active {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.14);
}

.probe-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: end;
}

.probe-form.nq-mode {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.target-field {
  grid-column: span 2;
}

.field.is-hidden {
  display: none;
}

.nq-field.is-hidden {
  display: none !important;
}

.field span {
  font-size: 12px;
  font-weight: 650;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-card);
  outline: none;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.08);
}

.field input:focus,
.field select:focus {
  border-color: rgba(41, 151, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.16);
}

.field input:disabled,
.field select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.field select option {
  color: #1d1d1f;
}

.run-button {
  height: 42px;
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-color: transparent;
  background: var(--blue);
  color: #fff;
  font-weight: 720;
}

.run-button:hover {
  transform: translateY(-1px);
  background: var(--blue-strong);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.28);
}

.run-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.route-menu {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.07);
}

.route-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.route-menu-head > span {
  color: rgba(245, 245, 247, 0.72);
  font-size: 12px;
  font-weight: 720;
}

.route-scope-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.08);
}

.route-scope-tabs button,
.province-chip {
  min-height: 30px;
  border: 0;
  color: rgba(245, 245, 247, 0.68);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.route-scope-tabs button {
  padding: 0 12px;
  border-radius: var(--radius-control);
}

.route-scope-tabs button.is-active,
.province-chip.is-active {
  color: #f5f5f7;
  background: rgba(41, 151, 255, 0.74);
}

.province-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 6px;
  max-height: 128px;
  overflow-y: auto;
  padding-right: 2px;
}

.province-chip {
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.province-chip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.server-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 72px;
  margin: 16px 0 12px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.server-card img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.server-card strong,
.server-card span {
  display: block;
  overflow-wrap: anywhere;
}

.server-card strong {
  color: #f5f5f7;
  font-size: 16px;
  margin-bottom: 5px;
}

.server-card span {
  color: rgba(245, 245, 247, 0.58);
}

.server-card span:empty {
  display: none;
}

.terminal {
  flex: 1;
  min-height: 250px;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(41, 151, 255, 0.08), transparent 42%),
    #050506;
  color: #e5e5ea;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow: auto;
}

.probe-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.probe-stats article {
  min-width: 0;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
}

.probe-stats span,
.probe-stats strong {
  display: block;
}

.probe-stats span {
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 5px;
}

.probe-stats strong {
  color: #f5f5f7;
  font-weight: 730;
  white-space: nowrap;
}

.split-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 31px;
  padding: 0 12px;
  color: rgba(245, 245, 247, 0.62);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  font-weight: 680;
}

.filter-chip.is-active {
  color: #fff;
  background: rgba(41, 151, 255, 0.2);
}

.table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.05);
}

.split-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.split-table th,
.split-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}

.split-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111113;
  color: rgba(245, 245, 247, 0.5);
  font-size: 12px;
}

.split-table td {
  color: rgba(245, 245, 247, 0.72);
  overflow-wrap: anywhere;
}

.split-table tr:hover td {
  background: rgba(255, 255, 255, 0.055);
}

.website-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.site-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(41, 151, 255, 0.18);
  color: #8ecbff;
  font-size: 12px;
  font-weight: 820;
}

.route-badge,
.category-badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  border-radius: var(--radius-control);
  padding: 0 7px;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 247, 0.7);
}

.route-badge.domestic {
  color: #30d158;
}

.route-badge.international {
  color: #8ecbff;
}

.skeleton-line {
  min-height: 92px;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, var(--surface), var(--surface-strong), var(--surface));
  background-size: 220% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translateX(-50%) translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--panel-strong), transparent 5%);
  color: var(--text-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    gap: 16px;
  }

  .mac-window {
    min-height: 740px;
  }
}

@media (max-width: 820px) {
  .site-nav {
    height: auto;
    min-height: 48px;
    grid-template-columns: 1fr auto;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-links {
    display: none;
  }

  .app-toolbar {
    gap: 4px;
  }

  .liquid-grid {
    width: min(100% - 24px, 680px);
  }

  .info-panel,
  .probe-panel {
    padding: 16px;
  }

  .identity-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .cdn-grid,
  .latency-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mac-titlebar {
    grid-template-columns: 72px minmax(0, 1fr) 48px;
    padding: 0 12px;
  }

  .window-tab {
    padding: 0 9px;
    font-size: 12px;
  }

  .run-state {
    font-size: 12px;
  }

  .command-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .probe-form {
    grid-template-columns: 1fr;
  }

  .target-field {
    grid-column: auto;
  }

  .route-menu-head {
    align-items: stretch;
    flex-direction: column;
  }

  .route-scope-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .probe-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-toolbar {
    flex-direction: column;
  }

  .split-table {
    min-width: 680px;
  }
}

@media (max-width: 460px) {
  .brand-lockup span:last-child {
    display: none;
  }

  .select-chip {
    display: none;
  }

  .cdn-grid,
  .latency-grid,
  .probe-stats {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
