:root {
    --ink: #202222; --muted: #656762; --gold: #c7a637; --gold-dark: #796017;
    --cream: #f6f5f0; --line: #e2dfd5; --white: #fff; --soft-gold: #f5eed8;
    --radius: 12px; --shadow: 0 4px 20px #29251606;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink); background: var(--cream); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
a { color: var(--gold-dark); text-underline-offset: 4px; }
a:hover { color: #5e4a11; }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
p { line-height: 1.7; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-weight: 600; letter-spacing: -1.25px; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin-bottom: 12px; }
h1:focus { outline: none; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; line-height: 1.35; }
h3 { font-size: 17px; font-weight: 600; }
.site-header { background: #171919; color: white; border-bottom: 2px solid var(--gold); }
.header-inner { max-width: 1220px; padding: 22px 32px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: Georgia, serif; font-size: 21px; line-height: 1.03; letter-spacing: .6px; }
.brand:hover { color: white; }
.brand img { object-fit: contain; background: white; border-radius: 5px; padding: 2px; }
.brand small { display: block; font-size: 14px; letter-spacing: 3.2px; margin-top: 4px; }
.header-label { font-size: 13px; display: flex; gap: 10px; align-items: center; }
.status-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.private-label { color: #d6d0bb; border: 1px solid #535044; padding: 5px 10px; border-radius: 30px; margin-left: 8px; font-size: 11px; }
.page-container { max-width: 1220px; padding: 28px 32px 72px; margin: auto; min-height: calc(100vh - 171px); }
.site-footer { max-width: 1156px; margin: auto; padding: 24px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.8px; font-size: 10px; font-weight: 700; color: var(--gold-dark); margin-bottom: 16px; }

/* Primary navigation and the current administration section stay distinct. */
.portal-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 8px; margin-bottom: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.portal-links, .portal-account { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.portal-account { margin-left: auto; }
.portal-navigation a { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 16px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.portal-navigation a:hover { background: #f5f3ec; color: var(--ink); }
.portal-navigation a.active { background: var(--ink); color: white; box-shadow: inset 0 -3px var(--gold); }
.portal-navigation form { margin: 0; }
.account-label { color: var(--muted); font-size: 11px; padding: 0 10px; }
.account-label:before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.section-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 32px; border: 1px solid var(--line); background: #eeece4; border-radius: 10px; }
.section-nav a { position: relative; padding: 11px 20px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; min-height: 44px; }
.section-nav a:hover { color: var(--ink); background: #ffffffa6; }
.section-nav a.active { color: #59450b; background: #fff9e8; border-color: #d8c487; box-shadow: 0 2px 4px #3f33120a; }
.section-nav a.active:after { content: ""; position: absolute; bottom: 4px; left: 28%; right: 28%; height: 2px; background: var(--gold-dark); border-radius: 2px; }
.admin-navigation a { flex: 1; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 34px 0 28px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-heading p:last-child { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.access-note { font-size: 12px; color: var(--gold-dark); white-space: nowrap; display: flex; gap: 8px; align-items: center; padding: 8px 13px; border: 1px solid #e5d8ae; background: var(--soft-gold); border-radius: 30px; }
.access-note:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dark); }

/* Shared controls: primary gold, secondary white, destructive red. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 19px; border-radius: 8px; background: var(--gold); color: #24200f; border: 1px solid #b99a2d; text-decoration: none; font-size: 13px; font-weight: 650; line-height: 1.5; box-shadow: 0 2px 3px #3a30100a; transition: background .15s, border-color .15s, box-shadow .15s; }
.button:not(:disabled):hover { background: #d4b447; color: #24200f; border-color: #aa8b22; box-shadow: 0 3px 8px #3a301014; }
.button.secondary { background: var(--white); color: #494b46; border-color: #d5d1c4; box-shadow: none; }
.button.secondary:not(:disabled):hover { background: #f7f4e9; border-color: #b6a873; color: var(--ink); }
.button.compact { min-height: 40px; padding: 8px 14px; font-size: 12px; }
.button.danger { background: #8c2929; color: #fff; border-color: #8c2929; }
.button.danger:not(:disabled):hover { background: #702020; color: #fff; border-color: #702020; }
.full-width { width: 100%; justify-content: space-between; margin-top: 24px; }
.text-button { background: none; border: none; border-radius: 6px; color: var(--gold-dark); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 10px 12px; min-height: 40px; }
.text-button:hover { background: var(--soft-gold); }
input:not([type="checkbox"]):not([type="hidden"]), select, textarea { background: #fff; border: 1px solid #d7d4ca; border-radius: 8px; padding: 11px 13px; min-height: 44px; min-width: 0; color: var(--ink); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
input:not([type="checkbox"]):hover, select:hover, textarea:hover { border-color: #b6b09e; }
input::placeholder, textarea::placeholder { color: #7c7d77; }
select { padding-right: 30px; }
textarea { resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: var(--gold-dark); }
input[type="file"] { width: 100%; padding: 6px !important; background: #faf9f5 !important; }
input[type="file"]::file-selector-button { background: #ede7d4; border: 0; border-radius: 5px; padding: 8px 12px; margin-right: 12px; font: inherit; font-weight: 600; color: #584717; cursor: pointer; }
fieldset { padding: 0; margin: 0; border: 0; }
fieldset label, .login-card form label { display: block; font-size: 12px; font-weight: 600; margin: 18px 0 8px; }
fieldset input, .login-card form input:not([type="checkbox"]):not([type="hidden"]) { width: 100%; }
fieldset input:disabled { background: #fafaf8; color: #666; }
.acknowledgment, .login-card .acknowledgment, .admin-form .acknowledgment { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; padding: 14px; border: 1px solid #e5ddc3; border-radius: 8px; background: #faf8f0; font-size: 13px; line-height: 1.65; font-weight: 400; }
.login-card .acknowledgment input { width: 18px; }
.admin-form .acknowledgment input { width: 18px; }

.login-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; padding: 38px 0 35px; }
.login-introduction { padding-top: 28px; }
.login-introduction h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4vw, 54px); font-weight: 400; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 26px; }
.login-introduction h1 em { font-weight: 400; color: var(--gold-dark); }
.intro-copy { color: var(--muted); font-size: 15px; }
.welcome-note { margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gold-dark); }
.fund-list { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.fund-list span { display: flex; align-items: center; gap: 8px; }
.fund-list span:before { content: ""; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.login-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: 0 12px 35px #29251608; }
.login-card .eyebrow { margin-bottom: 12px; }
.login-card h2 { font-size: 28px; margin-bottom: 10px; }
.login-card > p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.visitor-note { border-top: 1px solid var(--line); margin: 24px 0 0; padding-top: 18px; font-size: 12px; color: var(--muted); }
.visitor-note summary { color: var(--gold-dark); font-weight: 600; padding: 3px 0; }
.visitor-note[open] summary { margin-bottom: 16px; }
.declaration-trigger { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; padding: 12px 15px; border: 1px solid #ddd4b6; border-radius: 8px; background: #fffdf7; color: var(--gold-dark); text-align: left; font-size: 13px; font-weight: 600; }
.declaration-trigger:hover { background: var(--soft-gold); border-color: #beaa68; }
.declaration-trigger-detail { font-weight: 400; }
html:has(.declaration-dialog[open]) { overflow: hidden; }
.declaration-dialog { width: min(760px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid #d6cda9; border-radius: 18px; background: #f6f5f0; color: var(--ink); box-shadow: 0 24px 90px #00000040; }
.declaration-dialog[open] { display: flex; flex-direction: column; }
.declaration-dialog::backdrop { background: #161916a6; backdrop-filter: blur(5px); }
.declaration-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 26px 30px 22px; border-bottom: 2px solid var(--gold); background: #fff; flex-shrink: 0; }
.declaration-dialog-header .eyebrow { margin-bottom: 8px; }
.declaration-dialog-header h2 { font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 400; margin: 0 0 6px; }
.declaration-dialog-header h2:focus { outline: none; }
.declaration-dialog-header p:last-child { color: var(--muted); font-size: 12px; margin: 0; }
.dialog-close { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; padding: 0; background: #f5f3ec; border: 1px solid var(--line); border-radius: 50%; color: #55564f; font-size: 25px; line-height: 1; }
.dialog-close:hover { background: var(--soft-gold); color: var(--ink); }
.declaration-dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 24px; min-height: 0; }
.declaration-dialog-body:focus-visible { outline-offset: -4px; }
.declaration-document { padding: 30px 34px; background: white; border: 1px solid #e5e0d2; border-radius: 8px; box-shadow: var(--shadow); }
.declaration-document > img { display: block; object-fit: contain; margin-bottom: 24px; }
.declaration-document .declaration-copy { font-size: 14px; line-height: 1.9; margin-bottom: 0; color: #393c36; }
.declaration-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-shrink: 0; padding: 18px 30px; border-top: 1px solid var(--line); background: white; }
.declaration-dialog-footer > span { font-size: 12px; line-height: 1.5; color: var(--muted); }
.declaration-dialog-footer .button { min-width: 100px; flex-shrink: 0; }
.name-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-login { max-width: 500px; margin: 48px auto; }
.admin-login h1 { font-size: 30px; }
.admin-login form > .button { margin: 18px 0; }
.notice { font-size: 13px; background: var(--soft-gold); padding: 14px 18px; border: 1px solid #e6d9ab; border-left: 3px solid var(--gold); border-radius: 8px; line-height: 1.6; }
.development-entry { display: flex; gap: 15px; align-items: center; border-top: 1px solid var(--line); padding: 24px 0 0; margin-top: 25px; font-size: 12px; color: var(--muted); }
.development-entry > a { margin-left: auto; font-weight: 600; flex-shrink: 0; }
.preview-tag { background: #e9e7df; padding: 5px 8px; border-radius: 4px; color: #4f504b; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.preview-banner { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: var(--soft-gold); border: 1px solid #e0d3a4; border-radius: 10px; padding: 14px 18px; font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
.preview-banner a { margin-left: auto; white-space: nowrap; }

/* Library filters, document cards and pagination. */
.fund-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; }
.filter-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 8px; }
.filter-button { padding: 10px 16px; border-radius: 8px; background: #fff; border: 1px solid #dcd8cc; color: #53554f; font-size: 12px; font-weight: 600; min-height: 42px; transition: background .15s, border-color .15s; }
.filter-button:not(:disabled):hover { background: #f5efdc; border-color: #c4b375; }
.filter-button.selected { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px var(--gold); }
.filter-button.selected:hover { background: #343632; border-color: #343632; }
.section-title { border-bottom: 1px solid var(--line); padding: 10px 0 14px; position: relative; font-size: 13px; font-weight: 650; }
.section-title:after { content: ""; position: absolute; height: 2px; background: var(--gold); width: 74px; left: 0; bottom: -1px; }
.library-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 22px 0 18px; }
.category-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.search-box { display: flex; align-items: center; border: 1px solid #d7d4ca; border-radius: 8px; background: var(--white); padding: 3px; margin: 0; }
.search-box:focus-within { border-color: var(--gold-dark); }
.search-box input:not([type="hidden"]) { border: 0; background: transparent; min-width: 0; width: 190px; padding: 9px 12px; min-height: 38px; }
.search-box .text-button { text-decoration: none; background: var(--soft-gold); padding: 8px 13px; min-height: 36px; }
.document-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-heading { display: flex; justify-content: space-between; gap: 15px; background: #faf9f5; border-bottom: 1px solid #eeede8; padding: 16px 24px; font-size: 11px; letter-spacing: .3px; color: var(--muted); }
.document-row { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding: 26px 24px; border-bottom: 1px solid var(--line); }
.document-row:hover { background: #fdfcf8; }
.document-row h2 { font-size: 18px; margin: 0 0 8px; overflow-wrap: anywhere; }
.document-row p { font-size: 12px; color: var(--muted); margin: 0; }
.document-row .button { flex-shrink: 0; }
.empty-state { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty-state h2 { font-size: 21px; margin-bottom: 10px; color: var(--ink); }
.empty-state p { font-size: 13px; margin-bottom: 12px; }
.document-icon { margin: 0 auto 22px; width: 64px; height: 72px; border-radius: 12px; background: #f8f4e8; display: grid; place-items: center; }
.document-icon svg { width: 25px; height: 32px; fill: none; stroke: var(--gold-dark); stroke-width: 1.3; }
.library-footnote { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 22px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pagination a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: white; text-decoration: none; font-weight: 600; }

/* Administration uses the same controls and card language as visitor pages. */
.admin-panel { padding: 26px; margin: 24px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
details.admin-panel { padding: 0; }
.admin-panel summary { padding: 22px 26px; font-weight: 600; border-radius: var(--radius); color: var(--ink); }
.admin-panel summary:hover { background: #faf8ef; }
.admin-panel summary::marker { color: var(--gold-dark); }
.admin-panel[open] > summary { border-bottom: 1px solid var(--line); background: #faf8ef; border-radius: var(--radius) var(--radius) 0 0; }
.admin-panel[open] > :not(summary) { margin-left: 26px; margin-right: 26px; }
.admin-panel[open] > :last-child { margin-bottom: 26px; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 820px; margin-top: 22px; align-items: start; }
.admin-form label, .admin-filters label { display: grid; gap: 7px; font-size: 12px; font-weight: 600; }
.admin-form label:first-of-type, .admin-form label:has(textarea), .admin-form label:has(input[type="file"]), .admin-form .acknowledgment { grid-column: 1 / -1; }
.admin-form input:not([type="checkbox"]), .admin-form select, .admin-form textarea { width: 100%; }
.admin-form textarea { min-height: 120px; }
.admin-form > .button { grid-column: 1 / -1; justify-self: start; }
.admin-form .acknowledgment { margin: 0; }
.admin-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.admin-filters label:first-child { flex: 1 1 230px; }
.admin-filters input { width: 100%; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0 0; }
.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 650px; font-size: 13px; }
.table-scroll th, .table-scroll td { padding: 16px 18px; border-bottom: 1px solid #ece9e0; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.table-scroll th { background: #eeebe1; color: #62604f; font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr:hover { background: #fcfaf3; }
.table-scroll .record-link { font-weight: 600; color: var(--ink); text-decoration-color: #bba45a; }
.delete-link { color: #8c2929; font-size: 12px; font-weight: 600; }
.status-badge { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid #e1ddd2; border-radius: 30px; background: #f2f0eb; color: #5c5b54; font-size: 11px; font-weight: 600; white-space: nowrap; text-transform: capitalize; }
.status-badge.published { background: #f5eed8; border-color: #e0cf91; color: #6a5410; }
.status-badge:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.declaration-copy { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.8; }
.admin-panel code { overflow-wrap: anywhere; }
#delete-document { border-color: #ddc1b8; }
#delete-document h2 { color: #862d27; }
.workflow-list { display: flex; gap: 32px; flex-wrap: wrap; margin: 28px 0; font-size: 12px; color: var(--muted); }
.workflow-list b { color: var(--gold-dark); margin-right: 8px; font-weight: 600; }
.message-panel { max-width: 600px; margin: 65px auto; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.message-panel p { font-size: 14px; color: var(--muted); }
.message-panel .button { margin-top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 15px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 10px; }
#blazor-error-ui { display: none; background: #fff3cd; bottom: 0; position: fixed; width: 100%; padding: 16px 24px; z-index: 1000; border-top: 1px solid var(--gold); font-size: 13px; }
#blazor-error-ui .dismiss { float: right; border: 0; background: transparent; }

@media (max-width: 900px) {
    .login-layout { gap: 32px; }
    .login-card { padding: 26px; }
    .fund-list { gap: 12px; }
    .library-controls { align-items: stretch; flex-direction: column; }
    .search-box input:not([type="hidden"]) { width: 100%; }
    .site-footer { margin: 0 32px; }
    .development-entry { flex-wrap: wrap; }
    .development-entry > a { margin-left: 0; }
    .section-nav a { padding: 10px 14px; }
    .account-label { display: none; }
}
@media (max-width: 620px) {
    .header-inner { padding: 18px 20px; gap: 12px; }
    .brand { font-size: 18px; gap: 9px; }
    .brand small { font-size: 12px; }
    .brand img { width: 42px; height: 38px; }
    .header-label { font-size: 11px; }
    .private-label { display: none; }
    .page-container { padding: 20px 16px 45px; }
    .portal-navigation { gap: 8px; margin-bottom: 20px; }
    .portal-navigation a { padding: 9px 11px; font-size: 12px; }
    .portal-account { flex: 1 1 100%; justify-content: flex-end; border-top: 1px solid #eeece5; padding-top: 8px; }
    .section-nav { gap: 4px; margin-bottom: 24px; }
    .admin-navigation { display: grid; grid-template-columns: repeat(3, 1fr); }
    .section-nav a { padding: 10px 8px; font-size: 12px; }
    .login-layout { grid-template-columns: 1fr; padding: 8px 0; gap: 26px; }
    .login-introduction { padding-top: 8px; }
    .login-introduction h1 { font-size: 39px; }
    .intro-copy { font-size: 14px; }
    .desktop-break { display: none; }
    .fund-list { margin-top: 24px; font-size: 11px; }
    .login-card { padding: 24px; }
    .declaration-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
    .declaration-dialog-header { padding: 20px; gap: 10px; }
    .declaration-dialog-header h2 { font-size: 24px; }
    .declaration-dialog-body { padding: 12px; }
    .declaration-document { padding: 22px 18px; }
    .declaration-document .declaration-copy { font-size: 13px; line-height: 1.8; }
    .declaration-dialog-footer { padding: 14px 20px; gap: 14px; }
    .declaration-dialog-footer .button { min-width: 72px; }
    .admin-login { margin: 26px auto; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin: 28px 0 24px; }
    .page-heading h1 { font-size: 30px; }
    .access-note { font-size: 11px; }
    .filter-button { padding: 10px 12px; }
    .filter-label { width: 100%; margin-bottom: 2px; }
    .preview-banner { gap: 8px; }
    .preview-banner a { margin-left: 0; }
    .list-heading { gap: 8px; flex-wrap: wrap; padding: 14px 18px; }
    .document-row { align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px 18px; }
    .empty-state { padding: 40px 18px; }
    .empty-state h2 { font-size: 19px; }
    .site-footer { margin: 0 20px; font-size: 11px; flex-wrap: wrap; }
    .message-panel { margin: 20px auto; padding: 26px; }
    .workflow-list { gap: 15px; }
    .admin-panel { padding: 20px; }
    .admin-panel summary { padding: 20px; }
    .admin-panel[open] > :not(summary) { margin-left: 20px; margin-right: 20px; }
    .admin-panel[open] > :last-child { margin-bottom: 20px; }
    .admin-form { grid-template-columns: 1fr; }
    .admin-form > .button { justify-self: stretch; }
    .admin-filters { padding: 16px; }
    .admin-filters label { flex: 1 1 100%; }
}
@media (max-width: 400px) {
    .name-fields { grid-template-columns: 1fr; gap: 0; }
    .header-label { max-width: 90px; }
    .header-label .status-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { transition: none !important; scroll-behavior: auto !important; }
}
