:root{font-family:Segoe UI,Arial,sans-serif;color:#1e3340;background:#f4f6f8;font-size:15px}*{box-sizing:border-box}body{margin:0}header{height:66px;background:#102f3d;color:white;display:flex;align-items:center;gap:16px;padding:0 24px}header button{background:transparent;border:1px solid #71878e;padding:6px 12px}header span{font-weight:400}.institution{margin-left:auto;background:#ffffff15;border-radius:5px;padding:6px 16px}.shell{display:flex;min-height:calc(100vh - 66px)}aside{width:238px;flex-shrink:0;background:white;border-right:1px solid #dce4e7;padding:30px 22px}aside small{display:block;margin-top:70px;color:#708089;line-height:1.7}nav a{display:block;padding:12px;margin:4px 0;border-radius:6px;color:#35515e;text-decoration:none}nav a:hover,nav a.current{background:#e5f2ef;color:#00634f}nav form{margin-top:30px}main{padding:36px 42px;max-width:1400px;width:100%;min-width:0}.eyebrow{font-size:11px;letter-spacing:1.5px;font-weight:700;color:#6d858c}h1{font-size:29px;letter-spacing:-.7px;margin:8px 0 28px}h2{font-size:19px;margin-top:0}h3{font-size:16px}p{line-height:1.6}.card{background:white;border:1px solid #dce4e7;border-radius:10px;padding:26px;margin-bottom:22px;box-shadow:0 3px 10px #17323e03}.narrow{max-width:520px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}label{display:block;font-size:13px;font-weight:600;margin:16px 0 6px}input,select,textarea{width:100%;padding:11px;border:1px solid #bdcbd1;border-radius:5px;background:white;font:inherit;color:inherit}select[multiple]{min-height:135px}input[type=checkbox]{width:auto;margin-right:8px}textarea{min-height:120px}button,.button{border:0;border-radius:5px;background:#087763;color:white;padding:11px 18px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;display:inline-block}form button{margin-top:16px}.secondary{background:#edf2f4;color:#2e4b59}.danger{background:#a93838}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.actions form{display:inline}.actions form button{margin:0}.badge{display:inline-block;padding:4px 9px;border-radius:20px;font-size:12px;background:#e7efee;color:#176a56}.badge.blocked,.badge.deleted{background:#fae7e7;color:#a33434}.badge.invited{background:#fff2d7;color:#785713}.muted{color:#6f828b;font-size:13px}.notice,.error{padding:16px 20px;border-radius:6px;background:#deefe7;margin-bottom:20px}.error{background:#fbe6e4;color:#832b26}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#6d858c;background:#f7f9fa}td,th{padding:13px 12px;border-bottom:1px solid #e4eaed;vertical-align:top}td{font-size:14px}details{margin-top:12px}summary{cursor:pointer;color:#087763;font-weight:600}a{color:#086d62}footer{font-size:12px;color:#84949d;margin-top:45px}.qr svg{width:190px;height:190px}.codes{background:#f4f6f8;padding:15px;overflow-wrap:anywhere}.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.filters label{flex:1;min-width:160px}.filters button{margin-bottom:0}.hidden-menu aside{display:none}svg{max-width:100%}nav[role=navigation] svg{width:20px}nav[role=navigation]{margin-top:15px}nav[role=navigation] a{display:inline-block}@media(max-width:800px){main{padding:24px 18px}aside{width:205px;position:absolute;z-index:5;min-height:90vh;box-shadow:5px 8px 18px #0002}header{padding:0 15px}header strong span{display:none}.grid{grid-template-columns:1fr}.card{padding:20px}.table-wrap{margin:0 -8px}h1{font-size:25px}}

/* Shared responsive tables and accessible pagination (no Tailwind dependency). */
.grid > * { min-width: 0; }
.card, td, th { overflow-wrap: anywhere; }
.table-wrap { max-width: 100%; overscroll-behavior-x: contain; }
.table-wrap table { min-width: 600px; }
.table-wrap td { min-width: 100px; }
.table-hint { display: none; font-size: 12px; color: #536b76; }
.pagination { border-top: 1px solid #dce4e7; padding-top: 16px; margin-top: 20px; }
.pagination-summary { color: #536b76; font-size: 13px; margin: 0 0 12px; }
.pagination-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; margin: 0; border: 1px solid #bdcbd1; border-radius: 6px; text-decoration: none; color: #086d62; background: white; }
.pagination .page-link:hover { background: #e5f2ef; }
.pagination [aria-current="page"] { color: white; background: #087763; border-color: #087763; font-weight: 700; }
.pagination [aria-disabled="true"] { color: #647680; background: #f4f6f8; }
.page-gap { padding: 8px 4px; }
:focus-visible { outline: 3px solid #176eab; outline-offset: 3px; }
summary { min-height: 32px; padding: 6px 0; }
@media(max-width:800px) {
    .table-hint { display: block; }
    .table-wrap { margin: 0; }
    input, select, textarea { font-size: 16px; }
    aside { top: 66px; bottom: 0; position: fixed; overflow-y: auto; min-height: 0; }
    .pagination-controls { gap: 6px; }
}
.section-links { display:flex; flex-wrap:wrap; gap:18px; margin-bottom:24px; } .preserve-lines { white-space:pre-wrap; } dd { margin:8px 0 20px; } section { scroll-margin-top:20px; } article { border-bottom:1px solid #dce4e7; padding:12px 0; }
.extracted-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.preserve-lines{overflow-wrap:anywhere} blockquote{border-left:3px solid #087f70;margin:1rem 0;padding:0 1rem;white-space:pre-wrap;overflow-wrap:anywhere}

/* Shared institutional controls, navigation and reading surfaces. */
:root { --institution-primary:#086b59; --institution-header:#102f3d; }
header { background:var(--institution-header); }
button,.button { background:var(--institution-primary); min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; line-height:1.4; }
button.secondary,.button.secondary { background:#edf2f4; color:#2e4b59; }
button.danger { background:#a93838; }
header button { background:transparent; }
input:not([type=checkbox]),select { min-height:44px; }
input,select,textarea { margin-top:7px; }
.icon { width:20px; height:20px; flex-shrink:0; vertical-align:middle; }
label > .icon { width:17px; height:17px; margin-right:4px; }
nav a { display:flex; gap:10px; align-items:center; }
.badge { display:inline-flex; align-items:center; gap:5px; line-height:1.5; }
.badge .icon { width:15px; height:15px; }
.state-draft { background:#edf2f4; color:#405560; }
.state-published,.state-active { background:#deefe7; color:#18543e; }
.state-pending { background:#fff2d7; color:#704d09; }
.state-withdrawn { background:#fae7e7; color:#8b2929; }
.field-error { display:block; color:#832b26; font-weight:500; margin:7px 0; font-size:13px; }
[aria-invalid=true] { border:2px solid #a93838; }
fieldset { border:1px solid #dce4e7; border-radius:8px; padding:20px; margin:20px 0; min-width:0; }
legend { font-weight:700; color:#35515e; padding:0 8px; }
.breadcrumbs { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:18px; font-size:13px; }
.view-intro { max-width:780px; color:#536b76; margin-bottom:22px; }
.reading { max-width:850px; line-height:1.75; }
.result-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.source-meta { display:flex; flex-wrap:wrap; gap:8px 24px; color:#536b76; font-size:13px; }
.context-bar { background:#eaf2f1; border-left:3px solid var(--institution-primary); padding:15px 18px; margin:20px 0; border-radius:6px; }
.filters { margin-bottom:20px; }
.library-filters { margin-bottom:24px; }
.library-filters .filters { margin-bottom:4px; }
.muted,.eyebrow,footer,aside small { color:#536b76; }
@media(max-width:800px) { .filters { display:grid; grid-template-columns:1fr; } .filters label { min-width:0; } .actions > .button { flex:1; } fieldset { padding:16px; } .institution { max-width:44%; overflow-wrap:anywhere; font-size:12px; } }

.writing-text { white-space: pre-wrap; overflow-wrap: anywhere; } .writing-template-section { margin-block: 1rem; }
.state-approved { background:#deefe7; color:#18543e; }
.state-review,.state-observations { background:#fff2d7; color:#704d09; }
