:root {
    color-scheme: light;
    --ink: #17212b;
    --ink-soft: #364550;
    --muted: #7a8790;
    --muted-light: #9aa5ad;
    --line: #e5e9e8;
    --line-strong: #d8dfdd;
    --canvas: #f4f6f4;
    --surface: #ffffff;
    --surface-soft: #f8faf8;
    --navy: #111923;
    --navy-soft: #1c2833;
    --lime: #c8ed58;
    --lime-dark: #789b20;
    --teal: #117f74;
    --teal-soft: #e7f5f1;
    --amber: #a86c15;
    --amber-soft: #fff5e4;
    --red: #bd4a46;
    --red-soft: #fff0ee;
    --blue: #456b9a;
    --blue-soft: #edf3fb;
    --shadow: 0 12px 34px rgba(22, 35, 41, .06);
    --radius: 14px;
    --sidebar-width: 252px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid rgba(17, 127, 116, .35); outline-offset: 2px; }

.admin-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 27px 17px 17px; color: #dfe7e9; background: var(--navy); }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px; }
.brand-symbol { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: var(--navy); background: var(--lime); font-size: 22px; font-weight: 800; letter-spacing: -.08em; }
.brand-symbol span { color: #52652b; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 13px; font-weight: 800; letter-spacing: .07em; }
.brand-copy strong span { color: #a9b4bc; font-weight: 500; }
.brand-copy small { color: #839099; font-size: 9px; letter-spacing: .19em; }
.workspace-label { margin: 37px 8px 13px; color: #667580; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.side-nav { display: grid; gap: 4px; }
.nav-section-label { margin: 24px 10px 7px; color: #667580; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.nav-link { position: relative; display: flex; align-items: center; gap: 13px; min-height: 43px; padding: 0 12px; border-radius: 9px; color: #a3afb6; font-size: 12px; font-weight: 500; transition: color .18s ease, background .18s ease; }
.nav-link svg { width: 17px; height: 17px; color: #80909a; }
.nav-link:hover { color: #f5f8f5; background: rgba(255, 255, 255, .055); }
.nav-link.is-active { color: #f8faef; background: #24313a; }
.nav-link.is-active::before { position: absolute; top: 10px; bottom: 10px; left: -17px; width: 3px; border-radius: 0 3px 3px 0; background: var(--lime); content: ""; }
.nav-link.is-active svg { color: var(--lime); }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { display: flex; align-items: center; gap: 11px; padding: 13px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; background: rgba(255, 255, 255, .035); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #7dd5a3; box-shadow: 0 0 0 4px rgba(125, 213, 163, .1); }
.sidebar-note div { display: grid; gap: 1px; }
.sidebar-note strong { color: #e1e8e9; font-size: 11px; font-weight: 600; }
.sidebar-note small { color: #84919a; font-size: 10px; }
.sidebar-version { padding: 17px 10px 3px; color: #74818a; font-size: 9px; letter-spacing: .08em; }
.sidebar-version span { padding: 0 3px; color: var(--lime); }
.mobile-scrim { display: none; }

.app-frame { display: flex; min-height: 100vh; flex-direction: column; margin-left: var(--sidebar-width); }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; min-height: 73px; gap: 26px; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.topbar-context { display: flex; align-items: center; gap: 9px; min-width: 220px; }
.topbar-context > span { color: #99a3a9; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.topbar-context svg { width: 13px; height: 13px; color: #adb6ba; }
.topbar-context strong { overflow: hidden; max-width: 180px; color: #303e47; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-search { display: flex; align-items: center; width: min(340px, 35vw); height: 37px; gap: 8px; margin-left: auto; padding: 0 10px; border: 1px solid #e8ecea; border-radius: 8px; color: #89969b; background: #fafbfa; }
.top-search svg { width: 15px; height: 15px; }
.top-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.top-search kbd { padding: 1px 5px; border: 1px solid #e2e7e5; border-radius: 4px; color: #87938e; background: white; font-size: 9px; }
.topbar-user { display: flex; align-items: center; gap: 11px; }
.user-meta { display: grid; gap: 1px; text-align: right; }
.user-meta strong { max-width: 170px; overflow: hidden; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.user-meta span { color: var(--muted); font-size: 10px; }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #d9e2d9; border-radius: 50%; color: #456535; background: #eaf2dc; font-size: 11px; font-weight: 700; }
.icon-button { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 8px; color: #73818a; background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--ink); background: #f1f4f2; }
.icon-button svg { width: 17px; height: 17px; }
.mobile-menu { display: none; }
.page-content { width: 100%; max-width: 1540px; flex: 1; margin: 0 auto; padding: 35px 40px 46px; }
.app-footer { display: flex; justify-content: space-between; padding: 18px 40px 22px; border-top: 1px solid var(--line); color: #929da1; font-size: 10px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 26px; }
.page-heading-copy { min-width: 0; }
.eyebrow { margin: 0 0 8px; color: #7f8d91; font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 32px); font-weight: 750; letter-spacing: -.045em; line-height: 1.12; }
.page-heading-copy > p:last-child { max-width: 600px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.page-heading-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 15px; height: 15px; }
.button-primary { color: #17221c; background: var(--lime); box-shadow: 0 3px 9px rgba(115, 147, 34, .12); }
.button-primary:hover { background: #bce443; }
.button-secondary { border-color: var(--line-strong); color: #48565c; background: white; }
.button-secondary:hover { border-color: #bcc8c4; background: #fafcfb; }
.button-danger { border-color: #f0d4d1; color: var(--red); background: white; }
.button-danger:hover { background: var(--red-soft); }
.button-quiet { min-height: 33px; padding: 0 10px; color: #68777d; background: transparent; }
.button-quiet:hover { background: #f1f4f2; }
.button-small { min-height: 32px; padding: 0 10px; font-size: 10px; }
.icon-action { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid transparent; border-radius: 7px; color: #77858a; background: transparent; cursor: pointer; }
.icon-action:hover { border-color: var(--line); color: var(--ink); background: #f8faf8; }
.icon-action svg { width: 15px; height: 15px; }
.icon-action.danger:hover { color: var(--red); background: var(--red-soft); }

.notice { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; }
.notice-success { border-color: #d5e9de; color: #276347; background: #eff8f2; }
.notice-error { border-color: #f1d9d6; color: #994441; background: #fff4f2; }
.notice > svg { width: 16px; height: 16px; flex: 0 0 auto; }
.notice-close { margin-left: auto; border: 0; color: currentColor; background: transparent; font-size: 18px; cursor: pointer; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { position: relative; overflow: hidden; min-height: 145px; padding: 18px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 9px rgba(28, 43, 46, .02); }
.stat-card::after { position: absolute; right: -24px; bottom: -54px; width: 126px; height: 126px; border: 1px solid #eff2ed; border-radius: 50%; content: ""; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 600; }
.stat-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--teal); background: var(--teal-soft); }
.stat-icon svg { width: 16px; height: 16px; }
.stat-card:nth-child(2) .stat-icon { color: var(--amber); background: var(--amber-soft); }
.stat-card:nth-child(3) .stat-icon { color: var(--blue); background: var(--blue-soft); }
.stat-card:nth-child(4) .stat-icon { color: #78629b; background: #f1edf8; }
.stat-value { position: relative; z-index: 1; margin: 16px 0 2px; font-size: 29px; font-weight: 750; letter-spacing: -.06em; line-height: 1; }
.stat-foot { position: relative; z-index: 1; color: #89959a; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .9fr); gap: 17px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 9px rgba(28, 43, 46, .02); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #edf0ee; }
.panel-header h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: -.015em; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.panel-link { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 10px; font-weight: 650; }
.panel-link svg { width: 13px; height: 13px; }
.status-panel { padding-bottom: 7px; }
.status-row { display: flex; align-items: center; gap: 11px; padding: 15px 19px; }
.status-mark { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 3px; background: var(--teal); }
.status-row:nth-child(3) .status-mark { background: #dcaa51; }
.status-row:nth-child(4) .status-mark { background: #93a4b1; }
.status-copy { display: grid; flex: 1; gap: 2px; }
.status-copy strong { font-size: 11px; font-weight: 600; }
.status-copy small { color: var(--muted); font-size: 10px; }
.status-count { min-width: 30px; text-align: right; font-size: 15px; font-weight: 700; }
.status-footnote { margin: 8px 19px 14px; padding-top: 14px; border-top: 1px solid #edf0ee; color: var(--muted); font-size: 10px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; }
.toolbar form { display: flex; align-items: center; gap: 8px; }
.search-field { display: flex; align-items: center; width: min(330px, 42vw); height: 38px; gap: 8px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); background: white; }
.search-field svg { width: 15px; height: 15px; flex: 0 0 auto; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.select-control { min-height: 38px; padding: 0 30px 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: #536167; background: white; font-size: 11px; }
.results-caption { color: var(--muted); font-size: 10px; white-space: nowrap; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { height: 42px; padding: 0 15px; border-bottom: 1px solid var(--line); color: #8a969a; background: #fafbfa; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.data-table td { min-height: 59px; padding: 12px 15px; border-bottom: 1px solid #edf0ee; color: #506067; font-size: 11px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdfc; }
.table-primary { display: block; max-width: 360px; overflow: hidden; color: #26343c; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.table-secondary { display: block; max-width: 300px; overflow: hidden; margin-top: 3px; color: #929da1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.table-actions { display: flex; justify-content: flex-end; gap: 3px; }
.table-actions form { display: inline-flex; }
.table-muted { color: #88959a; }
.empty-row { padding: 48px 18px !important; color: var(--muted) !important; text-align: center; }

.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 23px; padding: 0 8px; border-radius: 20px; font-size: 9px; font-weight: 650; white-space: nowrap; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.badge-published, .badge-approved, .badge-subscribed, .badge-active { color: #26704f; background: #eaf6ef; }
.badge-draft, .badge-pending { color: #a06c1f; background: #fff4df; }
.badge-archived, .badge-rejected, .badge-inactive, .badge-unsubscribed { color: #77848a; background: #eef1f1; }
.badge-admin { color: #665486; background: #f0ecf7; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 17px; align-items: start; }
.form-stack { display: grid; gap: 15px; }
.form-card { padding: 21px; }
.form-card h2 { margin: 0 0 17px; font-size: 13px; font-weight: 700; }
.form-card > p { margin: -9px 0 17px; color: var(--muted); font-size: 10px; }
.field { display: grid; gap: 6px; margin: 0 0 15px; }
.field:last-child { margin-bottom: 0; }
.field label, .field-label { color: #4f5f64; font-size: 10px; font-weight: 650; }
.field input, .field textarea, .field select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; color: #283840; background: #fff; font-size: 11px; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 7px 7px 0 0; background: #f7f9f7; }
.rich-toolbar button { min-height: 29px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 5px; color: #40534f; background: #fff; font-size: 10px; cursor: pointer; }
.rich-editor { min-height: 320px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 0 0 7px 7px; outline: 0; color: #283840; background: #fff; font-size: 12px; line-height: 1.7; }
.rich-editor:focus { border-color: #7db4a7; box-shadow: 0 0 0 3px rgba(17, 127, 116, .09); }
.toolbar-divider { width: 1px; min-height: 24px; margin: 2px 3px; background: var(--line-strong); }
.rich-editor h1, .detail-body h1 { margin: 1.05em 0 .45em; font-size: 2em; line-height: 1.15; }
.rich-editor h2, .detail-body h2 { margin: 1em 0 .45em; font-size: 1.65em; line-height: 1.2; }
.rich-editor h3, .detail-body h3 { margin: .95em 0 .4em; font-size: 1.35em; line-height: 1.25; }
.rich-editor h4, .detail-body h4 { margin: .9em 0 .4em; font-size: 1.12em; line-height: 1.3; }
.cover-preview { margin-top: 9px; }
.cover-preview img { display: block; max-width: 100%; max-height: 220px; border-radius: 7px; object-fit: cover; }
.glyph-cover-preview { display: grid; width: 100%; height: 116px; margin-top: 8px; place-items: center; overflow: hidden; border-radius: 7px; color: #ffffffc9; background: linear-gradient(145deg,#2d3a70,#8d87cf); }
.glyph-cover-preview .visual-glyph { font-size: 66px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7db4a7; box-shadow: 0 0 0 3px rgba(17, 127, 116, .09); }
.field-hint { color: #8c989c; font-size: 9px; }
.field-counter { color: #8c989c; font-size: 9px; text-align: right; }
.field-counter.is-over-limit { color: var(--red); }
.field-validation, .validation-summary-errors { color: var(--red); font-size: 10px; }
.validation-summary-errors ul { margin: 5px 0 0; padding-left: 18px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-list { display: grid; gap: 2px; max-height: 250px; overflow: auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; }
.checkbox-option { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 6px; color: #536167; font-size: 11px; cursor: pointer; }
.checkbox-option:hover { background: #f6f8f6; }
.checkbox-option input { width: 15px; min-height: 15px; height: 15px; accent-color: var(--teal); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid #edf0ee; }
.form-side-note { padding: 15px; border-radius: 9px; color: #5d6a6d; background: #f4f7f4; font-size: 10px; }
.form-side-note strong { display: block; margin-bottom: 5px; color: #31423e; font-size: 11px; }
.form-side-note p { margin: 0; line-height: 1.6; }
.form-side-note + .form-side-note { margin-top: 10px; }
.checkline { display: flex; align-items: flex-start; gap: 9px; color: #536167; font-size: 11px; }
.checkline input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--teal); }

.detail-card { padding: 26px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 10px; }
.detail-card h2 { margin: 0 0 11px; font-size: 25px; letter-spacing: -.04em; }
.detail-summary { color: #68777c; font-size: 14px; line-height: 1.7; }
.detail-cover { display: block; max-width: 100%; max-height: 380px; margin: 20px auto; border-radius: 10px; object-fit: cover; }
.detail-body { overflow-wrap: anywhere; padding-top: 19px; border-top: 1px solid var(--line); color: #34434a; white-space: pre-wrap; font-size: 12px; line-height: 1.8; }

.auth-page { min-height: 100vh; background: #f5f7f5; }
.auth-grid { display: grid; min-height: 100vh; grid-template-columns: minmax(400px, .9fr) minmax(440px, 1.1fr); }
.auth-aside { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 37px 8%; color: #e7eeec; background: var(--navy); }
.auth-aside::before { position: absolute; inset: 0; background-image: radial-gradient(rgba(210, 232, 219, .13) .7px, transparent .7px); background-position: 11px 12px; background-size: 18px 18px; content: ""; opacity: .26; mask-image: linear-gradient(to bottom, transparent 4%, black 43%, black 75%, transparent); }
.auth-aside .brand-lockup, .auth-aside-copy, .auth-art, .auth-aside-footer { position: relative; z-index: 1; }
.auth-aside-copy { max-width: 440px; margin: auto 0 12px 5%; }
.auth-aside-copy .eyebrow { color: #98a89d; }
.auth-aside-copy h1 { margin: 0 0 17px; color: #f5f7ef; font-size: clamp(38px, 4.6vw, 60px); font-weight: 700; letter-spacing: -.065em; line-height: 1.03; }
.auth-aside-copy h1 em { color: var(--lime); font-style: normal; }
.auth-aside-copy > p:last-child { max-width: 360px; color: #a7b3b3; font-size: 13px; line-height: 1.7; }
.auth-art { position: relative; width: min(340px, 75%); aspect-ratio: 1; margin: 8px auto 0; }
.auth-orbit { position: absolute; inset: 11%; border: 1px solid rgba(201, 234, 102, .26); border-radius: 50%; transform: rotate(-28deg) scaleY(.62); }
.auth-orbit.orbit-b { inset: 1% 19%; transform: rotate(40deg) scaleY(.65); border-color: rgba(209, 226, 219, .18); }
.auth-orbit.orbit-c { inset: 22% 3%; transform: rotate(5deg) scaleY(.8); border-color: rgba(201, 234, 102, .19); }
.auth-art-core { position: absolute; inset: 0; display: grid; place-items: center; color: #edf2e8; font-family: Georgia, serif; font-size: 37px; letter-spacing: -.08em; }
.auth-art-core span { position: absolute; margin: -36px 0 0 72px; color: var(--lime); font-size: 12px; }
.auth-art-coordinate { position: absolute; right: 0; bottom: 14%; color: #81918e; font-size: 8px; letter-spacing: .17em; line-height: 1.8; text-align: right; }
.auth-aside-footer { margin-top: auto; color: #788680; font-size: 9px; letter-spacing: .12em; }
.auth-main { display: grid; place-items: center; padding: 50px 8%; }
.auth-card-wrap { width: min(390px, 100%); }
.auth-card-wrap h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.05em; }
.auth-card-wrap > p { color: var(--muted); font-size: 12px; }
.auth-form { display: grid; gap: 15px; margin-top: 26px; }
.auth-form .field { margin: 0; }
.auth-form .field input { min-height: 45px; }
.auth-form .button { width: 100%; min-height: 45px; margin-top: 3px; }
.auth-check { display: flex; align-items: center; justify-content: space-between; color: #718087; font-size: 10px; }
.auth-check label { display: flex; align-items: center; gap: 7px; }
.auth-check input { accent-color: var(--teal); }
.auth-card-wrap .validation-summary-errors { margin: 13px 0; padding: 11px; border: 1px solid #f1d9d6; border-radius: 7px; background: #fff4f2; }
.auth-legal { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 9px !important; text-align: center; }
.auth-legal a { color: var(--teal); font-weight: 600; }
.access-denied { padding: 24px; border: 1px solid #f1d9d6; border-radius: 10px; color: #994441; background: #fff4f2; }

.mobile-only { display: none; }
@media (max-width: 1180px) {
    :root { --sidebar-width: 225px; }
    .topbar { gap: 15px; padding: 0 25px; }
    .page-content { padding-right: 25px; padding-left: 25px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-layout { grid-template-columns: minmax(0, 1fr) 255px; }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; }
    .sidebar.is-open { transform: translateX(0); }
    .mobile-scrim.is-visible { position: fixed; z-index: 25; inset: 0; display: block; background: rgba(12, 20, 26, .42); }
    .app-frame { margin-left: 0; }
    .mobile-menu { display: grid; }
    .topbar { gap: 13px; padding: 0 20px; }
    .topbar-context { min-width: 0; }
    .topbar-context > span, .topbar-context > svg { display: none; }
    .top-search { width: min(300px, 34vw); }
    .page-content { padding: 28px 20px 38px; }
    .app-footer { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 700px) {
    .topbar { min-height: 64px; }
    .top-search { width: 38px; height: 36px; justify-content: center; margin-left: auto; padding: 0; border: 0; background: transparent; }
    .top-search input, .top-search kbd { display: none; }
    .top-search:focus-within { position: absolute; right: 190px; left: 60px; width: auto; justify-content: flex-start; padding: 0 10px; border: 1px solid var(--line); background: white; }
    .top-search:focus-within input { display: block; }
    .user-meta { display: none; }
    .topbar-user { gap: 5px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
    .page-heading-actions { width: 100%; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .toolbar { align-items: flex-start; flex-direction: column; }
    .toolbar form { width: 100%; }
    .search-field { width: 100%; }
    .form-layout { grid-template-columns: 1fr; }
    .form-aside { order: -1; }
    .form-aside .form-side-note:not(:first-child) { display: none; }
    .auth-grid { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .auth-main { min-height: 100vh; padding: 32px 22px; }
    .mobile-only { display: block; }
}
@media (max-width: 480px) {
    .page-content { padding: 23px 14px 32px; }
    .topbar { padding: 0 12px; }
    .topbar-context strong { max-width: 112px; }
    .avatar { width: 31px; height: 31px; }
    .logout-button { width: 29px; }
    .stat-grid { gap: 9px; }
    .stat-card { min-height: 130px; padding: 14px; }
    .stat-value { margin-top: 13px; font-size: 26px; }
    .panel-header { padding: 15px; }
    .data-table th, .data-table td { padding-right: 11px; padding-left: 11px; }
    .input-row { grid-template-columns: 1fr; gap: 0; }
    .app-footer { gap: 8px; padding: 15px 14px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.form-single { width: min(100%, 720px); }
.form-single .field { margin-bottom: 18px; }
.comment-copy { max-width: 360px; overflow: hidden; display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-legal { width: min(390px, 100%); }
