:root {
  color-scheme: light;
  --ink: #f0fbff;
  --stock: #fff;
  --stock-alt: #eaf5ff;
  --control: #e4f8f0;
  --line: #c9e4eb;
  --edge: #9bc6d1;
  --letter: #162c43;
  --muted: #49667a;
  --signal: #1262c6;
  --notice: #9b3f35;
  --sans: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --tap: 44px;
  --corner: 13px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding: 1rem; }
body { background: var(--ink); color: var(--letter); font: 1rem/1.55 var(--sans); margin: 0; }
main:focus { outline: none; }
button, input { font: inherit; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
button, .jump { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:not(:disabled):active { transform: translateY(1px); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
a { color: inherit; }
p, h1, h2, h3, dl, dd { margin: 0; }
bdi, code { overflow-wrap: anywhere; }
.shell { width: min(calc(100% - 2rem), 69rem); margin-inline: auto; }
.skip { position: fixed; z-index: 2; top: .5rem; left: .75rem; background: var(--signal); color: var(--ink); padding: .75rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 61px; gap: .75rem; border-bottom: 1px solid var(--line); }
.brand, .jump { display: inline-flex; gap: .55rem; align-items: center; min-height: var(--tap); text-decoration: none; }
.brand { font-weight: 780; letter-spacing: .025em; }
.jump { font-size: .875rem; color: var(--muted); }
.jump:hover, .jump span { color: var(--signal); }
.intro { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.55rem 1.2rem; isolation: isolate; }
.intro-copy { min-width: 0; }
.eyebrow { font: 750 .68rem/1.2 var(--mono); letter-spacing: .13em; color: var(--signal); }
h1 { font-size: clamp(3.05rem, 10vw, 5.8rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 850; margin: .21em 0 .16em; }
h1 span { color: var(--signal); }
.intro-copy > p:last-child { max-width: 33ch; color: var(--muted); font-size: .875rem; }
.art { position: relative; width: clamp(66px, 23vw, 190px); flex: none; margin-inline-end: clamp(.35rem, 2vw, 1.8rem); transform: rotate(8deg); color: var(--line); }
.postmark { position: absolute; width: 150%; top: 6%; right: 57%; z-index: -1; display: none; color: var(--edge); }
.stamp { padding: 13%; background: var(--signal); color: var(--ink); box-shadow: 5px 8px 0 #080b1d; rotate: -1deg; }
.stamp svg { display: block; width: 100%; height: auto; }
@supports (mask: radial-gradient(circle, #000, transparent)) {
  .stamp { mask: radial-gradient(circle at 4px 4px, transparent 2px, #000 2.35px) -4px -4px / 8px 8px, linear-gradient(#000, #000) center / calc(100% - 8px) calc(100% - 8px) no-repeat; }
}
.postcard { background: var(--stock); border: 1px solid var(--line); }
.routes { display: grid; }
.route { min-width: 0; padding: 1rem; }
.route-global { background: var(--stock-alt); border-top: 1px dashed var(--edge); }
.route-heading, .reading, .route-foot { display: flex; align-items: center; justify-content: space-between; gap: .55rem; }
.route h2 { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; min-width: 0; font-size: 1rem; line-height: 1.3; font-weight: 750; }
.route h2 small { color: var(--muted); font: 650 .72rem/1 var(--mono); }
.route-mark { display: inline-flex; align-items: center; font: 750 .65rem/1 var(--mono); letter-spacing: .045em; color: var(--signal); border: 1px solid currentColor; padding: .27rem .34rem; margin-inline-end: .12rem; }
.state { display: inline-flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.route .state::before { content: ""; display: block; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.route[data-state="ok"] .state::before { background: var(--signal); border-color: var(--signal); }
.route[data-state="unavailable"] .state, .warning, [data-tone="error"] { color: var(--notice); }
.reading { margin-block: .6rem .18rem; min-height: var(--tap); }
.ip { min-width: 0; color: var(--letter); font: 750 clamp(1.42rem, 5.8vw, 2.85rem)/1.13 var(--mono); letter-spacing: -.04em; }
.route[data-state="loading"] .ip, .route[data-state="unavailable"] .ip { color: var(--muted); font: 650 clamp(1.1rem, 4vw, 1.35rem)/1.4 var(--sans); letter-spacing: normal; }
.ip[data-version="6"] { font-size: clamp(.98rem, 3.5vw, 1.52rem); letter-spacing: -.02em; }
.route-foot { min-height: 24px; color: var(--muted); font-size: .8rem; }
.route-foot p { min-width: 0; overflow-wrap: anywhere; }
.route-foot bdi { font-family: var(--mono); color: var(--letter); }
.route-profile { margin-top: .45rem; color: var(--letter); font-size: .83rem; line-height: 1.5; overflow-wrap: anywhere; }
.route-profile small { display: block; color: var(--muted); font-size: .74rem; margin-top: .12rem; }
.copy, .quiet, .primary, .secondary, .refresh, .record-pick { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; min-width: var(--tap); min-height: var(--tap); padding: .45rem .7rem; border: 1px solid transparent; border-radius: var(--corner); background: transparent; color: var(--letter); font-size: .85rem; font-weight: 690; white-space: nowrap; }
.copy, .secondary { border-color: var(--edge); background: var(--stock-alt); }
.copy:disabled, .secondary:disabled, .primary:disabled, .refresh:disabled { color: var(--muted); border-color: var(--line); background: transparent; }
.copy-icon { display: block; width: 12px; height: 12px; border: 1px solid currentColor; margin-right: 2px; box-shadow: 2px -2px 0 -1px var(--stock-alt), 3px -3px 0 -1px currentColor; }
.copy:not(:disabled):hover, .quiet:hover, .secondary:not(:disabled):hover { border-color: var(--signal); color: var(--signal); }
.copy[data-copied] { color: var(--signal); }
.receipt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: .5rem; padding: .35rem .65rem .35rem 1rem; border-top: 1px dashed var(--edge); background: var(--ink); color: var(--muted); }
.receipt > p { font-size: .77rem; }
.refresh { color: var(--signal); }
.refresh[aria-disabled="true"], .secondary[aria-disabled="true"] { color: var(--muted); cursor: default; }
.refresh:not(:disabled):hover { background: var(--stock-alt); }
.refresh > span { font-size: 1.15em; }
.warning { padding-top: .75rem; }
.extras { display: grid; gap: .45rem; align-items: start; margin-top: 1.1rem; }
.compact { border-top: 1px solid var(--line); padding-inline: .1rem; }
.compact .reading { margin-block: .28rem 0; }
.compact .ip[data-version="6"] { font-size: clamp(1.03rem, 2.3vw, 1.18rem); }
.extras details { border-block: 1px solid var(--line); }
summary { display: flex; align-items: center; gap: .65rem; min-height: 53px; padding: .5rem .1rem; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover .edge-title { color: var(--signal); }
.edge-title { font-weight: 750; margin-inline-end: auto; }
.chevron { border: solid var(--signal); border-width: 0 1.5px 1.5px 0; width: 8px; height: 8px; margin: 0 .45rem .25rem .25rem; transform: rotate(45deg); }
[open] .chevron { transform: rotate(225deg); margin-bottom: 0; }
.edge-body { padding: 0 .15rem .85rem; }
.workbench { display: grid; gap: 1rem; margin-block: 2rem 2.6rem; }
.work-section { border-top: 1px solid var(--edge); padding-top: 1.1rem; min-width: 0; }
.work-section h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; letter-spacing: -.025em; margin-bottom: .55rem; }
.note, label, .target, .data-list { font-size: .86rem; color: var(--muted); }
.note:empty { margin: 0; }
label { display: block; margin-bottom: .35rem; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; margin-bottom: .55rem; }
input { color: var(--letter); background: var(--stock); border: 1px solid var(--edge); border-radius: var(--corner); min-height: var(--tap); width: 100%; padding-inline: .72rem; }
input::placeholder { color: var(--muted); opacity: 1; }
input[aria-invalid="true"] { border-color: var(--notice); }
.primary { color: var(--ink); background: var(--signal); padding-inline: 1rem; }
.primary:not(:disabled):hover { background: #084da8; }
.target { margin: .7rem 0 .55rem; display: flex; flex-wrap: wrap; gap: .15rem .45rem; }
.target bdi { color: var(--letter); font-family: var(--mono); }
.reputation .secondary + .note:not(:empty), #ip-status:not(:empty) { margin-block: .55rem; }
.result-group { margin-top: .75rem; padding: .7rem .8rem; background: var(--stock); border: 1px solid var(--line); }
.result-group h3, .records h3 { font-size: .95rem; font-weight: 760; overflow-wrap: anywhere; }
.result-group h3 + p, .signal-list p { font-size: .83rem; overflow-wrap: anywhere; }
.data-list { display: grid; grid-template-columns: minmax(4.4em, auto) minmax(0, 1fr); gap: .22rem .65rem; margin-top: .35rem; }
.data-list dd { color: var(--letter); overflow-wrap: anywhere; }
.records { margin-top: .65rem; }
.record-list, .signal-list, .alternatives { list-style: none; margin: .4rem 0 0; padding: 0; }
.record-list li + li, .signal-list li + li, .alternatives li + li { margin-top: .3rem; }
.record-pick { display: grid; width: 100%; grid-template-columns: 4ch minmax(0, 1fr) auto; text-align: left; border-color: var(--line); background: var(--stock); white-space: normal; }
.record-pick bdi { font-family: var(--mono); }
.record-pick:hover, .record-pick[aria-pressed="true"] { border-color: var(--signal); }
.signal-list strong { color: var(--letter); font-size: .9rem; overflow-wrap: anywhere; }
.signal-list li + li { border-top: 1px solid var(--line); padding-top: .45rem; margin-top: .45rem; }
.footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; padding: .9rem 0 1.65rem; color: var(--muted); font-size: .77rem; }
.footer > span { font-family: var(--mono); color: var(--letter); }
.policy { max-width: 58ch; margin-inline-start: auto; }
.policy summary { min-height: var(--tap); justify-content: flex-end; }
.policy p + p { margin-top: .5rem; }
.sr-copy { position: fixed; width: 1px; height: 1px; inset: 0 auto auto 0; padding: 0; opacity: 0; pointer-events: none; }
.toast { position: fixed; z-index: 1; bottom: .85rem; right: .85rem; max-width: calc(100% - 1.7rem); background: var(--signal); color: var(--ink); padding: .55rem .9rem; border-radius: var(--corner); font-size: .9rem; pointer-events: none; }
.toast:empty { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; }
@media (min-width: 44rem) {
  .shell { width: min(calc(100% - 4rem), 69rem); }
  .masthead { min-height: 68px; }
  .intro { min-height: 215px; padding-block: 2.5rem 2.3rem; }
  .intro-copy > p:last-child { max-width: none; font-size: 1rem; }
  .eyebrow { font-size: .75rem; }
  .postmark { display: block; }
  .routes { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
  .route { padding: clamp(1.1rem, 3vw, 2.05rem); }
  .route-global { border-top: 0; border-left: 1px dashed var(--edge); }
  .route h2 { font-size: 1.14rem; }
  .reading { margin-block: .9rem .45rem; }
  .postcard .ip:not([data-version="6"]) { font-size: clamp(1.23rem, 3.4vw, 2.85rem); }
  .receipt { padding-inline: 1.4rem 1.1rem; }
  .extras { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 1.6rem; margin-top: 1.3rem; }
  .compact { padding: .6rem .1rem .4rem; }
  .workbench { grid-template-columns: minmax(0, 1.26fr) minmax(0, .74fr); gap: 2.5rem; margin-block: 1.9rem 3.3rem; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .jump, .chevron { transition: color 140ms ease-out, border-color 140ms ease-out, background-color 140ms ease-out, transform 140ms ease-out; }
  .route[data-state="ok"] .reading .ip { animation: resolve 240ms ease-out; }
  @keyframes resolve { from { opacity: .62; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}
@media (forced-colors: active) {
  .stamp { forced-color-adjust: none; }
  .route[data-state="ok"] .state::before { background: CanvasText; }
  button, .record-pick { border-color: ButtonText; }
}
