/* Fokus - complete driving-school workspace, 2026-11-12.
   Presentation-only layer: existing route hooks, permission rules, maps,
   document previews and business actions continue to use their original code. */

body.fokus-ui {
  --navy:#07343c; --navy-2:#0b4650; --navy-3:#0d5862;
  --canvas:#f3f6f5; --panel:#fff; --ink:#102f39;
  --muted:#627b83; --muted-2:#80949a; --line:#dfe8e9;
  --orange:#ff6b20; --orange-soft:#fff0e8;
  --lime:#9dce12; --lime-soft:#f0f8df;
  --radius:16px; --shadow:0 8px 26px rgba(14,52,61,.045);
  --fokus-sidebar-width:272px;
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  line-height:1.45;
}
body.fokus-ui .prototype-bar {display:none!important}
body.fokus-ui[data-app-role] .app {
  display:grid;
  grid-template-columns:var(--fokus-sidebar-width) minmax(0,1fr);
  min-height:100vh;
  min-height:100dvh;
}
body.fokus-ui[data-app-role] .workspace {
  min-width:0; min-height:100vh; min-height:100dvh;
  background:var(--canvas); isolation:isolate;
}
body.fokus-ui[data-app-role] .workspace::before,
body.fokus-ui .sidebar::before,
body.fokus-ui .dashboard-hero::before,
body.fokus-ui .dashboard-hero .page-head::before,
body.fokus-ui .dashboard-hero .page-head::after {content:none;display:none}
body.fokus-ui[data-app-role] .sidebar {
  position:sticky; top:0; left:auto; bottom:auto;
  display:grid; grid-template-rows:auto minmax(0,1fr) auto;
  width:var(--fokus-sidebar-width); max-width:none;
  height:100vh; height:100dvh; min-height:0;
  padding:12px 12px 10px;
  color:#d6e6e8;
  background:linear-gradient(180deg,#073b44 0%,#06323b 100%);
  border-right:1px solid rgba(7,52,60,.06);
  box-shadow:none;
  transform:none;
  overflow:hidden;
  z-index:70;
  filter:none!important;
  transition:width .18s ease,transform .2s ease;
}
body.fokus-ui .sidebar-brand {position:relative;min-width:0;z-index:2}
body.fokus-ui .brand-wrap,
body.fokus-ui .sidebar.is-open .brand-wrap {
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width:202px; height:57px; min-height:57px;
  padding:5px 10px; margin:0 0 14px;
  border:1px solid rgba(255,255,255,.7);
  border-radius:12px; background:#fff; box-shadow:0 3px 12px #001b2012;
}
body.fokus-ui .brand-wrap .brand-logo-viewport,
body.fokus-ui .sidebar.is-open .brand-logo-viewport {
  display:flex;align-items:center;justify-content:center;
  width:182px; height:45px; margin:0; overflow:visible;
  background:transparent; border:0; border-radius:0; box-shadow:none;
}
body.fokus-ui .brand-wrap .brand-logo-viewport img,
body.fokus-ui .sidebar.is-open .brand-wrap .brand-logo-viewport img {
  position:static; display:block; width:100%; height:auto; max-width:100%;
  max-height:45px; padding:0; margin:0; transform:none;
  border:0; border-radius:0; background:transparent; object-fit:contain;
}
body.fokus-ui .brand-wrap .fokus-brand-symbol {display:none}
body.fokus-ui .brand-wrap>span:not(.brand-logo-viewport) {display:none}
body.fokus-ui .school-switcher {
  display:grid;grid-template-columns:52px minmax(0,1fr) 14px;
  align-items:center; gap:10px;
  margin:0 0 13px; padding:10px;
  border:1px solid #ffffff24;border-radius:13px;
  background:#ffffff05;box-shadow:none;
}
body.fokus-ui .school-logo-mark {
  width:52px;height:45px; padding:6px;
  background:#fff; border-radius:10px; box-shadow:none;
}
body.fokus-ui .school-logo-mark img {width:100%;height:100%;object-fit:contain}
body.fokus-ui .school-switcher strong {
  color:#fff;font-size:13px;font-weight:700;line-height:1.25;
  white-space:normal;text-overflow:clip;overflow-wrap:break-word;
}
body.fokus-ui .school-switcher small {font-size:10px;line-height:1.4;color:#a9c4c8;margin-top:4px}
body.fokus-ui .school-switcher .chevron {font-size:16px;color:#c0d4d7}
body.fokus-ui .sidebar-nav-scroll {
  min-height:0;overflow-y:auto;overflow-x:hidden;
  padding:0 2px 8px 0;
  scrollbar-width:thin;scrollbar-color:#4b7278 transparent;
  overscroll-behavior:contain;
}
body.fokus-ui .sidebar-nav-scroll::-webkit-scrollbar {display:block;width:4px}
body.fokus-ui .sidebar-nav-scroll::-webkit-scrollbar-thumb {border-radius:6px;background:#4b7278}
body.fokus-ui .main-nav {display:grid;align-content:start;gap:2px}
body.fokus-ui .nav-caption,
body.fokus-ui .fokus-nav-caption {
  margin:9px 9px 5px;padding:0;
  font-size:10px;line-height:1.4;font-weight:750;
  letter-spacing:.08em;color:#9bb8bd;
}
body.fokus-ui .fokus-nav-caption:not(:first-child) {
  border-top:1px solid #ffffff18;padding-top:12px;margin-top:10px;
}
body.fokus-ui .nav-button {
  display:flex;align-items:center;gap:12px;
  min-height:40px;width:100%;padding:8px 10px;
  border:0;border-radius:10px;background:transparent;
  color:#d1e3e6;font-size:14px;line-height:1.25;font-weight:600;
  text-decoration:none;transform:none;box-shadow:none;
}
body.fokus-ui .nav-button>span:not(.nav-glyph):not(.nav-count) {min-width:0}
body.fokus-ui .nav-button .nav-glyph {
  flex:0 0 24px;width:24px;height:24px;
  display:grid;place-items:center;border:0;
  border-radius:0;background:none;color:inherit;box-shadow:none;transform:none;
}
body.fokus-ui .nav-glyph svg {width:22px;height:22px;stroke-width:1.8}
body.fokus-ui .nav-button::before {
  left:0;top:8px;bottom:8px;height:auto;width:4px;
  border-radius:0 4px 4px 0;background:var(--lime);
  box-shadow:none;transform:none;opacity:0;
}
body.fokus-ui .nav-button:not(.is-active):hover,
body.fokus-ui .nav-button:not(.is-active):active {
  background:#ffffff0d;color:#fff;transform:none;box-shadow:none;
}
body.fokus-ui .nav-button:not(.is-active):hover .nav-glyph {
  transform:none;background:none;box-shadow:none;
}
body.fokus-ui .nav-button:not(.is-active):hover::before {opacity:0;transform:none}
body.fokus-ui .nav-button.is-active {
  background:#f8fcfb;color:#0b343e;font-weight:750;
  box-shadow:0 2px 8px #001f2512;
}
body.fokus-ui .nav-button.is-active::before {opacity:1;transform:none}
body.fokus-ui .nav-button.is-active .nav-glyph {
  color:#0b414d;border:0;background:none;box-shadow:none;transform:none;
}
body.fokus-ui .nav-count {
  margin-left:auto;min-width:22px;height:21px;
  padding:0 6px;border:0;border-radius:7px;
  background:#ffffff16;color:#deedf0;font-size:10px;font-weight:700;
}
body.fokus-ui .nav-button.is-active .nav-count {background:#edf5d8;color:#4f7200}
body.fokus-ui .sidebar-footer {
  min-width:0;padding-top:8px;margin-top:5px;
  border-top:1px solid #ffffff1a;background:transparent;z-index:3;
}
body.fokus-ui .user-chip {
  width:100%;grid-template-columns:38px minmax(0,1fr) 14px;
  padding:8px 7px;gap:10px;border-radius:10px;
}
body.fokus-ui .user-chip strong {font-size:13px;line-height:1.3;color:#fff}
body.fokus-ui .user-chip small {font-size:11px;line-height:1.4;color:#a7c2c7}
body.fokus-ui .avatar-dark {width:38px;height:38px;background:#e1f2ef;color:#12424b;font-size:13px;border:0}
body.fokus-ui .sidebar-status {
  width:100%;margin:5px 0 0;padding:10px 7px 3px;gap:10px;
  border:0;border-top:1px solid #ffffff16;border-radius:0;
}
body.fokus-ui .sidebar-status strong {font-size:11px;line-height:1.45;color:#e1edef}
body.fokus-ui .sidebar-status small {font-size:10px;line-height:1.35;color:#a7c1c6;margin-top:2px}
body.fokus-ui .status-orbit {width:23px;height:23px;border-color:#9dce1238}
body.fokus-ui .status-orbit i {width:7px;height:7px}
body.fokus-ui[data-app-role] #sidebar-close {display:none}
body.fokus-ui #sidebar-collapse {
  position:absolute;right:-2px;top:8px;
  display:grid;place-items:center;width:32px;height:40px;
  padding:0;border:0;border-radius:9px;
  background:transparent;color:#deedef;font-size:24px;line-height:1;cursor:pointer;
}
body.fokus-ui #sidebar-collapse:hover {background:#ffffff10}
body.fokus-ui[data-app-role] .sidebar-scrim {display:none!important}
body.fokus-ui[data-app-role] .mobile-menu {display:none}
body.fokus-ui .mobile-menu svg {display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.fokus-ui .topbar {
  position:sticky;top:0;z-index:50;min-height:80px;height:80px;
  display:grid;grid-template-columns:minmax(240px,1fr) auto;
  align-items:center;gap:24px;
  padding:0 30px;border-bottom:1px solid var(--line);
  background:#ffffffed;backdrop-filter:blur(12px);box-shadow:none;
}
body.fokus-ui[data-app-role] .page-context {display:none}
body.fokus-ui[data-app-role] .global-search {
  display:flex;grid-column:1;justify-self:start;
  width:min(620px,100%);height:44px;min-width:0;
  padding:0 13px;border:1px solid #d5e2e6;
  border-radius:11px;background:#fff;box-shadow:0 2px 6px #163b4510;
}
body.fokus-ui .global-search input {font-size:14px}
body.fokus-ui .global-search>span {font-size:24px;color:#4d7180}
body.fokus-ui .global-search kbd {font-size:10px;border:0;background:#eef3f5;color:#476474;padding:4px 6px}
body.fokus-ui .top-actions {grid-column:2;display:flex;align-items:center;gap:12px;justify-self:end}
body.fokus-ui .top-actions .role-switch.is-locked {display:none}
body.fokus-ui .weather-chip {
  display:flex;min-height:44px;height:44px;gap:9px;
  padding:0 12px;border:1px solid #dbe6e9;border-radius:11px;
  background:#fff;box-shadow:0 2px 6px #163b4508;
}
body.fokus-ui .weather-chip-place strong {font-size:13px}
body.fokus-ui .weather-chip-place small {font-size:12px;color:#56727c}
body.fokus-ui .weather-chip-icon {width:27px;height:27px}
body.fokus-ui .weather-chip-details {display:flex;gap:9px}
body.fokus-ui .weather-chip-details small {font-size:10px}
body.fokus-ui .weather-popover {top:54px;width:min(610px,calc(100vw - 32px));font-size:14px}
body.fokus-ui .weather-current-copy strong {font-size:19px}
body.fokus-ui .weather-current-copy small {font-size:13px}
body.fokus-ui .weather-section-title strong {font-size:13px}
body.fokus-ui .weather-section-title small,body.fokus-ui .weather-source {font-size:11px}
body.fokus-ui .weather-hour>span {font-size:11px}
body.fokus-ui .weather-hour>strong {font-size:13px}
body.fokus-ui .weather-hour>small {font-size:10px}
body.fokus-ui .weather-day>span {font-size:12px}
body.fokus-ui .weather-day>b {font-size:14px}
body.fokus-ui .weather-day>small {font-size:11px}
body.fokus-ui .language-switcher>button {
  height:44px;min-width:65px;padding:0 12px;
  border:1px solid #dbe6e9;border-radius:11px;background:#fff;font-size:13px;
}
body.fokus-ui .language-menu {top:52px}
body.fokus-ui .language-menu button {min-height:42px;font-size:14px}
body.fokus-ui .icon-button {width:40px;height:44px;border:0;background:transparent}
body.fokus-ui .notification-button svg {width:25px;height:25px}
body.fokus-ui .notification-button i {min-width:18px;height:18px;right:-1px;top:1px;font-size:9px}
body.fokus-ui .top-actions>.avatar {display:grid;width:42px;height:42px;font-size:13px;background:#e0f0ee}
body.fokus-ui #main-content {
  width:100%;max-width:1800px;margin:0 auto;
  padding:30px clamp(22px,2.2vw,38px) 48px;
}
body.fokus-ui #main-content>* {min-width:0;animation:none}
body.fokus-ui .page-head,
body.fokus-ui .dashboard-hero .page-head {
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  min-height:0;margin:0 0 24px;padding:0;
  border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;
}
body.fokus-ui .subpage-hero>div:first-child {max-width:none;min-width:0}
body.fokus-ui .dashboard-hero {min-height:0;padding:0;margin:0}
body.fokus-ui .dashboard-hero .page-head>div:first-child {padding:0}
body.fokus-ui .page-head h1,
body.fokus-ui .dashboard-hero .page-head h1 {
  margin:6px 0 7px;font-size:36px;line-height:1.13;
  letter-spacing:-.045em;color:#10313b;
}
body.fokus-ui .page-head p,
body.fokus-ui .dashboard-hero .page-head p {
  display:block;max-width:760px;margin:0;color:#617d86;font-size:14px;line-height:1.6;
}
body.fokus-ui .eyebrow,
body.fokus-ui .dashboard-hero .eyebrow {font-size:10px;line-height:1.6;letter-spacing:.08em;color:#587381;font-weight:750}
body.fokus-ui .page-actions,
body.fokus-ui .dashboard-hero .page-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0}
body.fokus-ui .btn {min-height:42px;padding:10px 15px;font-size:13px;border-radius:10px;font-weight:700}
body.fokus-ui .btn-small {min-height:34px;padding:7px 11px;font-size:12px}
body.fokus-ui .btn:hover {transform:none}
body.fokus-ui .btn-primary {background:var(--orange);box-shadow:0 5px 14px #ff6b2020}
body.fokus-ui .btn-quiet {color:#244651;border:1px solid #d8e3e6;background:#fff}
body.fokus-ui .btn svg {width:20px;height:20px}
body.fokus-ui .grid,body.fokus-ui .stack {gap:18px}
body.fokus-ui .stats-grid {grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}
body.fokus-ui .stats-grid .stat-card {
  display:grid;grid-template-columns:44px minmax(0,1fr);
  align-items:center;gap:13px;min-height:126px;padding:18px;
  border:1px solid #dfe8e9;border-left:3px solid var(--card-accent);
  border-radius:16px;background:#fff;box-shadow:0 5px 18px #123e4707;
  overflow:hidden;transform:none;
}
body.fokus-ui .stats-grid .stat-card::before,
body.fokus-ui .stats-grid .stat-card::after {content:none;display:none}
body.fokus-ui .stats-grid .stat-card:hover {transform:none;border-color:#cddfe1;border-left-color:var(--card-accent);box-shadow:0 7px 20px #123e470c}
body.fokus-ui .stats-grid .stat-icon {
  width:44px;height:44px;border:0;border-radius:12px;box-shadow:none;
  background:var(--card-soft);color:var(--card-accent);
}
body.fokus-ui .stats-grid .stat-icon svg {width:24px;height:24px}
body.fokus-ui .stats-grid .stat-copy .label {font-size:13px;line-height:1.4;color:#284651;font-weight:700}
body.fokus-ui .stats-grid .stat-card strong.value {margin:4px 0 3px;font-size:32px;line-height:1.1;letter-spacing:-.04em}
body.fokus-ui .stats-grid .stat-detail {font-size:11px;line-height:1.45;color:#6a818a;white-space:normal;text-overflow:clip}
body.fokus-ui .stats-grid .progress-line {height:4px;margin-top:10px;background:#edf2f0}
body.fokus-ui .stats-grid .stat-card .progress-line i {box-shadow:none;background:var(--card-accent)}
body.fokus-ui .stats-grid .stat-side {grid-column:2;align-self:auto;height:auto}
body.fokus-ui .stats-grid .stat-trend {font-size:10px;padding:3px 7px}
body.fokus-ui .dashboard-grid {grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:20px;align-items:start}
body.fokus-ui .panel,
body.fokus-ui .table-panel,
body.fokus-ui .dashboard-grid .panel {
  min-width:0;border:1px solid #dfe8e9;border-radius:16px;
  background:#fff;box-shadow:var(--shadow);
}
body.fokus-ui .dashboard-grid .panel:hover {border-color:#d7e3e5;box-shadow:var(--shadow)}
body.fokus-ui .panel-head,
body.fokus-ui .dashboard-grid .panel-head {min-height:76px;gap:14px;padding:19px 21px;border-bottom:1px solid #e6edef;background:#fff}
body.fokus-ui .dashboard-grid .panel-head::before {content:none;display:none}
body.fokus-ui .panel-head h2,body.fokus-ui .panel-head h3 {margin:0;font-size:20px;line-height:1.25;letter-spacing:-.025em}
body.fokus-ui .panel-head p {font-size:12px;line-height:1.5;margin-top:5px;color:#6b828a}
body.fokus-ui .panel-link,body.fokus-ui .dashboard-grid .panel-link {
  min-height:38px;padding:7px 10px;border:0;border-radius:8px;background:#f4f8f7;color:#225763;font-size:12px;font-weight:700;white-space:nowrap;
}
body.fokus-ui .panel-pad {padding:20px}
body.fokus-ui .schedule-list {display:grid;gap:0;padding:0 20px 8px}
body.fokus-ui .schedule-row,
body.fokus-ui .dashboard-grid .schedule-row {
  display:grid;grid-template-columns:60px 4px minmax(0,1fr) minmax(90px,auto);
  align-items:center;gap:13px;min-height:77px;margin:0;padding:11px 0;
  border:0!important;border-bottom:1px solid #edf2f2!important;border-radius:0;
  background:#fff!important;box-shadow:none;overflow:visible;transform:none;
}
body.fokus-ui .schedule-row:last-child {border-bottom:0!important}
body.fokus-ui .schedule-row::after {content:none;display:none}
body.fokus-ui .dashboard-grid .schedule-row:hover {background:#f8fbfa!important;box-shadow:none;transform:none}
body.fokus-ui .schedule-time,body.fokus-ui .dashboard-grid .schedule-time {padding:0;background:none;border:0;border-radius:0}
body.fokus-ui .schedule-time strong {font-size:16px;line-height:1.3;color:#153643}
body.fokus-ui .schedule-time small {font-size:11px;line-height:1.4;color:#748b92}
body.fokus-ui .schedule-line,body.fokus-ui .dashboard-grid .schedule-line {width:4px;height:40px;border-radius:5px;box-shadow:none}
body.fokus-ui .schedule-main strong {font-size:14px;line-height:1.4}
body.fokus-ui .schedule-main span {font-size:12px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}
body.fokus-ui .schedule-meta {display:block;text-align:right}
body.fokus-ui .schedule-meta strong {font-size:12px;line-height:1.4}
body.fokus-ui .schedule-meta span {font-size:10px;margin-top:4px;padding:3px 6px}
body.fokus-ui .action-list {display:grid;gap:0;padding:0 20px 9px}
body.fokus-ui .action-item,
body.fokus-ui .dashboard-grid .action-item {
  display:grid;grid-template-columns:42px minmax(0,1fr) auto;
  gap:13px;min-height:88px;padding:15px 0!important;
  border:0!important;border-bottom:1px solid #edf2f2!important;
  border-radius:0;background:#fff!important;transform:none;box-shadow:none;
}
body.fokus-ui .action-item:last-child {border-bottom:0!important}
body.fokus-ui .dashboard-grid .action-item::before {content:none;display:none}
body.fokus-ui .dashboard-grid .action-item:hover {background:#f8fbfa!important;transform:none;box-shadow:none}
body.fokus-ui .action-dot,body.fokus-ui .dashboard-grid .action-dot {width:42px;height:42px;border:0;border-radius:12px;font-size:18px;box-shadow:none}
body.fokus-ui .action-item strong {font-size:14px;line-height:1.4}
body.fokus-ui .action-item small {font-size:11px;line-height:1.55;margin-top:5px;color:#6b828a}
body.fokus-ui .action-count,body.fokus-ui .dashboard-grid .action-count {padding:4px 7px;border-radius:8px;font-size:12px;white-space:nowrap}
body.fokus-ui .capacity-list {padding:15px 21px 21px}
body.fokus-ui .capacity-row,body.fokus-ui .dashboard-grid .capacity-row {
  display:grid;grid-template-columns:116px minmax(0,1fr) 78px;gap:12px;
  align-items:center;margin-top:14px;padding:3px 0;
}
body.fokus-ui .capacity-row:first-child {margin-top:0}
body.fokus-ui .capacity-row span,body.fokus-ui .capacity-row strong {font-size:12px;line-height:1.4}
body.fokus-ui .capacity-row strong {text-align:right;font-weight:700}
body.fokus-ui #dashboard-live-activity .capacity-row {grid-template-columns:minmax(0,1fr) auto;margin-top:15px}
body.fokus-ui #dashboard-live-activity .capacity-row:first-child {margin-top:0}
body.fokus-ui .bar {height:8px;background:#eaf0ee;box-shadow:none}
body.fokus-ui .dashboard-grid .bar i {box-shadow:none}
body.fokus-ui .fokus-vehicle-strip {
  display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,2fr) auto;
  align-items:center;gap:24px;margin-top:20px;padding:18px 22px;
  border:1px solid #dfe8e9;border-radius:16px;background:#fbfdfb;box-shadow:0 4px 14px #143e4505;
}
body.fokus-ui .fokus-vehicle-summary {display:flex;align-items:center;gap:12px;min-width:0}
body.fokus-ui .fokus-vehicle-summary>span {display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#f0f7df;color:#6c9c0b}
body.fokus-ui .fokus-vehicle-summary>span svg {width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.fokus-ui .fokus-vehicle-summary>div {display:grid;gap:4px;min-width:0}
body.fokus-ui .fokus-vehicle-summary strong {font-size:17px;line-height:1.3}
body.fokus-ui .fokus-vehicle-summary small {font-size:12px;color:#637d82}
body.fokus-ui .fokus-vehicle-items {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;min-width:0}
body.fokus-ui .fokus-vehicle-card {display:flex;align-items:center;gap:12px;min-width:0}
body.fokus-ui .fokus-vehicle-card>div:last-child {display:grid;gap:4px;min-width:0}
body.fokus-ui .fokus-vehicle-card strong {font-size:13px;line-height:1.4}
body.fokus-ui .fokus-vehicle-card small {font-size:11px;color:#567c43}
body.fokus-ui .fokus-vehicle-image {position:relative;display:grid;place-items:center;flex:0 0 82px;width:82px;height:58px;overflow:hidden;border-radius:9px;background:#eef4f1;color:#4d7380}
body.fokus-ui .fokus-vehicle-image img {display:block;max-width:100%;width:100%;height:100%;object-fit:contain}
body.fokus-ui .fokus-vehicle-image svg {width:36px;height:36px}
body.fokus-ui .fokus-vehicle-open {padding:0;border:0;background:none;text-align:left;color:#153b47;font:inherit;font-size:13px;line-height:1.4;font-weight:750;cursor:pointer}
body.fokus-ui .fokus-vehicle-open:hover {color:#0b6b79;text-decoration:underline;text-underline-offset:3px}
body.fokus-ui .fokus-vehicle-card small {display:block;line-height:1.45}
body.fokus-ui .fokus-vehicle-card small i {display:inline-block;width:6px;height:6px;margin-right:4px;border-radius:50%;background:#89b91b}
body.fokus-ui .fokus-vehicle-empty {font-size:13px;color:#637d82;margin:0}
body.fokus-ui .fokus-vehicle-image .vehicle-photo-credit {left:3px;right:3px;bottom:2px;max-width:calc(100% - 6px);padding:2px 3px;font-size:8px!important;line-height:1.3;border-radius:4px;box-shadow:none}

/* Shared working pages: readable controls and surface hierarchy, original
   document paper/QR preview sizes remain scoped to their existing styles. */
body.fokus-ui #main-content .search-box {min-height:44px;height:auto;padding:0 12px;border-radius:10px}
body.fokus-ui #main-content .search-box input {min-height:42px;font-size:14px}
body.fokus-ui #main-content .filter-select {min-height:44px;height:auto;font-size:13px;padding:10px 30px 10px 12px}
body.fokus-ui .data-table th {font-size:11px;line-height:1.4;padding:14px 16px;letter-spacing:.055em;background:#f8faf9}
body.fokus-ui .data-table td {font-size:13px;line-height:1.55;padding:15px 16px}
body.fokus-ui .data-table .person-cell strong {font-size:13px}
body.fokus-ui .data-table .person-cell small {font-size:11px;line-height:1.4}
body.fokus-ui .table-action {width:34px;height:34px;font-size:17px}
body.fokus-ui .tag {font-size:11px;line-height:1.3;min-height:27px;padding:5px 8px}
body.fokus-ui .person-avatar {width:37px;height:37px;font-size:12px}
body.fokus-ui .empty-note {padding:40px 22px;font-size:13px;line-height:1.65;color:#657e86}
body.fokus-ui .table-panel,body.fokus-ui .table-scroll {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
body.fokus-ui .calendar-shell {grid-template-columns:200px minmax(0,1fr);gap:18px}
body.fokus-ui .calendar-toolbar {padding:15px 18px;gap:12px;flex-wrap:wrap}
body.fokus-ui .calendar-toolbar strong {font-size:15px}
body.fokus-ui .calendar-controls button {min-height:38px;font-size:12px}
body.fokus-ui .calendar-filter {padding:18px}
body.fokus-ui .calendar-filter h3 {font-size:14px}
body.fokus-ui .check-row {font-size:12px;line-height:1.5}
body.fokus-ui .week-day span {font-size:11px}
body.fokus-ui .time-label {font-size:10px}
body.fokus-ui .calendar-event {font-size:12px}
body.fokus-ui .calendar-event strong {font-size:12px}
body.fokus-ui .calendar-event small {font-size:10px}
body.fokus-ui .vehicle-card {border-radius:16px;box-shadow:var(--shadow)}
body.fokus-ui .vehicle-body {padding:19px}
body.fokus-ui .vehicle-body h3 {font-size:18px}
body.fokus-ui .vehicle-body>p {font-size:12px;line-height:1.6}
body.fokus-ui .vehicle-stat span {font-size:11px}
body.fokus-ui .vehicle-stat strong {font-size:13px}
body.fokus-ui .vehicle-alert {font-size:11px}
body.fokus-ui .settings-tabs button {font-size:13px;min-height:42px}
body.fokus-ui .setting-card h3 {font-size:17px}
body.fokus-ui .setting-card p {font-size:13px;line-height:1.6}
body.fokus-ui .form-group label {font-size:13px;line-height:1.5}
body.fokus-ui .form-group input,
body.fokus-ui .form-group select,
body.fokus-ui .form-group textarea {font-size:15px;min-height:44px}
body.fokus-ui .form-note {font-size:12px;line-height:1.65}
body.fokus-ui .operation-card strong {font-size:15px}
body.fokus-ui .operation-card small {font-size:11px;line-height:1.5}
body.fokus-ui .operation-card b {font-size:11px}
body.fokus-ui .operations-note h2 {font-size:20px}
body.fokus-ui .operations-note p {font-size:13px;line-height:1.6}
body.fokus-ui .statistics-filter-panel {top:92px}
body.fokus-ui .statistics-filter-panel>label {font-size:11px}
body.fokus-ui .statistics-filter-panel input,
body.fokus-ui .statistics-filter-panel select {font-size:14px;min-height:44px}
body.fokus-ui .statistics-periods button {font-size:12px;min-height:38px}
body.fokus-ui .statistics-meta {font-size:12px}
body.fokus-ui .statistics-kpi>span {font-size:13px}
body.fokus-ui .statistics-kpi>strong {font-size:28px}
body.fokus-ui .statistics-kpi>small {font-size:12px}
body.fokus-ui .message-row-top strong {font-size:15px}
body.fokus-ui .message-row-top time {font-size:11px}
body.fokus-ui .message-box-tabs button {min-height:42px;font-size:13px}
body.fokus-ui .message-search input {font-size:14px}
body.fokus-ui .message-filter {font-size:13px;min-height:42px}
body.fokus-ui .message-list-head strong {font-size:14px}
body.fokus-ui .message-side strong {font-size:15px}
body.fokus-ui .message-empty h3 {font-size:20px}
body.fokus-ui .message-empty p {font-size:13px;line-height:1.65}
body.fokus-ui .gps-stat-grid strong {font-size:29px}
body.fokus-ui .gps-stat-grid small,body.fokus-ui .gps-stat-grid span {font-size:13px}
body.fokus-ui .gps-map {border-radius:0}
body.fokus-ui .modal-header h2 {font-size:24px}
body.fokus-ui .modal-header>div>span {font-size:11px}
body.fokus-ui .modal-footer {gap:10px;flex-wrap:wrap}
body.fokus-ui .toast {font-size:13px;line-height:1.55}

/* An optional desktop icon rail never changes route permissions. */
@media (min-width:1025px) {
  body.fokus-ui.fokus-sidebar-collapsed[data-app-role] {--fokus-sidebar-width:76px}
  body.fokus-ui.fokus-sidebar-collapsed[data-app-role] .sidebar {padding:12px 8px 10px}
  body.fokus-ui.fokus-sidebar-collapsed .brand-wrap {width:58px;height:50px;min-height:50px;padding:4px;margin-bottom:38px}
  body.fokus-ui.fokus-sidebar-collapsed .brand-logo-viewport {display:none}
  body.fokus-ui.fokus-sidebar-collapsed .brand-wrap .fokus-brand-symbol {display:block;width:42px;height:42px;object-fit:contain;margin:0;padding:0;background:transparent;border-radius:0}
  body.fokus-ui.fokus-sidebar-collapsed #sidebar-collapse {top:53px;left:10px;right:auto;transform:rotate(180deg)}
  body.fokus-ui.fokus-sidebar-collapsed .school-switcher,
  body.fokus-ui.fokus-sidebar-collapsed .fokus-nav-caption {display:none}
  body.fokus-ui.fokus-sidebar-collapsed .nav-button {justify-content:center;padding:8px 0;min-height:42px}
  body.fokus-ui.fokus-sidebar-collapsed .nav-button>span:not(.nav-glyph) {display:none}
  body.fokus-ui.fokus-sidebar-collapsed .user-chip {display:flex;justify-content:center;padding:7px 0}
  body.fokus-ui.fokus-sidebar-collapsed .user-chip>span:not(.avatar) {display:none}
  body.fokus-ui.fokus-sidebar-collapsed .sidebar-status {justify-content:center;padding:12px 0 3px}
  body.fokus-ui.fokus-sidebar-collapsed .sidebar-status>span:last-child {display:none}
}
@media (min-width:1025px) and (max-width:1380px) {
  body.fokus-ui {--fokus-sidebar-width:256px}
  body.fokus-ui .topbar {gap:16px;padding:0 24px}
  body.fokus-ui .weather-chip-details {display:none}
  body.fokus-ui .top-actions {gap:9px}
  body.fokus-ui .stats-grid .stat-card {padding:16px 13px;gap:10px;grid-template-columns:38px minmax(0,1fr)}
  body.fokus-ui .stats-grid .stat-icon {width:38px;height:40px}
  body.fokus-ui .stats-grid .stat-copy .label {font-size:12px}
  body.fokus-ui .stats-grid .stat-card strong.value {font-size:29px}
  body.fokus-ui .dashboard-grid {grid-template-columns:minmax(0,1.4fr) minmax(280px,.85fr);gap:16px}
  body.fokus-ui .schedule-row,body.fokus-ui .dashboard-grid .schedule-row {grid-template-columns:52px 4px minmax(0,1fr);gap:10px}
  body.fokus-ui .schedule-meta {grid-column:3;text-align:left;display:flex;gap:8px;align-items:center}
  body.fokus-ui .schedule-meta span {margin-top:0}
  body.fokus-ui .capacity-row,body.fokus-ui .dashboard-grid .capacity-row {grid-template-columns:104px minmax(0,1fr) 64px;gap:9px}
  body.fokus-ui .fokus-vehicle-strip {grid-template-columns:1fr auto;gap:15px}
  body.fokus-ui .fokus-vehicle-items {grid-column:1/-1;grid-row:2}
  body.fokus-ui .fokus-vehicle-strip>.btn {grid-column:2;grid-row:1}
}
@media (max-width:1024px) {
  body.fokus-ui[data-app-role] .app {display:block;min-height:100dvh}
  body.fokus-ui[data-app-role] .sidebar {
    position:fixed;left:0;top:0;bottom:0;
    width:min(320px,calc(100vw - 28px));height:100vh;height:100dvh;
    max-height:100dvh;z-index:120;
    transform:translateX(-105%);
    border-right:1px solid #ffffff1f;
    box-shadow:18px 0 48px #092f3430;
  }
  body.fokus-ui[data-app-role] .sidebar.is-open {transform:translateX(0);z-index:120!important;filter:none!important}
  body.fokus-ui[data-app-role] .sidebar.is-open + .sidebar-scrim:not([hidden]) {
    display:block!important;position:fixed;inset:0;z-index:110!important;
    width:100%;height:100%;margin:0;padding:0;border:0;
    background:#062c3666;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
  body.fokus-ui.sidebar-open {overflow:hidden}
  body.fokus-ui[data-app-role] #sidebar-collapse {display:none}
  body.fokus-ui[data-app-role] #sidebar-close {
    position:absolute;right:0;top:5px;display:grid;place-items:center;
    width:42px;height:44px;padding:0;border:1px solid #ffffff28;border-radius:10px;
    background:#ffffff0a;color:#fff;font:400 28px/1 Arial,sans-serif;
    box-shadow:none;z-index:4;
  }
  body.fokus-ui .sidebar.is-open .brand-wrap {padding:5px 10px;width:calc(100% - 52px);max-width:222px;justify-content:center}
  body.fokus-ui .sidebar.is-open .brand-logo-viewport {width:100%;height:45px}
  body.fokus-ui .sidebar-nav-scroll {padding-bottom:12px}
  body.fokus-ui .nav-button {min-height:44px;font-size:15px}
  body.fokus-ui .fokus-nav-caption {font-size:10px}
  body.fokus-ui .school-switcher strong {font-size:14px}
  body.fokus-ui .sidebar-footer {padding-top:6px}
  body.fokus-ui .sidebar-status {padding-bottom:max(5px,env(safe-area-inset-bottom))}
  body.fokus-ui[data-app-role] .topbar {
    position:sticky;top:0;min-height:0;height:auto;
    display:grid;grid-template-columns:44px minmax(0,1fr) auto;
    gap:10px 14px;padding:12px 20px;background:#fffffffa;z-index:60;
  }
  body.fokus-ui[data-app-role] .mobile-menu {
    display:grid;place-items:center;grid-column:1;grid-row:1;
    width:44px;height:44px;padding:0;border:1px solid #d8e4e7;border-radius:10px;
    background:#fff;color:#214c57;font-size:23px;line-height:1;
  }
  body.fokus-ui[data-app-role] .page-context {display:block;grid-column:2;grid-row:1;min-width:0}
  body.fokus-ui .page-context span {display:block;font-size:9px;line-height:1.4;color:#718b92;letter-spacing:.06em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  body.fokus-ui .page-context strong {font-size:17px;line-height:1.3;margin-top:3px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  body.fokus-ui .top-actions {grid-column:3;grid-row:1;gap:8px}
  body.fokus-ui[data-app-role] .global-search {display:flex;grid-column:1/-1;grid-row:2;width:100%;height:42px;max-width:none}
  body.fokus-ui .global-search input {font-size:16px}
  body.fokus-ui .weather-chip {display:flex;padding:0 10px}
  body.fokus-ui .weather-chip-place {grid-template-columns:1fr;gap:0}
  body.fokus-ui .weather-chip-place strong {font-size:12px}
  body.fokus-ui .weather-chip-place small {font-size:10px}
  body.fokus-ui .weather-chip-details {display:none}
  body.fokus-ui .top-actions>.avatar {display:grid;width:40px;height:40px;font-size:12px}
  body.fokus-ui .language-switcher>button {min-width:54px;height:44px;padding:0 9px}
  body.fokus-ui #main-content {padding:25px 24px 100px;max-width:100%}
  body.fokus-ui .page-head,body.fokus-ui .dashboard-hero .page-head {gap:18px;align-items:flex-start;margin-bottom:22px}
  body.fokus-ui .page-head h1,body.fokus-ui .dashboard-hero .page-head h1 {font-size:32px}
  body.fokus-ui .stats-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
  body.fokus-ui .stats-grid .stat-card {grid-template-columns:1fr;min-height:150px;padding:15px;gap:10px;align-content:start}
  body.fokus-ui .stats-grid .stat-icon {width:38px;height:38px}
  body.fokus-ui .stats-grid .stat-card strong.value {font-size:29px}
  body.fokus-ui .stats-grid .stat-copy .label {font-size:12px}
  body.fokus-ui .dashboard-grid {grid-template-columns:minmax(0,1.45fr) minmax(260px,.85fr);gap:16px}
  body.fokus-ui .schedule-row,body.fokus-ui .dashboard-grid .schedule-row {grid-template-columns:52px 4px minmax(0,1fr);gap:10px}
  body.fokus-ui .schedule-meta {grid-column:3;text-align:left;display:flex;gap:8px;align-items:center}
  body.fokus-ui .schedule-meta span {margin-top:0}
  body.fokus-ui .panel-head,body.fokus-ui .dashboard-grid .panel-head {padding:17px;min-height:72px}
  body.fokus-ui .panel-head h2,body.fokus-ui .panel-head h3 {font-size:18px}
  body.fokus-ui .schedule-list,body.fokus-ui .action-list {padding-left:16px;padding-right:16px}
  body.fokus-ui .action-item,body.fokus-ui .dashboard-grid .action-item {grid-template-columns:36px minmax(0,1fr) auto;gap:10px}
  body.fokus-ui .action-dot,body.fokus-ui .dashboard-grid .action-dot {width:36px;height:38px}
  body.fokus-ui .capacity-list {padding:16px}
  body.fokus-ui .capacity-row,body.fokus-ui .dashboard-grid .capacity-row {grid-template-columns:100px minmax(0,1fr) 60px;gap:8px}
  body.fokus-ui .fokus-vehicle-strip {grid-template-columns:1fr auto;gap:15px}
  body.fokus-ui .fokus-vehicle-items {grid-column:1/-1;grid-row:2}
  body.fokus-ui .fokus-vehicle-strip>.btn {grid-column:2;grid-row:1}
  body.fokus-ui .calendar-shell {grid-template-columns:1fr}
  body.fokus-ui .calendar-aside {display:block}
  body.fokus-ui .calendar-filter {padding:15px}
  body.fokus-ui .calendar-filter #pilot-calendar-filters {grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  body.fokus-ui .statistics-filter-panel {position:static}
  body.fokus-ui .mobile-nav {
    position:fixed;z-index:65;left:0;right:0;bottom:0;
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
    height:calc(64px + env(safe-area-inset-bottom));
    padding:0 6px env(safe-area-inset-bottom);background:#fff;
    border-top:1px solid #dce7e8;box-shadow:0 -4px 18px #103e4708;
  }
  body.fokus-ui .mobile-nav button {display:flex;align-items:center;justify-content:center;min-width:0;min-height:56px;padding:7px 3px;border:0;background:none;color:#66818a;font-size:11px;line-height:1.3;gap:5px}
  body.fokus-ui .mobile-nav button>span {width:22px;height:22px}
  body.fokus-ui .mobile-nav svg {display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  body.fokus-ui .mobile-nav button.is-active {color:#0b515d;font-weight:750}
  body.fokus-ui .toast-region {bottom:calc(76px + env(safe-area-inset-bottom))}
}
@media (max-width:760px) {
  body.fokus-ui .dashboard-grid {grid-template-columns:1fr}
  body.fokus-ui .stats-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  body.fokus-ui .stats-grid .stat-card {grid-template-columns:40px minmax(0,1fr);min-height:126px;align-content:center;padding:16px;gap:12px}
  body.fokus-ui .page-head,body.fokus-ui .dashboard-hero .page-head {flex-wrap:wrap}
  body.fokus-ui .page-actions,body.fokus-ui .dashboard-hero .page-actions {width:100%;gap:8px;justify-content:flex-start}
  body.fokus-ui .page-actions .btn-quiet {display:inline-flex}
  body.fokus-ui .page-actions .btn {min-height:44px}
  body.fokus-ui .calendar-filter #pilot-calendar-filters {grid-template-columns:repeat(2,minmax(0,1fr))}
  body.fokus-ui .fokus-vehicle-strip {padding:18px}
  body.fokus-ui .fokus-vehicle-items {gap:14px}
}
@media (max-width:680px) {
  body.fokus-ui[data-app-role] .topbar {
    grid-template-columns:44px minmax(0,1fr) 48px 38px 38px;
    gap:8px 6px;padding:10px 14px 12px;
  }
  body.fokus-ui .top-actions {display:contents}
  body.fokus-ui[data-app-role] .mobile-menu {grid-column:1;grid-row:1}
  body.fokus-ui[data-app-role] .page-context {grid-column:2;grid-row:1}
  body.fokus-ui .page-context span {display:none}
  body.fokus-ui .page-context strong {font-size:15px;margin:0}
  body.fokus-ui .language-switcher {grid-column:3;grid-row:1;justify-self:end}
  body.fokus-ui .language-switcher>button {min-width:46px;height:42px;padding:0 7px;font-size:12px}
  body.fokus-ui .language-switcher .language-icon {display:none}
  body.fokus-ui .notification-button {grid-column:4;grid-row:1;width:38px;height:42px}
  body.fokus-ui .notification-button svg {width:23px;height:23px}
  body.fokus-ui .top-actions>.avatar {grid-column:5;grid-row:1;display:grid;width:38px;height:38px;font-size:12px}
  body.fokus-ui .weather-widget {grid-column:1/-1;grid-row:2;width:100%;min-width:0}
  body.fokus-ui .weather-chip {display:flex;width:100%;min-height:40px;height:40px;justify-content:flex-start;gap:10px;padding:0 11px;border-radius:9px}
  body.fokus-ui .weather-chip-place {display:flex;flex-direction:row;gap:7px;align-items:center}
  body.fokus-ui .weather-chip-place strong {font-size:13px}
  body.fokus-ui .weather-chip-place small {font-size:11px}
  body.fokus-ui .weather-chip-icon {width:25px;height:25px}
  body.fokus-ui .weather-chip-details {display:flex;margin-left:auto;padding-left:10px;gap:8px}
  body.fokus-ui .weather-chip-details small {font-size:10px}
  body.fokus-ui[data-app-role] .global-search {grid-column:1/-1;grid-row:3;display:flex;width:100%;height:42px}
  body.fokus-ui .global-search input {font-size:16px}
  body.fokus-ui .global-search kbd {display:none}
  body.fokus-ui .weather-popover {position:fixed;top:110px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 140px);overflow:auto;padding:15px}
  body.fokus-ui #main-content {padding:22px 16px calc(88px + env(safe-area-inset-bottom))}
  body.fokus-ui .page-head h1,body.fokus-ui .dashboard-hero .page-head h1 {font-size:30px}
  body.fokus-ui .page-head p,body.fokus-ui .dashboard-hero .page-head p {font-size:13px;max-width:none}
  body.fokus-ui .eyebrow,body.fokus-ui .dashboard-hero .eyebrow {font-size:10px}
  body.fokus-ui .stats-grid {gap:10px;margin-bottom:16px}
  body.fokus-ui .stats-grid .stat-card {grid-template-columns:1fr;gap:10px;align-content:start;min-height:154px;padding:15px;border-radius:13px}
  body.fokus-ui .stats-grid .stat-copy .label {font-size:13px}
  body.fokus-ui .stats-grid .stat-card strong.value {font-size:29px}
  body.fokus-ui .stats-grid .stat-detail {font-size:11px}
  body.fokus-ui .stats-grid .stat-icon {width:36px;height:36px;border-radius:10px}
  body.fokus-ui .stats-grid .stat-icon svg {width:22px;height:22px}
  body.fokus-ui .panel-head,body.fokus-ui .dashboard-grid .panel-head {padding:17px 16px;min-height:70px;gap:10px;flex-wrap:wrap}
  body.fokus-ui .panel-head h2,body.fokus-ui .panel-head h3 {font-size:19px}
  body.fokus-ui .panel-head p {font-size:12px}
  body.fokus-ui .schedule-list {padding:0 14px 6px}
  body.fokus-ui .schedule-row,body.fokus-ui .dashboard-grid .schedule-row {grid-template-columns:51px 3px minmax(0,1fr);gap:10px;padding:15px 0;min-height:94px}
  body.fokus-ui .schedule-time strong {font-size:15px}
  body.fokus-ui .schedule-time small {font-size:11px}
  body.fokus-ui .schedule-main strong {font-size:14px}
  body.fokus-ui .schedule-main span {font-size:12px}
  body.fokus-ui .schedule-meta {grid-column:3;display:flex;align-items:center;gap:8px;text-align:left}
  body.fokus-ui .schedule-meta strong {font-size:11px}
  body.fokus-ui .schedule-meta span {font-size:10px;margin:0}
  body.fokus-ui .action-list {padding:0 14px 8px}
  body.fokus-ui .action-item,body.fokus-ui .dashboard-grid .action-item {grid-template-columns:38px minmax(0,1fr) auto;gap:10px;min-height:89px;padding:14px 0!important}
  body.fokus-ui .action-dot,body.fokus-ui .dashboard-grid .action-dot {width:38px;height:40px}
  body.fokus-ui .action-item strong {font-size:13px}
  body.fokus-ui .action-item small {font-size:11px}
  body.fokus-ui .action-count,body.fokus-ui .dashboard-grid .action-count {font-size:11px;padding:4px 6px}
  body.fokus-ui .capacity-list {padding:17px 16px}
  body.fokus-ui .capacity-row,body.fokus-ui .dashboard-grid .capacity-row {grid-template-columns:98px minmax(0,1fr) 60px;gap:8px}
  body.fokus-ui .capacity-row span,body.fokus-ui .capacity-row strong {font-size:11px}
  body.fokus-ui .fokus-vehicle-strip {grid-template-columns:minmax(0,1fr);gap:15px;padding:17px 16px;margin-top:17px}
  body.fokus-ui .fokus-vehicle-items {grid-column:1;grid-row:auto;grid-template-columns:1fr;gap:15px}
  body.fokus-ui .fokus-vehicle-strip>.btn {grid-column:1;grid-row:auto;justify-self:start}
  body.fokus-ui .fokus-vehicle-card {padding-top:13px;border-top:1px solid #e2eae5}
  body.fokus-ui .fokus-vehicle-image {width:88px;flex-basis:88px;height:60px}
  body.fokus-ui .fokus-vehicle-card strong {font-size:14px}
  body.fokus-ui .filter-bar {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  body.fokus-ui .filter-bar .search-box {grid-column:1/-1;min-width:0;max-width:none}
  body.fokus-ui .filter-bar .btn {white-space:normal}
  body.fokus-ui .form-group input,
  body.fokus-ui .form-group select,
  body.fokus-ui .form-group textarea,
  body.fokus-ui .modal input:not([type=checkbox]):not([type=radio]),
  body.fokus-ui .modal select,
  body.fokus-ui .modal textarea,
  body.fokus-ui #main-content input,
  body.fokus-ui #main-content select,
  body.fokus-ui #main-content textarea {font-size:16px;max-width:100%;min-width:0}
  body.fokus-ui .modal-layer {padding:10px;align-items:center}
  body.fokus-ui .modal {width:100%;max-height:calc(100dvh - 20px);border-radius:16px}
  body.fokus-ui .modal-header {padding:18px}
  body.fokus-ui .modal-header h2 {font-size:22px}
  body.fokus-ui .modal-body {padding:18px}
  body.fokus-ui .modal-footer {padding:14px 18px}
  body.fokus-ui .form-grid {grid-template-columns:1fr}
  body.fokus-ui .calendar-filter #pilot-calendar-filters {grid-template-columns:1fr 1fr}
  body.fokus-ui .calendar-toolbar {padding:14px;align-items:flex-start}
  body.fokus-ui .statistics-filter-panel {position:static}
  body.fokus-ui .gps-map-controls {max-width:calc(100% - 18px)}
}
@media (max-width:360px) {
  body.fokus-ui #main-content {padding-left:12px;padding-right:12px}
  body.fokus-ui .topbar {padding-left:10px;padding-right:10px}
  body.fokus-ui .weather-chip {padding-left:8px;padding-right:8px;gap:7px}
  body.fokus-ui .weather-chip-details {gap:6px;padding-left:7px}
  body.fokus-ui .weather-chip-place {gap:5px}
  body.fokus-ui .weather-chip-place small {font-size:10px}
  body.fokus-ui .capacity-row,body.fokus-ui .dashboard-grid .capacity-row {grid-template-columns:92px minmax(0,1fr) 54px;gap:6px}
  body.fokus-ui .stats-grid .stat-card {padding:13px}
  body.fokus-ui .stats-grid .stat-copy .label {font-size:12px}
  body.fokus-ui .stats-grid .stat-card strong.value {font-size:27px}
}
@media (max-height:600px) and (max-width:1024px) {
  body.fokus-ui .sidebar {padding-top:8px;padding-bottom:5px}
  body.fokus-ui .brand-wrap,body.fokus-ui .sidebar.is-open .brand-wrap {height:44px;min-height:44px;margin-bottom:8px}
  body.fokus-ui .brand-logo-viewport,body.fokus-ui .sidebar.is-open .brand-logo-viewport {height:34px}
  body.fokus-ui .brand-wrap .brand-logo-viewport img {max-height:34px}
  body.fokus-ui .school-switcher {margin-bottom:8px;padding:8px;grid-template-columns:40px minmax(0,1fr) 14px}
  body.fokus-ui .school-logo-mark {width:40px;height:34px}
  body.fokus-ui .school-switcher small {display:none}
  body.fokus-ui .sidebar-footer {padding-top:3px}
  body.fokus-ui .user-chip {padding-top:4px;padding-bottom:4px}
  body.fokus-ui .sidebar-status {padding-top:6px}
  body.fokus-ui .sidebar-status small {font-size:9px}
}
@media (prefers-reduced-motion:reduce) {
  body.fokus-ui .sidebar,body.fokus-ui .nav-button,body.fokus-ui .btn {transition:none}
  body.fokus-ui .sidebar-status .status-orbit i {animation:none}
}

/* Keep the school city visible beside the mobile weather reading. */
body.fokus-ui .weather-chip-place small {display:block}

@media (max-width:680px) {
  body.fokus-ui .weather-chip-place {min-width:0;flex:1 1 auto}
  body.fokus-ui .weather-chip-place strong {flex-shrink:0}
  body.fokus-ui .weather-chip-place small {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.fokus-ui .weather-chip-details {flex-shrink:0}
}
