:root {
    --brand-blue: #06038d;
    --brand-cyan: #00a9e0;
    --ink: #202024;
    --muted: #686872;
    --paper: #f4f4f6;
    --surface: #ffffff;
    --line: #d9d9df;
    --navy: #06038d;
    --navy-soft: #1714aa;
    --teal: #06038d;
    --teal-dark: #06038d;
    --gold: #00a9e0;
    --radius: 10px;
    --shadow: 0 14px 38px rgba(6, 3, 141, .12);
    font-family: 'Overpass', 'Open Sans', Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://static.giant-bicycles.com/Fonts/overpass-v4-latin_latin-ext/overpass-v4-latin_latin-ext-regular-webfont.woff2') format('woff2');
}

@font-face {
    font-family: 'Overpass';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('https://static.giant-bicycles.com/Fonts/overpass-v4-latin_latin-ext/overpass-v4-latin_latin-ext-800-webfont.woff2') format('woff2');
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.archive-shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px 22px; color: #fff; background: linear-gradient(180deg, #08066f 0%, #06038d 62%, #030247 100%); display: flex; flex-direction: column; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 0 10px 24px; }
.brand-logo { width: 132px; height: auto; filter: brightness(0) invert(1); }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .02em; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.brand small { margin-top: 3px; color: #b9c8ff; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.archive-status { margin: 0 8px 25px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.055); color: #dce8e4; font-size: 12px; }
.archive-status span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--brand-cyan); box-shadow: 0 0 0 3px rgba(0,169,224,.18); }
.nav-label { margin: 0 12px 10px; color: #9cb0ff; text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 800; }
.sidebar nav a { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 13px; margin-bottom: 5px; border-radius: 4px; color: #d6dcff; text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .025em; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: white; }
.sidebar nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.12); box-shadow: inset 4px 0 var(--brand-cyan); }
.nav-icon { width: 20px; height: 20px; flex: 0 0 20px; border: 0; border-radius: 0; filter: brightness(0) invert(1); opacity: .82; }
.sidebar nav a:hover .nav-icon, .sidebar nav a[aria-current="page"] .nav-icon { opacity: 1; }
.sidebar-foot { margin-top: auto; padding: 18px 12px 4px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-foot span, .sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot span { color: #9cb0ff; text-transform: uppercase; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.sidebar-foot strong { margin-top: 6px; font-size: 14px; }
.sidebar-foot small { margin-top: 3px; color: #b9c8ff; font-size: 11px; }
.workspace { min-width: 0; }
.topbar { min-height: 88px; display: grid; grid-template-columns: minmax(280px, 660px) auto; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 42px; border-bottom: 1px solid var(--line); background: rgba(255,254,249,.86); backdrop-filter: blur(12px); }
.menu-button { display: none; }
.global-search label { display: block; margin-bottom: 6px; color: #5f6964; font-size: 11px; font-weight: 750; letter-spacing: .045em; }
.search-control { height: 46px; display: flex; align-items: center; border: 1px solid #cdd1ca; border-radius: 11px; background: white; overflow: hidden; box-shadow: 0 2px 7px rgba(22,35,30,.03); }
.search-control > span { margin-left: 15px; color: var(--teal); font-size: 24px; line-height: 1; transform: rotate(-15deg); }
.search-control input { min-width: 0; flex: 1; height: 100%; padding: 0 12px; border: 0; outline: 0; color: var(--ink); }
.search-control button { align-self: stretch; padding: 0 22px; border: 0; color: white; background: linear-gradient(90deg, var(--brand-blue), #008ed4); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.search-control:focus-within { outline: 3px solid rgba(20,122,112,.18); border-color: var(--teal); }
.mode-chip { padding: 9px 13px; border: 1px solid #c8c7eb; border-radius: 999px; color: var(--brand-blue); background: #efefff; font-size: 11px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.logout-form { margin-left: 14px; }
.logout-form button { min-height: 43px; min-width: 92px; border: 1px solid #c8d0e5; border-radius: 9px; background: white; color: var(--brand-blue); font-size: 11px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.logout-form button:hover { background: #f7f7ff; }
.topbar { align-items: center; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 20% 10%, #e8ecff, transparent 48%), var(--paper);
}

.auth-panel {
    width: min(420px, 100%);
    border-radius: 14px;
    border: 1px solid #d9d9df;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 28px 24px;
}

.brand-mark { width: 132px; margin-bottom: 10px; filter: grayscale(1); }
.auth-eyebrow { margin: 0 0 12px; color: var(--teal-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }

.auth-panel h1 {
    margin: 0 0 10px;
    font-family: 'Overpass', sans-serif;
    text-transform: uppercase;
    font-size: 34px;
}

.auth-panel p { margin-top: 0; margin-bottom: 18px; color: var(--muted); line-height: 1.45; }
.auth-form label { display: block; margin-bottom: 6px; margin-top: 14px; color: #404653; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #c6ced0;
    border-radius: 8px;
    padding: 0 12px;
}
.auth-form button {
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(90deg, var(--brand-blue), #008ed4);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
}
.auth-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #ffc9c9;
    border-left: 6px solid #d40000;
    border-radius: 8px;
    background: #fff4f4;
    color: #981313;
    font-size: 13px;
    font-weight: 600;
}
main { max-width: 1440px; padding: 48px 52px 72px; margin: 0 auto; }
.overview-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.eyebrow { margin: 0 0 10px; color: var(--teal); text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 850; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 14px; font-family: 'Overpass', 'Open Sans', Arial, sans-serif; font-size: clamp(38px, 4vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-transform: uppercase; }
.lede { max-width: 710px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.snapshot-card { min-width: 236px; padding: 20px 22px; border: 1px solid #d9d7cd; border-radius: 14px; background: rgba(255,254,249,.7); }
.snapshot-card span, .snapshot-card strong, .snapshot-card small { display: block; }
.snapshot-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.snapshot-card strong { margin: 7px 0 5px; font: 800 20px 'Overpass', sans-serif; text-transform: uppercase; }
.snapshot-card small { color: var(--teal-dark); font-size: 11px; }
.quick-find { position: relative; display: grid; grid-template-columns: minmax(240px, .8fr) minmax(360px, 1.2fr); align-items: center; gap: 35px; margin-top: 40px; padding: 28px 30px; overflow: hidden; border-radius: var(--radius); color: white; background: linear-gradient(112deg, #06038d 0%, #1714aa 58%, #008fcf 120%); box-shadow: var(--shadow); }
.quick-find::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -150px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 82px rgba(255,255,255,.018); }
.quick-find-copy { display: flex; gap: 17px; align-items: flex-start; }
.search-orbit { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--brand-cyan); font-size: 26px; transform: rotate(-15deg); }
.quick-find h2 { margin-bottom: 6px; font: 800 20px 'Overpass', sans-serif; text-transform: uppercase; }
.quick-find p { margin: 0; color: #bcd2ce; font-size: 13px; line-height: 1.55; }
.quick-find form { position: relative; z-index: 1; height: 52px; display: flex; overflow: hidden; border-radius: 10px; background: white; }
.quick-find input { min-width: 0; flex: 1; padding: 0 17px; border: 0; outline: 0; }
.quick-find button { padding: 0 19px; border: 0; color: #fff; background: linear-gradient(90deg, #008fd1, var(--brand-cyan)); font-weight: 800; text-transform: uppercase; cursor: pointer; }
.browse-section { margin-top: 50px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 19px; }
.section-heading h2 { margin: 0; font: 800 27px 'Overpass', sans-serif; text-transform: uppercase; }
.section-heading > p { color: var(--muted); font-size: 12px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.module-card { min-height: 218px; display: flex; flex-direction: column; padding: 23px; border: 1px solid #dadcd5; border-radius: 14px; background: var(--surface); text-decoration: none; box-shadow: 0 4px 15px rgba(26,39,33,.025); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.module-card:hover { transform: translateY(-3px); border-color: #aac8bf; box-shadow: var(--shadow); }
.module-card:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(20,122,112,.28); outline-offset: 3px; }
.module-initial { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 4px; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); font: 800 15px 'Overpass', sans-serif; }
.module-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.module-title span { font: 800 17px 'Overpass', sans-serif; text-transform: uppercase; }
.module-title strong { color: var(--teal-dark); font-size: 19px; }
.module-description { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.module-link { margin-top: auto; padding-top: 18px; color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.module-link span { display: inline-block; margin-left: 4px; transition: transform .18s ease; }
.module-card:hover .module-link span { transform: translateX(4px); }
.archive-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 32px; padding: 22px 24px; border: 1px solid #cfceef; border-radius: 10px; background: #efefff; }
.archive-note-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-blue); font: italic 800 18px 'Overpass', sans-serif; }
.archive-note h2 { margin-bottom: 5px; font-size: 14px; }
.archive-note p { margin: 0; color: #716a58; font-size: 12px; line-height: 1.55; }
.archive-note a { color: var(--brand-blue); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.results-heading h1 { font-size: clamp(34px, 4vw, 50px); }
.results-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; margin-top: 34px; align-items: start; }
.filter-panel { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.filter-panel h2 { margin-bottom: 18px; font: 800 17px 'Overpass', sans-serif; text-transform: uppercase; }
.filter-panel label { display: block; margin: 13px 0 6px; color: #4c5852; font-size: 11px; font-weight: 800; }
.filter-panel input, .filter-panel select { width: 100%; min-height: 43px; padding: 0 10px; border: 1px solid #cfd3cc; border-radius: 8px; background: white; }
.filter-panel button { width: 100%; min-height: 44px; margin-top: 17px; border: 0; border-radius: 8px; color: white; background: var(--teal); font-weight: 800; cursor: pointer; }
.filter-panel > p { margin: 18px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.5; }
.result-list { display: grid; gap: 10px; }
.result-card { min-height: 92px; display: grid; grid-template-columns: 115px minmax(0, 1fr) auto 24px; gap: 18px; align-items: center; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease; }
.result-card:hover { border-color: #a9c7be; box-shadow: 0 8px 24px rgba(24,41,36,.06); }
.result-type { justify-self: start; padding: 6px 9px; border-radius: 3px; color: #fff; background: var(--brand-blue); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.result-copy strong, .result-copy small, .result-meta time, .result-meta small { display: block; }
.result-copy strong { font: 800 16px 'Overpass', sans-serif; text-transform: uppercase; }
.result-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.result-meta { text-align: right; }
.result-meta time { color: #49534f; font-size: 12px; }
.result-meta small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.result-arrow { color: var(--teal); font-size: 18px; }
.empty-state { padding: 70px 30px; border: 1px dashed #c8cec6; border-radius: 14px; text-align: center; background: rgba(255,255,255,.4); }
.empty-state > span { color: var(--teal); font-size: 40px; }
.empty-state h2 { margin: 10px 0 8px; font: 800 21px 'Overpass', sans-serif; text-transform: uppercase; }
.empty-state p { color: var(--muted); font-size: 13px; }
.list-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.list-heading h1 { margin-bottom: 8px; font-size: clamp(34px, 4vw, 50px); }
.list-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 12px; }
.list-meta span { padding: 7px 10px; border-radius: 4px; color: var(--brand-blue); background: #eaeafd; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.record-toolbar { display: grid; grid-template-columns: auto minmax(280px, 500px); align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.record-toolbar label { color: var(--ink); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.record-toolbar > div { min-width: 0; display: flex; }
.record-toolbar input[type="search"] { min-width: 0; min-height: 48px; flex: 1; padding: 0 14px; border: 1px solid #c8ccd3; border-radius: 8px 0 0 8px; color: var(--ink); background: #fff; }
.record-toolbar button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 0 8px 8px 0; color: #fff; background: linear-gradient(90deg, var(--brand-blue), #008ed4); font-size: 12px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.adaptive-record-list { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.adaptive-record-row { min-height: 78px; display: grid; grid-template-columns: minmax(0, 1fr) auto 100px; align-items: center; gap: 22px; padding: 14px 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.adaptive-record-row:last-child { border-bottom: 0; }
.adaptive-record-row:hover { background: #f5f7ff; }
.record-primary strong, .record-primary small, .record-secondary time, .record-secondary small { display: block; }
.record-primary strong { font: 800 16px 'Overpass', sans-serif; text-transform: uppercase; }
.record-primary small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.record-secondary { text-align: right; }
.record-secondary time { font-size: 12px; }
.record-secondary small { margin-top: 4px; color: var(--teal-dark); font-size: 10px; font-weight: 750; }
.record-open { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); color: var(--brand-blue); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 11px; }
.breadcrumbs a { color: var(--teal-dark); text-decoration: none; }
.print-action { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid #bfc9c4; border-radius: 9px; color: var(--teal-dark); background: var(--surface); text-decoration: none; font-size: 12px; font-weight: 800; white-space: nowrap; }
.record-summary-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 28px; align-items: center; padding: 24px 28px; border: 1px solid var(--line); border-top: 4px solid var(--brand-cyan); border-radius: 10px; background: var(--surface); }
.record-summary-title { min-width: 0; }
.record-summary-title .eyebrow { margin-bottom: 5px; }
.record-summary-title h1 { max-width: none; margin: 0; overflow-wrap: anywhere; font-size: clamp(28px, 3vw, 42px); }
.record-summary-facts { display: flex; gap: 28px; margin: 0; }
.record-summary-facts > div { min-width: 88px; }
.record-summary-facts dt, .record-field-list dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.record-summary-facts dd { margin: 5px 0 0; color: var(--ink); font-size: 15px; font-weight: 800; white-space: nowrap; }
.record-tabs { min-width: 0; min-height: 58px; display: flex; gap: 2px; margin-top: 18px; padding: 0 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); scrollbar-width: thin; }
.record-tab { position: relative; min-width: max-content; min-height: 56px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.record-tab::after { content: ""; position: absolute; right: 14px; bottom: -1px; left: 14px; height: 4px; border-radius: 4px 4px 0 0; background: transparent; }
.record-tab:hover { color: var(--brand-blue); background: #f6f6ff; }
.record-tab[aria-current="page"] { color: var(--brand-blue); }
.record-tab[aria-current="page"]::after { background: var(--brand-cyan); }
.record-tab span { min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; color: var(--brand-blue); background: #eaeafd; font-size: 10px; }
.record-tab-panel { min-width: 0; margin-top: 14px; }
.record-section { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.record-section-heading { padding: 20px 22px 17px; border-bottom: 1px solid var(--line); }
.record-section-heading .eyebrow { margin-bottom: 5px; }
.record-section-heading h2 { margin: 0; font: 800 19px 'Overpass', sans-serif; text-transform: uppercase; }
.record-field-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.record-field-list > div { min-height: 78px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.record-field-list > div:nth-child(odd) { border-right: 1px solid var(--line); }
.record-field-list > div:nth-last-child(-n + 2) { border-bottom: 0; }
.record-field-list dd { margin: 7px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
.line-items-table { min-width: 0; }
.line-item { min-height: 60px; display: grid; grid-template-columns: minmax(180px, 1fr) 70px 110px 110px; gap: 16px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item strong { overflow-wrap: anywhere; font-size: 14px; }
.line-item strong > span, .line-item-identifiers { display: block; }
.line-item-identifiers { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.35; }
.line-item > span { font-size: 13px; text-align: right; }
.line-item-head { min-height: 42px; color: var(--muted); background: #f7f7fa; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.line-item-head > span { font-size: 10px; }
.line-item-head > span:first-child { text-align: left; }
.history-record-list { display: grid; }
.history-record-row { min-height: 78px; display: grid; grid-template-columns: minmax(0, 1fr) auto 104px; gap: 22px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.history-record-row:last-child { border-bottom: 0; }
a.history-record-row:hover { background: #f5f7ff; }
.history-record-copy, .history-record-meta { min-width: 0; display: flex; flex-direction: column; }
.history-record-copy > small { color: var(--brand-blue); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.history-record-copy > strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 14px; text-transform: uppercase; }
.history-record-copy > span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.history-record-meta { align-items: flex-end; text-align: right; }
.history-record-meta time { font-size: 12px; }
.history-record-meta small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.history-record-meta strong { margin-top: 4px; color: var(--ink); font-size: 13px; }
.history-record-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); color: var(--brand-blue); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.history-empty { margin: 0; padding: 24px 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.history-pagination { min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 8px 18px; border-top: 1px solid var(--line); background: #f8f8fa; }
.history-pagination a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid #c8ccd3; border-radius: 8px; color: var(--brand-blue); background: #fff; text-decoration: none; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.history-pagination a:last-child { justify-self: end; }
.history-pagination small { color: var(--muted); font-size: 11px; }
.archive-provenance { margin-top: 18px; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.55); }
.archive-provenance summary { min-height: 48px; display: flex; align-items: center; color: var(--brand-blue); cursor: pointer; font-size: 12px; font-weight: 800; }
.archive-provenance > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 0 18px; border-top: 1px solid var(--line); }
.archive-provenance p { margin: 16px 0 0; }
.archive-provenance span, .archive-provenance strong { display: block; }
.archive-provenance span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.archive-provenance strong { margin-top: 4px; overflow-wrap: anywhere; font-size: 12px; }
.archive-provenance .provenance-note { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.5; }
.error-page { max-width: 650px; margin: 70px auto; text-align: center; }
.error-page > span { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: var(--brand-blue); font: 800 27px 'Overpass', sans-serif; }
.error-page h1 { font-size: 44px; }
.error-page a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 25px; padding: 0 18px; border-radius: 9px; color: white; background: var(--teal); text-decoration: none; font-size: 12px; font-weight: 800; }
.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; }

@media (max-width: 1199px) {
    .archive-shell { grid-template-columns: 224px minmax(0, 1fr); }
    .sidebar { padding-inline: 14px; }
    main { padding-inline: 32px; }
    .topbar { padding-inline: 30px; }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-find { grid-template-columns: 1fr; }
    .line-item { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(58px, auto)); gap: 10px; }
    .record-summary-panel { grid-template-columns: minmax(0, 1fr) auto; }
    .record-summary-facts { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; }
}

@media (max-width: 820px), (orientation: portrait) and (max-width: 1032px) {
    .archive-shell { display: block; }
    .sidebar { position: fixed; z-index: 20; width: min(290px, 88vw); transform: translateX(-105%); box-shadow: 20px 0 60px rgba(0,0,0,.2); transition: transform .2s ease; }
    .sidebar.is-open { transform: none; }
    .topbar { grid-template-columns: auto 1fr; padding: 12px 18px; }
    .menu-button { min-height: 44px; display: block; border: 1px solid var(--line); border-radius: 9px; background: white; }
    .global-search label, .mode-chip { display: none; }
    .logout-form { margin-left: 0; }
    .logout-form button { min-width: 84px; min-height: 44px; }
    main { padding: 30px 18px 55px; }
    .overview-heading { grid-template-columns: 1fr; gap: 22px; }
    .snapshot-card { min-width: 0; }
    .quick-find { padding: 24px 20px; }
    .quick-find form { height: auto; flex-direction: column; background: transparent; gap: 9px; overflow: visible; }
    .quick-find input, .quick-find button { min-height: 48px; border-radius: 9px; }
    .module-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .archive-note { grid-template-columns: auto 1fr; }
    .archive-note a { grid-column: 2; }
    .results-layout { grid-template-columns: 1fr; }
    .result-card { grid-template-columns: 1fr auto; }
    .result-type { grid-column: 1; }
    .result-copy { grid-column: 1; }
    .result-meta { grid-column: 1; text-align: left; }
    .result-arrow { grid-column: 2; grid-row: 1 / span 3; }
    .list-title-row { align-items: flex-start; flex-direction: column; gap: 4px; }
    .list-meta { justify-content: flex-start; margin-bottom: 0; }
    .record-toolbar { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
    .adaptive-record-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 18px; }
    .record-secondary { text-align: left; }
    .record-open { grid-column: 2; grid-row: 1 / span 2; min-width: 82px; border-left: 1px solid var(--line); }
    .record-summary-panel { padding: 20px; gap: 20px; }
    .record-summary-facts { gap: 18px; }
    .record-summary-facts > div { min-width: 72px; }
    .record-tabs { padding-inline: 6px; }
    .record-tab { padding-inline: 14px; }
    .record-field-list { grid-template-columns: 1fr; }
    .record-field-list > div:nth-child(odd) { border-right: 0; }
    .record-field-list > div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .record-field-list > div:last-child { border-bottom: 0; }
    .line-item { grid-template-columns: minmax(0, 1fr) repeat(3, auto); padding-inline: 18px; }
    .history-record-row { grid-template-columns: minmax(0, 1fr) 86px; gap: 8px 16px; padding: 16px 18px; }
    .history-record-meta { align-items: flex-start; text-align: left; }
    .history-record-action { grid-column: 2; grid-row: 1 / span 2; }
}

@media print {
    .sidebar, .topbar, .quick-find, .archive-note { display: none !important; }
    .archive-shell { display: block; }
    main { max-width: none; padding: 0; }
    .module-card { break-inside: avoid; box-shadow: none; }
}
