:root {
  --bg: #f4f7fb;
  --surface: #fff;
  --surface-soft: #f8fafc;
  --surface-raised: #fff;
  --text: #14213d;
  --muted: #697994;
  --faint: #98a6bb;
  --line: #e2e8f0;
  --line-strong: #cfd8e6;
  --primary: #246bfd;
  --primary-deep: #1749c9;
  --primary-soft: #e8f0ff;
  --cyan: #08aaca;
  --green: #14a673;
  --orange: #ef9411;
  --red: #e54c59;
  --purple: #8258da;
  --shadow: 0 12px 32px rgba(26, 48, 84, .08);
  --sidebar-width: 268px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #090f1b;
  --surface: #111a2a;
  --surface-soft: #162133;
  --surface-raised: #182438;
  --text: #edf3ff;
  --muted: #9babc3;
  --faint: #74839b;
  --line: #253249;
  --line-strong: #35445d;
  --primary: #4a83ff;
  --primary-deep: #7fa4ff;
  --primary-soft: rgba(59, 116, 255, .16);
  --shadow: 0 16px 36px rgba(0, 0, 0, .24);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.1fr) minmax(440px, .9fr); background: var(--surface); }
.login-art { position: relative; overflow: hidden; display: flex; align-items: center; padding: clamp(48px, 8vw, 130px); color: #fff; background: radial-gradient(circle at 15% 12%, rgba(43, 215, 244, .26), transparent 30%), radial-gradient(circle at 87% 90%, rgba(55, 104, 255, .42), transparent 34%), linear-gradient(145deg, #071b43, #0a327a 58%, #1067c6); }
.login-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(135deg,#000,transparent 76%); }
.login-copy { position: relative; z-index: 2; max-width: 650px; }
.login-copy p { margin: 28px 0 36px; letter-spacing: .25em; font-weight: 800; color: #70ddf1; }
.login-copy h1 { font-size: clamp(44px, 5vw, 78px); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 28px; }
.login-copy span { font-size: 18px; color: rgba(255,255,255,.72); }
.brand-mark { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,#3181ff,#14bfdb); font-size: 20px; box-shadow: 0 9px 20px rgba(25,126,240,.22); transform: rotate(-3deg); }
.brand-mark-large { width: 74px; height: 74px; border-radius: 22px; font-size: 32px; }
.route-line { position: absolute; width: 540px; height: 540px; border: 1px dashed rgba(255,255,255,.16); border-radius: 50%; }
.route-one { right: -250px; top: -170px; }
.route-two { left: -330px; bottom: -310px; width: 650px; height: 650px; }
.login-panel { display: grid; place-items: center; padding: 42px; background: var(--surface); }
.login-card { width: min(100%, 420px); }
.login-card .eyebrow { display: inline-block; margin-bottom: 22px; }
.login-card h2 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.login-card > p { color: var(--muted); margin: 10px 0 34px; }
.login-card label, .modal label { display: grid; gap: 8px; font-size: 13px; font-weight: 750; color: var(--muted); margin-bottom: 18px; }
input, select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; color: var(--text); outline: none; background: var(--surface-soft); transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,107,253,.12); }
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-field button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.primary-button, .soft-button, .icon-button, .user-chip { border: 0; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, opacity .15s; }
.primary-button { min-height: 44px; padding: 0 18px; border-radius: 11px; background: linear-gradient(135deg,var(--primary),#175ae8); color: #fff; font-weight: 780; box-shadow: 0 8px 18px rgba(36,107,253,.2); }
.primary-button:hover, .soft-button:hover, .icon-button:hover { transform: translateY(-1px); }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.login-button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; margin-top: 6px; }
.login-card small { display: block; text-align: center; margin-top: 22px; color: var(--faint); }
.form-error { min-height: 20px; margin: -5px 0 10px; color: var(--red); font-size: 13px; }
.mobile-login-brand { display: none; }
.eyebrow { font-size: 10px; color: var(--primary); font-weight: 850; letter-spacing: .16em; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: var(--sidebar-width); padding: 20px 18px; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); transition: transform .22s ease; }
.sidebar-brand { height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 5px; }
.brand-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; letter-spacing: -.03em; white-space: nowrap; }
.brand-text span { margin-top: 5px; color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.version-badge { margin-left: auto; align-self: flex-start; padding: 5px 7px; border-radius: 8px; color: #d07f00; background: #fff3dd; font-size: 10px; font-weight: 850; }
html[data-theme="dark"] .version-badge { background: rgba(245,158,11,.13); }
.side-separator { height: 1px; margin: 16px 5px 20px; background: var(--line); }
.sidebar nav { flex: 1; overflow-y: auto; }
.nav-heading { margin: 15px 12px 9px; font-size: 10px; font-weight: 850; letter-spacing: .15em; color: var(--faint); }
.nav-item { width: 100%; min-height: 49px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.nav-item > span { font-size: 19px; text-align: center; color: var(--faint); }
.nav-item b { font-size: 14px; }
.nav-item em { min-width: 26px; padding: 3px 7px; border-radius: 999px; background: var(--surface-soft); color: var(--text); font-size: 11px; font-style: normal; text-align: center; }
.nav-item:hover { color: var(--text); background: var(--surface-soft); }
.nav-item.active { color: var(--primary-deep); border-color: rgba(36,107,253,.18); background: var(--primary-soft); }
.nav-item.active > span { color: var(--primary); }
.sidebar-user { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.sidebar-user > div { min-width: 0; display: grid; }
.sidebar-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.sidebar-user small { color: var(--muted); margin-top: 3px; }
.avatar { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg,#795cf4,#356cff); font-weight: 850; }

.workspace { min-width: 0; min-height: 100vh; margin-left: var(--sidebar-width); transition: margin-left .22s ease; }
.app-shell.sidebar-collapsed .sidebar { transform: translateX(-100%); }
.app-shell.sidebar-collapsed .workspace { margin-left: 0; }
.topbar { position: sticky; z-index: 30; top: 0; height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; background: color-mix(in srgb, var(--surface) 93%, transparent); backdrop-filter: blur(15px); border-bottom: 1px solid var(--line); }
.topbar-left { display: flex; align-items: center; gap: 15px; min-width: 0; }
.topbar h1 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em; }
.topbar-actions { position: relative; display: flex; align-items: center; gap: 10px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-soft); color: var(--text); font-size: 18px; }
.soft-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font-weight: 700; }
.sync-state { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 700; }
.sync-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(20,166,115,.1); }
.user-chip { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 6px 11px 6px 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-align: left; }
.user-chip > span:nth-child(2) { min-width: 80px; display: grid; }
.user-chip strong { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.user-chip small { color: var(--muted); font-size: 10px; }
.user-menu { position: absolute; right: 0; top: calc(100% + 9px); width: 150px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); }
.user-menu button { width: 100%; min-height: 38px; border: 0; border-radius: 8px; color: var(--red); background: transparent; cursor: pointer; text-align: left; padding: 0 12px; }
.user-menu button:hover { background: var(--surface-soft); }

.content { padding: 24px 28px 40px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 20px; }
.kpi-card { min-width: 0; min-height: 126px; display: flex; align-items: center; gap: 17px; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 5px 18px rgba(25,48,84,.035); cursor: pointer; text-align: left; transition: transform .16s, border-color .16s, box-shadow .16s; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-card.active { border-color: color-mix(in srgb, currentColor 38%, var(--line)); }
.kpi-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; background: color-mix(in srgb, currentColor 12%, transparent); }
.kpi-card > div { min-width: 0; display: grid; }
.kpi-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.kpi-card strong { margin: 4px 0 0; color: var(--text); font-size: 31px; letter-spacing: -.04em; }
.kpi-card em { color: var(--faint); font-size: 10px; font-style: normal; }
.kpi-card.blue { color: var(--primary); }.kpi-card.cyan { color: var(--cyan); }.kpi-card.orange { color: var(--orange); }.kpi-card.green { color: var(--green); }
.app-shell:not(.sidebar-collapsed) .kpi-grid { display: none; }

.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 6px 22px rgba(25,48,84,.035); overflow: hidden; }
.panel-heading { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0 0 5px; font-size: 17px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.toolbar { display: grid; grid-template-columns: minmax(260px,1fr) 150px 180px; gap: 10px; padding: 14px 22px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.toolbar select { min-height: 42px; background: var(--surface); }
.search-box { position: relative; display: flex; align-items: center; }
.search-box > span { position: absolute; left: 15px; color: var(--muted); font-size: 22px; }
.search-box input { min-height: 42px; padding-left: 42px; padding-right: 65px; background: var(--surface); }
.search-box kbd { position: absolute; right: 10px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--faint); background: var(--surface-soft); font-size: 9px; }
.table-wrap { position: relative; min-height: 370px; overflow-x: auto; }
table { width: 100%; min-width: 1695px; border-collapse: collapse; table-layout: fixed; }
th { height: 52px; padding: 0 13px; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .055em; text-align: left; }
td { min-height: 112px; padding: 17px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: color-mix(in srgb,var(--primary-soft) 42%,transparent); }
th:nth-child(1) { width: 66px; } th:nth-child(2) { width: 205px; } th:nth-child(3) { width: 190px; } th:nth-child(4) { width: 190px; } th:nth-child(5) { width: 235px; } th:nth-child(6) { width: 190px; } th:nth-child(7) { width: 175px; } th:nth-child(8) { width: 150px; } th:nth-child(9) { width: 170px; } th:nth-child(10) { width: 125px; }
.cutoff-column { padding-right: 28px; }.container-column { padding-left: 28px; }
td:nth-child(3) { padding-right: 28px; } td:nth-child(4) { padding-left: 28px; }
.type-tag { display: inline-grid; place-items: center; min-width: 45px; height: 28px; border-radius: 8px; border: 1px solid rgba(36,107,253,.28); color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 850; }
.type-tag.imp { border-color: rgba(130,88,218,.28); color: var(--purple); background: rgba(130,88,218,.1); }
.booking-code { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; font-weight: 850; word-break: break-word; }
.copy-line { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; cursor: copy; text-align: left; }
.copy-line:hover { color: var(--primary); }
.copy-line.booking-code { display: block; }
.copy-line.booking-code span { color: var(--faint); font-size: 10px; opacity: .75; }
.subline { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; word-break: break-word; }
.subline.accent { color: var(--orange); font-weight: 750; }
.date-line { color: var(--cyan); font-weight: 700; }
.cutoff-box { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 9px 11px; border: 1px solid rgba(20,166,115,.35); border-radius: 10px; color: var(--green); background: rgba(20,166,115,.08); font-weight: 850; font-size: 13px; }
.cutoff-box.overdue { color: var(--red); border-color: rgba(229,76,89,.35); background: rgba(229,76,89,.08); }
.cutoff-date { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; font-weight: 650; white-space: nowrap; }
.location-primary { color: var(--text); font-size: 12px; font-weight: 780; line-height: 1.45; }
.actual-empty { color: var(--orange); font-weight: 720; }
.driver-line { color: var(--cyan); font-size: 13px; font-weight: 820; }
.status-select { width: 100%; min-height: 38px; padding: 0 28px 0 11px; border-radius: 999px; color: var(--primary-deep); border-color: rgba(36,107,253,.28); background: var(--primary-soft); font-size: 11px; font-weight: 800; }
.document-button { min-height: 38px; padding: 0 11px; border: 1px solid rgba(239,148,17,.32); border-radius: 10px; color: var(--orange); background: rgba(239,148,17,.08); font-weight: 750; cursor: pointer; }
.document-button b { display: inline-grid; min-width: 19px; height: 19px; margin-left: 3px; place-items: center; border-radius: 999px; color: var(--surface); background: var(--orange); font-size: 10px; }
.document-button.has-documents { color: var(--green); border-color: color-mix(in srgb,var(--green) 35%,var(--line)); background: color-mix(in srgb,var(--green) 9%,transparent); }
.document-button.has-documents b { background: var(--green); }
.document-button.missing-documents i { display: inline-grid; width: 18px; height: 18px; margin-left: 3px; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 10px; font-style: normal; box-shadow: 0 0 0 4px color-mix(in srgb,var(--red) 12%,transparent); }
.money { display: block; margin-top: 8px; color: var(--green); font-size: 14px; font-weight: 850; }
.cost-details summary { display: grid; gap: 4px; list-style: none; cursor: pointer; }
.cost-details summary::-webkit-details-marker { display: none; }
.cost-details summary .money { margin: 0; }
.cost-details summary span { color: var(--muted); font-size: 10px; font-weight: 700; }
.cost-details[open] summary span { color: var(--primary); }
.cost-breakdown { display: grid; gap: 5px; margin-top: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.cost-breakdown > span { display: grid; grid-template-columns: 1fr auto; gap: 5px; color: var(--muted); font-size: 10px; }
.cost-breakdown b { color: var(--text); font-weight: 760; white-space: nowrap; }
.cost-breakdown small { grid-column: 1 / -1; color: var(--cyan); font-weight: 700; }
.cost-breakdown p { margin: 3px 0 0; padding-top: 5px; border-top: 1px dashed var(--line); color: var(--orange); font-size: 10px; font-weight: 650; }
.row-action { min-height: 37px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); font-size: 11px; font-weight: 750; cursor: pointer; }
.loading-state, .empty-state { position: absolute; z-index: 2; inset: 52px 0 0; display: grid; place-content: center; justify-items: center; padding: 45px; background: var(--surface); text-align: center; }
.loading-state i { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-state p, .empty-state p { color: var(--muted); }
.empty-state > span { font-size: 42px; color: var(--faint); }.empty-state h3 { margin: 12px 0 0; }.empty-state p { margin: 7px 0 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pagination { min-height: 67px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px; border-top: 1px solid var(--line); }
.pagination span { color: var(--muted); font-size: 12px; font-weight: 700; }
.coming-soon { min-height: 520px; display: grid; place-content: center; justify-items: center; padding: 50px; text-align: center; }.coming-soon > span { font-size: 55px; color: var(--primary); }.coming-soon h2 { margin: 16px 0 6px; }.coming-soon p { max-width: 520px; margin: 0 0 20px; color: var(--muted); }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(4,12,27,.6); backdrop-filter: blur(4px); }
.modal { width: min(760px,100%); max-height: calc(100vh - 48px); overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 30px 70px rgba(0,0,0,.3); }
.modal > header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }.modal h2 { margin: 4px 0 0; font-size: 20px; }.modal-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-soft); font-size: 24px; cursor: pointer; }.modal form { padding: 22px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }.modal label { margin-bottom: 15px; }.modal form > footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }
.toast-region { position: fixed; z-index: 150; right: 22px; bottom: 22px; display: grid; gap: 10px; }
.toast { min-width: 280px; max-width: 420px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 14px 15px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; background: var(--surface-raised); box-shadow: var(--shadow); animation: toastIn .2s ease-out; }.toast.error { border-left-color: var(--red); }.toast button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 18px; }.toast p { margin: 0; font-size: 12px; font-weight: 650; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .sync-state { display: none; }
}

@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; background: linear-gradient(160deg,#edf5ff,var(--surface) 55%); }
  html[data-theme="dark"] .login-view { background: linear-gradient(160deg,#10294e,var(--surface) 55%); }
  .login-art { display: none; }.login-panel { padding: 28px; background: transparent; }.mobile-login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 38px; }.mobile-login-brand strong { font-size: 21px; }
  .sidebar { transform: translateX(-100%); box-shadow: 16px 0 45px rgba(0,0,0,.18); }.workspace { margin-left: 0; }.app-shell.mobile-sidebar-open .sidebar { transform: translateX(0); }.app-shell:not(.sidebar-collapsed) .kpi-grid { display: grid; }
  .topbar { height: 78px; padding: env(safe-area-inset-top) 15px 0; }.topbar .eyebrow, .topbar h1 { display: none; }.topbar-actions { margin-left: auto; }.topbar-actions .soft-button, .user-chip > span:nth-child(2), .user-chip > b { display: none; }.user-chip { min-height: 42px; padding: 2px; border: 0; background: transparent; }.topbar .avatar { width: 38px; height: 38px; }
  .content { padding: 15px 12px 90px; }.kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.kpi-card { min-height: 100px; padding: 14px; gap: 11px; }.kpi-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }.kpi-card strong { font-size: 24px; }.kpi-card small { font-size: 8px; }.kpi-card em { display: none; }
  .panel { border-radius: 15px; }.panel-heading { min-height: 78px; padding: 15px; }.panel-heading .primary-button { display: none; }.toolbar { grid-template-columns: 1fr; padding: 12px 14px; }.toolbar select { display: none; }.toolbar.mobile-filter-open select { display: block; }.search-box kbd { display: none; }.search-box input { padding-right: 14px; }
  .table-wrap { min-height: 420px; }.pagination { padding-bottom: 16px; }
  .mobile-nav { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: max(9px,env(safe-area-inset-bottom)); height: 66px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter: blur(18px); box-shadow: 0 12px 35px rgba(0,0,0,.2); }.mobile-nav button { display: grid; place-content: center; justify-items: center; gap: 3px; border: 0; background: transparent; color: var(--muted); }.mobile-nav button.active { color: var(--primary); }.mobile-nav span { font-size: 22px; line-height: 1; }.mobile-nav small { font-size: 9px; font-weight: 750; }
  .admin-nav { display: block; }.nav-item.admin-nav { display: grid; }
  .form-grid { grid-template-columns: 1fr; }.modal-backdrop { padding: 12px; }.modal { max-height: calc(100vh - 24px); }.modal form { padding: 17px; }.toast-region { left: 12px; right: 12px; bottom: 88px; }.toast { min-width: 0; max-width: none; }
}

@media (max-width: 480px) {
  .login-panel { padding: 23px; }.login-card h2 { font-size: 29px; }.kpi-grid { grid-template-columns: 1fr 1fr; }.kpi-card { display: grid; grid-template-columns: 36px 1fr; }.kpi-icon { width: 34px; height: 34px; font-size: 17px; }.kpi-card strong { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
