.evcalc {
      --bg: #f8fbff;
      --card: #ffffff;
      --text: #102033;
      --muted: #64748b;
      --border: #dbeafe;
      --primary: #0ea5e9;
      --primary-dark: #0369a1;
      --accent: #10b981;
      --soft: #e0f2fe;
      --soft-green: #dcfce7;
      --warning: #fff7ed;
      --danger: #fef2f2;
      --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: transparent;
      color: var(--text);
      padding: 32px 16px;
      border-radius: 24px;
    }

    .evcalc * { box-sizing: border-box; }

    .evcalc-wrap {
      max-width: 1180px;
      margin: 0 auto;
    }

    .evcalc-hero {
      display: grid;
      grid-template-columns: 1.35fr 0.65fr;
      gap: 24px;
      align-items: stretch;
      margin-bottom: 24px;
    }

    .evcalc-hero-card,
    .evcalc-panel,
    .evcalc-result-card,
    .evcalc-info-card {
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 24px;
      box-shadow: var(--shadow);
    }

    .evcalc-panel {
      border: 0;
      box-shadow: none;
    }

    .evcalc-hero-card { padding: 30px; }

    .evcalc-kicker {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      background: var(--soft);
      color: var(--primary-dark);
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 14px;
    }

    .evcalc h1 {
      font-size: clamp(28px, 4vw, 46px);
      line-height: 1.05;
      letter-spacing: -0.04em;
      margin: 0 0 14px;
    }

    .evcalc-subtitle {
      font-size: 16px;
      color: var(--muted);
      line-height: 1.6;
      margin: 0;
      max-width: 820px;
    }

    .evcalc-note-box {
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 12px;
      background: #0f172a;
      color: white;
      border-radius: 24px;
      box-shadow: var(--shadow);
    }

    .evcalc-note-box strong { font-size: 20px; }

    .evcalc-note-box span {
      color: #cbd5e1;
      line-height: 1.5;
      font-size: 14px;
    }

    .evcalc-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 32px;
      align-items: start;
    }

    .evcalc-panel { padding: 24px; }

    .evcalc-panel h2,
    .evcalc-result-card h2,
    .evcalc-info-card h3 {
      margin: 0 0 16px;
      letter-spacing: -0.02em;
    }

    .evcalc-section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .evcalc-section-title h2 { margin: 0; }

    .evcalc-db-date {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 10px;
      border-radius: 999px;
      background: #eef2ff;
      color: #3730a3;
      font-size: 12px;
      font-weight: 800;
      overflow-wrap: anywhere;
    }

    .evcalc-help {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.45;
    }

    .evcalc-field { margin-bottom: 16px; }

    .evcalc label {
      display: block;
      font-weight: 700;
      font-size: 14px;
      margin-bottom: 7px;
    }

    .evcalc select,
    .evcalc input[type="range"],
    .evcalc input[type="number"],
    .evcalc input[type="text"] { width: 100%; }

    .evcalc input[type="checkbox"] { width: auto; margin-right: 8px; }

    .evcalc select,
    .evcalc input[type="number"],
    .evcalc input[type="text"] {
      border: 1px solid #bfdbfe;
      border-radius: 14px;
      padding: 12px 14px;
      font-size: 15px;
      background: linear-gradient(180deg, #ffffff, #f8fbff);
      color: var(--text);
      outline: none;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .evcalc select:focus,
    .evcalc input[type="number"]:focus,
    .evcalc input[type="text"]:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
    }

    .evcalc input[type="number"] {
      appearance: auto;
      -moz-appearance: auto;
      padding-right: 8px;
    }

    .evcalc input[type="number"]::-webkit-outer-spin-button,
    .evcalc input[type="number"]::-webkit-inner-spin-button {
      opacity: 1;
      display: block;
      margin-left: 6px;
    }

    .evcalc input[type="range"] {
      appearance: none;
      height: 14px;
      border-radius: 999px;
      border: 1px solid #bae6fd;
      background: linear-gradient(90deg, #38bdf8, #34d399);
      box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.15);
      outline: none;
    }

    .evcalc input[type="range"]::-webkit-slider-thumb {
      appearance: none;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 3px solid #ffffff;
      background: var(--primary);
      box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
      cursor: pointer;
    }

    .evcalc input[type="range"]::-moz-range-thumb {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 3px solid #ffffff;
      background: var(--primary);
      box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
      cursor: pointer;
    }

    .evcalc-range-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      color: var(--muted);
      font-size: 13px;
      margin-top: 4px;
    }

    .evcalc-filter-card,
    .evcalc-custom-card {
      position: relative;
      border: 0;
      border-radius: 0;
      padding: 16px;
      margin-bottom: 14px;
      background: transparent;
    }
    .evcalc-filter-card.is-hidden { display: none; }
    .evcalc-compare-toggle {
      display: block;
      margin: 2px 0 8px;
      font-size: 13px;
      color: var(--text);
    }

    .evcalc-filter-card h3,
    .evcalc-custom-card h3 {
      margin: 0 0 12px;
      font-size: 17px;
      letter-spacing: -0.01em;
    }

    .evcalc-filter-grid,
    .evcalc-price-grid,
    .evcalc-spec-grid,
    .evcalc-custom-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .evcalc-filter-grid .evcalc-field,
    .evcalc-price-grid .evcalc-field,
    .evcalc-custom-grid .evcalc-field { margin-bottom: 0; }

    .evcalc-price-grid + .evcalc-custom-card { margin-top: 22px; }

    .evcalc-custom-card.is-hidden,
    .evcalc-custom-grid.is-hidden { display: none; }

    .evcalc input:disabled,
    .evcalc select:disabled {
      background: #f1f5f9;
      color: #94a3b8;
      cursor: not-allowed;
    }

    .evcalc-field.is-disabled {
      opacity: 0.58;
    }

    .evcalc-pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }

    .evcalc-pill {
      padding: 8px 10px;
      border-radius: 999px;
      background: #ecfeff;
      color: #155e75;
      font-size: 13px;
      font-weight: 700;
    }

    .evcalc-step-title {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 18px 0 12px;
      padding: 8px 12px;
      border-radius: 999px;
      background: linear-gradient(135deg, #dbeafe, #dcfce7);
      color: #075985;
      font-size: 13px;
      font-weight: 900;
    }

    .evcalc-share-total {
      padding: 12px;
      border-radius: 16px;
      border: 1px solid #bbf7d0;
      background: #f0fdf4;
      color: #166534;
    }

    .evcalc-share-total.is-warning {
      border-color: #fed7aa;
      background: #fff7ed;
      color: #9a3412;
    }

    .evcalc-inline-action {
      margin-top: 8px;
      padding: 9px 10px;
      border-radius: 12px;
      font-size: 12px;
    }

    .evcalc-add-custom-slot { margin-top: 12px; font-size: 12px; padding: 9px 12px; }
    .evcalc-report-actions {
      display: flex;
      justify-content: flex-end;
      margin: 14px 0 0;
    }
    .evcalc-report-actions button { width: auto; }
    .evcalc-field.is-hidden { display: none; }

    .evcalc-print-only { display: none; }

    .evcalc-label-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      margin-bottom: 7px;
    }

    .evcalc-label-row label { margin: 0; }

    .evcalc button.evcalc-fix-share {
      width: fit-content;
      min-width: 0;
      flex: 0 0 auto;
      padding: 4px 7px;
      border-radius: 999px;
      background: #e0f2fe;
      color: #075985;
      font-size: 11px;
      line-height: 1;
    }

    .evcalc button.evcalc-fix-share.is-fixed {
      background: #e5e7eb;
      color: #6b7280;
    }

    .evcalc-result-stack,
    .evcalc-compare-grid { display: grid; gap: 18px; }

    .evcalc-compare-grid { grid-template-columns: 1fr; }
    .evcalc-result-stack { justify-items: start; }

    .evcalc-comparison-card {
      overflow-x: auto;
      overflow-y: hidden;
      width: 100%;
      max-width: 640px;
    }

    .evcalc-comparison-sections {
      display: grid;
      gap: 14px;
      width: 100%;
      justify-items: start;
    }
    .evcalc-comparison-sections .evcalc-comparison-section:first-child {
      margin-top: 2em;
    }

    .evcalc-comparison-section {
      padding: 4px 0;
    }

    .evcalc-comparison-section h3 {
      margin: 0 0 6px;
      font-size: 14px;
      letter-spacing: -0.01em;
      font-weight: 900;
    }

    .evcalc-section-list .evcalc-compare-note {
      margin: 0 0 8px;
      font-size: 12px;
    }

    .evcalc-rank-list {
      display: grid;
      gap: 6px;
    }
    .evcalc-rank-list.is-collapsed { display: none; }
    .evcalc button.evcalc-details-toggle {
      margin: 4px 0 2px;
      background: transparent;
      border: 0;
      border-radius: 0;
      padding: 0;
      font-size: 11px;
      color: var(--primary-dark);
      width: auto;
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      text-decoration: none;
      box-shadow: none;
    }
    .evcalc button.evcalc-details-toggle:hover,
    .evcalc button.evcalc-details-toggle:focus {
      background: transparent;
      color: var(--primary-dark);
      box-shadow: none;
    }
    .evcalc-mini-list { display: grid; gap: 6px; }
    .evcalc-mini-row { display: grid; grid-template-columns: minmax(80px, auto) minmax(120px, auto); gap: 8px; align-items: center; font-size: 12px; width: fit-content; max-width: 100%; }
    .evcalc-mini-value { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .evcalc-overall-card { border: 1px solid var(--border); border-radius: 14px; padding: 10px; box-shadow: 0 6px 20px rgba(15,23,42,.05); margin-top: 28px; width: 100%; max-width: 640px; }
    .evcalc-overall-list { display: grid; gap: 4px; }
    .evcalc-overall-row { display:flex; justify-content: flex-start; gap:8px; font-size:13px; text-align:left; }

    .evcalc-rank-item { border: 0; border-radius: 0; padding: 0; background: transparent; }

    .evcalc-rank-title {
      font-weight: 400;
      font-size: 13px;
      margin-bottom: 4px;
    }

    .evcalc-rank-line {
      font-size: 12px;
      line-height: 1.35;
    }

    .evcalc-rank-note {
      font-size: 11px;
      color: var(--muted);
      margin-top: 2px;
      font-weight: 400;
    }

    .evcalc-section-cells {
      display: grid;
      grid-template-columns: repeat(var(--compare-count, 3), minmax(0, 1fr));
      gap: 0;
    }

    .evcalc-section-diagram .evcalc-cell + .evcalc-cell {
      border-left: 1px solid var(--border);
      padding-left: 10px;
      margin-left: 10px;
    }

    .evcalc-cell {
      padding: 8px 2px;
      border: 0;
      border-radius: 0;
      min-width: 0;
      font-size: 12px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }


    .evcalc-car-col {
      background: transparent;
    }

    .evcalc-car-col h3 {
      margin: 2px 0 8px;
      font-size: 15px;
      line-height: 1.15;
      letter-spacing: -0.02em;
      min-height: 34px;
    }

    .evcalc-car-company {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 8px;
    }

    .evcalc-compare-value {
      font-size: 13px;
      line-height: 1.25;
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 8px;
    }

    .evcalc-compare-value .evcalc-line {
      display: block;
      margin-bottom: 3px;
    }

    .evcalc-car-col button { margin: 2px 0 8px; }

    .evcalc-bar {
      height: 12px;
      border-radius: 999px;
      background: #e5e7eb;
      border: 1px solid #d0d5dd;
      overflow: hidden;
    }

    .evcalc-bar-fill {
      height: 100%;
      width: 50%;
      border-radius: 999px;
      background: linear-gradient(90deg, #2563eb, #0f766e);
    }

    .evcalc-bar-fill.is-cost { background: linear-gradient(90deg, #fbbf24, #fb923c); }
    .evcalc-bar-fill.is-full-cost { background: linear-gradient(90deg, #a78bfa, #38bdf8); }
    .evcalc-bar-fill.is-range { background: linear-gradient(90deg, #22d3ee, #34d399); }
    .evcalc-bar-fill.is-advice { background: linear-gradient(90deg, #6366f1, #14b8a6); }
    .evcalc-bar-fill.is-environment { background: linear-gradient(90deg, #65a30d, #22c55e); }

    .evcalc-advice-card {
      margin-top: 16px;
      padding: 14px;
      border: 1px solid #bbf7d0;
      border-radius: 18px;
      background: linear-gradient(135deg, #f0fdf4, #eff6ff);
    }

    .evcalc-advice-grid {
      display: grid;
      grid-template-columns: repeat(var(--compare-count, 3), minmax(0, 1fr));
      gap: 10px;
      margin-top: 10px;
    }

    .evcalc-advice-item {
      padding: 12px;
      border: 1px solid #dbeafe;
      border-radius: 15px;
      background: rgba(255,255,255,0.86);
      font-size: 12px;
      line-height: 1.45;
    }

    .evcalc-advice-item strong { display: block; margin-bottom: 5px; }

    .evcalc-mini-chart {
      display: flex;
      align-items: flex-end;
      gap: 4px;
      height: 42px;
      margin: 8px 0;
    }

    .evcalc-mini-chart span {
      flex: 1;
      min-width: 4px;
      border-radius: 6px 6px 0 0;
      background: linear-gradient(180deg, #22c55e, #86efac);
    }

    .evcalc-radar-card {
      margin-top: 16px;
      padding: 16px;
      border: 1px solid #c7d2fe;
      border-radius: 18px;
      background: linear-gradient(135deg, #ffffff, #eef2ff);
    }

    .evcalc-radar-card h3 { margin: 0 0 6px; }
    .evcalc-radar-wrap { overflow-x: scroll; }
    .evcalc-radar { min-width: 560px; width: 100%; max-width: 760px; display: block; margin: 8px auto 0; }
    .evcalc-radar-grid { fill: none; stroke: #cbd5e1; stroke-width: 1; }
    .evcalc-radar-axis { stroke: #e2e8f0; stroke-width: 1; }
    .evcalc-radar-label { fill: #475569; font-size: 12px; font-weight: 700; }
    .evcalc-radar-poly { fill-opacity: 0.16; stroke-width: 3; }
    .evcalc-radar-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
    .evcalc-radar-legend span { display: inline-flex; align-items: center; gap: 6px; }
    .evcalc-radar-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

    .evcalc-charge-window { grid-column: 1 / -1; }

    .evcalc-dual-range {
      --charge-from: 30%;
      --charge-to: 80%;
      position: relative;
      height: 34px;
      margin-top: 4px;
    }

    .evcalc-charge-track {
      position: absolute;
      left: 0;
      right: 0;
      top: 10px;
      height: 14px;
      border-radius: 999px;
      border: 1px solid #bae6fd;
      background:
        linear-gradient(90deg,
          #dbeafe 0%,
          #dbeafe var(--charge-from),
          #38bdf8 var(--charge-from),
          #34d399 var(--charge-to),
          #dbeafe var(--charge-to),
          #dbeafe 100%);
      box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.15);
      pointer-events: none;
    }

    .evcalc-dual-range input[type="range"] {
      position: absolute;
      inset: 0;
      height: 34px;
      margin: 0;
      border: 0;
      background: transparent;
      box-shadow: none;
      pointer-events: none;
    }

    .evcalc-dual-range input[type="range"]#chargeFrom { z-index: 2; }
    .evcalc-dual-range input[type="range"]#chargeTo { z-index: 3; }
    .evcalc-dual-range input[type="range"]::-webkit-slider-runnable-track { background: transparent; border: 0; box-shadow: none; }
    .evcalc-dual-range input[type="range"]::-moz-range-track { background: transparent; border: 0; box-shadow: none; }
    .evcalc-dual-range input[type="range"]::-webkit-slider-thumb { pointer-events: auto; }
    .evcalc-dual-range input[type="range"]::-moz-range-thumb { pointer-events: auto; }

    .evcalc-break-even-lead {
      display: block;
      font-size: 12px;
      font-weight: 800;
      color: #065f46;
      margin: 6px 0 3px;
    }

    .evcalc-custom-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .evcalc-custom-head h3 { margin: 0; }

    .evcalc-compare-note {
      display: block;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.4;
      margin-top: 6px;
    }

    .evcalc-compare-note .evcalc-line {
      display: block;
      margin-bottom: 4px;
    }

    .evcalc-spec-row {
      padding: 14px;
      border: 1px solid var(--border);
      border-top: 0;
      border-radius: 0 0 20px 20px;
      background: #fff;
    }

    .evcalc-result-card { padding: 22px; }

    .evcalc-result-card h2 {
      font-size: 22px;
      line-height: 1.15;
      margin-bottom: 4px;
    }

    .evcalc-result-head {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-start;
      margin-bottom: 16px;
    }

    .evcalc-badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .evcalc-rank,
    .evcalc-powertrain,
    .evcalc-small-badge {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 7px 10px;
      font-size: 12px;
      font-weight: 800;
      color: var(--primary-dark);
      background: var(--soft);
      white-space: nowrap;
    }

    .evcalc-powertrain { color: #1d4ed8; background: #eff6ff; }
    .evcalc-small-badge { color: #475467; background: #f2f4f7; }

    .evcalc-main-result,
    .evcalc-cost-grid,
    .evcalc-car-data {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
    }

    .evcalc-main-result { grid-template-columns: 1fr; }

    .evcalc-metric {
      padding: 16px;
      border-radius: 18px;
      background: #f8fafc;
      border: 1px solid var(--border);
    }

    .evcalc-metric span,
    .evcalc-data-item span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 5px;
    }

    .evcalc-metric strong {
      display: block;
      font-size: clamp(22px, 2.4vw, 30px);
      letter-spacing: -0.04em;
    }

    .evcalc-data-item {
      padding: 12px;
      border-radius: 15px;
      background: #ffffff;
      border: 1px solid var(--border);
    }

    .evcalc-data-item strong { font-size: 14px; }

    .evcalc-detail-list {
      margin: 0;
      display: grid;
      gap: 7px;
      color: #344054;
    }

    .evcalc-detail-list div {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      border-bottom: 1px solid #eef2f7;
      padding-bottom: 6px;
    }

    .evcalc-detail-list div:last-child { border-bottom: 0; padding-bottom: 0; }

    .evcalc-detail-list dt {
      color: var(--muted);
      font-size: 12px;
    }

    .evcalc-detail-list dd {
      margin: 0;
      font-size: 12px;
      font-weight: 800;
      text-align: right;
    }

    .evcalc-detail-values {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 7px;
      color: #344054;
      font-size: 12px;
      font-weight: 800;
    }

    .evcalc-detail-values li {
      border-bottom: 1px solid #eef2f7;
      padding-bottom: 6px;
      min-height: 24px;
    }

    .evcalc-detail-values li:last-child { border-bottom: 0; padding-bottom: 0; }

    .evcalc-total-cost {
      background: linear-gradient(135deg, #eff6ff, #ecfdf5);
      border-color: #bfdbfe;
    }

    .evcalc-actions {
      display: flex;
      gap: 8px;
      margin-top: 14px;
    }

    .evcalc button {
      width: 100%;
      border: 0;
      border-radius: 14px;
      padding: 12px 14px;
      background: var(--primary);
      color: white;
      font-weight: 800;
      cursor: pointer;
    }

    .evcalc button:hover { background: var(--primary-dark); }

    .evcalc button.evcalc-secondary {
      background: #eef2ff;
      color: #3730a3;
    }

    .evcalc button.evcalc-secondary:hover { background: #e0e7ff; }

    .evcalc-spec-panel {
      display: none;
      margin-top: 14px;
      padding: 14px;
      border-radius: 18px;
      background: #f8fafc;
      border: 1px dashed #94a3b8;
    }

    .evcalc-spec-panel h3 {
      margin: 0 0 10px;
      font-size: 16px;
      letter-spacing: -0.01em;
    }

    .evcalc-spec-panel.is-open { display: block; }

    .evcalc-spec-grid label {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
    }

    .evcalc-meter {
      height: 10px;
      background: #e5e7eb;
      border-radius: 999px;
      overflow: hidden;
      margin: 10px 0 8px;
    }

    .evcalc-meter-fill {
      height: 100%;
      width: 50%;
      background: linear-gradient(90deg, #14b8a6, #22c55e);
      border-radius: 999px;
      transition: width 0.25s ease;
    }

    .evcalc-warning {
      background: var(--warning);
      border: 1px solid #fed7aa;
      border-radius: 16px;
      padding: 14px;
      color: #9a3412;
      font-size: 14px;
      line-height: 1.5;
    }

    .evcalc-info-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 24px;
    }

    .evcalc-info-card { padding: 20px; }

    .evcalc-info-card p,
    .evcalc-info-card li {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .evcalc-info-card ul { margin: 0; padding-left: 18px; }

    .evcalc-sources {
      margin-top: 18px;
      padding: 14px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: #f8fafc;
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6;
    }

    .evcalc-sources ol { margin: 0; padding-left: 20px; }
    .evcalc-sources li { margin: 0 0 8px; }
    .evcalc-sources li:last-child { margin-bottom: 0; }
    .evcalc-sources a { color: var(--primary-dark); font-weight: 700; }

    .evcalc-toast {
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%) scale(0.94);
      z-index: 9999;
      width: min(460px, calc(100vw - 32px));
      padding: 22px 24px;
      border-radius: 22px;
      background: linear-gradient(135deg, #0f172a, #1d4ed8);
      color: white;
      font-size: 16px;
      line-height: 1.4;
      text-align: center;
      font-weight: 900;
      box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .evcalc-toast.is-visible {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .evcalc-disclaimer {
      margin-top: 24px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.6;
      text-align: center;
    }

    @media print {
      body * { visibility: hidden; }
      #ev-range-calculator, #ev-range-calculator * { visibility: visible; }
      #ev-range-calculator {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        background: #fff;
        box-shadow: none;
      }
      .evcalc-panel, .evcalc-info-grid, .evcalc-disclaimer, .evcalc-actions, .evcalc-spec-row, .evcalc-sources { display: none !important; }
      .evcalc-hero { grid-template-columns: 1fr; }
      .evcalc-note-box { color: #111827; background: #fff; border: 1px solid #d1d5db; }
      .evcalc-comparison-card { overflow: visible; box-shadow: none; }
      .evcalc-comparison-sections { min-width: 0; page-break-inside: avoid; }
      .evcalc-print-only { display: block; }
    }

    @media (max-width: 1060px) {
      .evcalc-grid { grid-template-columns: 1fr; }
      .evcalc-section-cells { grid-template-columns: repeat(var(--compare-count, 3), minmax(0, 1fr)); }
    }

    @media (max-width: 760px) {
      .evcalc { padding: 20px 12px; border-radius: 18px; }
      .evcalc-hero,
      .evcalc-info-grid,
      .evcalc-compare-grid,
      .evcalc-filter-grid,
      .evcalc-price-grid,
      .evcalc-spec-grid,
      .evcalc-custom-grid,
      .evcalc-advice-grid,
      .evcalc-cost-grid,
      .evcalc-car-data { grid-template-columns: 1fr; }
      .evcalc-hero-card,
      .evcalc-panel,
      .evcalc-result-card { padding: 18px; }
      .evcalc-result-head { flex-direction: column; }
      .evcalc-comparison-card { overflow-x: hidden; max-width: 100%; }
      .evcalc-comparison-sections { min-width: 0; width: 100%; }
      .evcalc-mini-row { grid-template-columns: minmax(64px, auto) minmax(100px, auto); }
    }

.evcalc-slot-actions{display:flex;gap:8px;align-items:stretch;margin-top:12px}
.evcalc-slot-actions .evcalc-slot-spec,
.evcalc-slot-actions .evcalc-add-custom-slot{display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;margin-top:0 !important}
.evcalc-slot-selected-info{margin:-4px 0 12px;font-size:12px;color:var(--muted)}
.evcalc-slot-selected-info strong{display:block;color:var(--text);font-size:13px}
.evcalc-compare-type{font-size:11px;color:#475569;font-weight:700;margin-bottom:4px}

.evcalc-slot-spec,.evcalc-add-custom-slot{font-size:12px !important;padding:9px 12px !important;}


.evcalc-comparison-card,
.evcalc-comparison-card.evcalc-result-card,
.evcalc-comparison-sections,
.evcalc-comparison-section,
.evcalc-radar-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.evcalc-radar-card { padding: 0 !important; }
.evcalc-radar-wrap { margin-top: 6px; }
