/* The Owner Dashboard inside Admin (index.html#admin; admin-dash.js and the
 * admin-*.js tabs). Colours are the design tokens only, so light and dark
 * follow the phone with no second set; every target is at least 48px; text
 * is 12px and up; nothing moves for anyone who asks for less motion. Built
 * wide for a laptop or tablet (two and three columns from 1024px), one
 * column on a phone, where tables turn into stacked rows.
 * Every class and id here starts with adm-, so no other view is touched. */

/* Elements hidden by script stay hidden whatever their own display is. */
.adm-root[hidden], .adm-panel[hidden], #view-admin [hidden], #adm-sheet [hidden], #adm-confirm [hidden], #adm-reauth [hidden] { display: none !important; }

/* ---------- the tab bar ---------- */
.adm-root { margin-bottom: 1.5rem; }
.adm-tabs { display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0.375rem; border-radius: var(--radius-card); background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.adm-tab { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--tap); padding: 0.5rem 0.875rem; border-radius: var(--radius-control); font-size: 0.9375rem; font-weight: 500; line-height: 1.2; color: rgb(var(--ink-soft)); transition: background-color 150ms ease, color 150ms ease; }
.adm-tab svg { width: 20px; height: 20px; flex: none; }
/* With large text on a narrow phone a tab never grows past the row: its words wrap. */
.adm-tab { max-width: 100%; flex-wrap: wrap; text-align: left; }
.adm-tab > span:not(.adm-badge) { min-width: 0; overflow-wrap: anywhere; }
.adm-tab:hover { background: rgb(var(--surface-sunken)); color: rgb(var(--ink)); }
/* The chosen tab: a filled shape, a bar under it and bold words, not colour alone. */
.adm-tab[aria-selected="true"] { background: rgb(var(--accent-soft)); color: rgb(var(--accent-strong)); font-weight: 700; box-shadow: inset 0 -3px 0 rgb(var(--accent)); }
.adm-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem; border-radius: 999px; background: rgb(var(--bad)); color: rgb(var(--surface)); font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- a tab's page ---------- */
/* A button never grows past its column; with very large text its words wrap. */
#view-admin .gm-btn, .adm-sheet-body .gm-btn { max-width: 100%; overflow-wrap: anywhere; }
.adm-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-content: start; }
.adm-panel:focus { outline: none; }
.adm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; }
.adm-head-text { min-width: 0; flex: 1 1 14rem; }
.adm-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
/* Padding in px: with the phone's text turned up, the room goes to the words. */
.adm-card { padding: 16px; min-width: 0; }
.adm-card > * + * { margin-top: 0.75rem; }
.adm-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; }
.adm-h3 { font-size: 1rem; font-weight: 650; color: rgb(var(--ink)); letter-spacing: -0.01em; }
.adm-h4 { font-size: 0.9375rem; font-weight: 650; color: rgb(var(--ink)); margin-top: 1rem; margin-bottom: 0.5rem; }
.adm-lead { font-size: 0.9375rem; line-height: 1.5; color: rgb(var(--ink-soft)); overflow-wrap: anywhere; }
.adm-muted { color: rgb(var(--ink-faint)); font-weight: 400; }
.adm-mono { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 0.875rem; }
.adm-wrap { overflow-wrap: anywhere; }
.adm-sub { display: block; font-size: 0.8125rem; font-weight: 400; color: rgb(var(--ink-faint)); margin-top: 1px; overflow-wrap: anywhere; }
.adm-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.375rem; font-size: 0.9375rem; color: rgb(var(--ink-soft)); }
.adm-big .gm-stat-value { margin-top: 0; }
.adm-na { font-size: 0.9375rem; color: rgb(var(--ink-faint)); }
.adm-empty { padding: 1.25rem 0.5rem; }
.adm-skel { display: grid; gap: 0.5rem; }
.adm-skel span { display: block; height: 1.25rem; }
.adm-skel span:first-child { height: 2rem; width: 60%; }
.adm-count { font-size: 0.875rem; color: rgb(var(--ink-soft)); min-height: 1.25rem; }
.adm-more { width: 100%; }

/* Tiles: two side by side on a phone (one with large text), five on a wide screen. */
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5em), 1fr)); gap: 0.75rem; }
.adm-tile { min-width: 0; }
.adm-tile-sub { font-size: 0.8125rem; color: rgb(var(--ink-faint)); margin-top: 0.25rem; overflow-wrap: anywhere; }

/* Three choices side by side (Day, Week, Month). */
.adm-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgb(var(--surface-sunken)); border: 0; min-width: min(100%, 15rem); }
.adm-seg .gm-pick { justify-content: center; min-height: var(--tap); padding: 0.25rem 0.5rem; border-color: transparent; background: transparent; }
.adm-seg .gm-pick-text { flex: none; text-align: center; }
.adm-seg .gm-pick:has(.gm-pick-input:checked), .adm-seg .gm-pick.is-checked { background: rgb(var(--surface)); border-color: rgb(var(--accent)); box-shadow: 0 1px 3px rgb(var(--shadow) / 0.12); }

/* The sign-ups chart: bars coloured by the tokens, labels in HTML (never under 12px). */
.adm-chart svg { display: block; width: 100%; height: 128px; overflow: visible; }
.adm-chart-bar { fill: rgb(var(--accent)); }
.adm-chart-base { stroke: rgb(var(--line-strong)); stroke-width: 1; vector-effect: non-scaling-stroke; }
.adm-chart-max { font-size: 0.8125rem; color: rgb(var(--ink-faint)); font-variant-numeric: tabular-nums; }
.adm-chart-axis { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.375rem; font-size: 0.8125rem; color: rgb(var(--ink-faint)); }
.adm-details > summary { display: flex; align-items: center; min-height: var(--tap); padding: 0 0.25rem; border-radius: var(--radius-control); font-weight: 600; font-size: 0.9375rem; color: rgb(var(--accent)); cursor: pointer; }
.adm-details > summary:hover { background: rgb(var(--accent-softest)); }
.adm-details[open] > summary { margin-bottom: 0.5rem; }

/* Bars of a share (by plan, status, heard from). */
.adm-bars { display: grid; gap: 0.625rem; }
.adm-bars li { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(3rem, 1fr) auto; align-items: center; gap: 0.625rem; font-size: 0.9375rem; }
.adm-bars-label { color: rgb(var(--ink)); overflow-wrap: anywhere; }
.adm-bars-track { display: block; height: 0.625rem; border-radius: 999px; background: rgb(var(--surface-sunken)); overflow: hidden; }
.adm-bars-fill { display: block; height: 100%; border-radius: 999px; background: rgb(var(--accent)); }
.adm-bars-value { font-weight: 700; font-variant-numeric: tabular-nums; color: rgb(var(--ink)); text-align: right; }
@container (max-width: 16em) { .adm-bars li { grid-template-columns: minmax(0, 1fr) auto; } .adm-bars-track { grid-column: 1 / -1; grid-row: 2; } }
.adm-card { container-type: inline-size; }

/* A meter (gifts this month, AI checks, database use). */
.adm-meter { height: 0.75rem; border-radius: 999px; background: rgb(var(--surface-sunken)); overflow: hidden; box-shadow: inset 0 0 0 1px rgb(var(--line)); }
.adm-meter > span { display: block; height: 100%; border-radius: 999px; background: rgb(var(--accent)); }
.adm-meter.is-over > span { background: rgb(var(--bad)); }

/* Key and value rows. */
.adm-kv { display: grid; gap: 0.25rem; }
.adm-kv li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.375rem 0; border-bottom: 1px solid rgb(var(--line)); font-size: 0.9375rem; color: rgb(var(--ink-soft)); }
.adm-kv li:last-child { border-bottom: 0; }
.adm-kv strong { color: rgb(var(--ink)); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-kv-meter li .adm-meter { flex: 1 1 100%; }

/* Lists with an icon and words. */
.adm-ticks { display: grid; gap: 0.625rem; }
.adm-ticks li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.9375rem; line-height: 1.45; color: rgb(var(--ink)); }
.adm-ticks svg { width: 20px; height: 20px; flex: none; margin-top: 0.1em; color: rgb(var(--accent)); }
.adm-legend { display: grid; gap: 0.75rem; }
.adm-legend > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0.75rem; align-items: center; }
.adm-legend dd { font-size: 0.9375rem; color: rgb(var(--ink-soft)); }
@container (max-width: 22em) { .adm-legend > div { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; } }

/* ---------- status chips: an icon and a word ---------- */
.adm-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.375rem; }
.adm-st { --c: var(--good); display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2rem; padding: 0.125rem 0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.25; color: rgb(var(--ink)); background: rgb(var(--c) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--c) / 0.5); }
.adm-st svg { width: 16px; height: 16px; flex: none; color: rgb(var(--c)); }
.adm-st-watch { --c: var(--accent); }
.adm-st-warned, .adm-st-suspended { --c: var(--warn); }
.adm-st-locked, .adm-st-removed { --c: var(--bad); }
.adm-new { min-height: 1.75rem; flex: none; }

/* ---------- tables: columns on a wide screen, stacked rows on a phone ---------- */
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.adm-table caption { text-align: left; }
.adm-table th, .adm-table td { padding: 0.625rem 0.5rem; text-align: left; vertical-align: middle; border-bottom: 1px solid rgb(var(--line)); color: rgb(var(--ink)); overflow-wrap: anywhere; }
.adm-table thead th { font-size: 0.8125rem; font-weight: 600; color: rgb(var(--ink-faint)); }
.adm-table tbody th { font-weight: 600; }
.adm-table .adm-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-table-tight th, .adm-table-tight td { padding: 0.375rem 0.5rem; }
@media (max-width: 1023px) {
  .adm-stack, .adm-stack tbody, .adm-stack tr, .adm-stack th, .adm-stack td { display: block; }
  .adm-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .adm-stack tr { padding: 0.5rem 0; border-bottom: 1px solid rgb(var(--line)); }
  /* 6px at the sides: a focused link or button keeps its whole ring inside
     the table's scroll box. */
  .adm-stack th, .adm-stack td { border: 0; padding: 0.25rem 6px; }
  .adm-stack .adm-num { text-align: left; white-space: normal; }
  .adm-stack [data-label]::before { content: attr(data-label) ": "; font-weight: 500; color: rgb(var(--ink-faint)); }
  .adm-stack th[data-label="Email"]::before, .adm-stack th[data-label="Code"]::before, .adm-stack th[data-label="Month"]::before, .adm-stack th[data-label="Week of"]::before { content: none; }
  .adm-stack .adm-cell-act { padding-top: 0.5rem; }
}
.adm-cell-act { text-align: right; }
.adm-btn-row { padding: 0.375rem 0.875rem; }
/* A button that reads as a link: the driver's email in a list. */
.adm-link { display: inline-flex; align-items: center; min-height: var(--tap); max-width: 100%; padding: 0.25rem 0; border-radius: 6px; color: rgb(var(--accent)); font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.adm-link:hover { color: rgb(var(--accent-strong)); }

/* ---------- Drivers: search and saved lists ---------- */
.adm-search-box { position: relative; }
.adm-search-icon { position: absolute; left: 0.75rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: rgb(var(--ink-faint)); pointer-events: none; }
.adm-search-box .gm-input { padding-left: 2.75rem; }
.adm-lists { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.adm-list-btn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0.375rem 1rem; border-radius: 999px; border: 1px solid rgb(var(--control-border)); background: rgb(var(--surface)); color: rgb(var(--ink)); font-size: 0.9375rem; font-weight: 500; text-align: left; }
.adm-list-btn:hover { background: rgb(var(--surface-sunken)); }
.adm-list-btn[aria-pressed="true"] { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: rgb(var(--accent-ink)); font-weight: 700; }
.adm-number { display: grid; gap: 0.75rem; }
.adm-number .gm-btn { justify-self: start; }

/* ---------- a driver's page ---------- */
.adm-driver-top { margin-bottom: -0.75rem; }
.adm-back { padding-left: 0.5rem; padding-right: 0.75rem; }
.adm-driver-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.adm-driver-who { min-width: 0; flex: 1 1 16rem; }
.adm-driver-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: rgb(var(--ink)); overflow-wrap: anywhere; }
.adm-driver-title:focus { outline: none; }
.adm-driver-title:focus-visible { outline: 3px solid rgb(var(--focus)); outline-offset: 2px; border-radius: 6px; }
.adm-driver-no { margin-top: 0.25rem; font-size: 0.9375rem; color: rgb(var(--ink-soft)); }
.adm-driver-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.adm-driver-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; min-width: 0; }
#adm-driver-state:empty { display: none; }
.adm-retry { display: grid; gap: 0.75rem; justify-items: start; margin-top: 0.75rem; }
#adm-driver-state { display: grid; gap: 0.5rem; }
.adm-facts { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 0.5rem 1rem; font-size: 0.9375rem; align-items: baseline; }
.adm-facts dt { color: rgb(var(--ink-faint)); font-weight: 500; }
.adm-facts dd { color: rgb(var(--ink)); font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
@container (max-width: 22em) { .adm-facts { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; } .adm-facts dd { margin-bottom: 0.5rem; } }
.adm-copy { display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem; min-height: var(--tap); min-width: var(--tap); padding: 0 0.5rem; margin-left: 0.25rem; border-radius: var(--radius-control); color: rgb(var(--accent)); font-weight: 600; font-size: 0.875rem; vertical-align: middle; }
.adm-copy:hover { background: rgb(var(--accent-softest)); }
.adm-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12em), 1fr)); gap: 0.5rem; }
.adm-actions .gm-btn { justify-content: flex-start; text-align: left; }
/* A row list inside a card is part of the card: lines between rows, no
   second border or corners (no card inside a card). */
.adm-card .gm-list { border-width: 1px 0 0; border-radius: 0; background: transparent; margin-left: -16px; margin-right: -16px; }
.adm-card .gm-list .gm-row { padding-left: 16px; padding-right: 16px; column-gap: min(0.875rem, 16px); }
/* A narrow card (a phone, large text, or a third of a wide screen): the
   words keep the line beside the icon, and a "New" chip, a chevron or a
   button goes under them, so the words never shrink to a letter a line. */
@container (max-width: 20em) {
  .adm-card .gm-row { flex-wrap: wrap; row-gap: 0.375rem; }
  .adm-card .gm-row > .gm-row-text { flex: 1 1 calc(100% - 22px - min(0.875rem, 16px) - 2px); }
  .adm-card .gm-row > .gm-row-text:first-child { flex-basis: calc(100% - 2px); }
}
.adm-list .gm-row { min-height: 56px; }
.adm-note-text { white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 500; }
.adm-note-form { display: grid; gap: 0.75rem; }
.adm-note-form .gm-btn { justify-self: start; }
.adm-review { align-items: flex-start; flex-wrap: wrap; }
.adm-review .gm-row-text small { margin-top: 0.125rem; }

/* build:musthaves ---------- AI answers reported (Safety, review list) ---------- */
.adm-ai-report { align-items: flex-start; flex-wrap: wrap; }
.adm-ai-report > .gm-row-text { flex: 1 1 100%; }
.adm-ai-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.625rem; }
.adm-st-airep-wrong { --c: var(--warn); }
.adm-st-airep-unsafe { --c: var(--bad); }
.adm-st-airep-other { --c: var(--accent); }
.adm-ai-note { margin-top: 0.375rem; font-size: 0.9375rem; font-weight: 400; color: rgb(var(--ink)); overflow-wrap: anywhere; }
.adm-ai-answer { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; margin: 0.5rem 0 0; padding: 0.25rem 0 0.25rem 0.75rem; border-left: 3px solid rgb(var(--line-strong)); font-size: 0.9375rem; font-weight: 400; line-height: 1.5; color: rgb(var(--ink-soft)); white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-ai-answer.is-open { display: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: unset; }
.adm-ai-more { font-size: 0.9375rem; }
.adm-ai-more[hidden] { display: none; }
.adm-ai-facts { display: block; margin-top: 0; }
.adm-ai-report .adm-btn-row { margin-top: 0.25rem; }
/* end build:musthaves */

/* The lock: one button, a switch. The shackle snaps shut once the server
   has locked the account; with reduced motion it simply changes. */
.adm-lock-box { display: grid; grid-template-columns: minmax(0, auto); gap: 0.25rem; justify-items: start; min-width: 0; max-width: 100%; }
.adm-lock { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.625rem; min-height: var(--tap); max-width: 100%; text-align: left; padding: 0.5rem 1rem 0.5rem 0.75rem; border-radius: var(--radius-control); border: 2px solid rgb(var(--line)); background: rgb(var(--surface)); color: rgb(var(--good)); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.adm-lock:hover { background: rgb(var(--surface-sunken)); }
.adm-lock:disabled { opacity: 0.55; cursor: not-allowed; }
.adm-lock[aria-checked="true"] { color: rgb(var(--bad)); border-color: rgb(var(--bad)); background: rgb(var(--bad) / 0.08); }
.adm-lock-icon { flex: none; }
.adm-lock-shackle { transform-box: view-box; transform-origin: 16.5px 11px; transform: translateY(-2.5px) rotate(-28deg); transition: transform 380ms cubic-bezier(.34, 1.56, .64, 1); }
.adm-lock[aria-checked="true"] .adm-lock-shackle { transform: none; }
.adm-lock-name, .adm-lock-state { min-width: 0; overflow-wrap: anywhere; }
.adm-lock-state { padding-left: 0.625rem; border-left: 1px solid currentColor; font-weight: 700; }
.adm-lock.is-snapping .adm-lock-icon { animation: adm-lock-pop 320ms ease 380ms both; }
@keyframes adm-lock-pop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ---------- sheets ---------- */
.adm-sheet-body > * + * { margin-top: 1rem; }
/* The sheets' buttons share the line while their words fit; with large text
   on a narrow phone they stack, each one whole and fully tappable. */
#adm-sheet .gm-sheet-foot, #adm-confirm .gm-sheet-foot, #adm-reauth .gm-sheet-foot { flex-wrap: wrap; }
#adm-sheet .gm-sheet-foot .gm-btn, #adm-confirm .gm-sheet-foot .gm-btn, #adm-reauth .gm-sheet-foot .gm-btn { flex: 1 1 8em; min-width: 0; max-width: 100%; height: auto; overflow-wrap: anywhere; text-align: center; }
.adm-radios { display: grid; gap: 0.5rem; }
.adm-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.5em), 1fr)); gap: 0.5rem; }
.adm-quick .gm-btn { padding: 0 0.25rem; }
.adm-ways { display: grid; gap: 0.75rem; }
.adm-ways .gm-btn { width: 100%; flex-wrap: wrap; text-align: center; }
.adm-row-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.adm-thread { display: grid; gap: 0.5rem; }
.adm-msg { padding: 0.625rem 0.875rem; border-radius: var(--radius-control); max-width: 92%; }
.adm-msg-driver { background: rgb(var(--surface-sunken)); justify-self: start; }
.adm-msg-owner { background: rgb(var(--accent-softest)); box-shadow: inset 0 0 0 1px rgb(var(--accent-soft)); justify-self: end; }
.adm-msg-who { font-size: 0.8125rem; font-weight: 600; color: rgb(var(--ink-faint)); }
.adm-msg-text { font-size: 0.9375rem; color: rgb(var(--ink)); white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 0.125rem; }
.adm-code-big { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 1.75rem; font-weight: 600; letter-spacing: 0.06em; color: rgb(var(--ink)); overflow-wrap: anywhere; }
.adm-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 0.9375rem; color: rgb(var(--ink-soft)); }
.adm-inline-field { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.adm-inline-field .gm-label { margin: 0; }
.adm-inline-field { max-width: 100%; }
.adm-inline-field .gm-select { width: auto; flex: 1 1 9rem; min-width: min(100%, 9rem); max-width: 100%; }
.adm-inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; }
.adm-inline-form > div { flex: 1 1 12rem; }
.adm-samples { display: grid; gap: 0.5rem; }
.adm-samples li { font-size: 0.9375rem; color: rgb(var(--ink)); overflow-wrap: anywhere; }
.adm-samples small { display: block; font-size: 0.8125rem; color: rgb(var(--ink-faint)); }

/* ---------- wide screens ---------- */
@media (min-width: 768px) {
  .adm-cols-flat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .adm-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-span-2 { grid-column: span 2; }
  .adm-cols-flat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .adm-driver-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .adm-chart svg { height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .adm-tab, .adm-lock, .adm-lock-shackle { transition: none; }
  .adm-lock.is-snapping .adm-lock-icon { animation: none; }
}
@media (forced-colors: active) {
  .adm-tab[aria-selected="true"] { outline: 2px solid CanvasText; }
  .adm-chart-bar, .adm-bars-fill, .adm-meter > span { fill: CanvasText; background: CanvasText; }
}

/* ---------- reward points (admin-rewards.js, wip/hot-zones-rewards/CONTRACT.md 9.10) ---------- */
.adm-rw-card { container-type: inline-size; }
.adm-rw-facts .adm-rw-balance { font-size: 1.5rem; font-weight: 700; color: rgb(var(--ink)); }
.adm-rw-actions { display: grid; gap: 0.375rem; margin-top: 0.75rem; }
.adm-rw-actions .gm-btn { justify-self: start; max-width: 100%; flex-wrap: wrap; text-align: left; }
.adm-rw-row { align-items: center; flex-wrap: wrap; }
.adm-rw-row .gm-row-text { flex: 1 1 12em; }
tr[data-currency="rp"] td[data-label="Points"] { font-weight: 600; }

/* build:billing: the GM Dashboard money view (admin-money.js, in the Points
 * tab): its cards stack with the tab's own gap; "Google Play sales: On" keeps
 * its chip on the line while it fits; "Off" is a calm grey chip with a word
 * and an icon (it is the normal state until the Play listing is live). */
.adm-money { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; min-width: 0; }
.adm-money:empty { display: none; }
.adm-money-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.5rem; font-size: 0.9375rem; font-weight: 600; color: rgb(var(--ink)); }
.adm-money-switch .adm-st { max-width: 100%; overflow-wrap: anywhere; }
.adm-st.adm-money-off { --c: var(--ink-faint); }
/* Points by month now has 12 point columns: on a wide screen their headings
 * wrap (the numbers stay on one line), so the table fits its card. */
@media (min-width: 1024px) {
  #adm-pts-months .adm-table thead th, #adm-pts-months .adm-table tbody th { white-space: normal; overflow-wrap: normal; word-break: normal; }
  #adm-pts-months .adm-table th, #adm-pts-months .adm-table td { padding-left: 0.375rem; padding-right: 0.375rem; }
}
/* A table wider than its card scrolls inside it and takes keyboard focus
 * (role="region"), with the dashboard's focus ring. */
.adm-table-wrap[tabindex]:focus-visible { outline: 3px solid rgb(var(--focus)); outline-offset: 2px; border-radius: 6px; }

/* build:vehicles: the Vehicle list and Electricity prices cards: a long status chip wraps at large text sizes. */
#adm-hl-veh .gm-chip, #adm-hl-power .gm-chip { max-width: 100%; height: auto; min-height: 2rem; white-space: normal; overflow-wrap: anywhere; padding-top: 0.25rem; padding-bottom: 0.25rem; }
