/* Tiye design system — Admin portal v1 (docs: "Tiye Bus — Admin Portal" frames, p.1–4).
   Frames are drawn at 1366 x 960; every size here is taken from them. */

:root {
  --ground: #F4F3EF; --surface: #FFFFFF; --sunk: #ECEAE4;
  --line: #DEDAD1; --line-strong: #C7C2B6;
  --ink3: #5D6168; --ink: #16181B; --night: #1A1C1F;
  --night-2: #25272B; --night-3: #2E3035; --night-line: #33363B; --night-ink: #C9CCD1; --night-ink3: #8A8E95;

  --copper: #A3440E; --copper-tint: #FBE9DD; --copper-hover: #8C3A0C;
  --green: #1B6A42;  --green-tint: #E2F1E7;
  --blue: #1D539E;   --blue-tint: #E3EBF7;
  --ochre: #6F4B00;  --ochre-tint: #FFF0C2;
  --red: #A1151A;    --red-tint: #FBE3E2;  --red-hover: #8A1116;
  --grey: #41454C;   --grey-tint: #ECEAE4;

  --r-badge: 4px; --r-control: 6px; --r-card: 10px; --r-chip: 14px;
  --e1: 0 1px 2px rgba(22,24,27,.06), 0 8px 24px rgba(22,24,27,.12);
  --e2: 0 2px 6px rgba(22,24,27,.10), 0 24px 60px rgba(22,24,27,.28);

  --sidebar-w: 216px;
  --topbar-h: 52px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 13px/1.45 var(--sans); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.ink3 { color: var(--ink3); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* Focus: blue, per the design system ("Blue · waiting ... Also focus"). */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ------------------------------------------------------------ type scale */
.t-wall { font-size: 40px; font-weight: 600; line-height: 1.1; }
.t-kpi  { font-size: 24px; font-weight: 600; line-height: 1.15; }
.t-h1   { font-size: 18px; font-weight: 600; line-height: 1.3; }
.t-h2   { font-size: 15px; font-weight: 600; line-height: 1.35; }
.t-label {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3);
}

/* ================================================================= SHELL */
/* The sidebar and the content area scroll independently: the sidebar is
   pinned to the viewport and scrolls on its own only if its items do not
   fit; the page scrolls inside .content, under a pinned top bar. */
#shell { display: none; height: 100vh; }
#shell.on { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }

.sidebar {
  height: 100vh; position: sticky; top: 0; overflow-y: auto; overflow-x: hidden;
  background: var(--night); color: var(--night-ink);
  display: flex; flex-direction: column; padding: 14px 10px 0;
  scrollbar-width: thin; scrollbar-color: var(--night-3) transparent;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: #fff; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font-size: 16px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--night-ink3); line-height: 1.2; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 10px; border-radius: var(--r-control);
  color: var(--night-ink); font-size: 13.5px; cursor: pointer; user-select: none;
  transition: background-color .12s ease, color .12s ease; text-decoration: none;
}
.nav-item:hover { background: var(--night-2); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--night-3); color: #fff; font-weight: 500; }
.nav-item.active::before {
  content: ''; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--copper);
}
.nav-item .ico { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav-item .count {
  margin-left: auto; min-width: 22px; height: 18px; padding: 0 6px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-sep { height: 1px; background: var(--night-line); margin: 10px 8px; }
.nav-label { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; color: var(--night-ink3); padding: 8px 10px 4px; }

.profile {
  margin-top: auto; position: relative; border-top: 1px solid var(--night-line);
  padding: 10px 0 12px;
}
.profile-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  background: transparent; border: 0; border-radius: var(--r-control); cursor: pointer; text-align: left;
}
.profile-btn:hover, .profile-btn[aria-expanded="true"] { background: var(--night-2); }
.avatar { border-radius: 50%; flex: none; background: var(--grey); object-fit: cover; }
.avatar.sm { width: 22px; height: 22px; }
.avatar.md { width: 32px; height: 32px; }
.profile-name { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.25; }
.profile-role { color: var(--night-ink3); font-size: 11.5px; line-height: 1.25; }
.profile-btn .ico { margin-left: auto; width: 16px; height: 16px; color: var(--night-ink3); }
.profile-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% - 4px);
  background: var(--surface); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--e1);
  padding: 6px; z-index: 30;
}
.profile-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.profile-menu .who div:last-child { color: var(--ink3); font-size: 12px; overflow-wrap: anywhere; }
.menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: transparent;
  border-radius: var(--r-control); cursor: pointer; font-size: 13px; text-align: left;
}
.menu-item:hover { background: var(--sunk); }
.menu-item .ico { width: 16px; height: 16px; color: var(--ink3); }

.main { height: 100vh; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
#view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.topbar {
  flex: none; min-height: var(--topbar-h); background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
}
.topbar h1 { margin: 0; font-size: 18px; font-weight: 600; white-space: nowrap; }
.topbar .sub { color: var(--ink3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.topbar .back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; }
.topbar .back .ico { width: 16px; height: 16px; }
.topbar-tabs { flex: none; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 20px; display: flex; gap: 4px; }
.topbar-tabs.flush { border-top: 0; }
.content { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.content.no-pad { padding: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.live { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 12.5px; white-space: nowrap; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.live.stale i { background: var(--ochre); }

/* ============================================================== CONTROLS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: var(--r-control); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover:not(:disabled) { background: var(--sunk); text-decoration: none; }
.btn .ico { width: 16px; height: 16px; }
.btn.primary { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--copper-hover); border-color: var(--copper-hover); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger:hover:not(:disabled) { background: var(--red-hover); border-color: var(--red-hover); }
.btn.danger-outline { color: var(--red); border-color: #E3A6A8; }
.btn.danger-outline:hover:not(:disabled) { background: var(--red-tint); }
.btn.on-dark { background: #fff; border-color: #fff; color: var(--ink); }
.btn.on-dark:hover:not(:disabled) { background: #F1EFEA; }
.btn.text { border-color: transparent; background: transparent; padding: 0 8px; }
.btn.text:hover:not(:disabled) { background: var(--sunk); }
.btn.link { border: 0; background: none; padding: 0; height: auto; color: var(--copper); font-weight: 500; }
.btn.link:hover { background: none; text-decoration: underline; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .spin { width: 14px; height: 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.field .help { font-size: 12px; color: var(--ink3); }
.field .error-text { font-size: 12px; color: var(--red); font-weight: 500; }
.input, .select, .textarea {
  height: 32px; width: 100%; padding: 0 10px; border-radius: var(--r-control);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; color: var(--ink);
}
.input.lg { height: 40px; font-size: 14px; }
.textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.select {
  appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D6168' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.input.invalid, .textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.input:disabled, .input[readonly], .select:disabled { background: var(--sunk); color: var(--ink3); }
.input-prefix { display: flex; align-items: center; gap: 6px; }
.input-prefix > span { color: var(--ink3); }

.search {
  position: relative; display: flex; align-items: center; min-width: 280px; flex: 0 1 420px;
}
.search .ico { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--ink3); pointer-events: none; }
.search .input { padding-left: 32px; padding-right: 34px; height: 34px; }
.search kbd {
  position: absolute; right: 8px; min-width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 4px;
  font: 500 11px var(--mono); color: var(--ink3); display: inline-flex; align-items: center; justify-content: center; background: var(--surface);
}

/* Filter chips (radius 14) and segmented controls. */
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: var(--r-chip);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 12.5px;
  cursor: pointer; white-space: nowrap; position: relative;
}
.chip:hover { background: var(--sunk); }
.chip.on { background: var(--night); border-color: var(--night); color: #fff; }
.chip .ico { width: 14px; height: 14px; }
.chip select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-control); overflow: hidden; background: var(--surface); flex: none; }
.seg button {
  height: 30px; padding: 0 12px; border: 0; border-left: 1px solid var(--line-strong); background: transparent;
  font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink);
}
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--sunk); }
.seg button.on { background: var(--night); color: #fff; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; }
.tab {
  height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 0; background: none;
  border-bottom: 2px solid transparent; color: var(--ink3); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--copper); }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.switch input { appearance: none; width: 32px; height: 18px; border-radius: 9px; background: var(--line-strong); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(14px); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--copper); margin: 0; }

/* ================================================================= CARD */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.card-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 48px;
}
.card-head .title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.card-head .sub { color: var(--ink3); font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-head .spacer { flex: 1; }
.card-body { padding: 16px; }
.card-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.card-foot .spacer { flex: 1; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); margin: 0 0 8px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis.five { grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr)); }
.kpi { padding: 14px 16px; }
.kpi .t-label { margin-bottom: 6px; }
.kpi .value { font-size: 24px; font-weight: 600; line-height: 1.15; white-space: nowrap; }
.kpi .value small { font-size: 15px; font-weight: 500; color: var(--ink3); margin-left: 2px; }
.kpi .value.md { font-size: 20px; }
.kpi .cmp { margin-top: 6px; color: var(--ink3); font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delta { font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.delta.up { color: var(--green); }
.delta.down { color: var(--red); }
.delta svg { width: 9px; height: 9px; }

.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 7px 12px; font-size: 13px; }
.kv > .k { color: var(--ink3); }
.kv > .v { min-width: 0; overflow-wrap: anywhere; }

/* ================================================================ BADGES */
/* Every state is a word AND a shape; the heavier the fill, the sooner a
   person must act (design p.2). */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px;
  border-radius: var(--r-badge); font-size: 10.5px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; line-height: 1; vertical-align: middle;
}
.badge svg { width: 10px; height: 10px; flex: none; }
.badge.lg { height: 24px; font-size: 12px; padding: 0 10px; }
.b-dashed  { border: 1px dashed var(--line-strong); color: var(--ink3); background: transparent; }
.b-ring    { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.b-arc     { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.b-blue    { background: var(--blue-tint); color: var(--blue); }
.b-green   { background: var(--green-tint); color: var(--green); }
.b-grey    { background: var(--grey-tint); color: var(--grey); }
.b-ochre   { background: var(--ochre-tint); color: var(--ochre); }
.b-redtint { background: var(--red-tint); color: var(--red); }
.b-copper  { background: var(--copper); color: #fff; }
.b-red     { background: var(--red); color: #fff; }
.b-sos { background: var(--red); color: #fff; height: 26px; padding: 0 12px; font-size: 13px; letter-spacing: .12em; }

.count-dot {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--grey); color: #fff;
}
.count-dot.red { background: var(--red); }
.count-sq {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px;
  border-radius: var(--r-control); font-size: 16px; font-weight: 600;
}
.count-sq.red { background: var(--red); color: #fff; }
.count-sq.ochre { background: var(--ochre-tint); color: var(--ochre); }
.count-sq.green { background: var(--green-tint); color: var(--green); }

/* ================================================================ TABLES */
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th {
  text-align: left; height: 32px; padding: 0 12px; background: var(--sunk); border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); white-space: nowrap;
}
table.t td { height: 36px; padding: 4px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t th.num, table.t td.num { text-align: right; }
table.t td.wrap { white-space: normal; }
table.t.compact th, table.t.compact td { padding-left: 9px; padding-right: 9px; }
table.t.compact th:first-child, table.t.compact td:first-child { padding-left: 14px; }
table.t.click tbody tr { cursor: pointer; }
table.t.click tbody tr:hover td { background: #FAF9F6; }
table.t tr.sel td, table.t.click tr.sel:hover td { background: var(--copper-tint); }
table.t tr.flag td, table.t.click tr.flag:hover td { background: var(--ochre-tint); }
table.t tr.act td, table.t.click tr.act:hover td { background: var(--red-tint); }
table.t tr.muted td { color: var(--ink3); }
table.t td .actions { display: flex; gap: 6px; justify-content: flex-end; }
.ref { font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.pagination { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 12.5px; }
.pagination .spacer { flex: 1; }

/* ============================================================ SKELETON */
.skel { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #EFEDE8 25%, #E6E3DC 37%, #EFEDE8 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skel.block { height: 20px; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ================================================================ STATES */
.state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; gap: 8px; color: var(--ink3); }
.state .ico { width: 28px; height: 28px; color: var(--ink); margin-bottom: 4px; }
.state .ico.red { color: var(--red); }
.state h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.state p { margin: 0; max-width: 460px; font-size: 13px; }
.state .btn { margin-top: 8px; }
.state.all-clear { background: var(--green-tint); border-radius: var(--r-card); }
.state.all-clear .ok { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.state.all-clear .ok svg { width: 22px; height: 22px; }
.state.all-clear h3 { font-size: 16px; }
.state .errref { font-family: var(--mono); font-size: 12px; color: var(--ink3); }

/* =============================================================== BANNERS */
.alarm {
  display: flex; align-items: center; gap: 14px; background: var(--red); color: #fff; border-radius: var(--r-card);
  padding: 12px 16px;
}
.alarm .ico { width: 22px; height: 22px; flex: none; }
.alarm .title { font-size: 14.5px; font-weight: 600; }
.alarm .desc { font-size: 13px; opacity: .92; }
.alarm .spacer { flex: 1; }
.notice { display: flex; align-items: center; gap: 12px; border-radius: var(--r-card); padding: 10px 14px; font-size: 13px; border: 1px solid; }
.notice .spacer { flex: 1; }
.notice.red { background: var(--red-tint); border-color: #F0C3C4; color: var(--red); }
.notice.ochre { background: var(--ochre-tint); border-color: #EFD98A; color: var(--ochre); }
.notice.blue { background: var(--blue-tint); border-color: #C3D3EC; color: var(--blue); }
.notice b { font-weight: 600; }
.notice .ico { width: 18px; height: 18px; flex: none; }

/* ========================================================= PANEL & MODAL */
.scrim { position: fixed; inset: 0; background: rgba(26,28,31,0); z-index: 40; display: none; transition: background-color .18s; }
.scrim.on { display: block; background: rgba(26,28,31,.28); }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 94vw; background: var(--surface);
  box-shadow: var(--e1); z-index: 41; display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .2s ease;
}
.panel.on { transform: translateX(0); }
.panel-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); margin-bottom: 2px; }
.panel-head .ref-lg { font-family: var(--mono); font-size: 17px; font-weight: 600; }
.panel-head .title-lg { font-size: 17px; font-weight: 600; }
.panel-head .sub { color: var(--ink3); font-size: 12.5px; margin-top: 2px; }
.icon-btn { width: 30px; height: 30px; border-radius: var(--r-control); border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink3); flex: none; }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.icon-btn .ico { width: 18px; height: 18px; }
.panel-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 18px; }
.panel-foot { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.panel-foot .spacer { flex: 1; }

.modal-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(26,28,31,.45); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-scrim.on { display: flex; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--e2); width: 460px; max-width: 100%; padding: 20px; display: flex; flex-direction: column; gap: 12px; animation: pop .15s ease; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.modal .body { font-size: 13px; line-height: 1.55; color: var(--ink); }
.modal .body b { font-weight: 600; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.modal .foot .spacer { flex: 1; }
.modal .lock { width: 40px; height: 40px; border-radius: 50%; background: var(--sunk); display: flex; align-items: center; justify-content: center; }
.modal .lock .ico { width: 20px; height: 20px; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 12px; min-width: 320px; max-width: 460px; padding: 11px 14px; border-radius: 8px;
  background: var(--night); color: #fff; font-size: 13.5px; box-shadow: var(--e1); animation: toastIn .18s ease;
}
.toast .ico { width: 16px; height: 16px; color: #6FCF97; flex: none; }
.toast .msg { flex: 1; color: #fff; }
.toast .act { background: none; border: 0; color: #F2A477; font-weight: 600; cursor: pointer; padding: 0; font-size: 13.5px; }
.toast.error { background: var(--red); }
.toast.error .act { color: #fff; text-decoration: underline; }
.toast .x { background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; padding: 0; display: flex; }
.toast .x .ico { color: inherit; width: 14px; height: 14px; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================== STEPPER */
.stepper-v { display: flex; flex-direction: column; gap: 10px; }
.step-dot {
  width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600; flex: none; border: 1.5px solid var(--line-strong); color: var(--ink3); background: var(--surface);
}
.step-dot.verified { background: var(--green); border-color: var(--green); color: #fff; }
.step-dot.submitted { background: var(--blue); border-color: var(--blue); color: #fff; }
.step-dot.rejected { background: var(--red); border-color: var(--red); color: #fff; }
.step-dot.current { background: var(--copper); border-color: var(--copper); color: #fff; }
.stepper-h { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stepper-h .st { border-top: 3px solid var(--line); padding-top: 12px; cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.stepper-h .st.verified { border-top-color: var(--green); }
.stepper-h .st.submitted { border-top-color: var(--blue); }
.stepper-h .st.rejected { border-top-color: var(--red); }
.stepper-h .st.current { border-top-color: var(--copper); }
.stepper-h .st .top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.progress-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.progress-segs i { height: 4px; border-radius: 2px; background: var(--line); display: block; }
.progress-segs i.verified { background: var(--green); }
.progress-segs i.submitted { background: var(--blue); }
.progress-segs i.rejected { background: var(--red); }
.bar { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--night); border-radius: 3px; }
.bar.green > i { background: var(--green); }
.bar.blue > i { background: var(--blue); }

/* =================================================================== MAP */
.map-card { display: flex; flex-direction: column; min-height: 0; }
.map-wrap { position: relative; flex: 1; min-height: 420px; background: #E9E5DC; border-radius: 0 0 var(--r-card) var(--r-card); overflow: hidden; }
.map-wrap .leaflet-container { position: absolute; inset: 0; background: #E9E5DC; font-family: var(--sans); }
.map-wrap .leaflet-tile-pane { filter: sepia(.28) saturate(.75) brightness(.99) contrast(.96); }
.map-legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 500; background: var(--surface); border-radius: var(--r-control);
  box-shadow: 0 1px 3px rgba(0,0,0,.12); padding: 6px 10px; display: flex; gap: 14px; font-size: 12px; color: var(--ink3);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { display: inline-block; width: 14px; height: 9px; border-radius: 2px; }
.map-stamp { position: absolute; right: 12px; bottom: 12px; z-index: 500; font-size: 12px; color: var(--ink3); background: rgba(244,243,239,.85); padding: 3px 8px; border-radius: 4px; }
.map-fail { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; color: var(--ink3); background: var(--sunk); z-index: 600; }
.bus-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 5px; white-space: nowrap;
  font-size: 12px; font-weight: 600; background: var(--copper); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); cursor: pointer;
  transform: translate(-50%, -115%); position: absolute; left: 0; top: 0;
}
.bus-pill::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--copper); }
.bus-pill.stand { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.bus-pill.stand::after { border-top-color: var(--ink); }
.bus-pill.stale { background: var(--ochre-tint); color: var(--ochre); border: 1.5px dashed var(--ochre); box-shadow: none; }
.bus-pill.stale::after { border-top-color: var(--ochre); }
.bus-pill.sel { outline: 2px solid var(--copper); outline-offset: 2px; }
.bus-pill .late { font-weight: 500; opacity: .9; }
.zone-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.station-label { font-size: 12px; color: var(--ink); white-space: nowrap; text-shadow: 0 0 3px #F4F1EA, 0 0 3px #F4F1EA; }
.leaflet-tooltip.plain { background: transparent; border: 0; box-shadow: none; padding: 0; }
.leaflet-tooltip.plain::before { display: none; }

/* =================================================================== SIGN IN */
#signin { min-height: 100vh; background: var(--night); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 24px; }
#signin .road { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.signin-card { position: relative; width: 380px; max-width: 100%; background: var(--surface); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.signin-card .brand { padding: 0; color: var(--ink); }
.signin-card .brand-sub { color: var(--ink3); font-size: 12.5px; }
.signin-card h2 { margin: 4px 0 0; font-size: 20px; font-weight: 600; }
.signin-card .divider { height: 1px; background: var(--line); }
.signin-card .foot { text-align: center; color: var(--ink3); font-size: 12.5px; }
.signin-foot { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--night-ink3); font-size: 12px; }
.otp { display: flex; gap: 8px; }
.otp input { width: 44px; height: 52px; text-align: center; font-size: 20px; border-radius: var(--r-control); border: 1px solid var(--line-strong); padding: 0; }
.otp input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.otp.bad input { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.locked-ring { width: 48px; height: 48px; border-radius: 50%; background: var(--red-tint); color: var(--red); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.locked-ring .ico { width: 20px; height: 20px; }

/* ============================================================== SCREENS */
/* Today */
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 566px; gap: 12px; align-items: stretch; }
.late-chip { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 5px; border-radius: 4px; background: var(--ochre-tint); color: var(--ochre); font-size: 11px; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.late-chip svg { width: 8px; height: 8px; }
.stop-list { display: flex; flex-direction: column; }
.stop { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ink3); }
.stop i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); }
.stop.passed i { background: var(--grey); border-color: var(--grey); }
.stop.next { color: var(--ink); font-weight: 600; }
.stop.next i { background: var(--copper); border-color: var(--copper); }
.stop.ahead { color: var(--ink); }

/* Exceptions */
.exc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.exc { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.exc.act { border-color: #EBB9BB; }
.exc.today { border-color: #EAD48E; }
.exc-head { display: flex; align-items: center; gap: 12px; }
.exc-head .title { font-size: 15px; font-weight: 600; flex: 1; }
.exc .desc { color: var(--ink); font-size: 13px; }
.exc-rows { border-top: 1px solid var(--line); }
.exc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.exc-row:last-child { border-bottom: 0; }
.exc-row .k { font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.exc-row .d { color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exc-row .a { display: flex; gap: 6px; }

/* Booking legs */
.leg { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.leg.problem { border-color: #E6A9AB; }
.leg-top { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.leg-top .spacer { flex: 1; }
.leg .meta { color: var(--ink3); font-size: 12.5px; }
.leg .tkt { display: flex; justify-content: space-between; font-size: 12.5px; }
.history { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.history .h { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.history .t { font-family: var(--mono); color: var(--ink3); font-size: 12px; }
.history .src { color: var(--ink3); }

/* Detail card under a table (Buses, Settlement) */
.detail-cols { display: grid; gap: 0; }
.detail-cols > div { padding: 16px; min-width: 0; }
.detail-cols > div + div { border-left: 1px solid var(--line); }
.list-rows .lr { display: grid; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.list-rows .lr:last-child { border-bottom: 0; }

/* Timetable grid */
.tt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 12px; align-items: start; }
table.tt { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
table.tt th { text-align: left; height: 32px; padding: 0 12px; background: var(--sunk); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); border-bottom: 1px solid var(--line); }
table.tt td { height: 34px; border-bottom: 1px solid var(--line); padding: 0; vertical-align: middle; }
table.tt td.time { padding: 0 12px; font-weight: 600; background: var(--sunk); border-right: 1px solid var(--line); }
table.tt td.cell { border-left: 1px solid var(--line); }
table.tt td.cell.empty { background: #F1EFEA; }
.ttc { display: grid; grid-template-columns: 44px 70px minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; height: 34px; padding: 0 12px; cursor: pointer; width: 100%; border: 0; background: transparent; text-align: left; font-size: 13px; }
.ttc:hover { background: #FAF9F6; }
.ttc .code { font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.ttc .seats { text-align: right; color: var(--ink3); }
.ttc .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.cell.conflict .ttc { background: var(--ochre-tint); }
td.cell.nodriver .ttc { background: var(--red-tint); }
td.cell.cancelled .ttc { color: var(--ink3); }
td.cell.sel .ttc { background: var(--copper-tint); box-shadow: inset 0 0 0 1.5px var(--copper); }

/* Queries kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; min-height: 100%; }
.kcol { background: var(--sunk); border-radius: var(--r-card); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 360px; }
.kcol-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 2px 2px 4px; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; }
.qcard:hover { border-color: var(--line-strong); }
.qcard.late { border-color: #E6A9AB; }
.qcard .top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.qcard .top .ref { font-size: 12.5px; }
.qcard .sla { margin-left: auto; font-size: 12px; text-align: right; line-height: 1.25; }
.qcard .sla.over { color: var(--red); font-weight: 500; }
.qcard .sla.soon { color: var(--ochre); font-weight: 500; }
.qcard .sla.ok { color: var(--ink3); }
.qcard .cat { font-weight: 600; font-size: 13.5px; }
.qcard .line2 { font-size: 13px; }
.qcard .line3 { color: var(--ink3); font-size: 12.5px; }
.qcard .foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--ink3); }
.qcard .foot .spacer { flex: 1; }
.dash-av { width: 22px; height: 22px; border-radius: 50%; background: var(--sunk); border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--ink3); font-size: 12px; }
.sos-banner { display: flex; align-items: center; gap: 16px; background: var(--red); color: #fff; border-radius: var(--r-card); padding: 12px 16px; }
.sos-banner .sos-box { background: #fff; color: var(--red); font-weight: 700; letter-spacing: .14em; padding: 6px 14px; border-radius: 5px; font-size: 13px; }
.sos-banner .t { font-size: 15px; font-weight: 600; }
.sos-banner .d { font-size: 13px; opacity: .92; }
.sos-banner .spacer { flex: 1; }
.sos-banner .clock { text-align: right; }
.sos-banner .clock .l { font-size: 12px; opacity: .9; }
.sos-banner .clock .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* SOS incident page */
.sos-top { flex: none; background: var(--red); color: #fff; display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.sos-top .sos-box { background: #fff; color: var(--red); font-weight: 700; letter-spacing: .14em; padding: 7px 16px; border-radius: 5px; font-size: 14px; }
.sos-top .t { font-size: 20px; font-weight: 600; line-height: 1.2; }
.sos-top .d { font-size: 13px; opacity: .92; }
.sos-top .spacer { flex: 1; }
.sos-top .clk { text-align: left; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.3); }
.sos-top .clk:first-of-type { border-left: 0; }
.sos-top .clk .l { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.sos-top .clk .v { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sos-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; height: 100%; }
.todo { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.todo.focus { background: var(--copper-tint); }
.todo .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ink3); background: var(--surface); }
.todo.focus .n { background: var(--copper); border-color: var(--copper); color: #fff; }
.todo.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.todo .n svg { width: 12px; height: 12px; }
.todo .t { font-weight: 600; }
.todo .d { color: var(--ink3); font-size: 12.5px; }
.emerg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.emerg a { background: var(--red); color: #fff; border-radius: var(--r-control); padding: 8px 6px; text-align: center; text-decoration: none; line-height: 1.2; }
.emerg a:hover { background: var(--red-hover); }
.emerg a b { display: block; font-size: 19px; font-weight: 600; }
.emerg a span { font-size: 12px; }
.log { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.log .e { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.log .e .t { font-family: var(--mono); font-size: 12.5px; color: var(--ink3); }

/* Zones */
.zone-row { display: grid; grid-template-columns: 24px 170px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 0 16px; height: 44px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.zone-row:hover { background: #FAF9F6; }
.zone-row.sel { background: var(--copper-tint); }
.zone-row .n { color: var(--ink3); text-align: right; }
.zone-row .name { font-weight: 600; }
.zone-row .al { color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-code { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.zone-code.c0 { background: var(--copper-tint); color: var(--copper); }
.zone-code.c1 { background: var(--blue-tint); color: var(--blue); }
.zone-code.c2 { background: var(--sunk); color: var(--grey); }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: 6px 8px; min-height: 40px; background: var(--surface); }
.tag-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px; border-radius: var(--r-chip); border: 1px solid var(--line-strong); font-size: 12.5px; }
.tag button { border: 0; background: none; cursor: pointer; color: var(--ink3); padding: 0 2px; display: inline-flex; }
.tag button:hover { color: var(--red); }
.tag button .ico { width: 12px; height: 12px; }
.tag-input input { border: 0; outline: none; flex: 1; min-width: 160px; font-size: 13px; height: 26px; }

/* Fares */
.fare-change { justify-self: end; }
.money-input { width: 96px; text-align: right; }
.money-input.changed { border-color: var(--copper); }

/* Settings */
.tpl-row { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13.5px; border-left: 3px solid transparent; }
.tpl-row:hover { background: #FAF9F6; }
.tpl-row.sel { background: var(--copper-tint); border-left-color: var(--copper); }
.tpl-row .spacer { flex: 1; }
.var-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-chip); border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--mono); font-size: 12.5px; cursor: pointer; color: var(--ink3); }
.var-chip:hover { background: var(--sunk); color: var(--ink); }
.seg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--ground); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.seg-stats .v { font-size: 20px; font-weight: 600; margin: 4px 0 6px; }
.seg-stats .v small { font-size: 13px; color: var(--ink3); font-weight: 400; }
.phone { width: 270px; max-width: 100%; margin: 0 auto; border: 1px solid var(--line-strong); border-radius: 22px; padding: 18px 14px 14px; background: var(--surface); }
.phone .sender { text-align: center; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.phone .bubble { background: var(--sunk); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.phone .meta { font-size: 12px; color: var(--ink3); margin-top: 8px; }

/* Driver onboarding */
.bottom-bar { flex: none; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 16px; }
.bottom-bar .spacer { flex: 1; }
.upload { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 16px; text-align: center; color: var(--ink3); font-size: 12.5px; }
.upload b { color: var(--ink); font-weight: 600; }
.file-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.file-card .ft { width: 40px; height: 40px; border-radius: 6px; background: var(--sunk); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--ink3); flex: none; }
.photo-ph { width: 74px; height: 92px; border-radius: 6px; background: var(--sunk); color: var(--ink3); display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.radio-row { display: flex; gap: 20px; align-items: center; }

@media (max-width: 1280px) {
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tt-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .sos-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
