﻿:root {
  --bg: #eaf0f4;
  --bg-accent: #d6e1e8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-ink: #13202b;
  --muted: #5e7282;
  --line: rgba(19, 32, 43, 0.12);
  --brand: #304a5e;
  --brand-deep: #1f3342;
  --brand-soft: #dde7ee;
  --success: #1f9d55;
  --success-hover: #188447;
  --success-press: #136b39;
  --highlight: #f2a93b;
  --shadow: 0 24px 60px rgba(18, 34, 48, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(242, 169, 59, 0.18), transparent 24rem),
    radial-gradient(circle at top right, rgba(48, 74, 94, 0.16), transparent 22rem),
    linear-gradient(180deg, #f7fafc 0%, var(--bg) 100%);
  color: var(--surface-ink);
  font-family: "Trebuchet MS", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

button,
a {
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

button:hover,
a:hover {
  transform: translateY(-1px);
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.18), 0 0 0 1px rgba(217, 146, 36, 0.58);
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(31, 51, 66, 0.98) 0%, rgba(48, 74, 94, 0.96) 100%);
  color: #f6fbfa;
}

.brand-block {
  margin-bottom: 28px;
}

.brand-link {
  display: inline-block;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 248px;
  max-width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.brand-block h1,
.topbar h2,
.hero-copy h3,
.panel-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.brand-block h1 {
  font-size: 2.15rem;
  line-height: 1;
}

.brand-copy {
  margin: 14px 0 0;
  color: rgba(246, 251, 250, 0.8);
  line-height: 1.6;
}

.nav-list {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.nav-link {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #f6fbfa;
  text-decoration: none;
}

.nav-link .fuel-inline-icon {
  margin-right: 8px;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.nav-link.is-disabled {
  color: rgba(246, 251, 250, 0.42);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  cursor: default;
  pointer-events: none;
}

.nav-link.is-disabled .fuel-inline-icon {
  opacity: 0.7;
}

.sidebar-panel {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-label {
  margin: 0 0 12px;
  font-weight: 700;
}

.sidebar-points {
  margin: 0;
  padding-left: 18px;
  color: rgba(246, 251, 250, 0.82);
  line-height: 1.7;
}

.main-panel {
  padding: 30px;
}

.main-panel > * {
  width: min(100%, 1320px);
  margin-left: auto;
  margin-right: auto;
}

.main-panel > section.panel {
  margin-bottom: 24px;
}

.main-panel > section.panel:last-of-type {
  margin-bottom: 0;
}

.topbar,
.hero-panel,
.panel,
.stat-card {
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar h2 {
  font-size: 2rem;
}

.page-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-deep);
}

.page-title-icon {
  color: var(--brand-deep);
  font-size: 0.9em;
  line-height: 1;
}

.has-tooltip {
  position: relative;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(2px);
  width: max-content;
  max-width: min(500px, 85vw);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(19, 32, 43, 0.96);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: pre-wrap;
  text-align: left;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
}

.has-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: rgba(19, 32, 43, 0.96);
  border-radius: 2px;
  rotate: 45deg;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9998;
}

.has-tooltip.tooltip-align-left::after {
  left: 0;
  transform: translateX(0) translateY(2px);
}

.has-tooltip.tooltip-align-left::before {
  left: 18px;
  transform: translateX(0);
}

.has-tooltip.tooltip-align-right::after {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(2px);
}

.has-tooltip.tooltip-align-right::before {
  left: auto;
  right: 18px;
  transform: translateX(0);
}

.has-tooltip.tooltip-below::after {
  bottom: auto;
  top: calc(100% + 10px);
}

.has-tooltip.tooltip-below::before {
  bottom: auto;
  top: calc(100% + 4px);
}

.has-tooltip:hover::after,
.has-tooltip:focus-visible::after,
.has-tooltip:hover::before,
.has-tooltip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.has-tooltip.tooltip-align-left:hover::after,
.has-tooltip.tooltip-align-left:focus-visible::after {
  transform: translateX(0) translateY(0);
}

.has-tooltip.tooltip-align-right:hover::after,
.has-tooltip.tooltip-align-right:focus-visible::after {
  transform: translateX(0) translateY(0);
}

.tooltip-measure-probe {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: max-content;
  max-width: min(500px, 85vw);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: pre-wrap;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

.service-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.fuel-modal-title,
.other-modal-title,
.vehicle-modal-title,
.financing-modal-title,
.insurance-modal-title,
.insurance-record-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.insurance-modal-title,
.insurance-record-modal-title {
  color: #398e9c!important;
}

.insurance-modal-title .page-title-icon,
.insurance-record-modal-title .page-title-icon {
  color: inherit !important;
}

body.page-fuel .page-title,
body.page-fuel .page-title-icon,
body.page-fuel .fuel-modal-title,
body.page-fuel .fuel-modal-title .page-title-icon {
  color: #334a5c;
}

body.page-service .page-title,
body.page-service .page-title-icon,
body.page-service .service-modal-title,
body.page-service .service-modal-title .page-title-icon {
  color: #b1771a;
}

body.page-other .page-title,
body.page-other .page-title-icon,
body.page-other .other-modal-title,
body.page-other .other-modal-title .page-title-icon {
  color: #5a7184;
}

body.page-financing .page-title,
body.page-financing .page-title-icon,
body.page-financing .financing-modal-title,
body.page-financing .financing-modal-title .page-title-icon {
  color: #224763;
}

body.page-financing .fuel-summary-panel .report-mix-card {
  text-align: center;
  justify-items: center;
}

body.page-financing .fuel-summary-panel .report-mix-top {
  justify-items: center;
  text-align: center;
}

body.page-financing .fuel-summary-panel .summary-label {
  justify-content: center;
  text-align: center;
}

body.page-financing .interest-saved-note {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.25;
}

body.page-financing .report-card-note {
  font-size: 0.72rem;
  line-height: 1.25;
}

body .stat-meta,
body .report-card-note {
  font-size: 0.8rem;
  line-height: 1.25;
}

body.page-vehicles .page-title,
body.page-vehicles .page-title-icon,
body.page-vehicles .vehicle-modal-title,
body.page-vehicles .vehicle-modal-title .page-title-icon {
  color: var(--brand-deep);
}

body.page-profile .page-title,
body.page-profile .page-title-icon {
  color: var(--brand-deep);
}

.topbar-subcopy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topbar-utility-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menu-toggle,
.ghost-button,
.primary-button,
.import-button,
.danger-button,
.segment,
.record-tab {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  padding: 10px 16px;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.mobile-app-bar {
  display: none;
}

.mobile-topbar-brand {
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--brand-deep);
  width: auto;
  height: 42px;
  border-radius: 12px;
}

.mobile-topbar-brand-logo {
  width: auto;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
}

.mobile-topbar-brand-logo img {
  width: auto;
  height: 36px;
  display: block;
}

.sidebar-backdrop {
  display: none;
}

.ghost-button,
.primary-button,
.import-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--surface-ink);
}

.primary-button {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(24, 132, 71, 0.28);
}

.import-button {
  background: linear-gradient(135deg, #04b2f7 0%, #0397d2 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(4, 178, 247, 0.28);
}

.danger-button {
  background: linear-gradient(135deg, #e35353 0%, #cf3f3f 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(207, 63, 63, 0.26);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--success-hover) 0%, var(--success-press) 100%);
}

.import-button:hover {
  background: linear-gradient(135deg, #0397d2 0%, #027fb1 100%);
}

.danger-button:hover {
  background: linear-gradient(135deg, #cf3f3f 0%, #b83232 100%);
}

.primary-button:active {
  background: var(--success-press);
}

.import-button:active {
  background: #027fb1;
}

.danger-button:active {
  background: #b83232;
}

.fuel-edit-record,
.service-edit-record,
.other-edit-record,
.vehicle-edit-record,
.insurance-edit-record,
.finance-edit-payment {
  background: linear-gradient(135deg, #27ae60 0%, var(--success) 55%, var(--success-hover) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(19, 107, 57, 0.82) !important;
  box-shadow: 0 10px 22px rgba(24, 132, 71, 0.28);
}

.fuel-edit-record:hover,
.service-edit-record:hover,
.other-edit-record:hover,
.vehicle-edit-record:hover,
.insurance-edit-record:hover,
.finance-edit-payment:hover {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 45%, var(--success-press) 100%) !important;
  color: #ffffff !important;
}

.fuel-edit-record .fuel-inline-icon,
.service-edit-record .fuel-inline-icon,
.other-edit-record .fuel-inline-icon,
.vehicle-edit-record .fuel-inline-icon,
.insurance-edit-record .fuel-inline-icon,
.finance-edit-payment .fuel-inline-icon {
  color: #ffffff;
}

.ghost-button:focus-visible,
.primary-button:focus-visible,
.import-button:focus-visible,
.danger-button:focus-visible,
.segment:focus-visible,
.record-tab:focus-visible {
  transform: translateY(-1px);
}

.vehicle-form {
  display: grid;
  gap: 4px;
}

.filter-rack {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.vehicle-form-card {
  min-width: 200px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.vehicle-form-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 6px;
}

.vehicle-select {
  min-width: 220px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--surface-ink);
  font: inherit;
}

.vehicle-select:focus,
.fuel-field input:focus,
.fuel-field select:focus,
.fuel-field textarea:focus {
  border-color: rgba(217, 146, 36, 0.72);
  background: #ffffff;
}

.modern-datepicker-shell {
  position: relative;
}

.modern-datepicker-shell::after {
  content: "\f073";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--brand);
  font-family: "Font Awesome 6 Free";
  font-size: 0.95rem;
  font-weight: 900;
  pointer-events: none;
  opacity: 0.78;
}

.modern-datepicker-shell .modern-datepicker-input {
  padding-right: 44px;
}

.topbar-utility-link {
  white-space: nowrap;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
  gap: 20px;
  margin-bottom: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(241, 246, 250, 0.92) 100%);
  box-shadow: var(--shadow);
}

.hero-panel-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-subtitle {
  margin: 4px 0 12px;
  color: var(--brand);
  font-weight: 700;
}

.report-debug-vehicle-type {
  display: inline-block;
  margin-left: 8px;
  color: rgba(48, 74, 94, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.08);
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy h3 {
  margin-bottom: 12px;
  font-size: 2.2rem;
}

.hero-stat {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  color: #f8fbfa;
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand) 100%);
}

.hero-stat-button {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.hero-stat-button:hover,
.hero-stat-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 34px rgba(18, 34, 48, 0.2);
}

.hero-stat-button * {
  text-decoration: none;
}

.hero-stat strong {
  font-size: 1.85rem;
  line-height: 1.1;
}

.hero-stat-label,
.hero-stat-note {
  opacity: 0.84;
}

.hero-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-stat-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #f9fcff;
  font-size: 0.72rem;
}

.hero-stat .hero-subtitle {
  margin: 0;
  color: rgba(248, 251, 250, 0.9);
  font-weight: 600;
}

.hero-stat-last-fillup {
  background: linear-gradient(160deg, #1f9d55 0%, #1a8748 100%);
}

.fuel-last-fillup-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fuel-last-fillup-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(243, 187, 74, 0.2);
  color: #ffd27a;
}

.fuel-last-fillup-meta {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.fuel-last-fillup-meta-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.fuel-last-fillup-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(248, 251, 250, 0.92);
  font-size: 0.86rem;
  line-height: 1.25;
}

.fuel-last-fillup-meta-item .fuel-inline-icon {
  width: 0.9em;
  text-align: center;
}

.service-last-service-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-last-service-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(243, 187, 74, 0.2);
  color: #ffd27a;
}

.service-last-service-meta-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.service-last-service-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(248, 251, 250, 0.92);
  font-size: 0.86rem;
  line-height: 1.25;
}

.service-last-service-meta-item .fuel-inline-icon {
  width: 0.9em;
  text-align: center;
}

.service-last-service-meta-sep {
  color: rgba(248, 251, 250, 0.66);
  font-size: 0.8rem;
}

.fuel-last-fillup-meta-sep {
  color: rgba(248, 251, 250, 0.66);
  font-size: 0.8rem;
}

.hero-stat-grid {
  display: grid;
  gap: 18px;
}

.hero-stat-item {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.hero-stat-item strong {
  font-size: 1.85rem;
  line-height: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

body.page-fuel .stats-grid:not(.stats-grid-ev) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.page-fuel .summary-card .stat-mix-visual {
  margin-top: 10px;
}

.stats-grid-maintenance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  justify-items: center;
}

.stat-card-primary {
  background: linear-gradient(150deg, rgba(31, 51, 66, 0.98) 0%, rgba(48, 74, 94, 0.96) 100%);
  color: #f7fbfa;
}

.stat-card-primary .stat-label,
.stat-card-primary .stat-meta {
  color: rgba(247, 251, 250, 0.78);
}

.stat-card-total {
  background:
    linear-gradient(150deg, rgba(31, 51, 66, 0.14) 0%, rgba(47, 93, 120, 0.1) 52%, rgba(77, 127, 149, 0.12) 100%);
  color: var(--ink);
}

.stat-card-total .stat-label,
.stat-card-total .stat-meta {
  color: var(--muted);
}

.accent-card {
  background: linear-gradient(160deg, rgba(242, 169, 59, 0.22) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.stat-card-fuel {
  background: linear-gradient(160deg, rgba(51, 74, 92, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card-service {
  background: linear-gradient(160deg, rgba(213, 154, 51, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card-other {
  background: linear-gradient(160deg, rgba(113, 137, 155, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card-insurance {
  background: linear-gradient(160deg, rgba(77, 127, 149, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.stat-card-finance {
  background: linear-gradient(160deg, rgba(31, 51, 66, 0.1) 0%, rgba(47, 93, 120, 0.06) 48%, rgba(255, 255, 255, 0.99) 100%);
}

.stat-card-sun {
  background: linear-gradient(160deg, rgba(242, 169, 59, 0.18) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.stat-card-sky {
  background: linear-gradient(160deg, rgba(90, 150, 190, 0.16) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.stat-card-slate {
  background: linear-gradient(160deg, rgba(48, 74, 94, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.stat-label,
.stat-meta,
.panel-note,
.summary-label {
  color: var(--muted);
}

.label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.label-icon-slate {
  background: rgba(48, 74, 94, 0.12);
  color: var(--brand-deep);
}

.label-icon-total {
  background: rgba(242, 169, 59, 0.18);
  color: #f2b24a;
}

.label-icon-amber {
  background: rgba(242, 169, 59, 0.18);
  color: #b06c06;
}

.label-icon-fuel {
  background: rgba(51, 74, 92, 0.14);
  color: #334a5c;
}

.label-icon-service {
  background: rgba(213, 154, 51, 0.2);
  color: #b1771a;
}

.label-icon-other {
  background: rgba(113, 137, 155, 0.18);
  color: #5a7184;
}

.label-icon-insurance {
  background: rgba(77, 127, 149, 0.18);
  color: #3e7388;
}

.label-icon-finance {
  background: rgba(31, 51, 66, 0.14);
  color: #224763;
}

.label-icon-sky {
  background: rgba(90, 150, 190, 0.18);
  color: #2f5f83;
}

.label-icon-mint {
  background: rgba(72, 157, 135, 0.17);
  color: #29695a;
}

.label-icon-green {
  background: rgba(31, 157, 85, 0.18);
  color: #1f7f4f;
}

.stat-card strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.accent-card strong {
  font-size: 1.7rem;
}

.report-total-metrics .stat-card strong,
.report-total-metrics .accent-card strong {
  font-size: 2rem;
}

.report-total-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card-maintenance {
  align-content: start;
  gap: 6px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.stat-card-maintenance strong {
  margin-top: 2px;
  font-size: 1.55rem;
  line-height: 1;
}

.stat-meter {
  width: 100%;
  max-width: 150px;
  height: 10px;
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.1);
  overflow: hidden;
}

.stat-meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fa15a 0%, var(--highlight) 100%);
}

.stat-meter-fill.is-danger {
  background: linear-gradient(90deg, #d75b48 0%, #f28c3b 100%);
}

.stat-meter-copy,
.stat-meter-subcopy {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.stat-meter-copy {
  font-size: 0.86rem;
  font-weight: 700;
}

.stat-meter-subcopy {
  font-size: 0.76rem;
}

.stat-gauge {
  width: 124px;
  height: 64px;
  border-radius: 112px 112px 0 0;
  background: conic-gradient(    
    from 180deg,
    #d86958 0deg 36deg,
    #dea14f 36deg 72deg,
    #7ea960 72deg 180deg
  );
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17, 31, 44, 0.08);
}

.stat-gauge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 65%);
}

.stat-gauge-inner {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  top: 16px;
  background: var(--surface);
  border-radius: 90px 90px 0 0;
  box-shadow: inset 0 0 0 1px rgba(17, 31, 44, 0.06);
}

.stat-gauge-needle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3px;
  height: 48px;
  background: #1e3143;
  border-radius: 999px;
  transform-origin: 50% calc(100% - 4px);
  transform: translateX(-50%) rotate(calc(-90deg + (var(--gauge-value, 0) * 1.8deg)));
  z-index: 2;
}

.stat-gauge-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #1e3143;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.stat-gauge.is-danger .stat-gauge-needle,
.stat-gauge.is-danger .stat-gauge-needle::after {
  background: #b34235;
}

.stat-gauge-scale {
  width: 124px;
  margin-top: -2px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card-mpg strong {
  font-size: 2rem;
}

.stat-card-mpg .stat-pair {
  align-items: center;
}

.stat-card-mpg.is-ev-efficiency {
  text-align: center;
}

.stat-card-mpg.is-ev-efficiency .stat-label.label-with-icon {
  justify-content: center;
}

.stat-card-mpg.is-ev-efficiency .stat-pair {
  justify-content: center;
}

.stat-pair {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-sidekick {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(90, 150, 190, 0.14);
  color: #2f5f83;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.stat-mix-visual {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 126px;
}

.stat-mix-pie {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    #304a5e 0 var(--city-mix, 50%),
    #f1c36d var(--city-mix, 50%) 100%
  );
  box-shadow:
    inset 0 0 0 1px rgba(19, 32, 43, 0.06),
    0 6px 14px rgba(18, 34, 48, 0.08);
  position: relative;
}

.stat-mix-pie::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(19, 32, 43, 0.05);
}

.stat-mix-legend {
  display: grid;
  gap: 3px;
  width: auto;
}

.stat-mix-legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
}

.stat-mix-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(19, 32, 43, 0.08);
}

.stat-mix-dot-city {
  background: #304a5e;
}

.stat-mix-dot-highway {
  background: #f1c36d;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-bottom: 24px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modern-flash,
.modern-errors {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 32, 43, 0.08);
}

.modern-flash {
  display: flex;
  align-items: center;
  background: rgba(48, 74, 94, 0.1);
  color: var(--brand-deep);
}

.modern-flash-warning {
  background: rgba(217, 143, 61, 0.12);
  color: #8b5620;
}

.modern-errors {
  background: rgba(190, 72, 63, 0.08);
  color: #8b2f26;
}

.ui-datepicker {
  z-index: 2400 !important;
  width: 18.25rem;
  padding: 0.55rem;
  border: 1px solid rgba(19, 32, 43, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(18, 34, 48, 0.18);
  font-family: "Trebuchet MS", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

.ui-datepicker .ui-datepicker-header {
  position: relative;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #ffffff;
}

.ui-datepicker .ui-datepicker-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 2.5rem;
  padding: 0.4rem 0;
  line-height: 1.2;
  font-weight: 700;
}

.ui-datepicker .ui-datepicker-title select {
  flex: 0 0 auto;
  min-width: 0;
  height: 1.9rem;
  padding: 0 1.75rem 0 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--surface-ink);
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: none;
}

.ui-datepicker .ui-datepicker-title select.ui-datepicker-month {
  width: 5rem;
}

.ui-datepicker .ui-datepicker-title select.ui-datepicker-year {
  width: 5.4rem;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  top: 50%;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.2);
}

.ui-datepicker .ui-datepicker-prev {
  left: 0.35rem;
}

.ui-datepicker .ui-datepicker-next {
  right: 0.35rem;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: none;
}

.ui-datepicker .ui-datepicker-prev::before,
.ui-datepicker .ui-datepicker-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform-origin: center;
}

.ui-datepicker .ui-datepicker-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.ui-datepicker .ui-datepicker-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.ui-datepicker table {
  margin: 0.5rem 0 0;
}

.ui-datepicker th {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ui-datepicker td {
  padding: 0.12rem;
}

.ui-datepicker td span,
.ui-datepicker td a {
  padding: 0.5rem 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--surface-ink);
  text-align: center;
}

.ui-datepicker td a:hover,
.ui-datepicker .ui-state-hover {
  background: rgba(48, 74, 94, 0.08);
  color: var(--brand-deep);
}

.ui-datepicker .ui-state-active,
.ui-datepicker .ui-widget-content .ui-state-active {
  background: linear-gradient(135deg, var(--highlight) 0%, #d99224 100%);
  color: #ffffff;
}

.ui-datepicker .ui-state-highlight,
.ui-datepicker .ui-widget-content .ui-state-highlight {
  background: rgba(242, 169, 59, 0.18);
  color: var(--brand-deep);
}

/* Charging modal datepicker: stabilize month/year header controls and prevent overlap. */
.page-charging .ui-datepicker {
  width: 19.5rem;
}

.page-charging .ui-datepicker .ui-datepicker-header {
  min-height: 3.05rem;
  padding-top: 0.32rem;
  padding-bottom: 0.32rem;
}

.page-charging .ui-datepicker .ui-datepicker-title {
  margin: 0 2.75rem;
  white-space: nowrap;
}

.page-charging .ui-datepicker .ui-datepicker-title select.ui-datepicker-month {
  width: 5.25rem;
}

.page-charging .ui-datepicker .ui-datepicker-title select.ui-datepicker-year {
  width: 5.65rem;
}

.modern-errors p {
  margin: 0;
}

.modern-errors p + p {
  margin-top: 8px;
}

.debug-output {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(19, 32, 43, 0.1);
  background: rgba(19, 32, 43, 0.05);
  color: var(--brand-deep);
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h3 {
  font-size: 1.6rem;
}

.panel-subcopy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.vehicle-hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.vehicle-hero-photo {
  width: 95px;
  height: 95px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
  border: 1px solid rgba(48, 74, 94, 0.12);
  background: rgba(232, 239, 244, 0.88);
  box-shadow: 0 14px 30px rgba(19, 32, 43, 0.12);
}

.vehicle-hero-photo-link {
  display: inline-flex;
  text-decoration: none;
}

.finance-hero-image-link {
  display: block;
  text-decoration: none;
}

.vehicle-hero-copy {
  min-width: 0;
}

.vehicle-hero-copy h3 {
  margin: 0;
}

.vehicle-hero-copy .hero-subtitle {
  margin-top: 7px;
}

.vehicle-odometer-line {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  color: rgba(248, 251, 250, 0.95);
  font-size: 0.84rem;
  font-weight: 700;
}

.vehicle-odometer-readout {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: 6px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(180deg, #2b3137 0%, #14191f 52%, #06090d 100%);
  color: #ffffff;
  font-family: "Nunito", "Segoe UI Rounded", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.28);
}

.vehicle-odometer-digit,
.vehicle-odometer-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1em;
}

.vehicle-odometer-digit {
  min-width: 0.82ch;
  padding: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, 0.35) 100%);
  position: relative;
  overflow: hidden;
  line-height: 1;
}

.vehicle-odometer-digit:last-child {
  border-right: 0;
}

.vehicle-odometer-sep {
  padding: 0;
  min-width: auto;
  color: rgba(255, 255, 255, 0.88);
}

.vehicle-odometer-digit-track {
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
  transition: transform 880ms cubic-bezier(0.22, 0.75, 0.18, 1);
  will-change: transform;
}

.vehicle-odometer-digit.play .vehicle-odometer-digit-track {
  transform: translateY(0);
}

.vehicle-odometer-digit-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1em;
  line-height: 1;
  margin: 0;
  padding: 0;
}

.segmented-control,
.record-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segment,
.record-tab {
  padding: 10px 14px;
  background: #e6eef3;
  color: var(--brand-deep);
}

.segment.active,
.record-tab.active {
  background: var(--brand);
  color: #ffffff;
}

.reports-segmented-control {
  gap: 6px;
  padding: 2px;
  border-radius: 10px;
  background: rgba(19, 32, 43, 0.06);
  display: inline-flex;
  flex-wrap: wrap;
}

.filter-rack .vehicle-form-card {
  min-width: 0;
  padding: 10px;
}

.filter-rack .vehicle-form {
  gap: 0;
}

.reports-segmented-control .segment {
  padding: 6px 9px;
  font-size: 0.78rem;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  line-height: 1.1;
}

.reports-segmented-control .segment.active {
  background: #304a5e;
  color: #fff;
  box-shadow: 0 2px 5px rgba(18, 34, 48, 0.16);
}

.vehicle-retired-view-toggle {
  width: fit-content;
}

.reports-segmented-control-wide {
  row-gap: 6px;
}

.reports-filter-rack {
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 12px;
}

.reports-filter-rack-inline {
  margin: 6px 0 14px;
}

.report-inline-filter-card {
  margin-left: auto;
  width: auto;
}

.panel-head-stack {
  flex-direction: column;
  align-items: flex-start;
}

.report-toggle-shell {
  display: inline-flex;
  width: fit-content;
}

.report-group-toggle {
  width: fit-content;
}

.report-expense-toggle {
  width: fit-content;
  margin: 10px 0 14px;
}

.report-trend-block + .report-trend-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(19, 32, 43, 0.08);
}

.report-trend-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.chart-placeholder {
  display: grid;
  align-items: end;
  gap: 14px;
  height: 280px;
  padding: 18px 0 10px;
  background:
    linear-gradient(to top, rgba(19, 32, 43, 0.06) 1px, transparent 1px) 0 0 / 100% 56px;
}

.chart-placeholder-live {
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
}

.chart-scroller {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.chart-scroll-viewport {
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.chart-scroll-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.chart-scroll-viewport::-webkit-scrollbar-thumb {
  display: none;
}

.chart-page-button {
  width: 34px;
  height: 34px;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(19, 32, 43, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-deep);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.chart-page-button:hover {
  background: #fff;
}

.chart-scroller:hover .chart-page-button,
.chart-scroller:focus-within .chart-page-button {
  opacity: 1;
  pointer-events: auto;
}

.report-chart-strip.chart-placeholder-live {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(74px, 74px);
  justify-content: start;
  min-width: max-content;
  padding: 6px 8px 18px;
}

.chart-placeholder.is-loading {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.chart-group {
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 10px;
  height: 100%;
}

.chart-line {
  display: block;
  width: 82%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(48, 74, 94, 0.32) 0%, rgba(48, 74, 94, 0.84) 100%);
  box-shadow: 0 4px 10px rgba(19, 32, 43, 0.14);
}

.chart-value,
.chart-month {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Charging records responsive source-of-truth. */
.charging-records-table .report-table-head,
.charging-records-table .report-table-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.charging-records-table .report-table-body {
  gap: 10px !important;
}

.charging-records-table .report-table-head > span,
.charging-records-table .report-table-row > span,
.charging-records-table .charging-table-actions {
  visibility: visible !important;
  opacity: 1 !important;
  min-width: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

.charging-records-table .report-table-head > span:first-child,
.charging-records-table .report-table-row > span[data-label="Date"] {
  flex: 1.08 1 0 !important;
}

.charging-records-table .report-table-head > span:nth-child(2),
.charging-records-table .report-table-row > span[data-label="kWh"] {
  flex: 0.82 1 0 !important;
}

.charging-records-table .report-table-head > span.charging-col-price,
.charging-records-table .report-table-row > span[data-label="Price"] {
  flex: 0.88 1 0 !important;
}

.charging-records-table .report-table-head > span:nth-child(4),
.charging-records-table .report-table-row > span[data-label="Cost"] {
  flex: 0.92 1 0 !important;
}

.charging-records-table .charging-cost-cell {
  font-weight: 700;
}

.charging-records-table .charging-cost-cell.charging-cost-better,
.charging-records-table .charging-cost-cell.charging-cost-worse {
  color: hsl(var(--charging-cost-hue, 205), 68%, 34%);
}

.charging-records-table .charging-col-type {
  flex: 0.78 1 0 !important;
}

.charging-records-table .charging-col-duration {
  flex: 0.86 1 0 !important;
}

.charging-records-table .charging-col-range {
  flex: 0.96 1 0 !important;
}

.charging-records-table .charging-col-where {
  flex: 0.72 1 0 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.charging-records-table .charging-col-odometer {
  flex: 0.92 1 0 !important;
}

.charging-records-table .charging-col-battery {
  flex: 1.02 1 0 !important;
}

.charging-records-table .report-table-head > span:last-child,
.charging-records-table .charging-table-actions {
  flex: 0 0 94px !important;
}

.charging-records-table .charging-table-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

.charging-records-table .report-table-row > span::before,
.charging-records-table .charging-table-actions::before {
  content: none !important;
  display: none !important;
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .charging-records-table .charging-col-battery,
  .charging-records-table .charging-col-odometer {
    display: none !important;
  }

  .charging-records-table .charging-col-where {
    flex: 0.95 1 0 !important;
  }
}

@media (min-width: 1120px) and (max-width: 1279px) {
  .charging-records-table .charging-col-price,
  .charging-records-table .charging-col-type,
  .charging-records-table .charging-col-battery,
  .charging-records-table .charging-col-odometer {
    display: none !important;
  }

  .charging-records-table .charging-col-where {
    flex: 1.1 1 0 !important;
  }
}

@media (min-width: 980px) and (max-width: 1119px) {
  .charging-records-table .report-table-head > span:nth-child(2),
  .charging-records-table .report-table-row > span[data-label="kWh"],
  .charging-records-table .charging-col-price,
  .charging-records-table .charging-col-type,
  .charging-records-table .charging-col-duration,
  .charging-records-table .charging-col-battery,
  .charging-records-table .charging-col-odometer {
    display: none !important;
  }

  .charging-records-table .charging-col-where {
    flex: 1.2 1 0 !important;
  }
}

@media (min-width: 860px) and (max-width: 979px) {
  .charging-records-table .report-table-head > span:nth-child(2),
  .charging-records-table .report-table-row > span[data-label="kWh"],
  .charging-records-table .charging-col-price,
  .charging-records-table .charging-col-type,
  .charging-records-table .charging-col-duration,
  .charging-records-table .charging-col-range,
  .charging-records-table .charging-col-battery,
  .charging-records-table .charging-col-odometer {
    display: none !important;
  }

  .charging-records-table .charging-col-where {
    flex: 1.28 1 0 !important;
  }
}

@media (min-width: 760px) and (max-width: 859px) {
  .charging-records-table .report-table-head > span:nth-child(2),
  .charging-records-table .report-table-row > span[data-label="kWh"],
  .charging-records-table .charging-col-price,
  .charging-records-table .charging-col-type,
  .charging-records-table .charging-col-duration,
  .charging-records-table .charging-col-range,
  .charging-records-table .charging-col-battery,
  .charging-records-table .charging-col-odometer {
    display: none !important;
  }

  .charging-records-table .charging-col-where {
    flex: 1.22 1 0 !important;
  }
}

@media (min-width: 680px) and (max-width: 759px) {
  .charging-records-table .report-table-head > span:nth-child(2),
  .charging-records-table .report-table-row > span[data-label="kWh"],
  .charging-records-table .charging-col-price,
  .charging-records-table .charging-col-type,
  .charging-records-table .charging-col-duration,
  .charging-records-table .charging-col-range,
  .charging-records-table .charging-col-battery,
  .charging-records-table .charging-col-odometer {
    display: none !important;
  }

  .charging-records-table .charging-col-where {
    flex: 1.06 1 0 !important;
  }

  .charging-records-table .report-table-head > span:last-child,
  .charging-records-table .charging-table-actions {
    flex-basis: 88px !important;
  }
}

@media (max-width: 679px) {
  .charging-records-table .report-table-head {
    display: none !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 14px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 24px rgba(18, 34, 48, 0.06) !important;
    align-items: start !important;
    overflow: hidden !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) > span,
  .charging-records-table .charging-col-type,
  .charging-records-table .charging-col-price,
  .charging-records-table .charging-col-where,
  .charging-records-table .charging-col-battery,
  .charging-records-table .charging-col-duration,
  .charging-records-table .charging-col-range,
  .charging-records-table .charging-col-odometer,
  .charging-records-table .report-table-row:not(.report-table-head) > span[data-label="kWh"],
  .charging-records-table .report-table-row:not(.report-table-head) > span[data-label="Price"] {
    display: block !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    text-overflow: clip !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) > span::before,
  .charging-records-table .charging-table-actions::before {
    content: attr(data-label) !important;
    display: block !important;
    margin-bottom: 4px !important;
    color: var(--muted) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .charging-records-table .charging-table-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
  }

  .charging-records-table .charging-table-actions::before {
    content: none !important;
    display: none !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) > span[data-label="Actions"]::before {
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 519px) {
  .charging-records-table .report-table-row:not(.report-table-head) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 679px) {
  .drive-log-table .report-table-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 14px;
  }
}

@media (max-width: 519px) {
  .drive-log-table .report-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.insight-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.record-panel {
  display: none;
}

.record-panel.active {
  display: block;
}

.data-table {
  display: grid;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 110px 90px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(19, 32, 43, 0.07);
}

.table-head {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  display: grid;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(48, 74, 94, 0.08);
  text-align: center;
  justify-items: center;
}

a.summary-card-link,
a.summary-card-link:link,
a.summary-card-link:visited,
a.summary-card-link:hover,
a.summary-card-link:active {
  display: block;
  color: inherit;
  text-decoration: none;
}

.summary-card-strong {
  background: linear-gradient(145deg, rgba(48, 74, 94, 0.14) 0%, rgba(221, 231, 238, 0.92) 100%);
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.7rem;
}

.summary-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.3;
}

.report-summary-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-summary-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-efficiency-grid > .summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(48, 74, 94, 0.12);
  background:
    radial-gradient(120% 95% at 0% 0%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(110% 90% at 100% 100%, rgba(106, 138, 161, 0.1) 0%, rgba(106, 138, 161, 0) 58%),
    linear-gradient(150deg, rgba(235, 240, 245, 0.95) 0%, rgba(217, 224, 231, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 24px rgba(15, 27, 36, 0.055);
}

.report-efficiency-grid > .summary-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 45%);
}

.report-summary-top-gap {
  margin-top: 14px;
}

.ev-savings-section {
  margin-top: 40px;
}

.report-card-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.report-card-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.report-card-note-cell {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
}

.report-card-note-cell:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 1px;
  height: 50%;
  transform: translateY(-50%);
  background: rgba(19, 32, 43, 0.12);
}

.report-card-note-label,
.report-card-note-value {
  font-size: 0.92rem;
}

.report-card-note-label {
  font-weight: 700;
}

.report-card-note-value {
  font-weight: 800;
}

.dashboard-needs-action-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 170, 82, 0.2);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(255, 248, 232, 0.88) 0%, rgba(255, 248, 232, 0) 52%),
    linear-gradient(160deg, rgba(255, 252, 246, 0.98) 0%, rgba(248, 242, 231, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 18px 34px rgba(33, 26, 15, 0.05);
}

.dashboard-needs-action-grid > .dashboard-action-card {
  position: relative;
  overflow: hidden;
  align-content: start;
  gap: 10px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(206, 161, 83, 0.18);
  background:
    radial-gradient(110% 100% at 0% 0%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.98) 0%, rgba(249, 243, 233, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 28px rgba(33, 26, 15, 0.07);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.dashboard-needs-action-grid > .dashboard-action-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 32px rgba(33, 26, 15, 0.1);
}

.dashboard-action-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #d9a24e 0%, #e0bc7d 100%);
}

.dashboard-action-card .summary-label {
  position: relative;
  z-index: 1;
}

.dashboard-action-status {
  margin-top: 0;
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand-deep);
}

.dashboard-action-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.08);
  color: var(--brand-deep);
  font-weight: 600;
}

.dashboard-action-date i {
  color: #49677f;
}

.dashboard-action-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(170, 56, 36, 0.12);
  color: #9c311c;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-action-card.is-overdue {
  border-color: rgba(170, 56, 36, 0.28);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 243, 238, 0.92) 0%, rgba(255, 243, 238, 0) 58%),
    linear-gradient(180deg, rgba(255, 249, 247, 0.99) 0%, rgba(252, 236, 231, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 20px 36px rgba(137, 44, 24, 0.12);
}

.dashboard-action-card.is-overdue::before {
  width: 7px;
  background: linear-gradient(180deg, #b6462d 0%, #df7b54 100%);
}

.dashboard-action-card.is-overdue .dashboard-action-status {
  color: #8f2916;
}

.dashboard-action-card.is-overdue .dashboard-action-date {
  background: rgba(170, 56, 36, 0.1);
  color: #8f2916;
}

.dashboard-action-card.is-overdue .dashboard-action-date i {
  color: #b6462d;
}

.report-comparison-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(48, 74, 94, 0.18);
  background: rgba(48, 74, 94, 0.08);
  color: var(--brand-deep);
  font-weight: 600;
}

.report-comparison-note i {
  color: rgba(48, 74, 94, 0.78);
  font-size: 0.82rem;
}

.report-comparison-note small {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.report-efficiency-benchmark-card {
  grid-column: 1 / -1;
  text-align: left;
  justify-items: start;
}

.report-efficiency-grid > .report-efficiency-benchmark-card {
  overflow: visible;
}

.report-efficiency-benchmark-card strong {
  margin-top: 8px;
}

.report-benchmark-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.report-benchmark-matrix {
  display: grid;
  grid-template-columns: minmax(200px, 24%) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 50px;
  width: 100%;
  margin-top: 12px;
  align-items: start;
}

.report-benchmark-metric-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  color: var(--brand-deep);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-benchmark-metric-head > span:first-child {
  white-space: nowrap;
}

.report-benchmark-metric-head small {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--muted);
}

.report-benchmark-entity-row {
  display: grid;
  gap: 5px;
  align-content: center;
  min-width: 0;
}

.report-benchmark-entity-label {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.report-benchmark-entity-label > span:first-child {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-benchmark-entity-label.is-tracked {
  color: #2f6f98;
}

.report-benchmark-entity-label.is-epa {
  color: #4f6d86;
}

.report-benchmark-entity-label.is-similar {
  color: #2e8b68;
}

.report-inline-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1;
  cursor: help;
  opacity: 0.9;
}

.report-inline-info:hover {
  opacity: 1;
}

.report-benchmark-entity-mix {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-benchmark-entity-mix i {
  opacity: 0.85;
}

.report-benchmark-mix-sep {
  opacity: 0.6;
}

.report-benchmark-bar-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.report-benchmark-bar-line.is-compact {
  margin-top: 8px;
}

.report-benchmark-bar-track {
  height: 26px;
  border-radius: 999px;
  background: rgba(19, 32, 43, 0.1);
  overflow: hidden;
}

.report-benchmark-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.report-benchmark-bar.is-tracked {
  background: linear-gradient(90deg, #2C5687 0%, #3f6796 100%);
}

.report-benchmark-bar.is-epa {
  background: linear-gradient(90deg, #3F9AAE 0%, #59afc1 100%);
}

.report-benchmark-bar.is-similar {
  background: linear-gradient(90deg, #D39A33 0%, #e3ae4f 100%);
}

.report-benchmark-bar-value {
  color: var(--brand-deep);
  font-size: 1.06rem;
  font-weight: 700;
  min-width: 64px;
  text-align: right;
}

.report-benchmark-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.report-benchmark-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.report-benchmark-badge.is-good {
  background: rgba(56, 127, 93, 0.16);
  border-color: rgba(56, 127, 93, 0.28);
  color: #245c42;
}

.report-benchmark-badge.is-bad {
  background: rgba(184, 93, 84, 0.14);
  border-color: rgba(184, 93, 84, 0.28);
  color: #7b312b;
}

.report-benchmark-metric-head .report-benchmark-badge {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.9rem;
}

.report-benchmark-metric-head .report-benchmark-badge.is-good,
.report-benchmark-metric-head .report-benchmark-badge.is-bad {
  background: transparent;
  border-color: transparent;
  color: #2a7a57;
}

.report-environment-head .report-benchmark-badge {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.9rem;
}

.report-environment-head .report-benchmark-badge.is-good,
.report-environment-head .report-benchmark-badge.is-bad {
  background: transparent;
  border-color: transparent;
  color: #2a7a57;
}

.report-environment-impact-card {
  grid-column: 1 / -1;
  text-align: left;
  justify-items: start;
}

.report-environment-impact-card strong {
  margin-top: 8px;
}

.report-environment-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-environment-head strong {
  margin-top: 8px;
}

.report-environment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.report-environment-stat {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(19, 32, 43, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

.report-environment-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.report-environment-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.report-environment-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.report-environment-stat .report-environment-meta {
  color: rgba(48, 74, 94, 0.82);
}

.report-environment-stat .report-environment-detail {
  color: rgba(48, 74, 94, 0.68);
}

@media (max-width: 640px) {
  .report-benchmark-matrix {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .report-benchmark-metric-head {
    display: none;
  }

  .report-benchmark-entity-row {
    margin-top: 4px;
  }

  .report-benchmark-bar-line.is-compact {
    margin-top: 4px;
    margin-bottom: 10px;
  }

  .report-benchmark-bar-track {
    height: 18px;
  }

  .report-benchmark-bar-value {
    font-size: 0.9rem;
  }

  .report-benchmark-entity-label {
    font-size: 0.95rem;
  }

  .report-environment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-environment-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .report-environment-head .report-benchmark-badge {
    width: 100%;
    justify-content: flex-start;
  }

  .report-environment-stat {
    padding: 10px 10px;
  }

  .report-environment-stat strong {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .report-environment-stat span {
    margin-top: 5px;
    font-size: 0.75rem;
    line-height: 1.45;
    word-break: break-word;
  }

  .report-environment-stat .report-environment-detail {
    margin-top: 3px;
  }
}

@media (max-width: 900px) {
  .report-benchmark-metric-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .report-benchmark-metric-head .report-benchmark-badge {
    width: 100%;
    justify-content: flex-start;
  }
}

.report-mpg-range-values,
.report-seasonal-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.report-mpg-range-value,
.report-seasonal-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.report-mpg-range-value small,
.report-seasonal-value small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(19, 32, 43, 0.62);
}

.report-mpg-range-value.is-best {
  color: #4b7e69;
}

.report-mpg-range-value.is-worst {
  color: #9a7350;
}

.report-seasonal-value.is-summer {
  color: #9a7350;
}

.report-seasonal-value.is-winter {
  color: #567997;
}

.report-days-between-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.report-days-between-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-days-between-cell {
  position: relative;
  text-align: center;
  padding: 4px 2px;
}

.report-days-between-cell:not(:last-child) {
  border-right: 0;
}

.report-days-between-cell:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 1px;
  height: 50%;
  transform: translateY(-50%);
  background: rgba(19, 32, 43, 0.12);
}

.report-days-between-cell small {
  display: block;
  color: rgba(19, 32, 43, 0.58);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.report-days-between-cell.is-avg small {
  color: rgba(19, 32, 43, 0.58);
}

.report-days-between-cell.is-most small {
  color: #4b7e69;
}

.report-days-between-cell.is-least small {
  color: #9a7350;
}

.report-days-between-cell strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
  line-height: 1.1;
}

.report-days-between-cell.is-avg strong {
  font-size: 1.9rem;
}

.report-average-mpg-card .report-days-between-cell strong {
  font-size: 1.36rem;
}

.report-average-mpg-card .report-days-between-cell.is-avg strong {
  font-size: 1.62rem;
}

.report-days-between-cell.is-best small {
  color: #4b7e69;
}

.report-days-between-cell.is-worst small {
  color: #9a7350;
}

.report-days-between-cell.is-summer small {
  color: #9a7350;
}

.report-days-between-cell.is-winter small {
  color: #567997;
}

.report-days-between-cell.is-city small {
  color: #9a7350;
}

.report-days-between-cell.is-highway small {
  color: #567997;
}

.report-epa-benchmark-card {
  grid-column: 1 / -1;
  text-align: left;
  justify-items: start;
}

.report-epa-benchmark-card strong {
  margin-top: 8px;
}

.report-mix-card {
  align-content: start;
}

.report-drive-mix-card-body {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
}

.report-drive-mix-donut {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 34%, transparent 35%),
    conic-gradient(#48657d 0 var(--mix-city), #f0b857 var(--mix-city) 100%);
  box-shadow: inset 0 0 0 1px rgba(19, 32, 43, 0.08);
}

.report-drive-mix-legend {
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: left;
}

.report-drive-mix-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.report-drive-mix-legend-item i {
  color: #48657d;
  font-size: 0.7rem;
}

.report-drive-mix-legend-item.is-highway i {
  color: #f0b857;
}

.report-chart-meta {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-table {
  display: grid;
  gap: 10px;
}

.report-table-body {
  display: grid;
  gap: 10px;
}

.report-table-row {
  display: grid;
  grid-template-columns: 90px repeat(9, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 32, 43, 0.07);
}

.report-table-yearly .report-table-row {
  grid-template-columns: 90px repeat(10, minmax(0, 1fr));
}

.report-table-yearly.is-ev .report-table-row {
  grid-template-columns: 90px repeat(10, minmax(0, 1fr));
}

.report-table-yearly.is-all .report-table-row {
  grid-template-columns: 90px repeat(9, minmax(0, 1fr));
}

.report-table-row span:first-child {
  font-weight: 800;
  color: var(--brand-deep);
}

.report-table-row-average {
  background: linear-gradient(145deg, rgba(48, 74, 94, 0.12) 0%, rgba(242, 247, 250, 0.92) 100%);
  border-color: rgba(48, 74, 94, 0.12);
  font-weight: 700;
}

.report-table-row-average[data-report-fixed="total"] {
  background: linear-gradient(145deg, rgba(37, 112, 88, 0.16) 0%, rgba(236, 248, 243, 0.95) 100%);
  border-color: rgba(37, 112, 88, 0.18);
}

.report-table-row-average[data-report-fixed="average"] {
  background: linear-gradient(145deg, rgba(48, 74, 94, 0.14) 0%, rgba(240, 245, 249, 0.96) 100%);
  border-color: rgba(48, 74, 94, 0.14);
}

.report-table-head {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.report-sort-button::after {
  content: "\f0dc";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.74rem;
  opacity: 0.4;
}

.report-sort-button.is-active::after {
  content: "\f0dd";
  opacity: 0.9;
}

.report-sort-button.is-active[data-sort-direction="asc"]::after {
  content: "\f0de";
}

@media (min-width: 1101px) and (max-width: 1439px) {
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(9),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(10),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(9),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(10) {
    display: none;
  }

  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head,
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  .report-table-yearly.is-ev:not(.is-all) .report-table-head > span:nth-child(8),
  .report-table-yearly.is-ev:not(.is-all) .report-table-head > span:nth-child(10),
  .report-table-yearly.is-ev:not(.is-all) .report-table-row > span:nth-child(8),
  .report-table-yearly.is-ev:not(.is-all) .report-table-row > span:nth-child(10) {
    display: none;
  }

  .report-table-yearly.is-ev:not(.is-all) .report-table-head,
  .report-table-yearly.is-ev:not(.is-all) .report-table-row {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.vehicle-hero-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-hero-heading-row h3 {
  margin-bottom: 0;
}

.vehicle-energy-open-modal {
  margin-top: 0;
  flex-shrink: 0;
}

.vehicle-energy-topbar-button {
  background: linear-gradient(135deg, #04b2f7 0%, #0a8fdd 100%) !important;
  border-color: rgba(8, 116, 179, 0.92) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(7, 137, 210, 0.28);
}

.vehicle-energy-topbar-button:hover {
  background: linear-gradient(135deg, #08a8ea 0%, #087dc2 100%) !important;
}

@media (max-width: 700px) {
  .vehicle-hero-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.vehicle-energy-form .fuel-editor-actions {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.vehicle-energy-head {
  align-items: flex-start;
}

.vehicle-energy-modal .fuel-modal-panel {
  width: min(851px, calc(100vw - 32px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.vehicle-energy-close-button {
  margin-left: auto;
}

.vehicle-energy-form {
  display: grid;
  gap: 4px;
}

.vehicle-energy-columns {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.vehicle-energy-column {
  border: 1px solid rgba(48, 74, 94, 0.12);
  border-top: 3px solid rgba(48, 74, 94, 0.34);
  border-radius: var(--radius-lg);
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(19, 32, 43, 0.06);
}

.vehicle-energy-column-a {
  border-top-color: rgba(31, 157, 85, 0.72);
}

.vehicle-energy-column-b {
  border-top-color: rgba(56, 125, 189, 0.72);
}

.vehicle-energy-column-title {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.vehicle-energy-form .fuel-field {
  margin-bottom: 12px;
}

.vehicle-energy-form .fuel-field:last-child {
  margin-bottom: 0;
}

.vehicle-energy-shared-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 16px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.vehicle-energy-shared-fields .fuel-field {
  margin-bottom: 0;
}

.vehicle-energy-shared-fields input {
  text-align: center;
}

.vehicle-energy-reset-field {
  display: grid;
  align-content: end;
}

.vehicle-energy-reset-field span {
  visibility: hidden;
}

.energy-reset-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(48, 74, 94, 0.24);
  background: #ffffff;
  color: var(--brand-deep);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.energy-reset-button:hover {
  background: rgba(48, 74, 94, 0.06);
  border-color: rgba(48, 74, 94, 0.34);
}

.energy-reset-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(4, 178, 247, 0.2);
}

.energy-source-toggle {
  width: 100%;
  display: flex;
  flex-wrap: nowrap !important;
  align-items: stretch;
}

.energy-source-toggle .segment {
  flex: 1 1 0;
  white-space: nowrap;
  min-width: 0;
  text-align: center;
}

.vehicle-energy-results .report-card-note[id^="energyMath"] {
  display: none;
}

.vehicle-energy-result-card {
  background: #ffffff;
  border: 1px solid rgba(48, 74, 94, 0.12);
  border-top: 3px solid rgba(48, 74, 94, 0.34);
  --vehicle-energy-accent: rgba(48, 74, 94, 0.34);
  box-shadow: 0 8px 18px rgba(19, 32, 43, 0.06);
  align-content: start;
}

.vehicle-energy-result-card-a {
  border-top-color: rgba(31, 157, 85, 0.72);
  --vehicle-energy-accent: rgba(31, 157, 85, 0.72);
}

.vehicle-energy-result-card-b {
  border-top-color: rgba(56, 125, 189, 0.72);
  --vehicle-energy-accent: rgba(56, 125, 189, 0.72);
}

.vehicle-energy-result-card-diff {
  border-top-color: rgba(220, 156, 49, 0.72);
}

.vehicle-energy-result-card-five {
  border-top-color: rgba(104, 120, 156, 0.72);
}

.vehicle-energy-result-card-diff,
.vehicle-energy-result-card-five {
  grid-template-rows: auto 1fr;
}

.vehicle-energy-result-card-diff strong,
.vehicle-energy-result-card-five strong {
  margin-top: 0;
  align-self: center;
}

.vehicle-energy-result-image {
  width: 52px;
  height: 52px;
  margin: 6px auto 8px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(48, 74, 94, 0.14);
  box-shadow: 0 6px 14px rgba(19, 32, 43, 0.1);
}

.vehicle-energy-result-card.is-most-efficient {
  border: 2px solid var(--vehicle-energy-accent);
  box-shadow: 0 0 0 3px var(--vehicle-energy-accent), 0 14px 24px rgba(19, 32, 43, 0.1);
}

.vehicle-energy-result-card .summary-label.label-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vehicle-energy-result-card.has-tooltip::after {
  width: clamp(280px, 34vw, 360px);
  max-width: min(360px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(173, 205, 234, 0.28);
  background: linear-gradient(180deg, rgba(28, 45, 62, 0.98), rgba(21, 36, 51, 0.98));
  color: rgba(244, 250, 255, 0.98);
  font-size: 0.84rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 42px rgba(8, 15, 23, 0.4);
  text-wrap: pretty;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.vehicle-energy-result-card.has-tooltip::before {
  bottom: calc(100% + 5px);
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: rgba(23, 39, 55, 0.98);
}

.vehicle-energy-results {
  position: relative;
}

.vehicle-energy-results.is-calculating::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 2;
}

.vehicle-energy-results.is-calculating::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  margin-left: -13px;
  border-radius: 50%;
  border: 2px solid rgba(48, 74, 94, 0.24);
  border-top-color: rgba(4, 178, 247, 0.92);
  animation: vehicle-energy-spin 0.75s linear infinite;
  z-index: 3;
  pointer-events: none;
}

.vehicle-energy-results.is-calculating .summary-card strong,
.vehicle-energy-results.is-calculating .summary-card .summary-label,
.vehicle-energy-results.is-calculating .summary-card .report-card-note {
  opacity: 0.55;
}

@keyframes vehicle-energy-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .vehicle-energy-modal .fuel-modal-panel {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  }

  .vehicle-energy-columns,
  .vehicle-energy-shared-fields {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  .vehicle-energy-modal .fuel-modal-panel {
    overflow: visible;
  }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(8),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(9),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(10),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(11),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(8),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(9),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(10),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(11) {
    display: none;
  }

  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head,
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .report-table-yearly.is-ev:not(.is-all) .report-table-head > span:nth-child(8),
  .report-table-yearly.is-ev:not(.is-all) .report-table-head > span:nth-child(10),
  .report-table-yearly.is-ev:not(.is-all) .report-table-head > span:nth-child(11),
  .report-table-yearly.is-ev:not(.is-all) .report-table-row > span:nth-child(8),
  .report-table-yearly.is-ev:not(.is-all) .report-table-row > span:nth-child(10),
  .report-table-yearly.is-ev:not(.is-all) .report-table-row > span:nth-child(11) {
    display: none;
  }

  .report-table-yearly.is-ev:not(.is-all) .report-table-head,
  .report-table-yearly.is-ev:not(.is-all) .report-table-row {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (min-width: 641px) and (max-width: 920px) {
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(8),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(9),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(10),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head > span:nth-child(11),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(8),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(9),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(10),
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row > span:nth-child(11) {
    display: none;
  }

  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-head,
  .report-table-yearly:not(.is-ev):not(.is-all) .report-table-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
  }

  .report-table-yearly.is-ev:not(.is-all) .report-table-head > span:nth-child(5),
  .report-table-yearly.is-ev:not(.is-all) .report-table-head > span:nth-child(8),
  .report-table-yearly.is-ev:not(.is-all) .report-table-head > span:nth-child(10),
  .report-table-yearly.is-ev:not(.is-all) .report-table-head > span:nth-child(11),
  .report-table-yearly.is-ev:not(.is-all) .report-table-row > span:nth-child(5),
  .report-table-yearly.is-ev:not(.is-all) .report-table-row > span:nth-child(8),
  .report-table-yearly.is-ev:not(.is-all) .report-table-row > span:nth-child(10),
  .report-table-yearly.is-ev:not(.is-all) .report-table-row > span:nth-child(11) {
    display: none;
  }

  .report-table-yearly.is-ev:not(.is-all) .report-table-head,
  .report-table-yearly.is-ev:not(.is-all) .report-table-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
  }
}

.report-station-list {
  display: grid;
  gap: 12px;
}

.report-station-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(19, 32, 43, 0.07);
}

.report-station-row > div {
  min-width: 0;
}

.report-station-row strong,
.report-station-row span {
  display: block;
}

.report-station-row strong {
  overflow-wrap: anywhere;
}

.report-station-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.report-station-head {
  background: transparent;
  border: 0;
  padding-top: 2px;
  padding-bottom: 6px;
}

.report-station-head strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-station-head span {
  display: none;
}

.report-mix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.report-mix-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 22px;
  align-items: center;
}

.report-mix-pie-wrap {
  display: grid;
  place-items: center;
  padding: 12px 0;
}

.report-mix-pie {
  width: 240px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: relative;
  isolation: isolate;
  overflow: visible;
  box-shadow: 0 14px 30px rgba(19, 32, 43, 0.2);
}

.report-mix-slices {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 0;
}

.report-mix-slice {
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.report-mix-slice:hover,
.report-mix-slice:focus-visible {
  filter: brightness(1.08);
}

.report-mix-pie::after {
  content: "";
  position: absolute;
  inset: 52px;
  border-radius: 50%;
  background: #eef2f5;
  z-index: 0;
}

.report-mix-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
}

.report-mix-center strong {
  font-size: clamp(1rem, 1rem + 0.30vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.report-mix-center span {
  color: var(--muted);
   font-size: clamp(.6rem, .6rem + 0.10vw, 2rem);
  text-transform: uppercase;
  letter-spacing: clamp(0.05em, 0.04em + 0.14vw, 0.08em);
  line-height: 1.1;
}

.report-mix-callout {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  background: rgba(22, 26, 31, 0.96);
  box-shadow: 0 10px 18px rgba(8, 12, 16, 0.28);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 54px;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-mix-segment-percent {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.report-mix-legend {
  display: grid;
  gap: 12px;
  --report-mix-amount-col: clamp(96px, 14vw, 144px);
  --report-mix-percent-col: clamp(48px, 8vw, 72px);
  --report-mix-value-gap: clamp(6px, 1.1vw, 12px);
}

.report-mix-legend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(19, 32, 43, 0.08);
}

.report-mix-legend-values {
  display: grid;
  grid-template-columns: var(--report-mix-amount-col) var(--report-mix-percent-col);
  align-items: center;
  justify-content: end;
  column-gap: var(--report-mix-value-gap);
  white-space: nowrap;
}

.report-mix-legend-value {
  display: inline-block;
  width: 100%;
  text-align: right;
  letter-spacing: -0.01em;
}

.report-mix-legend-percent {
  display: inline-block;
  width: 100%;
  text-align: left;
  color: #4b6174;
  font-size: 1rem;
  font-weight: 700;
}

.green-rating-score {
  color: var(--success-hover);
}

.green-rating-leaves {
  display: inline-flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 1rem;
  color: rgba(31, 157, 85, 0.24);
}

.green-rating-leaves .is-on {
  color: var(--success);
}

.report-leader-label {
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.report-leaders-shell {
  display: grid;
  gap: 12px;
}

.report-leader-tabs {
  width: fit-content;
}

.report-leader-panel {
  display: none;
  gap: 10px;
}

.report-leader-panel.is-active {
  display: grid;
}

.report-leader-subtabs {
  width: fit-content;
}

.report-leader-tabs .segment {
  padding: 9px 14px;
  font-size: 0.9rem;
  border-radius: 10px;
}

.report-leader-subtabs .segment {
  padding: 5px 10px;
  font-size: 0.76rem;
  border-radius: 8px;
}

.report-leader-subtabs .segment.active {
  background: #f2a93b;
  color: #13202b;
  box-shadow: 0 2px 5px rgba(146, 97, 21, 0.28);
}

.report-leader-card {
  display: none;
  width: 100%;
  justify-items: stretch;
  text-align: left;
  gap: 10px;
  padding: 14px;
}

.report-leader-card.is-active {
  display: grid;
}

.report-leader-card .report-station-list {
  width: 100%;
  gap: 8px;
}

.report-leader-row {
  padding: 12px 14px;
}

.report-leader-row-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.report-leader-row-link:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 157, 85, 0.35);
  box-shadow: 0 10px 20px rgba(19, 32, 43, 0.1);
}

.report-mix-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(48, 74, 94, 0.12);
  background:
    radial-gradient(120% 95% at 0% 0%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(110% 90% at 100% 100%, rgba(106, 138, 161, 0.1) 0%, rgba(106, 138, 161, 0) 58%),
    linear-gradient(150deg, rgba(235, 240, 245, 0.95) 0%, rgba(217, 224, 231, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 12px 24px rgba(15, 27, 36, 0.055);
}

.report-mix-top {
  display: grid;
  gap: 8px;
}

.report-mix-top strong {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.report-mix-bar {
  margin-top: 14px;
  height: 12px;
  border-radius: 999px;
  background: rgba(19, 32, 43, 0.08);
  overflow: hidden;
}

.report-mix-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.report-mix-fill-fuel {
  background: linear-gradient(90deg, #334a5c 0%, #4f6a7e 100%);
}

.report-mix-fill-service {
  background: linear-gradient(90deg, #d59a33 0%, #f2b24a 100%);
}

.report-mix-fill-other {
  background: linear-gradient(90deg, #71899b 0%, #9eb1be 100%);
}

.report-mix-fill-insurance {
  background: linear-gradient(90deg, #4d7f95 0%, #74a7bd 100%);
}

.report-mix-fill-finance {
  background: linear-gradient(90deg, #1f3342 0%, #2f5d78 100%);
}

.report-chart-line-mpg {
  background: linear-gradient(180deg, rgba(242, 169, 59, 0.32) 0%, rgba(213, 154, 51, 0.92) 100%);
}

.report-chart-line-miles {
  background: linear-gradient(180deg, rgba(113, 137, 155, 0.34) 0%, rgba(48, 74, 94, 0.82) 100%);
}

.report-chart-line-kwh {
  background: linear-gradient(180deg, rgba(47, 127, 165, 0.32) 0%, rgba(34, 112, 146, 0.9) 100%);
}

.report-chart-line-savings {
  background: linear-gradient(180deg, rgba(45, 160, 99, 0.3) 0%, rgba(29, 132, 78, 0.92) 100%);
}

.report-chart-line-savings.is-negative {
  background: linear-gradient(180deg, rgba(201, 97, 93, 0.3) 0%, rgba(168, 64, 61, 0.9) 100%);
}

.report-chart-line-cumulative {
  background: linear-gradient(180deg, rgba(43, 110, 161, 0.28) 0%, rgba(33, 86, 128, 0.92) 100%);
}

.report-chart-line-cumulative.is-negative {
  background: linear-gradient(180deg, rgba(179, 94, 132, 0.28) 0%, rgba(142, 66, 100, 0.9) 100%);
}

.report-chart-line-gas-cost {
  background: linear-gradient(180deg, rgba(233, 178, 79, 0.32) 0%, rgba(208, 145, 43, 0.92) 100%);
}

.report-chart-line-gas-cost-ev {
  background: linear-gradient(180deg, rgba(78, 143, 205, 0.32) 0%, rgba(47, 112, 176, 0.92) 100%);
}

.chart-dual-values {
  display: flex;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

.chart-dual-values > span {
  min-width: 56px;
  text-align: center;
}

.chart-dual-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.chart-dual-bars .chart-line {
  width: 40px;
}

.report-chart-strip-cost-mile .chart-group {
  padding-inline: 4px;
}

.report-chart-strip-cost-mile .chart-dual-bars {
  gap: 6px;
}

.report-chart-strip-cost-mile .chart-dual-bars .chart-line {
  width: 30px;
}

.report-chart-strip-cost-mile .chart-dual-values {
  gap: 6px;
}

.report-chart-strip-cost-mile .chart-dual-values > span {
  min-width: 30px;
  width: 30px;
  text-align: center;
}

.report-chart-line-savings-mix {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  align-items: stretch;
  width: 82%;
  background: transparent;
  border-radius: 6px 6px 0 0;
  box-shadow: none;
}

.chart-stack-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 2px;
}

.report-chart-line-savings-home {
  background: linear-gradient(180deg, rgba(72, 132, 190, 0.8) 0%, rgba(56, 113, 170, 0.98) 100%);
}

.report-chart-line-savings-public {
  background: linear-gradient(180deg, rgba(80, 168, 115, 0.8) 0%, rgba(53, 139, 89, 0.98) 100%);
}

.report-trend-mini-legend {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 12px;
}

.report-trend-mini-legend-right {
  justify-content: flex-end;
  padding-right: 100px;
}

.report-trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.report-trend-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.report-trend-legend-dot.is-ev {
  background: #3d80c3;
}

.report-trend-legend-dot.is-gas {
  background: #cf9131;
}

.report-trend-legend-dot.is-home {
  background: #3c78b2;
}

.report-trend-legend-dot.is-public {
  background: #3d9a67;
}

.report-card-with-info {
  position: relative;
}

.report-efficiency-grid > .summary-card.report-card-with-info {
  overflow: visible;
}

.report-card-info {
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1;
  cursor: help;
  opacity: 0.85;
}

.report-card-info:hover {
  opacity: 1;
}

.finance-hero-panel {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.finance-hero-copy {
  align-self: center;
}

.finance-hero-copy-image {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  padding: 28px 30px;
  border-radius: 28px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  color: #f8fbfd;
  box-shadow: 0 22px 44px rgba(18, 34, 48, 0.18);
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, auto;
}

.finance-hero-copy-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top right, rgba(242, 169, 59, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(9, 16, 22, 0.08), rgba(9, 16, 22, 0.26));
}

.finance-hero-copy-image .eyebrow,
.finance-hero-copy-image .hero-subtitle,
.finance-hero-copy-image .hero-chip {
  color: rgba(248, 251, 253, 0.92);
}

.finance-hero-copy-image h3 {
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.finance-hero-copy-image .hero-chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.finance-hero-copy-image .fuel-inline-icon {
  color: #f2b24a;
}

.finance-hero-visual {
  display: grid;
  gap: 18px;
}

.finance-schedule-wrap {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.finance-modal-vehicle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 30px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: linear-gradient(150deg, rgba(31, 51, 66, 0.98) 0%, rgba(48, 74, 94, 0.96) 100%);
}

.finance-modal-vehicle-photo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(19, 32, 43, 0.12);
  flex: 0 0 auto;
}

.finance-modal-vehicle-copy {
  min-width: 0;
}

.finance-modal-vehicle-copy strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.2;
}

.finance-modal-vehicle-copy span {
  display: block;
  margin-top: 2px;
  color: rgba(227, 235, 241, 0.9);
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#vehicleFinanceModal .vehicle-finance-editor input[type="text"],
#vehicleFinanceModal .vehicle-finance-editor .modern-datepicker-input {
  text-align: center;
}

#vehicleFinanceModal .vehicle-finance-editor select,
#vehicleFinanceModal .vehicle-finance-editor textarea {
  text-align: center;
}

#vehicleFinanceModal .vehicle-finance-editor textarea {
  resize: vertical;
  min-height: 72px;
}

.payment-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  width: auto;
  max-width: 100%;
  justify-self: start;
  gap: 8px;
  padding: 6px;
}

.payment-mode-toggle .interval-mode-option span {
  width: 100%;
  padding: 10px 12px;
}

.payment-note-textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.35;
}

.financing-payment-grid .fuel-field span {
  margin-bottom: 6px;
}

.finance-readonly-field {
  display: grid;
  align-content: start;
  gap: 0;
}

.finance-readonly-value {
  min-height: 44px;
  border-radius: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  background: rgba(48, 74, 94, 0.05);
  color: var(--ink);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
}

.finance-computed-value {
  justify-content: center;
  font-size: 1.05rem;
}

.finance-computed-value.is-positive {
  color: #1f9d55;
}

.finance-computed-value.is-neutral {
  color: var(--ink);
}

.finance-computed-value.is-negative {
  color: #a04634;
}

.finance-input-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.3;
  text-align: center;
}

.finance-readonly-value-with-icon {
  gap: 8px;
}

.finance-readonly-value-icon {
  color: rgba(48, 74, 94, 0.72);
}

.vehicle-editor .payment-note-textarea {
  text-align: left;
}

.financing-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.finance-schedule-row {
  display: grid;
  grid-template-columns: 52px 84px 86px minmax(86px, 0.9fr) minmax(170px, 1.4fr) minmax(90px, 0.95fr) minmax(96px, 1fr) minmax(88px, 0.95fr) minmax(118px, 1.2fr) 96px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(19, 32, 43, 0.07);
  font-size: 0.95rem;
  line-height: 1.25;
}

.finance-schedule-row > * {
  min-width: 0;
}

.finance-schedule-head {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
  padding-bottom: 6px;
}

.finance-schedule-row-paid {
  background: rgba(255, 255, 255, 0.82);
}

.finance-schedule-row-upcoming {
  background: rgba(48, 74, 94, 0.07);
}

.finance-schedule-row-final {
  box-shadow: inset 4px 0 0 rgba(213, 154, 51, 0.9);
}

.finance-schedule-actions {
  display: flex;
  justify-content: flex-start;
}

.finance-schedule-actions .ghost-button,
.financing-panel-actions .ghost-button {
  padding: 8px 12px;
  font-size: 0.94rem;
  min-height: 0;
}

.finance-schedule-actions .ghost-button {
  gap: 8px;
}

.finance-extra-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.finance-extra-edit {
  display: none;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.is-bulk-edit-mode .finance-extra-display {
  display: none;
}

.is-bulk-edit-mode .finance-extra-edit {
  display: inline-flex;
}

.finance-extra-input {
  width: 92px;
  min-height: 36px;
  border: 1px solid rgba(19, 32, 43, 0.18);
  border-radius: 10px;
  padding: 6px 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  text-align: center;
}

.finance-fill-remaining {
  padding: 6px 10px;
  font-size: 0.78rem;
  min-height: 0;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(31, 51, 66, 0.24);
  background: #304a5e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 35, 50, 0.16);
}

.finance-fill-remaining:hover {
  background: #263f52;
  border-color: rgba(31, 51, 66, 0.34);
}

.finance-fill-remaining .fuel-inline-icon {
  color: #f2b24a;
}

.is-bulk-edit-mode .finance-schedule-actions .ghost-button {
  display: none;
}

.finance-schedule-section .finance-bulk-save,
.finance-schedule-section .finance-bulk-cancel {
  display: none;
}

.finance-schedule-section.is-bulk-edit-mode .finance-bulk-toggle {
  display: none;
}

.finance-schedule-section.is-bulk-edit-mode .finance-bulk-save,
.finance-schedule-section.is-bulk-edit-mode .finance-bulk-cancel {
  display: inline-flex;
}

.financing-modal-panel {
  width: min(576px, calc(100vw - 32px))!important;
}

#financingPaymentModal .financing-payment-grid input[type="text"] {
  text-align: center;
}

.fuel-summary-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 248, 251, 0.96) 100%);
}

.fuel-form-panel {
  margin-bottom: 24px;
}

.fuel-modal {
  display: none;
}

.fuel-modal.is-open {
  display: block;
}

.fuel-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 20, 0.56);
  z-index: 40;
}

.fuel-modal-panel {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translate(-50%, -50%);
  z-index: 41;
  margin-bottom: 0;
  box-shadow: 0 28px 70px rgba(18, 34, 48, 0.24);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

@supports (height: 100dvh) {
  .fuel-modal-panel {
    max-height: calc(100dvh - 48px);
  }
}

.fuel-modal.modal-align-top .fuel-modal-panel {
  inset: 24px auto auto 50%;
  transform: translateX(-50%);
}

.fuel-modal-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.fuel-editor {
  display: grid;
  gap: 20px;
}

.service-editor {
  gap: 14px !important;
}

.fuel-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fuel-editor-grid > * {
  min-width: 0;
}

.fuel-field {
  display: grid;
  gap: 8px;
}

.fuel-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fuel-field span.is-required::after {
  content: " *";
  color: rgba(217, 146, 36, 0.9);
  font-weight: 900;
}

.form-required-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.25;
}

.form-required-hint .required-marker {
  color: rgba(217, 146, 36, 0.9);
  font-weight: 900;
}

.fuel-editor.is-submitted .fuel-field-required input:not([type="hidden"]):not([type="range"]):invalid,
.fuel-editor.is-submitted .fuel-field-required textarea:invalid,
.fuel-editor.is-submitted .fuel-field-required select:invalid {
  border-color: rgba(197, 55, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(197, 55, 55, 0.12);
  background: rgba(255, 247, 247, 0.92);
}

.fuel-editor.is-submitted .fuel-field-required input:not([type="hidden"]):not([type="range"]):invalid:focus,
.fuel-editor.is-submitted .fuel-field-required textarea:invalid:focus,
.fuel-editor.is-submitted .fuel-field-required select:invalid:focus {
  border-color: rgba(197, 55, 55, 0.75);
  background: #ffffff;
}

.service-editor.is-submitted .fuel-field-required input:not([type="hidden"]):not([type="range"]):invalid,
.service-editor.is-submitted .fuel-field-required textarea:invalid,
.service-editor.is-submitted .fuel-field-required select:invalid {
  border-color: rgba(197, 55, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(197, 55, 55, 0.12);
  background: rgba(255, 247, 247, 0.92);
}

.service-editor.is-submitted .fuel-field-required input:not([type="hidden"]):not([type="range"]):invalid:focus,
.service-editor.is-submitted .fuel-field-required textarea:invalid:focus,
.service-editor.is-submitted .fuel-field-required select:invalid:focus {
  border-color: rgba(197, 55, 55, 0.75);
  background: #ffffff;
}

.fuel-field.is-touched input:not([type="hidden"]):not([type="range"]):invalid,
.fuel-field.is-touched textarea:invalid,
.fuel-field.is-touched select:invalid,
.fuel-editor.is-submitted input:not([type="hidden"]):not([type="range"]):invalid,
.fuel-editor.is-submitted textarea:invalid,
.fuel-editor.is-submitted select:invalid {
  border-color: rgba(197, 55, 55, 0.7);
  box-shadow: 0 0 0 3px rgba(197, 55, 55, 0.14);
  background: rgba(255, 247, 247, 0.92);
}

.fuel-field.is-touched input:not([type="hidden"]):not([type="range"]):invalid:focus,
.fuel-field.is-touched textarea:invalid:focus,
.fuel-field.is-touched select:invalid:focus,
.fuel-editor.is-submitted input:not([type="hidden"]):not([type="range"]):invalid:focus,
.fuel-editor.is-submitted textarea:invalid:focus,
.fuel-editor.is-submitted select:invalid:focus {
  border-color: rgba(197, 55, 55, 0.9);
  background: #ffffff;
}

.fuel-field input:not([type="hidden"]):not([type="range"]),
.fuel-field select,
.fuel-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(19, 32, 43, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--surface-ink);
  font: inherit;
}

.fuel-field textarea {
  resize: vertical;
  overflow-y: hidden;
}

.fuel-field-wide {
  grid-column: 1 / -1;
}

.fuel-mpg-preview {
  padding: 12px 14px;
  border: 1px solid rgba(22, 37, 50, 0.35);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(31, 51, 66, 0.98) 0%, rgba(48, 74, 94, 0.96) 100%);
  min-height: 52px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 2px;
}

.fuel-mpg-preview-value {
  display: block;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.fuel-mpg-preview-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.2;
  display: none;
}

.fuel-city-control {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(19, 32, 43, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 246, 249, 0.92) 100%);
}

.fuel-city-split {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(19, 32, 43, 0.08);
}

.fuel-city-fill {
  display: block;
  height: 100%;
  transition: width 0.18s ease;
}

.fuel-city-fill-city {
  width: 50%;
  background: linear-gradient(90deg, #304a5e 0%, #4f738d 100%);
}

.fuel-city-fill-highway {
  width: 50%;
  background: linear-gradient(90deg, #f1c36d 0%, #e4a43f 100%);
}

.fuel-city-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fuel-city-summary-label {
  color: var(--surface-ink);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fuel-city-clear {
  padding: 7px 12px;
  min-height: 0;
  font-size: 0.88rem;
}

.fuel-city-slider-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.fuel-city-slider {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: #304a5e;
}

.fuel-city-end-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fuel-city-control.is-empty .fuel-city-summary-label {
  color: var(--muted);
}

.fuel-editor-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 36px;
}

.vehicle-delete-launch {
  margin-left: auto;
}

.vehicle-delete-launch.is-hidden,
.vehicle-delete-confirmation.is-hidden {
  display: none;
}

.vehicle-delete-confirmation {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(190, 72, 63, 0.2);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 247, 246, 0.96) 0%, rgba(255, 251, 250, 0.94) 100%);
}

.vehicle-delete-confirmation-title {
  margin: 0;
  color: #8b2f26;
  font-size: 1rem;
  font-weight: 800;
}

.vehicle-delete-confirmation-copy {
  margin: 0;
  color: rgba(74, 39, 34, 0.82);
  line-height: 1.45;
}

.vehicle-delete-confirmation-copy strong {
  color: #8b2f26;
}

.vehicle-delete-confirmation-field {
  max-width: 320px;
}

.vehicle-delete-confirmation-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.vehicle-delete-confirm-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.fuel-inline-icon {
  margin-right: 8px;
}

.fuel-entry {
  padding: 22px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 250, 0.92) 100%);
  box-shadow: 0 12px 34px rgba(18, 34, 48, 0.08);
  overflow: hidden;
  position: relative;
}

.fuel-entry + .fuel-entry {
  margin-top: 14px;
}

.fuel-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand) 0%, #7f97ab 100%);
}

.fuel-entry-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 14px;
}

.fuel-entry-heading {
  flex: 1 1 auto;
}

.fuel-entry-top h3 {
  margin: 2px 0 0;
  font-size: 1.55rem;
  font-family: Georgia, "Times New Roman", serif;
}

.fuel-entry-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fuel-entry-subtitle {
  margin: 8px 0 0;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 700;
}

.fuel-entry-price {
  min-width: 190px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: #f7fbfa;
  box-shadow: 0 16px 28px rgba(31, 51, 66, 0.2);
}

.fuel-price-label,
.fuel-price-meta {
  display: block;
}

.fuel-price-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.76;
}

.fuel-entry-price strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.fuel-price-meta {
  font-size: 0.94rem;
  opacity: 0.82;
}

.fuel-entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.fuel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fuel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
}

.fuel-badge-soft {
  background: rgba(48, 74, 94, 0.12);
  color: var(--brand-deep);
}

.fuel-badge-sky {
  background: rgba(90, 150, 190, 0.16);
  color: #2f5f83;
}

.fuel-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.fuel-state-ok {
  background: rgba(48, 74, 94, 0.11);
  color: var(--brand-deep);
}

.fuel-state-warning {
  background: rgba(242, 169, 59, 0.18);
  color: #8b5620;
}

.vehicle-state-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fuel-state-powertrain {
  background: rgba(63, 127, 174, 0.14);
  color: #2f5f83;
}

.fuel-state-powertrain.is-hybrid {
  background: rgba(56, 127, 93, 0.18);
  color: #245c42;
}

.fuel-state-powertrain.is-plugin-hybrid {
  background: rgba(47, 111, 152, 0.18);
  color: #224d6d;
}

.fuel-state-powertrain.is-electric {
  background: rgba(234, 179, 8, 0.2);
  color: #7c5a0a;
}

.fuel-state-powertrain.is-natural-gas {
  background: rgba(209, 120, 66, 0.2);
  color: #7f3f1b;
}

.fuel-state-notification {
  font-size: 0.78rem;
  min-height: 38px;
}

.fuel-state-notification.is-on {
  background: rgba(56, 127, 93, 0.16);
  color: #245c42;
}

.fuel-state-notification.is-off {
  background: rgba(94, 119, 143, 0.14);
  color: #35526b;
}

.fuel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fuel-metrics div {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(48, 74, 94, 0.06);
  border: 1px solid rgba(48, 74, 94, 0.08);
}

.fuel-metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fuel-metrics strong {
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}

.fuel-note {
  display: flex;
  gap: 10px;
  align-items: start;
  margin: 14px 0 0;
  padding: 14px;
  border-left: 4px solid rgba(242, 169, 59, 0.8);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(242, 169, 59, 0.1);
  color: var(--surface-ink);
  line-height: 1.6;
}

.fuel-panel-note {
  margin: 0;
}

.fuel-entries-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.service-records-head {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.service-records-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.service-records-head-copy {
  min-width: 0;
}

.service-records-toolbar {
  justify-content: space-between;
  align-items: flex-start;
}

.service-records-toolbar .filter-rack {
  flex: 1 1 auto;
}

.service-records-filter-card {
  min-width: 190px;
}

.service-records-filter-card .vehicle-form-label {
  margin-bottom: 10px;
}

.other-records-toolbar {
  justify-content: flex-end;
}

.other-entry-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 22px;
  align-items: start;
  margin-bottom: 0;
}

.other-entry-heading {
  min-width: 0;
}

.other-entry-heading .service-receipts {
  margin-top: 10px;
}

.other-entry-side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.other-entry-side .fuel-entry-actions {
  margin-top: 0;
}

@media (max-width: 900px) {
  .other-entry-top {
    grid-template-columns: 1fr;
  }

  .other-entry-side {
    justify-items: end;
  }

  .other-entry-side .fuel-entry-actions {
    justify-content: flex-end;
  }
}

.service-records-head-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.service-records-download {
  flex: 0 0 auto;
}

.fuel-view-toggle {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.08);
}

.fuel-view-panel {
  display: none;
}

.fuel-view-panel.is-active {
  display: block;
}

.fuel-load-more {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.fuel-load-more-copy {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 32, 43, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
  box-shadow: 0 10px 20px rgba(18, 34, 48, 0.05);
}

.fuel-load-more.is-loading .fuel-load-more-copy {
  color: var(--surface-ink);
}

.fuel-entry-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 16px;
}

.fuel-action-link,
.fuel-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.fuel-action-link {
  background: rgba(48, 74, 94, 0.1);
  color: var(--brand-deep);
}

.fuel-inline-form {
  margin: 0;
}

.fuel-delete-button {
  border: 0;
  cursor: pointer;
  background: rgba(190, 72, 63, 0.1);
  color: #8b2f26;
}

.fuel-list {
  display: grid;
  gap: 10px;
}

.fuel-list-head,
.fuel-list-row {
  display: grid;
  grid-template-columns: 96px minmax(150px, 1.05fr) minmax(88px, 0.72fr) minmax(84px, 0.68fr) minmax(84px, 0.68fr) minmax(94px, 0.78fr) minmax(70px, 0.6fr) minmax(68px, 0.56fr) minmax(68px, 0.56fr) 104px;
  gap: 12px;
  align-items: center;
}

.fuel-list-head {
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fuel-list-row {
  padding: 16px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(18, 34, 48, 0.06);
}

.fuel-list-cell {
  min-width: 0;
  color: var(--surface-ink);
  font-size: 0.96rem;
}

.fuel-list-row .fuel-list-station {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fuel-list-head > span:nth-child(n+3):not(:last-child),
.fuel-list-row .fuel-list-amount,
.fuel-list-row .fuel-list-price,
.fuel-list-row .fuel-list-gallons,
.fuel-list-row .fuel-list-odometer,
.fuel-list-row .fuel-list-tank-miles,
.fuel-list-row .fuel-list-mpg,
.fuel-list-row .fuel-list-mix {
  text-align: right;
}

.fuel-list-cell strong,
.fuel-list-cell small {
  display: block;
}

.fuel-list-cell strong {
  font-size: 1rem;
}

.fuel-list-cell small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.fuel-list-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.fuel-list-actions .fuel-inline-form {
  display: inline-flex;
  margin: 0;
}

@media (max-width: 1320px) {
  .fuel-list-head,
  .fuel-list-row {
    grid-template-columns: 96px minmax(150px, 1.05fr) minmax(88px, 0.72fr) minmax(84px, 0.68fr) minmax(84px, 0.68fr) minmax(94px, 0.78fr) minmax(68px, 0.56fr) 104px;
  }

  .fuel-list-head > span:nth-child(7),
  .fuel-list-head > span:nth-child(9),
  .fuel-list-row .fuel-list-tank-miles,
  .fuel-list-row .fuel-list-mix {
    display: none;
  }
}

@media (max-width: 1180px) {
  .fuel-list-head,
  .fuel-list-row {
    grid-template-columns: 96px minmax(150px, 1.05fr) minmax(88px, 0.72fr) minmax(84px, 0.68fr) minmax(84px, 0.68fr) minmax(68px, 0.56fr) 104px;
  }

  .fuel-list-head > span:nth-child(6),
  .fuel-list-row .fuel-list-odometer {
    display: none;
  }
}

.fuel-action-link-compact,
.fuel-delete-button-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 0;
  white-space: nowrap;
}

.fuel-action-link-compact .fuel-inline-icon,
.fuel-delete-button-compact .fuel-inline-icon {
  margin-right: 0;
  font-size: 0.96rem;
}

.drive-log-table .report-table-row {
  grid-template-columns:
    minmax(76px, 1fr)
    minmax(64px, 0.9fr)
    minmax(64px, 0.9fr)
    minmax(92px, 1.15fr)
    minmax(80px, 1fr)
    minmax(78px, 1fr)
    minmax(84px, 1fr)
    minmax(92px, 1.1fr)
    minmax(92px, 1fr)
    minmax(150px, 1.35fr);
  gap: 10px;
}

.drive-log-table .report-table-head {
  font-size: 0.78rem;
}

.drive-log-table .report-table-row > span[data-label="Route"] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-route {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drive-route-icon {
  color: #355066;
}

.drive-route-arrow {
  color: rgba(73, 97, 116, 0.75);
  font-size: 0.82rem;
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(76px, 1fr)
      minmax(66px, 0.9fr)
      minmax(66px, 0.9fr)
      minmax(92px, 1.15fr)
      minmax(80px, 1fr)
      minmax(78px, 1fr)
      minmax(84px, 1fr)
      minmax(92px, 1fr)
      minmax(150px, 1.35fr);
  }

  .drive-log-table .report-table-row > span:nth-child(8) {
    display: none;
  }
}

@media (min-width: 1120px) and (max-width: 1279px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(78px, 1fr)
      minmax(68px, 0.9fr)
      minmax(68px, 0.9fr)
      minmax(82px, 1fr)
      minmax(80px, 1fr)
      minmax(84px, 1fr)
      minmax(150px, 1.35fr);
  }

  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none;
  }
}

@media (min-width: 980px) and (max-width: 1119px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(82px, 1.25fr)
      minmax(68px, 1fr)
      minmax(68px, 1fr)
      minmax(84px, 1fr)
      minmax(76px, 1fr)
      minmax(150px, 1.35fr);
  }

  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(6),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none;
  }
}

@media (min-width: 860px) and (max-width: 979px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(84px, 1.35fr)
      minmax(70px, 1fr)
      minmax(70px, 1fr)
      minmax(86px, 1.05fr)
      minmax(150px, 1.35fr);
  }

  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(6),
  .drive-log-table .report-table-row > span:nth-child(7),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none;
  }
}

@media (min-width: 760px) and (max-width: 859px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(82px, 1.35fr)
      minmax(66px, 1fr)
      minmax(66px, 1fr)
      minmax(80px, 1.05fr)
      minmax(150px, 1.35fr);
  }

  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(6),
  .drive-log-table .report-table-row > span:nth-child(7),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none;
  }
}

@media (min-width: 680px) and (max-width: 759px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(84px, 1.45fr)
      minmax(68px, 1fr)
      minmax(82px, 1.1fr)
      minmax(150px, 1.35fr);
  }

  .drive-log-table .report-table-row > span:nth-child(3),
  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(6),
  .drive-log-table .report-table-row > span:nth-child(7),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none;
  }
}

@media (max-width: 679px) {
  .drive-log-table .report-table-head {
    display: none;
  }

  .drive-log-table .report-table-body {
    gap: 12px;
  }

  .drive-log-table .report-table-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(18, 34, 48, 0.06);
    align-items: start;
    overflow: hidden;
  }

  .drive-log-table .report-table-row > span {
    display: block !important;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    text-overflow: clip;
  }

  .drive-log-table .report-table-row > span:nth-child(n) {
    grid-column: auto !important;
  }
}

.drive-perf {
  display: inline-grid;
  grid-template-columns: 78px max-content;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.drive-perf-meter {
  position: relative;
  display: inline-flex;
  width: 78px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(177, 119, 26, 0.9) 0%,
    rgba(217, 164, 81, 0.9) 28%,
    rgba(143, 161, 177, 0.86) 50%,
    rgba(63, 178, 122, 0.9) 72%,
    rgba(47, 143, 99, 0.9) 100%
  );
  overflow: hidden;
}

.drive-perf-meter::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 1px;
  background: rgba(48, 74, 94, 0.72);
}

.drive-perf-meter-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: currentColor;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(30, 48, 63, 0.22);
}

.drive-perf-label {
  line-height: 1;
  white-space: nowrap;
}

.drive-perf-good {
  color: #1f8f58;
}

.drive-perf-low {
  color: #b1771a;
}

.drive-perf-neutral {
  color: rgba(48, 74, 94, 0.78);
}

.charging-battery-visual {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.charging-battery-icon {
  position: relative;
  width: 44px;
  height: 20px;
  border: 2px solid rgba(27, 47, 63, 0.72);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.charging-battery-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 5px;
  width: 4px;
  height: 8px;
  border-radius: 0 2px 2px 0;
  background: rgba(27, 47, 63, 0.72);
}

.charging-battery-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--battery-end, 0%);
  background: linear-gradient(180deg, #45c67a 0%, #1f9f56 100%);
}

.charging-battery-charge {
  position: absolute;
  left: var(--battery-charge-start, 0%);
  top: 0;
  bottom: 0;
  width: var(--battery-charge-size, 0%);
  background: #e3a736;
}

.charging-battery-percent {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.charging-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

.charging-table-actions .fuel-inline-form {
  display: inline-flex;
  margin: 0;
}

.charging-edit-record {
  background: linear-gradient(135deg, #27ae60 0%, var(--success) 55%, var(--success-hover) 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(19, 107, 57, 0.82) !important;
  box-shadow: 0 10px 22px rgba(24, 132, 71, 0.28);
}

.charging-edit-record:hover {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 45%, var(--success-press) 100%) !important;
  color: #ffffff !important;
}

.charging-edit-record .fuel-inline-icon {
  color: #ffffff;
}

@media (min-width: 921px) {
  .charging-editor-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .charging-editor-grid > .fuel-field {
    grid-column: span 6;
  }

  .charging-editor-grid > .charging-type-field,
  .charging-editor-grid > .charging-provider-field,
  .charging-editor-grid > .charging-location-field,
  .charging-editor-grid > .charging-kwh-field,
  .charging-editor-grid > .charging-price-field,
  .charging-editor-grid > .charging-cost-field,
  .charging-editor-grid > .charging-duration-field,
  .charging-editor-grid > .charging-battery-start-field,
  .charging-editor-grid > .charging-battery-end-field {
    grid-column: span 4;
  }
}

.charging-editor .fuel-field input:not([type="hidden"]):not([type="file"]),
.charging-editor .fuel-field select {
  text-align: center;
}

.charging-editor .fuel-field textarea {
  text-align: left;
}

.charging-rivian-import-panel,
.fuelly-import-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.charging-rivian-import-actions,
.fuelly-import-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.fuelly-import-actions {
  justify-content: flex-start;
}

@media (min-width: 921px) {
  .charging-rivian-import-panel,
  .fuelly-import-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .fuelly-import-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-summary-panel {
  padding-top: 18px;
}

.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-overview-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 32, 43, 0.08);
  background: rgba(48, 74, 94, 0.06);
}

.service-overview-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.service-overview-card .stat-meta {
  color: #4f8a67;
  font-size: .90em;
}

.oil-life-panel {
  margin-bottom: 24px;
}

.oil-life-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.oil-life-card,
.maintenance-interval-form {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 32, 43, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.oil-life-card strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.oil-life-card-strong {
  background: linear-gradient(160deg, rgba(242, 169, 59, 0.16) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.oil-life-meter {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.1);
  overflow: hidden;
}

.oil-life-meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7fa15a 0%, var(--highlight) 100%);
}

.oil-life-meter-fill.is-danger {
  background: linear-gradient(90deg, #d75b48 0%, #f28c3b 100%);
}

.oil-life-copy,
.oil-life-subcopy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.oil-life-subcopy {
  font-size: 0.9rem;
}

.maintenance-interval-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.interval-mode-toggle {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.08);
}

.maintenance-interval-form .interval-mode-toggle {
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.interval-mode-option {
  position: relative;
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}

.interval-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interval-mode-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  color: var(--brand-deep);
  font-weight: 700;
}

.interval-mode-option.is-active {
  background: var(--brand);
}

.interval-mode-option.is-active span {
  color: #ffffff;
}

.service-maintenance-panel {
  margin-bottom: 24px;
}

.service-maintenance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-maintenance-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(19, 32, 43, 0.08);
  background: linear-gradient(160deg, rgba(242, 169, 59, 0.14) 0%, rgba(255, 255, 255, 0.93) 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.service-maintenance-card strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.service-maintenance-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(170, 56, 36, 0.12);
  color: #9c311c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-maintenance-alert.is-warning {
  background: rgba(209, 144, 28, 0.14);
  color: #9a6200;
}

.service-maintenance-card-compact {
  justify-items: start;
  text-align: left;
  gap: 10px;
}

.service-maintenance-card-compact .summary-label {
  width: 100%;
}

.service-maintenance-compact-value {
  font-size: 1.2rem !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
}

.service-maintenance-miles {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.service-maintenance-date {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.service-maintenance-card.is-overdue {
  border-color: rgba(170, 56, 36, 0.26);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 243, 238, 0.9) 0%, rgba(255, 243, 238, 0) 58%),
    linear-gradient(180deg, rgba(255, 249, 247, 0.99) 0%, rgba(252, 236, 231, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 34px rgba(137, 44, 24, 0.1);
}

.service-maintenance-card.is-due-soon {
  border-color: rgba(209, 144, 28, 0.24);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 248, 228, 0.9) 0%, rgba(255, 248, 228, 0) 58%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.99) 0%, rgba(252, 244, 225, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 30px rgba(164, 111, 15, 0.08);
}

.service-maintenance-card.is-due-soon::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #d28f1c 0%, #ebbb54 100%);
}

.service-maintenance-card.is-due-soon strong,
.service-maintenance-card.is-due-soon .service-maintenance-compact-value,
.service-maintenance-card.is-due-soon .service-maintenance-miles {
  color: #8a5a00;
}

.service-maintenance-card.is-due-soon .service-maintenance-date {
  color: #9b7124;
  font-weight: 700;
}

.service-maintenance-card.is-due-soon .service-interval-summary {
  background: rgba(209, 144, 28, 0.08);
  box-shadow: inset 0 0 0 1px rgba(209, 144, 28, 0.08);
}

.service-maintenance-card.is-due-soon .service-interval-chip,
.service-maintenance-card.is-due-soon .service-interval-value,
.service-maintenance-card.is-due-soon .service-interval-edit {
  color: #8a5a00;
}

.service-maintenance-card.is-due-soon .service-interval-edit {
  background: rgba(209, 144, 28, 0.1);
}

.service-maintenance-card.is-due-soon .stat-gauge {
  box-shadow:
    inset 0 0 0 1px rgba(209, 144, 28, 0.14),
    0 10px 20px rgba(164, 111, 15, 0.1);
}

.service-maintenance-card.is-due-soon .stat-gauge-scale {
  color: #9b7a3d;
}

.service-maintenance-card.is-overdue::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #b6462d 0%, #df7b54 100%);
}

.service-maintenance-card.is-overdue strong,
.service-maintenance-card.is-overdue .service-maintenance-compact-value {
  color: #8f2916;
}

.service-maintenance-card.is-overdue .service-maintenance-miles {
  color: #8f2916;
}

.service-maintenance-card.is-overdue .service-maintenance-date {
  color: #a14b31;
  font-weight: 700;
}

.service-maintenance-card.is-overdue .service-interval-summary {
  background: rgba(170, 56, 36, 0.08);
  box-shadow: inset 0 0 0 1px rgba(170, 56, 36, 0.08);
}

.service-maintenance-card.is-overdue .service-interval-chip,
.service-maintenance-card.is-overdue .service-interval-value {
  color: #8f2916;
}

.service-maintenance-card.is-overdue .service-interval-edit {
  background: rgba(170, 56, 36, 0.1);
  color: #8f2916;
}

.service-maintenance-card.is-overdue .stat-gauge {
  box-shadow:
    inset 0 0 0 1px rgba(170, 56, 36, 0.16),
    0 10px 20px rgba(170, 56, 36, 0.12);
}

.service-maintenance-card.is-overdue .stat-gauge-scale {
  color: #9b5a43;
}

.stat-gauge.is-warning .stat-gauge-needle,
.stat-gauge.is-warning .stat-gauge-needle::after {
  background: #c88718;
}

.service-interval-form {
  width: 100%;
  margin-top: 4px;
  padding: 10px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: none;
}

.service-interval-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.service-interval-inline-cancel {
  grid-template-columns: 1fr;
  justify-items: center;
}

.service-interval-inline input[type="text"] {
  text-align: center;
}

.service-interval-save {
  white-space: nowrap;
  min-height: 44px;
}

.service-maintenance-card.is-editing-interval .service-interval-form {
  display: grid;
}

.service-maintenance-card.is-editing-interval .service-interval-summary {
  display: none;
}

.service-interval-summary {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(48, 74, 94, 0.06);
}

.service-interval-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-deep);
}

.service-interval-value {
  justify-self: center;
  font-weight: 700;
  color: var(--brand-deep);
}

.service-interval-edit {
  min-height: 34px;
  padding: 0 12px;
  gap: 4px;
  font-size: 0.8rem;
}

.service-interval-cancel {
  min-height: 44px;
  width: 240px;
  justify-content: center;
}

.service-entry {
  padding: 22px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 250, 0.92) 100%);
  box-shadow: 0 12px 34px rgba(18, 34, 48, 0.08);
  overflow: visible;
  position: relative;
}

.service-entry + .service-entry {
  margin-top: 14px;
}

.service-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--highlight) 0%, #f4c56f 100%);
}

.service-entry-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 22px;
  align-items: start;
  margin-bottom: 14px;
}

.service-entry-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.service-entry-heading {
  min-width: 0;
}

.service-entry-heading h3 {
  margin: 2px 0 0;
  font-size: 1.55rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

.service-entry-price {
  min-width: 190px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand) 100%);
  color: #f7fbfa;
  box-shadow: 0 16px 28px rgba(31, 51, 66, 0.2);
}

.service-entry-price strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.service-since-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.25;
}

.service-since-item strong {
  color: var(--surface-ink);
  font-weight: 800;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(242, 169, 59, 0.18);
  color: #8b5620;
  font-size: 0.84rem;
  font-weight: 700;
}

.service-entry .fuel-entry-actions {
  margin-top: 0;
}

.service-entry .fuel-note + .fuel-entry-actions,
.service-entry .fuel-note + .service-receipts + .fuel-entry-actions {
  margin-top: 12px;
}

.service-entry .has-tooltip {
  z-index: 1;
}

.service-entry .has-tooltip:hover,
.service-entry .has-tooltip:focus-visible {
  z-index: 50;
}

.service-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-metrics div {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(48, 74, 94, 0.06);
  border: 1px solid rgba(48, 74, 94, 0.08);
}

.service-metrics strong {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.service-flag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.service-flag {
  position: relative;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(19, 32, 43, 0.1);
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
  cursor: pointer;
}

.service-flag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-flag span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--surface-ink);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.service-flag-since {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px 6px;
  min-height: 18px;
  visibility: hidden;
}

.service-flag.has-since .service-flag-since {
  visibility: visible;
}

.service-since-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.08);
  border: 1px solid rgba(48, 74, 94, 0.12);
  color: rgba(48, 74, 94, 0.78);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.05;
}

/* Service editor has `!important` font sizing on the flag label; force chips to stay small. */
.service-editor .service-flag-since {
  font-size: 0.6rem !important;
}

.service-editor .service-since-chip {
  font-size: 0.6rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Override `.service-editor .service-flag span { font-size: ... !important; }` for chip spans specifically. */
.service-editor .service-flag span.service-since-chip {
  font-size: 0.6rem !important;
  display: inline-flex !important;
  padding: 0 7px !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.05 !important;
}

.service-editor .fuel-editor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0 !important;
}

.service-editor .service-flag-grid {
  gap: 6px !important;
  margin-top: 10px !important;
  margin-bottom: 12px !important;
}

.service-editor input[name="cost"],
.service-editor input[name="odometer"],
.service-editor .modern-datepicker-input {
  text-align: center;
}

.fuel-editor input[name="price"],
.fuel-editor input[name="gallons"],
.fuel-editor input[name="cost"],
.fuel-editor input[name="odometer"],
.fuel-editor .modern-datepicker-input {
  text-align: center;
}

.other-editor input[name="cost"],
.other-editor input[name="odometer"],
.other-editor .modern-datepicker-input {
  text-align: center;
}

.service-editor .service-type-field {
  gap: 10px;
}

.service-editor .service-type-field .service-flag-grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.service-custom-intervals {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.service-custom-intervals-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-custom-intervals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.service-custom-interval-flag {
  width: 100%;
}

.service-editor .service-flag {
  border-radius: 11px !important;
}

.service-editor .service-flag span {
  min-height: 34px !important;
  padding: 6px 8px !important;
  font-size: 0.9rem !important;
}

.service-editor .fuel-editor-actions {
  margin-top: 36px !important;
}

.service-editor .fuel-field {
  gap: 6px;
}

.service-editor .fuel-field input[type="file"] {
  padding-top: 8px;
  padding-bottom: 8px;
}

.service-flag.is-active {
  border-color: rgba(242, 169, 59, 0.45);
  background: rgba(242, 169, 59, 0.14);
  box-shadow: inset 0 0 0 1px rgba(242, 169, 59, 0.12);
}

.service-view-toggle {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.08);
}

.other-view-toggle {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.08);
}

.service-view-panel {
  display: none;
}

.service-view-panel.is-active {
  display: block;
}

.other-view-panel {
  display: none;
}

.other-view-panel.is-active {
  display: block;
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-list-head,
.service-list-row {
  display: grid;
  grid-template-columns: 100px minmax(180px, 1.5fr) minmax(150px, 1.2fr) 100px 110px 170px;
  gap: 12px;
  align-items: center;
}

.service-list-head {
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-list-row {
  padding: 16px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(18, 34, 48, 0.06);
}

.service-list-cell {
  min-width: 0;
  color: var(--surface-ink);
  font-size: 0.96rem;
}

.service-list-cell strong,
.service-list-cell small {
  display: block;
}

.service-list-cell strong {
  font-size: 1rem;
}

.service-list-cell small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.service-list-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.service-list-icons-cell {
  display: none;
}

.service-type-icons {
  display: none;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.service-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(242, 169, 59, 0.14);
  color: var(--brand-deep);
  font-size: 0.82rem;
}

.service-type-icon .fuel-inline-icon {
  margin-right: 0;
}

.vehicle-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-vehicles {
  background:
    radial-gradient(circle at top left, rgba(90, 150, 190, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(242, 169, 59, 0.12), transparent 24%),
    linear-gradient(180deg, #f4f8fb 0%, #eef4f8 100%);
}

.page-vehicles .main-panel > section.panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 250, 252, 0.94) 100%);
}

.page-vehicles .main-panel > section.panel::before {
  content: none;
}

.page-vehicles .panel-head h3 {
  color: #203243;
}

.page-vehicles .stat-card {
  border-color: rgba(56, 84, 104, 0.10);
  box-shadow: 0 16px 34px rgba(18, 34, 48, 0.08);
}

.page-vehicles .stat-card-primary {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 36%),
    linear-gradient(150deg, rgba(31, 51, 66, 0.98) 0%, rgba(48, 74, 94, 0.96) 55%, rgba(72, 116, 141, 0.94) 100%);
}

.vehicle-card {
  padding: 22px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 250, 0.92) 100%);
  box-shadow: 0 12px 34px rgba(18, 34, 48, 0.08);
}

.vehicle-card.vehicle-card-tone-1 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 250, 0.92) 100%);
}

.vehicle-card.vehicle-card-tone-2 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 246, 252, 0.92) 100%);
}

.vehicle-card.vehicle-card-tone-3 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 243, 235, 0.92) 100%);
}

.vehicle-card.vehicle-card-tone-4 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 246, 241, 0.92) 100%);
}

.vehicle-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 14px;
}

.vehicle-card-identity {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.vehicle-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(19, 32, 43, 0.12);
  background: rgba(48, 74, 94, 0.08);
}

.vehicle-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-metrics div {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  align-content: center;
  min-height: 92px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(48, 74, 94, 0.06);
  border: 1px solid rgba(48, 74, 94, 0.08);
}

.page-vehicles .vehicle-metrics-primary > div:nth-child(1) {
  background: linear-gradient(180deg, rgba(90, 150, 190, 0.15) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(90, 150, 190, 0.18);
}

.page-vehicles .vehicle-metrics-primary > div:nth-child(3) {
  background: linear-gradient(180deg, rgba(242, 169, 59, 0.18) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(217, 143, 61, 0.20);
}

.page-vehicles .vehicle-metrics-details > div:nth-child(1) {
  background: linear-gradient(180deg, rgba(76, 175, 120, 0.14) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(76, 175, 120, 0.18);
}

.page-vehicles .vehicle-metrics-details > div:nth-child(2) {
  background: linear-gradient(180deg, rgba(242, 169, 59, 0.16) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(217, 143, 61, 0.20);
}

.page-vehicles .vehicle-metrics-details > div:nth-child(3) {
  background: linear-gradient(180deg, rgba(104, 132, 191, 0.14) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(104, 132, 191, 0.18);
}

.page-vehicles .vehicle-metrics-details > div:nth-child(4) {
  background: linear-gradient(180deg, rgba(90, 150, 190, 0.14) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(90, 150, 190, 0.18);
}

.page-vehicles .vehicle-metrics-details > div:nth-child(5) {
  background: linear-gradient(180deg, rgba(123, 135, 145, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(123, 135, 145, 0.18);
}

.page-vehicles .vehicle-metrics-details > div:nth-child(6) {
  background: linear-gradient(180deg, rgba(48, 74, 94, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(48, 74, 94, 0.16);
}

.vehicle-metrics .fuel-metric-label {
  justify-content: center;
}

.vehicle-metrics strong {
  font-size: 1.3rem;
  line-height: 1.1;
}

.vehicle-metric-green {
  background: linear-gradient(180deg, rgba(31, 157, 85, 0.1) 0%, rgba(255, 255, 255, 0.94) 100%) !important;
}

.vehicle-metric-green .green-rating-score {
  color: var(--success);
}

.vehicle-metric-green .green-rating-leaves {
  gap: 5px;
  margin: 0;
  font-size: 0.8rem;
}

.vehicle-metrics small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.service-interval-summary-static {
  grid-template-columns: auto 1fr auto;
}

.service-interval-summary-readonly {
  width: 100%;
}

.service-interval-summary-spacer {
  width: 1px;
  min-height: 1px;
}

.service-interval-inline-custom {
  grid-template-columns: 120px 120px auto;
  justify-content: center;
  align-items: end;
}

.service-interval-inline-dual {
  grid-template-columns: 138px 108px auto;
  justify-content: center;
  align-items: end;
}

.service-interval-inline-custom-cancel {
  grid-template-columns: 240px;
  justify-content: center;
}

.service-interval-value {
  line-height: 1.2;
}

.vehicle-metric-lines {
  line-height: 1.25;
}

.vehicle-details-toggle {
  width: 100%;
  margin: 12px 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(48, 74, 94, 0.14);
  background: rgba(48, 74, 94, 0.06);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vehicle-details-toggle:hover {
  background: rgba(48, 74, 94, 0.09);
}

.vehicle-details-toggle i {
  transition: transform 160ms ease;
}

.vehicle-details-toggle.is-open i {
  transform: rotate(180deg);
}

.vehicle-details {
  margin-top: 2px;
}

.vehicle-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.vehicle-card-actions .vehicle-service-link,
.vehicle-card-actions .insurance-open-modal {
  margin-left: auto;
  width: auto;
  height: auto;
  padding: 10px 14px;
  font-size: inherit;
  white-space: nowrap;
}

.vehicle-card-actions .insurance-open-modal {
  margin-left: 0;
}

.vehicle-card-actions .vehicle-service-link {
  background: #2f4f69;
  border-color: #2f4f69;
  color: #ffffff;
}

.vehicle-card-actions .vehicle-service-link:hover {
  background: #27455d;
  border-color: #27455d;
  color: #ffffff;
}

.vehicle-card-actions .insurance-open-modal .fuel-inline-icon {
  margin-right: 8px;
}

.vehicle-card-actions .vehicle-service-link .fuel-inline-icon {
  margin-right: 8px;
}

.vehicle-card-action-label {
  display: inline;
}

.insurance-accent-button {
  background: #398e9c;
  border-color: #398e9c;
  color: #ffffff;
}

.insurance-accent-button:hover {
  background: #327d89;
  border-color: #327d89;
  color: #ffffff;
  text-decoration: none;
}

.insurance-accent-button .fuel-inline-icon {
  color: #ffffff;
}

.vehicle-inline-form {
  margin: 0;
}

.insurance-modal-panel {
  width: min(1040px, calc(100vw - 32px));
}

.insurance-history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.insurance-history-list-panel,
.insurance-history-form-panel {
  display: grid;
  gap: 14px;
  min-height: 0;
  align-content: start;
}

.insurance-history-head {
  margin-bottom: 0;
  align-items: center;
  justify-content: space-between;
}

.insurance-history-vehicle-head {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.insurance-history-vehicle-photo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(19, 32, 43, 0.12);
  background: rgba(48, 74, 94, 0.08);
}

.insurance-history-vehicle-label {
  color: var(--surface-ink);
}

.insurance-history-list {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: min(560px, calc(100vh - 260px));
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.insurance-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  gap: 10px 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(18, 34, 48, 0.06);
}

.insurance-history-row-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  max-width: 760px;
}

.insurance-history-row-copy strong {
  font-size: 1rem;
  color: var(--surface-ink);
}

.insurance-history-row-copy small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.insurance-history-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.insurance-history-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
}

.insurance-history-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insurance-history-meta-item + .insurance-history-meta-item::before {
  content: "•";
  color: rgba(75, 97, 114, 0.62);
  margin-right: 2px;
}

.insurance-history-meta-line .fuel-inline-icon {
  color: rgba(48, 74, 94, 0.82);
}

.insurance-history-files-head {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(48, 74, 94, 0.12);
}

.insurance-history-files-head span {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.insurance-history-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.insurance-history-file-chip {
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
  flex: 0 1 auto;
}

.insurance-history-file-chip .service-receipt-link {
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insurance-existing-files {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(48, 74, 94, 0.12);
  border-radius: 12px;
  background: rgba(48, 74, 94, 0.04);
}

.insurance-existing-files .service-receipts-label {
  margin-bottom: 8px;
  display: inline-flex;
}

.insurance-existing-files-links {
  display: grid;
  gap: 8px;
}

.insurance-file-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(22, 37, 50, 0.35);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(31, 51, 66, 0.98) 0%, rgba(48, 74, 94, 0.96) 100%);
  color: #f4f8fb;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.insurance-file-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(135, 169, 195, 0.5);
  box-shadow: 0 10px 18px rgba(18, 34, 48, 0.2);
  text-decoration: none;
}

.insurance-file-link {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #f4f8fb;
  text-decoration: none;
}

.insurance-file-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.insurance-file-icon {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.insurance-file-copy {
  display: grid;
  min-width: 0;
}

.insurance-file-copy strong {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-insurance-current-summary {
  display: block;
  margin-top: 8px;
  color: var(--surface-ink);
  font-size: 0.96rem;
}

.vehicle-insurance-current-detail {
  display: block;
}

.vehicle-insurance-launch-field .vehicle-manage-insurance {
  margin-top: 8px;
}

.vehicle-service-intervals-link {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
}

.vehicle-service-intervals-link:hover,
.vehicle-service-intervals-link:focus-visible {
  text-decoration: none;
}

.insurance-history-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: flex-start;
  width: 112px;
  min-width: 112px;
}

.insurance-history-row-actions .fuel-action-link-compact,
.insurance-history-row-actions .fuel-delete-button-compact {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 700;
}

.insurance-history-row-actions .fuel-action-link-compact .fuel-inline-icon,
.insurance-history-row-actions .fuel-delete-button-compact .fuel-inline-icon {
  margin-right: 7px;
}

.insurance-history-feedback:empty,
.insurance-form-errors:empty {
  display: none;
}

.insurance-history-form-panel-hidden {
  display: none;
}

.insurance-record-modal-panel {
  width: min(760px, calc(100vw - 32px));
}

.insurance-editor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 0;
}

.insurance-editor .fuel-editor {
  gap: 14px;
}

.insurance-editor .fuel-field {
  gap: 5px;
}

.insurance-editor .fuel-field input:not([type="hidden"]),
.insurance-editor .fuel-field select,
.insurance-editor .fuel-field textarea {
  padding: 10px 12px;
  border-radius: 12px;
}

.insurance-editor .fuel-editor-actions {
  margin-top: 14px;
  padding-top: 8px;
}

.insurance-history-empty {
  margin: 0;
}

.vehicle-toggle-grid {
  display: grid;
  grid-template-columns: max-content 180px;
  gap: 12px;
  align-items: start;
  justify-content: start;
}

.vehicle-retired-flag {
  justify-self: start;
  width: fit-content;
}

.vehicle-retired-flag span,
.vehicle-reminders-flag span,
.vehicle-summary-flag span {
  padding-left: 25px !important;
  padding-right: 25px !important;
}

.vehicle-retired-date-field {
  grid-column: auto;
}

.vehicle-retired-date-field .modern-datepicker-input {
  width: 175px !important;
  max-width: 100%;
}

.vehicle-retired-date-field .modern-datepicker-shell {
  width: 175px;
  max-width: 100%;
  overflow: hidden;
}

.vehicle-retired-date-field .modern-datepicker-shell::after {
  right: 12px;
  font-size: 0.85rem;
}

.vehicle-retired-date-field .modern-datepicker-shell .modern-datepicker-input {
  padding-right: 34px;
}

.vehicle-reminders-flag,
.vehicle-summary-flag,
.vehicle-email-field {
  grid-column: auto;
}

.vehicle-email-field {
  align-self: stretch;
  max-width: 420px;
}

.vehicle-email-field input {
  height: 100%;
}

.vehicle-notifications-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  width: 100%;
}

.vehicle-custom-intervals-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.vehicle-custom-intervals-grid .vehicle-custom-intervals-head > div {
  gap: 8px;
}

.vehicle-custom-intervals-grid .vehicle-custom-intervals-head span {
  color: var(--surface-ink);
}

.vehicle-custom-intervals-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vehicle-custom-intervals-head > div {
  display: grid;
  gap: 4px;
}

.vehicle-custom-intervals-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vehicle-custom-intervals-head small {
  color: var(--muted);
}

.vehicle-custom-intervals-list {
  display: grid;
  gap: 12px;
}

.service-interval-settings-editor .vehicle-custom-intervals-grid {
  margin-top: 20px;
}

.vehicle-custom-intervals-header,
.vehicle-custom-interval-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(230px, 1.45fr) minmax(120px, 0.85fr) minmax(110px, 0.8fr) 52px;
  gap: 10px;
}

.vehicle-custom-intervals-header {
  align-items: center;
  margin-top: 0;
  padding: 4px 4px 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.vehicle-custom-intervals-header > * {
  justify-self: stretch;
  width: 100%;
  text-align: center;
}

.vehicle-custom-interval-row {
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.vehicle-custom-interval-row .fuel-field {
  width: auto;
}

.vehicle-custom-interval-row .fuel-field > span {
  width: 100%;
  text-align: center;
}

.vehicle-editor .vehicle-custom-interval-row .fuel-field > span {
  display: none;
}

.service-interval-settings-editor .vehicle-custom-interval-row .fuel-field > .vehicle-built-in-mobile-label {
  display: none;
}

.service-interval-settings-editor .vehicle-custom-interval-row .fuel-field > span {
  display: none;
}

.vehicle-custom-interval-remove {
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  padding: 10px 12px;
  color: #9b2c20;
  border-color: rgba(155, 44, 32, 0.22);
  background: linear-gradient(180deg, rgba(155, 44, 32, 0.08) 0%, rgba(155, 44, 32, 0.14) 100%);
}

.vehicle-custom-interval-remove:hover,
.vehicle-custom-interval-remove:focus-visible {
  color: #8a2318;
  border-color: rgba(155, 44, 32, 0.34);
  background: linear-gradient(180deg, rgba(155, 44, 32, 0.12) 0%, rgba(155, 44, 32, 0.2) 100%);
}

.vehicle-custom-interval-remove .fa-trash {
  color: currentColor;
}

.vehicle-custom-interval-remove span {
  display: none;
  font-weight: 700;
}

.vehicle-custom-interval-mode-field .interval-mode-toggle {
  width: 100%;
  justify-content: space-between;
  gap: 6px;
  padding: 4px;
}

.vehicle-custom-interval-mode-field .interval-mode-option {
  flex: 1 1 0;
}

.vehicle-custom-interval-mode-field .interval-mode-option span {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.86rem;
  justify-content: center;
}

.vehicle-custom-interval-miles-field,
.vehicle-custom-interval-months-field {
  justify-content: stretch;
}

.vehicle-custom-interval-miles-field input[type="text"],
.vehicle-custom-interval-months-field input[type="text"] {
  width: 100%;
}

.vehicle-custom-interval-empty {
  text-align: center;
  margin: 10px 0; 
  color: var(--muted);
}

.vehicle-custom-interval-empty.is-hidden {
  display: none;
}

.vehicle-notifications-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vehicle-notifications-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.vehicle-reminders-flag,
.vehicle-summary-flag {
  width: fit-content;
}

.vehicle-toggle-grid > .service-flag {
  align-self: start;
}

.vehicle-retired-date-field.is-hidden,
.vehicle-email-field.is-hidden {
  display: none;
}

.vehicle-editor .fuel-editor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vehicle-editor .vehicle-interval-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  column-gap: 0;
  width: 100%;
  max-width: 100%;
}

.service-interval-settings-editor .service-interval-settings-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  column-gap: 0;
  width: 100%;
  max-width: 100%;
}

.vehicle-editor .vehicle-interval-grid > .vehicle-interval-mode-field {
  justify-self: start;
}

.vehicle-editor .vehicle-interval-grid > .vehicle-interval-value-field {
  justify-self: start;
}

.vehicle-editor .vehicle-interval-grid > .vehicle-interval-months-field {
  justify-self: start;
}

.vehicle-editor .vehicle-interval-grid > .vehicle-interval-mode-field,
.vehicle-editor .vehicle-interval-grid > .vehicle-interval-value-field,
.vehicle-editor .vehicle-interval-grid > .vehicle-interval-months-field {
  width: fit-content;
}

.vehicle-editor .vehicle-interval-grid > .vehicle-interval-value-field input {
  width: 220px !important;
  max-width: 100%;
}

.vehicle-editor .vehicle-interval-grid > .vehicle-interval-months-field input {
  width: 130px !important;
  max-width: 100%;
}

.vehicle-editor .vehicle-interval-mode-toggle {
  width: max-content;
}

.vehicle-editor .vehicle-interval-grid > .vehicle-interval-value-field {
  width: 220px;
}

.vehicle-editor .vehicle-interval-grid > .vehicle-interval-months-field {
  width: 130px;
}

.vehicle-editor .vehicle-interval-grid > .vehicle-interval-value-field input.is-interval-nudge {
  border-color: rgba(217, 146, 36, 0.65);
  box-shadow: 0 0 0 3px rgba(217, 146, 36, 0.16);
  background: rgba(255, 251, 242, 0.92);
}

/* Keep the notifications row aligned under intervals without affecting the interval rows. */
.vehicle-editor .vehicle-interval-grid > .vehicle-notifications-grid {
  grid-column: 1 / -1;
}

.vehicle-built-in-intervals-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.vehicle-built-in-intervals-list {
  display: grid;
  gap: 8px;
}

.vehicle-built-in-intervals-header,
.vehicle-built-in-interval-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px 144px 120px;
  gap: 8px;
  align-items: center;
}

.vehicle-built-in-intervals-header {
  align-items: center;
  margin-top: 6px;
  padding: 10px 4px 0;
  border-top: 1px solid rgba(48, 74, 94, 0.12);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.vehicle-built-in-intervals-header > * {
  justify-self: stretch;
  width: 100%;
  text-align: center;
}

.vehicle-built-in-mobile-label {
  display: none;
}

.vehicle-built-in-interval-type {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(31, 51, 66);
  font-weight: 700;
  letter-spacing: 0.01em;
  justify-content: flex-start;
  text-align: left;
}

.vehicle-built-in-interval-type-icon {
  flex: 0 0 auto;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(31, 51, 66);
  font-size: 0.94rem;
}

.vehicle-built-in-interval-type-label {
  min-width: 0;
}

.vehicle-built-in-interval-type .vehicle-built-in-interval-type-icon,
.vehicle-built-in-interval-type .vehicle-built-in-interval-type-label {
  color: rgb(31, 51, 66);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 1;
}

.vehicle-built-in-interval-label-field {
  justify-content: center;
}

.vehicle-built-in-interval-mode-field,
.vehicle-built-in-interval-miles-field,
.vehicle-built-in-interval-months-field {
  justify-content: stretch;
}

.vehicle-built-in-interval-mode-field .interval-mode-toggle {
  width: fit-content;
  gap: 6px;
  padding: 4px;
}

.vehicle-built-in-interval-mode-field .interval-mode-option {
  flex: 0 0 auto;
}

.vehicle-built-in-interval-mode-field .interval-mode-option span {
  padding: 8px 10px;
  font-size: 0.86rem;
  justify-content: center;
}

.vehicle-built-in-intervals-grid .vehicle-custom-intervals-head > div {
  gap: 8px;
}

.vehicle-built-in-intervals-grid .vehicle-custom-intervals-head span {
  color: var(--surface-ink);
}

.vehicle-built-in-intervals-grid .vehicle-custom-intervals-head small {
  font-size: 0.92rem;
  color: rgba(48, 74, 94, 0.82);
}

.vehicle-built-in-intervals-grid .fuel-field {
  gap: 4px;
}

.vehicle-built-in-intervals-grid input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.vehicle-built-in-intervals-grid input[type="text"]::placeholder {
  color: rgba(94, 114, 130, 0.72);
  font-size: 0.94rem;
}

.vehicle-built-in-intervals-grid .vehicle-built-in-interval-months-field input[type="text"]::placeholder,
.vehicle-built-in-intervals-grid .vehicle-built-in-interval-miles-field input[type="text"]::placeholder {
  font-weight: 500;
}

.vehicle-editor .fuel-field {
  gap: 6px;
}

.vehicle-editor .fuel-editor-grid > .fuel-field {
  align-content: start;
}

.vehicle-editor .fuel-editor-grid > .fuel-field:first-child {
  grid-column: 1 / -1;
  max-width: 320px;
}

.vehicle-model-picker-field {
  display: grid;
  gap: 12px;
}

.vehicle-editor .fuel-editor-grid > .vehicle-model-picker-field {
  grid-column: 1 / -1;
}

.vehicle-model-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.vehicle-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vehicle-model-picker-field .vehicle-catalog-grid {
  grid-template-columns: minmax(130px, 0.58fr) minmax(136px, 0.68fr) minmax(274px, 1.74fr);
  align-items: end;
}

.vehicle-model-picker-field .vehicle-picker-year-field {
  grid-column: 1;
  grid-row: 1;
}

.vehicle-model-picker-field .vehicle-picker-make-field {
  grid-column: 2;
  grid-row: 1;
}

.vehicle-model-picker-field .vehicle-picker-model-field {
  grid-column: 3;
  grid-row: 1;
}

.vehicle-catalog-picker,
.vehicle-manual-entry-grid {
  display: grid;
  gap: 12px;
}

.vehicle-catalog-picker[hidden],
.vehicle-manual-entry-grid[hidden] {
  display: none !important;
}

.vehicle-catalog-status {
  margin: 0;
}

.vehicle-metric-link {
  display: block;
  color: inherit;
  text-decoration: none;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: center;
  cursor: pointer;
}

.vehicle-metric-link:hover,
.vehicle-metric-link:focus-visible {
  text-decoration: none;
}

.vehicle-link-status {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(236, 253, 245, 0.9);
  color: #065f46;
}

.vehicle-link-status.is-manual {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(255, 251, 235, 0.92);
  color: #92400e;
}

.vehicle-specs-grid {
  align-items: stretch;
}

.vehicle-specs-select-wrap {
  min-width: 260px;
}

.vehicle-specs-select-wrap .vehicle-form-label {
  margin-bottom: 6px;
}

.vehicle-specs-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.vehicle-specs-identity-photo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  background: #f8fafc;
}

.vehicle-specs-identity .panel-note {
  margin: 0;
}

.vehicle-spec-card {
  min-height: 138px;
}

.vehicle-spec-card-unavailable {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  border: 1px dashed rgba(14, 116, 144, 0.35);
  background: linear-gradient(145deg, #f0f9ff 0%, #ecfeff 100%) !important;
}

.vehicle-spec-card-unavailable .vehicle-spec-card-unavailable-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.14);
}

.vehicle-spec-card-unavailable strong {
  font-size: 1.22rem;
  line-height: 1.15;
  margin-top: 0;
}

.vehicle-spec-card-link-model {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 700;
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vehicle-spec-card-link-model:hover,
.vehicle-spec-card-link-model:focus-visible {
  color: #115e59;
}

.page-vehicles .vehicle-spec-card:nth-child(4n + 1) {
  background: linear-gradient(180deg, rgba(90, 150, 190, 0.12) 0%, rgba(255, 255, 255, 0.97) 100%);
}

.page-vehicles .vehicle-spec-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, rgba(242, 169, 59, 0.14) 0%, rgba(255, 255, 255, 0.97) 100%);
}

.page-vehicles .vehicle-spec-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, rgba(76, 175, 120, 0.12) 0%, rgba(255, 255, 255, 0.97) 100%);
}

.page-vehicles .vehicle-spec-card:nth-child(4n + 4) {
  background: linear-gradient(180deg, rgba(104, 132, 191, 0.12) 0%, rgba(255, 255, 255, 0.97) 100%);
}

.vehicle-spec-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--brand-deep);
}

.service-interval-settings-editor .fuel-field {
  gap: 6px;
}

.vehicle-editor input:not([type="hidden"]):not([type="file"]),
.vehicle-editor select {
  text-align: center;
}

.service-interval-settings-editor input:not([type="hidden"]):not([type="file"]),
.service-interval-settings-editor select {
  text-align: center;
}

.vehicle-editor textarea {
  text-align: left;
}

.service-interval-settings-modal-panel {
  max-width: 1040px;
}

.vehicle-interval-settings-modal .fuel-modal-backdrop {
  background: rgba(8, 18, 24, 0.62);
  z-index: 60;
}

.vehicle-interval-settings-modal .fuel-modal-panel {
  inset: 50% auto auto 50%;
  width: min(890px, calc(100vw - 32px));
  max-height: min(90vh, calc(100vh - 32px));
  transform: translate(-50%, -50%);
  z-index: 61;
}

#vehicleFormModal.vehicle-modal-child-open > .fuel-modal-panel {
  visibility: hidden;
  pointer-events: none;
}

#vehicleFormModal.vehicle-modal-child-open > .fuel-modal-backdrop {
  opacity: 0;
  pointer-events: none;
}

.vehicle-form-group {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(48, 74, 94, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.vehicle-form-group-head {
  display: grid;
  gap: 4px;
}

.vehicle-form-group-head-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.vehicle-form-group-head h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1rem;
  color: var(--brand-deep);
}

.vehicle-form-group-head .panel-note {
  margin: 0;
}

.vehicle-interval-settings-open {
  align-self: flex-start;
}

.vehicle-interval-summary-list {
  display: grid;
  gap: 8px;
}

.vehicle-interval-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(48, 74, 94, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

.vehicle-interval-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.vehicle-interval-summary-label i {
  width: 16px;
  text-align: center;
  color: rgb(31, 51, 66);
}

.vehicle-interval-summary-label span {
  color: rgb(31, 51, 66);
  font-weight: 700;
}

.vehicle-interval-summary-item strong {
  color: rgba(31, 51, 66, 0.72);
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  width: 100%;
  text-align: center;
  justify-self: stretch;
  font-weight: 700;
}

.vehicle-interval-summary-value {
  color: rgb(31, 51, 66);
  font-weight: 700;
  text-align: right;
  justify-self: stretch;
  white-space: nowrap;
  padding-left: 0;
  border-left: 0;
}

.vehicle-interval-summary-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.vehicle-interval-summary-empty.is-hidden {
  display: none;
}

.vehicle-group-grid {
  margin-bottom: 0;
}

.vehicle-charging-settings .fuel-editor-grid > .vehicle-charging-rate-field:first-child {
  grid-column: auto;
  max-width: none;
}

.vehicle-charging-settings .fuel-editor-grid > .vehicle-charging-rate-field {
  grid-column: span 1;
}

.vehicle-editor .fuel-editor-grid > .vehicle-email-field {
  grid-column: 1 / -1;
}

@media (max-width: 1320px) {
  .vehicle-editor .fuel-editor-grid:not(.vehicle-interval-grid) > .vehicle-interval-mode-field,
  .vehicle-editor .fuel-editor-grid:not(.vehicle-interval-grid) > .vehicle-interval-value-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .service-mobile-label-tail {
    display: none;
  }

  .vehicle-editor .fuel-editor-grid > .fuel-field:first-child {
    max-width: 100%;
  }

  .vehicle-interval-summary-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label mode"
      "value value";
    gap: 6px 10px;
    padding: 10px 12px;
  }

  .vehicle-interval-summary-label {
    grid-area: label;
  }

  .vehicle-interval-summary-item strong {
    grid-area: mode;
    justify-self: end;
    width: auto;
    text-align: right;
  }

  .vehicle-interval-summary-value {
    grid-area: value;
    font-size: 0.86rem;
    padding-left: 0;
    border-left: 0;
    text-align: left;
    justify-self: start;
  }

  .vehicle-form-group-head-action {
    align-items: stretch;
  }

  .vehicle-interval-settings-open {
    width: 100%;
    justify-content: center;
  }

  .vehicle-editor .fuel-editor-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-editor .fuel-editor-grid > .vehicle-model-picker-field {
    grid-column: 1;
  }

  .vehicle-model-picker-field .vehicle-catalog-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .vehicle-model-picker-field .vehicle-picker-year-field,
  .vehicle-model-picker-field .vehicle-picker-make-field {
    grid-row: 1;
  }

  .vehicle-model-picker-field .vehicle-picker-year-field {
    grid-column: 1;
  }

  .vehicle-model-picker-field .vehicle-picker-make-field {
    grid-column: 2;
  }

  .vehicle-model-picker-field .vehicle-picker-model-field {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
  }

  .vehicle-model-picker-field .vehicle-picker-model-field .vehicle-catalog-select,
  .vehicle-model-picker-field .vehicle-picker-model-field .vehicle-manual-model {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .vehicle-editor .vehicle-interval-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-built-in-intervals-header {
    display: none;
  }

  .vehicle-custom-intervals-header {
    display: none;
  }

  .vehicle-built-in-interval-row {
    grid-template-columns: 1fr;
  }

  .vehicle-built-in-mobile-label {
    display: inline-block;
  }

  .vehicle-built-in-interval-type {
    min-height: 0;
    padding: 12px 0 0;
  }

  .service-interval-settings-editor .vehicle-built-in-interval-label-field > .vehicle-built-in-mobile-label {
    display: none;
  }

  .service-interval-settings-editor .vehicle-built-in-interval-row + .vehicle-built-in-interval-row .vehicle-built-in-interval-type {
    margin-top: 30px;
  }

  .vehicle-custom-interval-row {
    grid-template-columns: 1fr;
  }

  .vehicle-editor .vehicle-custom-interval-row .fuel-field > span {
    display: inline-block;
    width: 100%;
    text-align: left;
  }

  .service-interval-settings-editor .vehicle-custom-interval-row .fuel-field > .vehicle-built-in-mobile-label {
    display: inline-block;
  }

  .vehicle-custom-interval-remove {
    justify-self: start;
    min-width: 102px;
    width: auto;
    padding: 10px 12px;
  }

  .vehicle-custom-interval-remove span {
    display: inline;
  }

  .vehicle-editor .vehicle-interval-grid > .vehicle-notifications-grid {
    grid-template-columns: 1fr;
  }
}

.vehicle-image-editor {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(48, 74, 94, 0.08) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.vehicle-image-preview-wrap {
  display: flex;
  justify-content: center;
}

.vehicle-image-preview {
  width: 200px;
  height: 200px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(19, 32, 43, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(18, 34, 48, 0.12);
}

.vehicle-image-controls {
  display: grid;
  gap: 10px;
}

.vehicle-image-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vehicle-image-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.vehicle-image-copy,
.vehicle-image-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.vehicle-image-hint {
  font-size: 0.88rem;
}

.vehicle-search-photo-button {
  width: fit-content;
}

.vehicle-search-photo-button.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.vehicle-image-search-status {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.vehicle-image-search-status.is-ready {
  color: rgb(41, 92, 68);
}

.vehicle-image-search-status.is-warning {
  color: rgb(155, 84, 27);
}

.vehicle-image-search-status.is-loading {
  color: rgb(64, 87, 108);
}

.vehicle-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #f7fbfa;
  font-weight: 700;
  cursor: pointer;
}

.vehicle-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.insurance-upload-input,
.service-upload-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.vehicle-image-reset {
  width: fit-content;
}

.service-upload-panel {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(48, 74, 94, 0.06) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.service-upload-copy {
  display: grid;
  gap: 10px;
}

.service-upload-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.service-upload-text,
.service-upload-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-upload-status {
  font-size: 0.9rem;
}

.service-upload-status.is-ready {
  color: var(--brand-deep);
  font-weight: 700;
}

.other-list {
  display: grid;
  gap: 10px;
}

.other-list-head,
.other-list-row {
  display: grid;
  grid-template-columns: 100px minmax(240px, 1.9fr) 100px 120px 170px;
  gap: 12px;
  align-items: center;
}

.other-list-head {
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-list-head span:last-child {
  text-align: right;
}

.other-list-head span:last-child {
  text-align: right;
}

.other-list-row {
  padding: 16px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(18, 34, 48, 0.06);
}

.other-list-cell {
  min-width: 0;
  color: var(--surface-ink);
  font-size: 0.96rem;
}

.other-list-cell strong,
.other-list-cell small {
  display: block;
}

.other-list-cell strong {
  font-size: 1rem;
}

.other-list-cell small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.other-list-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.service-receipts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

body.page-other .service-receipts {
  margin-top: 4px;
}

body.page-other .fuel-entry-actions {
  margin-top: 10px;
}

.service-receipts-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-receipt-link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.service-receipt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(22, 37, 50, 0.35);
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(31, 51, 66, 0.98) 0%, rgba(48, 74, 94, 0.96) 100%);
  color: #f4f8fb;
}

.service-receipt-chip .fuel-inline-icon {
  color: #ffffff;
}

.service-receipt-chip:hover {
  border-color: rgba(135, 169, 195, 0.5);
  box-shadow: 0 10px 18px rgba(18, 34, 48, 0.2);
}

.service-receipt-chip a {
  color: #ffffff;
}

.service-receipt-chip a:hover {
  color: #ffffff;
  text-decoration: none;
}

.service-receipt-delete-form {
  margin: 0;
}

.service-receipt-remove {
  width: 24px;
  height: 24px;
  min-height: 0;
  border: 1px solid rgba(19, 32, 43, 0.15);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-deep);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.service-receipt-remove:hover {
  background: rgba(220, 84, 79, 0.1);
  border-color: rgba(220, 84, 79, 0.35);
}

.service-existing-receipts-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.is-hidden {
  display: none !important;
}

.empty-state {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.empty-state h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state .primary-button,
.empty-state .ghost-button {
  width: auto;
}

.inline-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px dashed rgba(48, 74, 94, 0.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(48, 74, 94, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.inline-empty-state-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(48, 74, 94, 0.1);
  color: var(--brand-deep);
  font-size: 1.15rem;
}

.inline-empty-state-copy h4 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.inline-empty-state-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.inline-empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inline-empty-state-actions .primary-button,
.inline-empty-state-actions .ghost-button {
  width: auto;
}

.modern-flash-success {
  background: rgba(56, 127, 93, 0.12);
  color: #1f5e43;
}

.modern-toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3200;
  display: grid;
  gap: 10px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.modern-toast {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(19, 32, 43, 0.12);
  box-shadow: 0 16px 36px rgba(16, 28, 38, 0.24);
  background: rgba(248, 252, 251, 0.98);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.modern-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.modern-toast .modern-toast-close {
  border: 0;
  background: rgba(19, 32, 43, 0.08);
  color: var(--brand-deep);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modern-toast.modern-flash-success {
  background: rgba(236, 250, 244, 0.98);
  border-color: rgba(31, 157, 85, 0.24);
}

.modern-toast.modern-flash-warning {
  background: rgba(255, 246, 235, 0.98);
  border-color: rgba(217, 143, 61, 0.26);
}

.mpg-record-celebration {
  position: fixed;
  inset: 0;
  z-index: 3300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 20% 20%, rgba(56, 148, 184, 0.3) 0%, rgba(13, 24, 33, 0.88) 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mpg-record-celebration.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mpg-record-celebration-card {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100vw - 28px));
  border-radius: 24px;
  padding: 32px 26px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(165deg, rgba(16, 36, 51, 0.97) 0%, rgba(27, 68, 97, 0.96) 100%);
  box-shadow: 0 28px 62px rgba(5, 12, 18, 0.5);
  color: #f4fbff;
}

.mpg-record-eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(214, 241, 255, 0.84);
}

.mpg-record-celebration-card h3 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.12;
  color: #ffffff;
}

.mpg-record-value {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 7vw, 3.3rem);
  line-height: 1;
  font-weight: 800;
  color: #9fe6ff;
}

.mpg-record-meta {
  margin: 0 0 22px;
  color: rgba(214, 241, 255, 0.94);
  font-size: 1rem;
}

.mpg-record-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.mpg-confetti-piece {
  position: absolute;
  top: -10vh;
  border-radius: 2px;
  opacity: 0.96;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation-name: mpg-confetti-fall;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

@keyframes mpg-confetti-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--confetti-drift, 0px), 115vh, 0) rotate(var(--confetti-rotate, 0deg));
    opacity: 0.92;
  }
}

.is-hidden {
  display: none !important;
}

.auth-body {
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 100vh;
}

.auth-showcase {
  display: grid;
  align-items: center;
  padding: 48px;
  background:
    radial-gradient(circle at top left, rgba(242, 169, 59, 0.18), transparent 20rem),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(31, 51, 66, 0.98) 0%, rgba(48, 74, 94, 0.96) 100%);
  color: #f6fbfa;
}

.auth-showcase-inner {
  width: min(100%, 640px);
  margin: 0 auto;
}

.auth-brand-lockup {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.auth-brand-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

.auth-brand-tag {
  margin: 0;
  color: rgba(246, 251, 250, 0.68);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-showcase h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.auth-lead {
  margin: 18px 0 0;
  color: rgba(246, 251, 250, 0.82);
  font-size: 1.08rem;
  line-height: 1.8;
}

.auth-feature-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(242, 169, 59, 0.14), transparent 15rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.06) 100%);
  box-shadow: 0 24px 60px rgba(8, 17, 25, 0.22);
  backdrop-filter: blur(12px);
}

.auth-feature-spotlight-copy {
  display: grid;
  align-content: start;
}

.auth-feature-spotlight-copy h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.auth-feature-spotlight-lead {
  margin: 14px 0 0;
  color: rgba(246, 251, 250, 0.82);
  font-size: 1rem;
  line-height: 1.75;
}

.auth-feature-spotlight-points {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.auth-feature-spotlight-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 0;
  color: rgba(246, 251, 250, 0.94);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.auth-feature-graphic {
  display: grid;
  gap: 14px;
}

.auth-fuel-graphic-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 24, 34, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-fuel-graphic-card-primary {
  background: linear-gradient(160deg, rgba(15, 34, 48, 0.96) 0%, rgba(33, 62, 82, 0.92) 100%);
}

.auth-fuel-graphic-topline,
.auth-fuel-station-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-fuel-graphic-label {
  color: rgba(235, 245, 250, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-fuel-graphic-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbfd;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-fuel-graphic-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.auth-fuel-graphic-price-row strong,
.auth-fuel-graphic-card-stat strong,
.auth-fuel-station-row strong {
  color: #ffffff;
}

.auth-fuel-graphic-price-row strong {
  font-size: 2.2rem;
  line-height: 1;
}

.auth-fuel-graphic-price-row span,
.auth-fuel-graphic-meta,
.auth-fuel-station-row span,
.auth-fuel-graphic-mix-legend span {
  color: rgba(235, 245, 250, 0.8);
}

.auth-fuel-graphic-meter {
  margin-top: 16px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.auth-fuel-graphic-meter-bar {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b857 0%, #ffd995 52%, #9fdfff 100%);
}

.auth-fuel-graphic-trendline {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 70px;
  margin-top: 16px;
}

.auth-fuel-graphic-trendline span {
  flex: 1 1 0;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, rgba(159, 223, 255, 0.9) 0%, rgba(88, 146, 186, 0.25) 100%);
}

.auth-fuel-graphic-trendline span:nth-child(1) { height: 38%; }
.auth-fuel-graphic-trendline span:nth-child(2) { height: 62%; }
.auth-fuel-graphic-trendline span:nth-child(3) { height: 50%; }
.auth-fuel-graphic-trendline span:nth-child(4) { height: 78%; }
.auth-fuel-graphic-trendline span:nth-child(5) { height: 58%; }
.auth-fuel-graphic-trendline span:nth-child(6) { height: 86%; }

.auth-fuel-graphic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-fuel-graphic-card-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 1.95rem;
  line-height: 1;
}

.auth-fuel-graphic-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

.auth-fuel-graphic-card-stat {
  min-height: 136px;
}

.auth-fuel-graphic-card-stat-secondary strong {
  font-size: 1.5rem;
}

.auth-feature-spotlight-service {
  background:
    radial-gradient(circle at top right, rgba(159, 223, 255, 0.12), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.auth-service-graphic-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 24, 34, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-service-graphic-card-primary {
  background: linear-gradient(160deg, rgba(18, 32, 43, 0.96) 0%, rgba(43, 67, 82, 0.92) 100%);
}

.auth-service-graphic-topline,
.auth-service-graphic-title-row,
.auth-service-graphic-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-service-graphic-label {
  color: rgba(235, 245, 250, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-service-graphic-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(111, 190, 148, 0.18);
  color: #d9f4e4;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-service-graphic-title-row {
  margin-top: 18px;
  align-items: baseline;
}

.auth-service-graphic-title-row strong,
.auth-service-graphic-card-stat strong {
  color: #ffffff;
}

.auth-service-graphic-title-row strong {
  font-size: 2.05rem;
  line-height: 1;
}

.auth-service-graphic-title-row span,
.auth-service-graphic-meta-row span,
.auth-service-graphic-meta {
  color: rgba(235, 245, 250, 0.82);
}

.auth-service-graphic-title-row span {
  font-size: 1.2rem;
  font-weight: 700;
}

.auth-service-graphic-meta-row {
  margin-top: 12px;
  font-size: 0.92rem;
}

.auth-service-graphic-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-service-graphic-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(245, 250, 252, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-service-graphic-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fdcff;
  box-shadow: 0 0 0 4px rgba(143, 220, 255, 0.14);
  flex: 0 0 auto;
}

.auth-service-graphic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-service-graphic-card-stat {
  min-height: 136px;
}

.auth-service-graphic-card-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 1.95rem;
  line-height: 1;
}

.auth-service-graphic-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

.auth-feature-spotlight-reports {
  background:
    radial-gradient(circle at top right, rgba(240, 184, 87, 0.16), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.auth-reports-graphic-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 24, 34, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-reports-graphic-card-primary {
  background: linear-gradient(160deg, rgba(21, 34, 46, 0.96) 0%, rgba(58, 74, 88, 0.92) 100%);
}

.auth-reports-graphic-topline,
.auth-reports-graphic-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-reports-graphic-label {
  color: rgba(235, 245, 250, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-reports-graphic-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbfd;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-reports-graphic-total-row {
  margin-top: 18px;
  align-items: baseline;
}

.auth-reports-graphic-total-row strong,
.auth-reports-graphic-card-stat strong {
  color: #ffffff;
}

.auth-reports-graphic-total-row strong {
  font-size: 2.1rem;
  line-height: 1;
}

.auth-reports-graphic-total-row span,
.auth-reports-graphic-axis span,
.auth-reports-graphic-meta {
  color: rgba(235, 245, 250, 0.82);
}

.auth-reports-graphic-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  margin-top: 22px;
}

.auth-reports-graphic-bars span {
  flex: 1 1 0;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(180deg, rgba(240, 184, 87, 0.95) 0%, rgba(143, 220, 255, 0.55) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-reports-graphic-bars span:nth-child(1) { height: 34%; }
.auth-reports-graphic-bars span:nth-child(2) { height: 52%; }
.auth-reports-graphic-bars span:nth-child(3) { height: 76%; }
.auth-reports-graphic-bars span:nth-child(4) { height: 58%; }
.auth-reports-graphic-bars span:nth-child(5) { height: 82%; }
.auth-reports-graphic-bars span:nth-child(6) { height: 68%; }

.auth-reports-graphic-axis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.auth-reports-graphic-axis span {
  font-size: 0.78rem;
  text-align: center;
}

.auth-reports-graphic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-reports-graphic-card-stat {
  min-height: 136px;
}

.auth-reports-graphic-card-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 1.95rem;
  line-height: 1;
}

.auth-reports-graphic-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

.auth-feature-spotlight-ownership {
  background:
    radial-gradient(circle at top right, rgba(143, 220, 255, 0.14), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.auth-ownership-graphic-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 24, 34, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-ownership-graphic-card-primary {
  background: linear-gradient(160deg, rgba(18, 33, 45, 0.96) 0%, rgba(44, 72, 89, 0.92) 100%);
}

.auth-ownership-graphic-topline,
.auth-ownership-graphic-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-ownership-graphic-label {
  color: rgba(235, 245, 250, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-ownership-graphic-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f7fbfd;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-ownership-graphic-total-row {
  margin-top: 18px;
  align-items: baseline;
}

.auth-ownership-graphic-total-row strong,
.auth-ownership-graphic-card-stat strong {
  color: #ffffff;
}

.auth-ownership-graphic-total-row strong {
  font-size: 2.1rem;
  line-height: 1;
}

.auth-ownership-graphic-total-row span,
.auth-ownership-graphic-meta,
.auth-ownership-graphic-legend span {
  color: rgba(235, 245, 250, 0.82);
}

.auth-ownership-graphic-stack {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-ownership-segment {
  display: block;
  height: 24px;
  border-radius: 12px;
}

.auth-ownership-segment-fuel {
  width: 52%;
  background: linear-gradient(90deg, #f0b857 0%, #ffd89a 100%);
}

.auth-ownership-segment-service {
  width: 31%;
  background: linear-gradient(90deg, #8fdcff 0%, #b8ebff 100%);
}

.auth-ownership-segment-other {
  width: 17%;
  background: linear-gradient(90deg, #7aa1bc 0%, #94b7cf 100%);
}

.auth-ownership-graphic-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.auth-ownership-graphic-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-ownership-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.auth-ownership-dot-fuel {
  background: #f0b857;
}

.auth-ownership-dot-service {
  background: #8fdcff;
}

.auth-ownership-dot-other {
  background: #94b7cf;
}

.auth-ownership-graphic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-ownership-graphic-card-stat {
  min-height: 136px;
}

.auth-ownership-graphic-card-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 1.95rem;
  line-height: 1;
}

.auth-ownership-graphic-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

.auth-feature-spotlight-finance {
  background:
    radial-gradient(circle at top right, rgba(111, 190, 148, 0.16), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.auth-finance-graphic-card {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 24, 34, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-finance-graphic-card-primary {
  background: linear-gradient(160deg, rgba(19, 36, 42, 0.96) 0%, rgba(42, 76, 72, 0.92) 100%);
}

.auth-finance-graphic-topline,
.auth-finance-graphic-total-row,
.auth-finance-graphic-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-finance-graphic-label {
  color: rgba(235, 245, 250, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-finance-graphic-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(111, 190, 148, 0.18);
  color: #d9f4e4;
  font-size: 0.76rem;
  font-weight: 700;
}

.auth-finance-graphic-total-row {
  margin-top: 18px;
  align-items: baseline;
}

.auth-finance-graphic-total-row strong,
.auth-finance-graphic-card-stat strong {
  color: #ffffff;
}

.auth-finance-graphic-total-row strong {
  font-size: 2.1rem;
  line-height: 1;
}

.auth-finance-graphic-total-row span,
.auth-finance-graphic-progress-meta span,
.auth-finance-graphic-meta {
  color: rgba(235, 245, 250, 0.82);
}

.auth-finance-graphic-progress {
  margin-top: 22px;
  height: 16px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-finance-graphic-progress-bar {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #72c290 0%, #a8dfbc 100%);
}

.auth-finance-graphic-progress-meta {
  margin-top: 12px;
  font-size: 0.9rem;
}

.auth-finance-graphic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-finance-graphic-card-stat {
  min-height: 136px;
}

.auth-finance-graphic-card-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 1.95rem;
  line-height: 1;
}

.auth-finance-graphic-meta {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
}

.auth-panel-wrap {
  display: grid;
  align-items: start;
  align-content: start;
  padding: 48px 28px 36px;
}

.auth-panel {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(18, 34, 48, 0.12);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 28px;
}

.auth-panel-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-panel-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 18px;
  padding: 6px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 999px;
  background: rgba(48, 74, 94, 0.06);
}

.auth-switch {
  flex: 1 1 0;
  min-width: 120px;
}

.auth-pane {
  display: none;
}

.auth-pane.is-active {
  display: block;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--surface-ink);
  font-weight: 600;
}

.auth-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.auth-working {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.auth-helper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
}

.auth-text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-server-message,
.auth-client-message {
  margin-bottom: 16px;
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: 0;
    padding: 34px 24px 18px;
  }

  .auth-panel-wrap {
    padding-top: 10px;
  }

  .auth-panel {
    position: static;
    top: auto;
  }

  .auth-feature-spotlight {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .summary-grid,
  .service-overview-grid,
  .service-maintenance-grid,
  .oil-life-grid,
  .vehicle-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-summary-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-summary-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-mix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-mix-layout {
    grid-template-columns: 1fr;
  }

  .report-mix-pie {
    width: 190px;
  }

  .report-mix-segment-percent {
    font-size: 0.64rem;
  }

  .report-mix-legend {
    order: 1;
  }

  .report-mix-pie-wrap {
    order: 2;
  }

  .vehicle-editor .fuel-editor-grid > .vehicle-interval-mode-field,
  .vehicle-editor .fuel-editor-grid > .vehicle-interval-value-field {
    grid-column: 1 / -1;
  }

  .report-station-row,
  .report-station-row-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid,
  .hero-panel,
  .finance-hero-panel,
  .insurance-history-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  body {
    background:
      radial-gradient(circle at top right, rgba(242, 169, 59, 0.16), transparent 21rem),
      radial-gradient(circle at top left, rgba(48, 74, 94, 0.1), transparent 20rem),
      linear-gradient(180deg, #f7fafc 0%, var(--bg) 100%);
  }

  .auth-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .auth-panel-head h2 {
    font-size: 2rem;
  }

  .auth-switcher {
    border-radius: 22px;
  }

  .auth-switch {
    min-width: calc(50% - 6px);
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    z-index: 1000;
    box-shadow: var(--shadow);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .main-panel {
    padding: 18px 18px 24px;
  }

  .mobile-app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 25px;
    padding: 0 2px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    font-weight: 700;
    z-index: 10;
  }

  .mobile-topbar-brand {
    display: inline-flex;
    min-height: 42px;
  }

  #dashboard .stat-card:not(.stat-card-primary) {
    border-color: rgba(24, 42, 55, 0.14);
    box-shadow: 0 10px 20px rgba(9, 19, 27, 0.16);
    background-clip: padding-box;
  }

  #dashboard .accent-card {
    background: linear-gradient(165deg, rgba(236, 230, 219, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  }

  #dashboard .stat-card-sky {
    background: linear-gradient(165deg, rgba(222, 235, 245, 0.98) 0%, rgba(248, 251, 253, 0.98) 100%);
  }

  #dashboard .stat-card-slate {
    background: linear-gradient(165deg, rgba(227, 235, 241, 0.98) 0%, rgba(249, 251, 253, 0.98) 100%);
  }

  #dashboard .stat-card-sun {
    background: linear-gradient(165deg, rgba(239, 229, 212, 0.98) 0%, rgba(249, 251, 253, 0.98) 100%);
  }

  #dashboard .stat-card .stat-label,
  #dashboard .stat-card .stat-meta,
  #dashboard .stat-card .stat-meter-subcopy,
  #dashboard .stat-card .stat-sidekick,
  #dashboard .stat-card .stat-mix-legend-item {
    color: rgba(31, 51, 66, 0.74);
  }

  #dashboard .chart-panel .chart-placeholder-live .chart-group:nth-child(n + 5) {
    display: none;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 34, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 170ms ease;
    z-index: 999;
  }

  .sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-utility-group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .fuel-entries-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .service-records-head-top {
    flex-wrap: wrap;
  }

  .service-records-head-actions {
    justify-content: flex-start;
  }

  .service-records-download {
    width: auto;
    align-self: flex-start;
  }

  .service-records-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .service-records-toolbar .filter-rack {
    width: 100%;
  }

  .service-records-toolbar .service-view-toggle {
    align-self: flex-start;
  }

  .filter-rack {
    width: 100%;
    flex-wrap: wrap;
  }

  .reports-filter-rack .vehicle-form {
    flex: 0 0 auto;
  }

  .report-inline-filter-card {
    margin-left: 0;
    width: 100%;
  }

  .panel-head {
    flex-wrap: wrap;
  }

  .panel-head .report-inline-filter-card {
    order: 3;
    width: 100%;
  }

  .vehicle-form {
    flex: 1 1 220px;
  }

  .topbar-actions > .ghost-button,
  .topbar-actions > .primary-button,
  .topbar-actions > .import-button,
  .topbar-utility-group > .ghost-button,
  .topbar-utility-group > .primary-button,
  .topbar-utility-group > .import-button,
  .topbar-utility-group > .button-link {
    flex: 0 1 auto;
    width: auto;
  }

  .vehicle-form-card {
    min-width: 0;
  }

  .vehicle-select {
    min-width: 100%;
  }

  .fuel-editor-grid {
    grid-template-columns: 1fr;
  }

  .fuel-city-summary {
    align-items: flex-start;
  }

  .stat-mix-visual {
    min-width: 0;
  }

  .fuel-city-slider-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fuel-city-end-label-highway {
    text-align: right;
  }

  .fuel-editor-actions .ghost-button,
  .fuel-editor-actions .primary-button,
  .fuel-editor-actions .import-button,
  .fuel-editor-actions .danger-button {
    flex: 0 1 auto;
    width: auto;
  }

  .service-flag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-editor .fuel-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-editor .fuel-editor-grid > .fuel-field:nth-child(3) {
    grid-column: 1 / -1;
  }

  .service-editor .fuel-editor-grid > .fuel-field:nth-child(n + 4),
  .service-editor .fuel-editor-grid > .service-type-field {
    grid-column: 1 / -1;
  }

  .vehicle-toggle-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-reminders-flag,
  .vehicle-summary-flag,
  .vehicle-email-field,
  .vehicle-retired-date-field {
    grid-column: 1 / -1;
  }

  .vehicle-image-editor {
    grid-template-columns: 1fr;
  }

  .oil-life-grid {
    grid-template-columns: 1fr;
  }

  .service-maintenance-grid {
    grid-template-columns: 1fr;
  }

  .service-interval-inline {
    grid-template-columns: 1fr;
  }

  .report-table-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-table-row span::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .report-table-head {
    display: none;
  }

  .report-station-head {
    display: none;
  }

  .report-station-row,
  .report-station-row-four {
    grid-template-columns: 1fr;
  }

  .report-station-row > div::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .report-station-row-four > div:nth-child(3) {
    display: none;
  }

  .report-mix-callout {
    min-width: 46px;
    min-height: 24px;
    font-size: 0.5rem;
    max-width: 50px;
    padding: 2px 7px;
  }

  .report-mix-legend-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .report-mix-legend-values {
    justify-content: flex-end;
    gap: 8px;
  }

  .report-mix-segment-percent {
    font-size: 0.6rem;
  }

  .inline-empty-state {
    grid-template-columns: 1fr;
  }

  .fuel-modal-panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    inset: 10px auto auto 50%;
  }

  @supports (height: 100dvh) {
    .fuel-modal-panel {
      max-height: calc(100dvh - 20px);
    }
  }

  #driveImportModal .fuel-modal-panel,
  #driveImportModal.modal-align-top .fuel-modal-panel {
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 640px) {
  .auth-showcase {
    order: 2;
  }

  .auth-panel-wrap {
    order: 1;
  }

  .auth-showcase {
    padding: 26px 18px 10px;
  }

  .auth-shell {
    min-height: auto;
  }

  .auth-panel-wrap {
    padding: 14px 14px 24px;
  }

  .auth-panel {
    width: 100%;
    padding: 18px;
  }

  .auth-panel-head h2 {
    font-size: 1.78rem;
  }

  .auth-feature-spotlight {
    padding: 18px;
  }

  .auth-fuel-graphic-grid,
  .auth-service-graphic-grid,
  .auth-reports-graphic-grid,
  .auth-ownership-graphic-grid,
  .auth-ownership-graphic-legend,
  .auth-finance-graphic-grid {
    grid-template-columns: 1fr;
  }

  .auth-switch {
    min-width: 100%;
  }

  .auth-actions {
    align-items: stretch;
  }

  .auth-actions .primary-button {
    width: 100%;
    justify-content: center;
  }

  .stats-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .stat-card-maintenance strong {
    font-size: 1.62rem;
  }

  .stat-meter {
    max-width: 100%;
  }

  .stat-meter-copy {
    font-size: 0.82rem;
  }

  .stat-meter-subcopy {
    font-size: 0.72rem;
  }

  .report-summary-grid-four {
    grid-template-columns: 1fr;
  }

  .report-summary-grid-three {
    grid-template-columns: 1fr;
  }

  .report-mix-grid {
    grid-template-columns: 1fr;
  }

  .report-station-row {
    grid-template-columns: 1fr;
  }

  .report-station-row-four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .report-station-row-four > div::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .report-station-row-four > div:nth-child(3) {
    display: none;
  }

  .report-station-row-four > div:nth-child(1),
  .report-station-row-four > div:nth-child(2),
  .report-station-row-four > div:nth-child(4) {
    grid-column: auto;
  }

  .report-leader-row > div:first-child::before {
    display: none;
  }

  .report-leader-row > div:nth-child(2)::before,
  .report-leader-row > div:nth-child(3)::before,
  .report-leader-row > div:nth-child(2) span,
  .report-leader-row > div:nth-child(3) span {
    display: none;
  }

  

  .reports-filter-rack {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .reports-filter-rack .vehicle-form {
    flex: 0 0 auto;
  }

  .reports-filter-rack .reports-segmented-control {
    flex-wrap: nowrap;
  }

  .fuel-view-toggle {
    width: 100%;
  }

  .fuel-view-toggle .segment {
    flex: 1 1 0;
  }

  .service-view-toggle {
    width: 100%;
  }

  .service-view-toggle .segment {
    flex: 1 1 0;
  }

  .other-view-toggle {
    width: 100%;
  }

  .other-view-toggle .segment {
    flex: 1 1 0;
  }

  .fuel-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .fuel-entry-top {
    flex-direction: column;
  }

  .vehicle-hero-identity {
    align-items: flex-start;
  }

  .vehicle-hero-photo {
    width: 85px;
    height: 85px;
    border-radius: 20px;
  }

  .fuel-entry-price {
    min-width: 100%;
  }

  .service-entry-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-entry-price {
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
  }

  .service-entry-main {
    gap: 10px;
  }

  .service-badges {
    gap: 6px;
  }

  .service-badge {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .service-entry .service-receipts {
    margin-top: 10px;
  }

  .service-entry .fuel-entry-actions {
    margin-top: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .fuel-entry-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-metrics,
  .service-flag-grid,
  .service-overview-grid,
  .vehicle-card-grid,
  .vehicle-metrics {
    grid-template-columns: 1fr;
  }

  .service-custom-intervals-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-card-actions .vehicle-service-link,
  .vehicle-card-actions .insurance-open-modal {
    margin-left: 0;
  }

  .vehicle-card-actions .vehicle-service-link {
    margin-left: auto;
  }

  .vehicle-card-action-label {
    display: none;
  }

  .vehicle-card-actions .fuel-action-link {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .vehicle-card-actions .fuel-action-link .fuel-inline-icon {
    margin-right: 0;
  }

  .fuel-list-head {
    display: none;
  }

  .fuel-list-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "date station station"
      "amount mpg actions";
    gap: 8px 12px;
    align-items: center;
  }

  .fuel-list-price,
  .fuel-list-gallons,
  .fuel-list-tank-miles,
  .fuel-list-odometer,
  .fuel-list-mix {
    display: none;
  }

  .fuel-list-date { grid-area: date; }
  .fuel-list-station { grid-area: station; display: block; text-align: right; }
  .fuel-list-amount { grid-area: amount; text-align: left !important; justify-self: start; }
  .fuel-list-mpg { grid-area: mpg; text-align: left !important; justify-self: start; }
  .fuel-list-actions { grid-area: actions; justify-content: flex-end; }

  .fuel-list-date strong,
  .fuel-list-station strong,
  .fuel-list-amount strong,
  .fuel-list-mpg {
    font-size: 0.98rem;
  }

  .fuel-list-amount strong,
  .fuel-list-mpg strong {
    text-align: left !important;
  }

  .fuel-list-date small,
  .fuel-list-station small,
  .fuel-list-amount small,
  .fuel-list-mpg small {
    display: none;
  }

  .fuel-list-mpg {
    color: var(--surface-ink);
    font-weight: 700;
  }

  .fuel-list-mpg::after {
    content: " mpg";
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
  }

  .fuel-list-actions .fuel-inline-form {
    display: inline-flex;
  }

  .fuel-list-actions .fuel-action-link-compact,
  .fuel-list-actions .fuel-delete-button-compact {
    min-width: 42px;
    height: 34px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0;
  }

  .fuel-list-actions .fuel-action-link-compact .fuel-inline-icon,
  .fuel-list-actions .fuel-delete-button-compact .fuel-inline-icon {
    margin-right: 0;
    font-size: 0.82rem;
  }

  .service-list-head {
    display: none;
  }

  .service-list-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "date actions"
      "location icons"
      "amount icons";
    gap: 8px 14px;
    align-items: start;
  }

  .service-list-type,
  .service-list-odometer {
    display: none;
  }

  .service-list-date {
    grid-area: date;
  }

  .service-list-location {
    grid-area: location;
  }

  .service-list-icons-cell {
    display: flex;
    grid-area: icons;
    align-self: center;
    justify-content: flex-end;
  }

  .service-list-amount {
    grid-area: amount;
  }

  .service-list-actions {
    grid-area: actions;
    align-self: start;
  }

  .service-list-location strong,
  .service-list-date strong,
  .service-list-amount strong {
    font-size: 0.98rem;
  }

  .service-list-location small {
    display: none;
  }

  .service-list-location .service-receipts {
    display: none;
  }

  .service-type-icons {
    display: inline-flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0;
    max-width: 92px;
  }

  .service-list-actions {
    justify-content: flex-end;
  }

  .service-list-actions .record-delete-form {
    display: none;
  }

  .service-list-actions .fuel-action-link-compact {
    min-width: 42px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0;
  }

  .service-list-actions .fuel-action-link-compact .fuel-inline-icon {
    margin-right: 0;
    font-size: 0.95rem;
  }

  .vehicle-card-top {
    flex-direction: column;
  }

  .vehicle-card-identity {
    align-items: flex-start;
  }

  .vehicle-image-preview {
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .other-list-head {
    display: none;
  }

  .other-list-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }

  .other-list-details,
  .other-list-actions {
    grid-column: 1 / -1;
  }

  .other-list-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .table-row,
  .table-head {
    grid-template-columns: 1fr 1fr;
  }

  .report-table-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }

  .report-table-row span:nth-child(1),
  .report-table-row span:nth-child(6),
  .report-table-row span:nth-child(7),
  .report-table-row span:nth-child(8),
  .report-table-row span:nth-child(9),
  .report-table-row span:nth-child(10) {
  grid-column: 1 / -1;
}

  .report-table-yearly .report-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .report-table-yearly.is-ev .report-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-table-yearly .report-table-row > span {
    grid-column: auto;
    display: block !important;
  }

  .report-table-yearly .report-table-row > span:nth-child(1) {
    grid-column: 1 / -1;
  }

  .report-table-row span::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .report-leader-label {
    margin-bottom: 14px;
    font-size: 0.84rem;
  }

  .report-leader-card {
    padding: 12px;
  }

  .report-leader-tabs,
  .report-leader-subtabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .table-row span:nth-child(3),
  .table-row span:nth-child(4),
  .table-head span:nth-child(3),
  .table-head span:nth-child(4) {
    text-align: left;
  }

.hero-copy h3,
  .topbar h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 700px) {
  .report-table-yearly .report-table-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .report-table-yearly .report-table-row > span:nth-child(1) {
    grid-column: auto !important;
  }
}

.page-charging .topbar,
.page-charging .hero-panel,
.page-charging .stats-grid,
.page-charging .panel,
.page-charging .stat-card,
.page-charging .hero-stat,
.page-charging .vehicle-hero-copy {
  min-width: 0;
}

.page-charging .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.page-charging .charging-snapshot-meta {
  width: 100%;
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.page-charging .charging-snapshot-meta-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-charging .charging-snapshot-date {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.page-charging .charging-snapshot-provider-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(48, 74, 94, 0.22);
  background: rgba(48, 74, 94, 0.08);
  color: var(--brand-deep);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-charging .charging-snapshot-location {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

@media (max-width: 1180px) {
  .page-charging .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-charging .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .page-charging .topbar-actions > * {
    flex: 1 1 240px;
    min-width: 0;
  }

  .page-charging .topbar-utility-group {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page-charging .topbar-utility-group > .ghost-button,
  .page-charging .topbar-utility-group > .primary-button,
  .page-charging .topbar-utility-group > .import-button,
  .page-charging .topbar-utility-group > .button-link {
    flex: 1 1 220px;
    min-width: 0;
  }

  .page-charging .vehicle-form-card,
  .page-charging .vehicle-form,
  .page-charging .vehicle-select {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 920px) {
  .page-charging .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .page-charging .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .page-fuel .stats-grid.stats-grid-ev {
    grid-template-columns: 1fr !important;
  }
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: stretch;
}

.profile-identity-card,
.profile-card {
  border: 1px solid rgba(34, 58, 74, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 251, 0.98) 100%);
  box-shadow: 0 22px 44px rgba(19, 32, 43, 0.08);
}

.profile-card-danger {
  border-color: rgba(168, 52, 44, 0.18);
  background: linear-gradient(180deg, rgba(255, 247, 245, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.profile-identity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  padding: 24px 26px;
  border-radius: 28px;
}

.profile-avatar,
.profile-avatar-image {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #1f3342 0%, #3e5b70 100%);
  box-shadow: 0 16px 34px rgba(31, 51, 66, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.52);
}

.profile-identity-copy h3 {
  margin: 6px 0 8px;
  font-size: 2rem;
  line-height: 1.05;
}

.profile-identity-copy .eyebrow {
  display: block;
  max-width: none;
  white-space: normal;
}

.profile-identity-copy p:last-child {
  margin: 0;
  color: var(--text-soft);
}

.profile-photo-form {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.profile-photo-tools {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.profile-photo-preview {
  position: relative;
  width: 108px;
  height: 108px;
}

.profile-photo-preview-image {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  border: 1px solid rgba(34, 58, 74, 0.12);
  box-shadow: 0 16px 38px rgba(31, 51, 66, 0.16);
}

.profile-photo-trigger {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%);
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 12px 24px rgba(24, 132, 71, 0.22);
  text-decoration: none;
  cursor: pointer;
}

.profile-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.profile-photo-copy {
  display: grid;
  gap: 4px;
  max-width: 220px;
  text-align: center;
}

.profile-photo-status {
  margin: 0;
}
.profile-photo-status {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.profile-photo-status.is-ready {
  color: var(--success-hover);
  font-weight: 700;
}

.profile-photo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-stat-grid {
  height: 100%;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.profile-card {
  padding: 24px 26px 28px;
  border-radius: 28px;
}

.profile-form {
  display: grid;
  gap: 18px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.profile-field {
  display: grid;
  gap: 8px;
}

.profile-field span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-field span.is-required::after {
  content: " *";
  color: rgba(217, 146, 36, 0.9);
  font-weight: 900;
}

.profile-form.is-submitted .profile-field-required input:invalid,
.profile-form.is-submitted .profile-field-required textarea:invalid,
.profile-form.is-submitted .profile-field-required select:invalid {
  border-color: rgba(197, 55, 55, 0.55);
  box-shadow: 0 0 0 3px rgba(197, 55, 55, 0.12);
  background: rgba(255, 247, 247, 0.92);
}

.profile-form.is-submitted .profile-field-required input:invalid:focus,
.profile-form.is-submitted .profile-field-required textarea:invalid:focus,
.profile-form.is-submitted .profile-field-required select:invalid:focus {
  border-color: rgba(197, 55, 55, 0.75);
  background: #ffffff;
}

.profile-field.is-touched input:invalid,
.profile-field.is-touched textarea:invalid,
.profile-field.is-touched select:invalid,
.profile-form.is-submitted input:invalid,
.profile-form.is-submitted textarea:invalid,
.profile-form.is-submitted select:invalid {
  border-color: rgba(197, 55, 55, 0.7);
  box-shadow: 0 0 0 3px rgba(197, 55, 55, 0.14);
  background: rgba(255, 247, 247, 0.92);
}

.profile-field input,
.profile-field select,
.profile-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 32, 43, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--surface-ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.profile-field input[readonly] {
  background: rgba(232, 239, 244, 0.9);
  color: rgba(31, 51, 66, 0.78);
}

.profile-field-wide {
  grid-column: 1 / -1;
}

.profile-helper-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.profile-actions {
  display: flex;
  justify-content: flex-start;
}

.profile-danger-button {
  color: #8b2f26;
  border-color: rgba(168, 52, 44, 0.18);
  background: rgba(190, 72, 63, 0.08);
}

.profile-danger-button:hover,
.profile-danger-button:focus-visible {
  color: #7d271f;
  border-color: rgba(168, 52, 44, 0.28);
  background: rgba(190, 72, 63, 0.14);
}

.flash-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  border: 1px solid transparent;
  box-shadow: 0 18px 36px rgba(31, 51, 66, 0.08);
}

.flash-banner i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 1rem;
  flex-shrink: 0;
}

.flash-banner p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.flash-banner-success {
  background: linear-gradient(145deg, rgba(31, 157, 85, 0.16) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(31, 157, 85, 0.24);
  color: #155b36;
}

.flash-banner-success i {
  background: rgba(31, 157, 85, 0.18);
  color: #13713f;
}

.flash-banner-warning {
  background: linear-gradient(145deg, rgba(180, 54, 43, 0.13) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(180, 54, 43, 0.22);
  color: #7c2f28;
}

.flash-banner-warning i {
  background: rgba(180, 54, 43, 0.14);
  color: #a2392f;
}

.profile-errors {
  display: grid;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(180, 54, 43, 0.08);
  border: 1px solid rgba(180, 54, 43, 0.18);
  color: #7c2f28;
}

.profile-errors p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

@media (max-width: 1180px) {
  .profile-hero,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .profile-identity-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .profile-photo-form {
    justify-items: start;
    width: 100%;
  }

  .profile-photo-actions {
    justify-content: flex-start;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .flash-banner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}
.report-station-row-four {
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .insurance-history-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .insurance-history-row-copy {
    gap: 6px;
  }

  .insurance-history-row-copy strong {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .insurance-history-meta-row {
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .insurance-history-meta-item + .insurance-history-meta-item::before {
    display: none;
  }

  .insurance-history-row-actions {
    justify-content: flex-start;
    width: 100%;
    padding-top: 2px;
    flex-direction: row;
    align-items: center;
  }

  .insurance-history-row-actions .fuel-action-link,
  .insurance-history-row-actions .fuel-delete-button,
  .insurance-history-row-actions .vehicle-inline-form {
    width: auto;
  }

  .insurance-history-row-actions .fuel-action-link-compact,
  .insurance-history-row-actions .fuel-delete-button-compact {
    width: auto;
    height: auto;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .insurance-history-row-actions .fuel-action-link-compact .fuel-inline-icon,
  .insurance-history-row-actions .fuel-delete-button-compact .fuel-inline-icon {
    margin-right: 6px;
  }

  .insurance-history-row-actions .vehicle-inline-form {
    margin: 0;
  }

  .report-station-row-four {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .chart-scroller {
    grid-template-columns: 1fr;
  }

  .chart-page-button {
    display: none;
  }

  .chart-scroll-viewport {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }
}

.drive-log-table .report-table-row {
  grid-template-columns:
    minmax(76px, 1fr)
    minmax(64px, 0.9fr)
    minmax(64px, 0.9fr)
    minmax(92px, 1.15fr)
    minmax(80px, 1fr)
    minmax(78px, 1fr)
    minmax(84px, 1fr)
    minmax(92px, 1.1fr)
    minmax(92px, 1fr)
    minmax(150px, 1.35fr) !important;
}

/* Drive log final responsive source-of-truth (after reset baseline). */
.drive-log-table .report-table-row > span {
  display: block !important;
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(76px, 1fr)
      minmax(66px, 0.9fr)
      minmax(66px, 0.9fr)
      minmax(92px, 1.1fr)
      minmax(80px, 1fr)
      minmax(78px, 1fr)
      minmax(84px, 1fr)
      minmax(92px, 1fr)
      minmax(150px, 1.35fr) !important;
  }

  .drive-log-table .report-table-row > span:nth-child(8) {
    display: none !important;
  }
}

@media (min-width: 1120px) and (max-width: 1279px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(78px, 1fr)
      minmax(68px, 0.9fr)
      minmax(68px, 0.9fr)
      minmax(82px, 1fr)
      minmax(80px, 1fr)
      minmax(84px, 1fr)
      minmax(150px, 1.35fr) !important;
  }

  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none !important;
  }
}

@media (min-width: 980px) and (max-width: 1119px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(82px, 1.25fr)
      minmax(68px, 1fr)
      minmax(68px, 1fr)
      minmax(84px, 1fr)
      minmax(76px, 1fr)
      minmax(150px, 1.35fr) !important;
  }

  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(6),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none !important;
  }
}

@media (min-width: 860px) and (max-width: 979px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(84px, 1.35fr)
      minmax(70px, 1fr)
      minmax(70px, 1fr)
      minmax(86px, 1.05fr)
      minmax(150px, 1.35fr) !important;
  }

  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(6),
  .drive-log-table .report-table-row > span:nth-child(7),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none !important;
  }
}

@media (min-width: 760px) and (max-width: 859px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(82px, 1.35fr)
      minmax(66px, 1fr)
      minmax(66px, 1fr)
      minmax(80px, 1.05fr)
      minmax(150px, 1.35fr) !important;
  }

  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(6),
  .drive-log-table .report-table-row > span:nth-child(7),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none !important;
  }
}

@media (min-width: 680px) and (max-width: 759px) {
  .drive-log-table .report-table-row {
    grid-template-columns:
      minmax(84px, 1.45fr)
      minmax(68px, 1fr)
      minmax(82px, 1.1fr)
      minmax(150px, 1.35fr) !important;
  }

  .drive-log-table .report-table-row > span:nth-child(3),
  .drive-log-table .report-table-row > span:nth-child(4),
  .drive-log-table .report-table-row > span:nth-child(6),
  .drive-log-table .report-table-row > span:nth-child(7),
  .drive-log-table .report-table-row > span:nth-child(8),
  .drive-log-table .report-table-row > span:nth-child(9) {
    display: none !important;
  }
}

@media (max-width: 679px) {
  .drive-log-table .report-table-head {
    display: none !important;
  }

  .drive-log-table .report-table-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 14px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 24px rgba(18, 34, 48, 0.06) !important;
    align-items: start !important;
    overflow: hidden !important;
  }

  .drive-log-table .report-table-row > span {
    display: block !important;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
    text-overflow: clip;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .drive-log-table .report-table-row > span::before {
    content: attr(data-label) !important;
    display: block !important;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

@media (max-width: 519px) {
  .drive-log-table .report-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* Charging records final breakpoint visibility. Keep this at file end. */
@media (max-width: 1439px) and (min-width: 680px) {
  .charging-records-table .charging-col-battery,
  .charging-records-table .charging-col-odometer {
    display: none !important;
  }
}

@media (max-width: 1279px) and (min-width: 680px) {
  .charging-records-table .charging-col-price,
  .charging-records-table .charging-col-type {
    display: none !important;
  }
}

@media (max-width: 1119px) and (min-width: 680px) {
  .charging-records-table .report-table-head > span:nth-child(2),
  .charging-records-table .report-table-row > span[data-label="kWh"],
  .charging-records-table .charging-col-duration {
    display: none !important;
  }
}

@media (max-width: 979px) and (min-width: 680px) {
  .charging-records-table .charging-col-range {
    display: none !important;
  }
}

@media (max-width: 679px) {
  .charging-records-table .report-table-head {
    display: none !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 14px !important;
    align-items: start !important;
    overflow: hidden !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) > span,
  .charging-records-table .charging-table-actions,
  .charging-records-table .charging-col-type,
  .charging-records-table .charging-col-price,
  .charging-records-table .charging-col-where,
  .charging-records-table .charging-col-battery,
  .charging-records-table .charging-col-duration,
  .charging-records-table .charging-col-range,
  .charging-records-table .charging-col-odometer,
  .charging-records-table .report-table-row:not(.report-table-head) > span[data-label="kWh"],
  .charging-records-table .report-table-row:not(.report-table-head) > span[data-label="Price"] {
    display: block !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    text-overflow: clip !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) > span::before,
  .charging-records-table .charging-table-actions::before {
    content: attr(data-label) !important;
    display: block !important;
    margin-bottom: 4px !important;
    color: var(--muted) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) > span.has-tooltip::before {
    position: static !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    rotate: 0deg !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) > span.has-tooltip::after {
    content: none !important;
    display: none !important;
  }

  .charging-records-table .charging-table-actions {
    display: flex !important;
    flex: none !important;
    justify-content: flex-end !important;
    align-items: center !important;
    justify-self: stretch !important;
    align-self: end !important;
    margin-left: 0 !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    gap: 14px !important;
    width: 100% !important;
    padding-top: 4px !important;
  }

  .charging-records-table .report-table-row:not(.report-table-head) > span.charging-table-actions {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100% !important;
    justify-content: flex-end !important;
  }

  .charging-records-table .charging-table-actions .fuel-inline-form {
    display: inline-flex !important;
    margin: 0 !important;
  }

  .charging-records-table .charging-table-actions > .fuel-action-link-compact,
  .charging-records-table .charging-table-actions > .fuel-inline-form {
    margin-left: 14px !important;
  }

  .charging-records-table .charging-table-actions > :first-child {
    margin-left: 0 !important;
  }

  .charging-records-table .charging-table-actions .fuel-action-link-compact,
  .charging-records-table .charging-table-actions .fuel-delete-button-compact {
    min-width: 42px !important;
    height: 34px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    font-size: 0 !important;
  }

  .charging-records-table .charging-table-actions .fuel-action-link-compact .fuel-inline-icon,
  .charging-records-table .charging-table-actions .fuel-delete-button-compact .fuel-inline-icon {
    margin-right: 0 !important;
    font-size: 0.82rem !important;
  }

  .charging-records-table .charging-table-actions::before {
    content: none !important;
    display: none !important;
  }
}

@media (max-width: 519px) {
  .charging-records-table .report-table-row:not(.report-table-head) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .charging-records-table .charging-table-actions {
    grid-column: 1 / -1 !important;
  }

  .charging-records-table .charging-table-actions > .fuel-action-link-compact,
  .charging-records-table .charging-table-actions > .fuel-inline-form {
    margin-left: 12px !important;
  }
}

/* Yearly ownership totals: enforce collapsed column counts by phone width. */
@media (min-width: 520px) and (max-width: 700px) {
  .report-table-yearly .report-table-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 519px) {
  .report-table-yearly .report-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
