/* KPI Faiz Cool AC — satu file CSS, tanpa build step. */
:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --ink: #16253f;
    --muted: #52627b;
    --line: #e0e6ef;
    --brand: #1e40af;
    --brand-ink: #ffffff;
    --brand-soft: #edf2ff;
    --r5: #1f7a4d; --r5-bg: #e2f3ea;
    --r4: #2f6db3; --r4-bg: #e5eefa;
    --r3: #765900; --r3-bg: #fbf1d0;
    --r2: #984515; --r2-bg: #fbe7da;
    --r1: #b3261e; --r1-bg: #fbe3e1;
    --r0: #5d6f7b; --r0-bg: #edf1f3;
    --radius: 14px;
    --sidebar: #101f3b;
    --sidebar-text: #c2cde0;
    --sidebar-active: #243c64;
    --featured: #1e40af;
    --shadow: 0 3px 16px rgb(16 31 59 / 3%);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e171d; --panel: #15222b; --ink: #e4edf2; --muted: #93a6b2; --line: #26363f;
        --brand: #a0bcff; --brand-ink: #102144; --brand-soft: #1c3052;
        --r5: #6fd19c; --r5-bg: #16352a; --r4: #86b6f0; --r4-bg: #1a2c44;
        --r3: #e6c25a; --r3-bg: #3a3017; --r2: #f0a070; --r2-bg: #3d2618;
        --r1: #f08a82; --r1-bg: #3f1d1b; --r0: #93a6b2; --r0-bg: #1f2d36;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); font-variant-numeric: tabular-nums; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
small, .muted { color: var(--muted); }

/* Layout */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: -.01em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 6px; font-weight: 600; }
.nav a:hover { background: var(--brand-soft); color: var(--ink); text-decoration: none; }
.nav a.aktif { background: var(--brand-soft); color: var(--brand); }
.user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tiles { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.panel > h2 { margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }

.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tile .value { font-size: 26px; font-weight: 800; margin-top: 2px; }
.tile .sub { font-size: 12px; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; white-space: nowrap; }
td.num, th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
tfoot td { font-weight: 800; border-top: 2px solid var(--line); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.r5 { color: var(--r5); background: var(--r5-bg); }
.r4 { color: var(--r4); background: var(--r4-bg); }
.r3 { color: var(--r3); background: var(--r3-bg); }
.r2 { color: var(--r2); background: var(--r2-bg); }
.r1 { color: var(--r1); background: var(--r1-bg); }
.r0 { color: var(--r0); background: var(--r0-bg); }
.tag { display: inline-block; padding: 1px 6px; border-radius: 4px; background: var(--r0-bg); color: var(--muted); font-size: 11px; font-weight: 700; }

/* Bars */
.bar-row { display: grid; grid-template-columns: minmax(90px, 140px) 1fr 52px; align-items: center; gap: 10px; padding: 5px 0; }
.bar { height: 10px; background: var(--r0-bg); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.bar-row .v { text-align: right; font-weight: 700; }

/* Forms */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 7px 14px; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.small { padding: 3px 10px; font-size: 13px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; max-width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
input.num { width: 96px; text-align: right; }
label { font-weight: 600; font-size: 13px; }
.field { display: grid; gap: 4px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.alert { padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.alert.ok { background: var(--r5-bg); color: var(--r5); }
.alert.err { background: var(--r1-bg); color: var(--r1); }
.alert.info { background: var(--brand-soft); color: var(--ink); font-weight: 500; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

.big-score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.big-score .n { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.empty { color: var(--muted); padding: 12px 0; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.list-plain li:last-child { border-bottom: 0; }
.chart-box { position: relative; height: 260px; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .panel { width: 100%; max-width: 380px; padding: 28px; display: grid; gap: 16px; }

/* Cetak */
@media print {
    .topbar, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    .panel { border: 0; padding: 0; }
}

/* Access management uses the same panels and controls as the KPI workspace. */
.access-form { display: grid; gap: 20px; margin-top: 24px; min-width: 0; }
.access-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); min-width: 0; }
.access-form .field { min-width: 0; }
.access-form .field input, .access-form .field select, .access-form .field textarea { width: 100%; min-width: 0; }
.access-form h3 { margin: 0; }
.access-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.access-choices { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; margin: 0; }
.access-choices legend { font-weight: 700; padding: 0 6px; }
.access-check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; overflow-wrap: anywhere; }
.access-check input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; padding: 0; accent-color: var(--brand); }
.access-audit { padding: 12px 0; border-bottom: 1px solid var(--line); }
.access-audit summary { cursor: pointer; min-height: 44px; overflow-wrap: anywhere; }
.access-audit pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
#accounts, #roles, #approvals, #policy, #history, #account-form, #role-form, #approval-form { scroll-margin-top: 100px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.icon { flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--panel); padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sidebar { width: 248px; position: fixed; inset: 0 auto 0 0; z-index: 30; background: var(--sidebar); color: var(--sidebar-text); padding: 32px 20px 16px; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar .brand, .mobile-navigation .brand, .login-story .brand { color: #fff; }
.brand { gap: 12px; font-size: 17px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; background: #fff; color: #1e40af; }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: #b9c8e0; margin-top: 4px; }
.brand:hover { text-decoration: none; }
.nav-caption { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #a9bbd5; margin: 44px 12px 12px; }
.nav { display: grid; flex: 0; gap: 8px; }
.nav a { display: flex; align-items: center; min-height: 48px; gap: 12px; padding: 12px; color: var(--sidebar-text); border-radius: 10px; font-size: 13px; font-weight: 500; transition: background .18s, color .18s; }
.nav a:hover, .nav a.aktif { background: var(--sidebar-active); color: #fff; }
.nav a.aktif { box-shadow: inset 3px 0 #85a9ff; font-weight: 700; }
.sidebar-note { margin-top: auto; padding: 48px 12px 24px; font-size: 13px; line-height: 1.9; }
.sidebar-note strong { color: #fff; font-weight: 500; }
.sidebar-note span { display: block; color: #a9bbd5; margin-top: 12px; font-size: 11px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding-top: 20px; border-top: 1px solid #2b3c59; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #344e78; color: #fff; font-weight: 700; flex-shrink: 0; }
.user-name { flex: 1; min-width: 0; }
.user-name strong { display: block; color: #fff; font-size: 12px; overflow-wrap: anywhere; }
.user-name small { color: #b9c8e0; font-size: 11px; }
.icon-btn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: inherit; border-radius: 8px; cursor: pointer; }
.icon-btn:hover { background: rgb(128 149 180 / 15%); }
.app-shell .topbar { margin-left: 248px; z-index: 20; }
.topbar-inner { max-width: none; padding: 0 32px; min-height: 76px; justify-content: space-between; flex-wrap: nowrap; }
.breadcrumb { display: flex; gap: 14px; color: var(--muted); font-size: 13px; align-items: center; min-width: 0; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.breadcrumb span { color: var(--muted); }
.workspace-label { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.status-dot { width: 7px; height: 7px; background: var(--r5); border-radius: 50%; }
.app-shell .wrap { margin-left: 248px; max-width: 1600px; padding: 32px; gap: 24px; }
.page-head { gap: 24px; margin-bottom: 4px; align-items: center; }
h1 { font-size: 28px; letter-spacing: -.035em; font-weight: 800; }
.page-head p { font-size: 13px; margin-top: 10px; max-width: 620px; }
.eyebrow { display: block; font-size: 10px; letter-spacing: .15em; font-weight: 800; color: var(--muted); margin-bottom: 10px; }
.grid { gap: 20px; }
.tiles { gap: 16px; }
.panel { padding: 24px; box-shadow: var(--shadow); }
.panel-head { margin-bottom: 24px; align-items: center; }
.panel-head small { font-size: 11px; }
.tile { padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.tile-heading { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-height: 34px; }
.tile .label { font-size: 11px; text-transform: none; letter-spacing: 0; }
.tile .value { font-size: 34px; margin: 12px 0 4px; line-height: 1.2; letter-spacing: -.04em; }
.value-unit { font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 6px; color: var(--muted); }
.tile .sub { font-size: 11px; }
.tile-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.tile-icon .icon { width: 17px; height: 17px; }
.tile-featured { background: var(--featured); border-color: var(--featured); color: #fff; }
.tile-featured .label, .tile-featured .sub, .tile-featured .value-unit { color: #dbe6ff; }
table { font-size: 13px; }
th { font-size: 10px; background: var(--bg); padding: 14px 12px; }
td { padding: 14px 12px; }
.table-wrap { scrollbar-width: thin; }
.badge { padding: 5px 10px; font-size: 11px; }
.tag { font-size: 10px; padding: 3px 7px; }
.bar-row { font-size: 12px; padding: 12px 0; grid-template-columns: minmax(90px, 140px) minmax(30px, 1fr) 40px; }
.bar { height: 7px; }
.list-plain { font-size: 13px; }
.list-plain li { padding: 12px 0; align-items: center; flex-wrap: wrap; }
.btn { min-height: 44px; padding: 10px 16px; border-radius: 9px; font-size: 13px; justify-content: center; transition: background .15s, border-color .15s; touch-action: manipulation; }
.btn.small { min-height: 44px; padding: 8px 12px; font-size: 12px; }
.btn:active, .icon-btn:active { opacity: .8; }
.btn.primary:hover { filter: brightness(.93); }
.btn.danger { background: var(--r1); border-color: var(--r1); color: #fff; }
.btn.danger:hover { filter: brightness(.92); }
.ui-modal { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: min(90dvh, 920px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); box-shadow: 0 24px 80px rgb(16 31 59 / 28%); overflow: hidden; }
.ui-modal::backdrop { background: rgb(10 19 36 / 58%); backdrop-filter: blur(2px); }
.ui-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ui-modal__head h2 { margin: 0; font-size: 18px; }
.ui-modal__content { max-height: calc(90dvh - 70px); overflow: auto; padding: 20px; overscroll-behavior: contain; }
.ui-modal-form { margin: 0 !important; max-width: none; }
.ui-modal-form.panel { border: 0; box-shadow: none; padding: 0; }
.ui-modal-form .actions { flex-wrap: wrap; }
.ui-modal-trigger { margin: 8px 0; }
.collaborator-list { max-height: 260px; overflow-y: auto; }
.collaborator-list .access-check { justify-content: flex-start; }
.ui-confirm { width: min(440px, calc(100vw - 32px)); }
.ui-confirm .actions { justify-content: flex-end; margin-top: 20px; }
.ui-modal :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (max-width: 600px) {
    .ui-modal { width: calc(100vw - 20px); max-height: 94dvh; border-radius: 12px; }
    .ui-modal__head { padding: 12px 16px; }
    .ui-modal__content { max-height: calc(94dvh - 58px); padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ui-modal, .ui-modal::backdrop { scroll-behavior: auto; }
}
input, select, textarea { min-height: 44px; border-radius: 9px; padding: 10px 12px; font-size: 14px; }
input[readonly] { background: var(--bg); color: var(--muted); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; accent-color: var(--brand); }
.field { gap: 8px; }
.field > small { font-size: 12px; }
.filters { gap: 10px; font-size: 13px; }
.actions { gap: 10px; }
.chart-box { height: 280px; }
.alert { border-radius: 10px; padding: 14px 18px; font-size: 14px; }
.mobile-menu { display: none; }
.daily-detail-section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.daily-detail-section h2, .daily-detail-view h2, .daily-summary h2 { margin: 0; font-size: 17px; }
.daily-detail-section p, .daily-detail-view > p { margin: 5px 0 14px; color: var(--muted); font-size: 13px; }
.daily-entry-table { min-width: 760px; }
.daily-entry-table th, .daily-entry-table td { min-width: 150px; }
.daily-entry-table td { vertical-align: top; }
.daily-entry-table input, .daily-entry-table select, .daily-entry-table textarea { width: 100%; min-width: 140px; }
.daily-entry-table textarea { resize: vertical; }
.daily-add-row { margin-top: 10px; }
.daily-snapshot-grid { margin-top: 12px; }
.daily-form-actions, .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.daily-form-actions { justify-content: flex-end; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.daily-summary { display: grid; gap: 18px; }
.daily-definition-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; }
.daily-definition-list div { min-width: 0; }
.daily-definition-list dt { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.daily-definition-list dd { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.daily-history { display: grid; gap: 12px; padding-left: 20px; }
.daily-history li span { display: block; color: var(--muted); font-size: 12px; }
.daily-history li p { margin: 4px 0 0; }
.daily-kpi-note { color: var(--muted); font-size: 12px; margin: 18px 2px; }
.muted { color: var(--muted); }
.mobile-navigation { border: 0; margin: 0; padding: 32px 20px 16px; width: min(320px, 88vw); max-width: none; height: 100dvh; max-height: none; background: var(--sidebar); color: var(--sidebar-text); }
.mobile-navigation[open] { display: flex; flex-direction: column; }
.mobile-navigation::backdrop { background: rgb(8 18 36 / 65%); }
.close-navigation { position: absolute; top: 12px; right: 8px; }
.mobile-navigation .brand { margin-top: 20px; }
.guest-shell .wrap { max-width: none; margin: 0; padding: 0; gap: 0; }
.login { grid-template-columns: 1fr 1fr; min-height: 100dvh; padding: 0; place-items: stretch; }
.login-story { background: var(--sidebar); color: #fff; padding: clamp(32px, 5vw, 80px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-story::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid #2b3c59; right: -220px; bottom: -190px; box-shadow: 0 0 0 70px rgb(43 60 89 / 18%), 0 0 0 140px rgb(43 60 89 / 10%); pointer-events: none; }
.login-message { margin: auto 0; padding: 64px 0; position: relative; z-index: 1; }
.login-message .eyebrow { color: #b9c8e0; }
.login-message h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.2; letter-spacing: -.045em; }
.login-message > p { max-width: 440px; color: #c2cde0; line-height: 1.8; font-size: 15px; margin: 24px 0 36px; }
.login-features { display: grid; gap: 24px; }
.login-features > div { display: flex; gap: 16px; align-items: center; }
.login-features .icon { color: #aac4ff; width: 24px; height: 24px; }
.login-features strong { font-size: 13px; font-weight: 600; }
.login-features small { display: block; color: #c2cde0; font-size: 12px; margin-top: 4px; }
.login-company { color: #b9c8e0; font-size: 12px; }
.login-form-section { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--panel); padding: 48px; }
.login-form { width: 100%; max-width: 400px; display: grid; gap: 22px; margin: auto 0; }
.login-form h2 { font-size: 30px; letter-spacing: -.04em; }
.login-form .eyebrow { margin-bottom: -8px; color: var(--brand); }
.login-form > p { margin: -8px 0 8px; font-size: 14px; }
.login-form input { width: 100%; min-height: 50px; font-size: 15px; }
.password-field { position: relative; }
.password-field input { padding-right: 110px; }
.password-field button { position: absolute; top: 3px; right: 4px; min-height: 44px; border: 0; padding: 0 12px; background: transparent; color: var(--brand); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 8px; }
.remember { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 500; min-height: 44px; cursor: pointer; }
.remember input { width: 18px; min-height: 18px; }
.login-submit { justify-content: space-between; min-height: 52px; }
.login-form .login-help { text-align: center; font-size: 12px; color: var(--muted); margin: 0; }
.login-footer { color: var(--muted); font-size: 11px; margin-top: 40px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.sidebar :focus-visible, .mobile-navigation :focus-visible { outline-color: #aac4ff; }
@media (max-width: 1200px) {
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .app-shell .wrap { padding: 24px; }
    .panel { padding: 20px; }
}
@media (max-width: 900px) {
    .sidebar { display: none; }
    .app-shell .topbar, .app-shell .wrap { margin-left: 0; }
    .mobile-menu { display: inline-grid; }
    .topbar-inner { padding: 0 20px; min-height: 68px; gap: 12px; }
    .breadcrumb { flex: 1; font-size: 12px; gap: 8px; }
    .login-story { padding: 40px 32px; }
    .login-form-section { padding: 32px; }
    .login-message h1 { font-size: 34px; }
}
@media (max-width: 600px) {
    .app-shell .wrap { padding: 24px 16px; gap: 20px; }
    .topbar-inner { padding: 0 12px; }
    .workspace-label { display: none; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tile-featured { grid-column: 1 / -1; }
    .tile { padding: 16px; }
    .tile .value { font-size: 30px; }
    h1 { font-size: 26px; }
    .panel { padding: 18px; }
    .filters { width: 100%; }
    .filters select, .filters input { flex: 1; min-width: 130px; width: 100%; }
    .filters label { width: 100%; }
    .page-head { gap: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .daily-form-actions { justify-content: stretch; }
    .daily-form-actions .btn { flex: 1 1 180px; }
    .login { grid-template-columns: 1fr; }
    .login-story { padding: 24px; }
    .login-message { padding: 36px 0 0; }
    .login-message h1 { font-size: 30px; }
    .login-message > p { font-size: 13px; margin: 16px 0 0; }
    .login-features, .login-company { display: none; }
    .login-form-section { padding: 36px 24px 24px; }
    .login-form h2 { font-size: 26px; }
    .login-footer { margin-top: 32px; }
}
@media print {
    .sidebar, .mobile-navigation, .skip-link { display: none !important; }
    .app-shell .wrap { margin: 0; padding: 0; max-width: none; }
    .panel { box-shadow: none; }
}
