:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #1d2733;
  --muted: #667382;
  --line: #e3e8ee;
  --navy: #173d66;
  --navy-dark: #0f2c4b;
  --blue: #286aa8;
  --blue-soft: #eaf3fb;
  --green: #20835b;
  --green-soft: #e8f5ef;
  --amber: #b76b0b;
  --amber-soft: #fff3dc;
  --red: #b83a3a;
  --red-soft: #fdecec;
  --shadow: 0 8px 28px rgba(31, 52, 73, .07);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: currentColor; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 254px; background: var(--navy-dark); color: #fff; display: flex; flex-direction: column; padding: 22px 16px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: #f0c85a; color: var(--navy-dark); border-radius: 11px; font-weight: 800; letter-spacing: -.5px; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; }
.brand span { color: #b9c8d7; font-size: 11px; margin-top: 3px; }
.main-nav { display: grid; gap: 5px; padding-top: 22px; }
.nav-item { appearance: none; border: 0; color: #bdcad8; background: transparent; display: grid; grid-template-columns: 22px 1fr auto; gap: 11px; align-items: center; width: 100%; padding: 12px 13px; border-radius: 10px; text-align: left; font-size: 14px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: #245481; }
.nav-count { font-size: 11px; background: rgba(255,255,255,.12); padding: 2px 7px; border-radius: 20px; }
.sidebar-footer { margin-top: auto; }
.storage-block { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); border-radius: 12px; padding: 13px; margin-bottom: 16px; }
.storage-row { display: flex; justify-content: space-between; font-size: 11px; }
.storage-row strong { font-size: 11px; }
.progress { height: 6px; background: rgba(255,255,255,.14); border-radius: 9px; margin: 10px 0 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: #f0c85a; border-radius: inherit; }
.storage-block small { color: #9eb1c4; font-size: 10px; }
.admin-card { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; padding: 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #dceaf7; color: var(--navy); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.admin-card strong, .admin-card span { display: block; font-size: 11px; }
.admin-card span { color: #9eb1c4; margin-top: 2px; }
.admin-card button { border: 0; background: transparent; color: #9eb1c4; }

.main-content { margin-left: 254px; min-width: 0; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 12; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 30px; gap: 20px; }
.global-search { width: min(540px, 48vw); min-width: 0; position: relative; }
.global-search svg { position: absolute; left: 13px; top: 10px; color: #748190; }
.global-search input { width: 100%; height: 40px; padding: 0 63px 0 42px; border: 1px solid var(--line); background: var(--surface-alt); border-radius: 9px; outline: none; }
.global-search input:focus { border-color: #85acd1; background: #fff; box-shadow: 0 0 0 3px #eaf3fb; }
kbd { position: absolute; right: 10px; top: 9px; color: #7b8794; border: 1px solid #d7dee6; background: #fff; border-radius: 5px; padding: 3px 6px; font-size: 10px; }
.top-actions { margin-left: auto; display: flex; gap: 9px; }
.primary-button, .secondary-button { border-radius: 8px; min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; font-size: 13px; border: 1px solid transparent; }
.primary-button { background: var(--navy); color: #fff; }
.primary-button:hover { background: #0f3153; }
.secondary-button { background: #fff; color: #344556; border-color: #d8e0e7; }
.secondary-button:hover { background: var(--surface-alt); }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.icon-button { border: 1px solid var(--line); background: #fff; color: #536273; width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; }
.mobile-menu { display: none; }

.view { display: none; padding: 28px 30px 46px; max-width: 1600px; margin: auto; }
.view.active { display: block; animation: fade-in .18s ease; }
@keyframes fade-in { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; gap: 24px; }
.page-heading.compact { align-items: center; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; margin: 0 0 7px; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.5px; margin: 0; }
.page-heading > div > p:last-child { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
.institution-hero { position: relative; height: 236px; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(15,44,75,.14); box-shadow: var(--shadow); margin-bottom: 12px; background: var(--navy-dark); isolation: isolate; }
.institution-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.institution-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,29,49,.04) 15%, rgba(8,29,49,.25) 52%, rgba(8,29,49,.94) 100%); }
.institution-hero-copy { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; color: #fff; text-shadow: 0 1px 7px rgba(4,20,34,.32); }
.institution-hero-copy p { margin: 0 0 5px; color: #d8e9f4; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.institution-hero-copy h1 { font-size: 24px; line-height: 1.18; letter-spacing: -.35px; }
.institution-hero-copy span { display: block; margin-top: 6px; color: #e6eef5; font-size: 12px; }
.period-chip { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 10px; padding: 8px 10px 8px 13px; display: flex; align-items: center; gap: 18px; }
.period-chip > span { color: var(--muted); font-size: 11px; }
.period-chip button { border: 0; background: var(--blue-soft); color: var(--navy); border-radius: 7px; padding: 8px 10px; font-weight: 700; font-size: 12px; }
.overview-meta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; margin-bottom: 12px; }
.overview-meta-row .notice-bar { margin-bottom: 0; }
.overview-meta-row .period-chip { box-shadow: none; }
.notice-bar { background: #edf5fc; border: 1px solid #cfe2f4; border-radius: 11px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.notice-icon { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font: 700 12px Georgia, serif; }
.notice-bar p { margin: 0; font-size: 12px; color: #395876; }
.notice-bar .text-button { margin-left: auto; white-space: nowrap; }
.text-button { border: 0; background: transparent; color: var(--blue); padding: 4px; font-size: 12px; font-weight: 700; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.metric-card { min-height: 132px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; align-items: flex-start; gap: 14px; position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #a8b4bf; }
.metric-card.accent-blue::after { background: var(--blue); }.metric-card.accent-green::after { background: var(--green); }.metric-card.accent-amber::after { background: var(--amber); }.metric-card.accent-red::after { background: var(--red); }
.metric-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 12px; }
.accent-green .metric-icon { background: var(--green-soft); color: var(--green); }.accent-amber .metric-icon { background: var(--amber-soft); color: var(--amber); }.accent-red .metric-icon { background: var(--red-soft); color: var(--red); }
.metric-meta { min-width: 0; }
.metric-meta span, .metric-meta strong, .metric-meta small { display: block; }
.metric-meta span { color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-meta strong { font-size: 27px; letter-spacing: -.6px; margin: 6px 0; }
.metric-meta small { color: #7a8795; font-size: 10px; }
.metric-meta small b { color: var(--green); }

.dashboard-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-heading { padding: 18px 19px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf0f3; }
.panel-heading h2 { margin: 0; font-size: 15px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.recent-list { padding: 2px 18px 10px; }
.recent-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) 100px auto; gap: 12px; align-items: center; width: 100%; padding: 13px 2px; border: 0; border-bottom: 1px solid #edf0f3; background: transparent; text-align: left; color: inherit; }
.recent-item:last-child { border-bottom: 0; }
.recent-item:hover strong { color: var(--blue); }
.file-icon { width: 36px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 800; background: var(--red-soft); color: var(--red); }
.file-icon.docx { background: var(--blue-soft); color: var(--blue); }.file-icon.image { background: var(--green-soft); color: var(--green); }.file-icon.mp4 { background: #f1ecfa; color: #694a9d; }
.recent-copy { min-width: 0; }
.recent-copy strong, .recent-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-copy strong { font-size: 12px; }.recent-copy span { color: var(--muted); font-size: 10px; margin-top: 5px; }
.recent-owner { color: var(--muted); font-size: 10px; }.recent-time { color: #8793a0; font-size: 10px; text-align: right; }
.alert-count { background: var(--red-soft); color: var(--red); width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.attention-list { padding: 8px 16px 13px; }
.attention-item { border: 0; background: transparent; color: inherit; width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 11px; align-items: center; padding: 11px 0; text-align: left; border-bottom: 1px solid #edf0f3; }
.attention-item:last-child { border-bottom: 0; }
.attention-item strong, .attention-item small { display: block; }.attention-item strong { font-size: 11px; line-height: 1.4; }.attention-item small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.date-box { width: 42px; height: 44px; background: #f1f4f7; border-radius: 8px; display: grid; place-items: center; align-content: center; color: #526171; }
.date-box.urgent { background: var(--amber-soft); color: var(--amber); }.date-box b { font-size: 15px; }.date-box small { font-size: 8px; margin: 0; }
.status { border-radius: 20px; padding: 5px 8px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-success { color: var(--green); background: var(--green-soft); }.status-warning { color: var(--amber); background: var(--amber-soft); }.status-danger { color: var(--red); background: var(--red-soft); }.status-neutral { color: #5d6b78; background: #eef1f4; }.status-active { color: var(--blue); background: var(--blue-soft); }
.chart-panel, .file-panel { min-height: 285px; }
.bar-chart { padding: 15px 20px 20px; display: grid; gap: 15px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 25px; align-items: center; gap: 12px; font-size: 10px; }
.bar-row > div { background: #edf1f4; height: 8px; border-radius: 8px; overflow: hidden; }.bar-row i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }.bar-row b { font-size: 10px; text-align: right; }
.file-summary { display: flex; align-items: center; justify-content: center; gap: 32px; padding: 22px 16px; }
.donut { width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--blue) 0 44%, #5187bb 44% 70%, #61a987 70% 92%, #8466ac 92% 100%); display: grid; place-items: center; position: relative; }
.donut::before { content: ""; position: absolute; inset: 19px; background: #fff; border-radius: 50%; }.donut span { position: relative; text-align: center; }.donut strong, .donut small { display: block; }.donut strong { font-size: 22px; }.donut small { color: var(--muted); font-size: 9px; }
.file-summary ul { list-style: none; padding: 0; margin: 0; min-width: 112px; }.file-summary li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; font-size: 10px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }.dot.pdf { background: var(--blue); }.dot.doc { background: #5187bb; }.dot.image { background: #61a987; }.dot.video { background: #8466ac; }

.library-layout { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 16px; }
.filter-panel { padding: 17px; align-self: start; position: sticky; top: 91px; box-shadow: none; min-width: 0; overflow: hidden; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }.filter-heading h2 { margin: 0; font-size: 14px; }.filter-heading button, #reset-filters { border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 700; }
.filter-panel > label, .form-grid label, .report-filter label { display: grid; gap: 6px; color: #4e5d6c; font-size: 10px; font-weight: 700; margin-bottom: 13px; }
input, select, textarea { border: 1px solid #dce3e9; background: #fff; border-radius: 7px; outline: none; color: var(--text); }
input, select { height: 38px; padding: 0 10px; } textarea { padding: 10px; resize: vertical; }
.filter-panel input, .filter-panel select { display: block; width: 100%; min-width: 0; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: #85acd1; box-shadow: 0 0 0 3px #edf5fc; }
.filter-panel fieldset { border: 0; border-top: 1px solid var(--line); margin: 4px 0 0; padding: 15px 0 0; }.filter-panel legend { color: #4e5d6c; font-size: 10px; font-weight: 700; padding: 0 0 9px; }
.check { display: grid; grid-template-columns: 16px 1fr auto; gap: 7px; align-items: center; min-height: 27px; font-size: 10px; color: #536171; }.check input { width: 14px; height: 14px; margin: 0; accent-color: var(--navy); }.check b { color: #8b96a1; font-weight: 600; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }.results-toolbar strong, .results-toolbar span { display: block; }.results-toolbar strong { font-size: 13px; }.results-toolbar span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.view-toggle { display: flex; border: 1px solid var(--line); background: #fff; border-radius: 7px; overflow: hidden; }.view-toggle button { width: 34px; height: 31px; border: 0; border-right: 1px solid var(--line); background: #fff; color: #798693; }.view-toggle button:last-child { border-right: 0; }.view-toggle button.active { background: var(--blue-soft); color: var(--blue); }
.library-main { min-width: 0; }
.document-table-wrap { width: 100%; overflow-x: auto; overflow-y: hidden; box-shadow: none; }
.document-table, .staff-table { width: 100%; border-collapse: collapse; }.document-table th, .staff-table th { background: #f7f9fb; color: #6d7986; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }.document-table td, .staff-table td { padding: 13px 14px; border-bottom: 1px solid #edf0f3; font-size: 10px; vertical-align: middle; }.document-table tbody tr { cursor: pointer; }.document-table tbody tr:hover { background: #f9fbfd; }.document-table tbody tr:last-child td { border-bottom: 0; }
.doc-cell { display: flex; gap: 10px; align-items: center; min-width: 260px; }.doc-cell strong, .doc-cell span { display: block; }.doc-cell strong { max-width: 420px; font-size: 11px; line-height: 1.35; }.doc-cell span { color: var(--muted); font-size: 9px; margin-top: 4px; }.category-cell { max-width: 180px; color: #536171; line-height: 1.35; }.owner-cell { white-space: nowrap; }.more-button { border: 0; background: transparent; color: #82909d; font-weight: 800; }
.empty-state { display: none; text-align: center; padding: 48px; color: var(--muted); }.empty-state strong, .empty-state span { display: block; }.empty-state strong { color: var(--text); font-size: 14px; }.empty-state span { font-size: 11px; margin-top: 7px; }

.report-actions { display: flex; gap: 9px; }.report-filter { padding: 13px 15px; display: grid; grid-template-columns: 150px 160px 220px auto; gap: 12px; align-items: end; margin-bottom: 15px; box-shadow: none; }.report-filter label { margin: 0; }.report-filter button { align-self: end; }
.compact-metrics .metric-card { min-height: 100px; }.compact-metrics .metric-card::after { background: var(--blue); }.compact-metrics .metric-meta strong { font-size: 23px; }
.report-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; }.report-wide { min-height: 330px; }.report-table-panel { grid-column: 1 / -1; }
.stacked-chart { padding: 22px 20px; display: grid; gap: 18px; }.stack-row { display: grid; grid-template-columns: 150px 1fr 28px; gap: 12px; align-items: center; font-size: 10px; }.stack-track { height: 13px; display: flex; overflow: hidden; border-radius: 8px; background: #edf1f4; }.stack-done { background: var(--green); }.stack-active { background: #76a5cf; }.stack-late { background: var(--red); }
.progress-ring { width: 158px; height: 158px; margin: 24px auto 16px; border-radius: 50%; background: conic-gradient(var(--green) 0 83.6%, #e8edf1 83.6%); display: grid; place-items: center; position: relative; }.progress-ring::before { content: ""; position: absolute; inset: 17px; background: #fff; border-radius: 50%; }.progress-ring div { position: relative; text-align: center; }.progress-ring strong, .progress-ring span { display: block; }.progress-ring strong { font-size: 25px; }.progress-ring span { color: var(--muted); font-size: 9px; }
.legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding: 0 22px 22px; }.legend-grid span { display: grid; grid-template-columns: 8px 1fr auto; gap: 7px; align-items: center; font-size: 9px; }.dot.done { background: var(--green); }.dot.late { background: var(--red); }.dot.active { background: #76a5cf; }.dot.neutral { background: #cbd3db; }
.staff-table td:first-child { font-weight: 700; }.staff-table td:last-child { font-weight: 800; color: var(--green); }

.category-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; box-shadow: none; }.category-summary > div { padding: 17px 20px; border-right: 1px solid var(--line); }.category-summary > div:last-child { border-right: 0; }.category-summary strong, .category-summary span { display: block; }.category-summary strong { color: var(--navy); font-size: 23px; }.category-summary span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }.category-card { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 4px 14px rgba(31,52,73,.04); display: grid; grid-template-columns: 40px 1fr; gap: 12px; }.category-number { width: 40px; height: 40px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 12px; }.category-card h3 { margin: 1px 0 6px; font-size: 12px; line-height: 1.35; }.category-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 26, 41, .52); display: none; place-items: center; padding: 22px; z-index: 50; }.modal-backdrop.open { display: grid; animation: fade-in .16s ease; }.modal { width: min(680px, 100%); max-height: calc(100vh - 44px); overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 28px 80px rgba(8,20,33,.28); }.modal > header { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); }.modal h2 { margin: 0; font-size: 18px; }.modal-close { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: #607080; font-size: 20px; }.modal form { padding: 18px 22px 0; }.drop-zone { border: 1.5px dashed #aabfd3; background: #f7fbff; border-radius: 12px; min-height: 150px; display: grid; place-items: center; align-content: center; text-align: center; position: relative; color: var(--muted); }.drop-zone.dragging { border-color: var(--blue); background: var(--blue-soft); }.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }.upload-symbol { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-bottom: 8px; }.drop-zone strong { color: var(--text); font-size: 12px; }.drop-zone span { font-size: 10px; margin-top: 5px; }.drop-zone small { color: var(--blue); font-weight: 700; font-size: 9px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 17px; }.form-grid label { margin-bottom: 12px; }.span-2 { grid-column: 1 / -1; }.security-note { display: flex; gap: 9px; align-items: flex-start; background: var(--green-soft); color: #35634f; border-radius: 9px; padding: 10px 12px; }.security-note > span { background: var(--green); color: #fff; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; flex: 0 0 auto; }.security-note p { margin: 1px 0 0; font-size: 10px; line-height: 1.45; }
.modal footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 22px 20px; }
.detail-modal { width: min(720px, 100%); }.detail-modal > #detail-content { padding: 20px 22px 4px; }.detail-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }.detail-field { border-bottom: 1px solid #edf0f3; padding-bottom: 10px; }.detail-field.full { grid-column: 1 / -1; }.detail-field span, .detail-field strong { display: block; }.detail-field span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }.detail-field strong { margin-top: 5px; font-size: 11px; line-height: 1.45; }.attachment-box { grid-column: 1 / -1; background: #f7f9fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 10px; }.attachment-box div:nth-child(2) { flex: 1; }.attachment-box strong, .attachment-box span { display: block; }.attachment-box span { color: var(--muted); font-size: 9px; margin-top: 4px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; align-items: center; gap: 10px; min-width: 280px; max-width: 380px; padding: 13px 15px; border-radius: 10px; background: #173d66; color: #fff; box-shadow: 0 16px 40px rgba(15,34,53,.25); transform: translateY(120px); opacity: 0; transition: .22s ease; }.toast.show { transform: none; opacity: 1; }.toast > span { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: #46a47d; font-size: 11px; }.toast p { margin: 0; font-size: 11px; }

/* Readability and compact-density pass */
body { font-size: 14px; }
.sidebar { width: 238px; padding: 18px 13px; }
.main-content { margin-left: 238px; }
.brand { padding: 0 7px 18px; }
.brand-mark { width: 38px; height: 38px; border-radius: 9px; }
.brand strong { font-size: 15px; }
.brand span { font-size: 12px; }
.main-nav { padding-top: 16px; gap: 3px; }
.nav-item { padding: 10px 11px; font-size: 13px; }
.storage-block { padding: 11px; margin-bottom: 10px; }
.storage-row, .storage-row strong { font-size: 12px; }
.storage-block small, .admin-card strong, .admin-card span { font-size: 11px; }

.topbar { height: 62px; padding: 0 24px; }
.global-search input { height: 38px; font-size: 13px; }
.global-search svg { top: 9px; }
kbd { top: 8px; font-size: 11px; }
.primary-button, .secondary-button { min-height: 36px; padding: 0 13px; font-size: 13px; }
.icon-button { width: 34px; height: 34px; }

.view { padding: 20px 24px 32px; }
.page-heading { margin-bottom: 15px; }
.eyebrow { font-size: 11px; margin-bottom: 5px; }
h1 { font-size: 25px; }
.page-heading > div > p:last-child { font-size: 13px; margin-top: 5px; }
.period-chip { padding: 6px 7px 6px 11px; }
.period-chip > span { font-size: 12px; }
.period-chip button { padding: 7px 9px; font-size: 12px; }
.institution-hero { height: clamp(250px, 18vw, 320px); }
.institution-hero-copy { left: 19px; right: 19px; bottom: 15px; }
.institution-hero-copy h1 { font-size: 22px; }
.institution-hero-copy span { margin-top: 4px; font-size: 12px; }
.notice-bar { padding: 9px 12px; margin-bottom: 12px; }
.notice-bar p, .text-button { font-size: 12px; }

.metric-grid { gap: 11px; margin-bottom: 12px; }
.metric-card { min-height: 104px; padding: 14px; gap: 11px; }
.metric-icon { width: 34px; height: 34px; border-radius: 8px; font-size: 12px; }
.metric-meta span { font-size: 12px; }
.metric-meta strong { font-size: 25px; margin: 4px 0; }
.metric-meta small { font-size: 11px; }

.dashboard-grid, .report-grid { gap: 12px; }
.panel-heading { padding: 13px 15px 11px; }
.panel-heading h2 { font-size: 16px; }
.panel-heading p { margin-top: 3px; font-size: 12px; }
.recent-list { padding: 0 14px 5px; }
.recent-item { grid-template-columns: 36px minmax(0, 1fr) 110px auto; gap: 10px; padding: 9px 1px; }
.file-icon { width: 34px; height: 36px; font-size: 11px; }
.recent-copy strong { font-size: 13px; }
.recent-copy span, .recent-owner, .recent-time { font-size: 11px; }
.recent-copy span { margin-top: 3px; }
.attention-list { padding: 5px 14px 8px; }
.attention-item { padding: 8px 0; }
.attention-item strong { font-size: 12px; }
.attention-item small { font-size: 11px; margin-top: 3px; }
.status { font-size: 10px; padding: 4px 7px; }
.date-box { height: 40px; }
.chart-panel, .file-panel { min-height: 242px; }
.bar-chart { padding: 12px 16px 15px; gap: 11px; }
.bar-row { grid-template-columns: 170px 1fr 28px; font-size: 12px; }
.bar-row b { font-size: 11px; }
.file-summary { padding: 14px; gap: 26px; }
.donut { width: 116px; height: 116px; }
.donut::before { inset: 17px; }
.file-summary li { padding: 5px 0; font-size: 11px; }

.library-layout { grid-template-columns: 226px minmax(0,1fr); gap: 12px; }
.filter-panel { padding: 14px; top: 76px; }
.filter-heading { margin-bottom: 11px; }
.filter-heading h2 { font-size: 15px; }
.filter-heading button, #reset-filters { font-size: 11px; }
.filter-panel > label, .form-grid label, .report-filter label { gap: 5px; font-size: 12px; margin-bottom: 10px; }
input, select { height: 35px; padding: 0 9px; font-size: 12px; }
textarea { font-size: 12px; }
.filter-panel fieldset { padding-top: 11px; }
.filter-panel legend { font-size: 12px; padding-bottom: 6px; }
.check { min-height: 25px; font-size: 12px; }
.results-toolbar { margin-bottom: 8px; }
.results-toolbar strong { font-size: 14px; }
.results-toolbar span { font-size: 11px; }
.document-table th, .staff-table th { padding: 10px 12px; font-size: 10px; }
.document-table td, .staff-table td { padding: 9px 12px; font-size: 12px; }
.doc-cell { gap: 9px; }
.doc-cell strong { font-size: 12px; }
.doc-cell span { font-size: 10px; margin-top: 2px; }
.category-cell { font-size: 11px; }

.report-filter { padding: 10px 12px; margin-bottom: 11px; }
.compact-metrics .metric-card { min-height: 88px; }
.compact-metrics .metric-meta strong { font-size: 22px; }
.report-wide { min-height: 286px; }
.stacked-chart { padding: 16px; gap: 13px; }
.stack-row { font-size: 12px; }
.progress-ring { width: 138px; height: 138px; margin: 16px auto 12px; }
.progress-ring strong { font-size: 23px; }
.progress-ring span, .legend-grid span { font-size: 11px; }
.legend-grid { padding-bottom: 15px; }

.category-summary { margin-bottom: 12px; }
.category-summary > div { padding: 13px 17px; }
.category-summary strong { font-size: 21px; }
.category-summary span { font-size: 11px; }
.category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.category-card { padding: 12px; grid-template-columns: 36px 1fr; gap: 10px; }
.category-number { width: 36px; height: 36px; }
.category-card h3 { font-size: 12px; margin-top: 0; }
.category-card p { font-size: 11px; }

.modal > header { padding: 16px 19px 12px; }
.modal h2 { font-size: 18px; }
.modal form { padding: 14px 19px 0; }
.drop-zone { min-height: 126px; }
.drop-zone strong { font-size: 13px; }
.drop-zone span, .drop-zone small, .security-note p { font-size: 11px; }
.form-grid { margin-top: 13px; }
.modal footer { padding: 13px 19px 16px; }
.detail-modal > #detail-content { padding: 16px 19px 2px; }
.detail-field span { font-size: 10px; }
.detail-field strong { font-size: 12px; }
.attachment-box span { font-size: 10px; }
.toast p { font-size: 12px; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid, .report-grid { grid-template-columns: 1fr; }
  .report-table-panel { grid-column: auto; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .top-actions .secondary-button span { display: none; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 15px 0 35px rgba(0,0,0,.2); }.sidebar.open { transform: none; }
  .main-content { margin-left: 0; }.mobile-menu { display: grid; }.topbar { padding: 0 16px; }.global-search { width: auto; flex: 1; }.global-search kbd { display: none; }.global-search input { padding-right: 12px; }
  .view { padding: 22px 16px 36px; }.library-layout { grid-template-columns: 1fr; }.filter-panel { position: static; }.report-filter { grid-template-columns: 1fr 1fr; }.category-summary { grid-template-columns: 1fr 1fr; }.category-summary > div:nth-child(2) { border-right: 0; }.category-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .institution-hero { height: 206px; }
  .institution-hero-copy { right: 16px; }
  .institution-hero-copy h1 { font-size: 20px; }
  .overview-meta-row { grid-template-columns: 1fr; }
  .overview-meta-row .period-chip { width: 100%; justify-content: space-between; }
}
@media (max-width: 620px) {
  .top-actions .secondary-button { display: none; }.primary-button { padding: 0 11px; }.top-actions .primary-button { font-size: 0; }.top-actions .primary-button svg { width: 19px; height: 19px; }
  .page-heading { align-items: flex-start; flex-direction: column; }.period-chip { width: 100%; justify-content: space-between; }.notice-bar { align-items: flex-start; }.notice-bar .text-button { display: none; }
  .institution-hero { height: 188px; border-radius: 12px; }
  .institution-hero > img { object-position: center 50%; }
  .institution-hero-overlay { background: linear-gradient(180deg, rgba(8,29,49,.08) 10%, rgba(8,29,49,.34) 48%, rgba(8,29,49,.96) 100%); }
  .institution-hero-copy { left: 14px; right: 14px; bottom: 13px; }
  .institution-hero-copy p { margin-bottom: 4px; font-size: 9px; }
  .institution-hero-copy h1 { font-size: 18px; }
  .institution-hero-copy span { font-size: 11px; }
  .metric-grid { grid-template-columns: 1fr; }.metric-card { min-height: 106px; }.dashboard-grid { grid-template-columns: 1fr; }.recent-item { grid-template-columns: 36px 1fr auto; }.recent-owner { display: none; }.file-summary { flex-direction: column; }.bar-row { grid-template-columns: 120px 1fr 24px; }
  .category-grid, .category-summary { grid-template-columns: 1fr; }.category-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }.category-summary > div:last-child { border-bottom: 0; }
  .report-filter, .form-grid { grid-template-columns: 1fr; }.span-2 { grid-column: auto; }.report-actions { width: 100%; }.report-actions button { flex: 1; }
  .document-table th:nth-child(3), .document-table td:nth-child(3), .document-table th:nth-child(4), .document-table td:nth-child(4) { display: none; }.doc-cell { min-width: 210px; }
  .detail-summary { grid-template-columns: 1fr; }.detail-field.full, .attachment-box { grid-column: auto; }
}
