
:root {
  --ek-fire-navy: #101B33;
  --ek-fire-blue: #6DA9FF;
  --ek-fire-silk: #F2F2F2;
  --ek-fire-gold: #C9A04D;
  --ek-fire-green: #0B7A4B;
  --ek-fire-green2: #14A76C;
  --ek-fire-ink: #18243d;
  --ek-fire-muted: #667085;
  --ek-fire-border: #dce4ee;
  --ek-fire-bg: #f6f8fb;
  --ek-fire-white: #ffffff;
}

.ek-fire-wrap,
.ek-fire-wrap * {
  box-sizing: border-box;
}

.ek-fire-wrap {
  width: min(100%, 800px);
  margin: 28px auto;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ek-fire-ink);
  background: linear-gradient(145deg, #101B33 0%, #17345e 55%, #6DA9FF 145%);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(16, 27, 51, .22);
}

.ek-fire-hero {
  padding: 34px 36px 30px;
  color: var(--ek-fire-silk);
  text-align: left;
}

.ek-fire-tool-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.ek-fire-compass {
  color: var(--ek-fire-gold);
  font-size: 22px;
  line-height: 1;
}

.ek-fire-gold-line {
  height: 1.5px;
  background: var(--ek-fire-gold);
  margin: 16px 0 22px;
  opacity: .95;
}

.ek-fire-hero h2 {
  margin: 0 0 12px;
  color: var(--ek-fire-silk);
  font-size: clamp(29px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-align: left;
}

.ek-fire-hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(242, 242, 242, .88);
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

.ek-fire-main-card,
.ek-fire-results {
  margin-inline: 20px;
}

.ek-fire-main-card {
  margin-bottom: 16px;
}

.ek-fire-results {
  padding-bottom: 22px;
}

.ek-fire-card {
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(220,228,238,.95);
  border-radius: 17px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(16,27,51,.08);
  margin-bottom: 16px;
  text-align: left;
}

.ek-fire-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ek-fire-section-head h3 {
  margin: 4px 0 0;
  color: var(--ek-fire-navy);
  font-size: 22px;
  line-height: 1.2;
}

.ek-fire-kicker {
  color: var(--ek-fire-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ek-fire-live-badge {
  white-space: nowrap;
  border-radius: 999px;
  padding: 7px 10px;
  background: #ecf8f2;
  color: var(--ek-fire-green);
  font-size: 12px;
  font-weight: 700;
}

.ek-fire-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.ek-fire-field {
  display: block;
}

.ek-fire-field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--ek-fire-navy);
  font-size: 13px;
  font-weight: 700;
}

.ek-fire-input-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 50px;
  background: #fff;
  border: 1px solid var(--ek-fire-border);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}

.ek-fire-input-wrap:focus-within {
  border-color: var(--ek-fire-blue);
  box-shadow: 0 0 0 3px rgba(109,169,255,.17);
}

.ek-fire-input-wrap input,
.ek-fire-input-wrap select {
  width: 100%;
  border: 0 !important;
  outline: 0;
  background: transparent;
  color: var(--ek-fire-ink);
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  box-shadow: none !important;
}

.ek-fire-input-wrap em {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 48px;
  padding: 0 11px;
  border-left: 1px solid var(--ek-fire-border);
  background: #f8fafc;
  color: var(--ek-fire-muted);
  font-size: 13px;
  font-style: normal;
}

.ek-fire-info {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid #98a2b3;
  border-radius: 50%;
  background: transparent;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  cursor: help;
}

.ek-fire-info:hover::after,
.ek-fire-info:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 9px);
  width: 230px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--ek-fire-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.ek-fire-advanced-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--ek-fire-border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ek-fire-navy);
  font-weight: 800;
  cursor: pointer;
}

.ek-fire-toggle-icon {
  font-size: 22px;
  font-weight: 400;
}

.ek-fire-advanced {
  padding-top: 20px;
}

.ek-fire-error {
  margin: 0 20px 16px;
  padding: 13px 15px;
  border-radius: 10px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #a8071a;
  font-weight: 700;
}

.ek-fire-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #effaf5 100%);
  border-color: #cce9dc;
}

.ek-fire-highlight > strong {
  display: block;
  margin: 8px 0;
  color: var(--ek-fire-green);
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1;
}

.ek-fire-highlight > p {
  margin: 10px 0 20px;
  color: var(--ek-fire-muted);
  line-height: 1.6;
}

.ek-fire-mini-grid,
.ek-fire-summary-grid,
.ek-fire-capital-grid,
.ek-fire-lifestyle-grid {
  display: grid;
  gap: 14px;
}

.ek-fire-mini-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.ek-fire-mini-grid div,
.ek-fire-capital-grid div {
  padding: 15px;
  border: 1px solid var(--ek-fire-border);
  border-radius: 12px;
  background: rgba(255,255,255,.75);
}

.ek-fire-mini-grid span,
.ek-fire-capital-grid span {
  display: block;
  color: var(--ek-fire-muted);
  font-size: 12px;
}

.ek-fire-mini-grid b,
.ek-fire-capital-grid b {
  display: block;
  margin-top: 5px;
  color: var(--ek-fire-navy);
  font-size: 19px;
}

.ek-fire-summary-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin-bottom: 16px;
}

.ek-fire-stat {
  margin-bottom: 0;
}

.ek-fire-stat span,
.ek-fire-stat small {
  color: var(--ek-fire-muted);
}

.ek-fire-stat strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ek-fire-navy);
  font-size: 25px;
}

.ek-fire-progress-donut {
  --progress: 0deg;
  width: 76px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ek-fire-green2) var(--progress), #e8edf3 0);
  position: relative;
  flex: 0 0 auto;
}

.ek-fire-progress-donut::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.ek-fire-progress-donut span {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 800;
  color: var(--ek-fire-green);
}

.ek-fire-capital-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
  margin-bottom: 22px;
}

.ek-fire-chart-wrap {
  position: relative;
  min-height: 340px;
}

.ek-fire-chart-wrap canvas {
  width: 100% !important;
  height: 340px !important;
}

.ek-fire-analysis {
  margin: 0 0 18px;
  color: #344054;
  font-size: 16px;
  line-height: 1.7;
}

.ek-fire-scenarios {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 10px;
}

.ek-fire-scenarios button,
.ek-fire-table-toggle {
  border: 1px solid #bfd3ee;
  border-radius: 10px;
  background: #f7fbff;
  color: #1f4f91;
  font-weight: 800;
  cursor: pointer;
}

.ek-fire-scenarios button {
  min-height: 72px;
  padding: 10px;
  font-size: 12px;
}

.ek-fire-scenarios button:hover,
.ek-fire-scenarios button.is-active {
  border-color: var(--ek-fire-blue);
  background: #eaf3ff;
}

.ek-fire-scenario-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff9ec;
  border: 1px solid #f0d58f;
  color: #795400;
  font-weight: 700;
}

.ek-fire-lifestyle-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.ek-fire-lifestyle {
  padding: 16px;
  border: 1px solid var(--ek-fire-border);
  border-radius: 12px;
  background: #fff;
}

.ek-fire-lifestyle.is-current {
  border-color: var(--ek-fire-gold);
  box-shadow: inset 0 0 0 1px var(--ek-fire-gold);
  background: #fffaf0;
}

.ek-fire-lifestyle h4 {
  margin: 0 0 6px;
  color: var(--ek-fire-navy);
  font-size: 15px;
}

.ek-fire-lifestyle strong {
  display: block;
  margin: 7px 0;
  color: var(--ek-fire-green);
  font-size: 19px;
}

.ek-fire-lifestyle p {
  margin: 0;
  color: var(--ek-fire-muted);
  font-size: 12px;
  line-height: 1.5;
}

.ek-fire-table-toggle {
  padding: 9px 12px;
}

.ek-fire-table-wrap {
  overflow-x: auto;
}

.ek-fire-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 12px;
}

.ek-fire-table-wrap th,
.ek-fire-table-wrap td {
  border-bottom: 1px solid var(--ek-fire-border);
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
}

.ek-fire-table-wrap th:first-child,
.ek-fire-table-wrap td:first-child,
.ek-fire-table-wrap th:nth-child(2),
.ek-fire-table-wrap td:nth-child(2) {
  text-align: left;
}

.ek-fire-table-wrap thead {
  background: #f5f8fc;
}

.ek-fire-table-wrap tbody tr:last-child {
  background: #edf8f2;
  font-weight: 800;
}

.ek-fire-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.ek-fire-btn {
  min-height: 52px;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.ek-fire-btn:hover {
  transform: translateY(-1px);
}

.ek-fire-btn-primary {
  background: var(--ek-fire-navy);
  border: 1px solid var(--ek-fire-navy);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16,27,51,.18);
}

.ek-fire-btn-secondary {
  background: #fff;
  border: 1px solid var(--ek-fire-border);
  color: var(--ek-fire-navy);
}

.ek-fire-disclaimer {
  margin: 16px 4px 0;
  color: rgba(242,242,242,.78);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .ek-fire-wrap {
    border-radius: 18px;
    margin: 18px auto;
  }
  .ek-fire-hero {
    padding: 28px 22px 24px;
  }
  .ek-fire-main-card,
  .ek-fire-results {
    margin-inline: 12px;
  }
  .ek-fire-card {
    padding: 18px;
  }
  .ek-fire-form-grid,
  .ek-fire-summary-grid,
  .ek-fire-capital-grid,
  .ek-fire-lifestyle-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ek-fire-scenarios {
    grid-template-columns: 1fr 1fr;
  }
  .ek-fire-chart-wrap,
  .ek-fire-chart-wrap canvas {
    min-height: 280px;
    height: 280px !important;
  }
}

@media (max-width: 480px) {
  .ek-fire-form-grid,
  .ek-fire-summary-grid,
  .ek-fire-capital-grid,
  .ek-fire-lifestyle-grid,
  .ek-fire-actions {
    grid-template-columns: 1fr;
  }
  .ek-fire-section-head {
    align-items: flex-start;
  }
  .ek-fire-progress-donut {
    width: 66px;
  }
  .ek-fire-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }
  .ek-fire-wrap,
  .ek-fire-wrap * {
    visibility: visible !important;
  }
  .ek-fire-wrap {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background: #fff;
  }
  .ek-fire-hero {
    background: var(--ek-fire-navy);
  }
  .ek-fire-actions,
  .ek-fire-advanced-toggle,
  .ek-fire-scenarios,
  .ek-fire-table-toggle {
    display: none !important;
  }
  .ek-fire-table-wrap[hidden],
  .ek-fire-advanced[hidden] {
    display: block !important;
  }
  .ek-fire-disclaimer {
    color: #667085;
  }
}


/* Premium light-layout refinements – v1.1.0 */
.ek-fire-wrap {
  background: #f4f7fb;
  overflow: hidden;
}

.ek-fire-hero {
  background: linear-gradient(145deg, #101B33 0%, #17345e 58%, #6DA9FF 145%);
}

.ek-fire-tool-label,
.ek-fire-hero h2,
.ek-fire-hero p {
  color: var(--ek-fire-silk);
}

.ek-fire-compass,
.ek-fire-gold-line {
  color: var(--ek-fire-gold);
}

.ek-fire-main-card,
.ek-fire-results {
  margin-inline: 24px;
}

.ek-fire-main-card {
  margin-top: 24px;
}

.ek-fire-results {
  padding-bottom: 28px;
}

.ek-fire-card {
  padding: 28px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(16,27,51,.07);
}

.ek-fire-form-grid {
  gap: 22px 20px;
  align-items: end;
}

.ek-fire-field {
  min-width: 0;
}

.ek-fire-field > span {
  min-height: 34px;
  align-items: flex-end;
  line-height: 1.35;
}

.ek-fire-input-wrap {
  min-width: 0;
}

.ek-fire-input-wrap input,
.ek-fire-input-wrap select {
  min-width: 0;
}

.ek-fire-advanced-toggle {
  margin-top: 24px;
  padding: 15px 17px;
  background: #f4f7fb;
}

.ek-fire-advanced {
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid #edf1f6;
}

.ek-fire-section-head {
  margin-bottom: 24px;
}

.ek-fire-highlight > p,
.ek-fire-analysis {
  max-width: 650px;
}

.ek-fire-capital-grid {
  gap: 16px;
}

.ek-fire-capital-grid div {
  padding: 18px;
}

.ek-fire-scenarios {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.ek-fire-scenarios button {
  min-height: 64px;
  padding: 14px;
  font-size: 13px;
  background: #fff;
  border: 1px solid #cdd9e8;
  box-shadow: 0 5px 14px rgba(16,27,51,.05);
}

.ek-fire-scenarios button:hover,
.ek-fire-scenarios button.is-active {
  background: #eef5ff;
  border-color: #6DA9FF;
  color: #17345e;
}

.ek-fire-scenario-result {
  margin-top: 16px;
}

.ek-fire-table-wrap {
  max-height: 318px;
  overflow: hidden;
  position: relative;
  transition: max-height .25s ease;
}

.ek-fire-table-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%);
  pointer-events: none;
}

.ek-fire-table-wrap.is-expanded {
  max-height: none;
  overflow-x: auto;
}

.ek-fire-table-wrap.is-expanded::after {
  display: none;
}

.ek-fire-table-toggle {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #17345e;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(16,27,51,.05);
}

.ek-fire-actions {
  gap: 16px;
  margin-top: 22px;
}

.ek-fire-btn {
  min-height: 56px;
  border-radius: 12px;
  font-size: 15px;
}

.ek-fire-btn-primary {
  background: #101B33;
  border-color: #101B33;
  color: #fff;
  box-shadow: 0 8px 18px rgba(16,27,51,.14);
}

.ek-fire-btn-secondary {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #101B33;
  box-shadow: 0 6px 16px rgba(16,27,51,.06);
}

.ek-fire-btn-primary:hover,
.ek-fire-btn-secondary:hover {
  box-shadow: 0 10px 24px rgba(16,27,51,.12);
}

.ek-fire-disclaimer {
  margin: 18px 6px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dce4ee;
  color: #475467;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 720px) {
  .ek-fire-main-card,
  .ek-fire-results {
    margin-inline: 12px;
  }

  .ek-fire-main-card {
    margin-top: 14px;
  }

  .ek-fire-card {
    padding: 20px;
    border-radius: 16px;
  }

  .ek-fire-form-grid {
    gap: 18px 14px;
  }

  .ek-fire-field > span {
    min-height: 0;
  }

  .ek-fire-capital-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ek-fire-lifestyle-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .ek-fire-form-grid,
  .ek-fire-summary-grid,
  .ek-fire-capital-grid,
  .ek-fire-lifestyle-grid,
  .ek-fire-actions,
  .ek-fire-scenarios {
    grid-template-columns: 1fr;
  }

  .ek-fire-section-head {
    gap: 12px;
  }

  .ek-fire-live-badge {
    white-space: normal;
    text-align: center;
  }

  .ek-fire-chart-wrap,
  .ek-fire-chart-wrap canvas {
    min-height: 250px;
    height: 250px !important;
  }

  .ek-fire-hero h2 {
    font-size: 31px;
  }

  .ek-fire-hero p {
    font-size: 15px;
  }
}


/* Final polish – v1.1.1 */
.ek-fire-hero p {
  color: #F2F2F2 !important;
  opacity: 1;
}

.ek-fire-advanced .ek-fire-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.ek-fire-advanced .ek-fire-field {
  min-width: 0;
  overflow: visible;
}

.ek-fire-advanced .ek-fire-field > span {
  min-height: 42px;
  align-items: flex-start;
}

.ek-fire-advanced .ek-fire-input-wrap {
  width: 100%;
  min-width: 0;
}

.ek-fire-advanced .ek-fire-input-wrap input,
.ek-fire-advanced .ek-fire-input-wrap select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.ek-fire-capital-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ek-fire-table-action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.ek-fire-table-toggle {
  min-width: 190px;
}

.ek-fire-disclaimer {
  margin-top: 28px;
  padding: 20px 22px;
  text-align: center;
}

@media (max-width: 720px) {
  .ek-fire-advanced .ek-fire-form-grid {
    grid-template-columns: 1fr;
  }

  .ek-fire-advanced .ek-fire-field > span {
    min-height: 0;
  }

  .ek-fire-capital-grid {
    grid-template-columns: 1fr;
  }

  .ek-fire-disclaimer {
    margin-top: 24px;
    padding: 18px;
  }
}


/* FIRE salary and return transparency – v1.2.0 */
.ek-fire-mini-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ek-fire-return-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ek-fire-return-grid > div {
  padding: 18px;
  border: 1px solid var(--ek-fire-border);
  border-radius: 12px;
  background: #f8fafc;
}

.ek-fire-return-grid > div.is-total {
  background: #eef8f3;
  border-color: #c8e5d8;
}

.ek-fire-return-grid span {
  display: block;
  color: var(--ek-fire-muted);
  font-size: 12px;
}

.ek-fire-return-grid b {
  display: block;
  margin-top: 6px;
  color: var(--ek-fire-navy);
  font-size: 20px;
}

.ek-fire-return-grid .is-total b {
  color: var(--ek-fire-green);
}

.ek-fire-method-note {
  margin: 18px 0 0;
  padding: 15px 17px;
  border-radius: 11px;
  background: #fff9ec;
  border: 1px solid #ecd79e;
  color: #6d560f;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .ek-fire-mini-grid-four,
  .ek-fire-return-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .ek-fire-mini-grid-four,
  .ek-fire-return-grid {
    grid-template-columns: 1fr;
  }
}


/* Advanced settings summary – v1.2.1 */
.ek-fire-advanced-toggle {
  align-items: center;
  text-align: left;
  gap: 18px;
}

.ek-fire-advanced-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ek-fire-advanced-title {
  color: var(--ek-fire-navy);
  font-size: 15px;
  font-weight: 800;
}

.ek-fire-advanced-summary {
  color: var(--ek-fire-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
}

.ek-fire-toggle-icon {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  transition: transform .2s ease;
}

.ek-fire-advanced-toggle[aria-expanded="true"] .ek-fire-toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 480px) {
  .ek-fire-advanced-toggle {
    align-items: flex-start;
  }

  .ek-fire-advanced-summary {
    font-size: 11px;
  }
}


/* Premium result-layout refinements – v1.3.0 */
.ek-fire-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ek-fire-stat {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ek-fire-highlight {
  padding: 32px;
}

.ek-fire-mini-grid-four > div {
  min-height: 102px;
}

.ek-fire-mini-grid small {
  display: block;
  margin-top: 6px;
  color: var(--ek-fire-green);
  font-size: 11px;
  font-weight: 700;
}

.ek-fire-section-intro {
  max-width: 540px;
  margin: 9px 0 0;
  color: var(--ek-fire-muted);
  font-size: 14px;
  line-height: 1.6;
}

.ek-fire-growth-head {
  align-items: center;
}

.ek-fire-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ek-fire-progress-wrap small {
  max-width: 86px;
  color: var(--ek-fire-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.ek-fire-capital-grid > div {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ek-fire-return-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ek-fire-table-note {
  margin: 14px 0 0;
  color: var(--ek-fire-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.ek-fire-table-action {
  margin-top: 16px;
}

.ek-fire-analysis {
  max-width: 690px;
}

@media (max-width: 720px) {
  .ek-fire-summary-grid {
    grid-template-columns: 1fr;
  }

  .ek-fire-stat {
    min-height: auto;
  }

  .ek-fire-growth-head {
    align-items: flex-start;
  }

  .ek-fire-progress-wrap {
    align-items: flex-end;
  }
}

@media (max-width: 480px) {
  .ek-fire-highlight {
    padding: 22px 18px;
  }

  .ek-fire-growth-head {
    flex-direction: column;
  }

  .ek-fire-progress-wrap {
    align-items: center;
    width: 100%;
  }
}


/* Publication polish – v1.4.0 */
.ek-fire-progress-wrap small {
  max-width: 120px;
}

.ek-fire-scenario-result {
  font-size: 14px;
  line-height: 1.55;
}

.ek-fire-table-wrap tbody tr.is-fire-row {
  background: #eaf7f0 !important;
  color: #0B7A4B;
  font-weight: 800;
}

.ek-fire-table-wrap tbody tr.is-fire-row td {
  border-bottom-color: #b8dfca;
}

.ek-fire-mini-grid small {
  color: #667085;
}

.ek-fire-highlight .ek-fire-mini-grid > div:nth-child(3) small {
  color: var(--ek-fire-green);
}

.ek-fire-budget-warning{
margin:0 24px 20px;
padding:16px 18px;
background:#fff7e6;
border:1px solid #f2cf7a;
border-radius:12px;
color:#7a5600;
line-height:1.6;
}
@media(max-width:720px){.ek-fire-budget-warning{margin:0 12px 18px;}}


/* Final QA and responsive polish – v1.6.0 */
.ek-fire-hero,
.ek-fire-card,
.ek-fire-budget-warning,
.ek-fire-disclaimer {
  text-wrap: pretty;
}

.ek-fire-card {
  scroll-margin-top: 24px;
}

.ek-fire-summary-grid,
.ek-fire-capital-grid,
.ek-fire-return-grid,
.ek-fire-lifestyle-grid,
.ek-fire-mini-grid-four {
  align-items: stretch;
}

.ek-fire-summary-grid > *,
.ek-fire-capital-grid > *,
.ek-fire-return-grid > *,
.ek-fire-lifestyle-grid > *,
.ek-fire-mini-grid-four > * {
  height: 100%;
}

.ek-fire-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ek-fire-table-wrap.is-expanded {
  overflow: auto;
}

.ek-fire-table-wrap table {
  width: max(100%, 720px);
}

.ek-fire-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f8fc;
}

.ek-fire-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.ek-fire-btn,
.ek-fire-scenarios button,
.ek-fire-table-toggle,
.ek-fire-advanced-toggle {
  touch-action: manipulation;
}

.ek-fire-btn:focus-visible,
.ek-fire-scenarios button:focus-visible,
.ek-fire-table-toggle:focus-visible,
.ek-fire-advanced-toggle:focus-visible,
.ek-fire-info:focus-visible {
  outline: 3px solid rgba(109, 169, 255, .42);
  outline-offset: 3px;
}

@media (max-width: 430px) {
  .ek-fire-wrap {
    margin-inline: 0;
    border-radius: 14px;
  }

  .ek-fire-hero {
    padding: 25px 18px 22px;
  }

  .ek-fire-hero h2 {
    font-size: 29px;
  }

  .ek-fire-main-card,
  .ek-fire-results {
    margin-inline: 8px;
  }

  .ek-fire-card {
    padding: 18px 15px;
  }

  .ek-fire-section-head {
    margin-bottom: 20px;
  }

  .ek-fire-highlight > strong {
    font-size: 34px;
  }

  .ek-fire-chart-wrap,
  .ek-fire-chart-wrap canvas {
    min-height: 235px;
    height: 235px !important;
  }

  .ek-fire-table-toggle,
  .ek-fire-btn {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .ek-fire-hero h2 {
    font-size: 26px;
  }

  .ek-fire-tool-label {
    font-size: 13px;
  }

  .ek-fire-card {
    padding-inline: 13px;
  }

  .ek-fire-input-wrap input,
  .ek-fire-input-wrap select {
    font-size: 15px;
    padding-inline: 11px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .ek-fire-chart-wrap,
  .ek-fire-chart-wrap canvas {
    min-height: 220px;
    height: 220px !important;
  }
}


/* Publiceringsversion – premium pixel polish v1.7.0 */
.ek-fire-wrap {
  --ek-section-gap: 24px;
  --ek-card-padding: 30px;
}

.ek-fire-hero {
  padding: 40px 40px 36px;
}

.ek-fire-hero h2 {
  max-width: 700px;
  margin-bottom: 16px;
}

.ek-fire-hero p {
  max-width: 700px;
  line-height: 1.72;
}

.ek-fire-main-card {
  margin-top: 28px;
}

.ek-fire-results {
  padding-bottom: 34px;
}

.ek-fire-card {
  padding: var(--ek-card-padding);
  margin-bottom: var(--ek-section-gap);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(16, 27, 51, .03),
    0 14px 36px rgba(16, 27, 51, .075);
}

.ek-fire-section-head {
  margin-bottom: 26px;
}

.ek-fire-section-head h3 {
  font-size: 23px;
  letter-spacing: -.018em;
}

.ek-fire-kicker {
  margin-bottom: 3px;
}

.ek-fire-form-grid {
  gap: 24px 22px;
}

.ek-fire-input-wrap {
  min-height: 54px;
  border-radius: 12px;
}

.ek-fire-advanced-toggle {
  margin-top: 28px;
  padding: 17px 18px;
  border-radius: 12px;
}

.ek-fire-highlight {
  padding: 34px;
}

.ek-fire-mini-grid,
.ek-fire-capital-grid,
.ek-fire-return-grid,
.ek-fire-lifestyle-grid {
  gap: 16px;
}

.ek-fire-mini-grid div,
.ek-fire-capital-grid div,
.ek-fire-return-grid > div,
.ek-fire-lifestyle {
  border-radius: 14px;
}

.ek-fire-summary-grid {
  gap: 18px;
  margin-bottom: 24px;
}

.ek-fire-stat strong {
  font-size: 27px;
}

.ek-fire-progress-label {
  color: var(--ek-fire-navy);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.ek-fire-progress-wrap {
  min-width: 122px;
  padding: 12px;
  border: 1px solid #e3e9f1;
  border-radius: 16px;
  background: #fbfcfe;
}

.ek-fire-progress-wrap small {
  max-width: 110px;
}

.ek-fire-chart-wrap {
  margin-top: 8px;
  padding-top: 8px;
}

.ek-fire-analysis {
  margin-bottom: 22px;
}

.ek-fire-scenarios {
  margin-top: 4px;
}

.ek-fire-scenarios button {
  border-radius: 12px;
}

.ek-fire-scenario-result {
  margin-top: 18px;
  padding: 17px 18px;
  border-radius: 12px;
}

.ek-fire-lifestyle {
  min-height: 166px;
  display: flex;
  flex-direction: column;
}

.ek-fire-lifestyle p:last-child {
  margin-top: auto;
  padding-top: 8px;
}

.ek-fire-table-action {
  margin-top: 20px;
}

.ek-fire-actions {
  margin-top: 26px;
}

.ek-fire-disclaimer {
  margin-top: 30px;
  padding: 22px 26px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .ek-fire-wrap {
    --ek-section-gap: 18px;
    --ek-card-padding: 22px;
  }

  .ek-fire-hero {
    padding: 32px 24px 28px;
  }

  .ek-fire-main-card {
    margin-top: 18px;
  }

  .ek-fire-card {
    border-radius: 18px;
  }

  .ek-fire-section-head {
    margin-bottom: 22px;
  }

  .ek-fire-progress-wrap {
    min-width: 112px;
  }

  .ek-fire-lifestyle {
    min-height: 150px;
  }
}

@media (max-width: 430px) {
  .ek-fire-wrap {
    --ek-card-padding: 18px;
  }

  .ek-fire-hero {
    padding: 28px 19px 25px;
  }

  .ek-fire-hero h2 {
    margin-bottom: 13px;
  }

  .ek-fire-card {
    margin-bottom: 16px;
    border-radius: 16px;
  }

  .ek-fire-section-head {
    margin-bottom: 19px;
  }

  .ek-fire-section-head h3 {
    font-size: 21px;
  }

  .ek-fire-progress-wrap {
    width: 100%;
    padding: 15px;
  }

  .ek-fire-scenarios button {
    min-height: 58px;
  }

  .ek-fire-disclaimer {
    margin-top: 22px;
    padding: 18px 16px;
  }
}
