@font-face {
  font-family: "Particulars Display";
  src: url("vendor/inter-display-latin.woff2") format("woff2");
  font-style: normal; font-weight: 100 900; font-display: swap;
}
:root {
  --ink: #20211d; --muted: #63655d; --paper: #f5f5ef; --panel: #fff;
  --line: #dedfd5; --black: #191a16; --gold: #f3c750; --brass: #80601a;
  --tint: #fbf1ce; --radius: 16px; --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --verified: #55431e; --declared: #e4ae32; --conflict: #9c7643; --unknown: #d9dad1;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Particulars Display", "Helvetica Neue", sans-serif;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--paper);
  font-variant-numeric: tabular-nums;
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0 }
button, input, select { font: inherit; color: inherit }
:where(button, summary, select) { cursor: pointer }
a { color: inherit; text-decoration: none }
:focus-visible { outline: 3px solid #99700b; outline-offset: 3px }
h1, h2, h3, p, dl, dd { margin: 0 }
h1 { font-size: clamp(32px, 3.25vw, 50px); line-height: 1.04; font-weight: 600; letter-spacing: -.043em }
h2 { font-size: clamp(19px, 1.6vw, 25px); font-weight: 600; letter-spacing: -.029em; line-height: 1.18 }
h3 { font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; display: inline-block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle }
[hidden] { display: none !important }
.review-breakdown { margin: 0 0 14px; color: var(--muted); font-size: .9rem }
.review-breakdown summary { width: fit-content; color: var(--ink); font-weight: 600; padding-block: 4px }
.review-breakdown p { max-width: 74ch; margin-top: 4px }
.review-breakdown ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0; list-style: none }
.review-breakdown li { display: flex; gap: 8px; padding: 4px 9px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px }
.scan-report p { color: var(--muted); margin: 6px 0 }
.scan-report dl { margin-top: 12px }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip-link:focus { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px; background: white }
.js-only { display: none !important }
.has-js .js-only { display: inline-flex !important }
.has-js .review-note { display: flex !important; flex-direction: column; align-items: flex-start; gap: 5px; margin-block: 14px; font-weight: 600 }
.review-note small { font-weight: 400; color: var(--muted) }
.review-note textarea { width: min(100%, 38rem); min-height: 48px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; font-weight: 400; resize: vertical }
[data-offline-panel] .button { margin-top: 12px }
[data-offline-status], [data-download-status] { font-size: .88rem; overflow-wrap: anywhere }
.comparison-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 12px; margin-top: 16px }
.comparison-source { display: flex; flex-direction: column; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper) }
.comparison-source h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 610; letter-spacing: -.025em }
.comparison-source .evi { margin: 12px 0 0; padding: 3px 0 4px; background: transparent; border: 0; line-height: 1.5; overflow-wrap: anywhere }
.comparison-source .text-link { display: flex; gap: 7px; margin-top: auto; padding-top: 15px; min-height: 44px; font-size: 13px; overflow-wrap: anywhere }
.comparison-source .text-link > .icon { flex: none }
.comparison-source .text-link > .icon:last-child { margin-inline-start: auto }
.facts .mobile-material-fact { display: none }
.shell { display: grid; grid-template-columns: clamp(202px, 16vw, 220px) minmax(0, 1fr); min-height: 100vh }
.sidebar { background: var(--black); color: #edeee5; position: sticky; top: 0; align-self: start; height: 100dvh; display: flex; flex-direction: column; padding: 26px 14px 18px; overflow-y: auto }
.brand, .mobile-brand { display: inline-flex; align-items: center; gap: 9px; line-height: 1; width: fit-content }
.brand { margin: 0 7px 52px }
.brand > .icon { color: var(--gold); font-size: 25px; stroke-width: 2.2 }
.wordmark { font-size: 25px; font-weight: 650; letter-spacing: -.043em; white-space: nowrap }
.wordmark > span { color: var(--gold) }
.nav-caption { color: #a3a397; font-size: 12px; font-weight: 500; margin: 0 12px 10px }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 11px; border-radius: 8px; color: #cccdc3; font-size: 14px; font-weight: 500 }
.nav-link > .icon { width: 19px; height: 19px }
.nav-link + .nav-link { margin-top: 3px }
.nav-link:hover { background: #2d2e28; color: white }
.nav-link.selected { background: #35352a; color: #f7d877 }
.nav-divider { border-top: 1px solid #3c3d35; margin: 17px 8px }
.nav-count { margin-left: auto; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-weight: 650; background: #414031; color: #ffdb77 }
.side-bottom { margin: auto 4px 0; padding: 20px 4px 0; border-top: 1px solid #3c3d35; display: flex; align-items: center; gap: 10px }
.side-bottom strong, .side-bottom small { display: block }
.side-bottom strong { font-size: 13px }.side-bottom small { color: #a8a99d; font-size: 12px }
.company-monogram, .workspace-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px }
.company-monogram { background: #30312b; color: #d7d7ca }.company-monogram .icon { width: 21px; height: 21px }
.workarea { min-width: 0; display: flex; flex-direction: column }
:root { scroll-padding-top: var(--workspace-header-height, 68px) }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 60px; padding: 10px clamp(16px, 2.8vw, 46px); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fcfcf8; border-bottom: 1px solid var(--line) }
.breadcrumbs, .topbar-context { display: flex; align-items: center; gap: 12px }
.breadcrumbs { font-size: 13px; color: var(--muted); gap: 9px }.breadcrumbs strong { font-weight: 550; color: var(--ink) }.breadcrumbs .icon { width: 13px; height: 13px }
.vault-tag { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; color: #53564d }
.vault-tag i { width: 7px; height: 7px; background: #ad8129; border-radius: 50% }
.workspace-avatar { width: 33px; height: 33px; border: 1px solid #ddd7bf; background: #ede9d9; font-weight: 650; font-size: 12px }
.mobile-brand, .mobile-menu { display: none }
main, footer { width: 100%; max-width: 1650px; padding-inline: clamp(16px, 2.8vw, 46px); margin-inline: auto; min-width: 0 }
main { padding-block: 30px 26px; flex: 1; overflow-wrap: anywhere }
main:focus { outline: none }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 23px }
.page-heading p, .panel-header p { color: var(--muted); margin-top: 5px; font-size: 14px }
.actions, .nav { display: flex; align-items: center; flex-wrap: wrap; gap: 9px }
.button, .btn, .record-page button, .icon-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; border: 1px solid var(--line); background: white; padding: 9px 13px; border-radius: 8px; font-size: 13px; line-height: 1.3; font-weight: 600; white-space: normal }
.button.primary, .btn, .record-page button:not(.ghost):not(.warn) { background: var(--gold); border-color: var(--gold); color: #221c09 }
.button:hover, .btn:hover, .record-page button:hover { border-color: #9f843a; box-shadow: 0 1px 4px #18191412 }
.button.primary:hover { background: #ffd262 }
.metric-strip { display: grid; grid-template-columns: minmax(0,1.85fr) repeat(3,minmax(0,1fr)); gap: 14px }
.assembly-card, .metric-card, .panel, .card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel) }
.assembly-card { background: #20211c; color: white; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; padding: 17px 17px 15px; min-height: 155px; isolation: isolate }
.assembly-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; max-width: 60%; z-index: 1 }
.assembly-label { color: #e5c97b; font-size: 12px; font-weight: 550 }
.assembly-text strong { font-size: clamp(25px,2.4vw,41px); line-height: 1.12; letter-spacing: -.052em; font-weight: 600 }
.assembly-text > span:last-child { color: #dddcd0; font-size: 12px; line-height: 1.35 }
.assembly-card img { position: absolute; width: 48%; height: 90%; right: 0; bottom: -1%; object-fit: contain; z-index: -1 }
.assembly-link { display: inline-flex; align-items: center; gap: 6px; color: #f7de99; font-size: 12px; font-weight: 550; margin-top: auto; padding-top: 9px }
.assembly-link .icon { width: 14px; height: 14px }
.metric-card { display: flex; flex-direction: column; justify-content: flex-start; padding: 15px 17px; line-height: 1.2 }
.metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px }
.metric-top > .icon { color: #77796e; width: 15px; height: 15px }
.stat-icon, .row-icon { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #f2f2eb; color: #4e5046 }
.metric-card:last-child .stat-icon { background: var(--tint); color: var(--brass) }
.metric-label { font-size: 13px; font-weight: 550 }
.metric-card strong { font-size: clamp(31px,2.8vw,45px); font-weight: 575; letter-spacing: -.06em; margin-block: 2px }
.metric-card small { font-size: 12px; color: var(--muted); margin-top: auto }
.metric-card:hover, .assembly-card:hover { border-color: #a89153 }
.chart-grid, .lower-grid { display: grid; grid-template-columns: minmax(0,1.48fr) minmax(0,1fr); gap: 14px; margin-block: 16px }
.panel { padding: 20px; min-width: 0 }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px }
.panel-header p { font-size: 13px }
.icon-link { flex: none; width: 30px; height: 30px; padding: 0; border-radius: 50% }
.icon-link:hover { background: var(--tint) }
.scenarios { border: 0; min-width: 0; padding: 0; margin: 14px 0 0 }
.scenarios > label { cursor: pointer; display: inline-block; padding: 4px 10px; border-radius: 5px; font-size: 12px; color: var(--muted); background: #f3f3ed }
.scenarios input:checked + label { color: var(--ink); background: #e6e4d9; font-weight: 650 }
.scenarios input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 2px }
.scenario-view { display: none; margin-top: 19px }
#basis-tv:checked ~ .tv, #basis-nc:checked ~ .nc { display: block }
.bar-chart { display: flex; gap: 9px; height: 110px }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; color: var(--muted); font-size: 10px; line-height: 1; padding-bottom: 20px; min-width: 29px }
.bar-field { flex: 1; min-width: 0; display: flex; justify-content: space-around; gap: 9px; position: relative; isolation: isolate }
.bar-field::before { content: ""; position: absolute; inset: 4px 0 24px; z-index: -1; border-block: 1px dashed #dcdcd4; background: linear-gradient(transparent calc(50% - .5px),#e5e5db 50%,transparent calc(50% + .5px)) }
.bar-column { width: 29%; display: flex; flex-direction: column; align-items: center; justify-content: end; font-size: 11px; text-align: center; color: var(--muted) }
.bar-track { flex: 1; width: 68%; max-width: 82px; min-width: 36px; position: relative; margin: 4px 0 6px }
.bar-column > span { height: 18px }
.bar-value { width: 100%; height: var(--bar-size); bottom: var(--bar-base); position: absolute; border-radius: 5px 5px 1px 1px; background: #34362b }
.bar-value b { position: absolute; bottom: calc(100% + 1px); left: 50%; transform: translateX(-50%); color: var(--ink); font-size: 11px; font-weight: 650; white-space: nowrap; background: white; padding-inline: 2px }
.mid .bar-value { background: #e8b83e }
.ceiling .bar-value { background: repeating-linear-gradient(130deg,#ecd892 0 4px,#faf0c8 4px 7px) }
.chart-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.4 }
.coverage-card { display: flex; flex-direction: column }
.coverage { display: flex; align-items: center; justify-content: space-around; gap: 18px; padding: 16px 0; flex: 1 }
.ring { display: grid; place-items: center; flex: none; width: clamp(104px,10vw,156px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from -90deg,var(--verified) 0 var(--end-verified),var(--declared) var(--end-verified) var(--end-declared),var(--conflict) var(--end-declared) var(--end-conflict),var(--unknown) var(--end-conflict) 100%) }
.ring > span { width: 74%; aspect-ratio: 1; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; flex-direction: column; line-height: 1 }
.ring strong { font-size: clamp(33px,3vw,50px); font-weight: 600; letter-spacing: -.06em }.ring small { font-size: 12px; color: var(--muted); margin-top: 4px }
.legend { font-size: 13px; flex: 1; max-width: 160px; min-width: 95px }
.legend > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0 }
.legend dt, .card-foot-link, .text-link { display: inline-flex; align-items: center; gap: 8px }
.legend dd { font-weight: 650 }
.swatch { display: inline-block; width: 9px; height: 9px; flex: none; border-radius: 3px; background: var(--unknown) }
.swatch.verified { background: var(--verified) }.swatch.declared { background: var(--declared) }.swatch.conflict { background: var(--conflict) }
.card-foot-link { border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; font-weight: 600; justify-content: space-between }
.card-foot-link:hover, .text-link:hover { color: var(--brass) }
.ledger { scroll-margin-top: 18px }.ledger .panel-header { align-items: center }
.list-tools { gap: 7px; flex-wrap: wrap }
.search-box, select, input[type=number] { min-height: 35px; border: 1px solid var(--line); background: white; border-radius: 7px; font: inherit; font-size: 12px }
.search-box { display: inline-flex; align-items: center; gap: 6px; padding-inline: 9px; color: var(--muted) }
.search-box input { min-width: 0; width: 102px; border: 0; background: transparent; padding: 6px 0; font-size: 12px }
.search-box:focus-within { outline: 2px solid var(--brass) }.search-box input:focus { outline: none }
select, input[type=number] { padding: 6px 9px }
.material-cols { display: grid; grid-template-columns: minmax(180px,1.5fr) minmax(110px,1fr) .38fr minmax(95px,.52fr) 25px; align-items: center; gap: 12px }
.index-head { margin-top: 16px; background: #f2f3eb; color: #5f6355; font-size: 11px; font-weight: 550; padding: 9px 11px; border-radius: 5px }
.index-row { border-bottom: 1px solid var(--line) }
.index-row:last-of-type { border: 0 }
summary { list-style: none }summary::-webkit-details-marker { display: none }
.index-row > summary { padding: 12px 10px; font-size: 13px; border-radius: 5px; min-height: 51px }
.index-row > summary:hover, .compact-row:hover { background: #f8f7ed }
.index-row[open] > summary, .index-row:target > summary { background: #faf4dc }
.record-name { display: flex; align-items: center; gap: 10px; min-width: 0 }
.record-name strong, .compact-row strong { display: block; font-weight: 600; font-size: 13px; line-height: 1.35 }
.record-name small, .compact-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px }
.material-row .record-name small, .origin-cell, .document-hash { font-family: var(--mono); font-size: 11px }
.row-icon { width: 31px; height: 31px; border: 1px solid #e4e5da; background: #f8f9f3 }
.supplier-cell { font-size: 12px; color: #53564d }.origin-cell { color: #464a40 }
.badge { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: #efefe8; color: #50534a; font-size: 11px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere }
.badge::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor }
.badge.conflict, .badge.high, .badge.rejected { background: #f9ead4; color: #83511e }
.badge.declared, .badge.proposed, .badge.medium, .badge.open { background: #faf0c9; color: #70520f }
.badge.verified, .badge.approved, .badge.confirmed, .badge.resolved { background: #414437; color: white }
.disclose { display: grid; place-items: center; width: 25px; height: 25px; color: #65685b }
.disclose .icon { width: 16px; height: 16px }.index-row[open] > summary .disclose { transform: rotate(180deg) }
.row-body { padding: 14px 14px 17px; background: #fbfbf7; font-size: 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px }
.facts { display: flex; flex-wrap: wrap; gap: 12px 24px }.facts dt { font-size: 11px; color: var(--muted) }.facts dd { margin-top: 2px; font-size: 14px; font-weight: 550 }
.text-link { cursor: pointer; width: fit-content; color: var(--ink); border: 0; background: transparent; padding: 0; font-weight: 650; font-size: 13px }
.empty { color: var(--muted); font-size: 14px; padding: 20px 0 }
.compact-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line) }.compact-row:last-child { border: 0 }.compact-row:first-of-type { margin-top: 8px }
.grow { flex: 1; min-width: 0 }
.rebuild { margin-top: 15px }
footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-block: 14px; color: var(--muted); font-size: 11px }
footer > span:first-child { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0 }
footer a { text-decoration: underline; text-underline-offset: 2px }

/* Record pages share the dashboard's navigation, disclosure rows and review states. */
.record-page { max-width: 1450px }
.record-page > .panel, .record-page > .notice, .record-page > .detail-grid, .record-page > .method-grid { margin-bottom: 16px }
.record-page h1 { font-size: clamp(29px,3vw,45px) }.record-page h2 small { font-size: 15px; color: var(--muted) }
.back-link { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 17px }
.back-link:hover { color: var(--ink) }
.input-facts .facts { display: grid; gap: 13px; margin-top: 20px }
.detail-grid { display: grid; grid-template-columns: minmax(195px,.55fr) minmax(0,1.45fr); align-items: start; gap: 15px }
.flag-cols, .doc-cols { display: grid; align-items: center; gap: 12px }
.flag-cols { grid-template-columns: minmax(0,1fr) minmax(70px,.24fr) minmax(95px,.24fr) 25px }
.doc-cols { grid-template-columns: minmax(0,1fr) minmax(68px,.17fr) minmax(40px,.12fr) 25px }
.panel > .index-head:first-child { margin-top: 0 }
.finding-body { display: grid; justify-items: start; justify-content: stretch; align-items: start }
.document-meta { min-width: 0 }.document-hash { color: var(--muted); overflow-wrap: anywhere }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px }
.filter-tabs a { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; font-size: 13px }
.filter-tabs a[aria-current] { background: var(--black); color: white }.filter-tabs span { opacity: .72 }
.filter-tabs b { font-weight: 550 }
.flag-search { flex-wrap: wrap; align-items: center; gap: 4px 14px; width: 100%; margin-bottom: 10px }
.flag-search .search-box { flex: 1 1 260px; max-width: 440px; min-height: 42px }
.flag-search .search-box input { flex: 1; width: 100%; font-size: 14px }
.flag-search button { min-height: 42px }
.flag-search [role=status] { font-variant-numeric: tabular-nums }
.index-row.flag-search-miss { display: none }
@media (max-width: 600px) {
  .flag-search .search-box { flex-basis: 100% }
  .flag-search .search-box input { font-size: 16px }
}
.flag-decision { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 13px; width: 100% }
.flag-decision h3 { font-size: 15px; margin: 0 0 5px }
.flag-decision p { margin: 3px 0 }
.flag-decision .actions { margin-top: 10px; gap: 8px }
.flag-decision .button { min-height: 40px }
.flag-history { margin-top: 15px }
.flag-history h4 { margin: 0 0 5px; font-size: 13px }
.flag-history ol { padding: 0; margin: 0; list-style: none }
.flag-history li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; margin: 4px 0; font-size: 13px }
.flag-history time { color: var(--muted); font-variant-numeric: tabular-nums }
.flag-feedback { background: var(--panel); color: var(--ink); border-left: 3px solid var(--gold); padding: 9px 12px; margin-bottom: 12px }
.flag-feedback a { margin-left: 6px }
.index-row[hidden], .compact-row[hidden], [data-flag-action][hidden], .flag-feedback[hidden] { display: none !important }
.evidence-row > summary { display: flex; align-items: center; gap: 12px }
.evidence-row .record-name { flex: 1; min-width: 0 }.evidence-row:first-of-type { margin-top: 14px }
.record-page button.warn { color: #724821; background: #fcf5e9; border-color: #e4d6c3 }
.evi { display: block; font-size: 14px; white-space: pre-wrap; margin: 0; border-left: 3px solid #cca342; background: #f2f1e8; padding: 9px 13px; width: 100% }
.small, .document-meta small { font-size: 12px; color: var(--muted) }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--tint); border: 1px solid #ebd99b; border-radius: 10px; padding: 14px 17px; font-size: 14px }
.fx { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px }.fx input { width: 104px }
.method-grid, .downloads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px }
.measure { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 13px 0 }
.measure:last-child { border-bottom: 0; padding-bottom: 0 }.measure strong, .measure small { display: block; font-size: 13px }.measure small { font-size: 11px; color: var(--muted) }.measure b { font-size: 21px; font-weight: 600; letter-spacing: -.045em }
.export-totals { margin: 14px 0; gap: 18px 45px }.export-totals dd { font-size: clamp(24px,3vw,40px); font-weight: 550; letter-spacing: -.045em }
.downloads h2 { margin-top: 15px }.downloads p { margin: 7px 0 17px; color: var(--muted); font-size: 14px }
.table-scroll { overflow: auto; margin-top: 14px; max-width: 100% }
.import-mapping > summary { display: flex; align-items: center; gap: 12px; list-style: none }
.import-mapping > summary::-webkit-details-marker { display: none }
.mapping-heading { flex: 1; min-width: 0 }
.mapping-heading strong, .mapping-heading small { display: block }
.mapping-heading strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em }
.mapping-heading small, .mapping-rows, .mapping-unused { color: var(--muted) }
.import-mapping[open] > summary .disclose { transform: rotate(180deg) }
.mapping-sheet { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 15px }
.mapping-location { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px }
.mapping-location h3 { font-size: 15px }
.mapping-location .text-link { font-size: 12px }
.mapping-columns { width: 100%; min-width: 0; table-layout: fixed; margin: 12px 0 6px }
.mapping-columns :is(td,th) { padding: 7px 10px; white-space: normal; overflow-wrap: anywhere }
.mapping-columns td:first-child { font-family: var(--mono); font-size: 12px }
.mapping-rows { font-size: 12px }
.mapping-derived { margin: 8px 0; padding-inline-start: 18px; font-size: 13px }
.mapping-issues { margin: 12px 0 0; padding: 8px 12px 8px 30px; background: var(--tint); border-inline-start: 3px solid var(--brass); font-size: 13px }
table { width: 100%; border-collapse: collapse; font-size: 13px }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line) }th { background: #f2f3eb; font-size: 12px; font-weight: 600 }
td a { color: #6c500b; text-decoration: underline; text-underline-offset: 2px }
.record-page .doc-title { font-size: clamp(24px,2vw,36px) }
.source-page .page { overflow-wrap: anywhere; white-space: pre-wrap; font: 13px/1.65 var(--mono); margin: 12px 0 0; max-height: 60vh; overflow: auto }
mark.hl { color: var(--ink); background: #ffe386; padding: 2px; scroll-margin-top: 16px }
.record-page .card { padding: 17px; margin-top: 16px }
.sample-result { margin-bottom: 16px }
.sample-review p { color: var(--muted); margin-top: 5px; font-size: 14px }
.sample-review blockquote { margin: 16px 0 7px; padding: 3px 0 3px 14px; border-left: 3px solid var(--gold); font-size: clamp(18px,2vw,26px); font-weight: 550 }
.sample-review .actions { margin-top: 17px }

@media (min-width: 1650px) {
  .metric-strip, .chart-grid, .lower-grid { gap: 20px }.panel { padding: 25px }
  .metric-card, .assembly-card { padding: 20px; min-height: 173px }
  .bar-chart { height: 134px }
}
@media (max-width: 1150px) {
  .coverage { gap: 12px }.panel { padding: 16px }.metric-card { padding: 13px }
  .topbar, main, footer { padding-inline: 22px }.metric-strip { gap: 10px }
  .assembly-text { max-width: 65% }.chart-grid { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) }
  .ledger .panel-header { flex-wrap: wrap }.material-cols { grid-template-columns: minmax(160px,1.55fr) minmax(90px,.8fr) .32fr minmax(84px,.5fr) 20px; gap: 8px }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0,1fr) }.sidebar, .breadcrumbs, .workspace-avatar { display: none }
  .mobile-brand { display: inline-flex; color: var(--ink) }.mobile-brand .wordmark > span { color: #89650b }
  .topbar { gap: 14px; min-height: 55px }.topbar-context { margin-left: auto }
  .mobile-menu { display: block; position: relative }.mobile-menu > summary { border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px }
  .mobile-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 8; width: 220px; background: var(--black); padding: 10px; border-radius: 12px; box-shadow: 0 12px 34px #0003 }
}
@media (max-width: 700px) {
  .topbar, main, footer { padding-inline: 14px }main { padding-top: 21px }
  .page-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 15px }
  .metric-strip { grid-template-columns: repeat(3,minmax(0,1fr)) }
  .assembly-card { grid-column: 1/-1; min-height: 136px; padding: 16px 18px }
  .assembly-card img { width: 42%; height: 100%; right: 0 }
  .assembly-text strong { font-size: 32px }.metric-card { min-height: 116px; padding: 11px }.metric-top { margin-bottom: 7px }
  .metric-card small { display: none }.metric-card strong { font-size: 31px }
  .chart-grid, .lower-grid, .detail-grid, .method-grid { grid-template-columns: minmax(0,1fr); gap: 12px }
  .coverage { justify-content: flex-start; gap: 26px }.legend { max-width: none }.ring { width: 110px }
  .index-head.material-cols { display: none }.material-cols { grid-template-columns: minmax(0,1fr) auto 19px }
  .material-row > summary { padding: 12px 0; gap: 5px }.material-row .supplier-cell, .material-row .origin-cell { display: none }
  .facts .mobile-material-fact { display: block }
  .material-row .facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100% }
  .material-row .record-name { gap: 8px }.record-name strong { font-size: 12px }.record-name .row-icon { width: 26px; height: 26px }
  .list-tools { width: 100% }.search-box { flex: 1; min-width: 120px }.search-box input { width: 100% }
  .input-facts .facts { display: flex; flex-wrap: wrap; gap: 10px 24px }
  .ledger .panel-header { margin-bottom: 10px }.bar-chart { height: 120px }
  .flag-cols { grid-template-columns: minmax(0,1fr) auto auto 15px; gap: 5px }
  .doc-cols { grid-template-columns: minmax(0,1fr) 48px 35px 15px; gap: 5px }
  .doc-cols > span, .flag-cols > span { min-width: 0 }.index-row > summary .disclose { width: 18px }
  .downloads { grid-template-columns: 1fr }footer { align-items: flex-start; flex-direction: column; gap: 5px }
}
@media (max-width: 380px) {
  .metric-card { padding: 8px }.metric-strip { gap: 6px }.metric-label { font-size: 12px }
  .panel { padding: 12px }.badge { padding-inline: 5px }
}

/* Disclosures, estimates and actions reflect the user's movement through the evidence. */
@media (prefers-reduced-motion: no-preference) {
  .workspace-arriving .scenario-view .bar-field,
  .scenarios:focus-within .scenario-view .bar-field {
    animation: read-estimates .56s cubic-bezier(.22,.72,.24,1) both;
  }
  .workspace-arriving .scenarios:not(:focus-within) .bar-field { animation-delay: .26s }
  .index-row .disclose { transition: transform .22s cubic-bezier(.2,.72,.25,1) }
  .index-row > summary, .nav-link { transition: background-color .18s ease, color .18s ease }
  .index-row[open] > .row-body { animation: unfold-record .21s ease-out both }
  .button, .btn, .icon-link { transition: background-color .16s, border-color .16s, transform .16s }
  :is(.button,.btn,.icon-link):active { transform: scale(.98) }
  .assembly-card img, .card-foot-link .icon, .text-link .icon:last-child {
    transition: transform .35s cubic-bezier(.2,.72,.25,1);
  }
  @media (hover: hover) {
    .assembly-card:hover img { transform: scale(1.045) rotate(-1.5deg) }
    .card-foot-link:hover .icon, .text-link:hover .icon:last-child { transform: translateX(2px) }
  }
}
@keyframes read-estimates {
  from { clip-path: inset(-20px 100% -2px 0) }
  to { clip-path: inset(-20px 0 -2px 0) }
}
@keyframes unfold-record {
  from { opacity: .25; transform: translateY(-3px) }
  to { opacity: 1; transform: none }
}

/* The existing workspace stays fully painted while the destination is loading. */
#main[aria-busy="true"]::before {
  content: ""; position: fixed; inset: 0 auto auto 0; z-index: 20;
  width: 32%; height: 2px; background: var(--gold); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  #main[aria-busy="true"]::before { transform-origin: left; animation: route-progress 1s .16s ease-out both }
  .route-arriving { animation: route-settle 180ms cubic-bezier(.2,.76,.26,1) }
}
@keyframes route-progress { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes route-settle {
  from { transform: translateY(7px) scale(.997); transform-origin: 50% 0 }
  to { transform: none; transform-origin: 50% 0 }
}

.flag-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px }
.flag-feedback [role="status"] { flex: 1 1 20rem }
.flag-feedback a { min-height: 44px; margin: 0 }
.flag-feedback [hidden] { display: none !important }
@media (max-width: 560px) {
  .flag-feedback [data-flag-next] { flex: 1 1 auto; justify-content: center }
}
