/* BrowserScan — shared by the local app and static /docs build. */
:root {
  color-scheme: dark;
  --ink: #eee8f8;
  --muted: #a799ba;
  --line: #2c233a;
  --paper: #15101f;
  --bg: #0d0a14;
  --primary: #8b5cf6;
  --primary-soft: #2c2040;
  --accent: #c1a0ff;
  --green: #77d3b1;
  --green-soft: #16302b;
  --amber: #e4bc7d;
  --control-height: 40px;
  --control-radius: 8px;
  --control-gap: 8px;
  --content-gutter: 38px;
  --sidebar-gutter: 19px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse 950px 500px at 18% 0%, #30213f66, transparent 75%), var(--bg); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { height: var(--control-height); min-height: var(--control-height); line-height: 1.25; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid #b18ae5; }
button { transition: background .18s, border-color .18s, box-shadow .18s; }
button:disabled { cursor: wait; opacity: .6; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
.icon { flex-shrink: 0; vertical-align: middle; }
code, pre, .identity-hash { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 99; background: var(--paper); padding: 10px 20px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.topbar { height: 76px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--content-gutter) 0 var(--sidebar-gutter); background: rgba(19,15,29,.97); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -.65px; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; background: transparent; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-light { font-weight: 450; color: var(--primary); }
.brand-divider { height: 20px; width: 1px; background: #2c233a; margin: 0 8px; }
.brand-caption { font-size: 13px; color: #aa9cbe; letter-spacing: 0; font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 30px; font-size: 12px; }
.local-badge { color: var(--primary); display: flex; align-items: center; gap: 7px; }
.local-badge i, .status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: #aa9cbe; }
.text-link .icon { width: 14px; height: 14px; }
.text-link:hover { color: var(--primary); }
.app-layout { width: 100%; display: grid; grid-template-columns: 234px minmax(0, 1fr); }
.sidebar { background-image: linear-gradient(180deg, #1b1428, #100c19 85%); position: sticky; top: 76px; height: calc(100vh - 76px); border-right: 1px solid var(--line); padding: 30px var(--sidebar-gutter); background: var(--paper); display: flex; flex-direction: column; }
.sidebar-label { font-size: 10px; letter-spacing: 1.6px; color: #8e7fa5; padding: 0 14px; margin-bottom: 13px; }
.section-label { margin-top: 35px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 5px; color: #aa9cbe; border-radius: 8px; font-size: 13px; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover { background: #1b1427; color: var(--primary); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-count { margin-left: auto; color: #8e7fa5; font-size: 11px; font-weight: 400; }
.sidebar-tip { margin: auto 4px 0; padding: 20px 13px 0; border-top: 1px solid var(--line); }
.sidebar-tip > .icon { color: var(--primary); display: block; margin-bottom: 12px; }
.sidebar-tip strong { display: block; font-size: 12px; font-weight: 600; }
.sidebar-tip p { font-size: 11px; color: #a295b5; margin-top: 8px; line-height: 1.9; }
.sidebar-tip > span { display: block; font-size: 9px; color: #8e7fa5; margin-top: 22px; }
.main-content { min-width: 0; padding: 30px var(--content-gutter) 20px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.breadcrumb { color: #a295b5; font-size: 11px; margin-bottom: 16px; }
.breadcrumb span { padding: 0 10px; color: #8e7fa5; }
h1 { font-size: 29px; line-height: 1.45; font-weight: 700; letter-spacing: -.8px; }
.heading-dot { color: var(--primary); margin-left: 3px; }
.page-heading p { margin-top: 8px; font-size: 12px; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--control-gap); padding-top: 22px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--control-gap); height: var(--control-height); min-height: var(--control-height); border-radius: var(--control-radius); padding: 0 16px; border: 1px solid transparent; font-size: 13px; line-height: 1.25; font-weight: 500; white-space: nowrap; }
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--primary); color: white; box-shadow: 0 3px 5px #8b5cf622; }
.button-primary:hover { background: #7646d8; box-shadow: 0 3px 8px #8b5cf645; }
.button-secondary { background: var(--paper); color: #c9bddb; border-color: #2c233a; }
.button-secondary:hover { background: #1b1427; border-color: #49345f; }
.overview-grid { display: grid; grid-template-columns: 1.18fr 1fr; gap: 18px; }
.identity-card { border: 1px solid #4b3269; position: relative; isolation: isolate; overflow: hidden; padding: 22px 26px 0; color: #fff; background: #261737; background-image: radial-gradient(ellipse at 85% 10%, #7542b84d, transparent 65%); border-radius: 11px; }
.identity-top, .identity-label { display: flex; align-items: center; }
.identity-top { justify-content: space-between; gap: 10px; }
.identity-label { gap: 8px; font-size: 12px; color: #e1dfff; }
.identity-label .icon { width: 18px; height: 18px; }
.identity-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; padding: 3px 8px; border: 1px solid #ffffff38; border-radius: 20px; color: #e5e3ff; background: #ffffff0d; }
.identity-pill .icon { width: 12px; height: 12px; }
.identity-hash { display: flex; align-items: center; gap: 18px; font-size: 40px; line-height: 1.3; font-weight: 500; letter-spacing: 3px; margin-top: 23px; }
.icon-button { width: var(--control-height); height: var(--control-height); flex-shrink: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #b18ae5; border: 0; border-radius: var(--control-radius); transition: color .18s; }
.icon-button .icon { width: 16px; height: 16px; }
.icon-button:hover, .icon-button:focus-visible { color: var(--accent); }
.icon-button:active { color: var(--ink); }
.identity-copy { border: 1px solid #ffffff3b; color: #ddd9ff; }
.identity-card > p { font-size: 10px; color: #d1cdff; margin-top: 7px; }
.identity-card > p > span { margin: 0 5px; }
.identity-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #ffffff24; margin-top: 24px; padding: 13px 0; font-size: 9px; color: #d8d5ff; gap: 8px; }
.identity-bottom code { margin-left: 8px; font-size: 11px; letter-spacing: .6px; }
.identity-watermark { position: absolute; z-index: -1; right: -8px; bottom: -26px; transform: rotate(-20deg); color: #ffffff0b; }
.identity-watermark img { width: 185px; height: 185px; object-fit: contain; opacity: .13; }
.environment-card { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 20px 23px; }
.environment-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 15px; }
.environment-title > .icon { color: #b18ae5; width: 17px; height: 17px; }
.environment-title > span { margin-left: auto; font-weight: 400; }
.status-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; line-height: 1.5; white-space: nowrap; border-radius: 20px; padding: 3px 8px; }
.complete { background: var(--green-soft); color: var(--green); }
.pending { background: var(--primary-soft); color: var(--primary); }
.warning { background: #302619; color: #e4bc7d; }
.danger { background: #351c29; color: #f296a5; }
.fingerprint-card.has-anomaly { border-color: #814357; box-shadow: 0 0 0 1px #dc354511; }
.has-anomaly .card-heading h3 { color: #f296a5; }
.fingerprint-card.has-anomaly .module-icon { color: #f296a5; background: #351c29; }
.has-anomaly .fingerprint-strip code { color: #f296a5; }
.anomaly-notice { background: #351c29; border: 1px solid #814357; border-radius: 6px; padding: 12px; margin: 0 20px 16px; color: #f296a5; font-size: 11px; }
.anomaly-notice > strong { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.anomaly-notice .icon { width: 15px; height: 15px; }
.anomaly-notice ul { padding: 0 0 0 16px; margin: 7px 0; }
.anomaly-notice li + li { margin-top: 4px; }
.anomaly-notice > p { color: #bd8f9c; font-size: 10px; }
.data-row.field-anomaly, .nested-data > .field-anomaly { background: #351c29; border-radius: 5px; padding: 10px 7px; }
.field-anomaly > dt, .field-anomaly > dd { color: #f296a5 !important; }
.field-anomaly > dd > .boolean { color: #f296a5; font-weight: 600; }
.field-anomaly .boolean.yes:before { background: #f296a5; }
.field-alert-label { display: inline-block; color: #f296a5; background: #351c29; border-radius: 3px; padding: 1px 4px; font-size: 9px; margin-top: 4px; }
.fingerprint-card.has-attention { border-color: #695032; }
.attention-notice { color: #e4bc7d; background: #302619; border-color: #695032; }
.attention-notice > p { color: #bca57e; }
.reference-notice { margin: 0 20px 16px; padding: 11px 12px; border: 1px solid #2c233a; border-radius: 6px; background: #1b1427; color: #aa9cbe; font-size: 11px; }
.reference-notice > strong { color: #aa9cbe; font-weight: 500; }
.reference-notice > p { margin-top: 4px; line-height: 1.8; }
.neutral { background: #f1f2f5; color: #a295b5; }
.environment-card dl > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; margin-top: 11px; font-size: 11px; }
.environment-card dt { color: #a295b5; }
.environment-card dd { color: #c9bddb; overflow-wrap: anywhere; }
.ip-summary { display: flex; align-items: center; gap: 17px; margin-top: 17px; padding: 17px 21px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; }
.ip-summary-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.ip-summary-address { flex-shrink: 0; }
.ip-summary-address > span { display: block; font-size: 11px; color: #a295b5; }
.ip-summary-address small { margin-left: 7px; color: #8e7fa5; font-size: 10px; }
.ip-summary-address strong { display: block; font-size: 21px; line-height: 1.5; font-weight: 550; overflow-wrap: anywhere; font-family: Consolas, monospace; max-width: 380px; }
.ip-summary-location { min-width: 0; border-left: 1px solid var(--line); padding-left: 18px; }
.ip-summary-location > span { display: block; font-size: 12px; color: #c9bddb; overflow-wrap: anywhere; }
.ip-summary-location small { display: block; font-size: 11px; color: #a295b5; margin-top: 4px; }
.ip-details { margin-left: auto; font-size: 11px; color: var(--primary); white-space: nowrap; }
.ip-details .icon { width: 13px; height: 13px; }
.ip-summary > .spinner { margin-left: auto; flex-shrink: 0; }
.ip-summary-attention { border-color: #695032; }
.ip-summary-attention .ip-summary-icon { background: #302619; color: #e4bc7d; }
.ip-summary-attention .ip-details { color: #e4bc7d; }
.ip-summary-anomaly { border-color: #814357; background: #21121d; }
.ip-summary-anomaly .ip-summary-icon { background: #351c29; color: #f296a5; }
.ip-summary-anomaly .ip-summary-address strong, .ip-summary-anomaly .ip-details { color: #f296a5; }
.ip-controls { display: flex; align-items: center; gap: 8px; padding: 0 20px; flex-wrap: wrap; }
.ip-controls > label { font-size: 11px; color: #aa9cbe; }
.ip-controls select { height: var(--control-height); font-size: 13px; color: #c9bddb; border: 1px solid #2c233a; border-radius: var(--control-radius); padding: 0 12px; min-width: 0; max-width: 100%; background: var(--paper); }
.ip-controls .button { margin-left: auto; }
.ip-source-note { font-size: 10px; color: #a295b5; padding: 9px 20px 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 17px; }
.stat-card { padding: 18px 17px; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; display: flex; align-items: center; gap: 12px; position: relative; min-width: 0; }
.stat-icon { width: var(--control-height); height: var(--control-height); flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--control-radius); }
.indigo { color: #b18ae5; background: #2c2040; }
.teal { color: var(--primary); background: var(--primary-soft); }
.amber { color: #e4bc7d; background: #302619; }
.stat-card > div > span { display: block; font-size: 10px; color: #a295b5; margin-bottom: 2px; }
.stat-card strong { display: block; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.5px; }
.stat-card strong small { font-size: 9px; color: #8e7fa5; font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.stat-meta { font-size: 9px; color: #8e7fa5; position: absolute; top: 15px; right: 13px; }
.stat-detail { font-size: 10px; color: #a295b5; margin-left: auto; }
.stat-detail .icon { width: 12px; height: 12px; }
.info-banner { display: flex; align-items: center; gap: 12px; padding: 15px 17px; background: #2c2040; border: 1px solid #49345f; border-radius: 8px; margin-top: 19px; color: #c5a3ed; }
.info-banner > .icon { color: #b18ae5; width: 18px; }
.info-banner strong { display: block; color: #c5a3ed; font-size: 11px; font-weight: 500; }
.info-banner p > span { display: block; color: #b18ae5; font-size: 10px; margin-top: 2px; }
.info-banner > a { margin-left: auto; font-size: 10px; flex-shrink: 0; }
.info-banner > a .icon { width: 12px; height: 12px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 34px; margin-bottom: 17px; }
.toolbar-title { display: flex; align-items: center; gap: 12px; }
.toolbar-title h2 { font-size: 16px; font-weight: 650; }
.toolbar-title > span { font-size: 10px; color: #a295b5; }
.search-box { display: flex; align-items: center; gap: var(--control-gap); height: var(--control-height); padding: 0 12px; background: var(--paper); border: 1px solid #2c233a; border-radius: var(--control-radius); width: 256px; }
.search-box > .icon { width: 15px; height: 15px; color: #a295b5; }
.search-box:focus-within { border-color: #b18ae5; box-shadow: 0 0 0 3px #8b5cf620; }
.search-box input { height: 100%; padding: 0; border: 0; background: transparent; width: 100%; min-width: 0; font-size: 13px; outline: none; color: var(--ink); }
.search-box input::placeholder { color: #8e7fa5; }
.search-box kbd { border: 1px solid #2c233a; border-radius: 3px; color: #8e7fa5; font-size: 10px; padding: 0 4px; }
.filter-tabs { display: flex; gap: 4px; border-bottom: 1px solid #2c233a; margin-bottom: 27px; overflow-x: auto; }
.filter-tabs button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; white-space: nowrap; color: #a295b5; font-size: 12px; padding: 0 12px; }
.filter-tabs button:hover { color: var(--primary); background: #1b1427; }
.filter-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.filter-tabs button > span { background: #2c2040; border-radius: 4px; font-size: 9px; padding: 1px 5px; margin-left: 6px; }
.result-section { margin-bottom: 33px; scroll-margin-top: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.eyebrow { font-size: 8px; color: #8e7fa5; letter-spacing: 1.5px; font-weight: 500; }
.section-heading h2 { font-size: 18px; font-weight: 650; margin-top: 3px; }
.section-heading h2 > span { display: inline-block; vertical-align: middle; font-size: 9px; font-weight: 400; color: #a295b5; border: 1px solid #2c233a; line-height: 1.6; border-radius: 5px; padding: 0 6px; margin-left: 9px; }
.section-heading p { font-size: 10px; color: #a295b5; margin-top: 4px; }
.priority-note { background: #2c2040; border: 1px solid #49345f; padding: 3px 10px; border-radius: 20px; color: #b18ae5; font-size: 9px; }
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.fingerprint-card { display: flex; flex-direction: column; border: 1px solid #2c233a; border-radius: 10px; background: var(--paper); overflow: hidden; scroll-margin-top: 90px; min-width: 0; box-shadow: 0 2px 4px #1f294202; }
.card-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 20px 20px 0; }
.module-icon { display: flex; justify-content: center; align-items: center; width: var(--control-height); height: var(--control-height); border-radius: var(--control-radius); background: #2c2040; color: #b18ae5; flex-shrink: 0; }
.module-icon.network { background: var(--primary-soft); color: var(--primary); }
.module-icon.region { background: var(--primary-soft); color: var(--primary); }
.module-icon.device { background: var(--primary-soft); color: var(--primary); }
.module-icon.advanced { background: var(--primary-soft); color: var(--primary); }
.card-title { flex: 1; min-width: 120px; }
.card-title h3 { font-size: 14px; line-height: 1.4; font-weight: 650; }
.card-heading > .status-badge { margin-left: auto; }
.card-description { color: #a295b5; font-size: 10px; line-height: 1.8; padding: 12px 20px 16px; }
.fingerprint-strip { display: flex; align-items: center; gap: 4px; min-height: var(--control-height); }
.fingerprint-strip code { min-width: 0; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: .6px; color: #c5a3ed; overflow-wrap: anywhere; }
.values-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 20px 4px; font-size: 11px; color: #aa9cbe; }
.values-heading small { font-size: 10px; color: #8e7fa5; margin-left: 5px; }
.values-heading > span:last-child { font-size: 10px; color: #a295b5; }
.fingerprint-values { padding: 0 20px 12px; max-height: 380px; overflow: auto; scrollbar-width: thin; scrollbar-color: #49345f transparent; overscroll-behavior: auto; }
.data-row { display: grid; grid-template-columns: 32% minmax(0, 1fr); padding: 12px 0; gap: 15px; border-bottom: 1px solid #2c233a; align-items: start; }
.data-row:last-child { border-bottom: 0; }
.data-row > dt { color: #aa9cbe; font-size: 11px; overflow-wrap: anywhere; }
.data-row > dt > small { display: block; font-size: 8px; color: #8e7fa5; line-height: 1.6; margin-top: 2px; }
.data-row dd { min-width: 0; font-size: 11px; color: #c9bddb; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.8; }
.value-muted { color: #8e7fa5; font-size: 10px; }
.boolean { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.boolean:before { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; }
.boolean.yes:before { background: #b18ae5; }
.boolean.no:before { background: #8e7fa5; }
.hash-value { font-size: 11px; color: #c5a3ed; background: #1b1427; border-radius: 4px; padding: 2px 5px; }
.value-list { display: flex; flex-wrap: wrap; gap: 5px; max-height: 178px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.value-chip { display: inline-block; background: #1b1427; color: #aa9cbe; border: 1px solid #2c233a; border-radius: 4px; padding: 2px 6px; font-size: 9px; max-width: 100%; overflow-wrap: anywhere; }
.item-count { font-size: 8px; color: #8e7fa5; margin-top: 5px; display: block; }
.nested-data { display: grid; gap: 6px; border-left: 2px solid #2c233a; padding-left: 10px; }
.nested-data > div { min-width: 0; }
.nested-data dt { font-size: 9px; color: #a295b5; overflow-wrap: anywhere; }
.nested-data dt small { display: inline-block; font-size: 7px; margin-left: 4px; color: #8e7fa5; }
.nested-data dd { font-size: 10px; }
.nested-list { display: grid; gap: 10px; }
.nested-item { border-bottom: 1px dashed #2c233a; padding-bottom: 8px; }
.raw-value { margin: 7px 0 0; padding: 7px; border: 1px solid #2c233a; background: #1b1427; color: #8e7fa5; font-size: 8px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 65px; overflow: auto; scrollbar-width: thin; }
.render-preview { padding: 8px; border-radius: 5px; border: 1px solid #2c233a; background: repeating-conic-gradient(#251c34 0% 25%, #191220 0% 50%) 0 / 12px 12px; }
.render-preview img { display: block; max-width: 100%; height: auto; max-height: 90px; object-fit: contain; }
.render-preview > span { display: block; color: #8e7fa5; margin-top: 4px; font-size: 8px; }
.canvas-samples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 20px 16px; }
.canvas-samples figure { min-width: 0; text-align: center; }
.canvas-samples figure > div { height: 63px; border-radius: 5px; border: 1px solid #2c233a; background: #1b1427; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.canvas-samples img { max-width: 100%; max-height: 58px; object-fit: contain; }
.canvas-samples figcaption { font-size: 8px; color: #8e7fa5; margin-top: 6px; }
.highlight-value { display: flex; align-items: flex-start; gap: 12px; margin: 0 20px 16px; padding: 13px; min-height: 84px; background: #1b1427; border: 1px solid #2c233a; border-radius: 6px; }
.highlight-value > .icon { color: #b18ae5; margin-top: 5px; width: 25px; height: 25px; }
.highlight-value small { font-size: 8px; color: #8e7fa5; }
.highlight-value p { font-size: 10px; line-height: 1.8; color: #c9bddb; overflow-wrap: anywhere; margin-top: 3px; }
.audio-highlight { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 20px 16px; background: #1b1427; border-radius: 6px; border: 1px solid #2c233a; padding: 13px; min-height: 84px; }
.audio-highlight small { font-size: 9px; color: #8e7fa5; }
.audio-highlight p { font-family: Consolas, monospace; color: #c5a3ed; font-size: 17px; margin-top: 4px; overflow-wrap: anywhere; }
.waveform { display: flex; gap: 3px; height: 55px; align-items: center; opacity: .55; }
.waveform i { width: 3px; background: #b18ae5; border-radius: 3px; }
.font-highlight { display: flex; align-items: center; gap: 18px; min-height: 84px; margin: 0 20px 16px; background: #1b1427; border: 1px solid #2c233a; border-radius: 6px; padding: 9px 15px; }
.font-highlight > span { font-size: 31px; color: #b18ae5; letter-spacing: -2px; }
.font-highlight > span > span { font-size: 20px; margin-left: 5px; }
.font-highlight > div { display: flex; flex-direction: column; border-left: 1px solid #2c233a; padding-left: 18px; }
.font-highlight strong { font-size: 23px; font-weight: 500; color: #c5a3ed; line-height: 1.2; }
.font-highlight small { font-size: 8px; color: #8e7fa5; }
.font-highlight p { color: #8e7fa5; font-size: 8px; margin-left: auto; line-height: 1.9; }
.card-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; flex-shrink: 0; background: #1b1427; border-top: 1px solid #2c233a; padding: 9px 20px; color: #8e7fa5; font-size: 8px; letter-spacing: .2px; }
.unavailable { padding: 32px 20px; font-size: 11px; color: #8e7fa5; }
.is-loading { display: flex; gap: 10px; align-items: center; }
.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #49345f; border-top-color: var(--primary); display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 70px 20px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.empty-state > .icon { color: #b18ae5; width: 35px; height: 35px; margin-bottom: 14px; }
.empty-state h3 { font-size: 16px; font-weight: 500; }
.empty-state p { color: #8e7fa5; font-size: 12px; margin: 8px 0 18px; }
.about-panel { padding: 23px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); margin-top: 36px; }
.about-panel > div { display: flex; align-items: center; gap: 9px; }
.about-panel > div .icon { width: 18px; height: 18px; color: #b18ae5; }
.about-panel h2 { font-size: 13px; font-weight: 600; }
.about-panel p { font-size: 10px; color: #a295b5; margin-top: 12px; line-height: 1.9; }
.about-panel > a { font-size: 10px; color: #b18ae5; margin-top: 15px; }
.footer { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 0; color: #8e7fa5; font-size: 9px; gap: 10px; }
.footer strong { color: #b18ae5; font-weight: 500; }
.toast { pointer-events: none; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; position: fixed; bottom: 30px; left: 50%; z-index: 100; color: white; background: #30334c; border: 1px solid #ffffff20; border-radius: 9px; padding: 11px 22px; font-size: 12px; box-shadow: 0 6px 30px #151d3320; max-width: calc(100vw - 30px); }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.loading-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 30px; }
.loading-screen h1 { font-size: 25px; }
.loading-screen p { font-size: 13px; color: var(--muted); }
.loading-screen .spinner { margin-top: 10px; width: 24px; height: 24px; }
.loading-logo { width: 76px; height: 76px; display: block; object-fit: contain; }
.noscript-note { position: fixed; top: 15px; left: 10%; width: 80%; background: #302619; padding: 15px; border-radius: 10px; text-align: center; }
@media (min-width: 1500px) {
  :root { --content-gutter: 48px; }
  .main-content { padding-block: 36px 24px; }
  .page-heading { margin-bottom: 30px; }
  .overview-grid { grid-template-columns: 1.3fr 1fr; }
  .identity-hash { font-size: 46px; }
  .identity-bottom { margin-top: 28px; }
}
@media (max-width: 1190px) {
  :root { --content-gutter: 25px; --sidebar-gutter: 12px; }
  .app-layout { grid-template-columns: 196px minmax(0, 1fr); }
  .sidebar { padding-block: 28px; }
  .main-content { padding-block: 27px 20px; }
  .nav-link { padding: 12px 10px; gap: 9px; font-size: 12px; }
  h1 { font-size: 25px; }
  .page-actions { gap: 7px; }
  .button { padding-inline: 12px; }
  .identity-card { padding: 20px 20px 0; }
  .identity-hash { font-size: 35px; }
  .identity-pill { font-size: 8px; padding: 3px 6px; }
  .stat-card { padding: 16px 13px; gap: 9px; }
  .stat-meta { display: none; }
  .stat-card strong { font-size: 22px; }
  .stat-card strong small { margin-left: 5px; font-size: 8px; }
  .stat-detail { font-size: 8px; }
  .card-heading { padding: 17px 16px 0; gap: 9px; }
  .card-description { padding: 10px 16px 14px; }
  .card-heading > .status-badge { font-size: 8px; padding: 3px 6px; }
  .card-title h3 { font-size: 13px; }
  .canvas-samples, .highlight-value, .audio-highlight, .font-highlight { margin-left: 16px; margin-right: 16px; }
  .fingerprint-values { padding: 0 16px 12px; }
  .data-row { grid-template-columns: 30% minmax(0, 1fr); gap: 12px; }
  .waveform { gap: 2px; }
  .waveform i { width: 2px; }
  .audio-highlight p { font-size: 14px; }
  .font-highlight { gap: 10px; padding: 12px; }
  .font-highlight > div { padding-left: 10px; }
  .font-highlight p { display: none; }
  .filter-tabs button { padding-left: 10px; padding-right: 10px; font-size: 10px; }
}
@media (max-width: 960px) {
  :root { --content-gutter: 28px; --sidebar-gutter: 28px; }
  .app-layout { display: block; }
  .sidebar { display: none; }
  .main-content { padding-block: 25px; }
  .topbar { height: 66px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-caption { font-size: 11px; }
  .topbar-right { gap: 18px; }
  html { scroll-padding-top: 82px; }
}
@media (max-width: 640px) {
  :root { --content-gutter: 16px; --sidebar-gutter: 16px; }
  .ip-summary { flex-wrap: wrap; gap: 10px; padding: 15px; }
  .ip-summary-address { min-width: 0; flex: 1; }
  .ip-summary-address strong { font-size: 20px; }
  .ip-summary-location { width: 100%; order: 3; border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
  .ip-summary .ip-details { font-size: 10px; }
  .ip-controls { padding: 0 19px; gap: 7px; }
  .ip-controls select { flex: 1; }
  .ip-controls .button { margin-left: 0; }
  .topbar { height: 62px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand-caption, .brand-divider, .topbar-right .text-link { display: none; }
  .local-badge { font-size: 10px; }
  .main-content { padding-block: 20px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .breadcrumb { margin-bottom: 13px; font-size: 10px; }
  h1 { font-size: 25px; letter-spacing: -.6px; }
  .page-heading p { font-size: 11px; margin-top: 7px; }
  .page-actions { width: 100%; padding-top: 0; gap: 10px; }
  .page-actions .button { flex: 1 1 auto; }
  .overview-grid { grid-template-columns: 1fr; gap: 13px; }
  .identity-card { padding: 20px 22px 0; }
  .identity-hash { font-size: 38px; margin-top: 18px; }
  .identity-bottom { margin-top: 20px; padding: 12px 0; }
  .identity-pill { font-size: 9px; }
  .environment-card { padding: 18px 20px; }
  .environment-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  .environment-card dl > div { display: flex; flex-direction: column; gap: 3px; margin: 0; }
  .environment-card dd { font-size: 11px; }
  .stat-grid { gap: 8px; margin-top: 13px; }
  .stat-card { display: block; padding: 13px 10px; }
  .stat-icon { margin-bottom: 12px; }
  .stat-card > div > span { font-size: 9px; }
  .stat-card strong { font-size: 23px; }
  .stat-card strong small { font-size: 8px; margin-left: 4px; }
  .stat-card:nth-child(n+2) strong small { display: block; margin: 4px 0 0; font-size: 8px; }
  .stat-detail { position: absolute; top: 15px; right: 10px; font-size: 8px; }
  .info-banner { margin-top: 14px; padding: 13px; align-items: flex-start; gap: 9px; }
  .info-banner > .icon { width: 15px; height: 15px; margin-top: 3px; }
  .info-banner p > span { font-size: 9px; line-height: 1.9; margin-top: 4px; }
  .info-banner > a { display: none; }
  .results-toolbar { flex-wrap: wrap; margin-top: 27px; gap: 14px; }
  .toolbar-title h2 { font-size: 16px; }
  .search-box { width: 100%; }
  .filter-tabs { margin-bottom: 21px; gap: 3px; padding-bottom: 2px; }
  .filter-tabs button { padding-inline: 10px; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .section-heading h2 { font-size: 18px; }
  .section-heading p { font-size: 10px; line-height: 1.8; }
  .priority-note { flex-shrink: 0; font-size: 8px; }
  .card-heading { padding: 20px 19px 0; }
  .card-title h3 { font-size: 15px; }
  .card-description { padding: 12px 19px 15px; }
  .fingerprint-values { padding: 0 19px 12px; }
  .canvas-samples, .highlight-value, .audio-highlight, .font-highlight { margin-left: 19px; margin-right: 19px; }
  .data-row { grid-template-columns: 33% minmax(0, 1fr); gap: 13px; }
  .value-list { max-height: 190px; }
  .about-panel { margin-top: 22px; padding: 19px; }
  .footer { font-size: 8px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Keep primary data comfortably readable; small type is reserved for metadata. */
.page-heading p, .nav-link { font-size: 13px; }
.environment-card dl > div, .data-row > dt, .data-row dd { font-size: 12px; }
.card-description, .section-heading p { font-size: 12px; color: #aa9cbe; }
.status-badge, .value-chip, .value-muted { font-size: 11px; }
.data-row > dt > small, .nested-data dt { font-size: 10px; color: #a295b5; }
.nested-data dd, .environment-title { font-size: 12px; }
.nested-data dt small { font-size: 9px; }
.info-banner strong { font-size: 12px; }
.info-banner p > span, .about-panel p { font-size: 11px; color: #aa9cbe; }
.toolbar-title > span, .filter-tabs button { font-size: 12px; }
.raw-value { font-size: 10px; color: #aa9cbe; }
.font-highlight small, .canvas-samples figcaption, .render-preview > span, .item-count { font-size: 10px; }
.audio-highlight p { font-size: 17px; }
.audio-highlight > div:first-child { min-width: 0; }
.waveform { flex-shrink: 0; max-width: 110px; overflow: hidden; }
.card-foot { font-size: 10px; }
.stat-card > div > span { font-size: 11px; }
.stat-card strong small { font-size: 10px; }
@media (max-width: 1190px) {
  .card-heading > .status-badge { font-size: 10px; }
  .values-heading { padding-left: 16px; padding-right: 16px; }
  .audio-highlight p { font-size: 14px; }
}
@media (max-width: 640px) {
  .values-heading { padding-left: 19px; padding-right: 19px; }
  .fingerprint-values { max-height: 400px; }
  .card-description, .section-heading p { font-size: 11px; }
  .stat-card > div > span { font-size: 10px; }
  .stat-card strong small { font-size: 9px; }
  .card-heading > .status-badge { font-size: 10px; }
  .info-banner p > span { font-size: 10px; }
}

/* Dark purple accents stay readable on the deeper surfaces. */
.brand-light, .local-badge, .text-link:hover, .ip-details, .heading-dot { color: var(--accent); }
.nav-link.active { color: #e8d8ff; }
.nav-link:hover, .filter-tabs button.active, .filter-tabs button:hover { color: var(--accent); }
.module-icon, .module-icon.network, .module-icon.region, .module-icon.device, .module-icon.advanced,
.ip-summary-icon, .teal, .indigo { color: var(--accent); }
.sidebar-tip > .icon { color: var(--accent); }
.button-primary { background: linear-gradient(110deg, #8950ed, #9560f3); }
.button-primary:hover { background: linear-gradient(110deg, #9866f2, #a274f8); }
.button-secondary:hover, .search-box:focus-within { border-color: #73509b; }
.fingerprint-strip code, .hash-value { color: #ccb0f4; }
.reference-notice { background: #1a1426; }
.info-banner { background: #21182f; }
.card-foot { background: #110d1a; }
.raw-value { background: #100c18; }
.ip-controls select { color-scheme: dark; }
.noscript-note { color: #e4bc7d; }
::selection { background: #7445ac; color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #514061 transparent; }
/* Transparent fingerprint images need a neutral backing to preserve black text. */
.canvas-samples img, .render-preview img { background: #e9e3f0; border-radius: 3px; }

/* Shared language controls and layouts that allow translated copy to wrap. */
.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; }
.language-control { display: inline-flex; flex-shrink: 0; align-items: center; }
.language-control select { height: var(--control-height); max-width: 136px; padding: 0 28px 0 12px; border: 1px solid var(--line); border-radius: var(--control-radius); color: var(--ink); background: #1b1428; font: inherit; cursor: pointer; color-scheme: dark; }
.language-control select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.topbar-right { gap: 20px; }
.topbar-right .text-link { white-space: nowrap; }
.card-title h3, .section-heading h2, .nav-link > span:first-of-type { overflow-wrap: anywhere; }
.card-heading > .status-badge { white-space: normal; text-align: center; max-width: 45%; }
.card-description { overflow-wrap: anywhere; }
.stat-card > div { min-width: 0; }
.stat-card > div > span { white-space: normal; overflow-wrap: anywhere; }
html:lang(th), html:lang(km), html:lang(hi) { line-height: 1.8; }
@media(max-width:1250px) { .brand-caption, .brand-divider { display: none; } .topbar-right .local-badge { display: none; } }
@media(max-width:640px) {
  html { scroll-padding-top: 145px; }
  .topbar { height: auto; min-height: 62px; padding-block: 14px; gap: 10px; flex-wrap: wrap; }
  .topbar-right { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
  .topbar-right .text-link { display: inline-flex; font-size: 11px; }
  .language-control select { max-width: 116px; font-size: 11px; }
}
