/* Calculator styles: fuel-cost */

/* ========================================
   FUEL COST CALCULATOR - TRIP BUDGET PLANNER
   ======================================== */

/* Main Layout Container */
.fuel-budget-planner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.fuel-budget-planner--compact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Panel Styling */
.fuel-panel {
  background: var(--sc-card-bg, #fff);
  border: 1px solid var(--sc-card-border, #e5e7eb);
  border-radius: 12px;
  padding: var(--sc-card-padding);
}

/* Let Fuel Cost UI follow the parent block width. */
.vareoncalc-content[data-vareoncalc-type="fuel-cost"] {
  width: 100%;
  max-width: 100%;
}

.fuel-panel--input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Two-step layout: avoid nested input card styling */
.vareoncalc-two-step .fuel-panel--input {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Card already applies --sc-card-padding; panels sit inside .vareoncalc-content like other two-step calcs */
.vareoncalc-two-step .fuel-panel--input,
.vareoncalc-two-step .fuel-panel--result {
  padding: 0;
}

.fuel-panel--result {
  background: transparent;
  border: none;
}

.fuel-panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--sc-card-border, #e5e7eb);
}

.fuel-panel__icon {
  color: var(--sc-accent, #3b82f6);
  flex-shrink: 0;
}

.fuel-panel__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sc-card-text, #111827);
}

/* Unit Toggle (shared measurement segmented control) */
.fuel-unit-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
  max-width: 100%;
  margin-left: 0;
  margin-bottom: 0;
}

.fuel-unit-toggle .vareoncalc-measurement-toggle {
  width: fit-content;
  max-width: 100%;
}

/* Fallback for cached/legacy toggle markup that only has id + measurement buttons. */
.fuel-unit-toggle [id^="fuel-unit-toggle-"]:not(.vareoncalc-toggle) {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  background: var(--sc-input-bg, #f3f4f6);
  border: 1px solid var(--sc-input-border, #d1d5db);
  border-radius: 10px;
  padding: 3px;
}

.fuel-unit-toggle [id^="fuel-unit-toggle-"]:not(.vareoncalc-toggle) .vareoncalc-measurement-toggle__btn {
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--sc-muted-text, #6b7280);
  font-size: 12px;
  font-weight: 600;
  min-height: 28px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.fuel-unit-toggle [id^="fuel-unit-toggle-"]:not(.vareoncalc-toggle) .vareoncalc-measurement-toggle__btn:hover:not(.is-active):not([aria-pressed="true"]) {
  background: rgba(59, 130, 246, 0.08);
}

.fuel-unit-toggle [id^="fuel-unit-toggle-"]:not(.vareoncalc-toggle) .vareoncalc-measurement-toggle__btn.is-active,
.fuel-unit-toggle [id^="fuel-unit-toggle-"]:not(.vareoncalc-toggle) .vareoncalc-measurement-toggle__btn[aria-pressed="true"],
.fuel-unit-toggle [id^="fuel-unit-toggle-"]:not(.vareoncalc-toggle) .vareoncalc-measurement-toggle__btn--active {
  background: var(--sc-accent, #3b82f6);
  color: var(--sc-accent-text, var(--sc-button-text, #fff));
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

/* Iconic Toggle - compact switch for binary choices (km/mi, →/⇌) */
.fuel-icon-toggle {
  width: fit-content;
}

/* Strip shared toggle chrome (base .vareoncalc-toggle + .vareoncalc-measurement-toggle) — no outer gray box */
.fuel-icon-toggle.vareoncalc-toggle,
.fuel-icon-toggle.vareoncalc-measurement-toggle {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}

.fuel-icon-toggle.vareoncalc-toggle:hover,
.fuel-icon-toggle.vareoncalc-toggle:focus-within,
.fuel-icon-toggle.vareoncalc-measurement-toggle:hover,
.fuel-icon-toggle.vareoncalc-measurement-toggle:focus-within {
  border: none;
  box-shadow: none;
}

.fuel-icon-toggle .vareoncalc-toggle__track {
  display: inline-flex;
  align-items: stretch;
  width: auto;
  gap: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.fuel-icon-toggle .vareoncalc-toggle__option {
  flex: 0 0 auto;
}

.fuel-icon-toggle__btn.vareoncalc-measurement-toggle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--sc-muted-text, #6b7280);
  font-size: 11px;
  font-weight: 700;
  min-height: 26px;
  min-width: 30px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.fuel-icon-toggle__btn.vareoncalc-measurement-toggle__btn.is-active,
.fuel-icon-toggle__btn.vareoncalc-measurement-toggle__btn[aria-pressed="true"],
.fuel-icon-toggle__btn.vareoncalc-measurement-toggle__btn.vareoncalc-measurement-toggle__btn--active {
  background: var(--sc-accent, #3b82f6);
  color: var(--sc-accent-text, var(--sc-button-text, #fff));
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.18);
}

.fuel-icon-toggle__btn.vareoncalc-measurement-toggle__btn:hover:not(.is-active):not([aria-pressed="true"]):not(.vareoncalc-measurement-toggle__btn--active) {
  background: rgba(59, 130, 246, 0.08);
}

.fuel-icon-toggle__btn.vareoncalc-measurement-toggle__btn:focus-visible {
  outline: 2px solid var(--sc-accent, #3b82f6);
  outline-offset: 1px;
}

.fuel-icon-toggle__btn svg {
  display: block;
  flex-shrink: 0;
}

/* Trip block: chrome comes from .vareoncalc-section (same element in markup) */
.fuel-trip-section__header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.fuel-trip-section__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.vareoncalc-content[data-vareoncalc-type="fuel-cost"] .fuel-trip-section__controls {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.vareoncalc-content[data-vareoncalc-type="fuel-cost"] .fuel-trip-section__controls > * {
  flex: 0 1 auto;
  min-width: 0;
}

.vareoncalc-content[data-vareoncalc-type="fuel-cost"] .fuel-trip-section__controls > .fuel-unit-toggle {
  margin-right: auto;
}

.vareoncalc-content[data-vareoncalc-type="fuel-cost"] .fuel-trip-section__controls > .fuel-trip-mode-toggle {
  margin-left: auto;
  flex-shrink: 0;
}

.fuel-trip-section__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sc-muted-text, #6b7280);
}

.fuel-distance-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.fuel-distance-row .fuel-distance-field {
  flex: 1 1 100%;
  min-width: 0;
  margin-bottom: 0;
}

/* Economics block: chrome comes from .vareoncalc-section */

/* Keep long metric suffix (L/100km) fully visible on compact inputs. */
.fuel-economics-section .fuel-consumption-rail.vareoncalc-input-adorned.vareoncalc-input-adorned--suffix-rail {
  --sc-suffix-rail-min-width: 46px;
  --sc-suffix-rail-max-width: 82px;
  --sc-suffix-rail-fluid-width: 56%;
  --sc-suffix-rail-padding-inline: clamp(4px, 1.2vw, 8px);
}

.fuel-economics-section .fuel-consumption-rail.fuel-consumption-rail--metric {
  --sc-suffix-visible-width: 52px;
}

.fuel-economics-section .fuel-consumption-rail.fuel-consumption-rail--imperial {
  --sc-suffix-visible-width: 24px;
  --sc-suffix-rail-min-width: 28px;
  --sc-suffix-rail-max-width: 48px;
  --sc-suffix-rail-fluid-width: 36%;
}

@media (max-width: 480px) {
  .fuel-economics-section .fuel-consumption-rail.vareoncalc-input-adorned.vareoncalc-input-adorned--suffix-rail {
    --sc-suffix-rail-min-width: 42px;
    --sc-suffix-rail-max-width: 72px;
    --sc-suffix-rail-fluid-width: 60%;
  }
}

.fuel-economics-section .fuel-consumption-rail.vareoncalc-input-adorned.vareoncalc-input-adorned--suffix-rail .vareoncalc-input-suffix {
  font-size: clamp(9px, 0.68rem, 10px);
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .fuel-economics-section .fuel-consumption-rail.vareoncalc-input-adorned.vareoncalc-input-adorned--suffix-rail .vareoncalc-input-suffix {
    font-size: 9px;
  }
}

.fuel-economics-section__header {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sc-muted-text, #6b7280);
  margin-bottom: 12px;
}

/* Result Panel Content */
.fuel-result-content {
  min-height: 280px;
}

/* Result Placeholder */
.fuel-result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--sc-card-padding);
  text-align: center;
  min-height: 280px;
}

.fuel-result-placeholder__icon {
  color: var(--sc-muted-text, #9ca3af);
  opacity: 0.5;
}

.fuel-result-placeholder__text {
  font-size: 14px;
  color: var(--sc-muted-text, #6b7280);
  margin: 0;
  max-width: 200px;
  line-height: 1.5;
}

/* Detailed Results Container */
.fuel-detailed-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fuel-detailed-results__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Base Detail Card — flat panels (match main .fuel-panel; no floating shadow stack) */
.fuel-detail-card {
  background: var(--sc-card-bg, #fff);
  border: 1px solid var(--sc-card-border, #e5e7eb);
  border-radius: 12px;
  padding: var(--sc-card-padding);
  box-shadow: none;
}

/* Hero Card */
.fuel-detail-card--hero {
  text-align: center;
  padding: var(--sc-card-padding);
  background: var(--sc-card-bg, #fff);
}

.fuel-detail-card__cost-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--sc-card-text, #1e2a4a);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.fuel-detail-card__cost-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--sc-card-text, #1e2a4a);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Native tooltip precision hint for large rounded amounts */
.fuel-currency-hover,
.fuel-volume-hover {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.fuel-detail-card--hero > .fuel-currency-hover,
.fuel-detail-card--hero > .fuel-volume-hover,
.fuel-detail-card__cost-amount .fuel-currency-hover {
  text-decoration: none;
  cursor: default;
}

.fuel-currency-hover__exact {
  display: none;
}

.fuel-detail-card__perperson-amount .fuel-currency-hover {
  display: inline-grid;
  justify-items: center;
  min-width: min(100%, 8ch);
}

.fuel-comparison__column-value .fuel-currency-hover {
  display: inline-block;
}

.fuel-comparison__column-value .fuel-currency-hover__exact {
  display: none;
}

/* Fuel-required strip: uses card background + subtle border (matches per-person card) */

/* Modern (“light with black accents”): keep the navy fuel rail */


/* Hero: fuel + optional round-trip in one framed block */
.fuel-detail-card__metrics {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border: none;
  border-radius: 12px;
  background: var(--sc-card-bg, #fff);
  overflow: hidden;
  text-align: left;
}

.fuel-detail-card__fuel-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--sc-card-padding);
}

.fuel-detail-card--hero .fuel-detail-card__fuel-stat {
  justify-content: center;
}

.fuel-detail-card--hero .fuel-detail-card__fuel-stat-body {
  align-items: center;
  text-align: center;
}

.fuel-detail-card__fuel-stat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sc-accent, #3b82f6) 14%, transparent);
  border: none;
  color: var(--sc-accent, #3b82f6);
}

.fuel-detail-card__fuel-stat-icon svg {
  display: block;
}

.fuel-detail-card__fuel-stat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.fuel-detail-card__fuel-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sc-muted-text, #6b7280);
  text-transform: uppercase;
}

.fuel-detail-card__fuel-stat-value {
  font-size: 19px;
  font-weight: 700;
  color: var(--sc-card-text, #111827);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fuel-detail-card__trip-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px var(--sc-card-padding) 10px;
  border-top: 1px solid var(--sc-card-border, #e5e7eb);
  background: transparent;
  color: var(--sc-muted-text, #6b7280);
  font-size: 12px;
  font-weight: 600;
}

.fuel-detail-card__trip-mode-icon {
  flex-shrink: 0;
  color: var(--sc-muted-text, #6b7280);
  opacity: 1;
}

.fuel-detail-card__metrics .fuel-currency-hover,
.fuel-detail-card__metrics .fuel-volume-hover {
  text-decoration-color: color-mix(in srgb, var(--sc-card-text, #111827) 40%, transparent);
}

.fuel-detail-card__trip-mode-text {
  letter-spacing: 0.01em;
}

/* Section Title (shared) */
.fuel-detail-card__section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sc-card-text, #1e2a4a);
  margin-bottom: 16px;
}

/* Trip Breakdown — always one row of three columns */
.fuel-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.fuel-breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.fuel-breakdown-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sc-accent, #3b82f6) 14%, transparent);
  color: var(--sc-accent, #3b82f6);
}

.fuel-breakdown-item__icon svg {
  display: block;
}

.fuel-breakdown-item__label {
  font-size: 11px;
  color: var(--sc-muted-text, #6b7280);
  line-height: 1.3;
}

.fuel-breakdown-item__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--sc-card-text, #1e2a4a);
}

/* Cost Splitting Card */
.fuel-detail-card--splitting {
  padding: var(--sc-card-padding);
  min-width: 0;
}

.fuel-detail-slider {
  --fuel-slider-percent: 0%;
  --fuel-slider-track-color: var(--sc-input-border, #d1d5db);
  --fuel-slider-active-color: var(--sc-accent, #3b82f6);
  width: calc(100% - 22px);
  max-width: calc(100% - 22px);
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  padding: 0;
  outline: none;
  cursor: pointer;
  margin-inline: 11px;
  margin-bottom: 10px;
  min-width: 0;
  display: block;
  box-sizing: border-box;
}

.fuel-detail-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--fuel-slider-active-color) 0,
    var(--fuel-slider-active-color) var(--fuel-slider-percent),
    var(--fuel-slider-track-color) var(--fuel-slider-percent),
    var(--fuel-slider-track-color) 100%
  );
  border-radius: 999px;
}

.fuel-detail-slider::-moz-range-track {
  height: 8px;
  background: var(--fuel-slider-track-color);
  border-radius: 999px;
}

.fuel-detail-slider::-moz-range-progress {
  height: 8px;
  background: var(--fuel-slider-active-color);
  border-radius: 999px;
}

.fuel-detail-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--sc-card-bg, #fff);
  border: 3px solid var(--sc-accent, #3b82f6);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.fuel-detail-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--sc-card-bg, #fff);
  border: 3px solid var(--sc-accent, #3b82f6);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.fuel-detail-slider:focus-visible {
  outline: 2px solid var(--sc-accent, #3b82f6);
  outline-offset: 2px;
}

.fuel-detail-slider__label {
  font-size: 13px;
  color: var(--sc-muted-text, #6b7280);
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.fuel-detail-slider__label strong {
  color: var(--sc-card-text, #1e2a4a);
  font-weight: 700;
}

/* Bottom Row: Per Person + Comparison */
.fuel-detail-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Cost Per Person Card */
.fuel-detail-card--perperson {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding-block: 24px;
  background: var(--sc-card-bg, #fff);
}

.fuel-detail-card--perperson .fuel-detail-card__section-title {
  text-align: center;
}

.fuel-detail-card__perperson-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
}

.fuel-detail-card__perperson-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--sc-card-text, #1e2a4a);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: center;
  max-width: 100%;
}

.fuel-detail-card__perperson-amount .fuel-currency-hover {
  text-decoration: none;
  cursor: default;
}

/* Trip Comparison Card — Vertical Bars */
.fuel-detail-card--comparison {
  display: flex;
  flex-direction: column;
}

.fuel-detail-card--comparison .fuel-detail-card__section-title {
  text-align: center;
}

.fuel-comparison__columns {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: flex-end;
  flex: 1;
  padding-top: 4px;
}

.fuel-comparison__column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 80px;
}

.fuel-comparison__column-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--sc-card-text, #1e2a4a);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fuel-comparison__column-bar-wrap {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: flex-end;
}

.fuel-comparison__column-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.4s ease;
}

.fuel-comparison__column-bar--oneway {
  background: var(--sc-accent, #3b82f6);
}

.fuel-comparison__column-bar--roundtrip {
  background: #1e2a4a;
}

.fuel-comparison__column-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--sc-muted-text, #6b7280);
  white-space: nowrap;
}

/* Annual Commute Insight */
.fuel-annual-insight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--sc-card-padding);
  background: var(--sc-card-bg, #fff);
  border: 1px solid var(--sc-card-border, #e5e7eb);
  border-radius: 12px;
  box-shadow: none;
}

.fuel-annual-insight__icon {
  color: var(--sc-accent, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fuel-annual-insight__text {
  font-size: 14px;
  color: var(--sc-card-text, #374151);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fuel-annual-insight__amount {
  font-weight: 700;
  color: var(--sc-accent, #3b82f6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .fuel-budget-planner {
    grid-template-columns: 1fr;
  }

  .fuel-panel {
    padding: var(--sc-card-padding);
  }

  .fuel-panel--input {
    gap: 12px;
  }

  .fuel-trip-section__controls {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .fuel-detail-bottom-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 410px) {
  .fuel-panel {
    padding: var(--sc-card-padding);
  }

  .fuel-trip-section__controls {
    gap: 4px;
  }

  .fuel-detail-card {
    padding: var(--sc-card-padding);
  }

  .fuel-breakdown-grid {
    gap: 8px;
  }

  .fuel-breakdown-item__label {
    font-size: 10px;
  }

  .fuel-breakdown-item__value {
    font-size: clamp(11px, 2.6vw, 14px);
    word-break: break-word;
  }

  .fuel-detail-bottom-row {
    grid-template-columns: 1fr;
  }
}

/* Dark Theme Support */
.vareoncalc-root[data-theme="dark"] .fuel-panel,
.vareoncalc-root.theme-dark .fuel-panel {
  background: var(--sc-card-bg, #1f2937);
  border-color: var(--sc-card-border, #374151);
}

.vareoncalc-root[data-theme="dark"] .fuel-panel--result,
.vareoncalc-root.theme-dark .fuel-panel--result {
  background: transparent;
}

.vareoncalc-root[data-theme="dark"] .vareoncalc-two-step .fuel-panel--input,
.vareoncalc-root.theme-dark .vareoncalc-two-step .fuel-panel--input {
  background: transparent;
  border-color: transparent;
}

.vareoncalc-root[data-theme="dark"] .fuel-panel__header,
.vareoncalc-root.theme-dark .fuel-panel__header {
  border-color: var(--sc-card-border, #374151);
}

.vareoncalc-root[data-theme="dark"] .fuel-unit-toggle [id^="fuel-unit-toggle-"]:not(.vareoncalc-toggle),
.vareoncalc-root.theme-dark .fuel-unit-toggle [id^="fuel-unit-toggle-"]:not(.vareoncalc-toggle) {
  background: var(--sc-input-bg, #111827);
  border-color: var(--sc-input-border, #4b5563);
}

.vareoncalc-root[data-theme="dark"] .fuel-icon-toggle.vareoncalc-toggle,
.vareoncalc-root.theme-dark .fuel-icon-toggle.vareoncalc-toggle,
.vareoncalc-root[data-theme="dark"] .fuel-icon-toggle.vareoncalc-measurement-toggle,
.vareoncalc-root.theme-dark .fuel-icon-toggle.vareoncalc-measurement-toggle {
  background: transparent;
  border: none;
  box-shadow: none;
}

.vareoncalc-root[data-theme="dark"] .fuel-icon-toggle .vareoncalc-toggle__track,
.vareoncalc-root.theme-dark .fuel-icon-toggle .vareoncalc-toggle__track {
  background: transparent;
  border: none;
}

.vareoncalc-root[data-theme="dark"] .fuel-detail-card,
.vareoncalc-root.theme-dark .fuel-detail-card {
  background: var(--sc-card-bg, #1f2937);
  border-color: var(--sc-card-border, #374151);
  box-shadow: none;
}

.vareoncalc-root[data-theme="dark"] .fuel-detail-card__cost-label,
.vareoncalc-root.theme-dark .fuel-detail-card__cost-label,
.vareoncalc-root[data-theme="dark"] .fuel-detail-card__cost-amount,
.vareoncalc-root.theme-dark .fuel-detail-card__cost-amount {
  color: var(--sc-card-text, #e5e7eb);
}

.vareoncalc-root[data-theme="dark"] .fuel-detail-card__section-title,
.vareoncalc-root.theme-dark .fuel-detail-card__section-title {
  color: var(--sc-card-text, #e5e7eb);
}


.vareoncalc-root[data-theme="dark"] .fuel-breakdown-item__value,
.vareoncalc-root.theme-dark .fuel-breakdown-item__value {
  color: var(--sc-card-text, #e5e7eb);
}

.vareoncalc-root[data-theme="dark"] .fuel-detail-slider,
.vareoncalc-root.theme-dark .fuel-detail-slider {
  --fuel-slider-track-color: var(--sc-card-border, #4b5563);
}

.vareoncalc-root[data-theme="dark"] .fuel-detail-slider::-webkit-slider-thumb,
.vareoncalc-root.theme-dark .fuel-detail-slider::-webkit-slider-thumb,
.vareoncalc-root[data-theme="dark"] .fuel-detail-slider::-moz-range-thumb,
.vareoncalc-root.theme-dark .fuel-detail-slider::-moz-range-thumb {
  background: var(--sc-card-bg, #1f2937);
  border-color: var(--sc-accent, #60a5fa);
}

.vareoncalc-root[data-theme="dark"] .fuel-detail-slider__label strong,
.vareoncalc-root.theme-dark .fuel-detail-slider__label strong {
  color: var(--sc-card-text, #e5e7eb);
}

.vareoncalc-root[data-theme="dark"] .fuel-detail-card__perperson-amount,
.vareoncalc-root.theme-dark .fuel-detail-card__perperson-amount {
  color: var(--sc-card-text, #e5e7eb);
}


.vareoncalc-root[data-theme="dark"] .fuel-comparison__column-value,
.vareoncalc-root.theme-dark .fuel-comparison__column-value {
  color: var(--sc-card-text, #e5e7eb);
}

.vareoncalc-root[data-theme="dark"] .fuel-comparison__column-bar--roundtrip,
.vareoncalc-root.theme-dark .fuel-comparison__column-bar--roundtrip {
  background: #4b5563;
}

.vareoncalc-root[data-theme="dark"] .fuel-annual-insight,
.vareoncalc-root.theme-dark .fuel-annual-insight {
  background: var(--sc-card-bg, #1f2937);
  border-color: var(--sc-card-border, #374151);
  box-shadow: none;
}

@container vareoncalc (max-width: 410px) {
  .fuel-panel {
    padding: var(--sc-card-padding);
  }

  .fuel-trip-section__controls {
    gap: 4px;
  }

  .fuel-detail-card {
    padding: var(--sc-card-padding);
  }

  .fuel-breakdown-grid {
    gap: 8px;
  }

  .fuel-breakdown-item__label {
    font-size: 10px;
  }

  .fuel-breakdown-item__value {
    font-size: 11px;
    font-size: clamp(11px, 2.6cqw, 14px);
    word-break: break-word;
  }

  .fuel-comparison__column-bar-wrap {
    height: 56px;
  }
}

@container vareoncalc (max-width: 360px) {
  .fuel-detail-bottom-row {
    grid-template-columns: 1fr;
  }
}
