:root {
    --navy: #172b3a;
    --navy-deep: #10222e;
    --teal: #087f8c;
    --teal-dark: #056774;
    --blue: #296a9d;
    --ink: #172b3a;
    --muted: #637583;
    --line: #e5eaee;
    --border: var(--line);
    --canvas: #f4f6f8;
    --white: #fff;
    --radius: 12px;
    --sidebar-width: 244px;
    --header-height: 64px;
    --table-space: 15px;
    --row-space: 22px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; background: transparent; }
button:disabled { cursor: not-allowed; }
input, select, textarea { min-width: 0; }
button, input, select, textarea { border-radius: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #8cd0d7; outline-offset: 3px; }
::selection { background: #d4eff1; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; }
strong { font-weight: 650; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 600; }
svg { flex: 0 0 auto; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 18px; background: var(--white); color: var(--ink); border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; font-variant-numeric: tabular-nums; }
.break-anywhere, .preserve-lines { overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; }
.muted { color: var(--muted); }
.text-success { color: #26704d; }
.text-warning { color: #936113; }
.number-emphasis { color: var(--ink); font-weight: 700; }

/* Application shell */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 22px 14px 18px; background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 10px 28px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 42px; color: var(--white); background: var(--teal); border-radius: 11px 11px 11px 3px; font-size: 25px; font-weight: 750; flex: 0 0 auto; }
.brand-mark .icon, .brand-logo { width: 32px; height: 36px; object-fit: contain; }
.brand-symbol { width: 28px; height: 28px; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.55px; line-height: 1.3; }
.brand strong span { font-weight: 450; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.sidebar-section-label { color: #758693; font-size: 10px; letter-spacing: 1.3px; font-weight: 650; padding: 0 12px; margin: 10px 0 8px; }
.navigation { display: flex; flex-direction: column; gap: 3px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 10px 12px; border-radius: 8px; color: #536573; font-size: 13px; font-weight: 550; transition: background 130ms ease, color 130ms ease; }
.nav-link .icon { width: 18px; height: 18px; color: #778995; }
.nav-link:hover { background: #f4f7f8; color: var(--ink); }
.nav-link.is-active { background: #e7f4f5; color: #086c77; box-shadow: inset 3px 0 var(--teal); }
.nav-link.is-active .icon { color: var(--teal); }
.nav-section-label { margin-top: 20px; }
.sidebar-note { margin: auto 8px 16px; padding: 14px; background: #f5f9fa; border: 1px solid var(--line); border-radius: 10px; }
.navigation + .sidebar-note { margin-top: 24px; }
.sidebar-note > .icon { color: var(--teal); width: 18px; height: 18px; margin-bottom: 8px; }
.sidebar-note strong { display: block; font-size: 12px; }
.sidebar-note p { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 6px 0 0; }
.sidebar-footer { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; padding: 0 12px; }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--header-height); background: var(--white); border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-start { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-context { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .7px; }
.topbar-date { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin-right: 8px; white-space: nowrap; }
.topbar-date .icon { width: 16px; height: 16px; }
.mode-badge { display: inline-flex; align-items: center; border: 1px solid #dce8ec; background: #f3f8fa; color: #466776; border-radius: 6px; padding: 4px 8px; font-size: 11px; font-weight: 550; white-space: nowrap; }
.account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e8f2f3; color: var(--teal); font-size: 13px; font-weight: 650; }
.person-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.person-cell-copy { min-width: 0; }
.person-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px; overflow: hidden; border: 1px solid var(--line); background: #e8f2f3; color: var(--teal); font-size: 14px; font-weight: 700; }
.person-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-avatar-fallback { display: grid; width: 100%; height: 100%; place-items: center; }
.person-avatar-empty { cursor: default; }
.account-meta strong { display: block; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.account-meta span { display: block; color: var(--muted); font-size: 10px; }
.account form { margin-left: 2px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; min-width: 38px; min-height: 38px; padding: 8px; border: 1px solid transparent; color: var(--muted); }
.icon-button:hover { background: var(--canvas); border-color: var(--line); color: var(--ink); }
.menu-toggle { display: none; }
.main-content { max-width: 1700px; margin: 0 auto; padding: 26px 28px 20px; }
.main-content:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.eyebrow { font-size: 10px; letter-spacing: 1.2px; font-weight: 650; color: #7a8a96; margin-bottom: 6px; }
.page-heading h1 { font-size: 26px; font-weight: 700; letter-spacing: -.7px; margin-bottom: 7px; }
.page-heading p { color: var(--muted); font-size: 13px; margin-bottom: 0; max-width: 780px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; color: #7d8b96; font-size: 11px; }

/* Actions and feedback */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1.5; transition: background 130ms ease; }
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.button-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button-secondary { background: var(--white); border-color: #d9e1e6; color: #425969; }
.button-secondary:hover { background: #f5f8f9; border-color: #becfd5; }
.button-quiet { color: var(--muted); }
.button-quiet:hover { background: #eef3f5; }
.button-muted { color: #8c99a3; background: #f5f7f9; border-color: var(--line); }
.button-danger { color: var(--white); background: #b33e4a; border-color: #b33e4a; }
.button-danger:hover { background: #932e39; border-color: #932e39; }
.button-small { min-height: 32px; font-size: 12px; padding: 5px 11px; }
.button-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: 13px; font-weight: 600; }
.text-link .icon { width: 15px; height: 15px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.notice { margin-bottom: 20px; padding: 14px 16px; border: 1px solid; border-radius: 10px; font-size: 13px; line-height: 1.65; }
.notice p:last-child { margin-bottom: 0; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice-danger { color: #92313d; background: #fff4f5; border-color: #efcfd5; }
.notice-warning { color: #875916; background: #fffaed; border-color: #efdfbb; }
.notice-success { color: #286846; background: #eff8f2; border-color: #cee7d7; }
.info-strip { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; background: #f0f6f9; border: 1px solid #dde8ee; border-radius: 10px; margin-bottom: 20px; color: #4d6a7c; }
.info-strip .icon { width: 18px; height: 18px; margin-top: 2px; }
.info-strip p { margin: 0; font-size: 12px; line-height: 1.7; }
.info-note { padding: 13px 22px; font-size: 12px; line-height: 1.7; color: var(--muted); background: #f8fafb; border-top: 1px solid var(--line); }
.source-banner { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; padding: 10px 12px; color: #647885; background: #edf2f5; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.source-banner .icon { width: 15px; height: 15px; }
.source-caption { margin-left: auto; color: #70828f; }
.source-banner-warning { color: #875916; background: #fff8e9; border-color: #eedfb9; }
.source-banner-warning .source-caption { color: #875916; }
.status-badge { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 550; line-height: 1.5; white-space: nowrap; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-success { color: #276746; background: #eaf6ef; }
.status-blue { color: #2c6389; background: #eaf3fa; }
.status-warning { color: #916116; background: #fff4dc; }
.status-danger { color: #a23645; background: #fcedf0; }
.status-neutral { color: #60717e; background: #edf1f4; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; margin-left: 6px; padding: 2px 7px; font-size: 11px; color: #577280; background: #edf3f5; border-radius: 6px; vertical-align: middle; }

/* Panels, lists and operational tables */
.panel { margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; }
.panel-heading h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.panel-heading p { color: var(--muted); margin: 5px 0 0; font-size: 12px; }
.panel-heading > .icon { color: #7a929e; }
.panel-heading .eyebrow { font-size: 10px; }
.panel-body { padding: 0 22px 22px; }
.subtle-label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.table-scroll { position: relative; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { font-size: 14px; }
.data-table th { color: #687c88; background: #f8fafb; padding: 11px 18px; border-block: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.data-table td { padding: var(--table-space) 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th:first-child, .data-table td:first-child { padding-left: 22px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 22px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcfd; }
.request-link { font-size: 13px; font-weight: 650; color: var(--teal); white-space: nowrap; }
.request-link span { color: var(--ink); margin-left: 5px; }
.request-link:hover span { color: var(--teal); }
.cell-note { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; line-height: 1.65; color: var(--muted); max-width: 380px; overflow-wrap: anywhere; }
.cell-note-warning { color: #936113; }
.cell-line { display: block; }
.person-name { display: block; font-size: 13px; font-weight: 600; line-height: 1.6; max-width: 300px; }
.time-cell { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-open { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; color: #647f8d; }
.table-open .icon { width: 15px; height: 15px; }
.table-row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.table-delete { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #efcfd5; border-radius: 7px; color: #a23645; }
.table-delete:hover { color: var(--white); background: #b33e4a; border-color: #b33e4a; }
.table-delete .icon { width: 15px; height: 15px; }
.table-remind { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 5px 8px; border: 1px solid #efd79b; border-radius: 7px; color: #875916; background: #fffaed; font-size: 12px; font-weight: 700; }
.table-remind:hover { color: #65400d; background: #fff2c9; border-color: #ddb955; }
.table-remind .icon { width: 14px; height: 14px; }
.reminder-count { color: #875916; }
.table-open:hover { color: var(--teal); background: #edf8f8; border-color: #b7dadd; }
.guest-photo-cell { width: 92px; }
.guest-photo-button { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; color: var(--teal); font-size: 11px; font-weight: 600; }
.guest-photo-frame { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border: 1px solid #d8e3e8; border-radius: 9px; background: #f4f7f9; }
.guest-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 130ms ease; }
.guest-photo-button:hover .guest-photo-frame { border-color: #9dcbd0; box-shadow: 0 0 0 3px #e8f5f6; }
.guest-photo-button:hover img { transform: scale(1.04); }
.guest-photo-unavailable, .guest-photo-empty { color: var(--muted); font-size: 11px; line-height: 1.35; text-align: center; }
.guest-photo-modal { width: min(820px, calc(100vw - 32px)); }
.guest-photo-modal-body { display: grid; gap: 18px; }
.guest-photo-large { display: grid; min-height: 300px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #f4f7f9; overflow: hidden; }
.guest-photo-large img { display: block; max-width: 100%; max-height: min(65vh, 650px); object-fit: contain; }
.guest-photo-large p { margin: 0; padding: 40px 20px; color: var(--muted); text-align: center; }
.compact-table th, .compact-table td { padding: 11px 14px; }
.report-table td { font-variant-numeric: tabular-nums; }
.report-table th:not(:first-child), .report-table td:not(:first-child) { text-align: right; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 22px; border-top: 1px solid var(--line); }
.pagination p { color: var(--muted); font-size: 12px; margin: 0; }
.pagination p strong { color: var(--ink); }
.pagination-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.page-size-form { display: flex; align-items: center; gap: 8px; }
.page-size-form label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.page-size-form select { min-height: 34px; padding: 5px 28px 5px 9px; border: 1px solid #d4dee5; border-radius: 7px; background-color: var(--white); color: var(--ink); font-size: 12px; }
.page-size-form select:focus { border-color: var(--teal); }
.js .page-size-submit { display: none; }
.pagination-links { display: flex; align-items: center; gap: 9px; }
.pagination-current { color: var(--muted); font-size: 12px; }
.empty-state { text-align: center; padding: 35px 22px 40px; }
.empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; color: var(--teal); background: #eaf5f6; border-radius: 12px; margin-bottom: 14px; }
.empty-icon .icon { width: 24px; height: 24px; }
.empty-state h3 { font-size: 16px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 440px; margin: 0 auto; }

/* Forms and filters */
.field label { display: block; color: #465d6c; font-size: 13px; font-weight: 550; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; border: 1px solid #d4dee5; background: var(--white); padding: 9px 12px; font-size: 14px; }
.field textarea { resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #8595a1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #b54453; background: #fffafb; }
.field input:disabled, .field select:disabled, .field textarea:disabled { color: #7a8c98; background: #f3f6f8; }
.input-with-icon { position: relative; }
.input-with-icon > .icon { position: absolute; top: 12px; left: 12px; width: 18px; height: 18px; color: #7d929f; pointer-events: none; }
.input-with-icon input { padding-left: 39px; }
.filter-panel { padding: 20px 22px; }
.filter-grid { display: grid; grid-template-columns: minmax(200px, 1.5fr) 1fr 1fr 140px 140px; gap: 14px; }
.filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.checkbox-label { display: flex; align-items: flex-start; gap: 9px; color: #536a79; font-size: 13px; line-height: 1.6; }
.checkbox-label input { accent-color: var(--teal); width: 16px; height: 16px; margin: 3px 0 0; flex-shrink: 0; }
.report-filter-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 16px; align-items: end; }
.filter-inline-actions { padding-bottom: 0; }
.people-filter { display: grid; grid-template-columns: minmax(200px, 1fr) auto; gap: 18px; align-items: end; max-width: 900px; }

/* Services, settings and account management */
.control-service-grid, .service-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.control-service-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.control-service-card h2 { font-size: 18px; }
.control-service-card p { color: var(--muted); font-size: 13px; line-height: 1.75; min-height: 66px; }
.control-counts { display: flex; gap: 24px; margin: 18px 0; color: var(--muted); font-size: 12px; }
.control-counts strong { display: block; font-size: 25px; color: var(--ink); }
.control-tabs, .period-switch { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
.control-tabs a, .period-switch a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; color: #536978; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.control-tabs a.is-active, .period-switch a.is-active, .period-switch a[aria-current="page"] { color: #086d78; background: #e8f5f6; border-color: #b5dce0; font-weight: 600; }
.control-settings-grid, .control-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.control-profile-grid { gap: 0 28px; }
.control-readonly { padding: 10px 12px; min-height: 42px; background: #f5f8fa; border: 1px solid var(--line); border-radius: 8px; white-space: pre-line; overflow-wrap: anywhere; font-size: 13px; }
.control-confirmation, .control-action-form { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.control-confirmation .field { width: min(100%, 430px); }
.control-action-form .field { width: 100%; }
.settings-tabs { position: sticky; top: var(--header-height); z-index: 20; padding: 10px 0; background: var(--canvas); border-bottom: 1px solid var(--line); }
.settings-storage-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.settings-storage-bar .cell-note { margin: 0; }
.settings-storage-bar > .text-link { margin-left: auto; }
.settings-search-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; }
.settings-directory { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
.settings-directory h2 { font-size: 15px; }
.settings-directory ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; max-height: 340px; overflow-y: auto; }
.settings-directory a { display: block; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.settings-directory a:hover { background: #f0f8f9; border-color: #b8dce0; }
.settings-directory a span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.settings-field-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 11px; margin: -2px 0 8px; }
.settings-field-meta code { overflow-wrap: anywhere; }
.control-setting-wide { grid-column: 1 / -1; }
.control-setting :is(input, textarea, select, .control-readonly), #settings-confirmation { scroll-margin-top: 170px; }
.control-setting :target { outline: 3px solid #86c9d0; outline-offset: 4px; }
.settings-token-notice { width: 100%; margin-bottom: 0; }
.settings-token-notice p { margin-top: 9px; font-size: 12px; }
.account-search { display: flex; align-items: end; gap: 12px; padding: 18px 22px; }
.account-search .field { flex: 1; }
.account-management-row { padding: var(--row-space); border-top: 1px solid var(--line); }
.account-row-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.account-identity strong, .account-summary strong { display: block; overflow-wrap: anywhere; }
.account-summary { text-align: right; }
.account-row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.account-command-form { padding: 16px; }
.account-command-form fieldset { min-width: 0; display: grid; gap: 16px; margin: 0; padding: 0; border: 0; }
.account-command-form fieldset:disabled { opacity: .65; }
.account-command-form .notice { margin-bottom: 0; }
.account-command-form .button { justify-self: start; }
.account-command-form .cell-note { max-width: none; }
.account-registration-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.account-photos figure { min-width: 0; margin: 0; padding: 10px; background: #f4f7f9; border: 1px solid #e7edf1; border-radius: 9px; }
.account-photos figcaption { font-size: 12px; font-weight: 600; margin-bottom: 10px; min-height: 36px; }
.account-photos img { display: block; width: 100%; height: 200px; object-fit: contain; background: var(--white); border-radius: 6px; }
.account-photo-empty { display: grid; place-items: center; height: 200px; color: var(--muted); font-size: 12px; text-align: center; }
.account-pending-photos { grid-template-columns: repeat(2, minmax(0, 230px)); }
.selected-photo-preview { margin: 10px 0 0; padding: 12px; background: #f1f7f8; border: 1px solid #d9e7eb; border-radius: 8px; }
.selected-photo-preview img { display: block; max-width: 100%; width: 160px; height: 180px; object-fit: contain; background: var(--white); border-radius: 6px; }
.selected-photo-preview figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

/* Dashboard: only measured data */
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.metric-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; color: #536978; font-size: 13px; font-weight: 550; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }
.metric-icon .icon { width: 18px; height: 18px; }
.metric-teal, .teal { color: #087783; background: #e7f4f5; }
.metric-amber, .amber { color: #936113; background: #fff4de; }
.metric-blue { color: #2f6892; background: #edf4fb; }
.metric-orange { color: #9c683a; background: #fcf2e9; }
.rose { color: #a23645; background: #fceff2; }
.metric-value { display: block; font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.65px; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.metric-card p { color: var(--muted); font-size: 12px; margin: 0; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dashboard-trend { min-width: 0; }
.trend-summary { display: flex; align-items: center; gap: 13px; padding: 0 22px 14px; }
.trend-summary > strong { font-size: 30px; line-height: 1.2; letter-spacing: -.6px; }
.trend-summary > span { font-size: 12px; color: #536978; }
.trend-summary small { color: var(--muted); font-size: 11px; }
.trend-chart { display: block; width: 100%; height: auto; max-height: 290px; overflow: visible; }
.trend-chart text { fill: #758894; font-size: 16px; font-family: inherit; }
.trend-grid-line { stroke: #e7edf1; stroke-dasharray: 3 5; }
.trend-bar { fill: #4a9da8; }
.trend-bar.is-today { fill: var(--teal); }
.trend-chart .trend-axis, .trend-axis { stroke: #dae4e9; }
.trend-chart rect:hover { fill: var(--teal-dark); }
.trend-empty { margin: 0; padding: 0 22px 16px; color: var(--muted); font-size: 12px; }
.trend-data-table { padding: 12px 22px; border-top: 1px solid var(--line); }
.trend-data-table .text-link { padding: 0; border: 0; }
.trend-outcomes { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 15px 22px; background: #f8fafb; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.trend-outcomes strong { color: var(--ink); font-size: 13px; }
.trend-outcomes small { flex-basis: 100%; font-size: 10px; line-height: 1.65; }
.period-switch { margin: 0; gap: 3px; }
.period-switch a { padding: 6px 10px; font-size: 12px; }
.workload-bars { display: grid; gap: 16px; padding: 0 22px 22px; }
.workload-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; font-size: 13px; }
.workload-label { display: flex; justify-content: space-between; gap: 12px; }
.workload-label strong { font-weight: 550; }
.workload-label b { font-size: 13px; font-variant-numeric: tabular-nums; }
.workload-row > small { font-size: 11px; color: var(--muted); }
.workload-track { display: block; width: 100%; height: 7px; appearance: none; border: 0; background: #edf2f5; border-radius: 20px; overflow: hidden; }
.workload-track::-webkit-progress-bar { background: #edf2f5; border-radius: 20px; }
.workload-track::-webkit-progress-value { background: #4598a4; border-radius: 20px; }
.workload-track::-moz-progress-bar { background: #4598a4; border-radius: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.section-heading h2 { font-size: 17px; margin: 0; }
.service-shortcuts > a, .service-shortcut { display: flex; gap: 13px; align-items: center; padding: 17px 18px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; }
.service-shortcuts > a:hover { border-color: #abd2d8; background: #fafdfe; }
.service-shortcuts strong { display: block; font-size: 13px; }
.service-shortcuts small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.service-shortcut.panel { margin-bottom: 0; }
.service-shortcut > span:nth-child(2) { flex: 1; min-width: 0; }
.service-shortcut > .icon { color: #8498a3; width: 15px; height: 15px; }
.service-list { padding: 0 22px 12px; }
.service-row { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-symbol { width: 34px; height: 34px; display: grid; place-items: center; background: #eef4f7; color: #507c92; border-radius: 9px; }
.service-symbol .icon { width: 18px; height: 18px; }
.service-row-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.service-row-name small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 3px; }
.service-row:hover .service-row-name { color: var(--teal); }
.service-row > strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.service-row > .icon { width: 15px; height: 15px; color: #90a2ad; }
.attention-list { padding: 0 22px 8px; }
.attention-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.attention-item:last-child { border-bottom: 0; }
.attention-item > span:nth-child(2) { flex: 1; min-width: 0; }
.attention-item strong { display: block; font-size: 13px; margin-bottom: 4px; }
.attention-item small { display: block; color: var(--muted); font-size: 12px; line-height: 1.65; }
.attention-item > .icon { width: 15px; height: 15px; color: #8ca1ac; margin-top: 5px; }
.attention-button { width: 100%; border-width: 0 0 1px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.attention-button:hover strong, .attention-button:focus-visible strong { color: var(--teal); }
.attention-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.attention-icon .icon { width: 17px; height: 17px; }
.attention-panel .info-note { margin-top: 4px; }
.queue-section { margin-top: 0; }

/* Request details, media and audit timelines */
.request-number { color: var(--teal); }
.request-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; }
.request-summary .eyebrow { display: block; margin-bottom: 8px; font-size: 10px; }
.request-summary > div > strong { display: block; font-size: 13px; }
.request-summary-status { display: flex; align-items: center; gap: 9px; }
.request-summary-status > span:last-child { color: var(--muted); font-size: 12px; }
.return-notice { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; }
.return-notice > .icon { margin-top: 3px; }
.return-notice h2 { font-size: 16px; margin-bottom: 8px; }
.return-notice p { font-size: 14px; line-height: 1.75; }
.return-notice .return-meta { font-size: 12px; }
.detail-columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr); gap: 22px; align-items: start; }
.detail-main, .detail-aside { min-width: 0; }
.request-description { font-size: 14px; line-height: 1.85; margin-bottom: 0; }
.resolution-note { padding: 16px; margin-top: 20px; border: 1px solid var(--line); border-radius: 9px; background: #f4f8fa; }
.resolution-note p { margin-bottom: 0; font-size: 13px; line-height: 1.8; }
.attempt-card { padding: 18px 22px; border-top: 1px solid var(--line); }
.attempt-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.attempt-heading strong { font-size: 13px; }
.attempt-card > .preserve-lines { margin: 12px 0 0; font-size: 13px; line-height: 1.8; }
.attachment-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 12px; overflow-wrap: anywhere; }
.attachment-inline .icon { width: 16px; height: 16px; }
.attachment-inline span { color: #748995; font-size: 11px; }
.media-list { padding: 0 22px 12px; }
.media-item { display: grid; gap: 13px; padding: 16px 0; border-top: 1px solid var(--line); min-width: 0; }
.media-item-heading { display: flex; gap: 12px; align-items: center; min-width: 0; }
.media-item-heading > div { min-width: 0; }
.media-item > div { min-width: 0; }
.media-item strong { font-size: 13px; overflow-wrap: anywhere; }
.media-symbol { display: grid; place-items: center; width: 36px; height: 40px; background: #eef4f7; color: #5f8093; border-radius: 8px; flex-shrink: 0; }
.media-preview { display: block; width: min(100%, 760px); border: 1px solid var(--line); border-radius: 10px; background: #f3f6f8; }
.media-preview-image { min-height: 150px; overflow: hidden; }
.media-preview-image img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #eef2f4; }
.media-preview-video { max-height: 520px; background: #14202a; }
.media-preview-audio { height: 54px; border: 0; background: transparent; }
.media-preview-unavailable { display: grid; min-height: 150px; place-items: center; padding: 24px; color: var(--muted); text-align: center; font-size: 12px; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-name { font-size: 15px; font-weight: 650; line-height: 1.7; }
.profile-role { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.requester-profile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.requester-profile > div { min-width: 0; }
.requester-profile > a, .requester-avatar-placeholder, .requester-avatar-fallback { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; flex: 0 0 72px; overflow: hidden; background: #e8f2f4; color: var(--brand); border: 1px solid var(--line); }
.requester-profile > a img { display: block; width: 100%; height: 100%; object-fit: cover; }
.requester-avatar-placeholder .icon, .requester-avatar-fallback .icon { width: 28px; height: 28px; }
.requester-profile-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.detail-list { margin: 20px 0 0; }
.detail-list > div { padding: 12px 0; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.detail-list dd { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.timeline { padding: 0 22px 22px 36px; margin: 0; list-style: none; }
.timeline li { position: relative; border-left: 1px solid #d8e5e9; padding: 0 0 22px 20px; }
.timeline li:last-child { padding-bottom: 4px; border-color: transparent; }
.timeline-dot { position: absolute; top: 3px; left: -5px; width: 9px; height: 9px; background: #6daeb7; border: 2px solid #e9f6f7; border-radius: 50%; }
.timeline time { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.timeline strong { display: block; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.timeline li > span:not(.timeline-dot), .timeline small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.source-error { text-align: center; max-width: 730px; margin: 35px auto; padding: 45px 35px; }
.source-error h2 { font-size: 23px; margin-bottom: 12px; }
.source-error > p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 auto 22px; max-width: 540px; }
.source-error small { display: block; color: var(--muted); font-size: 12px; margin-top: 20px; }

/* Private login */
.login-body { min-height: 100vh; background: var(--canvas); display: grid; place-items: center; padding: 32px; }
.login-shell { display: grid; grid-template-columns: .95fr 1.05fr; width: 100%; max-width: 960px; min-height: 590px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 15px 55px #1c37420a; }
.login-intro { display: flex; flex-direction: column; padding: 38px; background: #eff6f7; border-right: 1px solid #e0eaed; }
.login-intro .brand { margin: 0 0 54px; }
.login-message .eyebrow { display: block; color: #517780; margin-bottom: 14px; }
.login-message h1 { font-size: 30px; font-weight: 650; letter-spacing: -.6px; margin-bottom: 18px; }
.login-message h1 span { color: var(--teal); }
.login-message > p { color: #526f7c; font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
.login-features { display: flex; flex-direction: column; gap: 13px; padding-bottom: 24px; }
.login-feature-row { display: flex; gap: 12px; align-items: flex-start; }
.login-feature-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; background: #e0eff1; border-radius: 9px; }
.login-feature-row strong { display: block; font-size: 12px; color: #395965; }
.login-feature-row p { color: #69818c; font-size: 11px; margin: 4px 0 0; }
.login-features .icon { width: 18px; height: 18px; color: var(--teal); }
.login-university { margin-top: auto; padding-top: 20px; border-top: 1px solid #d8e5e9; color: #6b838f; font-size: 12px; line-height: 1.75; }
.login-form-section { display: flex; align-items: center; justify-content: center; padding: 38px; }
.login-form-wrap { width: 100%; max-width: 380px; }
.login-lock { display: grid; place-items: center; width: 44px; height: 44px; color: var(--teal); background: #eaf5f6; border-radius: 11px; margin-bottom: 23px; }
.login-lock .icon { width: 22px; height: 22px; }
.login-form-wrap h2 { font-size: 26px; letter-spacing: -.6px; margin-bottom: 9px; }
.login-description { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.login-form .field { margin-bottom: 18px; }
.login-form .field input { min-height: 44px; }
.login-submit { width: 100%; min-height: 44px; margin-top: 6px; }
.login-help { display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; }
.login-help .icon { width: 17px; height: 17px; color: #73919c; margin-top: 2px; }
.login-help p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.login-mode { color: #7c8d98; font-size: 11px; margin: 20px 0 0; }

/* Keyboard navigation palette and density preferences */
.header-search { display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px; width: min(360px, 31vw); height: 38px; padding: 8px 12px; color: #728794; background: #f7f9fa; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.header-search .icon { width: 18px; height: 18px; }
.header-search kbd { margin-left: auto; }
kbd { border: 1px solid #dce4e9; border-radius: 4px; background: var(--white); color: #718490; padding: 1px 5px; font-size: 10px; font-family: inherit; white-space: nowrap; }
#navigation-search { width: min(580px, calc(100vw - 32px)); max-height: min(650px, 85vh); padding: 0; margin: 12vh auto auto; border: 1px solid #d8e3e8; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 20px 85px #172b3a30; }
#navigation-search::backdrop { background: #172b3a70; backdrop-filter: blur(2px); }
.portal-modal { width: min(700px, calc(100vw - 32px)); max-height: min(820px, calc(100vh - 48px)); margin: auto; padding: 0; border: 1px solid #d8e3e8; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 20px 85px #172b3a30; overflow: hidden; }
.portal-modal[open] { display: flex; flex-direction: column; }
.portal-modal::backdrop { background: #172b3a70; backdrop-filter: blur(2px); }
.portal-modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.portal-modal-heading h2 { margin: 0; font-size: 18px; }
.portal-modal-heading .eyebrow { margin-bottom: 4px; }
.portal-modal-body { padding: 22px; overflow-y: auto; overscroll-behavior: contain; }
.portal-modal-body > .account-command-form { padding: 0; }
.portal-modal-body > .modal-errors { margin-bottom: 18px; }
.portal-modal-table { padding: 0; }
.portal-modal-table .data-table { min-width: 0; }
.monitoring-modal { width: min(1080px, calc(100vw - 32px)); }
.monitoring-table { min-width: 940px !important; }
.consent-terms-button { margin-top: 9px; }
.consent-terms-text { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafb; font-size: 13px; line-height: 1.75; }
body.modal-open { overflow: hidden; }
.navigation-search-heading { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
[data-nav-search-input] { width: 100%; min-height: 44px; border: 1px solid #d3e0e6; padding: 10px 12px; border-radius: 8px; background: var(--white); font-size: 15px; }
.navigation-search-results { padding: 8px; max-height: 410px; overflow-y: auto; }
[data-nav-search-item] { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; color: #47616f; font-size: 14px; }
[data-nav-search-item]:hover, [data-nav-search-item]:focus { background: #eaf5f6; color: #086d78; }
[data-nav-search-item] .icon { color: #60828e; width: 19px; height: 19px; }
[data-nav-search-item] > span { flex: 1; min-width: 0; }
[data-nav-search-item] strong { display: block; font-size: 13px; }
[data-nav-search-item] small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
[data-nav-search-empty] { margin: 0; padding: 30px 18px; color: var(--muted); text-align: center; }
.navigation-search-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 18px; color: var(--muted); font-size: 11px; }
[data-density-toggle] { white-space: nowrap; }
html[data-density="compact"] { --table-space: 10px; --row-space: 16px; }
html[data-density="compact"] .metric-card { padding: 16px 18px; }
html[data-density="compact"] .panel-heading { padding-block: 15px; }
html[data-density="compact"] .account-photos img, html[data-density="compact"] .account-photo-empty { height: 160px; }

@media (max-width: 1250px) {
    .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .filter-grid .field-search { grid-column: span 2; }
    .report-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .report-filter-grid .filter-inline-actions { grid-column: 1 / -1; justify-content: flex-end; }
    .topbar-context { display: none; }
    .page-heading { align-items: flex-start; }
    .main-content { padding-inline: 24px; }
    .topbar { padding-inline: 24px; }
}
@media (max-width: 1050px) {
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-columns, .detail-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .control-service-grid, .service-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .source-caption { display: none; }
    .source-banner-warning .source-caption { display: block; margin-left: 22px; }
    .source-banner-warning { flex-wrap: wrap; }
    .page-actions { flex-shrink: 1; justify-content: flex-end; }
    .request-summary { flex-wrap: wrap; justify-content: flex-start; }
    .account-meta span, .topbar .mode-badge { display: none; }
    .account-meta strong { max-width: 100px; }
    .header-search { width: min(250px, 28vw); }
    .topbar-date { display: none; }
}
@media (max-width: 760px) {
    .sidebar { position: static; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
    .js .sidebar { position: fixed; transform: translateX(-100%); width: 264px; border-right: 1px solid var(--line); transition: transform 170ms ease; }
    .js .sidebar.is-open { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; background: #172b3a66; border: 0; border-radius: 0; z-index: 35; }
    body.sidebar-open { overflow: hidden; }
    .workspace { margin-left: 0; }
    .js .menu-toggle { display: inline-flex; }
    .topbar { padding-inline: 14px; gap: 8px; }
    .topbar-start { gap: 8px; }
    .main-content { padding: 20px 16px; }
    .page-heading { flex-direction: column; gap: 14px; margin-bottom: 20px; }
    .page-heading h1 { font-size: 24px; margin-bottom: 6px; }
    .page-actions { justify-content: flex-start; padding: 0; }
    .account { gap: 7px; }
    .account-meta { display: none; }
    .header-search { width: auto; }
    .header-search span, .header-search kbd { display: none; }
    [data-density-toggle] .density-label, [data-density-label] { display: none; }
    .source-banner { font-size: 11px; align-items: flex-start; }
    .source-timezone { display: none; }
    .metrics-grid { gap: 12px; margin-bottom: 20px; }
    .metric-card { padding: 16px; }
    .metric-card-top { font-size: 12px; margin-bottom: 12px; }
    .metric-value { font-size: 29px; }
    .metric-card p { font-size: 11px; }
    .metric-icon { width: 29px; height: 29px; }
    .panel-heading { padding: 18px 16px; }
    .panel-heading h2 { font-size: 16px; }
    .panel-body { padding: 0 16px 18px; }
    .panel { margin-bottom: 18px; }
    .data-table { min-width: 680px; }
    .data-table th, .data-table td { padding-inline: 16px; }
    .data-table th:first-child, .data-table td:first-child { padding-left: 16px; }
    .data-table th:last-child, .data-table td:last-child { padding-right: 16px; }
    .compact-table { min-width: 480px; }
    .filter-panel { padding: 16px; }
    .filter-grid, .report-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .filter-grid .field-search, .report-filter-grid > .field:nth-child(3) { grid-column: 1 / -1; }
    .filter-footer { align-items: flex-start; flex-wrap: wrap; }
    .pagination { padding: 15px 16px; flex-wrap: wrap; gap: 12px; }
    .pagination-links { flex-wrap: wrap; }
    .control-settings-grid, .control-profile-grid, .account-row-actions, .account-registration-fields, .detail-aside { grid-template-columns: minmax(0, 1fr); }
    .settings-search-panel, .settings-directory ul { grid-template-columns: minmax(0, 1fr); }
    .settings-search-panel { padding: 18px 16px; }
    .settings-search-panel > a { justify-self: start; }
    .settings-storage-bar > .text-link { margin-left: 0; }
    .settings-tabs { position: static; }
    .control-tabs { gap: 5px; }
    .control-tabs a { padding: 8px 11px; font-size: 12px; }
    .control-service-card { padding: 18px; }
    .control-service-card p { min-height: 0; }
    .account-search { flex-wrap: wrap; padding: 16px; }
    .account-search .field { flex-basis: 100%; }
    .account-management-row { padding: 16px; }
    .account-row-heading { flex-direction: column; gap: 12px; }
    .account-summary { text-align: left; }
    .account-photos { gap: 6px; }
    .account-photos figure { padding: 7px; }
    .account-photos figcaption { font-size: 11px; min-height: 48px; }
    .account-photos img, .account-photo-empty { height: 145px; }
    .request-summary > div { width: calc(50% - 12px); }
    .page-footer { flex-direction: column; gap: 5px; font-size: 10px; }
    .login-body { padding: 20px; }
    .login-shell { grid-template-columns: 1fr; max-width: 470px; min-height: 0; }
    .login-intro { padding: 25px 28px; border-right: 0; border-bottom: 1px solid var(--line); }
    .login-intro .brand { margin: 0; }
    .login-message, .login-university { display: none; }
    .login-form-section { padding: 30px 28px; }
    .login-form-wrap h2 { font-size: 25px; }
    .source-error { padding: 34px 24px; }
    #navigation-search { margin-top: 7vh; max-height: 86vh; }
    .portal-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
    .portal-modal-heading { padding: 16px; }
    .portal-modal-body { padding: 18px 16px; }
    .navigation-search-results { max-height: 55vh; }
    .navigation-search-heading { gap: 8px; padding: 12px; }
    .field input, .field textarea, .field select, [data-nav-search-input] { font-size: 16px; }
}
@media (max-width: 600px) {
    .trend-chart text { font-size: 30px; }
}
@media (max-width: 430px) {
    .metrics-grid { gap: 10px; }
    .metric-card { padding: 14px; }
    .metric-icon { width: 26px; height: 26px; }
    .metric-card-top { font-size: 11px; gap: 5px; }
    .panel-heading .subtle-label { display: none; }
    .people-filter { grid-template-columns: 1fr; gap: 13px; }
    .pagination-links { width: 100%; justify-content: space-between; }
    .request-summary > div { width: 100%; }
    .attempt-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
    .service-shortcuts { grid-template-columns: minmax(0, 1fr); }
    .control-service-grid { grid-template-columns: minmax(0, 1fr); }
    .account-photos figcaption { font-size: 10px; }
    .button { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .sidebar, .topbar, .page-actions, .filter-panel, .pagination-links, .page-size-form, .page-footer, .table-open, .account-command-form, dialog { display: none !important; }
    .workspace { margin-left: 0; }
    .main-content { max-width: none; padding: 0; }
    body { background: var(--white); }
    .panel, .metric-card { box-shadow: none; break-inside: avoid; }
    .table-scroll { overflow: visible; }
    .data-table { min-width: 0; font-size: 10px; }
    .data-table th, .data-table td { padding: 8px; }
}
