:root {
    --brand-primary: #1463d6;
    --brand-primary-hover: #0d55bd;
    --brand-soft: #eaf2ff;
    --brand-dark: #102a54;
    --page: #f4f7fb;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --text: #142139;
    --text-soft: #66738a;
    --border: #dfe5ee;
    --success: #138a57;
    --success-soft: #e8f8f0;
    --warning: #b96a08;
    --warning-soft: #fff4df;
    --danger: #cc3f45;
    --danger-soft: #ffeaec;
    --purple: #7953d2;
    --shadow: 0 8px 24px rgba(25, 44, 75, .07);
    --radius: 12px;
    --sidebar: 264px;
    --topbar: 64px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); background: var(--page); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
h2 { margin-bottom: 5px; font-size: 16px; }
p { color: var(--text-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; }
.app-main { min-height: 100vh; margin-left: var(--sidebar); display: flex; flex-direction: column; transition: margin .2s ease; }
.content { width: min(1180px, calc(100% - 52px)); margin: 0 auto; padding: 36px 0 52px; flex: 1; }
.content--wide { width: calc(100% - 40px); max-width: none; }
.content--list { height: calc(100vh - var(--topbar) - 34px); min-height: 620px; display: flex; flex-direction: column; padding-bottom: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(25,44,75,.03); }

/* Sidebar */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 40; transition: width .2s ease, transform .2s ease; }
.sidebar__header { height: var(--topbar); padding: 0 14px 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand, .login-brand { display: flex; gap: 10px; align-items: center; min-width: 0; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0872ed, #164eaf); border-radius: 9px; font-size: 20px; font-weight: 800; font-style: italic; box-shadow: 0 5px 14px rgba(20,99,214,.26); }
.brand strong, .login-brand strong { display: block; font-size: 16px; }
.brand small, .login-brand small { display: block; color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.sidebar-collapse { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text-soft); }
.sidebar__context { margin: 14px 12px; padding: 11px; border: 1px solid var(--border); border-radius: 10px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; }
.context-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-dark); color: #fff; font-weight: 800; font-size: 12px; }
.sidebar__context small, .sidebar__context strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__context small { color: var(--text-soft); font-size: 12px; }
.sidebar__context strong { font-size: 13px; }
.context-chevron { color: var(--text-soft); }
.sidebar__nav { flex: 1; padding: 2px 10px 16px; overflow-y: auto; }
.nav-heading { display: block; margin: 16px 9px 7px; color: #98a3b6; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.nav-link { min-height: 40px; padding: 0 11px; border-radius: 8px; display: flex; align-items: center; gap: 11px; color: #34445e; font-weight: 600; }
.nav-link:hover { background: var(--surface-muted); }
.nav-link.is-active { background: var(--brand-soft); color: var(--brand-primary); }
.nav-icon { width: 17px; text-align: center; color: #71809a; }
.nav-chevron { margin-left: auto; transition: transform .2s; }
.nav-group summary { list-style: none; cursor: pointer; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group[open] .nav-chevron { transform: rotate(90deg); }
.nav-submenu { padding: 4px 0 6px 39px; }
.nav-submenu a { display: block; padding: 7px 8px; border-radius: 6px; color: var(--text-soft); font-size: 13px; }
.nav-submenu a:hover { color: var(--brand-primary); background: var(--brand-soft); }
.sidebar__footer { padding: 10px; border-top: 1px solid var(--border); }
.sidebar-help { padding: 10px; display: flex; gap: 10px; align-items: center; border-radius: 9px; background: #f2f6fc; }
.sidebar-help > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-primary); font-weight: 800; }
.sidebar-help strong, .sidebar-help small { display: block; }
.sidebar-help small { color: var(--text-soft); font-size: 12px; }
.sidebar-overlay { display: none; }

/* Header */
.topbar { height: var(--topbar); padding: 0 18px 0 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; }
.topbar__left, .topbar__actions, .user-menu { display: flex; align-items: center; }
.topbar__actions { gap: 8px; }
.breadcrumbs { display: flex; gap: 9px; color: #95a0b2; font-size: 13px; }
.breadcrumbs strong { color: var(--text); }
.topbar-search { width: 220px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-muted); color: #8793a6; display: flex; gap: 8px; align-items: center; }
.topbar-search span:nth-child(2) { flex: 1; text-align: left; }
kbd { padding: 2px 6px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: #8b96a8; font-size: 11px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.notification-button { position: relative; }
.notification-button span { position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--danger); }
.user-menu { margin-left: 4px; padding-left: 12px; gap: 9px; border-left: 1px solid var(--border); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-dark); font-size: 12px; font-weight: 800; }
.user-menu__copy strong, .user-menu__copy small { display: block; }
.user-menu__copy strong { font-size: 13px; }
.user-menu__copy small { color: var(--text-soft); font-size: 12px; }
.logout-link { margin-left: 4px; color: var(--text-soft); }
.mobile-menu { display: none; margin-right: 10px; }

/* Common content */
.page-heading { margin-bottom: 22px; }
.page-heading p { margin-bottom: 0; }
.page-heading--actions, .detail-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.list-page-heading { margin-bottom: 18px; }
.eyebrow { display: inline-block; margin-bottom: 7px; color: var(--brand-primary); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow--light { color: #d9e9ff; }
.page-actions { display: flex; gap: 9px; align-items: center; }
.button { min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 750; }
.button--primary { color: #fff; background: var(--brand-primary); box-shadow: 0 6px 14px rgba(20,99,214,.18); }
.button--primary:hover { background: var(--brand-primary-hover); }
.button--secondary { background: #fff; border-color: var(--border); }
.button--small { min-height: 34px; font-size: 12px; }
.button--block { width: 100%; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--brand-primary); font-weight: 700; }
.app-footer { min-height: 38px; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; color: #98a3b4; background: #fff; border-top: 1px solid var(--border); font-size: 12px; }

/* Dashboard */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.metric-card { min-height: 98px; padding: 18px; display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.metric-icon, .quick-icon { display: grid; place-items: center; border-radius: 10px; font-weight: 800; }
.metric-icon { width: 42px; height: 42px; font-size: 18px; }
.metric-icon--blue, .quick-icon--blue { color: var(--brand-primary); background: var(--brand-soft); }
.metric-icon--green, .quick-icon--green { color: var(--success); background: var(--success-soft); }
.metric-icon--orange, .quick-icon--orange { color: var(--warning); background: var(--warning-soft); }
.metric-icon--purple, .quick-icon--purple { color: var(--purple); background: #f0eaff; }
.metric-card small, .metric-card span { display: block; color: var(--text-soft); }
.metric-card strong { display: block; font-size: 23px; }
.metric-card span { font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.dashboard-card > header, .section-card > header { min-height: 62px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.dashboard-card header p { margin: 0; font-size: 12px; }
.quiet-button { border: 0; background: none; color: var(--text-soft); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; }
.quick-grid a { min-height: 78px; padding: 16px 18px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quick-grid a:nth-child(even) { border-right: 0; }
.quick-grid a:nth-last-child(-n+2) { border-bottom: 0; }
.quick-grid a:hover { background: var(--surface-muted); }
.quick-icon { width: 38px; height: 38px; }
.quick-grid strong, .quick-grid small { display: block; }
.quick-grid small { color: var(--text-soft); font-size: 12px; }
.quick-grid b { color: #9aa5b6; }
.timeline { padding: 18px; }
.timeline > div { display: flex; gap: 11px; min-height: 58px; }
.timeline > div > span { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--brand-primary); box-shadow: 0 0 0 5px var(--brand-soft); }
.timeline strong, .timeline small { display: block; }
.timeline small { color: var(--text-soft); }
.info-banner { margin-top: 16px; padding: 15px 18px; display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; border: 1px solid #dbe8fa; border-radius: var(--radius); background: #f4f8ff; }
.info-banner > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand-primary); }
.info-banner p { margin: 2px 0 0; font-size: 12px; }
.info-banner a { color: var(--brand-primary); font-weight: 700; }

/* Tables */
.data-card { min-height: 0; display: flex; flex: 1; flex-direction: column; overflow: hidden; }
.filters { padding: 14px 16px; display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(2, minmax(150px, .65fr)) auto auto; gap: 9px; border-bottom: 1px solid var(--border); }
.filters input, .filters select, .field input, .field select, .field textarea { width: 100%; min-height: 40px; border: 1px solid #cfd8e6; border-radius: 8px; background: #fff; outline: none; }
.filters input:focus, .filters select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(20,99,214,.1); }
.filter-search { position: relative; }
.filter-search span { position: absolute; left: 12px; top: 10px; color: #8794a8; }
.filter-search input { padding-left: 34px; }
.filters select { padding: 0 10px; }
.filters__clear { border: 0; background: none; color: var(--brand-primary); font-weight: 700; }
.bulk-bar { min-height: 46px; padding: 7px 16px; display: flex; align-items: center; justify-content: space-between; background: var(--surface-muted); border-bottom: 1px solid var(--border); }
.bulk-bar > span { color: var(--text-soft); font-size: 12px; }
.table-scroll { min-height: 0; flex: 1; overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table thead { position: sticky; top: 0; z-index: 2; }
.data-table th { height: 44px; padding: 0 12px; background: #f7f9fc; border-bottom: 1px solid var(--border); color: #6f7b90; text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.data-table td { height: 57px; padding: 9px 12px; border-bottom: 1px solid #e9edf3; color: #4b5a70; }
.data-table tr:hover td { background: #fbfcfe; }
.data-table td strong { color: var(--text); }
.table-sort { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-transform: inherit; }
.check-cell { width: 42px; text-align: center !important; }
.check-cell input { width: 16px; height: 16px; accent-color: var(--brand-primary); }
.cell-primary { color: var(--brand-primary); font-weight: 800; }
.row-action { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--text-soft); font-size: 20px; }
.row-action:hover { background: var(--brand-soft); color: var(--brand-primary); }
.table-footer { min-height: 42px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; color: #8995a8; font-size: 12px; border-top: 1px solid var(--border); }
.badge { display: inline-flex; min-height: 24px; padding: 2px 10px; align-items: center; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge--success { color: var(--success); background: var(--success-soft); }
.badge--blue { color: var(--brand-primary); background: var(--brand-soft); }
.badge--warning { color: var(--warning); background: var(--warning-soft); }
.badge--danger { color: var(--danger); background: var(--danger-soft); }
.badge--neutral { color: #67748a; background: #eef1f5; }

/* Forms */
.editor-form { max-width: 1040px; margin: 0 auto; }
.form-section { margin-bottom: 14px; }
.form-section > header { padding: 17px 20px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); }
.form-section > header > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--brand-primary); background: var(--brand-soft); font-weight: 800; }
.form-section header h2, .form-section header p { margin: 0; }
.form-section header p { font-size: 12px; }
.form-grid { padding: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.field { display: block; }
.field > span:first-child { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 750; }
.field input, .field select { padding: 0 11px; }
.field textarea { padding: 11px; resize: vertical; }
.field--wide { grid-column: span 2; }
.field--full { grid-column: 1 / -1; }
.form-actions { position: sticky; bottom: 0; padding: 13px 0; display: flex; justify-content: flex-end; gap: 9px; background: linear-gradient(rgba(244,247,251,0), var(--page) 25%); }
.password-field { display: flex; border: 1px solid #cfd8e6; border-radius: 8px; overflow: hidden; }
.password-field input { border: 0; border-radius: 0; }
.password-field button { padding: 0 12px; border: 0; background: #fff; color: var(--brand-primary); font-weight: 700; }

/* Detail */
.detail-heading { margin-bottom: 15px; align-items: center; }
.detail-title { display: flex; gap: 13px; align-items: center; }
.detail-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: var(--brand-primary); background: var(--brand-soft); font-weight: 800; }
.title-line { display: flex; gap: 10px; align-items: center; }
.title-line h1 { margin: 0; }
.detail-title p { margin: 3px 0 0; }
.tabs { margin-bottom: 14px; display: flex; gap: 24px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 10px 2px; color: var(--text-soft); font-weight: 700; }
.tabs a.is-active { color: var(--brand-primary); border-bottom: 2px solid var(--brand-primary); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .9fr); gap: 14px; }
.detail-main, .detail-aside { display: grid; gap: 14px; align-content: start; }
.section-card { overflow: hidden; }
.section-card header > span { color: var(--text-soft); font-size: 12px; }
.definition-grid { padding: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.definition-grid small, .stacked-data small { display: block; margin-bottom: 4px; color: #8b97aa; font-size: 11px; font-weight: 800; }
.definition-grid strong, .stacked-data strong { display: block; }
.stacked-data { padding: 8px 18px 18px; }
.stacked-data > div { padding: 12px 0; border-bottom: 1px solid var(--border); }
.stacked-data > div:last-child { border-bottom: 0; }
.activity-list { padding: 4px 18px 14px; }
.activity-list > div { padding: 12px 0; display: flex; gap: 11px; border-bottom: 1px solid var(--border); }
.activity-list > div:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--brand-primary); }
.activity-list strong, .activity-list small { display: block; }
.activity-list small { color: var(--text-soft); }
.muted-copy { margin: 0; padding: 18px; }

/* Dialogs and toast */
.app-dialog { width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: transparent; }
.app-dialog::backdrop { background: rgba(18,33,57,.42); backdrop-filter: blur(2px); }
.dialog-card { width: min(760px, calc(100% - 32px)); margin: 8vh auto; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(17,34,61,.22); overflow: hidden; }
.dialog-card--small { width: min(540px, calc(100% - 32px)); }
.dialog-card > header { padding: 20px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); }
.dialog-card header p { margin: 0; }
.dialog-card header button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f1f4f8; }
.dialog-body { padding: 20px; }
.dialog-card > footer { padding: 14px 20px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--border); }
.confirm-panel { padding: 14px; display: flex; gap: 12px; border-radius: 9px; background: var(--warning-soft); }
.confirm-panel > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--warning); background: #fff; font-weight: 800; }
.confirm-panel p { margin: 0; }
.empty-inline { margin-top: 12px; padding: 18px; border: 1px dashed var(--border); border-radius: 9px; color: var(--text-soft); text-align: center; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 420px; padding: 13px 14px; display: flex; gap: 10px; align-items: center; border: 1px solid #bae7cf; border-radius: 10px; background: #f2fff8; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; }
.toast--error { border-color: #f1c0c4; background: #fff5f6; }
.toast__icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--success); }
.toast--error .toast__icon { background: var(--danger); }
.toast button { margin-left: auto; border: 0; background: transparent; font-size: 18px; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }

/* Help */
.help-grid { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; }
.help-nav { position: sticky; top: calc(var(--topbar) + 18px); padding: 14px; display: grid; gap: 3px; }
.help-nav strong { padding: 8px; }
.help-nav a { padding: 8px; border-radius: 7px; color: var(--text-soft); }
.help-nav a:hover { color: var(--brand-primary); background: var(--brand-soft); }
.help-content { padding: 4px 26px; }
.help-content section { padding: 24px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.help-content section:last-child { border-bottom: 0; }
.help-content pre { padding: 15px; border-radius: 9px; overflow: auto; background: #101a2e; color: #dce7f8; }
.help-content code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

/* Login */
.login-page { min-height: 100vh; background: #fff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 42% 58%; }
.login-brand-panel { position: relative; padding: 42px 7vw; display: flex; flex-direction: column; color: #fff; overflow: hidden; background: linear-gradient(155deg, #0b459e, #0d65df 72%, #2582ee); }
.login-brand-panel::before, .login-brand-panel::after { content: ""; position: absolute; border: 2px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-brand-panel::before { width: 420px; height: 420px; top: -190px; right: -230px; box-shadow: 0 0 0 55px rgba(255,255,255,.035), 0 0 0 110px rgba(255,255,255,.025); }
.login-brand-panel::after { width: 300px; height: 300px; left: -230px; bottom: -210px; }
.login-brand .brand__mark { background: #fff; color: var(--brand-primary); }
.login-brand strong { color: #fff; }
.login-brand small { color: #d7e8ff; }
.login-message { margin: auto 0; max-width: 540px; }
.login-message h1 { max-width: 500px; font-size: clamp(38px, 4vw, 58px); line-height: 1.02; }
.login-message p { max-width: 520px; color: #d8e8ff; font-size: 16px; }
.login-version { color: #c7ddfa; }
.login-form-panel { display: grid; place-items: center; padding: 30px; }
.login-form { width: min(430px, 100%); }
.login-form h2 { font-size: 28px; }
.login-form > p { margin-bottom: 25px; }
.login-form .field { margin-bottom: 15px; }
.form-alert { margin-top: 16px; padding: 12px; border: 1px solid #d9e6f7; border-radius: 8px; background: #f5f9ff; color: var(--text-soft); font-size: 12px; }
.form-alert--error { color: var(--danger); border-color: #f0c4c8; background: #fff3f4; }

.empty-state { padding: 56px 24px; text-align: center; }
.empty-state__icon { width: 52px; height: 52px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand-primary); font-size: 22px; }

body.sidebar-mini { --sidebar: 76px; }
body.sidebar-mini .brand > span:last-child, body.sidebar-mini .sidebar__context > span:not(.context-logo), body.sidebar-mini .nav-link > span:not(.nav-icon), body.sidebar-mini .nav-heading, body.sidebar-mini .nav-submenu, body.sidebar-mini .sidebar-help > span:last-child { display: none; }
body.sidebar-mini .sidebar__context { grid-template-columns: 34px; justify-content: center; }
body.sidebar-mini .nav-link { justify-content: center; }
body.sidebar-mini .sidebar-collapse { transform: rotate(180deg); }

@media (max-width: 1050px) {
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
    .filter-search { grid-column: 1 / -1; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .form-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
    .sidebar { transform: translateX(-100%); }
    .app-main { margin-left: 0; }
    body.menu-open .sidebar { transform: translateX(0); }
    body.menu-open .sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(17,31,52,.35); }
    .mobile-menu { display: grid; }
    .topbar-search, .user-menu__copy { display: none; }
    .content, .content--wide { width: calc(100% - 24px); padding-top: 24px; }
    .content--list { height: auto; min-height: calc(100vh - var(--topbar)); }
    .page-heading--actions, .detail-heading { align-items: flex-start; flex-direction: column; }
    .metric-grid, .quick-grid, .detail-grid, .help-grid { grid-template-columns: 1fr; }
    .help-nav { position: static; }
    .quick-grid a { border-right: 0; }
    .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
    .field--wide { grid-column: auto; }
    .filters { grid-template-columns: 1fr; }
    .filter-search { grid-column: auto; }
    .login-shell { grid-template-columns: 1fr; }
    .login-brand-panel { min-height: 310px; padding: 30px; }
    .login-message h1 { font-size: 38px; }
    .login-form-panel { padding: 45px 24px; }
    .app-footer { gap: 12px; flex-direction: column; justify-content: center; padding: 10px; text-align: center; }
}
