:root {
  --ink: #14201c;
  --muted: #62716a;
  --line: #dfe6e2;
  --canvas: #f3f6f4;
  --surface: #ffffff;
  --brand-950: #0c2019;
  --brand-900: #122d24;
  --brand-800: #183d30;
  --brand-700: #21543f;
  --brand-600: #2d7658;
  --accent: #d8f25a;
  --accent-soft: #eff8c6;
  --danger: #a43b3b;
  --danger-soft: #fff0ed;
  --warning: #9b6510;
  --warning-soft: #fff5dd;
  --info: #245a82;
  --info-soft: #e8f4ff;
  --radius: 14px;
  --shadow: 0 16px 45px rgba(16, 42, 32, .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid rgba(45, 118, 88, .35); outline-offset: 2px; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; background: var(--surface); padding: .7rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0 0 .45rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-600); }
.page-title { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; line-height: 1.1; }
.page-lead { max-width: 720px; margin: .65rem 0 0; color: var(--muted); line-height: 1.55; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .95fr) minmax(420px, 1.05fr); background: var(--surface); }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem, 6vw, 5.5rem); color: #fff; background: radial-gradient(circle at 78% 18%, rgba(216, 242, 90, .22), transparent 31%), linear-gradient(145deg, var(--brand-950), var(--brand-800)); }
.auth-story::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; right: -220px; bottom: -180px; box-shadow: 0 0 0 64px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.02); }
.wordmark { position: relative; z-index: 1; display: flex; align-items: center; gap: .8rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; overflow: hidden; border: 1px solid rgba(255, 179, 38, .5); border-radius: 12px; background: #fff4dc; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.auth-brand { position: relative; z-index: 1; width: fit-content; padding: .55rem; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.auth-brand-logo { display: block; width: clamp(150px, 19vw, 245px); height: auto; }
.auth-pitch { position: relative; z-index: 1; max-width: 580px; }
.auth-pitch h1 { margin: 0; max-width: 580px; font-size: clamp(2.2rem, 5vw, 4.6rem); letter-spacing: -.06em; line-height: .95; }
.auth-pitch p { max-width: 510px; margin: 1.4rem 0 0; color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.65; }
.auth-meta { position: relative; z-index: 1; color: rgba(255,255,255,.58); font-size: .82rem; }
.auth-panel { display: grid; place-items: center; padding: 2rem; background: #fbfcfb; }
.auth-card { width: min(430px, 100%); padding: clamp(1.5rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.03em; }
.auth-card > p { margin: .6rem 0 1.6rem; color: var(--muted); line-height: 1.5; }

.form-stack { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .42rem; min-width: 0; }
.field-span { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 750; }
.field small { color: var(--muted); line-height: 1.35; }
.input, .select, .textarea { width: 100%; min-height: 44px; border: 1px solid #cfd9d4; border-radius: 10px; color: var(--ink); background: var(--surface); padding: .72rem .8rem; transition: border .15s, box-shadow .15s; }
.textarea { min-height: 92px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: #9fb1a9; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-600); outline: 0; box-shadow: 0 0 0 3px rgba(45,118,88,.12); }
.check { display: flex; align-items: flex-start; gap: .55rem; color: var(--muted); font-size: .88rem; }
.check input { margin-top: .18rem; accent-color: var(--brand-600); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid transparent; border-radius: 10px; padding: .65rem 1rem; font-weight: 760; text-decoration: none; transition: transform .12s, background .15s, border .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--brand-800); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--brand-700); }
.button-accent { background: var(--accent); color: var(--brand-950); }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button-danger { background: var(--danger); color: #fff; }
.button-quiet { background: transparent; color: var(--muted); }
.button-small { min-height: 34px; padding: .42rem .68rem; font-size: .8rem; }
.button-block { width: 100%; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); transition: grid-template-columns .2s ease; }
.sidebar { min-width: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.25rem 1rem; color: #eef6f1; background: var(--brand-950); overflow-y: auto; transition: opacity .15s ease, padding .2s ease; }
.sidebar .wordmark { padding: .2rem .45rem 1.1rem; }
.sidebar .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.nav-label { padding: .8rem .65rem .4rem; color: rgba(255,255,255,.42); font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-list { display: grid; gap: .22rem; margin: 0; padding: 0; list-style: none; }
.nav-link { width: 100%; display: flex; align-items: center; gap: .72rem; padding: .68rem .7rem; border: 0; border-radius: 9px; color: rgba(255,255,255,.7); background: transparent; text-align: left; font-size: .88rem; font-weight: 650; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link[aria-current="page"] { color: #fff; background: rgba(216,242,90,.14); box-shadow: inset 3px 0 var(--accent); }
.ui-icon { display: block; width: 1.2rem; height: 1.2rem; }
.nav-icon { width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; display: grid; place-items: center; opacity: .88; }
.nav-link[aria-current="page"] .nav-icon { color: var(--accent); opacity: 1; }
.sidebar-footer { margin-top: auto; padding-top: 1rem; }
.sidebar-scrim { display: none; position: fixed; inset: 0; z-index: 40; border: 0; background: rgba(8, 23, 17, .48); }
.account-chip { padding: .75rem; border: 1px solid rgba(255,255,255,.09); border-radius: 11px; background: rgba(255,255,255,.04); }
.account-chip strong, .account-chip span { display: block; overflow: hidden; text-overflow: ellipsis; }
.account-chip span { margin-top: .15rem; color: rgba(255,255,255,.46); font-size: .74rem; }
.account-actions { margin-top: .45rem; }
.account-actions .button { width: 100%; color: rgba(255,255,255,.65); }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 clamp(1rem, 3vw, 2rem); border-bottom: 1px solid rgba(223,230,226,.9); background: rgba(243,246,244,.93); backdrop-filter: blur(12px); }
.topbar-title { color: var(--muted); font-size: .83rem; }
.topbar-actions { display: flex; align-items: center; gap: .55rem; }
.notification-button { position: relative; }
.notification-button .ui-icon { width: 1.25rem; height: 1.25rem; }
.notification-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid var(--canvas); border-radius: 999px; padding: 0 4px; color: #fff; background: var(--danger); font-size: .6rem; font-weight: 850; }
.mobile-menu { display: inline-grid; flex: 0 0 auto; }
.mobile-menu .ui-icon { width: 1.2rem; height: 1.2rem; }
.content { padding: clamp(1rem, 3vw, 2rem); }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.4rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .55rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.metric-card { min-height: 142px; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(16,42,32,.035); }
.metric-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 700; }
.metric-value { margin-top: 1.15rem; font-size: clamp(1.45rem, 2.5vw, 2.1rem); font-weight: 820; letter-spacing: -.04em; }
.metric-note { margin-top: .45rem; color: var(--muted); font-size: .74rem; }
.metric-card.accent { color: #fff; border-color: var(--brand-800); background: linear-gradient(145deg, var(--brand-900), var(--brand-700)); }
.metric-card.accent .metric-label, .metric-card.accent .metric-note { color: rgba(255,255,255,.66); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .8fr); gap: 1rem; margin-top: 1rem; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(16,42,32,.035); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1rem; letter-spacing: -.015em; }
.panel-body { padding: 1.1rem; }
.panel-empty { padding: 2.8rem 1.2rem; text-align: center; color: var(--muted); }
.panel-empty strong { display: block; margin-bottom: .3rem; color: var(--ink); }

.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; margin-bottom: 1rem; }
.toolbar .field { min-width: min(260px, 100%); }
.toolbar .field label { font-size: .72rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.user-table { min-width: 1050px; }
.data-table th, .data-table td { padding: .82rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { color: var(--muted); background: #fafcfb; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.data-table tbody tr:hover { background: #fbfdfc; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .actions { display: flex; justify-content: flex-end; gap: .35rem; }
.primary-cell { font-weight: 750; }
.secondary-cell { display: block; margin-top: .16rem; color: var(--muted); font-size: .74rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; min-height: 25px; border-radius: 999px; padding: .27rem .55rem; color: var(--muted); background: #edf1ef; font-size: .7rem; font-weight: 760; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge-success { color: #27684d; background: #e5f5ed; }
.badge-warning { color: var(--warning); background: var(--warning-soft); }
.badge-danger { color: var(--danger); background: var(--danger-soft); }
.badge-info { color: var(--info); background: var(--info-soft); }
.badge-neutral { color: var(--muted); background: #edf1ef; }

.list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.list-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; }
.list-item strong { display: block; font-size: .86rem; }
.list-item span { display: block; margin-top: .2rem; color: var(--muted); font-size: .75rem; }
.item-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .4rem; }
.compact-list .list-item { padding: .65rem .75rem; }
.section-gap { margin-top: 1rem; }
.account-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.account-summary > div { padding: 1rem; border: 1px solid var(--line); border-radius: 11px; background: #fafcfb; }
.account-summary span, .account-summary strong { display: block; }
.account-summary strong { margin-top: .3rem; }
.content-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activity-list { display: grid; max-height: 520px; overflow-y: auto; }
.activity-item { display: grid; gap: .42rem; padding: .85rem 1rem; border-top: 1px solid var(--line); }
.activity-item:first-child { border-top: 0; }
.activity-item strong, .activity-item span, .activity-item small { display: block; }
.activity-item span, .activity-item small { margin-top: .16rem; color: var(--muted); font-size: .74rem; }
.activity-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.activity-meta time { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.notification-list { display: grid; }
.notification-item { width: 100%; display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: .8rem; padding: 1rem 1.15rem; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: var(--surface); text-align: left; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #fafcfb; }
.notification-item.unread { background: #f1f8f4; }
.notification-dot { width: 8px; height: 8px; margin-top: .35rem; border-radius: 50%; background: transparent; }
.notification-item.unread .notification-dot { background: var(--brand-600); }
.notification-item strong, .notification-item span, .notification-item time { display: block; }
.notification-item span span { margin-top: .25rem; color: var(--muted); line-height: 1.45; }
.notification-item time { margin-top: .38rem; color: var(--muted); font-size: .7rem; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.permission-group { min-width: 0; margin: 0; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; }
.permission-group legend { padding: 0 .35rem; color: var(--brand-700); font-size: .78rem; font-weight: 800; }
.permission-option { display: flex; align-items: flex-start; gap: .55rem; padding: .46rem .25rem; cursor: pointer; }
.permission-option input { margin-top: .18rem; accent-color: var(--brand-600); }
.permission-option span, .permission-option strong, .permission-option small { display: block; min-width: 0; }
.permission-option strong { font-size: .8rem; }
.permission-option small { margin-top: .1rem; overflow-wrap: anywhere; color: var(--muted); font-size: .65rem; }
.vehicle-filter { min-width: min(360px, 100%) !important; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.detail-grid > div { padding: .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fafcfb; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { color: var(--muted); font-size: .72rem; }
.detail-grid strong { margin-top: .28rem; overflow-wrap: anywhere; font-size: .86rem; }
.tab-preview { display: flex; flex-wrap: wrap; gap: .45rem; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .8rem; }
.details { border: 1px solid var(--line); border-radius: 11px; padding: .85rem; background: #fafcfb; }
.details summary { cursor: pointer; color: var(--brand-700); font-weight: 800; }
.vehicle-plate { display: inline-block; margin-top: .35rem; border: 1px solid #bfc9c4; border-radius: 4px; padding: .2rem .38rem; font-size: .7rem; font-weight: 800; letter-spacing: .07em; background: #fff; }

html.modal-open, body.modal-open { overflow: hidden; overscroll-behavior: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; overscroll-behavior: none; padding: 1rem; background: rgba(8,23,17,.58); backdrop-filter: blur(4px); }
.modal { width: min(760px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain; border-radius: 18px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-body { padding: 1.25rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); }

.alert { margin-bottom: 1rem; padding: .8rem .9rem; border-radius: 10px; color: var(--danger); background: var(--danger-soft); font-size: .84rem; line-height: 1.45; }
.alert-info { color: var(--info); background: var(--info-soft); }
.toast-region { position: fixed; z-index: 999; right: 1rem; bottom: 1rem; display: grid; gap: .55rem; width: min(380px, calc(100vw - 2rem)); }
.toast { padding: .9rem 1rem; border-radius: 11px; color: #fff; background: var(--brand-900); box-shadow: 0 15px 35px rgba(0,0,0,.2); font-size: .84rem; animation: toast-in .18s ease-out; }
.toast-error { background: #812f2f; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.skeleton { min-height: 1em; border-radius: 6px; background: linear-gradient(90deg, #edf1ef, #f8faf9, #edf1ef); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loading-page { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.loading-page .skeleton { height: 140px; }

.driver-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 18px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(216,242,90,.24), transparent 35%), linear-gradient(135deg, var(--brand-950), var(--brand-700)); }
.driver-hero h1 { margin: .2rem 0 .7rem; font-size: clamp(1.7rem, 4vw, 3rem); letter-spacing: -.05em; }
.driver-hero p { margin: 0; color: rgba(255,255,255,.66); }
.driver-car { align-self: center; justify-self: end; min-width: 250px; padding: 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.07); }
.driver-car strong { display: block; font-size: 1.15rem; }
.driver-car .vehicle-plate { color: var(--ink); }
.driver-eyebrow { color: var(--accent); }
.driver-car-label { color: rgba(255,255,255,.55); font-size: .76rem; }
.driver-contract-label { display: block; margin-top: .7rem; color: rgba(255,255,255,.55); font-size: .75rem; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin-top: 1rem; }
.quick-action { min-height: 110px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; }
.quick-action:hover { border-color: #a6b7ae; }
.quick-action-primary { border-color: #9fc9b1; box-shadow: inset 0 0 0 1px rgba(29, 102, 69, .05); }
.quick-action:disabled { cursor: not-allowed; opacity: .58; }
.quick-action-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--brand-800); background: var(--brand-100); }
.quick-action-icon .ui-icon { width: 22px; height: 22px; }
.quick-action span { color: var(--muted); font-size: .76rem; }
.driver-action-panel { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #f8fbf9; }
.driver-action-panel h2 { margin: 0; font-size: 1rem; }
.driver-action-panel > p { margin: .3rem 0 0; color: var(--muted); font-size: .78rem; }
.push-status { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .8rem; border: 1px solid #b8d8c6; border-radius: 10px; color: var(--success); background: var(--success-soft); font-size: .78rem; font-weight: 800; }

@media (min-width: 821px) {
  .app-shell.sidebar-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
  .app-shell.sidebar-collapsed .sidebar { padding-right: 0; padding-left: 0; opacity: 0; overflow: hidden; visibility: hidden; }
}

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .content-grid-two { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 300px; padding: 2rem; }
  .auth-meta { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; width: min(290px, 88vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim.open { display: block; }
  .driver-hero { grid-template-columns: 1fr; }
  .driver-car { justify-self: stretch; min-width: 0; }
}
@media (max-width: 620px) {
  .auth-panel { padding: 1rem; }
  .auth-story { min-height: 245px; }
  .auth-pitch h1 { font-size: 2.35rem; }
  .auth-pitch p { font-size: .9rem; }
  .content { padding: 1rem; }
  .topbar { padding: 0 1rem; }
  .topbar-title { display: none; }
  .page-head { align-items: stretch; flex-direction: column; }
  .page-actions .button { flex: 1; }
  .metric-grid, .quick-actions, .form-grid { grid-template-columns: 1fr; }
  .permission-grid, .account-summary, .detail-grid { grid-template-columns: 1fr; }
  .field-span { grid-column: auto; }
  .metric-card { min-height: 120px; }
  .data-table { min-width: 680px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
