/* GLPC · Local, responsive vendor price index */
:root {
  color-scheme: dark;
  --bg: #081220;
  --surface: #101d2e;
  --surface-deep: #0b1727;
  --surface-raised: #16263b;
  --border: #25354a;
  --border-soft: #1c2c40;
  --text: #eef4fc;
  --muted: #a0b0c5;
  --quiet: #7e93ac;
  --cyan: #70d7f5;
  --blue: #72aaff;
  --green: #7de1b4;
  --green-bg: #102f30;
  --amber: #efce88;
  --danger: #ffabb4;
  --radius: 17px;
  --shadow: 0 14px 45px rgba(0, 0, 0, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(ellipse at 87% 6%, rgba(21, 75, 113, .16), transparent 38%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--cyan); }
::selection { color: #fff; background: #315787; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }
h1 { font-size: clamp(2.15rem, 4.2vw, 3.9rem); font-weight: 720; }
h2 { margin-bottom: 0; font-size: 1.5rem; font-weight: 670; }
h3 { font-size: 1.15rem; font-weight: 660; }
p { margin-bottom: 1rem; }
svg { flex-shrink: 0; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 1; }
[data-icon] svg { display: block; width: 19px; height: 19px; }
.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; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; color: #061423; background: var(--cyan); border-radius: 8px; }
.skip-link:focus { top: 14px; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; }
.danger-text { color: var(--danger) !important; }
.numeric { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* Header and page framework */
.site-header { background: rgba(9, 19, 33, .95); border-bottom: 1px solid var(--border-soft); }
.header-inner { max-width: 1500px; min-height: 88px; padding: 0 38px; margin: 0 auto; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 47px; height: 47px; object-fit: cover; border: 1px solid #2b4664; border-radius: 10px; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 1.45rem; line-height: 1.15; font-weight: 780; letter-spacing: .065em; }
.brand small { margin-top: 4px; color: var(--quiet); font-size: .64rem; font-weight: 650; letter-spacing: .16em; }
.main-nav { margin: 0 auto; display: flex; align-self: stretch; align-items: stretch; gap: 26px; }
.nav-button { position: relative; padding: 3px 0 0; border: 0; color: var(--muted); background: none; font-size: .88rem; font-weight: 550; white-space: nowrap; }
.nav-button::after { position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: transparent; content: ""; }
.nav-button:hover { color: #fff; }
.nav-button.active { color: var(--cyan); }
.nav-button.active::after { background: var(--cyan); }
.page-shell { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 38px 64px; }
.view { animation: view-in .22s ease-out; }
@keyframes view-in { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 52px 0 30px; }
.page-heading h1 { margin: 12px 0 14px; font-size: clamp(2rem, 4vw, 3.15rem); }
.page-heading p { max-width: 720px; color: var(--muted); margin-bottom: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--cyan); font-size: .73rem; line-height: 1.4; letter-spacing: .16em; font-weight: 700; }
.eyebrow.compact { font-size: .68rem; letter-spacing: .14em; margin-bottom: 8px; }
.line-mark { width: 22px; height: 2px; background: var(--cyan); }
.panel, .workspace-panel { min-width: 0; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 26px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.panel-heading > [data-icon] { color: var(--cyan); }
.panel-heading > [data-icon] svg { width: 25px; height: 25px; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 10px 16px; border: 1px solid #354b66; border-radius: 9px; background: #1b304b; color: var(--text); font-size: .875rem; line-height: 1.35; font-weight: 600; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.button:hover:not(:disabled), .icon-button:hover:not(:disabled) { border-color: #597697; background: #233d5d; text-decoration: none; }
.button-primary { color: #052033; background: #7ad9f5; border-color: #7ad9f5; }
.button-primary:hover:not(:disabled) { color: #051625; background: #a1e8fb; border-color: #a1e8fb; }
.button-quiet { border-color: var(--border); background: #112035; color: #c6d4e5; }
.button-quiet[aria-pressed="true"] { background: #183952; border-color: #48738e; color: var(--cyan); }
.button-danger { color: #ffbdc5; border-color: #754654; background: #432b39; }
.button-danger:hover:not(:disabled) { color: #ffe1e4; border-color: #a06775; background: #583445; }
.button [data-icon] svg { width: 17px; height: 17px; }
.icon-button { width: 40px; min-height: 40px; padding: 9px; flex: 0 0 auto; background: transparent; border-color: transparent; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; background: none; border: none; color: var(--cyan); font-size: .875rem; line-height: 1.5; font-weight: 550; text-align: left; }
.text-button:hover:not(:disabled) { color: #c1f0ff; text-decoration: underline; }

/* First view */
.hero { min-height: 347px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 52px; padding: 42px 13px 34px 0; }
.hero-copy h1 { margin: 18px 0 19px; line-height: 1.12; }
.hero-copy h1 span { color: #a7bed8; }
.hero-copy > p { max-width: 640px; color: var(--muted); font-size: 1.02rem; line-height: 1.65; margin-bottom: 19px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--quiet); font-size: .79rem; }
.hero-meta [data-icon] svg { width: 16px; height: 16px; }
.meta-divider { color: #455973; margin: 0 3px; }
.hero-art { position: relative; height: 275px; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-art img { position: relative; z-index: 1; width: 224px; height: 241px; object-fit: cover; border-radius: 25px; opacity: .97; mix-blend-mode: screen; }
.orbit { position: absolute; z-index: 0; border: 1px solid #203b55; border-radius: 50%; pointer-events: none; }
.orbit-one { width: 295px; height: 240px; transform: rotate(-25deg); border-color: #1e3f58; }
.orbit-two { width: 320px; height: 184px; transform: rotate(30deg); border-color: #193147; }
.orbit-one::after { content: ""; position: absolute; width: 6px; height: 6px; border: 2px solid var(--cyan); background: #132b40; border-radius: 50%; left: 14px; top: 58px; }
.art-caption { position: absolute; bottom: -10px; left: 0; right: 0; color: #65829e; text-align: center; letter-spacing: .15em; font-size: .6rem; font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 29px; }
.stat-card { position: relative; padding: 19px 22px 18px; background: linear-gradient(120deg, #132235, #0f1c2e); border: 1px solid var(--border); border-radius: 13px; min-height: 105px; }
.stat-icon { position: absolute; right: 19px; top: 23px; color: #6686a9; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-value { display: block; padding-right: 28px; color: #e8f2ff; font-size: 1.8rem; font-weight: 690; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; color: var(--muted); font-size: .81rem; margin-top: 7px; }
.workspace-panel { overflow: hidden; }
.workspace-panel > .panel-heading { padding: 27px 27px 22px; }
.segmented { display: flex; align-items: stretch; gap: 3px; padding: 4px; border: 1px solid var(--border); background: #0b1728; border-radius: 10px; }
.segmented button { padding: 9px 14px; color: var(--muted); font-size: .82rem; font-weight: 600; border: 0; border-radius: 6px; background: transparent; white-space: nowrap; }
.segmented button:hover { color: #fff; }
.segmented button.selected { background: #213850; color: #c8effc; box-shadow: 0 1px 4px #0004; }
.search-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 11px; padding: 0 27px; }
.search-box { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 47px; border: 1px solid #34465d; border-radius: 9px; background: #0b1727; }
.search-box:focus-within { border-color: #6cb9d7; box-shadow: 0 0 0 2px #6cb9d71a; }
.search-box > [data-icon] { color: #7e99b5; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: none; padding: 0; color: var(--text); background: transparent; font-size: .94rem; }
.search-box input::placeholder { color: #7187a1; opacity: 1; }
.search-box kbd { padding: 1px 7px; border: 1px solid var(--border); border-radius: 4px; color: #667d99; font-size: .78rem; }
#saved-count { min-width: 17px; text-align: center; color: var(--quiet); font-size: .78rem; }
.filter-count { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; color: #082135; background: var(--cyan); font-size: .73rem; }
.quick-picks { display: flex; gap: 8px; flex-wrap: wrap; padding: 15px 27px 20px; }
.quick-picks button { padding: 5px 12px; border: 1px solid #2a3b51; border-radius: 6px; background: transparent; color: #a5b9d0; font-size: .78rem; line-height: 1.5; }
.quick-picks button:hover, .quick-picks button.active, .quick-picks button[aria-pressed="true"] { color: var(--cyan); background: #153147; border-color: #3b5d78; }
.advanced-filters { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 20px; margin: 0 27px 20px; padding: 22px; border: 1px solid #2b4059; border-radius: 11px; background: #0b1829; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { color: #becbdc; font-size: .875rem; font-weight: 550; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { max-width: 100%; color: var(--text); }
.field input, .field select, textarea, .compact-select, .edit-form input, .edit-form select { width: 100%; min-height: 43px; padding: 10px 12px; background: #0b1728; border: 1px solid #34475f; border-radius: 8px; color: var(--text); font-size: .875rem; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #7388a1; opacity: 1; }
textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2397acc5' stroke-width='1.6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; padding-right: 32px !important; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; accent-color: #79d4ee; }
.check-field { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: #b7c8dd; }
.index-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 27px; border-top: 1px solid var(--border-soft); background: #101e30; }
#result-count { color: #a6b8cf; font-size: .82rem; }
#result-count strong { color: #e4eefb; font-weight: 650; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.compact-select { width: auto; min-height: 34px; padding: 6px 11px; border-color: var(--border); background-color: transparent; font-size: .78rem; color: #b9c8db; }
.toolbar-actions .icon-button { min-height: 34px; height: 34px; width: 34px; }

/* Price matrix */
.matrix-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #3a5673 #0d192a; }
.matrix { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .875rem; }
.matrix th, .matrix td { border-top: 1px solid var(--border-soft); border-right: 1px solid #203047; vertical-align: middle; }
.matrix th:last-child, .matrix td:last-child { border-right: 0; }
.matrix thead th { padding: 17px 12px; color: #afc2d9; background: #0c192b; font-weight: 550; font-size: .78rem; text-align: center; }
.matrix thead th:first-child { width: 242px; padding-left: 26px; text-align: left; }
.vendor-head { display: flex; align-items: center; justify-content: center; gap: 7px; line-height: 1.35; }
.vendor-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 2px; background: var(--vendor-color, #73afda); }
.matrix tbody th { position: relative; padding: 19px 35px 19px 26px; color: var(--text); font-weight: 400; text-align: left; background: #111f31; }
.matrix .compound-heading { position: relative; padding: 0; color: var(--text); font-weight: 400; text-align: left; background: transparent; }
.compound-link { display: block; max-width: 100%; padding: 0; border: 0; text-align: left; background: transparent; color: #e2edf9; font-size: .9rem; font-weight: 650; line-height: 1.45; overflow-wrap: anywhere; }
.compound-link:hover { color: var(--cyan); }
.spec-text { display: block; color: #90a6c0; font-size: .78rem; font-weight: 400; line-height: 1.5; margin-top: 3px; overflow-wrap: anywhere; }
.spec-note { display: block; color: #7891ad; font-size: .72rem; font-weight: 400; margin-top: 3px; overflow-wrap: anywhere; }
.bookmark-button { position: absolute; top: -5px; right: -30px; display: flex; align-items: center; justify-content: center; width: 29px; height: 31px; padding: 5px; border: none; border-radius: 6px; color: #607a98; background: none; }
.bookmark-button svg { width: 16px; height: 16px; }
.bookmark-button:hover { color: #b7dfff; background: #20334b; }
.bookmark-button.saved { color: var(--cyan); }
.bookmark-button.saved svg { fill: #70d7f52e; }
.matrix td { padding: 8px; background: #101d2f; }
.matrix tbody tr:nth-child(even) td { background: #0e1b2c; }
.matrix tbody tr:hover td { background: #142337; }
.quote-button { display: flex; width: 100%; min-height: 89px; flex-direction: column; justify-content: center; align-items: center; gap: 3px; padding: 9px 5px; color: #dce8f8; background: transparent; border: 1px solid transparent; border-radius: 8px; text-align: center; }
.quote-button:hover { background: #1c3048; border-color: #3d5c7b; }
.quote-price { display: block; font-size: 1.2rem; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.quote-unit { color: #839ab5; font-size: .75rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.quote-meta { display: block; color: #9bb0c9; font-size: .7rem; line-height: 1.35; overflow-wrap: anywhere; }
.quote-subtle { color: #68829f; font-size: .69rem; line-height: 1.35; }
.matrix .best .quote-button, .quote-button.best { border-color: #26544e; background: #123332; color: #adf0d2; }
.matrix .best .quote-button:hover, .quote-button.best:hover { border-color: #438b78; background: #19413c; }
.matrix .best .quote-unit, .quote-button.best .quote-unit { color: #80b6a3; }
.matrix .best .quote-meta, .quote-button.best .quote-meta { color: #80c2a8; }
.no-quote { display: block; text-align: center; color: #415871; font-size: 1.15rem; }
.no-quote small { display: block; font-size: .71rem; color: #69819c; }
.mobile-vendor { display: none; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 27px; border-top: 1px solid var(--border); }
#page-info { color: #879eb9; font-size: .79rem; }
.pagination > div { display: flex; gap: 8px; }
.pagination .button { min-height: 35px; padding: 8px 13px; font-size: .78rem; }
.index-notes { display: flex; align-items: baseline; justify-content: space-between; gap: 25px; margin: 18px 1px 0; }
.index-notes p { max-width: 1040px; margin: 0; font-size: .78rem; line-height: 1.65; color: #91a7c0; }
.index-notes .text-button { flex: 0 0 auto; font-size: .78rem; }
.legend-square { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 2px; background: #63bd98; }
.small-print { max-width: 1080px; margin: 10px 1px 0; font-size: .75rem; line-height: 1.7; color: #6f88a4; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 290px; padding: 36px 24px; border-top: 1px solid var(--border); }
.empty-state > [data-icon] { margin-bottom: 15px; color: #5b85ab; }
.empty-state > [data-icon] svg { width: 34px; height: 34px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: .9rem; }

/* Vendor and source catalog */
.vendor-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.vendor-card { display: flex; flex-direction: column; min-width: 0; padding: 25px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(140deg, #15243a, #101e30); }
.vendor-title, .vendor-card-title { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; min-width: 0; }
.vendor-title h3, .vendor-card-title h3 { margin: 0 0 5px; font-size: 1.2rem; }
.vendor-title p, .vendor-title small, .vendor-card-title small { margin: 0; color: #8fa7c3; font-size: .78rem; }
.vendor-monogram { display: flex; align-items: center; justify-content: center; width: 47px; height: 47px; flex: 0 0 auto; border-radius: 12px; border: 1px solid #3b5571; background: #203851; color: #a8def6; font-weight: 750; font-size: .88rem; letter-spacing: .03em; }
.vendor-numbers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 18px 0; margin-bottom: 16px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.vendor-numbers strong { display: block; font-size: 1.45rem; line-height: 1.3; font-weight: 650; color: #e6effa; font-variant-numeric: tabular-nums; }
.vendor-numbers span, .vendor-numbers small { color: var(--muted); font-size: .78rem; }
.vendor-detail { color: #a6bad2; font-size: .85rem; line-height: 1.65; overflow-wrap: anywhere; margin-bottom: 13px; }
.vendor-detail p { margin-bottom: 10px; }
.vendor-detail strong { display: block; margin-bottom: 4px; color: #d1dfee; font-weight: 600; }
.vendor-detail .pill { margin-right: 4px; margin-bottom: 8px; }
.vendor-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 18px; }
.vendor-actions .button { min-height: 37px; padding: 8px 12px; font-size: .8rem; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 8px; border: 1px solid #3b4e64; border-radius: 5px; color: #b0c5dc; background: #1b2d42; font-size: .7rem; font-weight: 550; line-height: 1.35; vertical-align: middle; }
.pill-warning { border-color: #695734; color: #e5cb91; background: #332e23; }
.pill-green { border-color: #305a50; color: #96d6b9; background: #15372f; }
.pill-blue { border-color: #315674; color: #9ed0ed; background: #163047; }
.source-panel { margin-top: 28px; }
.source-panel .panel-heading { margin-bottom: 22px; }
.source-panel .panel-heading > .muted { font-size: .8rem; }
.source-row { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-top: 1px solid var(--border-soft); }
.file-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 45px; flex: 0 0 auto; border: 1px solid #31465f; border-radius: 9px; background: #152941; color: #88b1d7; font-size: .7rem; font-weight: 650; }
.source-row > div:not(.file-icon) { min-width: 0; flex: 1; }
.source-row > div:first-child { display: flex; align-items: center; gap: 14px; }
.source-row > div:first-child > div:not(.file-icon) { min-width: 0; }
.source-row > a { flex: 0 0 auto; font-size: .875rem; }
.source-row strong, .source-row a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.source-row strong { color: #d8e6f7; font-size: .87rem; font-weight: 580; }
.source-row small, .source-row p { display: block; margin: 3px 0 0; color: #829cb9; font-size: .76rem; }
.source-row .button { flex: 0 0 auto; min-height: 36px; font-size: .78rem; }

/* Upload workspace */
.local-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: #9cb9d1; background: #14273b; border: 1px solid #2d465e; border-radius: 7px; font-size: .79rem; white-space: nowrap; }
.local-badge [data-icon] svg { width: 17px; height: 17px; }
.publishing-note { display: flex; align-items: center; gap: 17px; padding: 21px 24px; margin-bottom: 26px; border: 1px solid #315370; border-radius: 13px; background: #112a3e; }
.publishing-note > [data-icon] { align-self: flex-start; color: #7dc6e6; margin-top: 3px; }
.publishing-note > div { flex: 1; min-width: 0; }
.publishing-note strong { font-size: .94rem; font-weight: 630; color: #dcecf9; }
.publishing-note p { margin: 4px 0 0; color: #a3bdd3; font-size: .86rem; line-height: 1.6; }
.publishing-note > .button { flex: 0 0 auto; }
.update-layout { display: grid; grid-template-columns: minmax(0,1fr) 315px; gap: 25px; align-items: start; }
.import-panel { padding: 27px; }
.import-panel > .panel-heading { margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.drop-zone { display: flex; align-items: center; flex-direction: column; gap: 10px; text-align: center; padding: 36px 25px 29px; margin-top: 24px; border: 1px dashed #46647f; border-radius: 13px; background: radial-gradient(ellipse at center top, #18324b88, transparent), #0d1b2e; transition: background .15s, border-color .15s; }
.drop-zone.drag-over, .drop-zone.dragging { border-color: var(--cyan); background: #193d53; }
.drop-zone > [data-icon] { display: flex; width: 48px; height: 48px; align-items: center; justify-content: center; margin-bottom: 5px; background: #1a3550; border: 1px solid #2e5475; border-radius: 12px; color: #8dd4f0; }
.drop-zone > [data-icon] svg { width: 24px; height: 24px; }
.drop-zone strong { color: #dfecfa; font-size: 1.05rem; font-weight: 600; }
.drop-zone > span:not([data-icon]) { color: #96aec8; font-size: .86rem; }
.drop-zone .button { margin-top: 6px; min-width: 130px; }
.drop-zone small { margin-top: 4px; color: #718fae; font-size: .75rem; }
details > summary { cursor: pointer; color: #a8c3dd; font-size: .875rem; font-weight: 550; list-style-position: outside; margin-left: 16px; }
details > summary:hover { color: var(--cyan); }
details[open] > summary { margin-bottom: 14px; }
.import-options, .paste-option { margin-top: 20px; padding: 18px 0 0; border-top: 1px solid var(--border); }
.import-options > p { font-size: .82rem; }
.paste-option textarea { display: block; margin: 12px 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.import-status { margin-top: 17px; color: #b5cbdf; font-size: .86rem; line-height: 1.6; overflow-wrap: anywhere; }
.import-status:empty { display: none; }
.import-status .notice { margin: 0; }
.update-sidebar { display: grid; gap: 18px; min-width: 0; }
.update-sidebar .panel { padding: 24px; }
.update-sidebar h3 { margin: 0 0 12px; font-size: 1rem; }
.update-sidebar p { font-size: .84rem; line-height: 1.65; }
.section-icon { color: #85c7e5; margin-bottom: 15px; }
.section-icon svg { width: 25px; height: 25px; }
.steps { margin: 18px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 22px 33px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { position: absolute; left: 0; top: 1px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid #3b5a76; background: #1c3550; color: #a2d9ee; content: counter(step); font-size: .73rem; font-weight: 600; }
.steps strong { display: block; margin-bottom: 4px; font-size: .85rem; font-weight: 580; color: #cbdcec; }
.steps span { display: block; font-size: .8rem; line-height: 1.6; color: #8ea8c3; }
.stack-actions { display: flex; flex-direction: column; gap: 10px; }
.stack-actions .button { justify-content: flex-start; padding-left: 12px; font-size: .8rem; }
.subtle-panel { background: #0e1a2b; box-shadow: none; }
.subtle-panel .text-button { display: block; margin: 7px 0; font-size: .82rem; }
.subtle-panel .tiny { margin: 16px 0 0; font-size: .76rem; }
.notice { display: block; margin: 20px 0; padding: 14px 17px; border: 1px solid #315371; border-radius: 9px; background: #122c42; color: #b6d1e7; font-size: .85rem; line-height: 1.6; }
.notice > .button { margin-top: 11px; }
.notice-warning { border-color: #645536; background: #2e2a22; color: #e4cfa5; }
.notice p:last-child { margin-bottom: 0; }

/* Import review */
#import-review { margin-top: 24px; padding-top: 24px; border-top: 1px solid #35516d; }
.review-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.review-toolbar h3 { margin-bottom: 4px; font-size: 1.1rem; }
.review-toolbar p { margin: 0; color: var(--muted); font-size: .79rem; }
.review-toolbar .button { min-height: 35px; padding: 8px 11px; font-size: .78rem; }
.review-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; scrollbar-width: thin; scrollbar-color: #3c5875 #0b1727; }
.review-table { width: 100%; min-width: 1030px; border-collapse: collapse; font-size: .8rem; }
.review-table th { padding: 12px 8px; border-bottom: 1px solid #2b4059; background: #0a1728; color: #8fa8c4; font-size: .73rem; text-align: left; font-weight: 600; white-space: nowrap; }
.review-table td { padding: 8px 6px; border-bottom: 1px solid var(--border-soft); background: #101e30; vertical-align: top; }
.review-table tbody tr:last-child td { border-bottom: 0; }
.review-table input:not([type="checkbox"]), .review-table select { width: 100%; min-width: 65px; min-height: 35px; padding: 6px 8px; border: 1px solid #31485f; border-radius: 5px; background-color: #091626; color: #dce9f8; font-size: .79rem; }
.review-table .input-name { min-width: 190px !important; }
.review-table .input-price { width: 83px !important; min-width: 72px !important; }
.review-table input[type="checkbox"] { margin: 9px 3px; }
.review-table .review-row-number { min-width: 30px; padding-top: 16px; text-align: center; color: #6986a5; font-size: .72rem; }
.review-row-remove { display: flex; align-items: center; justify-content: center; width: 31px; min-height: 35px; padding: 5px; background: none; border: none; border-radius: 5px; color: #a57883; }
.review-row-remove:hover { background: #3b2433; color: #ffbdc5; }
.review-row-remove svg { width: 17px; height: 17px; }
.review-issues { display: block; color: #d4bd8b; font-size: .73rem; line-height: 1.55; margin: 8px 0; overflow-wrap: anywhere; }
.review-issues ul { margin: 8px 0; padding-left: 20px; }
.review-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; color: var(--muted); font-size: .78rem; }
.review-pagination > div { display: flex; gap: 8px; }
.review-pagination button { min-height: 33px; padding: 7px 10px; font-size: .76rem; }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 11px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.review-actions > .field { flex: 1 1 200px; }
.review-actions select { width: auto; max-width: 100%; min-height: 41px; border: 1px solid #35516d; border-radius: 7px; background-color: #0e1e32; padding: 8px 12px; color: #c9dbed; font-size: .82rem; }
.review-ack { display: flex; align-items: flex-start; gap: 10px; padding: 14px; margin-top: 15px; background: #142a3d; border-radius: 8px; color: #b3cadf; font-size: .82rem; line-height: 1.65; }
.review-ack input { margin-top: 4px; }
.review-extracted { margin-top: 19px; }
.review-extracted pre, .review-extracted textarea { width: 100%; max-height: 280px; overflow: auto; padding: 14px; border: 1px solid var(--border); border-radius: 7px; background: #071422; color: #9ab1ca; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .75rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Comparison and evidence dialogs */
.detail-dialog { width: min(1110px, calc(100% - 48px)); max-width: none; max-height: min(90vh, 1050px); padding: 0; color: var(--text); background: #0f1e30; border: 1px solid #3a536f; border-radius: 18px; box-shadow: 0 25px 95px #0008; overflow: auto; scrollbar-width: thin; scrollbar-color: #496380 #0e1c2c; }
.detail-dialog::backdrop { background: rgba(2, 8, 16, .78); backdrop-filter: blur(6px); }
.dialog-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 22px; background: #112237f5; border-bottom: 1px solid var(--border); }
#dialog-heading { min-width: 0; }
#dialog-title { margin: 0; font-size: 1.6rem; overflow-wrap: anywhere; }
#dialog-heading p, #dialog-heading .muted { margin: 7px 0 0; font-size: .83rem; color: #9eb5ce; }
#dialog-heading .eyebrow { margin-bottom: 10px; }
.close-dialog { margin-top: -5px; margin-right: -8px; color: #9db4ce; }
#dialog-content { padding: 26px 28px 30px; }
.detail-summary { display: flex; align-items: stretch; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.detail-summary > div { min-width: 155px; flex: 1; padding: 16px 19px; border: 1px solid #2c415a; border-radius: 10px; background: #14273b; }
.detail-summary .highlight { border-color: #376254; background: #17362f; }
.detail-summary strong { display: block; color: #edf6ff; font-size: 1.45rem; font-weight: 660; line-height: 1.3; font-variant-numeric: tabular-nums; }
.detail-summary span, .detail-summary small { display: block; color: #99b1ca; font-size: .78rem; }
.detail-summary .highlight strong { color: #a7eecb; }
.detail-summary .highlight span { color: #8ac3a9; }
.detail-summary strong.highlight { color: #a7eecb; background: none; border: 0; }
.detail-summary > div:has(> strong.highlight) { border-color: #376254; background: #17362f; }
.detail-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; scrollbar-width: thin; scrollbar-color: #3f5b77 #0b1728; }
.detail-table { width: 100%; min-width: 740px; border-collapse: collapse; font-size: .84rem; }
.detail-table th { padding: 13px 14px; background: #0a182a; color: #89a3c0; border-bottom: 1px solid #2c425c; font-size: .73rem; font-weight: 600; text-align: left; white-space: nowrap; }
.detail-table td { padding: 14px; border-bottom: 1px solid #21354c; color: #c6d7e9; vertical-align: top; }
.detail-table tr:last-child td { border-bottom: none; }
.detail-table .numeric { text-align: right; }
.detail-table td strong { color: #e4f0ff; font-weight: 620; }
.detail-table .row-best td { background: #11322f; }
.detail-table .row-best td.numeric { color: #9ae4c2; }
.detail-table small { display: block; margin-top: 3px; color: #839db9; font-size: .73rem; }
.detail-table .text-button { font-size: .76rem; }
.detail-hint { color: #91a8c2; font-size: .8rem; line-height: 1.65; margin: 14px 0 22px; }
.detail-hint .pill { margin-right: 6px; }
.source-evidence { margin: 14px 0 21px; padding: 18px; border: 1px solid #293e58; border-radius: 9px; background: #091523; color: #a8c0d9; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .79rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; max-height: 330px; overflow: auto; }
.source-evidence pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.source-evidence h3 { font-family: var(--font); font-size: 1rem; margin-bottom: 9px; }
.source-locator { color: #7997b8; font-size: .78rem; overflow-wrap: anywhere; }
.detail-bars { display: grid; gap: 13px; margin: 24px 0; padding: 22px 20px; border: 1px solid var(--border); border-radius: 10px; background: #0c1a2b; }
.detail-bars h3 { margin-bottom: 5px; }
.bar-row { display: grid; grid-template-columns: minmax(100px,170px) minmax(0,1fr) 78px; align-items: center; gap: 15px; color: #a5bdd5; font-size: .83rem; }
.bar-row > span:first-child { overflow-wrap: anywhere; }
.bar-track { width: 100%; height: 9px; border-radius: 3px; background: #1a2d44; overflow: hidden; }
.bar-fill { height: 100%; min-width: 3px; max-width: 100%; background: #548bb9; border-radius: 3px; }
.best-bar .bar-fill, .bar-fill.best-bar { background: #70c9a5; }
.best-bar .bar-value { color: #a1e5c5; }
.bar-value { color: #c0d4e9; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dialog-copy { color: #b7cade; font-size: .94rem; line-height: 1.8; }
.dialog-copy h3 { margin: 25px 0 11px; color: #dfeaf8; font-size: 1.08rem; }
.dialog-copy h3:first-child { margin-top: 0; }
.dialog-copy p { margin-bottom: 15px; }
.dialog-copy ul, .dialog-copy ol { padding-left: 23px; }
.dialog-copy li { margin: 7px 0; }
.dialog-copy code { color: #a7def2; background: #1b3046; border-radius: 4px; padding: 2px 5px; font-size: .85em; overflow-wrap: anywhere; }
.note-line { padding: 12px 0; border-bottom: 1px solid var(--border-soft); color: #b6cadf; font-size: .86rem; line-height: 1.75; overflow-wrap: anywhere; }
.note-line:last-child { border-bottom: 0; }
.note-line strong { color: #dbe8f6; }
.confirmation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 21px; margin-top: 21px; border-top: 1px solid var(--border); }
.edit-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.edit-form label { display: flex; flex-direction: column; gap: 8px; color: #b4cade; font-size: .875rem; }
.edit-form label.check-field { flex-direction: row; align-items: flex-start; }
.full-width { grid-column: 1 / -1; }

/* Footer and feedback */
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1424px; margin: 0 auto; padding: 26px 0 31px; border-top: 1px solid var(--border-soft); color: #68819d; }
.footer-brand { color: #96b3d0; font-size: 1rem; font-weight: 750; letter-spacing: .06em; }
.footer-brand span { margin-left: 12px; color: #5f7997; font-size: .75rem; font-weight: 400; letter-spacing: 0; }
.site-footer p { margin: 0; font-size: .78rem; }
.site-footer .text-button { color: #8eb0ce; font-size: .78rem; }
.toast { position: fixed; z-index: 50; bottom: 24px; left: 50%; width: max-content; max-width: min(560px,calc(100% - 32px)); padding: 15px 22px; border: 1px solid #486e8e; border-radius: 11px; background: #19384d; color: #e4f3ff; font-size: .88rem; box-shadow: 0 8px 40px #0007; transform: translateX(-50%); text-align: center; overflow-wrap: anywhere; }
.noscript { padding: 24px; background: #332e23; color: #f0d399; text-align: center; }

/* Compact desktop / tablet */
@media (max-width: 1499px) { .site-footer { margin-left: 38px; margin-right: 38px; } }
@media (max-width: 1150px) {
  .header-inner { gap: 23px; padding: 0 28px; }
  .main-nav { gap: 20px; }
  .nav-button { font-size: .82rem; }
  .header-export { padding: 9px 12px; font-size: .8rem; }
  .page-shell { padding-left: 28px; padding-right: 28px; }
  .hero { grid-template-columns: minmax(0,1fr) 275px; gap: 25px; min-height: 328px; }
  .hero-art { height: 245px; }
  .hero-art img { width: 195px; height: 210px; }
  .orbit-one { width: 247px; height: 210px; }
  .orbit-two { width: 267px; height: 160px; }
  .hero-copy h1 { font-size: 3.05rem; }
  .hero-copy > p { font-size: .94rem; }
  .vendor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .update-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 20px; }
  .update-sidebar .panel { padding: 21px; }
  .site-footer { margin-left: 28px; margin-right: 28px; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 17px; }
  .brand { margin-right: auto; }
  .brand img { width: 41px; height: 41px; }
  .brand strong { font-size: 1.25rem; }
  .brand small { font-size: .6rem; }
  .header-export { order: 2; min-height: 38px; }
  .main-nav { order: 3; width: 100%; margin-top: 14px; min-height: 47px; gap: 29px; }
  .nav-button { font-size: .86rem; padding: 0 0 8px; }
  .hero { padding-top: 30px; grid-template-columns: minmax(0,1fr) 200px; gap: 15px; min-height: 300px; }
  .hero-copy h1 { font-size: 2.58rem; }
  .hero-copy > p { font-size: .9rem; }
  .hero-art { height: 200px; }
  .hero-art img { width: 160px; height: 172px; border-radius: 18px; }
  .orbit-one { width: 186px; height: 170px; }
  .orbit-two { width: 198px; height: 123px; }
  .art-caption { font-size: .46rem; bottom: -2px; letter-spacing: .11em; }
  .hero .eyebrow { font-size: .62rem; }
  .hero-meta { font-size: .71rem; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 17px 15px; min-height: 98px; }
  .stat-value { font-size: 1.6rem; }
  .stat-label { font-size: .73rem; }
  .stat-icon { right: 13px; top: 20px; }
  .stat-icon svg { width: 17px; height: 17px; }
  .workspace-panel > .panel-heading { align-items: flex-start; padding: 24px 21px 20px; }
  .segmented button { padding: 9px 9px; font-size: .74rem; }
  .search-row { padding: 0 21px; gap: 9px; }
  .search-box { gap: 9px; padding: 0 11px; }
  .search-box input { font-size: .85rem; }
  .search-box kbd { display: none; }
  .search-row > .button { padding: 9px 12px; }
  .quick-picks { padding-left: 21px; padding-right: 21px; }
  .advanced-filters { grid-template-columns: repeat(2,minmax(0,1fr)); margin-left: 21px; margin-right: 21px; }
  .index-toolbar, .pagination { padding-left: 21px; padding-right: 21px; }
  .index-notes { align-items: flex-start; }
  .index-notes p { font-size: .75rem; }
  .index-notes .text-button { font-size: .75rem; }
  .update-layout { grid-template-columns: minmax(0,1fr); }
  .update-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .publishing-note { flex-wrap: wrap; }
  .publishing-note > .button { margin-left: 36px; }
  .page-heading { padding-top: 36px; }
  .page-heading > .button { max-width: 155px; }
  .site-footer { flex-wrap: wrap; gap: 14px 20px; }
  .site-footer p { order: 3; flex-basis: 100%; }
}

/* Phone: the comparison matrix becomes readable two-column quote cards. */
@media (max-width: 620px) {
  html { scroll-padding-top: 22px; }
  body { background: radial-gradient(ellipse at 90% 0, #17375322, transparent 35%),var(--bg); }
  .header-inner { padding: 14px 17px 0; }
  .brand { gap: 9px; }
  .brand img { width: 37px; height: 37px; border-radius: 8px; }
  .brand strong { font-size: 1.17rem; }
  .brand small { font-size: .51rem; letter-spacing: .13em; }
  .header-export { min-height: 35px; padding: 7px 10px; font-size: .72rem; gap: 6px; }
  .header-export [data-icon] svg { width: 14px; height: 14px; }
  .main-nav { justify-content: space-between; gap: 12px; margin-top: 15px; min-height: 44px; }
  .nav-button { font-size: .75rem; padding-bottom: 10px; }
  .page-shell { padding: 0 16px 38px; }
  .hero { position: relative; display: block; min-height: 0; padding: 31px 0 27px; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-copy h1 { margin: 14px 0 15px; font-size: clamp(2.1rem,7.9vw,2.9rem); line-height: 1.14; letter-spacing: -.045em; }
  .hero-copy > p { max-width: 520px; padding-right: 4px; font-size: .9rem; line-height: 1.7; margin-bottom: 16px; }
  .hero .eyebrow { font-size: .59rem; letter-spacing: .13em; }
  .hero-art { display: none; }
  .hero-meta { gap: 7px; font-size: .68rem; }
  .hero-meta [data-icon] svg { width: 14px; height: 14px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 21px; }
  .stat-card { min-height: 95px; padding: 16px; border-radius: 11px; }
  .stat-value { font-size: 1.68rem; }
  .stat-label { font-size: .75rem; margin-top: 6px; }
  .stat-icon { right: 16px; }
  .stat-icon svg { width: 18px; height: 18px; }
  .workspace-panel { border-radius: 13px; }
  .workspace-panel > .panel-heading { display: block; padding: 22px 17px 17px; }
  h2 { font-size: 1.3rem; }
  .eyebrow.compact { font-size: .62rem; margin-bottom: 7px; }
  .segmented { display: grid; grid-template-columns: .9fr .9fr 1.45fr; margin-top: 18px; width: 100%; padding: 4px; }
  .segmented button { padding: 10px 4px; font-size: .72rem; }
  .search-row { grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 17px; }
  .search-box { grid-column: 1/-1; height: 46px; }
  .search-box input { font-size: 16px; }
  .search-box input::placeholder { font-size: .8rem; }
  .search-row > .button { min-height: 38px; padding: 8px 12px; font-size: .78rem; }
  .quick-picks { gap: 7px; padding: 13px 17px 17px; }
  .quick-picks button { padding: 5px 9px; font-size: .7rem; }
  .advanced-filters { grid-template-columns: minmax(0,1fr); gap: 17px; margin: 0 17px 18px; padding: 17px; }
  .field label { font-size: .85rem; }
  .field input, .field select, textarea { font-size: 16px; }
  .check-field { font-size: .8rem; }
  .index-toolbar { flex-direction: column; align-items: stretch; gap: 11px; padding: 14px 17px; }
  #result-count { font-size: .78rem; }
  .toolbar-actions { justify-content: space-between; }
  .compact-select { flex: 1; min-width: 0; width: 100%; font-size: .78rem; min-height: 37px; }
  .toolbar-actions .icon-button { width: 37px; height: 37px; border: 1px solid var(--border); border-radius: 7px; }
  .matrix-scroll { overflow-x: visible; padding: 0 13px 17px; background: #0a1727; border-top: 1px solid var(--border-soft); }
  .matrix { display: block; width: 100%; min-width: 0; table-layout: auto; }
  .matrix thead { display: none; }
  .matrix tbody { display: grid; gap: 14px; width: 100%; padding-top: 14px; }
  .matrix tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 11px 12px; background: #112034; border: 1px solid #2a405a; border-radius: 11px; overflow: hidden; }
  .matrix tbody th { display: block; grid-column: 1 / -1; width: 100%; padding: 17px 30px 13px 3px; border: 0; border-bottom: 1px solid #263c56; background: transparent; }
  .matrix .compound-heading { display: block; width: 100%; padding: 0; border: 0; background: transparent; }
  .compound-link { font-size: .95rem; }
  .spec-text { font-size: .78rem; margin-top: 4px; }
  .spec-note { font-size: .71rem; }
  .bookmark-button { right: -29px; top: -5px; width: 31px; height: 32px; }
  .matrix td, .matrix tbody tr:nth-child(even) td, .matrix tbody tr:hover td { display: block; min-width: 0; padding: 0; border: 1px solid #2b4059; border-radius: 8px; background: #0d1b2d; overflow: hidden; }
  .matrix tbody tr td.empty-cell,
  .matrix tbody tr:nth-child(even) td.empty-cell,
  .matrix tbody tr:hover td.empty-cell { display: none; }
  .mobile-vendor { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 8px 6px 0; color: #93acc7; font-size: .7rem; font-weight: 550; line-height: 1.35; }
  .quote-button { min-height: 91px; padding: 9px 7px 12px; border: 0; border-radius: 0; gap: 4px; }
  .quote-price { font-size: 1.2rem; }
  .quote-unit { font-size: .74rem; }
  .quote-meta { font-size: .69rem; }
  .quote-subtle { font-size: .66rem; }
  .matrix td.best { border-color: #38705e; background: #12352f !important; }
  .matrix .best .quote-button { border: 0; background: #12352f; }
  .matrix .best .mobile-vendor { color: #8fceb5; }
  .matrix .no-quote { min-height: 88px; padding: 25px 10px; }
  .pagination { align-items: center; gap: 10px; padding: 15px 17px; }
  #page-info { font-size: .72rem; max-width: 43%; }
  .pagination > div { gap: 6px; }
  .pagination .button { padding: 8px 10px; min-height: 37px; font-size: .72rem; }
  .index-notes { display: block; margin: 17px 2px 0; }
  .index-notes p { font-size: .74rem; line-height: 1.75; }
  .index-notes .text-button { margin-top: 7px; }
  .small-print { margin-top: 7px; font-size: .71rem; line-height: 1.8; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 20px; padding: 33px 0 24px; }
  .page-heading h1 { font-size: 2.1rem; margin: 12px 0; }
  .page-heading p { font-size: .9rem; line-height: 1.7; }
  .page-heading .eyebrow { font-size: .64rem; }
  .page-heading > .button { max-width: 100%; }
  .local-badge { font-size: .74rem; }
  .vendor-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .vendor-card { padding: 22px; border-radius: 13px; }
  .vendor-title, .vendor-card-title { margin-bottom: 17px; }
  .vendor-title h3, .vendor-card-title h3 { font-size: 1.16rem; }
  .source-panel { margin-top: 22px; padding: 21px 18px; border-radius: 13px; }
  .source-panel .panel-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .source-row { gap: 11px; flex-wrap: wrap; padding: 17px 0; }
  .file-icon { width: 37px; height: 41px; }
  .source-row strong { font-size: .81rem; }
  .source-row > .button { margin-left: 48px; min-height: 34px; font-size: .73rem; }
  .source-row > a { margin-left: 48px; }
  .source-row .icon-button { margin-left: auto; }
  .publishing-note { gap: 12px; padding: 18px 17px; margin-bottom: 19px; }
  .publishing-note > [data-icon] svg { width: 18px; height: 18px; }
  .publishing-note strong { font-size: .88rem; }
  .publishing-note p { font-size: .81rem; line-height: 1.7; }
  .publishing-note > .button { margin-left: 30px; font-size: .78rem; }
  .update-layout { gap: 19px; }
  .import-panel { padding: 21px 17px; border-radius: 13px; }
  .import-panel > .panel-heading { gap: 12px; margin-bottom: 22px; }
  .import-panel > .panel-heading h2 { font-size: 1.23rem; }
  .form-grid { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .drop-zone { padding: 28px 17px 24px; margin-top: 20px; }
  .drop-zone strong { font-size: 1rem; }
  .drop-zone > span:not([data-icon]) { font-size: .79rem; }
  .drop-zone small { font-size: .7rem; }
  .import-options, .paste-option { margin-top: 18px; }
  .import-options summary, .paste-option summary { font-size: .8rem; }
  .update-sidebar { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .update-sidebar .panel { padding: 23px; border-radius: 13px; }
  .review-toolbar { gap: 11px; }
  .review-toolbar > .button { margin-left: auto; }
  .review-table input:not([type="checkbox"]), .review-table select { font-size: 16px; }
  .review-pagination { flex-wrap: wrap; gap: 10px; }
  .review-pagination > div { margin-left: auto; }
  .review-actions { align-items: stretch; flex-direction: column; }
  .review-actions > .field { flex: 0 1 auto; }
  .review-actions > .button { width: 100%; }
  .review-ack { padding: 12px; font-size: .78rem; }
  .notice { padding: 13px 14px; font-size: .8rem; }
  .detail-dialog { width: calc(100% - 20px); max-height: 94vh; border-radius: 13px; }
  .dialog-header { gap: 13px; padding: 21px 18px 18px; }
  #dialog-title { font-size: 1.32rem; line-height: 1.3; }
  #dialog-heading .eyebrow { font-size: .62rem; }
  #dialog-heading p { font-size: .78rem; }
  #dialog-content { padding: 21px 17px 24px; }
  .detail-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 19px; }
  .detail-summary > div { min-width: 0; padding: 14px; }
  .detail-summary > div:first-child:last-child { grid-column: 1/-1; }
  .detail-summary strong { font-size: 1.2rem; }
  .detail-summary span, .detail-summary small { font-size: .72rem; }
  .detail-hint { font-size: .76rem; }
  .source-evidence { padding: 13px; font-size: .72rem; line-height: 1.8; }
  .source-locator { font-size: .72rem; }
  .detail-bars { gap: 14px; padding: 18px 14px; margin: 20px 0; }
  .bar-row { grid-template-columns: 82px minmax(0,1fr) 63px; gap: 10px; font-size: .75rem; }
  .bar-track { height: 7px; }
  .dialog-copy { font-size: .87rem; line-height: 1.8; }
  .dialog-copy h3 { font-size: 1rem; }
  .note-line { font-size: .8rem; }
  .edit-form { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .edit-form input, .edit-form select { font-size: 16px; }
  .confirmation-actions { gap: 9px; }
  .confirmation-actions .button { flex: 1; font-size: .8rem; }
  .site-footer { gap: 15px; padding: 25px 0; margin: 0 17px; }
  .footer-brand { font-size: .9rem; }
  .footer-brand span { display: block; margin: 3px 0 0; font-size: .7rem; }
  .site-footer .text-button { margin-left: auto; font-size: .73rem; }
  .site-footer p { font-size: .73rem; }
  .toast { bottom: 15px; padding: 13px 17px; font-size: .81rem; }
}
@media (max-width: 370px) {
  .header-inner { padding-left: 13px; padding-right: 13px; }
  .header-export { padding: 7px 8px; font-size: .67rem; }
  .header-export [data-icon] { display: none; }
  .main-nav { gap: 8px; }
  .nav-button { font-size: .7rem; }
  .page-shell { padding-left: 12px; padding-right: 12px; }
  .hero-copy h1 { font-size: 2.05rem; }
  .stat-card { padding-left: 13px; }
  .stat-icon { right: 12px; }
  .pagination { padding-left: 13px; padding-right: 13px; }
  .pagination .button { padding: 8px; }
}
/* Keep frequently used controls at 14px and secondary metadata at 12px+. */
@media screen {
  .button, .text-button, .nav-button, .segmented button, .quick-picks button,
  .compact-select, .vendor-actions .button, .vendor-actions .text-button,
  .check-field, .review-actions select, details > summary { font-size: .875rem; }
  .matrix thead th { font-size: .8125rem; }
  .spec-note, .quote-unit, .quote-meta, .quote-subtle, .mobile-vendor,
  .pill, .review-row-number, .review-issues, .review-table th,
  .detail-table th, .detail-table small, .source-locator, .small-print,
  .source-row small, .source-row p, .drop-zone small, .review-extracted pre,
  .review-extracted textarea, .source-evidence, #page-info,
  .hero-meta, .stat-label, .detail-summary span, .detail-summary small,
  .detail-hint, .vendor-numbers span, .vendor-numbers small,
  .footer-brand span, .site-footer p { font-size: max(.75rem, 12px); }
}
@media screen and (max-width: 620px) {
  .main-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; min-height: 55px; gap: 10px; }
  .nav-button { white-space: normal; line-height: 1.35; padding: 0 1px 10px; }
  .header-export { font-size: .8125rem; }
  .segmented button { font-size: .8125rem; }
  .pagination .button { font-size: .8125rem; }
  .compact-select { font-size: .8125rem; }
  .review-pagination button { font-size: .8125rem; }
  .site-footer .text-button { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #fff !important; color: #111; font-size: 10pt; }
  .site-header, .site-footer, .hero-art, .main-nav, .search-row, .quick-picks, .advanced-filters, .segmented, .toolbar-actions, .pagination, .index-notes .text-button, .bookmark-button, .update-sidebar, .toast, .skip-link, .header-export { display: none !important; }
  .page-shell { max-width: none; padding: 0; margin: 0; }
  .hero { display: block; min-height: 0; padding: 0 0 16px; }
  .hero h1 { color: #111; font-size: 23pt; }
  .hero h1 span, .hero p, .hero-meta, .muted, .small-print, .index-notes p, .eyebrow { color: #444 !important; }
  .hero-meta { font-size: 8pt; }
  .stats-grid { gap: 8px; margin-bottom: 15px; }
  .stat-card, .panel, .workspace-panel, .vendor-card { box-shadow: none; background: #fff !important; border: 1px solid #bbb; }
  .stat-card { min-height: 0; padding: 10px; }
  .stat-value, .stat-label { color: #111; }
  .stat-icon { display: none; }
  .workspace-panel > .panel-heading { padding: 15px; }
  .workspace-panel { overflow: visible; }
  .index-toolbar { background: #fff; padding: 10px 15px; }
  #result-count { color: #333; }
  .matrix-scroll { overflow: visible; padding: 0; background: #fff; }
  .matrix { display: table; min-width: 0; width: 100%; table-layout: fixed; font-size: 8pt; }
  .matrix thead { display: table-header-group; }
  .matrix tbody { display: table-row-group; }
  .matrix tbody tr { display: table-row; padding: 0; page-break-inside: avoid; }
  .matrix th, .matrix td, .matrix .compound-heading, .matrix tbody tr:nth-child(even) td, .matrix tbody tr:hover td { display: table-cell; padding: 5px; background: #fff !important; color: #111; border: 1px solid #ccc; }
  .matrix thead th:first-child { width: 24%; padding-left: 7px; }
  .matrix thead th { padding: 8px 4px; background: #eee !important; color: #111; font-size: 7pt; }
  .matrix .compound-heading { padding: 7px; }
  .compound-link, .spec-text, .spec-note, .quote-price, .quote-unit, .quote-meta, .quote-subtle { color: #111 !important; font-size: 7pt; }
  .compound-link { font-size: 8pt; }
  .quote-button { min-height: 0; padding: 5px 0; border: 0 !important; background: transparent !important; }
  .quote-price { font-size: 10pt; }
  .matrix .best, .matrix .best .quote-button { background: #e4f3e9 !important; }
  .mobile-vendor { display: none !important; }
  .matrix td.empty-cell { display: table-cell; }
  .no-quote { color: #777; }
  .vendor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vendor-card { page-break-inside: avoid; }
  .vendor-title h3, .vendor-detail, .vendor-numbers strong { color: #111; }
  .detail-dialog[open] { position: absolute; inset: 0; width: 100%; max-height: none; color: #111; background: #fff; border: 0; box-shadow: none; overflow: visible; }
  .detail-dialog::backdrop { background: #fff; }
  .dialog-header { position: static; background: #fff; }
  .close-dialog { display: none; }
  .detail-scroll { overflow: visible; }
  .detail-table { min-width: 0; font-size: 8pt; }
  .detail-table th, .detail-table td { color: #111; background: #fff !important; border-color: #ccc; }
  .dialog-copy, .note-line, .source-locator, .detail-hint { color: #333; }
  .source-evidence { color: #222; background: #f7f7f7; max-height: none; }
}

/* Compact comparison and offer panel (v2). */
.comparison-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.9rem;background:var(--surface)}
.comparison-table thead th{background:#0b1727;color:#a1b5cc;text-align:left;text-transform:uppercase;letter-spacing:.065em;font-size:.7rem;font-weight:650;padding:14px 18px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.comparison-table thead th:nth-child(1){width:36%}.comparison-table thead th:nth-child(2){width:22%}.comparison-table thead th:nth-child(3){width:15%}.comparison-table thead th:nth-child(4){width:14%}.comparison-table thead th:nth-child(5){width:13%}
.comparison-table tbody th,.comparison-table tbody td{padding:15px 18px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;overflow-wrap:anywhere}
.comparison-table tbody th{font-weight:400}.comparison-table tbody tr:hover{background:#16263a}.comparison-table tbody tr:last-child>*{border-bottom:0}
.summary-compound{position:relative;padding-right:28px}.summary-compound .bookmark-button{right:0;top:-4px}.comparison-table .compound-link{font-size:.94rem}
.comparison-table small{display:block;color:var(--muted);font-size:.76rem;margin-top:3px;line-height:1.4}.summary-lowest{color:#8ee1c7;font-variant-numeric:tabular-nums}.summary-pack strong{font-size:.99rem}.summary-unit{font-variant-numeric:tabular-nums}.mobile-label{display:none}
.view-offers{display:inline-flex;justify-content:center;align-items:center;border:1px solid #2a4669;border-radius:8px;background:#1d3555;color:#a9ceff;font-weight:650;font-size:.79rem;padding:9px 12px;white-space:nowrap;min-height:39px}.view-offers:hover{background:#274b73;color:#fff;border-color:#527cb0}.summary-action{text-align:right!important}
.comparison-heading-note{font-size:.8rem}.offers-dialog{width:min(780px,calc(100% - 32px));max-height:90vh}.offers-dialog .dialog-header{padding:22px 24px;background:#121f32}.offers-dialog #dialog-content{padding:0 24px 20px}.close-dialog:has(.close-label){width:auto;min-width:62px;padding:9px 13px;font-size:.83rem;border-radius:9px}
.offers-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:15px 0;border-bottom:1px solid var(--border);font-size:.79rem}.offers-mode{display:flex;align-items:center;gap:8px;color:var(--muted)}.offers-mode select{min-width:145px;width:auto;padding:7px 9px;font-size:.78rem}.offers-count{font-size:.75rem;color:var(--muted);padding:12px 0 5px}.offer-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;border-bottom:1px solid var(--border);padding:17px 0}.offer-main{min-width:0}.offer-vendor{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;margin-bottom:4px}.offer-vendor strong{font-size:1.04rem;color:var(--text)}.offer-lowest{font-size:.72rem;color:#91e0c8;background:#19323a;padding:2px 7px;border-radius:5px}.offer-meta{font-size:.8rem;line-height:1.6;color:#9db3cd;overflow-wrap:anywhere}.offer-status{font-size:.76rem;color:var(--amber);margin-top:3px}.offer-amount{text-align:right;white-space:nowrap;display:flex;flex-direction:column;gap:3px;font-variant-numeric:tabular-nums}.offer-amount strong{font-size:1.08rem;color:var(--text)}.offer-amount span{font-size:.8rem;color:var(--muted)}.offer-evidence{margin-top:7px;font-size:.78rem}.offer-evidence summary{cursor:pointer;color:#a4c6f6;text-decoration:underline;text-underline-offset:3px}.offer-evidence-content{padding:10px 12px;margin-top:8px;border-radius:7px;background:#0b1727;color:var(--muted);overflow-wrap:anywhere}.offer-evidence-content pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.offer-evidence-content p,.offer-evidence-content ul{margin:0 0 7px}.offers-dialog .detail-hint{margin:15px 0 0}
@media(max-width:900px){.comparison-table thead th,.comparison-table tbody th,.comparison-table tbody td{padding:13px 11px}.comparison-table thead th:nth-child(1){width:32%}.comparison-table thead th:nth-child(2){width:21%}.comparison-table thead th:nth-child(5){width:17%}}
@media(max-width:640px){.comparison-heading-note{display:none}.comparison-table{display:block;background:transparent}.comparison-table thead{display:none}.comparison-table tbody{display:grid;gap:10px;padding-top:12px}.comparison-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:11px}.comparison-table tbody th,.comparison-table tbody td{display:block;padding:0;border:0;min-width:0}.comparison-table tbody th{grid-column:1/-1;padding-bottom:10px;border-bottom:1px solid var(--border)}.summary-vendor{grid-column:1/-1}.summary-pack,.summary-unit{align-self:start}.mobile-label{display:block;color:var(--quiet);font-size:.67rem;letter-spacing:.05em;text-transform:uppercase;margin-bottom:2px}.summary-action{grid-column:1/-1}.summary-action .view-offers{width:100%}.offers-dialog{width:calc(100% - 20px);max-height:94vh}.offers-dialog .dialog-header{padding:18px 15px}.offers-dialog #dialog-content{padding:0 15px 16px}.offer-list-row{gap:10px;grid-template-columns:minmax(0,1fr) auto}.offer-vendor strong{font-size:.97rem}.offer-amount strong{font-size:1rem}.offer-amount span,.offer-meta{font-size:.76rem}.offers-controls{gap:8px 12px}.offers-mode{width:100%;justify-content:space-between}.offers-mode select{max-width:65%}}
@media print{.comparison-table{display:table!important;color:#111;background:white}.comparison-table thead{display:table-header-group!important}.comparison-table tbody{display:table-row-group!important}.comparison-table tbody tr{display:table-row!important;page-break-inside:avoid}.comparison-table th,.comparison-table td{display:table-cell!important;color:#111!important;background:white!important;border:1px solid #ccc!important}.comparison-table small,.summary-lowest{color:#111!important}.summary-action,.comparison-table thead th:last-child,.view-offers,.mobile-label{display:none!important}}

/* Reference directory */
.directory-panel{margin-bottom:24px}.directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}.directory-entry{min-width:0;border:1px solid rgba(144,180,218,.17);border-radius:12px;padding:16px;background:rgba(95,144,205,.045)}.directory-entry h3{font-size:1rem;margin:0 0 6px}.directory-entry p{margin:0;font-size:.82rem;line-height:1.5;overflow-wrap:anywhere;color:#a9bdd7}.directory-note{margin:16px 0 0;font-size:.85rem}
