:root {
  color-scheme: dark;
  --ink: #edf5ff; --muted: #a5bacf; --canvas: #050b12; --paper: #0b1724; --navy: #06101c;
  --teal: #08bdf3; --teal-dark: #5ad5ff; --teal-pale: #07364c; --line: #22394c; --line-strong: #4c6c85;
  --amber: #f8ce83; --amber-pale: #342914; --red: #ffadb9; --red-pale: #3b1f2b;
  --radius: 10px; --shadow: 0 8px 30px rgb(0 0 0 / 15%); --appbar-height: 84px; --rail-width: 232px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, summary { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
button:disabled { cursor: default; opacity: .5; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(25px,3vw,36px); line-height: 1.16; letter-spacing: -.025em; }
h2 { font-size: 23px; line-height: 1.25; }
h3 { font-size: 17px; line-height: 1.35; }
[hidden], .detail-panel[hidden] { display: none !important; }
:is(a,button,input,select,summary,[tabindex]):focus-visible { outline: 3px solid #0874ad; 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; }
.skip-link { position: fixed; z-index: 120; left: 16px; top: -90px; padding: 12px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; gap: 22px; min-height: 84px; padding: 12px 24px; background: var(--navy); color: white; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: white; text-decoration: none; }
.brand-banner { display: block; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: white; }
.brand-copy { display: grid; }
.brand-copy strong { font-size: 23px; letter-spacing: -.025em; line-height: 1.2; }
.brand-copy small { font-size: 12px; color: #d0e1e4; }
.primary-nav { display: flex; flex: 1; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 11px; color: #e4f0f1; border-radius: 8px; font-size: 14px; text-decoration: none; }
.primary-nav a:hover { background: #254855; }
.primary-nav .community-link { color: #102d39; background: #9be9d8; font-weight: 700; }
.primary-nav .community-link:hover { background: #c7f5eb; }
.topbar-actions { display: flex; flex: 0 0 auto; }
.topbar :focus-visible { outline-color: #fff; }
.workspace { width: 100%; margin: 0; min-width: 0; }
.catalog-pane { width: min(1380px,calc(100% - 48px)); min-width: 0; margin: auto; padding-bottom: 36px; container: catalog / inline-size; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.8fr); align-items: center; gap: 24px; padding: 26px 0 20px; }
.eyebrow { margin: 0 0 8px; color: var(--teal-dark); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hero-description { margin-bottom: 0; max-width: 680px; color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0; }
.stats div { min-width: 0; }
.stats dt { font-size: 23px; font-weight: 750; color: var(--navy); }
.stats dd { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.search-shell { position: sticky; z-index: 15; top: calc(var(--appbar-height) + 8px); padding: 14px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.search-form { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 8px; }
.find-bin-link { min-height: 44px; text-align: center; font-size: 13px; }
.search-field { display: flex; min-width: 0; position: relative; align-items: center; }
.search-field input { width: 100%; min-width: 0; height: 46px; padding: 8px 38px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; }
.search-icon { position: absolute; left: 12px; color: var(--teal-dark); font-size: 24px; pointer-events: none; }
.key-hint { position: absolute; right: 12px; font-size: 13px; color: var(--muted); pointer-events: none; }
.primary-button,.secondary-button,.icon-button,.text-button,.download-button { display: inline-flex; gap: 7px; justify-content: center; align-items: center; min-height: 44px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; line-height: 1.3; text-decoration: none; }
.primary-button { background: var(--teal-dark); color: white; border-color: var(--teal-dark); }
.primary-button:hover { background: #004e46; }
.secondary-button { color: var(--ink); border-color: var(--line-strong); background: white; }
.secondary-button:hover { background: #eaf3f2; }
.text-button { color: var(--teal-dark); background: transparent; }
.text-button:hover { background: var(--teal-pale); }
.icon-button { flex: 0 0 auto; width: 44px; padding: 0; border-color: var(--line-strong); background: #fff; color: var(--ink); font-size: 27px; font-weight: 400; }
.filter-count { min-width: 22px; height: 22px; padding: 1px 6px; border-radius: 20px; background: var(--teal-dark); color: #fff; font-size: 12px; }
.filters { display: none; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: end; padding-top: 14px; }
.filters.open { display: grid; }
.filters label,.sort-control { display: grid; gap: 5px; min-width: 0; }
.filters label > span,.sort-control > span { color: var(--muted); font-size: 12px; font-weight: 650; }
.filters input,.filters select,.sort-control select,.eeprom-filter { width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 8px; }
.active-filters { display: flex; gap: 7px; flex-wrap: wrap; padding-top: 10px; }
.active-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px; color: var(--ink); background: var(--teal-pale); border: 1px solid #94b9b0; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.active-filter-label { font-weight: 700; }
.active-filter-remove { font-size: 20px; }
.results-section { min-width: 0; padding-top: 22px; }
.results-toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.results-toolbar h2 { margin: 0 0 5px; font-size: 23px; }
.results-toolbar p { margin: 0; font-size: 13px; color: var(--muted); }
.toolbar-actions { display: flex; gap: 8px; align-items: end; flex: 0 0 auto; }
.sort-control select { max-width: 205px; }
.export-button { font-size: 13px; white-space: nowrap; }
.catalog-pages-link { color: var(--teal-dark); font-size: 13px; }
.catalog-compare { min-width: 0; margin: 0 0 14px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.catalog-compare-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.catalog-compare h3 { margin: 0; font-size: 14px; }
.catalog-compare p { margin: 5px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.catalog-compare-heading p { margin: 0; }
.catalog-compare-items { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; list-style: none; }
.catalog-compare-items li { min-width: 0; max-width: 100%; }
.catalog-compare-remove,.result-compare { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 7px 10px; color: var(--teal-dark); background: transparent; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.catalog-compare-remove span:first-child { min-width: 0; overflow-wrap: anywhere; }
.catalog-compare-remove span:last-child { font-size: 19px; }
.catalog-compare-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.catalog-compare-actions a,.catalog-compare-actions button { font-size: 12px; }
.catalog-compare-actions [aria-disabled="true"],.result-compare[aria-disabled="true"] { opacity: .55; cursor: default; }
.result-compare[aria-pressed="true"] { color: var(--ink); background: var(--teal-pale); }
.result-compare { margin-top: 4px; }
.catalog-footer { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 20px 0 0; font-size: 12px; }
.catalog-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.table-wrap { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.results-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.results-table th { padding: 12px; font-size: 12px; text-align: left; color: var(--muted); background: #edf3f3; overflow-wrap: anywhere; }
.results-table th:first-child { width: 43%; }
.results-table th:nth-child(2) { width: 25%; }
.results-table th:nth-child(3) { width: 32%; }
.results-table td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; min-width: 0; }
.results-table tbody tr { cursor: pointer; }
.results-table tbody tr:hover { background: #f0f7f4; }
.results-table tbody tr[aria-current="true"] { background: #e5f5ef; box-shadow: inset 4px 0 var(--teal-dark); }
.results-table tr:focus-visible { outline-offset: -3px; }
.id-link { font-size: 13px; font-weight: 700; }
.primary-cell { display: grid; min-width: 0; gap: 2px; }
.primary-cell small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.primary-cell strong { font-size: 14px; overflow-wrap: anywhere; }
.result-reference { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; }
.result-reference .id-link { min-height: 32px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; }
.result-source,.result-lock { color: var(--muted); font-size: 11px; }
.result-lock { display: inline-flex; align-items: center; }
.results-access-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 16px; margin: 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.results-access-notice a { display: inline-flex; align-items: center; min-height: 44px; }
.result-metadata { min-width: 0; color: var(--muted); font-size: 12px; }
.result-metadata summary { min-height: 44px; padding: 12px 0; overflow-wrap: anywhere; }
.result-metadata[open] summary { color: var(--ink); }
.result-metadata-fields { display: grid; gap: 5px; margin: 0 0 8px; }
.result-metadata-fields dt { margin-top: 8px; font-size: 11px; }
.result-metadata-fields dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.result-hash code { display: block; white-space: normal; overflow-wrap: anywhere; font-size: 11px; }
.result-copy { margin-top: 8px; }
.clipboard-fallback { position: fixed; top: 0; left: 0; }
.catalog-dump-explanation { max-width: 700px; margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.record-type-label { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.serial-value { display: block; overflow-wrap: anywhere; font-size: 13px; }
.serial-value small { display: block; color: var(--muted); font-size: 12px; }
.hash-value { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); white-space: nowrap; }
.result-integrity { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; }
.result-integrity::before { content: "✓"; display: inline-grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; line-height: 1; }
.result-integrity.good { color: #006457; }
.result-integrity.bad { color: var(--red); }
.result-integrity.bad::before { content: "!"; }
.result-integrity.warning { color: var(--amber); }
.result-integrity.warning::before { content: "?"; }
.row-actions { display: flex; justify-content: center; }
.row-chevron { font-size: 24px; color: var(--teal-dark); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 20px; font-size: 14px; }
.status-notice,.record-caution { padding: 12px 14px; margin-bottom: 16px; color: #68410f; background: var(--amber-pale); border: 1px solid #d5b674; border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.empty-state { padding: 32px 18px; text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state > span { font-size: 35px; color: var(--teal-dark); }
.empty-state p { color: var(--muted); }
.error-state { border-color: #c98994; }
.loading-grid { display: grid; gap: 8px; }
.loading-grid div { height: 76px; background: linear-gradient(90deg,#e5eceb,#f8fbfa,#e5eceb); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.workspace.detail-open { display: grid; grid-template-columns: minmax(0,45%) minmax(0,55%); height: calc(100dvh - var(--appbar-height)); min-height: 0; overflow: hidden; }
.workspace.detail-open .catalog-pane { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 16px 18px 28px; overflow: auto; border-right: 1px solid var(--line); overscroll-behavior: contain; }
.workspace.detail-open .hero { padding: 0 0 16px; display: block; }
.workspace.detail-open .hero .eyebrow,.workspace.detail-open .hero h1,.workspace.detail-open .stats { display: none; }
.workspace.detail-open .hero-description { font-size: 13px; }
.workspace.detail-open .search-shell { top: 0; }
.workspace.detail-open .results-toolbar h2 { font-size: 20px; }
.detail-dialog { position: relative; min-width: 0; min-height: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #f8fafa; container: inspector / inline-size; }
.detail-shell { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.detail-back { display: none; }
.detail-header { display: flex; align-items: start; gap: 14px; padding: 20px; min-width: 0; background: white; border-bottom: 1px solid var(--line); }
.detail-heading { flex: 1; min-width: 0; }
.detail-header h2 { margin: 0 0 10px; overflow-wrap: anywhere; font-size: clamp(20px,2vw,28px); }
.detail-header p:last-child { margin-bottom: 0; }
.detail-meta-list { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 15px; }
.detail-meta-item { display: grid; min-width: 0; }
.detail-meta-item small { color: var(--muted); font-size: 12px; }
.detail-meta-item strong { font-size: 13px; overflow-wrap: anywhere; }
.detail-header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.download-group { display: flex; }
.download-menu { position: relative; }
.download-menu summary { list-style: none; }
.download-menu summary::-webkit-details-marker { display: none; }
.download-menu-trigger { min-height: 44px; white-space: nowrap; }
.download-icon { font-size: 21px; }
.download-chevron { font-size: 16px; }
.download-menu-list { position: absolute; z-index: 50; top: calc(100% + 7px); right: 0; width: 220px; max-width: calc(100vw - 24px); padding: 6px; background: white; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 30px rgb(16 45 57 / 20%); }
.download-menu-item { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 8px; min-height: 48px; align-items: center; padding: 10px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.download-menu-item:hover { background: var(--teal-pale); }
.download-menu-item strong { color: var(--teal-dark); font-size: 13px; }
.download-menu-item span { font-size: 12px; color: var(--muted); }
.detail-tabs { display: flex; flex: 0 0 auto; gap: 0; min-width: 0; padding: 0 12px; overflow-x: auto; scrollbar-width: thin; background: white; border-bottom: 1px solid var(--line); }
.detail-tabs button { flex: 0 0 auto; min-height: 48px; padding: 8px 12px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-size: 13px; font-weight: 650; white-space: nowrap; }
.detail-tabs button[aria-selected="true"] { color: var(--teal-dark); border-bottom-color: var(--teal-dark); }
.detail-tabs button:focus-visible { outline-offset: -4px; }
.detail-content { min-width: 0; min-height: 0; padding: 20px; overflow: auto; overscroll-behavior: contain; }
.detail-panel { min-width: 0; max-width: 100%; }
.detail-loading { padding: 40px 16px; color: var(--muted); }
.detail-footer { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; padding: 6px 10px max(6px,env(safe-area-inset-bottom)); min-width: 0; background: white; border-top: 1px solid var(--line); }
.detail-footer button { min-width: 0; min-height: 44px; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: var(--teal-dark); font-size: 12px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.detail-footer button:hover { background: var(--teal-pale); }
.overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; min-width: 0; }
.info-card,.detail-section { min-width: 0; max-width: 100%; padding: 15px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.info-card.wide,.info-card.full { grid-column: 1 / -1; }
.info-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.info-value { display: block; color: var(--ink); font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.info-subvalue { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.specification-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; min-width: 0; }
.specification-card { padding: 12px; min-width: 0; }
.specification-card .info-value { font-size: 14px; }
.section-note,.address-note { margin: 10px 0 16px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.integrity-good,.integrity-warning,.integrity-bad { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 6px; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.integrity-good { color: #005f4e; background: var(--teal-pale); }
.integrity-warning { color: var(--amber); background: var(--amber-pale); }
.integrity-bad { color: var(--red); background: var(--red-pale); }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 9px; color: #334f59; background: #edf2f2; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; overflow-wrap: anywhere; }
.chip.positive { color: #005f4e; background: var(--teal-pale); border-color: #97c8b9; }
.chip.negative { color: var(--muted); background: #f1f4f4; }
.detail-section { margin-bottom: 14px; }
.archive-community { margin-top: 18px; }
.archive-report { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.archive-report p { margin: 6px 0; }
.archive-report-form { display: grid; gap: 12px; margin-top: 18px; }
.archive-report-form label { display: grid; gap: 5px; font-size: 13px; }
.archive-report-form input,.archive-report-form select,.archive-report-form textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 10px; font: inherit; color: var(--ink); background: white; }
.archive-report-form textarea { resize: vertical; }
.detail-section h3 { margin-bottom: 12px; }
.compat-group + .compat-group { margin-top: 20px; }
.compat-group h3 span { color: var(--muted); font-size: 13px; }
.eeprom-map-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.eeprom-map-heading h3 { margin-bottom: 0; }
.eeprom-map-total { font-size: 13px; color: var(--muted); }
.eeprom-map-track { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
.eeprom-map-segment { display: grid; gap: 5px; padding: 12px 6px; border: 1px solid #b7d5cb; border-radius: 6px; background: #e5f5ef; min-width: 0; text-align: center; overflow-wrap: anywhere; }
.eeprom-map-segment strong { font-size: 12px; }
.eeprom-map-segment span { font-size: 12px; color: var(--muted); }
.eeprom-map-section .address-note:last-child { margin-bottom: 0; }
.eeprom-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.eeprom-filter { max-width: 380px; }
.eeprom-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.eeprom-wrap { width: 100%; min-width: 0; overflow: auto; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.eeprom-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.eeprom-table th { padding: 10px; color: var(--muted); background: #edf3f3; text-align: left; font-size: 12px; }
.eeprom-table td { padding: 10px; border-top: 1px solid var(--line); vertical-align: top; font-size: 13px; }
.eeprom-table td:nth-child(3) { font-weight: 650; }
.mono,.hash-value,.hex-view,.ascii-view,.raw-json,.eeprom-table td:first-child,.eeprom-table td:nth-child(2) { font-family: "SFMono-Regular",Consolas,"Liberation Mono",monospace; }
.hex-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; min-width: 0; }
.code-panel { min-width: 0; overflow: hidden; color: #e1eef0; background: var(--navy); border-radius: var(--radius); }
.code-panel header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #51717c; font-size: 13px; }
.copy-button { min-height: 44px; padding: 8px 12px; color: #b5f0e2; background: transparent; border: 1px solid #8eafb8; border-radius: 7px; font-size: 13px; }
.code-panel :focus-visible { outline-color: #fff; }
.hex-view,.ascii-view,.raw-json { margin: 0; padding: 14px; max-width: 100%; overflow: auto; font-size: 13px; line-height: 1.8; tab-size: 2; }
.hex-view,.ascii-view { max-height: 420px; white-space: pre; }
.raw-section { min-width: 0; max-width: 100%; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.raw-section summary { padding: 13px 16px; font-size: 14px; font-weight: 650; }
.raw-json { max-height: 480px; background: var(--navy); color: #e1eef0; white-space: pre-wrap; overflow-wrap: anywhere; }
.unavailable-card { margin: 20px 0; padding: 24px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow-wrap: anywhere; }
.status-code { display: inline-flex; margin-bottom: 12px; padding: 4px 8px; background: var(--amber-pale); color: var(--amber); border-radius: 6px; font-size: 13px; }
.toast { position: fixed; z-index: 100; right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); max-width: min(380px,calc(100vw - 32px)); padding: 13px 16px; color: white; background: var(--navy); border: 1px solid #6b919f; border-radius: 10px; box-shadow: var(--shadow); }
@container catalog (max-width: 900px) {
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .results-toolbar { align-items: stretch; flex-direction: column; gap: 10px; }
  .toolbar-actions { flex-wrap: wrap; }
  .sort-control { flex: 1; }
  .sort-control select { max-width: none; }
}
@container catalog (max-width: 720px) {
  .table-wrap { background: transparent; border: 0; }
  .results-table,.results-table tbody,.results-table tr,.results-table td { display: block; width: 100%; }
  .results-table thead { display: none; }
  .results-table tbody { display: grid; gap: 10px; }
  .results-table tbody tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(100px,.6fr); grid-template-areas: "identity integrity" "metadata metadata"; gap: 0 12px; padding: 13px 15px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
  .results-table td { min-width: 0; padding: 0; border: 0; }
  .results-table td:nth-child(1) { grid-area: identity; }
  .results-table td:nth-child(2) { grid-area: integrity; justify-self: end; width: auto; max-width: 190px; }
  .results-table td:nth-child(3) { grid-area: metadata; }
  .result-metadata-fields { padding: 0 12px 12px; border-left: 1px solid var(--line); }
  .primary-cell { grid-template-columns: minmax(0,1fr); }
  .primary-cell strong { font-size: 15px; }
}
@container catalog (max-width: 500px) {
  .search-form { grid-template-columns: minmax(0,1fr) auto; }
  .filter-toggle { grid-column: auto; }
  .key-hint { display: none; }
  .search-field input { padding-right: 10px; }
  .filters { grid-template-columns: minmax(0,1fr); }
  .pagination { gap: 8px; justify-content: space-between; font-size: 12px; }
  .pagination .secondary-button { padding: 8px 10px; }
}
@container inspector (max-width: 650px) {
  .detail-header { flex-wrap: wrap; }
  .detail-header-actions { width: 100%; justify-content: space-between; }
  .detail-header-actions .download-group { order: 1; }
  .detail-header-actions .icon-button { order: 2; }
  .download-menu-list { left: 0; right: auto; }
  .detail-meta-item:nth-child(n+2) { display: none; }
  .specification-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@container inspector (max-width: 420px) {
  .detail-header { padding: max(12px,env(safe-area-inset-top)) 14px 12px; gap: 10px; }
  .detail-header h2 { font-size: 21px; margin-bottom: 6px; }
  .detail-header .eyebrow { margin-bottom: 4px; }
  .detail-content { padding: 14px; }
  .overview-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .info-card { padding: 12px; }
  .specification-grid { gap: 6px; }
  .specification-card { padding: 10px; }
  .eeprom-map-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .eeprom-toolbar { flex-wrap: wrap; }
  .record-caution { font-size: 12px; }
}
@media (max-width: 1100px) {
  .topbar { gap: 14px; padding: 10px 18px; }
  .brand-copy small { display: none; }
  .primary-nav a { font-size: 13px; padding: 8px; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 14px; }
}
@media (max-width: 899px) {
  .topbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; padding: 8px 16px; }
  .brand-banner { width: 44px; height: 44px; }
  .brand-copy strong { font-size: 22px; }
  .topbar-actions { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; justify-content: flex-start; gap: 2px; flex-wrap: nowrap; min-width: 0; }
  .primary-nav a { justify-content: center; min-height: 40px; padding: 6px 9px; font-size: 13px; white-space: nowrap; }
  .catalog-pane { width: calc(100% - 28px); }
  .hero { padding: 20px 0 16px; }
  .hero .eyebrow { display: none; }
  .stats { gap: 12px; }
  .stats dt { font-size: 20px; }
  .workspace.detail-open { display: block; height: auto; overflow: visible; }
  .workspace.detail-open .catalog-pane { width: calc(100% - 28px); height: auto; margin: auto; padding: 0 0 36px; overflow: visible; border: 0; }
  .workspace.detail-open .hero { padding: 20px 0 16px; }
  .detail-dialog { position: fixed; z-index: 80; inset: 0; width: 100%; height: 100dvh; min-height: 0; }
  body.detail-overlay-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .topbar { padding-inline: 12px; }
  .primary-nav { justify-content: space-between; }
  .primary-nav a { font-size: 12px; padding-inline: 5px; white-space: normal; text-align: center; }
  .primary-nav .community-link { max-width: 132px; }
  .hero-description { font-size: 13px; }
  .stats { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .stats div { display: inline-flex; align-items: baseline; gap: 5px; }
  .stats div:nth-child(n+3) { display: none; }
  .stats dt { font-size: 17px; }
  .stats dd { font-size: 12px; }
  .search-shell { padding: 10px; }
  .search-field input,.filters input,.filters select,.sort-control select,.eeprom-filter,.archive-report-form input,.archive-report-form select,.archive-report-form textarea { font-size: 16px; }
  .results-toolbar h2 { font-size: 21px; }
  .export-button { font-size: 12px; padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (max-width: 360px) {
  .primary-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .primary-nav a { min-width: 0; }
  .primary-nav .community-link { max-width: none; }
}

/* BinPapa workbench: original mascot, a focused catalog and a persistent inspector. */
body { background: radial-gradient(ellipse at 55% 0,#0b2033 0,transparent 55%),var(--canvas); }
:is(a,button,input,select,summary,[tabindex]):focus-visible { outline-color: var(--teal); }
.skip-link { color: var(--ink); background: var(--paper); border: 1px solid var(--teal); }
.topbar { background: #07111c; border-bottom: 1px solid var(--line); }
.brand-banner { background: #020607; border: 1px solid var(--line); }
.brand-copy small { color: var(--muted); }
.primary-nav a { color: #b5c9df; }
.primary-nav a:hover { background: #13283b; color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); background: #0c2b43; box-shadow: inset 3px 0 var(--teal); }
.primary-nav .community-link { color: #b5c9df; background: transparent; font-weight: 500; }
.primary-nav .community-link:hover { background: #13283b; color: var(--ink); }
.rail-contribute { display: none; }
.workspace-controls { width: min(1380px,calc(100% - 48px)); margin: 0 auto; min-width: 0; }
.hero { grid-template-columns: minmax(0,1fr) minmax(300px,.8fr); }
.stats dt { color: var(--ink); font-variant-numeric: tabular-nums; }
.search-shell { position: relative; top: auto; padding: 0; border: 0; background: transparent; box-shadow: none; }
.search-field input { background: #091725; border-color: var(--line-strong); }
.search-field input::placeholder { color: #91abc3; opacity: 1; }
.key-hint { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; }
.primary-button { background: var(--teal); border-color: var(--teal); color: #00131c; }
.primary-button:hover { background: #63d9ff; border-color: #63d9ff; }
.secondary-button,.icon-button,.filters input,.filters select,.sort-control select,.eeprom-filter { background: #0d1e30; }
.secondary-button:hover { background: #18324a; }
.filter-count { color: #00131c; background: var(--teal); }
.active-filter { border-color: #167397; }
.table-wrap,.empty-state,.info-card,.detail-section,.raw-section,.unavailable-card,.eeprom-wrap { background: var(--paper); }
.results-table th,.eeprom-table th { background: #0f2234; }
.results-table tbody tr:hover { background: #102b40; }
.results-table tbody tr[aria-current="true"] { background: #08324b; box-shadow: inset 3px 0 var(--teal); }
.result-integrity.good { color: #77e6bd; }
.status-notice,.record-caution { color: var(--amber); border-color: #6b5730; }
.loading-grid div { background-image: linear-gradient(90deg,#0b1929,#172e45,#0b1929); }
.detail-dialog { background: #08131f; }
.detail-header,.detail-tabs,.detail-footer { background: #0b1927; }
.download-menu-list { background: #0c1c2d; box-shadow: 0 12px 30px #0008; }
.download-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.download-actions a { min-width: 54px; padding-inline: 11px; font-size: 13px; }
.integrity-good { color: #77e6bd; background: #093c36; }
.integrity-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0 0 12px; }
.integrity-summary .info-card { padding: 12px; }
.integrity-summary .info-label { font-size: 11px; }
.integrity-summary :is(.integrity-good,.integrity-warning,.integrity-bad) { font-size: 11px; }
.chip { color: #c4d8ec; background: #13273b; }
.chip.positive { color: #77e6bd; background: #093c36; border-color: #397b6d; }
.chip.negative { background: #142331; }
.archive-report-form input,.archive-report-form select,.archive-report-form textarea { background: #081521; }
.eeprom-map-segment { background: #0a3042; border-color: #215b72; }
.copy-button { color: #78ddff; border-color: var(--line-strong); }
.code-panel header { border-color: var(--line); }
.inspector-empty { display: none; }
.workspace.detail-open { display: block; height: auto; overflow: visible; }
.workspace.detail-open .catalog-pane { width: min(1380px,calc(100% - 48px)); margin: auto; padding: 0 0 36px; height: auto; overflow: visible; border: 0; }
.workspace.detail-open .hero { display: grid; padding: 26px 0 20px; }
.workspace.detail-open .hero .eyebrow,.workspace.detail-open .hero h1 { display: block; }
.workspace.detail-open .stats { display: grid; }
.workspace.detail-open .hero-description { font-size: 14px; }
.workspace.detail-open .search-shell { top: auto; }
.workspace.detail-open .inspector-empty { display: none; }

@media (min-width: 1100px) {
  body { height: 100dvh; overflow: hidden; }
  .topbar { position: fixed; inset: 0 auto 0 0; width: var(--rail-width); min-height: 0; height: 100dvh; display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 16px 14px; overflow-y: auto; border-right: 1px solid var(--line); border-bottom: 0; background: linear-gradient(155deg,#091a29,#07111c 68%); }
  .brand { display: block; }
  .brand-banner { width: 100%; height: auto; border-radius: 10px; }
  .brand-copy { display: none; }
  .primary-nav { flex: 0 0 auto; display: grid; gap: 6px; justify-content: stretch; }
  .primary-nav a { gap: 12px; min-height: 50px; padding: 10px 14px; font-size: 14px; }
  .primary-nav a::before { width: 22px; flex: 0 0 auto; color: #95bedb; font-size: 24px; line-height: 1; text-align: center; }
  #nav-catalog::before { content: "▤"; color: var(--teal); }
  #nav-tools::before { content: "⇄"; }
  #nav-research::before { content: "⌁"; }
  #nav-community::before { content: "↑"; }
  #nav-account::before { content: "◎"; }
  .rail-contribute { display: block; margin-top: auto; padding: 16px; border: 1px solid #24536e; border-radius: var(--radius); background: linear-gradient(130deg,#0c263b,#091420); }
  .rail-upload-icon { color: var(--teal); font-size: 32px; line-height: 1; }
  .rail-contribute h2 { margin: 12px 0 6px; font-size: 17px; }
  .rail-contribute p { color: var(--muted); font-size: 13px; }
  .rail-contribute .primary-button { width: 100%; padding-inline: 6px; font-size: 13px; }
  .topbar-actions { justify-content: center; }
  .workspace,.workspace.detail-open { display: flex; flex-direction: column; gap: 18px; width: calc(100% - var(--rail-width)); height: 100dvh; min-height: 0; margin-left: var(--rail-width); padding: 0 24px 20px; overflow: hidden; }
  .workspace-controls { width: 100%; flex: 0 0 auto; max-height: 50dvh; padding-bottom: 2px; overflow-y: auto; }
  .hero,.workspace.detail-open .hero { gap: 20px; padding: 24px 0 20px; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
  h1 { font-size: clamp(28px,2.6vw,42px); }
  .hero .eyebrow { font-size: 10px; }
  .hero-description { font-size: 15px; }
  .stats,.workspace.detail-open .stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 20px; }
  .stats div:nth-child(n+3) { display: none; }
  .stats dt { color: var(--teal-dark); font-size: 24px; }
  .stats dd { font-size: 11px; }
  .search-form { grid-template-columns: minmax(0,1fr) 110px auto auto; }
  .search-field input,.search-form > button { min-height: 50px; }
  .filters { grid-template-columns: repeat(5,minmax(0,1fr)) auto; gap: 10px; }
  .filters > .text-button { font-size: 12px; padding-inline: 6px; }
  .workbench-stage { display: grid; flex: 1; grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: 18px; min-width: 0; min-height: 0; }
  .catalog-pane,.workspace.detail-open .catalog-pane { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--radius); background: #08131f; scrollbar-width: thin; }
  .results-section { padding-top: 0; }
  .results-toolbar { position: sticky; z-index: 5; top: 0; padding: 14px 16px; margin: 0; background: #0d1c2b; border-bottom: 1px solid var(--line); }
  .results-toolbar h2,.workspace.detail-open .results-toolbar h2 { font-size: 18px; }
  .results-toolbar p { font-size: 11px; }
  .catalog-pages-link { font-size: 11px; }
  .toolbar-actions { gap: 8px; }
  .sort-control > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sort-control select,.export-button { min-height: 38px; font-size: 12px; }
  .catalog-footer { padding: 12px 16px; gap: 0 14px; }
  .pagination { padding: 16px; }
  .table-wrap { border: 0; border-radius: 0; }
  .loading-grid,.empty-state,.status-notice { margin: 14px; }
  .detail-dialog { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .detail-header { padding: 18px; }
  .detail-header h2 { font-size: clamp(21px,1.7vw,30px); }
  .detail-content { padding: 16px; scrollbar-width: thin; }
  .detail-tabs { padding-inline: 8px; }
  .detail-tabs button { padding-inline: 10px; }
  .inspector-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 36px; text-align: center; border: 1px dashed #31526b; border-radius: var(--radius); background: radial-gradient(ellipse at 50% 35%,#0c2539,transparent 70%),#08131f; }
  .inspector-empty-icon { display: grid; width: 76px; height: 76px; margin-bottom: 28px; place-items: center; border: 1px solid #286581; border-radius: 18px; background: #0d2b40; color: var(--teal); font: 26px monospace; }
  .inspector-empty h2 { font-size: 26px; }
  .inspector-empty > p:not(.eyebrow) { max-width: 360px; color: var(--muted); font-size: 14px; }
  .inspector-formats { display: flex; gap: 10px; margin: 10px 0 28px; }
  .inspector-formats span { padding: 5px 12px; border: 1px solid #31526b; border-radius: 6px; color: #8cacc7; font: 12px monospace; }
  .inspector-empty .inspector-note { padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; }
}
@container catalog (max-width: 720px) {
  .results-table tbody { gap: 0; }
  .results-table tbody tr { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #0a1826; }
}
@media (min-width: 1100px) {
  .results-table tbody tr { padding: 16px; }
  .primary-cell strong { font-size: 14px; }
  .serial-value { font-size: 11px; }
  .result-integrity { font-size: 11px; }
  .result-integrity::before { width: 16px; height: 16px; }
  .id-link { font-size: 11px; }
}
@media (min-width: 1600px) {
  :root { --rail-width: 260px; }
  .workspace,.workspace.detail-open { padding-inline: 32px; }
  .stats,.workspace.detail-open .stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .stats div:nth-child(n+3) { display: block; }
}
@media (max-width: 1099px) {
  .hero,.workspace.detail-open .hero { grid-template-columns: minmax(0,1fr); }
  .inspector-empty { display: none; }
  .detail-dialog { position: fixed; z-index: 80; inset: 0; width: 100%; height: 100dvh; min-height: 0; }
  body.detail-overlay-open { position: fixed; top: var(--catalog-scroll-offset,0px); width: 100%; overflow: hidden; }
  .detail-shell { grid-template-rows: auto auto auto minmax(0,1fr) auto; }
  .detail-back { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: max(10px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #0b1927; color: var(--teal); font: inherit; font-weight: 650; text-align: left; }
  .detail-back:focus-visible { outline-offset: -4px; }
  .detail-header { grid-row: 2; }
  .detail-tabs { grid-row: 3; }
  .detail-content { grid-row: 4; }
  .detail-footer { grid-row: 5; }
  #detail-close { display: none; }
  .primary-nav { flex-wrap: wrap; }
}
@media (max-width: 899px) {
  .workspace-controls,.workspace.detail-open .catalog-pane { width: calc(100% - 28px); }
  .hero,.workspace.detail-open .hero { padding: 20px 0 16px; }
  .workspace.detail-open .hero .eyebrow { display: none; }
  .primary-nav { flex-wrap: nowrap; }
  .search-shell { padding: 0; }
}
@media (max-width: 1099px) and (max-height: 500px) {
  .detail-header { padding: 10px 16px; gap: 8px; }
  .detail-header h2 { margin-bottom: 0; font-size: 20px; }
  .detail-header .eyebrow { margin-bottom: 4px; }
  /* These fields remain in Overview; leave room to read it in landscape. */
  .detail-meta-list { display: none; }
}
@media (max-width: 520px) {
  .workspace.detail-open .stats { display: flex; }
  /* Keep all five tabs visible in reading order: two above, three below. */
  .detail-tabs { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); padding-inline: 8px; overflow: visible; }
  .detail-tabs button { grid-column: span 2; min-width: 0; min-height: 48px; padding: 8px 6px; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
  .detail-tabs button:nth-child(-n+2) { grid-column: span 3; }
  .primary-nav { gap: 2px; flex-wrap: wrap; justify-content: flex-start; }
  .primary-nav a { min-height: 40px; padding: 7px 10px; font-size: 12px; }
  .primary-nav .community-link { max-width: none; }
  .workspace-controls .hero-description { font-size: 13px; }
  .filters { grid-template-columns: minmax(0,1fr); }
  .search-form { grid-template-columns: minmax(0,1fr) auto; }
  .filter-toggle { grid-column: auto; }
}
