}

.golden-fuel-toggle input {
  margin: 0;
}

.vehicle-api-panel {
  display: grid;
  gap: 8px;
}

.vehicle-api-panel h3 {
  margin: 0;
  font-size: 14px;
}

.vehicle-api-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}

.vehicle-api-row span {
  color: var(--muted);
}

.vehicle-api-row strong {
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.vehicle-api-json summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
}

.vehicle-api-json pre {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--row-base);
  font-size: 12px;
  white-space: pre-wrap;
}

.vehicle-profile {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.vehicle-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vehicle-profile-stats div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--row-base);
}

.vehicle-profile-stats span,
.vehicle-event-body p,
.vehicle-profile-section-head span {
  color: var(--muted);
  font-size: 13px;
}

.vehicle-profile-stats strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vehicle-profile-map {
  height: 240px;
}

.vehicle-profile-section {
  display: grid;
  gap: 10px;
}

.vehicle-profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-profile-section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vehicle-profile-section-head h3 {
  margin: 0;
  font-size: 15px;
}

.vehicle-events-list {
  display: grid;
  gap: 8px;
}

.vehicle-event {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--row-base);
}

.vehicle-event.is-route {
  background: color-mix(in srgb, var(--event-color, #fff) var(--row-status-strength), var(--row-base));
  border-color: color-mix(in srgb, var(--event-color, #fff) 55%, var(--line));
}

.vehicle-event.is-route[data-open-route-id] {
  cursor: pointer;
}

.vehicle-event.is-route[data-open-route-id]:hover,
.vehicle-event.is-route[data-open-route-id]:focus-visible {
  border-color: var(--accent);
}

.vehicle-event.is-route[data-dark="true"] {
  color: var(--row-dark-text);
  background: color-mix(in srgb, var(--event-color, #fff) var(--row-dark-strength), var(--row-dark-base));
  border-color: color-mix(in srgb, var(--event-color, #fff) 65%, var(--line));
}

.vehicle-event.is-route[data-dark="true"] .vehicle-event-date,
.vehicle-event.is-route[data-dark="true"] .vehicle-event-body p {
  color: var(--row-dark-text);
}

.vehicle-event-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.vehicle-event-body {
  min-width: 0;
}

.vehicle-event-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vehicle-event-title strong {
  overflow-wrap: anywhere;
}

.vehicle-event-body p {
  margin: 4px 0 0;
}

.vehicle-event-amount {
  flex: 0 0 auto;
  white-space: nowrap;
}

.vehicle-event-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--ink);
  background: var(--panel);
  font-size: 12px;
  font-weight: 700;
}

.vehicle-events-empty {
  margin: 0;
}

.vehicle-profile-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.vehicle-profile-details summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.vehicle-profile-details .vehicle-api-row {
  margin-top: 8px;
}

.error-text {
  color: #dc2626;
}

.vehicle-glonass-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

.vehicle-glonass-dot.is-linked {
  background: #16a34a;
}

.vehicle-section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.status-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, .18);
}

.status-color-input {
  width: 32px;
  height: 32px;
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 6px;
  background: #fff;
}

dialog {
  width: min(860px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(16, 35, 61, .28);
}

dialog::backdrop {
  background: rgba(16, 35, 61, .38);
}

#route-form,
.status-dialog-content {
  padding: 20px;
}

