:root {
  color-scheme: light;
  --ink: #2b2925;
  --text: #49463f;
  --muted: #716b62;
  --accent: #a94e32;
  --accent-hover: #923c25;
  --accent-fill: #a94e32;
  --accent-on: #fffaf7;
  --accent-soft: #f4e5dd;
  --accent-line: #dfb5a3;
  --brand: #d97757;
  --brand-ink: #fffaf4;
  --line: #e2ddd3;
  --line-soft: #eeeae3;
  --canvas: #f4f3ee;
  --surface: #fffefa;
  --surface-subtle: #f8f6f0;
  --surface-hover: #ede9e0;
  --hero-border: #ded2c8;
  --route-surface: #f3eee6;
  --route-line: #dcd1c4;
  --code-surface: #f4f1ea;
  --ok: #596943;
  --ok-wash: #eef0e5;
  --warning: #936920;
  --warning-wash: #f7ecd3;
  --shadow: #3d2a1d08;
  --toast-bg: #3b302a;
  --toast-text: #fff8f1;
  --focus: #b15e42;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
:root[data-connection="recognized"] {
  color-scheme: dark;
  --ink: #f4eee7;
  --text: #ded0c4;
  --muted: #bca99a;
  --accent: #f0b291;
  --accent-hover: #f4c7af;
  --accent-fill: #f0b291;
  --accent-on: #2b1d16;
  --accent-soft: #443027;
  --accent-line: #80583f;
  --brand: #f0b291;
  --brand-ink: #2f211b;
  --line: #524035;
  --line-soft: #42332b;
  --canvas: #241c18;
  --surface: #30251f;
  --surface-subtle: #2c221d;
  --surface-hover: #453128;
  --hero-border: #a87255;
  --route-surface: #3a2a22;
  --route-line: #654735;
  --code-surface: #251d19;
  --ok: #c2cba7;
  --ok-wash: #35382a;
  --warning: #f4cd83;
  --warning-wash: #45351d;
  --shadow: #00000018;
  --toast-bg: #f0b291;
  --toast-text: #2b1d16;
  --focus: #f0b291;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.shell { width: min(1216px, calc(100% - 88px)); margin: 0 auto; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 43px; height: 43px; background: var(--brand); border-radius: 13px; display: grid; place-items: center; color: var(--brand-ink); flex-shrink: 0; }
.brand-symbol { display: block; width: 100%; height: 100%; }
.brand-name { display: flex; flex-direction: column; font-size: 18px; font-weight: 700; letter-spacing: .03em; line-height: 1.35; }
.brand-domain { font-size: 11px; font-weight: 400; letter-spacing: .035em; color: var(--muted); margin-top: 5px; }
.topbar-right { display: flex; align-items: center; gap: 22px; font-size: 12px; }
.header-tag { color: var(--muted); padding-left: 22px; border-left: 1px solid var(--line); }
.live-status { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status-dot.connected { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-wash); }
.status-dot.recognized { width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status-dot.error { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-wash); }
:root[data-connection="recognized"] .live-status { color: var(--accent); font-weight: 600; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 39px 0 24px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; font-weight: 650; line-height: 1.45; letter-spacing: -.03em; }
.page-heading p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.actions { display: flex; align-items: center; gap: 12px; }
.button { min-height: 39px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 550; white-space: nowrap; transition: background .15s, border-color .15s; }
.button-primary { background: var(--accent-fill); color: var(--accent-on); box-shadow: 0 3px 8px var(--shadow); }
.button-primary:hover:not(:disabled) { background: var(--accent-hover); }
.button-quiet { color: var(--text); background: transparent; }
.button-quiet:hover:not(:disabled) { background: var(--surface-hover); }
.button-secondary { color: var(--accent); background: var(--surface); border-color: var(--accent-line); }
.button-secondary:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); border: 1px solid var(--hero-border); border-radius: 20px; background: var(--surface); overflow: hidden; box-shadow: 0 5px 24px var(--shadow); }
:root[data-connection="recognized"] .hero { box-shadow: inset 0 3px 0 var(--accent), 0 5px 24px var(--shadow); }
.hero-main { min-width: 0; padding: 32px 38px 29px; }
.hero-label { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.protocol-pill { color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 5px; font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.ip-line { display: flex; align-items: center; gap: 15px; margin: 13px 0 15px; }
.ip-address { min-width: 0; color: var(--accent); font-family: "Bahnschrift", "SFMono-Regular", "Cascadia Code", Consolas, monospace; font-size: clamp(30px, 3.6vw, 51px); font-weight: 550; line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ip-address.ipv6 { font-size: clamp(24px, 2.65vw, 36px); }
.ip-address.loading, .ip-address.failed { color: var(--muted); font-family: var(--sans); font-size: 34px; letter-spacing: 0; }
.copy-button { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); }
.copy-button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.identity { display: flex; align-items: center; gap: 15px; color: var(--accent-on); margin: 0 0 18px; padding: 18px 24px; background: var(--accent-fill); border-radius: 12px; }
.identity-symbol { width: 40px; height: 40px; flex-shrink: 0; }
.identity-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.identity strong { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.identity span { font-size: 12px; }
.hero-location { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; }
.hero-location .icon { width: 15px; height: 15px; color: var(--muted); }
.hero-provider { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 7px 0 20px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.asn-pill { font-size: 10px; background: var(--surface-subtle); color: var(--muted); border-radius: 4px; padding: 2px 6px; }
.hero-note { font-size: 11px; color: var(--muted); line-height: 1.8; }
.route-panel { min-width: 0; margin: 19px; padding: 17px 22px 14px; border-radius: 12px; background: var(--route-surface); }
.route-panel h2 { font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 14px; }
.route-stop { position: relative; display: flex; gap: 12px; min-height: 63px; align-items: flex-start; }
.route-stop:not(:last-child)::after { position: absolute; content: ""; left: 16px; top: 35px; width: 1px; height: 26px; background: var(--route-line); }
.route-stop:last-child { min-height: 38px; }
.route-icon { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; color: var(--muted); flex-shrink: 0; }
.route-icon .icon { width: 16px; height: 16px; }
.route-icon-filled { color: var(--accent-on); background: var(--accent-fill); border-color: var(--accent-fill); }
.route-label { display: block; color: var(--muted); font-size: 10px; line-height: 1.2; margin: 1px 0 5px; }
.route-stop strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.route-connected { color: var(--ok); background: var(--ok-wash); font-size: 9px; white-space: nowrap; padding: 1px 5px; border-radius: 4px; margin: 15px 0 0 auto; }
.hero-metrics { grid-column: 1 / -1; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 0; background: var(--surface-subtle); }
.hero-metrics > div { padding: 0 28px; border-right: 1px solid var(--line); }
.hero-metrics > div:first-child { padding-left: 38px; }
.hero-metrics > div:last-child { border: 0; }
.hero-metrics span { display: block; color: var(--muted); font-size: 10px; }
.hero-metrics small { color: var(--muted); font-size: 9px; margin-left: 4px; }
.hero-metrics strong { display: block; font-family: var(--mono); font-size: 17px; font-weight: 500; margin-top: 4px; color: var(--text); }
.observation-note { display: flex; gap: 7px; align-items: flex-start; padding: 15px 2px 20px; color: var(--muted); font-size: 11px; }
.observation-note .icon { width: 13px; height: 13px; margin-top: 3px; color: var(--muted); }
.updated { margin-left: auto; flex-shrink: 0; }
.section-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 29px; border-bottom: 1px solid var(--line); background: var(--canvas); padding: 0 1px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a { position: relative; flex-shrink: 0; padding: 15px 0 16px; font-size: 12px; color: var(--muted); }
.section-nav a:hover, .section-nav a.active { color: var(--accent); }
.section-nav a.active::after { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; content: ""; background: var(--accent); border-radius: 2px 2px 0 0; }
.info-section { margin-top: 33px; scroll-margin-top: 76px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 650; }
.section-heading h2 .icon { width: 17px; height: 17px; color: var(--muted); }
.section-heading > span { font-size: 11px; color: var(--muted); }
.card-grid { display: grid; gap: 17px; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 21px 22px 19px; }
.info-card h3, .capabilities-card h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--text); margin-bottom: 17px; }
.small-tag { font-weight: 400; color: var(--muted); background: var(--surface-subtle); font-size: 9px; padding: 1px 5px; border-radius: 4px; }
dl { margin: 0; }
.data-row { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(0, 1.5fr); gap: 16px; padding: 8px 0; align-items: start; border-bottom: 1px solid var(--line-soft); font-size: 12px; line-height: 1.7; }
.data-row:first-child { padding-top: 0; }
.data-row:last-child { border-bottom: 0; padding-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; color: var(--text); overflow-wrap: anywhere; min-width: 0; }
dd.mono { font-family: var(--mono); font-size: 11px; }
dd.unavailable { color: var(--muted); font-size: 11px; }
dd .subvalue { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.card-note { margin-top: 15px; font-size: 10px; color: var(--muted); line-height: 1.8; }
.capabilities-card { margin-top: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 20px 22px; }
.capabilities-card h3 { margin-bottom: 13px; }
.capabilities { display: flex; flex-wrap: wrap; gap: 8px; }
.capability { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; padding: 4px 9px; border-radius: 5px; background: var(--surface-subtle); color: var(--muted); }
.capability::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.capability.available { background: var(--ok-wash); color: var(--ok); }
.capability.available::before { background: var(--ok); }
.diagnostic-card { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.diagnostic-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); margin-bottom: 16px; }
.diagnostic-card h3 { font-size: 13px; margin-bottom: 7px; }
.diagnostic-card > p { font-size: 11px; line-height: 1.9; color: var(--muted); margin-bottom: 19px; flex: 1; }
.diagnostic-card > .button { min-height: 34px; padding: 6px 11px; font-size: 11px; }
.diagnostic-result { margin-top: 15px; font-size: 10px; color: var(--muted); width: 100%; overflow-wrap: anywhere; }
.diagnostic-result dl { margin-top: 2px; }
.diagnostic-result .data-row { font-size: 10px; }
.raw-section { margin-top: 30px; }
.raw-details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.raw-details summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; cursor: pointer; list-style: none; }
.raw-details summary::-webkit-details-marker { display: none; }
.raw-details summary > span { display: flex; align-items: center; gap: 10px; }
.raw-details summary .icon { color: var(--muted); width: 16px; height: 16px; }
.raw-details summary strong { font-size: 12px; font-weight: 550; }
.summary-note { font-size: 10px; color: var(--muted); margin-left: 8px; }
.chevron { transition: transform .15s; }
.raw-details[open] .chevron { transform: rotate(90deg); }
.raw-body { padding: 0 22px 22px; }
.raw-toolbar { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--muted); padding-top: 7px; border-top: 1px solid var(--line); }
.raw-toolbar .button { font-size: 10px; min-height: 30px; padding: 4px 7px; }
pre { max-height: 530px; padding: 20px; margin: 7px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.8; color: var(--text); background: var(--code-surface); border: 1px solid var(--line); border-radius: 8px; overflow: auto; tab-size: 2; }
footer { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding: 25px 0 34px; margin-top: 42px; }
footer > div { display: flex; gap: 16px; }
.footer-brand { color: var(--text); font-weight: 600; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); background: var(--toast-bg); box-shadow: 0 6px 24px var(--shadow); color: var(--toast-text); border-radius: 9px; padding: 11px 19px; font-size: 12px; }
.noscript { position: fixed; left: 16px; right: 16px; bottom: 16px; padding: 16px; color: var(--warning); background: var(--warning-wash); border: 1px solid var(--line); border-radius: 9px; z-index: 25; }
.noscript a { text-decoration: underline; }
.spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1060px) {
  .shell { width: calc(100% - 56px); }
  .hero { grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); }
  .hero-main { padding: 29px 28px; }
  .route-panel { margin: 16px 16px 16px 0; padding: 17px; }
  .hero-metrics > div:first-child { padding-left: 28px; }
  .info-card { padding: 20px 18px; }
  .data-row { gap: 10px; grid-template-columns: minmax(65px, 1fr) minmax(0, 1.45fr); }
}
@media (max-width: 850px) {
  .three-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-tag { display: none; }
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr); }
  .hero-main { padding: 26px; }
  .ip-address { font-size: 34px; }
  .ip-address.ipv6 { font-size: 25px; }
  .hero-metrics > div { padding: 0 20px; }
  .hero-metrics small { display: none; }
  .updated { display: none; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .topbar { min-height: 82px; gap: 16px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 11px; }
  .brand-name { font-size: 16px; }
  .brand-domain { font-size: 10px; }
  .topbar-right { font-size: 10px; }
  .page-heading { align-items: flex-end; margin: 27px 0 20px; gap: 8px; }
  h1 { font-size: 23px; }
  .page-heading p { font-size: 11px; max-width: 20em; line-height: 1.8; margin-top: 4px; }
  .actions { gap: 5px; }
  .actions .button { min-height: 35px; gap: 5px; padding: 7px 10px; font-size: 11px; }
  .actions .button-quiet { width: 32px; padding: 6px; }
  .actions .button-quiet span { display: none; }
  .identity { gap: 10px; padding: 15px 17px; margin-bottom: 14px; border-radius: 10px; }
  .identity-symbol { width: 31px; height: 31px; }
  .identity-copy { flex-direction: column; align-items: flex-start; gap: 3px; }
  .identity strong { font-size: 14px; }
  .identity span { font-size: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); border-radius: 15px; }
  .hero-main { padding: 25px 22px 23px; }
  .hero-label { font-size: 11px; }
  .ip-address { font-size: clamp(27px, 7.8vw, 44px); }
  .ip-address.ipv6 { font-size: clamp(23px, 6.2vw, 33px); }
  .ip-line { gap: 9px; margin: 15px 0 15px; }
  .copy-button { width: 30px; height: 30px; }
  .copy-button .icon { width: 15px; height: 15px; }
  .hero-location { font-size: 12px; }
  .hero-provider { font-size: 11px; margin-bottom: 14px; }
  .hero-note { font-size: 10px; }
  .route-panel { display: flex; align-items: flex-start; gap: 8px; margin: 0 14px 15px; padding: 16px 10px; border-radius: 9px; }
  .route-panel h2 { display: none; }
  .route-stop, .route-stop:last-child { min-height: 0; width: 33.333%; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .route-stop:not(:last-child)::after { left: calc(50% + 24px); right: calc(-50% + 15px); top: 16px; width: auto; height: 1px; }
  .route-icon { position: relative; z-index: 1; width: 31px; height: 31px; border-radius: 8px; }
  .route-stop strong { font-size: 10px; max-width: 100%; }
  .route-label { font-size: 9px; margin: 0 0 5px; line-height: 1.4; }
  .route-stop > div { min-width: 0; width: 100%; }
  .route-connected { display: none; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .hero-metrics > div, .hero-metrics > div:first-child { padding: 15px 22px; }
  .hero-metrics > div:nth-child(2) { border-right: 0; }
  .hero-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-metrics strong { font-size: 16px; }
  .hero-metrics small { display: inline; font-size: 8px; }
  .observation-note { font-size: 10px; padding: 13px 1px 16px; line-height: 1.8; }
  .observation-note .icon { width: 12px; height: 12px; flex-shrink: 0; }
  .section-nav { gap: 23px; margin-top: 0; }
  .section-nav a { font-size: 11px; padding: 13px 0; }
  .info-section { margin-top: 27px; scroll-margin-top: 64px; }
  .section-heading { margin-bottom: 12px; align-items: flex-start; }
  .section-heading h2 { font-size: 14px; gap: 6px; flex-shrink: 0; }
  .section-heading > span { font-size: 9px; text-align: right; max-width: 46%; padding-top: 3px; }
  .three-columns { grid-template-columns: minmax(0, 1fr); }
  .card-grid { gap: 12px; }
  .info-card { border-radius: 10px; padding: 20px; }
  .info-card h3 { margin-bottom: 15px; font-size: 12px; }
  .data-row { font-size: 12px; padding: 9px 0; gap: 16px; grid-template-columns: minmax(85px, 1fr) minmax(0, 1.7fr); }
  dd.mono { font-size: 11px; }
  .capabilities-card { margin-top: 12px; padding: 20px; border-radius: 10px; }
  .capabilities { gap: 7px; }
  .diagnostic-card { padding: 22px; }
  .diagnostic-card > p { max-width: 32em; }
  .diagnostic-card > .button { min-height: 38px; }
  .diagnostic-result { font-size: 10px; margin-top: 13px; }
  .diagnostic-result .data-row { font-size: 11px; }
  .raw-details summary { padding: 19px; }
  .summary-note { display: none; }
  .raw-body { padding: 0 15px 15px; }
  pre { padding: 13px; font-size: 10px; }
  footer { flex-direction: column; gap: 8px; font-size: 9px; margin-top: 30px; padding: 23px 1px; }
  footer > div { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
