@font-face { font-family: Jakarta; src: url("./fonts/plus-jakarta-sans.woff2") format("woff2"); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: Bricolage; src: url("./fonts/bricolage-grotesque.woff2") format("woff2"); font-style: normal; font-weight: 700 800; font-display: swap; }
:root {
  color-scheme: light;
  font-family: Jakarta, system-ui, sans-serif;
  color: #1c1917;
  background: #f7f6f3;
  --surface: #fff;
  --surface-soft: #eeecea;
  --border: #e2ddd8;
  --muted: #57534e;
  --blue: #2563eb;
  --blue-dark: #174dcc;
  --blue-light: #eaf0ff;
  --nav-height: 65px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p { margin: 0; }
button, select, input { font: inherit; }
a { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #5782f7; outline-offset: 3px; }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .58rem .95rem;
  border: 1px solid transparent;
  border-radius: .96rem;
  background: var(--blue);
  color: white;
  font-weight: 750;
  cursor: pointer;
}
button:hover { filter: brightness(.94); }
button:disabled { cursor: wait; opacity: .6; }
.secondary { color: #1d4ed8; background: var(--blue-light); }
.quiet { color: var(--blue-dark); background: transparent; }
.ui-icon { display: block; width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
button > .ui-icon { width: 1.02rem; height: 1.02rem; }
.ui-emblem {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: .68rem;
  background: linear-gradient(145deg, var(--emblem-light), var(--emblem-fill));
  color: var(--emblem-ink);
}
.ui-emblem .ui-icon { width: 18px; height: 18px; }
.tone-vehicle { --emblem-light: #f2f7ff; --emblem-fill: #dce8ff; --emblem-ink: #1e56c9; }
.tone-oil { --emblem-light: #fff8e6; --emblem-fill: #ffe8b1; --emblem-ink: #9a5507; }
.tone-fuel { --emblem-light: #e9fbf7; --emblem-fill: #d0f3e9; --emblem-ink: #08735f; }
.tone-license { --emblem-light: #f7f2ff; --emblem-fill: #e9dcff; --emblem-ink: #7142b3; }
.panel-heading { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.panel-heading > div { min-width: 0; }
.panel-heading .muted { margin-top: .15rem; }
.layout { min-height: 100vh; }
.app-bar {
  position: sticky;
  z-index: 3;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px #1c191709;
}
.bar-inner {
  min-height: 65px;
  padding: .55rem clamp(.75rem, 4vw, 1.55rem);
  margin: auto;
  max-width: 1080px;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: #44403c;
  text-decoration: none;
}
.icon-button:hover { background: var(--surface-soft); }
.brand { display: flex; min-width: 0; align-items: center; gap: .5rem; color: #16171d; text-decoration: none; font-weight: 800; white-space: nowrap; }
.brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.app-logo, .heading-icon { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; }
.app-logo { width: 34px; height: 34px; background: #172237; color: #92c2ff; }
.bar-end { display: flex; min-width: 0; gap: .48rem; align-items: center; margin-left: auto; }
.picker { display: flex; min-width: 0; align-items: center; gap: .3rem; padding-left: .28rem; border: 1px solid #bfbab4; border-radius: .9rem; }
.picker > span { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: .55rem; background: #e5f4ef; color: #007a6b; }
.picker select { width: auto; max-width: clamp(110px, 27vw, 235px); min-height: 37px; padding: .35rem 1.8rem .35rem .25rem; border: 0; font-size: .85rem; font-weight: 760; text-overflow: ellipsis; }
main { width: 100%; max-width: 1080px; margin: auto; padding: clamp(1rem, 3.7vw, 1.5rem) clamp(.9rem, 3.8vw, 1.5rem) calc(var(--nav-height) + 4.6rem); }
.heading { display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.heading h1 { font: 800 clamp(1.3rem, 3.7vw, 1.85rem)/1.12 Bricolage, Jakarta, sans-serif; letter-spacing: -.035em; }
.heading p { margin-top: .25rem; color: var(--muted); font-size: .86rem; }
.heading-icon { width: 42px; height: 42px; background: #e4ecfd; color: #2255b6; }
.date-strip { display: none; gap: .5rem; margin-bottom: .95rem; font-size: .79rem; font-weight: 730; color: var(--muted); }
[data-page="beranda"] .date-strip, [data-page="riwayat"] .date-strip { display: flex; }
.date-strip > span, .date-strip time { min-height: 34px; display: flex; align-items: center; gap: .38rem; padding: .32rem .75rem; border-radius: 2rem; background: var(--surface-soft); }
.date-strip .ui-icon { width: 1rem; height: 1rem; }
.date-strip time { flex: 1; justify-content: center; }
h2 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.025em; }
h3 { font-size: 1rem; line-height: 1.35; }
.panel { min-width: 0; overflow-wrap: anywhere; padding: 1rem; border: 1px solid var(--border); border-radius: 1.04rem; background: var(--surface); box-shadow: 0 2px 6px #29231b0a; }
.hero {
  display: grid;
  gap: .68rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid #273a51;
  border-radius: 1.85rem;
  background: radial-gradient(ellipse at 78% -45%, #354f69 0, transparent 58%), linear-gradient(142deg, #121d31, #1b283a 69%, #142033);
  color: #fff;
}
.hero-reading { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: .9rem; margin-bottom: .2rem; }
.with-photo .hero-reading { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.metric-label, .hero-banner > div > span { color: #b9c5d4; font-size: .73rem; font-weight: 740; letter-spacing: .075em; }
.metric-label { display: flex; gap: .52rem; align-items: center; }
.hero .ui-emblem { background: #ffffff13; color: #a9cbff; }
.hero .tone-license { color: #c7b8ff; }
.km { display: block; margin: .62rem 0 .2rem; font: 800 clamp(2.2rem, 7.4vw, 3.6rem)/1 Bricolage, Jakarta, sans-serif; letter-spacing: -.045em; }
.hero-reading p { margin-top: .4rem; color: #afbdce; font-size: .88rem; }
.hero-banner, .hero-stats a { border: 1px solid #ffffff21; border-radius: 1.03rem; background: #ffffff0a; }
.hero-banner { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; padding: .7rem; }
.hero-banner > div { flex: 1 1 120px; }
.hero-banner strong { display: block; margin-top: .16rem; font-size: .88rem; }
.hero-banner button { background: #f2f6ff; color: #184b9a; font-size: .81rem; min-height: 40px; }
.banner-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: .76rem; color: #fff; background: linear-gradient(150deg, #60a5fa, #2157dc); }
.oil-banner-icon { background: linear-gradient(145deg, #ffcf69, #ed8a27); color: #3f2608; }
.hero-actions, .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .52rem; }
.hero-actions button { color: #dbeafe; background: #ffffff12; border: 1px solid #ffffff26; font-size: .82rem; }
.hero-stats a { display: flex; align-items: center; gap: .5rem; color: #c5d1df; padding: .66rem .7rem; font-size: .79rem; text-decoration: none; }
.hero-stats strong { display: block; margin-top: .24rem; font-size: 1.12rem; color: #72dbc5; }
.hero-stats a + a strong { color: #b7b1ff; }
.oil-chart { margin-top: .95rem; }
.oil-chart-heading { display: flex; gap: .57rem; align-items: center; flex-wrap: wrap; }
.oil-chart-heading h2 { flex: 1; min-width: max-content; }
.oil-chart-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--blue-light); color: var(--blue); border-radius: .7rem; }
.chart-all { min-height: 38px; font-size: .77rem; padding: .45rem .62rem; }
.chart-all[aria-pressed="true"], .chart-key[aria-pressed="true"] { background: var(--blue-light); color: var(--blue-dark); }
.oil-summary { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-top: .85rem; }
.oil-safe-num { display: flex; align-items: baseline; gap: .4rem; margin: 0; }
.oil-safe-num strong { font: 800 clamp(1.9rem, 6vw, 2.6rem)/1 Bricolage, Jakarta, sans-serif; font-variant-numeric: tabular-nums; }
.oil-safe-num > span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.oil-safe-sub { margin: 0; color: var(--muted); font-size: .82rem; }
.chart-bars { display: grid; gap: .4rem; margin-top: .7rem; }
.chart-bar { grid-template-rows: auto auto; row-gap: .45rem; }
.chart-bar-track { grid-column: 1 / -1; display: block; height: 12px; border-radius: 99px; background: #ddd5bf; border: 1px solid #cfc7ab; overflow: hidden; }
.chart-bar-zero .chart-key-text, .chart-bar-zero .chart-key-num { opacity: .55; }
.chart-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--status-tone); }
.chart-legend { display: grid; gap: .25rem; }
.chart-key { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; min-height: 43px; gap: .54rem; padding: .42rem .56rem; border-radius: .65rem; background: #f7f6f3; color: #44403c; font-size: .82rem; font-weight: 650; }
.chart-swatch { width: .57rem; height: .57rem; border-radius: 50%; background: var(--status-tone); }
.chart-key strong { font-variant-numeric: tabular-nums; }

/* Grafik status komponen — gaya MELD (Bos, 2026-11-26): kartu krem,
   judul Bricolage, angka persen aman besar, batang per status berisi
   jumlah + persen (klik = saring daftar), dan daftar "Perlu diperiksa"
   dengan batang urgensi tiap komponen. BUKAN donat (Bos, 2026-11-26). */
.oil-chart { background: #fffdf8; border-color: #ede7da; }
.oil-chart-heading h2 { font: 800 1.05rem/1.2 Bricolage, Jakarta, sans-serif; letter-spacing: -.02em; }
.chart-key { background: #f6f2e9; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.chart-key-text { display: grid; gap: .1rem; min-width: 0; text-align: left; }
.chart-key-text small { font-size: .72rem; font-weight: 500; color: var(--muted); }
.chart-key-num { display: grid; justify-items: end; gap: .05rem; }
.chart-key-num em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--muted); }
.chart-attention { margin-top: .9rem; border-top: 1px solid var(--border); padding-top: .8rem; }
.chart-attention h3 { font: 800 .95rem/1.2 Bricolage, Jakarta, sans-serif; margin-bottom: .55rem; }
.chart-attention ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.chart-attention li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .65rem; border-radius: .7rem; background: #f6f2e9; }
.chart-attention li > div { display: grid; gap: .1rem; min-width: 0; }
.chart-attention li small { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.chart-dot { flex: none; width: .6rem; height: .6rem; margin-top: .3rem; border-radius: 50%; background: var(--status-tone); }
.attention-progress { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.attention-bar { flex: 1; display: block; height: 8px; border-radius: 99px; background: #ddd5bf; border: 1px solid #cfc7ab; overflow: hidden; }
.attention-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--status-tone); }
.attention-progress em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* Animasi grafik (Bos, 2026-11-26): ringkasan dan baris batang/daftar
   perhatian masuk satu-satu dari bawah; batang tumbuh dari kiri. */
@keyframes chart-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes bar-grow { from { width: 0; } to { width: var(--bar-w); } }
.oil-summary { animation: chart-in .45s ease-out both; }
.chart-key { animation: chart-in .45s ease-out both; }
.chart-bar-fill, .attention-bar-fill { animation: bar-grow .6s ease-out both; }
.chart-attention h3 { animation: chart-in .4s ease-out both; }
.chart-attention li { animation: chart-in .45s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .oil-summary, .chart-key, .chart-attention h3, .chart-attention li, .chart-bar-fill, .attention-bar-fill { animation: none; }
}
.photo { width: 100%; height: 195px; display: block; border-radius: .86rem; object-fit: contain; background: #eeecea; }
.hero .photo { height: clamp(98px, 22vw, 180px); object-fit: cover; background: #233953; }
.actions, .dialog-actions, .section-head { display: flex; flex-wrap: wrap; align-items: center; gap: .52rem; }
.section-head { margin: 1.45rem 0 .72rem; justify-content: space-between; }
.section-head a { font-size: .9rem; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: .7rem; }
.oil-card, .vehicle-card { display: grid; gap: .55rem; align-content: start; }
.vehicle-card { max-width: 680px; }
.muted { color: var(--muted); font-size: .86rem; }
.status { width: fit-content; justify-self: start; padding: .23rem .62rem; border-radius: 2rem; color: #49433d; background: var(--surface-soft); font-size: .8rem; font-weight: 710; }
.status-ok { color: #155c48; background: #def4eb; }
.status-near, .status-due { color: #784800; background: #fff0d0; }
.status-late { color: #9a2e36; background: #fce8eb; }
.empty { display: grid; justify-items: start; gap: .65rem; min-height: 150px; align-content: center; }
.history { display: grid; gap: .65rem; }
.history article { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; }
.history-tools { display: grid; gap: .75rem; margin-bottom: 1rem; }
.segments { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: .24rem; gap: .2rem; border-radius: .75rem; background: var(--surface-soft); }
.segments button { min-height: 38px; padding: .35rem .12rem; border-radius: .58rem; background: transparent; color: var(--muted); font-size: .82rem; }
.segments [aria-pressed="true"] { background: white; color: var(--blue-dark); box-shadow: 0 1px 4px #17171712; }
.history-search { display: flex; align-items: center; gap: .5rem; color: #64748b; padding: .55rem .8rem; }
.history-search input { flex: 1; border: 0; background: #f9fafb; }
.fleet { margin-bottom: 1rem; }
.condition { margin-block: .9rem; }
.condition .section-head { margin-top: 0; flex-wrap: wrap; }
.condition-counts, .vehicle-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: .55rem; margin: .85rem 0; }
.condition-counts button { flex-direction: column; font-size: .8rem; }
.condition-counts strong { font-size: 1.4rem; }
.vehicle-facts div { border-left: 3px solid #b7cef7; padding-left: .65rem; }
.vehicle-facts dt { color: var(--muted); font-size: .8rem; }
.vehicle-facts dd { margin: .2rem 0 0; font-weight: 700; }
.vehicle-note { white-space: pre-wrap; }
#fields textarea { width: 100%; padding: .7rem; font: inherit; border: 1px solid var(--border); border-radius: .7rem; resize: vertical; }
.book-entries { padding: 0; list-style: none; }
.book-entries li { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; border-top: 1px solid var(--border); padding: .8rem 0; }
@media print {
  body[data-page="buku"] :is(.app-bar,.bottom-nav,.quick-add,button,footer,#notice) { display: none; }
  body[data-page="buku"] main { padding: 0; max-width: none; }
  .book-entries li { break-inside: avoid; }
}
.fleet .section-head, .reminder-summary .section-head { margin: 0; flex-wrap: wrap; }
.fleet .section-head p { margin-top: .2rem; }
.fleet .actions { margin: 0; }
.fleet-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: .65rem; align-items: end; margin-top: .95rem; }
.fleet-tools label { font-size: .82rem; }
.fleet-view { display: flex; flex-wrap: nowrap; }
.fleet-results { display: grid; gap: .65rem; list-style: none; padding: 0; margin: .85rem 0 0; }
.fleet-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 185px), 1fr)); }
.fleet-item { width: 100%; height: 100%; padding: 0; color: inherit; background: var(--surface); border-color: var(--border); text-align: left; overflow: hidden; }
.fleet-item[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-light); }
.fleet-grid .fleet-item { display: flex; flex-direction: column; align-items: stretch; justify-content: start; }
.fleet-image { display: grid; flex: 0 0 auto; place-items: center; color: var(--blue-dark); background: #eef2fa; overflow: hidden; }
.fleet-grid .fleet-image { aspect-ratio: 16 / 9; }
.fleet-image img { width: 100%; height: 100%; object-fit: cover; }
.fleet-image .ui-icon { width: 2rem; height: 2rem; }
.fleet-caption { display: grid; flex: 1; min-width: 0; gap: .25rem; padding: .7rem; font-size: .82rem; }
.fleet-caption strong { font-size: .96rem; }
.fleet-list .fleet-image { width: 55px; height: 55px; margin-left: .5rem; border-radius: .55rem; }
.fleet-empty { margin-top: .85rem; }
#vehicle-details { scroll-margin-top: 5rem; }
.reminder-summary { margin-top: .95rem; }
.reminder-summary a, .reminder-card a { font-weight: 750; font-size: .83rem; }
.reminder-filters { margin-bottom: .9rem; }
.reminder-card { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.reminder-card .panel-heading { flex: 1 1 230px; }
.reminder-card :is(button, a) { margin-left: auto; }
@media (max-width: 560px) {
  .fleet-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-view { grid-column: 1 / -1; }
}
.history-empty { justify-items: center; padding-block: 2.8rem; color: var(--muted); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 57px; height: 57px; border-radius: 50%; background: var(--blue-light); color: var(--blue); }
footer { margin-top: 1.5rem; color: var(--muted); font-size: .84rem; }
#notice { margin-bottom: .8rem; padding: .68rem .85rem; border-radius: .65rem; background: var(--blue-light); color: #1e3a8a; }
.bottom-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 4; padding: 0 .45rem env(safe-area-inset-bottom); border-top: 1px solid var(--border); background: #fffffffa; box-shadow: 0 -2px 10px #29231b0d; }
.bottom-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 700px; min-height: var(--nav-height); margin: auto; }
.bottom-nav a { display: grid; gap: .24rem; justify-items: center; align-content: center; min-width: 0; color: #57534e; font-size: .7rem; font-weight: 670; white-space: nowrap; text-decoration: none; }
.bottom-nav a > span { display: grid; place-items: center; width: 35px; height: 28px; border-radius: .6rem; }
.bottom-nav a[aria-current], .menu-list a[aria-current] { color: var(--blue-dark); }
.bottom-nav a[aria-current] > span { background: var(--blue-light); }
.bottom-nav a[aria-current] .ui-icon { stroke-width: 2.35; }
.quick-add {
  position: fixed;
  z-index: 3;
  right: max(1rem, calc((100vw - 1032px) / 2));
  bottom: calc(var(--nav-height) + 1rem + env(safe-area-inset-bottom));
  width: 55px;
  height: 55px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 7px 22px #2563eb58;
}
.quick-add .ui-icon { width: 24px; height: 24px; }
dialog { width: min(100% - 1.5rem, 505px); max-height: calc(100dvh - 2rem); padding: 1.15rem; border: 1px solid var(--border); border-radius: 1.2rem; color: inherit; }
dialog::backdrop { background: #10182b73; backdrop-filter: blur(2px); }
.dialog-top { display: flex; align-items: center; gap: .5rem; justify-content: space-between; margin-bottom: .55rem; }
.dialog-top .quiet { min-width: 44px; padding: 0; font-size: 1.42rem; }
.menu-sheet { margin: 0 auto 0 0; width: min(85vw, 320px); min-height: 100%; max-height: 100%; border-radius: 0 1.25rem 1.25rem 0; }
.menu-list, .quick-list { display: grid; gap: .38rem; }
.menu-list a, .quick-list button { display: flex; align-items: center; justify-content: flex-start; gap: .72rem; padding: .65rem .75rem; min-height: 44px; color: #292524; border-radius: .78rem; font-weight: 700; text-decoration: none; }
.menu-list a[aria-current] { background: var(--blue-light); }
.sidebar-add { margin-top: .95rem; width: 100%; }
.quick-list button { background: var(--surface-soft); }
#fields { display: grid; gap: .83rem; }
#fields label:not(.check) { display: grid; gap: .3rem; }
input:not([type=checkbox]), select { min-height: 44px; width: 100%; min-width: 0; padding: .55rem .65rem; border: 1px solid #bcb8b2; border-radius: .65rem; background: white; color: #1c1917; }
select { appearance: none; padding-inline-end: 1.95rem; background: linear-gradient(45deg, transparent 50%, #68615a 50%) right 15px center / 5px 5px no-repeat, linear-gradient(135deg, #68615a 50%, transparent 50%) right 10px center / 5px 5px no-repeat, #fff; }
fieldset { border: 1px solid var(--border); border-radius: .65rem; padding: .42rem .7rem; }
legend { padding: 0 .22rem; }
.check { display: flex; align-items: center; gap: .48rem; min-height: 42px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
#form-error { margin-top: .7rem; color: #912f32; }
.dialog-actions { margin-top: .9rem; justify-content: flex-end; }
@media (max-width: 490px) {
  .bar-inner { gap: .36rem; }
  .bar-end { gap: .24rem; }
  .brand { font-size: .9rem; }
  .app-logo { width: 29px; height: 29px; }
  .picker > span { display: none; }
  .picker { padding-left: .26rem; }
  .icon-button { width: 35px; }
  .heading { display: grid; grid-template-columns: auto 1fr; }
  .heading-icon { width: 39px; height: 39px; }
  .hero-banner button { margin-left: auto; }
  .hero-reading p { font-size: .8rem; }
}
@media (max-width: 350px) {
  .brand .app-logo { display: none; }
}
.theme-picker { display: flex; gap: .45rem; margin: 0 0 .85rem; padding: .45rem; border-color: var(--border); }
.theme-picker legend { font-size: .82rem; font-weight: 700; color: var(--muted); }
.theme-picker label { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border: 1px solid transparent; border-radius: .6rem; font-size: .88rem; font-weight: 700; cursor: pointer; }
.theme-picker input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.theme-picker label:has(:checked) { background: var(--blue-light); color: var(--blue-dark); border-color: currentColor; }
.theme-picker label:has(:focus-visible) { outline: 3px solid #5782f7; outline-offset: 2px; }
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark; color: #e9edf3; background: #111720;
    --surface: #1a2330; --surface-soft: #273343; --border: #3a495c;
    --muted: #b5c2d1; --blue-dark: #a9caff; --blue-light: #273c5b;
  }
  [data-theme="dark"] :is(dialog, .bottom-nav) { background: var(--surface); }
  [data-theme="dark"] :is(.brand,.icon-button,.quick-list button,.menu-list a) { color: #e9edf3; }
  [data-theme="dark"] :is(.menu-list a[aria-current],.bottom-nav a[aria-current],.secondary,.oil-chart-icon,.empty-icon,#notice) { color: var(--blue-dark); }
  [data-theme="dark"] .bottom-nav a:not([aria-current]) { color: var(--muted); }
  [data-theme="dark"] :is(.fleet-image,.photo,.segments [aria-pressed="true"],.chart-key,.heading-icon) { background: var(--surface-soft); color: #dae6f6; }
  [data-theme="dark"] .oil-chart { background: var(--surface); border-color: var(--border); }
  [data-theme="dark"] .chart-attention li { background: var(--surface-soft); }
  [data-theme="dark"] :is(.chart-bar-track, .attention-bar) { background: var(--surface-soft); }
  [data-theme="dark"] :is(.chart-key[aria-pressed="true"],.segments [aria-pressed="true"]) { background: var(--blue-light); color: var(--blue-dark); }
  [data-theme="dark"] :is(input:not([type="checkbox"]),select,textarea) { background-color: #141d28; border-color: #59697d; color: #e9edf3; }
  [data-theme="dark"] select { appearance: auto; background-image: none; }
  [data-theme="dark"] .status { color: #d2dae5; background: #303c4c; }
  [data-theme="dark"] .status-ok { color: #9de8cc; background: #193d35; }
  [data-theme="dark"] :is(.status-due,.status-near) { color: #ffd991; background: #49381e; }
  [data-theme="dark"] .status-late { color: #ffb1ba; background: #482934; }
  [data-theme="dark"] #form-error { color: #ffb1ba; }
}
