:root {
  color-scheme: light;
  --page: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #f0f3f4;
  --text: #17242c;
  --muted: #65737b;
  --line: #dde5e7;
  --brand-accent: #215847;
  --brand-sidebar-top: #173d36;
  --brand-sidebar-mid: #12352f;
  --brand-sidebar-bottom: #0d2726;
  --brand-sidebar-accent: #b8e49b;
  --brand-action-text: #ffffff;
  --stale: #a45a16;
  --shadow: 0 18px 48px rgba(18, 36, 46, .07);
  --green: var(--brand-accent);
  background: var(--page);
  color: var(--text);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #101820;
  --surface: #19242e;
  --surface-soft: #222f39;
  --text: #edf3f4;
  --muted: #a5b5bd;
  --line: #31414b;
  --brand-action-text: #101820;
  --stale: #f3b66e;
  --shadow: 0 18px 48px rgba(0, 0, 0, .18);
}
body, .layout { background: var(--page); color: var(--text); }
button { transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
button:hover { transform: translateY(-1px); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--brand-accent); }
.brand-name strong { color: var(--brand-sidebar-accent); }
.brand-icon { background: var(--brand-accent); color: var(--brand-action-text); border-radius: 11px; }

/* Connect screen: a compact control-room identity rather than a generic sign-in card. */
.login-screen { background: var(--page); }
.login-story {
  background: linear-gradient(155deg, var(--brand-sidebar-top), var(--brand-sidebar-mid) 55%, var(--brand-sidebar-bottom));
  isolation: isolate;
}
.login-story::before {
  content: "";
  position: absolute;
  width: min(76vw, 780px);
  aspect-ratio: 1;
  right: -42%;
  top: 9%;
  border: 1px solid color-mix(in srgb, var(--brand-sidebar-accent) 35%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 80px color-mix(in srgb, var(--brand-sidebar-accent) 5%, transparent), 0 0 0 160px color-mix(in srgb, var(--brand-sidebar-accent) 3%, transparent);
  z-index: -1;
}
.login-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 63px, rgba(255,255,255,.035) 64px);
  pointer-events: none;
  z-index: -1;
}
.login-story .brand-icon { background: var(--brand-sidebar-accent); color: var(--brand-sidebar-bottom); }
.login-story .brand-name strong { color: var(--brand-sidebar-accent); }
.login-story .eyebrow, .login-story>small, .login-road { color: color-mix(in srgb, var(--brand-sidebar-accent) 75%, white); }
.login-story h1 { max-width: 680px; font-size: clamp(38px, 4vw, 66px); letter-spacing: -2.8px; }
.login-story p { color: #e4ecec; max-width: 500px; }
.login-road { border-color: rgba(255,255,255,.2); }
.login-panel { background: radial-gradient(circle at 92% 6%, color-mix(in srgb, var(--brand-accent) 9%, transparent), transparent 42%), var(--page); }
.login-box { max-width: 410px; }
.login-box h2 { font-size: clamp(30px, 2.8vw, 40px); letter-spacing: -1.6px; color: var(--text); }
.login-box>p { color: var(--muted); }
.login-label, .eyebrow { color: var(--brand-accent); }
.login-note { color: var(--muted); border-color: var(--line); }
.login-bottom { color: var(--muted); }
.login-bottom span { color: var(--brand-accent); }
.system-selected { background: var(--surface-soft); border-color: var(--line); border-radius: 12px; }
.system-selected span { color: var(--text); }
.system-selected button, #show-token, .text-button { color: var(--brand-accent); }
.verified-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--muted); }
.verified-dot.is-verified { background: #32b574; box-shadow: 0 0 0 3px rgba(50,181,116,.14); }
.system-url-field { background: var(--surface); border-color: var(--line); border-radius: 11px; }
.system-url-field>span { background: var(--surface-soft); border-color: var(--line); color: var(--muted); }
.system-url-field input { background: var(--surface); color: var(--text); }
.system-url-field:focus-within { outline-color: var(--brand-accent); }
.login-box input { padding-block: 14px; }
.login-box .primary { font-size: 13px; border-radius: 10px; box-shadow: 0 12px 25px color-mix(in srgb, var(--brand-accent) 24%, transparent); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--brand-accent); box-shadow: var(--shadow); }
.login-theme-toggle { position: absolute; top: 38px; right: 42px; }

/* Application surfaces use the verified company's palette for emphasis. */
aside, header, .asset-card, .table-section, .stats article, .empty-state, dialog { background: var(--surface); border-color: var(--line); color: var(--text); }
aside { box-shadow: 8px 0 30px rgba(18,36,46,.025); }
.workspace, .offline-card, .profile, .asset-bottom, .dialog-actions { border-color: var(--line); }
.workspace { background: var(--surface-soft); border-radius: 13px; }
.workspace-icon, .vehicle-icon, .profile>span, .close { background: var(--surface-soft); color: var(--brand-accent); }
.workspace [data-company-name] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offline-card { background: var(--surface-soft); border-radius: 13px; }
.offline-card button, .asset-bottom button, footer button { color: var(--brand-accent); }
.profile small, .workspace small, .breadcrumb, .header-right, footer, .nav-label { color: var(--muted); }
nav button { color: var(--muted); }
nav button:hover, nav button.active { background: color-mix(in srgb, var(--brand-accent) 12%, var(--surface)); color: var(--brand-accent); }
nav button.active { box-shadow: inset 3px 0 var(--brand-accent); }
.demo-tag { background: color-mix(in srgb, var(--brand-accent) 12%, var(--surface)); color: var(--brand-accent); font-weight: 800; }
.topbar { position: sticky; top: 0; z-index: 4; height: 78px; padding-inline: 38px; gap: 20px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 26px rgba(18,36,46,.035); }
.topbar-location { display: flex; align-items: center; gap: 13px; min-width: 0; }
.topbar-mark { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border: 1px solid color-mix(in srgb, var(--brand-accent) 20%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--brand-accent) 9%, var(--surface)); color: var(--brand-accent); font-size: 21px; line-height: 1; }
.topbar-trail { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.topbar .breadcrumb { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.25px; }
.topbar #page-crumb { color: var(--text); font: 800 15px/1.1 'Manrope', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .header-right { gap: 13px; flex-shrink: 0; }
.topbar .demo-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--brand-accent) 14%, var(--line)); border-radius: 99px; font-size: 9px; letter-spacing: .8px; }
.topbar-live-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--brand-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 14%, transparent); }
.topbar-date { padding: 0 14px; border-inline: 1px solid var(--line); color: var(--muted); font-size: 11px; text-transform: capitalize; white-space: nowrap; }
.topbar .theme-toggle { min-height: 36px; padding-inline: 14px; background: var(--surface-soft); }
.topbar .theme-toggle:hover { background: color-mix(in srgb, var(--brand-accent) 11%, var(--surface)); }
.section-actions { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.refresh-assets { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--brand-accent); border-radius: 8px; padding: 9px 12px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.refresh-assets:hover { border-color: var(--brand-accent); background: var(--surface-soft); }
.refresh-assets:disabled { opacity: .55; cursor: wait; transform: none; }
.refresh-assets span { font-size: 16px; line-height: .7; }
.refresh-assets:disabled span { animation: refresh-spin 1s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
h1, h2, h3, .summary-action strong, td strong, .asset-bottom strong { color: var(--text); }
.login-story h1 { color: #fff; }
.page-heading h1 { font-size: clamp(31px, 3vw, 43px); letter-spacing: -1.8px; }
p, .page-heading p, .section-heading p, .asset-meta, .meter-label, .meter-scale, .asset-code, .asset-bottom, td, td small, th, .muted, .filters { color: var(--muted); }
.primary, .summary-action-green { background: var(--brand-accent); color: var(--brand-action-text); border-color: var(--brand-accent); }
.primary:hover, .summary-action-green:hover { background: color-mix(in srgb, var(--brand-accent) 84%, var(--text)); }
.secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.summary-action, .asset-card, .table-section, .stats article, .empty-state { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.summary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.summary-action { color: var(--muted); min-height: 150px; }
.maintenance-action { min-height: 212px; padding: 29px 34px; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.maintenance-action .summary-action-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--surface-soft); }
.maintenance-action>span:last-child { font-size: 13px; font-weight: 700; }
.maintenance-action strong { margin-top: 5px; font-size: 38px; line-height: 1.1; }
.maintenance-action small { margin-top: 9px; }
.summary-action:hover, .asset-card:hover { border-color: color-mix(in srgb, var(--brand-accent) 45%, var(--line)); box-shadow: 0 22px 45px color-mix(in srgb, var(--brand-accent) 10%, transparent); }
.summary-action-green { background: linear-gradient(135deg, var(--brand-sidebar-top), var(--brand-sidebar-bottom)); border-color: var(--brand-sidebar-top); color: #fff; }
.summary-action-green { grid-column: auto; }
.summary-action-green:hover { background: linear-gradient(135deg, var(--brand-sidebar-mid), var(--brand-sidebar-bottom)); }
.summary-action-green strong, .summary-action-green .summary-action-icon { color: var(--brand-sidebar-accent); }
.summary-action-icon, .meter-label strong { color: var(--brand-accent); }
.summary-action-green small { color: #d9e5e5; }
.reading-action {
  position: relative;
  min-height: 212px;
  padding: 29px 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  isolation: isolate;
}
.reading-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(255,255,255,.045) 47px), radial-gradient(circle at 80% 55%, color-mix(in srgb, var(--brand-sidebar-accent) 17%, transparent), transparent 34%);
  z-index: -1;
}
.reading-action-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; max-width: 470px; position: relative; z-index: 1; }
.reading-action-kicker { display: inline-flex; gap: 8px; align-items: center; color: var(--brand-sidebar-accent); font: 800 9px 'DM Sans', sans-serif; letter-spacing: 1.5px; }
.reading-action-kicker i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-sidebar-accent) 20%, transparent); }
.reading-action .reading-action-copy strong { color: #fff; font: 800 clamp(23px, 2.1vw, 30px)/1.12 'Manrope', sans-serif; letter-spacing: -1.2px; margin: 15px 0 7px; }
.reading-action .reading-action-copy small { color: #e0eaea; font-size: 12px; line-height: 1.5; }
.reading-action-cta { display: inline-flex; align-items: center; gap: 17px; margin-top: 21px; padding: 9px 9px 9px 15px; border-radius: 8px; background: var(--brand-sidebar-accent); color: var(--brand-sidebar-bottom); font-size: 11px; font-weight: 800; }
.reading-action-cta span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 5px; background: rgba(0,0,0,.12); font-size: 15px; transition: transform .2s; }
.reading-action:hover .reading-action-cta span { transform: translate(2px, -2px); }
.summary-action .reading-action-visual { display: flex; flex: 0 0 96px; flex-direction: column; align-items: center; gap: 9px; margin: -20px 0; font-size: inherit; line-height: normal; }
.reading-action-dial { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(from 225deg, var(--brand-sidebar-accent) 0 220deg, rgba(255,255,255,.16) 220deg 270deg, transparent 270deg); transform: rotate(-1deg); }
.reading-action-dial::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--brand-sidebar-bottom); box-shadow: inset 0 0 0 1px rgba(255,255,255,.17); }
.reading-action-dial::after { content: ''; position: absolute; inset: 23px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.27); }
.reading-action-dial span { position: relative; z-index: 1; color: var(--brand-sidebar-accent); font: 300 42px/1 'Manrope', sans-serif; }
.reading-action-units { display: flex; align-items: center; gap: 8px; color: #e4ecec; font: 800 9px 'DM Sans', sans-serif; letter-spacing: 2px; }
.reading-action-units i { width: 20px; height: 1px; background: var(--brand-sidebar-accent); }
.asset-card { transition: border-color .2s, box-shadow .2s, transform .2s; }
.asset-card:hover { transform: translateY(-3px); }
.asset-card.stale-reading { border-color: color-mix(in srgb, var(--stale) 58%, var(--line)); background: linear-gradient(135deg, color-mix(in srgb, var(--stale) 10%, var(--surface)), var(--surface) 48%); box-shadow: inset 3px 0 var(--stale), var(--shadow); }
.stale-reading .vehicle-icon { background: color-mix(in srgb, var(--stale) 15%, var(--surface)); color: var(--stale); }
.stale-reading .stale-reading-tag { background: color-mix(in srgb, var(--stale) 14%, var(--surface)); border-color: color-mix(in srgb, var(--stale) 40%, var(--line)); color: var(--stale); font-weight: 800; }
.fuel-type, .section-heading h2 span { background: var(--surface-soft); color: var(--muted); border-color: var(--line); }
.meter { background: var(--surface-soft); }
.meter i { background: var(--brand-accent); }
.asset-bottom { border-color: var(--line); }
.table-section th { background: var(--surface-soft); border-color: var(--line); color: var(--muted); }
.table-section td { border-color: var(--line); }
.tabs button { color: var(--muted); }
.tabs button.selected { background: color-mix(in srgb, var(--brand-accent) 14%, var(--surface)); color: var(--brand-accent); }
.request-kinds button.selected { border-bottom-color: var(--brand-accent); }
dialog { box-shadow: 0 34px 100px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(7,18,25,.63); }
.close { color: var(--muted); }
input, select, textarea { background: var(--surface); color: var(--text); border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline-color: var(--brand-accent); }
.odometer-field { background: var(--surface); border-color: var(--line); }
.odometer-field select { background: var(--surface-soft); color: var(--text); border-color: var(--line); }
.asset-result { background: var(--surface); border-color: var(--line); }
.asset-result:hover, .asset-result:focus-visible { background: var(--surface-soft); }
.asset-result strong { color: var(--text); }
.asset-result small, .recent-assets>span, .input-help, .voice-status { color: var(--muted); }
.recent-tag, .note-heading button, .form-hint { background: var(--surface-soft); border-color: var(--line); color: var(--text); }
.recent-tag:hover, .recent-tag.active, .note-heading button.listening { background: color-mix(in srgb, var(--brand-accent) 15%, var(--surface)); border-color: var(--brand-accent); color: var(--brand-accent); }
.reading-recent-assets { margin: 0 0 16px; }
.add-asset-tag, .add-asset-tag:hover, .add-asset-tag[aria-expanded="true"] { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--brand-action-text); font-weight: 800; }
.add-asset-tag:hover { filter: brightness(1.08); }
#asset-search-panel[hidden] { display: none; }
input[type=range] { accent-color: var(--brand-accent); }
#toast { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }

@media (max-width: 760px) {
  .topbar { height: 68px; padding-inline: 18px; }
  .topbar-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 18px; }
  .topbar-location { gap: 9px; }
  .topbar .breadcrumb { font-size: 7px; letter-spacing: .8px; }
  .topbar #page-crumb { font-size: 13px; }
  .topbar .header-right { gap: 8px; }
  .topbar .demo-tag { padding: 7px 8px; font-size: 7px; }
  .topbar-date { display: none; }
  .topbar .theme-toggle { min-height: 32px; }
  .section-heading { flex-wrap: wrap; }
  .section-actions { gap: 14px; }
  .refresh-assets { padding: 8px 10px; }
  .summary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-action { gap: 10px; min-height: 120px; padding: 15px; }
  .maintenance-action { min-height: 185px; }
  .maintenance-action .summary-action-icon { width: 34px; height: 34px; }
  .maintenance-action>span:last-child { font-size: 11px; }
  .maintenance-action strong { font-size: 32px; }
  .summary-action-icon { font-size: 20px; }
  .summary-action>span:last-child { min-width: 0; font-size: 10px; overflow-wrap: anywhere; }
  .summary-action small { font-size: 9px; }
  .reading-action { min-height: 185px; padding: 24px; }
  .reading-action .reading-action-copy strong { font-size: 26px; }
  .reading-action .reading-action-copy small { font-size: 11px; }
  .summary-action .reading-action-visual { display: none; }
  aside { border-color: var(--line); }
  nav button.active { box-shadow: inset 0 3px var(--brand-accent); }
  .login-story { min-height: 265px; }
  .login-story::before { width: 420px; right: -180px; top: -100px; }
  .login-story h1 { font-size: 33px; letter-spacing: -1.4px; }
  .login-theme-toggle { top: 17px; right: 22px; }
  .login-panel { padding-top: 70px; }
  .header-right { gap: 7px; }
  .header-right .theme-toggle { min-width: 34px; font-size: 0; padding: 6px; }
  .header-right .theme-toggle::before { content: '☾'; font-size: 16px; }
  html[data-theme="dark"] .header-right .theme-toggle::before { content: '☀'; }
  .page-heading h1 { font-size: 30px; }
}

@media (max-width: 480px) {
  .topbar .demo-tag { display: none; }
  .topbar #mobile-logout { white-space: nowrap; font-size: 10px; }
  .reading-action { min-height: 188px; padding: 15px; }
  .reading-action-copy { max-width: 100%; }
  .reading-action .reading-action-copy strong { font-size: 21px; }
  .reading-action .reading-action-copy small { max-width: 190px; }
  .reading-action-cta { gap: 6px; margin-top: 12px; padding: 6px 6px 6px 8px; font-size: 9px; }
  .reading-action-cta span { width: 18px; height: 18px; }
  .maintenance-action { padding: 15px; }
  .maintenance-action>span:last-child { font-size: 10px; }
  .maintenance-action strong { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .asset-card, button { transition: none; }
  .refresh-assets:disabled span { animation: none; }
}

/* Requests and readings remain legible as individual records on narrow screens. */
.record-toolbar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px 22px; margin: 28px 0 16px; }
.record-toolbar-label { display: block; margin-bottom: 6px; color: var(--brand-accent); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.record-toolbar h2 { display: flex; align-items: center; gap: 9px; color: var(--text); font: 800 20px 'Manrope', sans-serif; letter-spacing: -.6px; }
.record-toolbar h2 span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--surface-soft); color: var(--muted); font: 700 11px 'DM Sans', sans-serif; }
.record-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.record-filters button { border: 1px solid transparent; border-radius: 99px; background: transparent; color: var(--muted); padding: 8px 11px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.record-filters button:hover { background: var(--surface-soft); }
.record-filters button.selected { border-color: color-mix(in srgb, var(--brand-accent) 30%, var(--line)); background: color-mix(in srgb, var(--brand-accent) 12%, var(--surface)); color: var(--brand-accent); }
.record-filters button span { margin-left: 4px; opacity: .7; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.record-card { display: flex; flex-direction: column; min-width: 0; padding: 21px 22px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.record-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.record-eyebrow { color: var(--brand-accent); font-size: 9px; font-weight: 800; letter-spacing: .5px; }
.record-card-top h3 { color: var(--text); font: 800 17px 'Manrope', sans-serif; letter-spacing: -.4px; margin: 7px 0 3px; }
.record-card-top p { color: var(--muted); font-size: 10px; margin: 0; }
.record-card-top .badge { flex-shrink: 0; font-size: 9px; border-radius: 99px; padding: 6px 9px; }
.record-card-middle { display: flex; align-items: flex-end; gap: 16px; justify-content: space-between; margin: 23px 0; }
.record-card-middle small, .reading-values small { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 1.1px; }
.record-card-middle strong, .reading-values strong { display: block; margin-top: 6px; color: var(--text); font: 800 26px/1 'Manrope', sans-serif; letter-spacing: -.8px; white-space: nowrap; }
.record-card-middle strong span, .reading-values strong span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0; }
.record-card-middle p { max-width: 60%; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: right; margin: 0; overflow-wrap: anywhere; }
.record-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.delivery { font-weight: 700; }
.delivery.sent { color: #429a6d; }
.delivery.waiting { color: #b48238; }
.record-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 42px 20px; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface); }
.record-empty>span { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 15px; border-radius: 13px; background: var(--surface-soft); color: var(--brand-accent); font-size: 27px; }
.record-empty strong { color: var(--text); font: 800 16px 'Manrope', sans-serif; }
.record-empty p { max-width: 330px; margin: 7px 0 0; font-size: 11px; line-height: 1.5; }
.reading-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reading-overview>div { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.reading-overview span, .reading-overview small { display: block; color: var(--muted); font-size: 9px; }
.reading-overview span { font-weight: 800; letter-spacing: .9px; }
.reading-overview strong { display: block; margin: 8px 0 3px; color: var(--text); font: 800 29px 'Manrope', sans-serif; }
.reading-overview small { font-size: 10px; }
.reading-overview>div:nth-child(2) strong { color: #be8b42; }
.reading-overview>div:nth-child(3) strong { color: #429a6d; }
.history-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.history-tools input { width: 205px; margin: 0; padding: 9px 12px; font-size: 11px; border-radius: 9px; }
.reading-values { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin: 23px 0 11px; }
.reading-values>div:last-child { text-align: right; }
.reading-fuel-track { width: 100%; height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); margin-bottom: 21px; }
.reading-fuel-track i { display: block; height: 100%; border-radius: inherit; background: var(--brand-accent); }
.record-note { margin: -5px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.record-type-label { margin-top: 0; }
#record-type { border-color: color-mix(in srgb, var(--brand-accent) 42%, var(--line)); font-weight: 700; }
#record-asset, #type-fields { display: contents; }
.priority-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 16px 0; padding: 0; border: 0; }
.priority-choice legend { color: var(--text); font-size: 11px; font-weight: 800; margin-bottom: 8px; }
.priority-choice label { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); cursor: pointer; }
.priority-choice input { width: auto; margin: 0; accent-color: var(--brand-accent); }
.priority-choice span { display: flex; flex-direction: column; gap: 3px; color: var(--text); font-size: 11px; font-weight: 800; }
.priority-choice small { color: var(--muted); font-size: 9px; font-weight: 500; }
.icon-choice-group { margin: 0 0 19px; padding: 0; border: 0; }
.icon-choice-group legend { margin-bottom: 10px; color: var(--text); font-size: 11px; font-weight: 800; }
.choice-grid { display: grid; gap: 9px; }
.measurement-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; min-height: 91px; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.choice-card:hover { border-color: color-mix(in srgb, var(--brand-accent) 55%, var(--line)); transform: translateY(-2px); }
.choice-card:has(input:checked) { border-color: var(--brand-accent); background: color-mix(in srgb, var(--brand-accent) 10%, var(--surface)); box-shadow: inset 0 0 0 1px var(--brand-accent); color: var(--brand-accent); }
.choice-card:focus-within { outline: 2px solid var(--brand-accent); outline-offset: 2px; }
.choice-card input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; }
.choice-card-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; background: var(--surface-soft); color: var(--brand-accent); }
.choice-card:has(input:checked) .choice-card-icon { background: var(--brand-accent); color: var(--brand-action-text); }
.choice-card-icon svg { width: 20px; height: 20px; }
.choice-card-label { color: var(--text); font-size: 10px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.choice-card:has(input:checked) .choice-card-label { color: var(--brand-accent); }
.measurement-choice-group { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.measurement-choice-grid .choice-card { min-height: 78px; flex-direction: row; align-items: center; gap: 11px; }
.measurement-choice-grid .choice-card-label { font-size: 11px; }
.evidence-picker { display: flex; flex-direction: column; gap: 5px; padding: 15px; border: 1px dashed color-mix(in srgb, var(--brand-accent) 55%, var(--line)); border-radius: 11px; background: var(--surface-soft); }
.evidence-picker strong { color: var(--text); font-size: 12px; }
.evidence-picker strong span { color: var(--muted); font-weight: 500; }
.evidence-picker small { color: var(--muted); font-size: 10px; }
.evidence-picker input { width: 100%; padding: 8px 0 0; border: 0; background: transparent; font-size: 10px; }
.evidence-preview { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.evidence-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 9px 5px 5px; border-radius: 7px; background: color-mix(in srgb, var(--brand-accent) 11%, var(--surface)); color: var(--text); font-size: 9px; overflow-wrap: anywhere; }
.evidence-chip img { width: 42px; height: 42px; flex: 0 0 42px; object-fit: cover; border-radius: 5px; }
.evidence-chip small, .evidence-status { color: var(--muted); font-size: 9px; }
.evidence-status { margin: -8px 0 13px; }

@media (max-width: 850px) {
  .record-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .record-toolbar { align-items: flex-start; }
  .record-toolbar h2 { font-size: 18px; }
  .reading-overview { gap: 8px; }
  .reading-overview>div { padding: 13px 11px; }
  .reading-overview span { font-size: 7px; }
  .reading-overview strong { font-size: 24px; }
  .reading-overview small { font-size: 8px; }
  .history-tools { width: 100%; }
  .history-tools input { width: 100%; }
}
@media (max-width: 420px) {
  .measurement-choice-grid { gap: 7px; }
  .measurement-choice-grid .choice-card { min-height: 83px; gap: 7px; padding: 8px; }
  .measurement-choice-grid .choice-card-icon { width: 28px; height: 28px; flex-basis: 28px; }
  .measurement-choice-grid .choice-card-label { font-size: 10px; }
  .record-card { padding: 17px 17px 0; }
  .record-card-top h3 { font-size: 15px; }
  .record-card-middle { align-items: flex-start; flex-direction: column; }
  .record-card-middle p { max-width: none; text-align: left; }
  .record-filters button { padding: 7px 8px; font-size: 9px; }
}
