* { box-sizing: border-box; }
:root { color-scheme: light; --paper:#f0f3f6; --ink:#142238; --sub:#475970; --line:#d5dde6; --accent:#a13b27; --navy:#172842; --red:#861f24; }
body { margin:0; background:var(--paper); color:var(--ink); font:1rem/1.5 "Segoe UI", system-ui, sans-serif; }
a { color:inherit; }
button, input, select, textarea { font:inherit; }
button, select { cursor:pointer; }
:focus-visible { outline:3px solid #aa4b31; outline-offset:3px; }
.shell { width:min(92%, 82rem); margin-inline:auto; }
.masthead { color:white; background:var(--navy); border-bottom:3px solid #dc7754; }
.masthead-inner { min-height:4.5rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.brand { display:inline-flex; align-items:center; text-decoration:none; gap:.75rem; font-size:1.15rem; letter-spacing:-.02em; }
.brand-symbol { display:flex; align-items:flex-end; gap:3px; width:27px; height:24px; }
.brand-symbol i { display:block; height:21px; width:6px; border-radius:1px; background:#e78866; }
.brand-symbol i:nth-child(2) { height:16px; background:#f0ab88; }
.brand-symbol i:nth-child(3) { height:23px; transform:rotate(-12deg); }
.masthead-actions { display:flex; align-items:center; gap:1rem; }
.environment { color:#ffe7d9; padding:.2rem .55rem; border:1px solid #b47967; border-radius:6px; font-size:.875rem; }
.logout { border:0; color:white; background:transparent; padding:.375rem 0; font-size:.875rem; text-decoration:underline; text-underline-offset:.2rem; }
main { padding-block:2.6rem 3.5rem; }
.catalogue-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:1rem; margin-bottom:1.45rem; }
.eyebrow { color:var(--accent); font-weight:700; font-size:.9rem; }
h1, h2, p { margin:0; }
h1 { margin-top:.15rem; font-size:clamp(2rem,4vw,3rem); line-height:1.13; letter-spacing:-.035em; overflow-wrap:anywhere; }
.total { color:var(--sub); margin-bottom:.2rem; }
.total strong { color:var(--ink); }
.panel { background:white; border:1px solid var(--line); border-radius:14px; box-shadow:0 3px 12px #20334e0b; }
.filters { padding:1.15rem; display:grid; grid-template-columns:minmax(15rem,2fr) repeat(3,minmax(7rem,1fr)) auto; align-items:end; gap:.85rem; margin-bottom:1.4rem; }
label { min-width:0; display:grid; align-content:start; gap:.35rem; font-size:.875rem; font-weight:650; }
input:not([type=hidden]), select, textarea { display:block; width:100%; min-width:0; border:1px solid #aebacc; color:var(--ink); background:#fff; border-radius:7px; padding:.54rem .7rem; font-size:1rem; font-weight:400; min-height:2.65rem; }
select { appearance:none; padding-right:1.8rem; background:linear-gradient(45deg,transparent 50%,#526277 50%) calc(100% - 13px) 51%/5px 5px no-repeat, linear-gradient(135deg,#526277 50%,transparent 50%) calc(100% - 8px) 51%/5px 5px no-repeat; }
textarea { resize:vertical; }
.primary, .secondary, .edit-link { min-height:2.65rem; display:inline-flex; justify-content:center; align-items:center; white-space:nowrap; padding:.45rem .85rem; border:1px solid transparent; border-radius:7px; text-decoration:none; font-weight:650; font-size:.93rem; }
.primary { background:var(--navy); color:#fff; }
.primary:hover { background:#294669; }
.secondary, .edit-link { color:var(--navy); border-color:#c3ceda; background:white; }
.secondary:hover,.edit-link:hover { background:#e9eef5; }
.filter-actions,.save-bar { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.result-meta { padding:.85rem 1.15rem; color:var(--sub); font-size:.94rem; }
.result-meta strong { color:var(--ink); }
.table-wrap { overflow:auto; max-width:100%; }
table { width:100%; min-width:47rem; border-collapse:collapse; text-align:left; font-size:.94rem; }
thead { background:#e8eef5; color:#324860; }
th,td { padding:.82rem .85rem; border-bottom:1px solid #e1e7ef; vertical-align:middle; }
th:first-child,td:first-child { padding-left:1.15rem; }
thead th { font-size:.89rem; }
tbody th { width:32%; }
tbody tr:hover { background:#f5f8fc; }
.book-title { color:var(--navy); text-decoration-color:#8f9caf; text-underline-offset:.19em; font-weight:700; }
.book-kind { display:block; color:var(--sub); font-size:.875rem; font-weight:400; margin-top:.12rem; }
.status { display:inline-block; padding:.16rem .48rem; border-radius:5px; background:#e9eef5; color:#273f59; font-size:.875rem; }
.edit-link { min-height:2.15rem; padding:.22rem .62rem; }
.date { white-space:nowrap; font-variant-numeric:tabular-nums; }
.pagination { display:flex; justify-content:flex-end; align-items:center; gap:.75rem; padding:.8rem 1rem; color:var(--sub); }
.empty { padding:2.5rem 1.25rem 3rem; text-align:center; }
.empty p { margin-top:.4rem; color:var(--sub); }
.auth-layout { min-height:calc(100vh - 5rem); display:grid; place-items:start center; padding-top:clamp(2rem,10vh,6rem); }
.auth-panel { width:min(100%,28rem); padding:clamp(1.25rem,5vw,2rem); }
.google-option { margin-top:1.65rem; }
.google-option a { width:100%; }
.auth-form { display:grid; gap:1.05rem; margin-top:1.65rem; }
.auth-form button { margin-top:.35rem; }
.edit-layout { max-width:61rem; }
.back { text-underline-offset:.2rem; color:var(--sub); }
.edit-heading { margin:1.05rem 0 1.3rem; }
.edit-heading h1 { font-size:clamp(1.85rem,3.8vw,2.6rem); }
.edit-form { padding:clamp(1rem,3vw,1.5rem); }
.field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.wide { grid-column:1 / -1; }
.other-fields { margin-top:1.35rem; border-top:1px solid var(--line); padding-top:1rem; }
summary { color:var(--navy); cursor:pointer; font-weight:700; }
.other-fields .field-grid { margin-top:1rem; }
.save-bar { margin-top:1.45rem; border-top:1px solid var(--line); padding-top:1rem; }
.notice { padding:.75rem 1rem; border-radius:7px; border:1px solid; margin-bottom:1rem; }
.auth-form .notice { margin:0; }
.positive { color:#165737; background:#e4f2e9; border-color:#a8cbb5; }
.negative { color:var(--red); background:#fbe9e9; border-color:#e4a6a6; }
.field-error { color:var(--red); }
[aria-invalid=true] { border-color:var(--red) !important; }
.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:62rem) { .filters { grid-template-columns:repeat(3,minmax(0,1fr)); } .search { grid-column:1/-1; } .filter-actions { grid-column:1/-1; } }
@media (max-width:37.5rem) { .shell { width:92%; } main { padding-top:1.6rem; } .catalogue-heading { align-items:flex-start; flex-direction:column; gap:.35rem; } .filters,.field-grid { grid-template-columns:1fr; } .pagination { justify-content:center; flex-wrap:wrap; } }
