#panel-vehicles {
  --veh-line: #e6e4df;
  --veh-soon: 8.2%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: normal;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] #panel-vehicles { --veh-line: #2A2C30; }

#panel-vehicles h1 { margin: 0; font-size: 20px; font-weight: 600; }
#panel-vehicles h2 { margin: 0; font-size: 16px; font-weight: 600; }

#panel-vehicles .veh-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
}
#panel-vehicles .veh-meta {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
#panel-vehicles .veh-ex {
  border: 1px dashed var(--border-strong);
  color: var(--text-3);
  font-size: 12px;
  border-radius: 999px;
  padding: 2px 10px;
}
#panel-vehicles .veh-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-2);
}
#panel-vehicles .veh-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 6px;
}

#panel-vehicles .veh-overdue { --c: var(--danger); }
#panel-vehicles .veh-soon { --c: var(--warn); }
#panel-vehicles .veh-later { --c: var(--ok); }

#panel-vehicles .veh-sec {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 12px;
}
#panel-vehicles .veh-n { font-size: 12px; color: var(--text-3); }
#panel-vehicles .veh-k {
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}
#panel-vehicles .veh-v {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  color: var(--c);
}
#panel-vehicles .veh-s { font-size: 12px; color: var(--text-2); }

#panel-vehicles .veh-card {
  background: var(--surface);
  border: 1px solid var(--veh-line);
  border-radius: 12px;
  padding: 18px;
  animation: veh-rise .4s ease both;
}
#panel-vehicles .veh-empty {
  margin-bottom: 24px;
  color: var(--text);
}
#panel-vehicles .veh-sum {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

#panel-vehicles .veh-tl { padding: 18px 22px 14px; margin-bottom: 24px; }
#panel-vehicles .veh-track { position: relative; height: 56px; margin-top: 10px; }
#panel-vehicles .veh-ax {
  position: absolute;
  left: 0;
  right: 0;
  top: 26px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--danger-soft) 0 0%, var(--warn-soft) 0 var(--veh-soon), var(--ok-soft) var(--veh-soon));
}
#panel-vehicles .veh-today {
  position: absolute;
  left: 0;
  top: 10px;
  height: 36px;
  border-left: 2px solid var(--text);
}
#panel-vehicles .veh-today span {
  position: absolute;
  top: -14px;
  left: -14px;
  font-size: 11px;
  font-weight: 600;
}
#panel-vehicles .veh-dot {
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  background: var(--c);
  box-shadow: 0 0 0 1px var(--c);
  animation: veh-rise .5s ease both;
}
#panel-vehicles .veh-dot b {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
#panel-vehicles .veh-months {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 16px;
}

#panel-vehicles .veh-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
#panel-vehicles .veh-it {
  position: relative;
  padding: 16px 16px 14px;
  border-left: 4px solid var(--c);
}
#panel-vehicles .veh-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
#panel-vehicles .veh-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 15px;
}
#panel-vehicles .veh-t { font-weight: 600; }
#panel-vehicles .veh-m { font-size: 12px; color: var(--text-3); }
#panel-vehicles .veh-cd {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 8px;
}
#panel-vehicles .veh-big {
  font-size: 26px;
  font-weight: 600;
  color: var(--c);
  font-variant-numeric: tabular-nums;
}
#panel-vehicles .veh-u { font-size: 12px; color: var(--text-2); }
#panel-vehicles .veh-prog {
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
#panel-vehicles .veh-prog i {
  display: block;
  height: 100%;
  background: var(--c);
  transform-origin: left;
  animation: veh-grow 1s ease both;
}
#panel-vehicles .veh-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
}
#panel-vehicles .veh-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 8px;
}
#panel-vehicles .veh-pill-overdue { background: var(--danger-soft); color: var(--danger); }
#panel-vehicles .veh-pill-soon { background: var(--warn-soft); color: var(--warn); }
#panel-vehicles .veh-pill-later { background: var(--ok-soft); color: var(--ok); }

#panel-vehicles .veh-grp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
#panel-vehicles .veh-as {
  font-size: 12px;
  color: var(--text-2);
  padding-left: 18px;
  margin: 6px 0 0;
}
#panel-vehicles .veh-as li { margin: 3px 0; }
#panel-vehicles .veh-later-note {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
  animation: veh-rise .4s ease both;
}

@keyframes veh-grow { from { transform: scaleX(0); } }
@keyframes veh-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  #panel-vehicles .veh-card,
  #panel-vehicles .veh-later-note,
  #panel-vehicles .veh-dot,
  #panel-vehicles .veh-prog i { animation: none; }
}
