.commanderHome {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.commanderHome .card {
  border-color: rgba(255, 170, 60, 0.25);
}

.alertBanner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  border: 1px solid #8d6d2f;
  background: linear-gradient(180deg, #1a202f 0%, #131a29 100%);
  box-shadow: 0 0 0 1px rgba(173, 130, 54, 0.2) inset;
  padding: 26px;
}

.severityPill {
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #8d6d2f;
  color: #f5d89a;
  background: #2b2110;
  padding: 7px 12px;
  letter-spacing: 0.06em;
}

.alertHeadline {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.alertSummary {
  margin: 0;
  font-size: 16px;
  color: #c6d4ee;
}

.metricChips {
  display: flex;
  flex-wrap: wrap;
  max-width: 360px;
  gap: 6px;
  justify-content: flex-end;
}

.metricChip {
  font-size: 11px;
  padding: 3px 8px;
  border-color: #6d84a8;
  background: #1f2d44;
}

.actionCard {
  border: 1px solid #9e7730;
  background: linear-gradient(180deg, #1b2435 0%, #152033 100%);
  box-shadow: 0 0 26px rgba(214, 154, 44, 0.14), 0 0 0 1px rgba(158, 119, 48, 0.22) inset;
}

.actionText {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0 12px;
  line-height: 1.05;
}

.actionChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.actionButtons {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actionBtn {
  text-decoration: none;
  color: #f2f6ff;
  border: 1px solid #738db4;
  background: transparent;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}

.actionButtons .actionBtn:first-child {
  background: linear-gradient(180deg, #b8893a 0%, #8e6525 100%);
  border-color: #c39545;
  color: #1e1508;
}

.whyGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.whyCard h3 {
  margin: 0 0 8px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b9cae5;
}

.whyGrid .whyCard:last-child {
  border-left: 3px solid rgba(224, 80, 80, 0.65);
}

.whyValue {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.08;
}

.whySeverity {
  font-size: 12px;
  margin-bottom: 6px;
}

.whyLink {
  color: #9fcbff;
  text-decoration: none;
  font-size: 13px;
}

.readinessStripCard {
  padding: 6px 12px;
  border-color: #49658c;
}

.readinessStrip {
  font-size: 13px;
  color: #d6e3f7;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

.commandPanel .quickRow {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.commandPanel .cmdBtn {
  margin-top: 0;
  background: #21324c;
  border: 1px solid #617da7;
  color: #dce8fb;
  font-size: 12px;
  font-weight: 700;
}

.commandPanel #askQuestionBtn {
  margin-top: 12px;
  background: linear-gradient(180deg, #9b722f 0%, #745421 100%);
  color: #1c1407;
  border: 1px solid #ad8642;
  font-weight: 700;
  display: inline-flex;
  align-self: flex-start;
  margin-left: 0;
}

.commandPanel label {
  margin-top: 10px;
}

.commandPanel textarea {
  min-height: 66px;
  height: 66px;
}

.resultCard {
  margin-top: 10px;
}

.hiddenJson {
  display: none;
}

@media (max-width: 980px) {
  .alertBanner {
    grid-template-columns: 1fr;
  }

  .metricChips {
    justify-items: start;
  }

  .whyGrid {
    grid-template-columns: 1fr;
  }

  .commandPanel .quickRow {
    grid-template-columns: 1fr 1fr;
  }
}

.whatIfLayout {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(500px, 1.05fr);
  gap: 12px;
  padding: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.whatIfLeft,
.whatIfRight {
  border: 1px solid #86652b;
  background: linear-gradient(180deg, #141c2b 0%, #101827 100%);
}

.whatIfPresetGroup {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.whatIfPresetBtn,
.whatIfRunBtn {
  border: 1px solid #9f7932;
  color: #f2dfb4;
  background: linear-gradient(180deg, #3a2b12 0%, #271b0a 100%);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 6px;
}

.whatIfRunBtn {
  width: 100%;
}

.whatIfJsonEditor summary {
  cursor: pointer;
  color: #d9c497;
  margin-bottom: 8px;
}

.whatIfStatusRow {
  margin-bottom: 8px;
}

.whatIfStatusOk {
  border-color: #3d7b5a;
  background: #1d3b2d;
}

.whatIfStatusError {
  border-color: #8a4848;
  background: #3d1f1f;
}

.whatIfReadinessRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.whatIfChanges {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.whatIfChangeRow {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1fr;
  gap: 10px;
  border: 1px solid #4f678e;
  border-radius: 6px;
  padding: 10px;
  background: #142339;
  font-size: 14px;
}

.whatIfField {
  color: #dce8ff;
  font-weight: 700;
}

.whatIfArrow {
  color: #f0d7a4;
}

.whatIfDrivers {
  margin-top: 0;
  padding-left: 18px;
}

.whatIfMuted {
  color: #9eb5d8;
}

header {
  border-bottom: 1px solid #2f445f;
}

header h1 {
  font-size: 1.55rem;
}

header .topNav a {
  border-color: #3f5d84;
  background: #1a283d;
}

@media (max-width: 980px) {
  .whatIfLayout {
    grid-template-columns: 1fr;
  }

  .whatIfChangeRow {
    grid-template-columns: 1fr;
  }
}
