.estimator-card p,
.estimator-step p,
.estimator-impact p {
  margin: 10px 0 0;
  color: var(--muted);
}

.estimator-panel {
  overflow: hidden;
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.estimator-controls {
  margin: 0;
}

.estimator-top-cards {
  margin-bottom: 20px;
}

.estimator-meta-cards {
  margin-top: 20px;
  margin-bottom: 0;
}

.estimator-card-muted {
  opacity: 0.78;
  background: linear-gradient(180deg, #f8f6f2, #f3efe8);
}

.estimator-card-muted strong {
  font-size: 24px;
}

.estimator-card-muted p {
  font-size: 13px;
}

.estimator-bottom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.estimator-impact-grid,
.estimator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.estimator-impact {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fcfbf9, #f4f1eb);
}

.estimator-impact strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

.estimator-impact-positive {
  border-color: rgba(44, 138, 70, 0.2);
}

.estimator-impact-negative {
  border-color: rgba(165, 37, 58, 0.18);
}

.estimator-step {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafaf8, #f3f1ec);
  border: 1px solid var(--border);
}

.estimator-step span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.estimator-step h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.forecast-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  min-height: 240px;
  padding: 12px 0 22px;
  margin-bottom: 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.estimator-forecast-panel {
  padding: 0;
}

.estimator-month-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdfa, #f7f3ec);
}

.estimator-month-head h2 {
  margin: 0;
}

.estimator-month-head label {
  min-width: 170px;
}

.estimator-daily-section {
  margin-top: 20px;
  padding: 0 26px;
}

.estimator-section-header {
  margin-bottom: 4px;
}

.forecast-bar-group {
  min-width: 84px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.forecast-bars {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(44, 138, 70, 0.05), rgba(44, 138, 70, 0.01));
}

.forecast-bar {
  width: 24px;
  min-height: 12px;
  border-radius: 12px 12px 4px 4px;
}

.forecast-bar-real {
  background: linear-gradient(180deg, #1d1d1b, #4e4b47);
}

.forecast-bar-predicted {
  background: linear-gradient(180deg, var(--accent), #5fa874);
}

.forecast-bar-empty {
  opacity: 0.25;
}

.forecast-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.forecast-values {
  display: grid;
  gap: 2px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.delta-positive {
  color: var(--accent);
  font-weight: 700;
}

.delta-negative {
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 860px) {
  .estimator-impact-grid,
  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .estimator-month-summary {
    grid-template-columns: 1fr 1fr;
  }

  .estimator-bottom-grid {
    grid-template-columns: 1fr;
  }

  .estimator-month-head {
    align-items: stretch;
    flex-direction: column;
  }

  .estimator-month-head label {
    min-width: 0;
  }
}

.is-hidden {
  display: none;
}

.estimator-history-cards {
  margin-top: 18px;
  margin-bottom: 0;
}

.signal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(29, 29, 27, 0.08);
  color: #4e4b47;
  font-size: 12px;
  font-weight: 700;
}

.signal-badge-key {
  background: rgba(44, 138, 70, 0.14);
  color: #246639;
}

.signal-badge-alert {
  background: rgba(165, 37, 58, 0.14);
  color: #8c2337;
}

.signal-badge-weather {
  background: rgba(42, 110, 160, 0.14);
  color: #245f8d;
}

.signal-badge-holiday {
  background: rgba(194, 111, 32, 0.16);
  color: #9a561d;
}

.signal-badge-preholiday {
  background: rgba(189, 142, 41, 0.18);
  color: #8a651c;
}

.signal-badge-bridge {
  background: rgba(112, 84, 157, 0.16);
  color: #5b4381;
}

.signal-badge-missing {
  background: rgba(78, 75, 71, 0.12);
  color: #5d5953;
}

.signal-badge-muted {
  background: rgba(78, 75, 71, 0.1);
  color: var(--muted);
}

.weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 64px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(29, 29, 27, 0.06);
  color: #3f3b35;
  font-size: 13px;
  font-weight: 700;
}

.weather-pill span {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.estimator-summary-panel {
  padding: 22px 26px 0;
}

.estimator-forecast-content {
  position: relative;
  padding-bottom: 24px;
}

.estimator-forecast-content.is-loading .estimator-summary-panel,
.estimator-forecast-content.is-loading .estimator-daily-section,
.estimator-forecast-content.is-loading .forecast-chart,
.estimator-forecast-content.is-loading table {
  opacity: 0.42;
  pointer-events: none;
}

.estimator-loader {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(252, 251, 248, 0.92);
  box-shadow: 0 14px 40px rgba(29, 29, 27, 0.12);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.estimator-loader[hidden] {
  display: none;
}

.estimator-loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  animation: estimatorPulse 0.9s ease-in-out infinite alternate;
}

@keyframes estimatorPulse {
  from {
    transform: scale(0.7);
    opacity: 0.45;
  }

  to {
    transform: scale(1.15);
    opacity: 1;
  }
}

.estimator-month-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.estimator-month-summary > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.estimator-month-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.estimator-month-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.estimator-history-years {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.estimator-history-year {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #faf8f4, #f4f0e8);
}

.estimator-history-year strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.estimator-history-year p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.estimator-history-year-reference {
  border-color: rgba(44, 138, 70, 0.24);
  background: linear-gradient(180deg, rgba(44, 138, 70, 0.08), rgba(44, 138, 70, 0.03));
}

.forecast-row-key td {
  background: rgba(44, 138, 70, 0.04);
}

.forecast-bar-group-key .forecast-bars {
  box-shadow: inset 0 0 0 1px rgba(44, 138, 70, 0.18);
}
