:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #ffffff;
  --surface-soft: #edf2fa;
  --ink: #101828;
  --muted: #667085;
  --subtle: #98a2b3;
  --line: rgba(16, 24, 40, .10);
  --line-strong: rgba(16, 24, 40, .16);
  --primary: #5865f2;
  --primary-strong: #3f4cdb;
  --cyan: #00a9c7;
  --green: #159c67;
  --red: #e5484d;
  --amber: #d97706;
  --shadow-sm: 0 8px 24px rgba(30, 50, 90, .07);
  --shadow-lg: 0 28px 80px rgba(30, 50, 90, .13);
  --radius-lg: 28px;
  --radius-md: 20px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d18;
  --surface: rgba(19, 26, 43, .82);
  --surface-solid: #121a2b;
  --surface-soft: #172136;
  --ink: #f4f7ff;
  --muted: #a5afc1;
  --subtle: #77839a;
  --line: rgba(224, 232, 255, .10);
  --line-strong: rgba(224, 232, 255, .18);
  --primary: #7c86ff;
  --primary-strong: #929bff;
  --cyan: #35d0e5;
  --green: #3bd49a;
  --red: #ff6b70;
  --amber: #f6b94a;
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, .18);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .3; mask-image: linear-gradient(to bottom, black, transparent 72%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 3px; }
.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; }
.page-glow { position: fixed; z-index: -2; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .65; }
.page-glow-one { width: 520px; height: 520px; top: -260px; right: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 68%); }
.page-glow-two { width: 480px; height: 480px; top: 480px; left: -320px; background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 17%, transparent), transparent 68%); }

.site-header { position: sticky; top: 0; z-index: 30; height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 0 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 9px; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--primary), var(--cyan)); box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 28%, transparent); }
.brand-mark i { display: block; width: 4px; border-radius: 9px; background: white; }
.brand-mark i:nth-child(1) { height: 8px; opacity: .65; }
.brand-mark i:nth-child(2) { height: 14px; opacity: .82; }
.brand-mark i:nth-child(3) { height: 20px; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.02em; }
.brand-copy small { color: var(--subtle); font-size: 8px; letter-spacing: .17em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface); cursor: pointer; transition: .2s ease; }
.theme-toggle:hover { transform: rotate(18deg); border-color: var(--primary); color: var(--primary); }

main { max-width: 1184px; margin: 0 auto; padding: 68px 28px 110px; }
.hero { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(42px, 7vw, 88px); align-items: center; min-height: 420px; }
.kicker, .eyebrow { margin: 0; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.kicker > span { display: inline-block; width: 24px; height: 1px; margin: 0 8px 3px 0; background: var(--primary); }
h1 { margin: 17px 0 20px; font-size: clamp(46px, 6vw, 76px); line-height: .98; letter-spacing: -.06em; }
h1 em { color: transparent; font-style: normal; background: linear-gradient(100deg, var(--primary), var(--cyan)); background-clip: text; -webkit-background-clip: text; }
.hero-description { max-width: 480px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.privacy-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 25px; color: var(--muted); font-size: 12px; }
.privacy-note span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); font-weight: 900; }

.current-card { position: relative; isolation: isolate; min-width: 0; padding: clamp(28px, 4vw, 44px); overflow: hidden; border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line)); border-radius: var(--radius-lg); background: linear-gradient(145deg, color-mix(in srgb, var(--surface-solid) 94%, var(--primary)), var(--surface)); box-shadow: var(--shadow-lg); }
.current-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent 45%, color-mix(in srgb, var(--cyan) 7%, transparent)); }
.card-orbit { position: absolute; z-index: -1; width: 250px; height: 250px; right: -112px; top: -125px; border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent); border-radius: 50%; box-shadow: 0 0 0 32px color-mix(in srgb, var(--primary) 4%, transparent), 0 0 0 66px color-mix(in srgb, var(--cyan) 3%, transparent); }
.current-card-top, .current-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.live-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.live-label i, .confidence i, .stack-verdict i, .probe-status i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 11%, transparent); }
.protocol-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent); border-radius: 999px; color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); font: 700 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.current-ip-row { display: flex; align-items: center; gap: 12px; min-width: 0; margin-top: 42px; }
.current-ip-row code { min-width: 0; overflow-wrap: anywhere; font: 700 clamp(27px, 4.2vw, 52px)/1.15 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.06em; }
.icon-copy { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface-soft); cursor: pointer; transition: .18s ease; }
.icon-copy:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.icon-copy:disabled { opacity: .4; cursor: default; }
.current-location { min-height: 24px; margin: 17px 0 40px; color: var(--muted); font-size: 15px; }
.current-card-footer { padding-top: 18px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; }
.current-card-footer .org-name { max-width: 60%; overflow: hidden; color: var(--muted); text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.lookup-panel { position: relative; margin: 42px 0 82px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); }
.lookup-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; }
.lookup-title { display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.lookup-title h2 { margin: 3px 0 0; font-size: 16px; letter-spacing: -.02em; }
.search-mark { position: relative; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.search-mark::before { content: ""; position: absolute; width: 11px; height: 11px; left: 10px; top: 8px; border: 2px solid var(--primary); border-radius: 50%; }
.search-mark::after { content: ""; position: absolute; width: 8px; height: 2px; left: 21px; top: 22px; transform: rotate(45deg); border-radius: 2px; background: var(--primary); }
.lookup-form { display: flex; min-width: 0; padding: 5px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface-solid); transition: .2s ease; }
.lookup-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 9%, transparent); }
.lookup-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 0; outline: 0; color: var(--ink); background: transparent; font: 14px ui-monospace, SFMono-Regular, Consolas, monospace; }
.lookup-form input::placeholder { color: var(--subtle); }
.lookup-form button { flex: none; padding: 11px 18px; border: 0; border-radius: 11px; color: white; background: linear-gradient(115deg, var(--primary), var(--primary-strong)); box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 24%, transparent); cursor: pointer; font-size: 13px; font-weight: 750; }
.lookup-form button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.lookup-hint { grid-column: 2; margin: -14px 4px 0; color: var(--subtle); font-size: 10px; }
.form-error { grid-column: 2; margin: -10px 4px 0; color: var(--red); font-size: 12px; }

.section-heading, .query-title-row, .summary-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading h2, .query-title-row h2, .method-note h2 { margin: 8px 0 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.045em; }
.stack-verdict { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 700; }
.stack-verdict.is-ok { color: var(--green); border-color: color-mix(in srgb, var(--green) 28%, transparent); background: color-mix(in srgb, var(--green) 7%, var(--surface)); }
.stack-verdict.is-partial { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 28%, transparent); }
.stack-verdict.is-error { color: var(--red); border-color: color-mix(in srgb, var(--red) 28%, transparent); }
.stack-verdict.is-partial i { background: var(--amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 11%, transparent); }
.stack-verdict.is-error i { background: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 11%, transparent); }
.stack-verdict.is-checking i, .protocol-card.is-loading .probe-status i { animation: pulse 1.5s ease-in-out infinite; }

.protocol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.protocol-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-solid); box-shadow: var(--shadow-sm); transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.protocol-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.protocol-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -100px; bottom: -120px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 8%, transparent); }
.protocol-card[data-probe-card="6"]::after { background: color-mix(in srgb, var(--cyan) 9%, transparent); }
.protocol-card.is-ok { border-color: color-mix(in srgb, var(--green) 28%, var(--line)); }
.protocol-card.is-error { border-color: color-mix(in srgb, var(--red) 25%, var(--line)); }
.protocol-card-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.protocol-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--primary), var(--primary-strong)); box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 24%, transparent); font: 800 17px ui-monospace, monospace; }
[data-probe-card="6"] .protocol-number { background: linear-gradient(145deg, var(--cyan), #087bba); box-shadow: 0 8px 18px color-mix(in srgb, var(--cyan) 22%, transparent); }
.probe-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.probe-status b { font-weight: 700; }
.protocol-card.is-error .probe-status { color: var(--red); }
.protocol-card.is-error .probe-status i { background: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 10%, transparent); }
.probe-body { min-height: 178px; padding: 27px 24px 24px; }
.probe-label { color: var(--subtle); font-size: 11px; }
.probe-ip-row { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 11px; }
.probe-ip-row code { min-width: 0; overflow-wrap: anywhere; font: 700 clamp(20px, 2.7vw, 31px)/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.045em; }
.protocol-card.is-loading .probe-ip-row code { color: var(--subtle); }
.probe-location { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.probe-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; padding: 16px 24px; border-top: 1px solid var(--line); color: var(--subtle); background: color-mix(in srgb, var(--surface-soft) 58%, transparent); font-size: 11px; }
.probe-meta span:last-child { max-width: 66%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.probe-footnote { margin: 14px 2px 0; color: var(--subtle); font-size: 11px; }

.current-result, .query-result { margin-top: 88px; }
.query-result { scroll-margin-top: 95px; padding: clamp(24px, 4vw, 42px); border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line)); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--primary) 4%, var(--surface)); box-shadow: var(--shadow-sm); }
.query-result .result-stack { margin-top: 28px; }
.queried-actions { display: flex; align-items: center; gap: 10px; }
.copy-button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-solid); cursor: pointer; font-size: 11px; font-weight: 700; }
.copy-button:hover { color: var(--primary); border-color: var(--primary); }
.ip-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ip-meta span, .detail-ip { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font: 11px ui-monospace, monospace; }
.detail-heading { margin-bottom: 26px; }
.detail-ip { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-stack { display: grid; gap: 18px; }
.summary-card, .source-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-solid); box-shadow: var(--shadow-sm); }
.summary-card { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 36px); }
.summary-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--primary), var(--cyan)); }
.confidence, .source-count { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.location { margin: 14px 0 28px; font-size: clamp(24px, 4vw, 40px); font-weight: 760; letter-spacing: -.045em; }
.location span { color: var(--primary); }
.location.muted { color: var(--muted); }
.summary-note { margin: -15px 0 0; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: .7fr 1fr 2fr; border-top: 1px solid var(--line); }
.summary-grid div { min-width: 0; padding: 19px 20px 0 0; }
.summary-grid span { display: block; margin-bottom: 6px; color: var(--subtle); font-size: 10px; }
.summary-grid strong { overflow-wrap: anywhere; font-size: 13px; }
.notices { padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--amber) 22%, transparent); border-radius: 13px; color: var(--muted); background: color-mix(in srgb, var(--amber) 7%, transparent); font-size: 12px; }
.notices p { margin: 3px 0; }
.source-card { padding: clamp(20px, 3vw, 30px); }
.compact-heading h3 { margin: 6px 0 18px; font-size: 19px; }
.table-wrap { overflow-x: auto; scrollbar-width: thin; }
table { width: 100%; min-width: 850px; border-collapse: collapse; }
th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--subtle); text-align: left; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); font-size: 12px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: var(--surface-soft); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child strong { display: block; color: var(--ink); }
td small { color: var(--subtle); }
.provenance { display: block; max-width: 170px; margin-top: 5px; overflow-wrap: anywhere; }
.status { display: inline-block; margin-top: 5px; color: var(--subtle); font-size: 9px; }
.status-ok { color: var(--green); }
.status-error { color: var(--red); }
.code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 9px ui-monospace, monospace; }

.method-note { display: grid; grid-template-columns: auto 1.25fr 1fr; gap: 32px; margin-top: 88px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.method-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); font-size: 23px; }
.method-note h2 { margin-top: 7px; font-size: 24px; }
.method-note p { max-width: 600px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.provider-list { padding-top: 3px; }
.provider-list > span { color: var(--subtle); font-size: 10px; }
.provider-list > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.provider-list strong { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface-solid); font-size: 9px; font-weight: 650; }

footer { max-width: 1240px; margin: 0 auto; padding: 28px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 10px; }
footer, footer > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
footer > div:first-child { justify-content: flex-start; }
footer strong { color: var(--ink); font-size: 12px; }
footer a { color: inherit; text-underline-offset: 3px; }
.footer-links, .credits { justify-content: flex-end; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--surface-solid); background: var(--ink); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: .2s ease; font-size: 12px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.76); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 620px; }
  .lookup-panel { grid-template-columns: 1fr; gap: 16px; }
  .lookup-hint, .form-error { grid-column: 1; margin: -5px 4px 0; }
  .method-note { grid-template-columns: auto 1fr; }
  .provider-list { grid-column: 2; }
}

@media (max-width: 680px) {
  :root { --radius-lg: 22px; --radius-md: 17px; }
  .site-header { height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .brand { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy small { display: none; }
  .theme-toggle { width: 44px; height: 44px; }
  main { padding: 38px max(16px, env(safe-area-inset-right)) calc(68px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  h1 { margin: 14px 0 16px; font-size: clamp(40px, 13vw, 56px); line-height: 1.02; }
  .hero { gap: 30px; }
  .hero-description { font-size: 15px; line-height: 1.7; }
  .privacy-note { align-items: flex-start; margin-top: 20px; line-height: 1.5; }
  .current-card { padding: 23px 19px; }
  .current-ip-row { align-items: flex-start; margin-top: 30px; }
  .current-ip-row code { font-size: clamp(21px, 7vw, 29px); line-height: 1.25; letter-spacing: -.045em; }
  .icon-copy { width: 44px; height: 44px; }
  .current-location { margin: 14px 0 28px; font-size: 14px; line-height: 1.55; }
  .current-card-footer { display: block; }
  .current-card-footer .org-name { display: block; max-width: 100%; margin-top: 7px; text-align: left; }
  .lookup-panel { margin: 30px 0 56px; padding: 16px; }
  .lookup-title { white-space: normal; }
  .lookup-form { display: grid; padding: 5px; }
  .lookup-form input { width: 100%; min-height: 44px; padding: 10px 11px; font-size: 16px; }
  .lookup-form button { min-height: 44px; margin-top: 4px; }
  .lookup-hint, .form-error { line-height: 1.5; }
  .section-heading { display: block; }
  .section-heading h2, .query-title-row h2, .method-note h2 { font-size: clamp(25px, 8vw, 32px); }
  .stack-verdict { margin-top: 15px; }
  .protocol-grid { grid-template-columns: 1fr; }
  .protocol-card:hover { transform: none; }
  .protocol-card-head { padding: 18px; }
  .probe-body { min-height: 155px; padding: 22px 18px 20px; }
  .probe-ip-row { align-items: flex-start; }
  .probe-ip-row code { font-size: clamp(19px, 6vw, 25px); line-height: 1.3; }
  .probe-meta { display: grid; gap: 6px; padding: 14px 18px; line-height: 1.4; }
  .probe-meta span:last-child { max-width: 100%; white-space: normal; text-align: left; }
  .current-result, .query-result { margin-top: 58px; }
  .query-result { padding: 20px 16px; }
  .detail-ip { display: inline-block; max-width: 100%; margin-top: 14px; }
  .query-title-row { display: block; }
  .query-title-row h2 { overflow-wrap: anywhere; }
  .queried-actions { margin-top: 14px; }
  .copy-button { min-height: 44px; padding: 10px 14px; }
  .summary-card { padding: 23px 19px; }
  .summary-topline { flex-wrap: wrap; gap: 10px; }
  .location { margin: 13px 0 24px; font-size: clamp(23px, 7.5vw, 31px); line-height: 1.25; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid .wide { grid-column: 1 / -1; }
  .summary-grid div { padding: 17px 10px 0 0; }
  .source-card { padding: 20px 16px; }
  .source-card .section-heading { display: flex; align-items: flex-start; }
  .source-count { flex: none; }
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  table { min-width: 0; }
  thead { display: none; }
  tbody { display: grid; gap: 12px; }
  tbody tr { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
  tbody tr:hover { background: var(--surface); }
  td { display: grid; grid-template-columns: minmax(78px, .65fr) minmax(0, 1.35fr); gap: 12px; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.45; }
  td::before { content: attr(data-label); color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
  td:last-child { border-bottom: 0; }
  td .cell-value { min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
  td:first-child strong { font-size: 13px; }
  .provenance { max-width: none; }
  .method-note { grid-template-columns: 1fr; gap: 16px; margin-top: 58px; padding: 21px 18px; }
  .provider-list { grid-column: 1; }
  footer, footer > div { justify-content: flex-start; }
  footer { padding: 24px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; white-space: nowrap; }
}

@media (max-width: 380px) {
  .site-header { padding-right: 12px; padding-left: 12px; }
  main { padding-right: 12px; padding-left: 12px; }
  .brand-copy strong { font-size: 14px; }
  .current-card { padding-right: 16px; padding-left: 16px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-grid .wide { grid-column: auto; }
  .source-card .section-heading { display: block; }
  .source-count { margin-top: 8px; }
  td { grid-template-columns: 72px minmax(0, 1fr); gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
