:root {
  --ink: #182431;
  --muted: #607080;
  --line: #d9e1ea;
  --soft-line: #e9eef4;
  --blue: #1769e0;
  --blue-dark: #0c4eac;
  --blue-soft: #eaf2ff;
  --navy: #12345a;
  --surface: #ffffff;
  --page: #f5f8fc;
  --green: #177554;
  --green-soft: #e8f6ef;
  --amber: #8b5e13;
  --amber-soft: #fff5dc;
  --shadow: 0 16px 42px rgba(35, 57, 83, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif; line-height: 1.45; }
button, input { font: inherit; }
button { color: inherit; }
.site-header { z-index: 100; }
.site-nav { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-nav .brand { display: inline-flex; align-items: center; gap: 10px; color: #191c18; font-size: 19px; font-weight: 950; letter-spacing: -.03em; text-decoration: none; }
.site-nav nav a { color: #191c18; font-size: 14px; font-weight: 800; text-decoration: none; }

main { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 58px 4px 28px; }
.eyebrow, .card-kicker { color: var(--blue-dark); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.intro h1 { max-width: 820px; margin: 8px 0 9px; font-size: clamp(36px, 5vw, 64px); line-height: .98; letter-spacing: -.055em; }
.intro p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.intro .tool-update-note { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: #526477; font-size: 12px; }
.tool-update-note strong { padding: 5px 8px; border: 1px solid #b9d0f3; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 10px; white-space: nowrap; }
.ready-pill { display: inline-flex; min-height: 38px; flex: 0 0 auto; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #b8d7c9; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; }
.ready-pill > span { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(23, 117, 84, .11); }
.ready-pill[data-state="loading"] { border-color: #e8d5a5; background: var(--amber-soft); color: var(--amber); }
.ready-pill[data-state="loading"] > span { animation: pulse 1.2s ease-in-out infinite; }
.ready-pill[data-state="error"] { border-color: #e2b7b7; background: #fff0f0; color: #a43838; }

.lookup-shell { display: grid; min-height: 650px; grid-template-columns: 230px minmax(430px, 1fr) 320px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.mode-panel { padding: 22px 16px; border-right: 1px solid var(--soft-line); background: #fbfcfe; }
.mode-heading { padding: 0 6px 13px; }
.mode-heading span, .search-copy > span, .results-heading > div > span { display: block; color: var(--blue-dark); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.mode-heading strong { display: block; margin-top: 4px; font-size: 16px; }
.mode-buttons { display: grid; gap: 8px; }
.mode-button { display: flex; min-height: 74px; align-items: center; gap: 11px; padding: 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.mode-button:hover { background: #f0f4f9; }
.mode-button.is-active { border-color: #a9c7f5; background: var(--blue-soft); color: var(--blue-dark); }
.mode-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; background: #eef2f7; color: #536476; }
.mode-button.is-active .mode-icon { background: var(--blue); color: #fff; }
.mode-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.mode-button strong, .mode-button small { display: block; }
.mode-button strong { font-size: 14px; }
.mode-button small { margin-top: 2px; color: var(--muted); font-size: 11px; }

.device-card { margin-top: 24px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.device-card h2 { margin: 4px 0 11px; font-size: 14px; }
.device-card dl { margin: 0; }
.device-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--soft-line); font-size: 11px; }
.device-card dt { color: var(--muted); }
.device-card dd { margin: 0; font-weight: 800; text-align: right; }
.device-card button, .install-button { width: 100%; min-height: 40px; margin-top: 12px; padding: 8px 9px; border: 1px solid #b9c7d6; border-radius: 8px; background: #fff; color: var(--blue-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.device-card button:hover, .install-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.device-card button:disabled { cursor: wait; opacity: .6; }
.device-card p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.install-button { margin-top: 10px; }

.search-workspace { min-width: 0; padding: 26px; }
.search-card { padding: 22px; border: 1px solid #cdd9e7; border-radius: 14px; background: linear-gradient(145deg, #fff, #f8fbff); }
.search-copy h2 { margin: 5px 0 6px; font-size: 24px; letter-spacing: -.03em; }
.search-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.example-query { padding: 0; border: 0; background: transparent; color: var(--blue-dark); font-size: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: #9ebceb; text-underline-offset: 2px; cursor: pointer; }
.search-form { margin-top: 18px; }
.search-form > label { display: block; margin-bottom: 6px; color: #405162; font-size: 12px; font-weight: 800; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 9px; }
.search-input-shell { position: relative; }
.search-input-shell > svg { position: absolute; top: 50%; left: 14px; width: 21px; height: 21px; fill: none; stroke: #6f7f8f; stroke-width: 1.8; transform: translateY(-50%); }
.search-input-shell input { width: 100%; height: 54px; padding: 10px 64px 10px 45px; border: 1px solid #aebdcd; border-radius: 10px; background: #fff; color: var(--ink); font-size: 17px; outline: 0; }
.search-input-shell input::-webkit-search-cancel-button { display: none; }
.search-input-shell input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 105, 224, .12); }
.search-input-shell > button { position: absolute; top: 50%; right: 9px; padding: 7px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; transform: translateY(-50%); }
.search-button { min-height: 54px; padding: 10px 15px; border: 1px solid var(--blue); border-radius: 10px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 850; cursor: pointer; box-shadow: 0 7px 17px rgba(23, 105, 224, .2); }
.search-button:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.search-button:disabled { cursor: wait; opacity: .6; }
.search-hint, .search-message { margin: 7px 2px 0; color: var(--muted); font-size: 11px; }
.search-message { min-height: 14px; color: #a13939; font-weight: 750; }

.results-heading { display: flex; min-height: 62px; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 22px 2px 10px; }
.results-heading h2 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em; }
.results-heading > span { padding: 5px 8px; border-radius: 999px; background: #eef2f7; color: var(--muted); font-size: 10px; font-weight: 800; }
.results-table { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.result-header, .result-row { display: grid; grid-template-columns: 92px minmax(150px, 1.5fr) minmax(130px, 1fr) 24px; gap: 10px; align-items: center; }
.result-header { min-height: 34px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: #f4f7fa; color: #6d7a88; font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.result-row { width: 100%; min-height: 64px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--soft-line); background: #fff; text-align: left; cursor: pointer; }
.result-row:last-child { border-bottom: 0; }
.result-row:hover, .result-row.is-selected { background: var(--blue-soft); }
.result-code { color: var(--blue-dark); font-size: 18px; font-weight: 900; letter-spacing: .02em; }
.result-main strong, .result-main span, .result-zone strong, .result-zone span { display: block; }
.result-main strong { font-size: 14px; }
.result-main span, .result-zone span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.result-zone strong { color: #425466; font-size: 12px; }
.result-arrow { color: #8190a0; font-size: 18px; text-align: right; }

.empty-state { display: grid; min-height: 300px; place-items: center; align-content: center; padding: 36px; border: 1px dashed #c8d3df; border-radius: 12px; background: #fbfcfe; text-align: center; }
.empty-mark { display: grid; width: 62px; height: 48px; place-items: center; border: 2px solid var(--navy); border-radius: 8px; background: #fff; color: var(--navy); font-size: 18px; font-weight: 950; box-shadow: 5px 5px 0 #dce9ff; transform: rotate(-2deg); }
.empty-state h2 { margin: 19px 0 6px; font-size: 19px; letter-spacing: -.02em; }
.empty-state p { max-width: 440px; margin: 0; color: var(--muted); font-size: 11px; }
.empty-state > div:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 16px; }

.detail-panel { min-width: 0; padding: 22px; border-left: 1px solid var(--soft-line); background: #fbfcfe; }
.detail-empty { position: sticky; top: 86px; padding: 28px 6px; }
.detail-empty > span, .detail-type { color: var(--blue-dark); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.detail-empty h2 { margin: 6px 0 7px; font-size: 22px; letter-spacing: -.03em; }
.detail-empty p { margin: 0; color: var(--muted); font-size: 13px; }
.detail-content { position: sticky; top: 78px; }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.detail-code { color: var(--blue-dark); font-size: 36px; line-height: 1; letter-spacing: .03em; }
.detail-content > h2 { margin: 17px 0 4px; font-size: 22px; line-height: 1.12; letter-spacing: -.035em; }
.detail-subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.detail-list { margin: 19px 0 0; border-top: 1px solid var(--line); }
.detail-list > div { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--soft-line); }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 750; text-align: right; }
.coordinate-plot { position: relative; height: 138px; margin-top: 16px; overflow: hidden; border: 1px solid #cbd7e4; border-radius: 11px; background: #edf4fb; }
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(34, 80, 126, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(34, 80, 126, .08) 1px, transparent 1px); background-size: 24px 24px; }
.map-pin { position: absolute; left: var(--pin-x, 50%); top: var(--pin-y, 50%); width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--blue); box-shadow: 0 3px 8px rgba(18, 52, 90, .24); transform: translate(-50%, -70%) rotate(-45deg); }
.coordinate-plot small { position: absolute; right: 8px; bottom: 7px; padding: 3px 5px; border-radius: 5px; background: rgba(255,255,255,.9); color: #5e6d7c; font-size: 8px; }
.coverage-block { margin-top: 18px; }
.coverage-block > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.coverage-block > div { display: flex; flex-wrap: wrap; gap: 5px; }
.coverage-block span { padding: 5px 7px; border: 1px solid #ccdaea; border-radius: 999px; background: #fff; color: #41566a; font-size: 10px; font-weight: 750; }
.detail-note { margin: 15px 0 0; padding: 10px; border-radius: 8px; background: var(--amber-soft); color: #76531c; font-size: 11px; line-height: 1.5; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.trust-strip > div { padding: 17px 20px; border-right: 1px solid var(--soft-line); }
.trust-strip > div:last-child { border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-size: 11px; }
.trust-strip span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.about-section { margin: 88px 0 96px; }
.about-intro { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 42px; align-items: start; }
.about-intro h2 { margin: 0; font-size: 34px; line-height: 1.08; letter-spacing: -.04em; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 31px; }
.about-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.about-grid h3 { margin: 0 0 7px; font-size: 15px; }
.about-grid p { margin: 0; color: var(--muted); font-size: 10px; }
.about-grid a { display: inline-block; margin-top: 12px; color: var(--blue-dark); font-size: 9px; font-weight: 800; text-underline-offset: 2px; }
.source-note { display: flex; align-items: flex-start; gap: 24px; margin-top: 18px; padding: 17px 20px; border-left: 4px solid var(--blue); background: #fff; }
.source-note strong { flex: 0 0 90px; font-size: 11px; }
.source-note p { margin: 0; color: var(--muted); font-size: 9px; }

:focus-visible { outline: 3px solid rgba(23, 105, 224, .28); outline-offset: 2px; }
button:active { transform: scale(.98); }
@keyframes pulse { 0%,100% { opacity: .5; transform: scale(.82); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 1120px) {
  .lookup-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .detail-panel { grid-column: 2; padding-top: 0; border-top: 1px solid var(--soft-line); border-left: 0; }
  .detail-empty, .detail-content { position: static; }
  .detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr); gap: 0 24px; }
  .detail-content .detail-top, .detail-content > h2, .detail-content .detail-subtitle, .detail-content .detail-list { grid-column: 1; }
  .detail-content .coordinate-plot, .detail-content .coverage-block { grid-column: 2; grid-row: 1 / span 5; }
  .detail-content .detail-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  main { width: min(100% - 24px, 680px); }
  .site-nav nav a:not(.nav-pill) { display: none; }
  .intro { display: block; padding: 34px 2px 20px; }
  .intro h1 { font-size: 41px; }
  .intro p { font-size: 14px; }
  .ready-pill { margin-top: 18px; }
  .intro .tool-update-note { align-items: flex-start; font-size: 11px; }
  .lookup-shell { display: flex; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; flex-direction: column; }
  .mode-panel { padding: 0; border: 0; background: transparent; }
  .mode-heading { display: none; }
  .mode-buttons { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mode-button { min-height: 76px; padding: 11px; border-color: var(--line); background: #fff; }
  .mode-button small { font-size: 9px; }
  .device-card, .install-button { display: none; }
  .search-workspace { padding: 10px 0 0; }
  .search-card { padding: 18px 14px; border-radius: 13px; }
  .search-copy h2 { font-size: 21px; }
  .search-copy p { line-height: 1.65; }
  .input-row { grid-template-columns: 1fr; }
  .search-input-shell input { height: 58px; font-size: 18px; }
  .search-button { min-height: 52px; font-size: 14px; }
  .results-heading { padding: 19px 2px 9px; }
  .results-table { border: 0; border-radius: 0; }
  .result-header { display: none; }
  #resultsList { display: grid; gap: 8px; }
  .result-row { grid-template-columns: 75px minmax(0, 1fr) 20px; min-height: 74px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
  .result-row:last-child { border-bottom: 1px solid var(--line); }
  .result-zone { grid-column: 2; }
  .result-zone strong { display: inline; }
  .result-zone span { display: inline; margin-left: 4px; }
  .result-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .empty-state { min-height: 270px; padding: 28px 20px; }
  .detail-panel { order: 3; margin-top: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
  .detail-empty { padding: 12px 2px; }
  .detail-content { display: block; }
  .detail-code { font-size: 34px; }
  .coordinate-plot { height: 150px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .about-section { margin: 66px 0 74px; }
  .about-intro { display: block; }
  .about-intro h2 { margin-top: 7px; font-size: 29px; }
  .about-grid { grid-template-columns: 1fr; }
  .source-note { display: block; }
  .source-note p { margin-top: 6px; }
}

@media (max-width: 390px) {
  .intro h1 { font-size: 36px; }
  .mode-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .mode-button { gap: 8px; padding: 9px; }
  .mode-button strong { font-size: 12px; }
}

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