/* ===== NAVLE Score Estimator ===== */

.se-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .se-layout {
    grid-template-columns: 1fr;
  }
}

.se-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.se-card, .se-chart-card, .se-result {
  background: var(--navle-surface, #ffffff);
  border: 1px solid rgba(14, 107, 105, 0.15);
  border-radius: var(--navle-radius-lg, 16px);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(14, 107, 105, 0.05);
}

.se-card__title, .se-section-title {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navle-ink, #1c2729);
}

.se-card__subtitle, .se-section-subtitle {
  font-size: 0.95rem;
  color: var(--navle-ink-soft, #58676b);
  margin-bottom: 20px;
}

.se-field {
  margin-bottom: 20px;
}

.se-field__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navle-ink, #1c2729);
}

.se-field__header span {
  color: var(--navle-brand, #0f766e);
}

.se-field input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  background: #e8e4df;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.se-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid var(--navle-brand, #0f766e);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.se-field input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid var(--navle-brand, #0f766e);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
}

.se-divider {
  height: 1px;
  background: rgba(14, 107, 105, 0.1);
  margin: 20px 0;
}

.se-readonly {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 8px 0;
  color: var(--navle-ink-soft, #58676b);
  border-bottom: 1px solid rgba(14, 107, 105, 0.05);
}
.se-readonly:last-child {
  border-bottom: none;
}

.se-readonly span:last-child {
  font-weight: 700;
  color: var(--navle-ink, #1c2729);
}

.se-tabs {
  display: flex;
  gap: 8px;
  background: #f6f1e8;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.se-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: var(--navle-ink-soft, #58676b);
  transition: all 0.2s ease;
}

.se-tab.is-active {
  background: #fff;
  color: var(--navle-brand, #0f766e);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.se-result {
  position: sticky;
  top: 90px;
  background: linear-gradient(145deg, #0f766e, #0b5b55);
  color: #fff;
  border: none;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.2);
}

.se-result__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 8px;
  display: block;
}

.se-result__score {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}

.se-result__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  margin-bottom: 24px;
}
.se-result__badge.is-pass { background: #136f55; }
.se-result__badge.is-fail { background: #9c3f3f; }

.se-result__ci {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 16px;
  display: block;
}

.se-result__guidance {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.se-bar {
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  position: relative;
  margin-bottom: 8px;
}

.se-bar__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}
.se-bar__fill.is-pass { background: #4ade80; }
.se-bar__fill.is-fail { background: #f87171; }

.se-bar__mark {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #fff;
  left: 37.5%;
}

.se-bar__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 24px;
}

.se-ministats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.se-ministat {
  display: flex;
  flex-direction: column;
}

.se-ministat__label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.se-ministat__value {
  font-size: 1.25rem;
  font-weight: 700;
}

.se-scenarios-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-top: 24px;
  margin-bottom: 16px;
}

.se-scenario {
  margin-bottom: 12px;
}

.se-scenario__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.se-scenario__track {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  position: relative;
}

.se-scenario__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 3px;
}
.se-scenario__fill.is-brand { background: #60a5fa; }
.se-scenario__fill.is-caution { background: #fbbf24; }
.se-scenario__fill.is-success { background: #4ade80; }

.se-scenario__pass {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #fff;
  left: 37.5%;
}

.se-next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.se-next a {
  display: block;
  padding: 20px;
  background: var(--navle-surface, #fff);
  border: 1px solid rgba(14, 107, 105, 0.15);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.se-next a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--navle-brand, #0f766e);
}

.se-next strong {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: var(--navle-brand, #0f766e);
  margin-bottom: 8px;
}

.se-next span {
  font-size: 0.95rem;
  color: var(--navle-ink-soft, #58676b);
}

.estimator-block-card {
  background: #f6f1e8;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.estimator-block-card__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
}

.estimator-block-card label {
  font-size: 0.85rem;
  color: var(--navle-ink-soft);
  display: block;
  margin-bottom: 6px;
}

.estimator-block-card__value {
  text-align: right;
  font-weight: 700;
  color: var(--navle-brand);
  margin-top: 4px;
}

.se-import-bar {
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.se-import-bar span {
  font-size: 0.9rem;
  color: var(--navle-ink);
}

.se-disclaimer {
  font-size: 0.85rem;
  color: var(--navle-ink-soft);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e8e4df;
  margin-top: 24px;
}
