.war-room-panel {
  grid-column: 1 / -1;
}

.war-room-slot {
  border: 1px solid #e7d9c8;
  border-radius: 10px;
  background: linear-gradient(150deg, #fffdf6, #fff6e6);
  padding: 10px;
  margin-bottom: 12px;
}

.war-room-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.war-room-status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid #dbc4a6;
  background: #fff8eb;
  color: #694321;
}

.war-room-confirm-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

.war-room-ack {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #4b5563;
}

.war-room-ack input {
  width: auto;
}

.war-room-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  grid-template-areas:
    "strike timeline"
    "relationships catalyst";
  gap: 10px;
}

.war-room-card {
  border: 1px solid #eadbc8;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fff9ef);
  padding: 10px;
  min-height: 220px;
}

.war-room-strike {
  grid-area: strike;
}

.war-room-timeline {
  grid-area: timeline;
}

.war-room-relationships {
  grid-area: relationships;
}

.war-room-catalyst {
  grid-area: catalyst;
}

.war-room-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.war-room-list-item {
  border: 1px solid #e8dbc9;
  border-radius: 8px;
  background: #fffefb;
  padding: 8px;
  cursor: pointer;
}

.war-room-list-item.active {
  border-color: #d97815;
  box-shadow: inset 0 0 0 1px #d97815;
  background: #fff5e8;
}

.war-room-softspot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.war-room-symbol {
  font-weight: 700;
  color: #1f2937;
}

.war-room-score {
  font-size: 12px;
  color: #7c4f22;
}

.war-room-reason-chips {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.war-room-chip {
  font-size: 11px;
  border: 1px solid #e5cfaf;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff8ec;
  color: #6d4a28;
}

.war-room-detail {
  margin-top: 8px;
  border: 1px dashed #dfc6a5;
  border-radius: 8px;
  background: #fffaf1;
  padding: 9px;
  min-height: 82px;
  font-size: 13px;
}

.war-room-metric-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.war-room-range-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.war-room-range-btn {
  width: auto;
  min-width: 56px;
  padding: 6px 8px;
  font-size: 11px;
  border: 1px solid #dec59f;
  background: linear-gradient(130deg, #fffaf1, #ffeecf);
  color: #593d1f;
}

.war-room-range-btn.active {
  border-color: transparent;
  background: linear-gradient(130deg, #2f1506, #8f3c0f 62%, #e79027);
  color: #fff7e8;
}

.war-room-metric-btn {
  width: auto;
  min-width: 96px;
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid #dec59f;
  background: linear-gradient(130deg, #fff6e6, #ffe9c2);
  color: #593d1f;
}

.war-room-metric-btn.active {
  border-color: transparent;
  background: linear-gradient(130deg, #2f1506, #8f3c0f 62%, #e79027);
  color: #fff7e8;
}

.war-room-timeline-stack {
  position: relative;
  border: 1px solid #e8dbc9;
  border-radius: 8px;
  background: #fffdf8;
  min-height: 300px;
  overflow: hidden;
}

.war-room-timeline-rows {
  position: relative;
  display: grid;
}

.war-room-timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  border-bottom: 1px solid #f0e6d7;
  min-height: 72px;
}

.war-room-timeline-row:last-child {
  border-bottom: none;
}

.war-room-timeline-row.active {
  background: #fff5e8;
}

.war-room-timeline-label {
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #6b4a26;
  border-right: 1px solid #f0e6d7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.war-room-timeline-canvas-wrap {
  position: relative;
}

.war-room-timeline-canvas {
  width: 100%;
  height: 70px;
  display: block;
}

.war-room-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.war-room-crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(126, 40, 4, 0.7);
  pointer-events: none;
}

.war-room-crosshair-tip {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  background: rgba(39, 16, 5, 0.9);
  color: #fff8ed;
  font-size: 11px;
  border-radius: 5px;
  padding: 3px 6px;
  pointer-events: none;
  white-space: nowrap;
}

.war-room-brush {
  position: absolute;
  top: 0;
  bottom: 0;
  border: 1px solid rgba(213, 113, 28, 0.8);
  background: rgba(255, 187, 120, 0.22);
  pointer-events: none;
}

.war-room-event-pins {
  position: absolute;
  top: 0;
  left: 88px;
  right: 0;
  height: 30px;
  pointer-events: none;
}

.war-room-event-pin {
  position: absolute;
  top: 2px;
  min-width: 26px;
  height: 18px;
  border: 1px solid #7a3411;
  border-radius: 4px;
  background: #fb923c;
  box-shadow: 0 0 0 1px rgba(255, 248, 235, 0.5);
  transform: translateX(-50%);
  pointer-events: auto;
  cursor: pointer;
  padding: 0 4px;
  color: #3b1d0a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.war-room-event-pin.active {
  background: #ea580c;
  color: #fff7ed;
}

.war-room-event-tooltip {
  position: absolute;
  top: 22px;
  transform: translateX(-50%);
  border: 1px solid #7a3411;
  border-radius: 6px;
  background: rgba(43, 21, 8, 0.96);
  color: #fff7ed;
  font-size: 11px;
  line-height: 1.25;
  padding: 4px 7px;
  pointer-events: none;
  white-space: nowrap;
  max-width: min(560px, 92%);
  overflow: hidden;
  text-overflow: ellipsis;
}

.war-room-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.war-room-controls label {
  margin: 0;
  font-size: 12px;
}

.war-room-controls select {
  width: auto;
  min-width: 100px;
}

.war-room-compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.war-room-compare-toggle input {
  width: auto;
}

.war-room-corr-wrap {
  max-height: 220px;
}

.war-room-corr-cell {
  text-align: right;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}

.war-room-regime {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.war-room-regime-dial {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 1px solid #dfc5a5;
  background:
    conic-gradient(from -90deg, #f97316 var(--risk-angle, 0deg), #fde6cf 0deg);
  position: relative;
  display: grid;
  place-items: center;
}

.war-room-regime-dial::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: #fffdf7;
  border: 1px solid #eadac5;
}

.war-room-regime-dial-fill {
  display: none;
}

.war-room-regime-dial strong {
  position: relative;
  z-index: 1;
  font-size: 18px;
  color: #7a3d08;
}

.war-room-event-meta p {
  margin-bottom: 6px;
}

.war-room-positions-table td,
.war-room-positions-table th {
  font-size: 12px;
}

.war-room-positions-table td {
  vertical-align: middle;
}

.war-room-positions-table .sell-working-pill {
  border: 1px solid #d6b995;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff5e8;
  color: #7a4b1c;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1180px) {
  .war-room-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "strike"
      "timeline"
      "relationships"
      "catalyst";
  }

  .war-room-confirm-grid {
    grid-template-columns: 1fr;
  }
}
