/* ========================================================================
 * War Room · consolidated feedback hub
 * ====================================================================== */

/* HTML `hidden` attribute · forzar over los display:flex/inline-block de
 * abajo. Sin esto, los modals (.war-modal con display:flex) y otros
 * elementos con display custom no se ocultan cuando se les pone [hidden]. */
[hidden] { display: none !important; }

.war-body { overflow: auto; min-height: 100vh; }
.war-body main { padding-bottom: 80px; }

.war-stage {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.war-stage h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0 8px;
  background: linear-gradient(135deg, #fff 0%, #FFB454 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.war-stage .stage-sub {
  color: var(--lp-muted, #9aa3b2);
  margin: 0 0 28px;
  font-size: 15px;
  max-width: 760px;
}

/* --------- Session picker --------- */
.war-session-picker {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.war-session-picker label {
  color: var(--lp-muted, #9aa3b2);
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 240px;
}
.war-session-picker select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 14px;
}
.war-tier-stamp {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid #6b7280;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(0,0,0,0.3);
}

/* --------- Empty state --------- */
.war-empty {
  text-align: center;
  padding: 80px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
}
.war-empty .emoji { font-size: 56px; margin-bottom: 16px; }
.war-empty h2 { color: #fff; margin: 0 0 8px; }
.war-empty p { color: var(--lp-muted, #9aa3b2); margin: 6px 0; }

/* ========================================================================
 * SCORE HERO
 * ====================================================================== */
.war-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,180,84,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,180,84,0.15);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 24px;
}
@media (max-width: 720px) {
  .war-hero { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .war-hero-stats { justify-content: center; }
}

.war-gauge {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}
.war-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);  /* arranca en top */
}
.gauge-track {
  fill: none;
  stroke: rgba(255,255,255,0.07);
  stroke-width: 12;
}
.gauge-fill {
  fill: none;
  stroke: #6b7280;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dasharray 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), stroke 0.4s ease;
}
.war-gauge-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.war-score-num {
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.war-score-label {
  font-size: 12px;
  color: var(--lp-muted, #9aa3b2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
.war-delta {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.war-delta.delta-up { background: rgba(16,185,129,0.15); color: #34d399; }
.war-delta.delta-down { background: rgba(239,68,68,0.15); color: #f87171; }

.war-hero-meta { min-width: 0; }
.war-tier {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  color: #6b7280;
}
.war-tier-sub {
  color: var(--lp-muted, #9aa3b2);
  font-size: 14px;
  margin-bottom: 20px;
}
.war-hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.war-stat {
  display: flex;
  flex-direction: column;
}
.war-stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.war-stat-lbl {
  font-size: 11px;
  color: var(--lp-muted, #9aa3b2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* ========================================================================
 * CARDS · synthesis, dimensions, quest log
 * ====================================================================== */
.war-card {
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  background: var(--lp-glass, rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
}
.war-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.war-section-head h2 {
  margin: 0;
  font-size: 20px;
  color: #fff;
  font-weight: 700;
}
.war-section-sub {
  color: var(--lp-muted, #9aa3b2);
  font-size: 13px;
  margin: 6px 0 0;
  max-width: 580px;
}

/* ========================================================================
 * DIMENSIONS · mini-meters
 * ====================================================================== */
.war-dims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.war-dim {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s ease;
}
.war-dim-approved { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04); }
.war-dim-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.war-dim-num {
  font-weight: 700;
  font-size: 11px;
  color: var(--lp-muted, #9aa3b2);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 32px;
  text-align: center;
}
.war-dim-label {
  flex: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.war-dim-score {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  min-width: 28px;
  text-align: right;
}
.war-dim-bar {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}
.war-dim-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6b7280 0%, #FFB454 100%);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.war-dim-approved .war-dim-bar-fill {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

/* ========================================================================
 * SYNTHESIS
 * ====================================================================== */
.war-synth-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--lp-muted, #9aa3b2);
}
.war-synth-empty .emoji { font-size: 40px; margin-bottom: 12px; }

.war-synth-block {
  border-left: 3px solid transparent;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 0 10px 10px 0;
}
.synth-block-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--lp-muted, #9aa3b2);
  margin-bottom: 6px;
}
.synth-block-body {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.55;
}
.synth-agreement { border-left-color: #10b981; }
.synth-agreement .synth-block-label { color: #34d399; }
.synth-gap { border-left-color: #f59e0b; }
.synth-gap .synth-block-label { color: #fbbf24; }
.synth-disagreement { border-left-color: #8b5cf6; }
.synth-disagreement .synth-block-label { color: #a78bfa; }
.synth-praise { border-left-color: #FFB454; }
.synth-praise .synth-block-label { color: #FFB454; }

.synth-dis-item {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.synth-dis-item:first-child { border-top: 0; padding-top: 0; }
.synth-dis-point {
  font-weight: 600;
  color: #fff;
  font-size: 13px;
  margin-bottom: 6px;
}
.synth-dis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) {
  .synth-dis-row { grid-template-columns: 1fr; }
}
.synth-dis-side {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 8px 10px;
}
.synth-dis-side p {
  margin: 4px 0 0;
  color: #d1d5db;
  font-size: 13px;
  line-height: 1.4;
}
.synth-dis-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #a78bfa;
}

.war-synth-foot {
  margin-top: 10px;
  color: var(--lp-muted, #9aa3b2);
  font-size: 11px;
  text-align: right;
  font-style: italic;
}

/* ========================================================================
 * QUEST LOG
 * ====================================================================== */
.war-quest-empty {
  text-align: center;
  padding: 30px 20px;
}
.war-quests {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.war-quest {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-left-width: 4px;
  transition: opacity 0.2s ease;
}
.war-quest-max { border-left-color: #ef4444; }
.war-quest-high { border-left-color: #f59e0b; }
.war-quest-med { border-left-color: #3b82f6; }
.war-quest-done { border-left-color: #10b981; opacity: 0.55; }

.war-quest-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.war-quest-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 999px;
}
.badge-max { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-high { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-med { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-done { background: rgba(16,185,129,0.15); color: #34d399; }

.war-quest-sources {
  font-size: 11px;
  color: var(--lp-muted, #9aa3b2);
}
.war-quest-text {
  margin: 0 0 10px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.55;
}
.war-quest-resolved .war-quest-text {
  text-decoration: line-through;
  color: var(--lp-muted, #9aa3b2);
}
.war-quest-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--lp-muted, #9aa3b2);
  cursor: pointer;
  user-select: none;
}
.war-quest-check input[type="checkbox"] {
  accent-color: #10b981;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* --------- Synthesize button override --------- */
#btn-synthesize {
  white-space: nowrap;
}
#btn-synthesize:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ========================================================================
 * LOBBY TILES · 4 lentes especializadas
 * ====================================================================== */
.war-tiles-section {
  margin-bottom: 32px;
}
.war-tiles-head {
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.war-tiles-sub {
  color: var(--lp-muted, #9aa3b2);
  margin: 0 0 20px;
  font-size: 14px;
  max-width: 720px;
}
.war-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.war-tile-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--lp-muted, #9aa3b2);
}
.war-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--tile-color, #FFB454);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}
.war-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--tile-color, transparent), transparent 65%);
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.war-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 24px color-mix(in srgb, var(--tile-color) 25%, transparent);
  border-color: color-mix(in srgb, var(--tile-color) 50%, transparent);
}
.war-tile:hover::before { opacity: 0.18; }

.war-tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.war-tile-emoji {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tile-color) 50%, transparent));
}
.war-tile-label {
  margin: 0;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
}
.war-tile-desc {
  margin: 0;
  font-size: 13px;
  color: var(--lp-muted, #9aa3b2);
  line-height: 1.5;
  min-height: 38px;
}
.war-tile-stats {
  display: flex;
  gap: 14px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.war-tile-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.war-tile-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--tile-color, #fff);
}
.war-tile-stat-empty .war-tile-stat-num { color: var(--lp-muted, #9aa3b2); font-weight: 400; }
.war-tile-stat-lbl {
  font-size: 10px;
  color: var(--lp-muted, #9aa3b2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.war-tile-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  color: var(--tile-color, #FFB454);
  font-weight: 600;
  font-size: 13px;
}
.war-tile-arrow {
  font-size: 18px;
  transition: transform 0.18s ease;
}
.war-tile:hover .war-tile-arrow { transform: translateX(3px); }

/* ========================================================================
 * SECTION SUBVIEW · pantalla dedicada por lente
 * ====================================================================== */
.war-section-view {
  margin-top: 12px;
}
.war-section-view[hidden] { display: none !important; }

.war-section-topbar {
  margin-bottom: 18px;
}
.war-section-back {
  background: transparent;
  border: 0;
  color: var(--lp-muted, #9aa3b2);
  font-size: 13px;
  padding: 4px 0;
  cursor: pointer;
  margin-bottom: 14px;
}
.war-section-back:hover { color: #fff; }
.war-section-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.war-section-emoji {
  font-size: 36px;
  line-height: 1;
}
.war-section-view h2 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
.war-section-score-pill {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,180,84,0.15);
  border: 1px solid rgba(255,180,84,0.4);
  color: #FFB454;
  font-weight: 700;
  font-size: 14px;
}
.war-section-subtitle {
  color: var(--lp-muted, #9aa3b2);
  margin: 0;
  font-size: 14px;
}
.war-section-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
#btn-section-evaluate:disabled { opacity: 0.6; cursor: progress; }

/* --- Evaluation card --- */
.war-section-eval-card { padding: 22px 24px; }
.war-eval-summary {
  font-size: 15px;
  color: #e5e7eb;
  line-height: 1.6;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid #FFB454;
  border-radius: 0 8px 8px 0;
  margin-bottom: 18px;
}
.war-eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 700px) {
  .war-eval-grid { grid-template-columns: 1fr; }
}
.war-eval-block {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}
.war-eval-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: #fff;
}
.eval-strengths { border-left: 3px solid #10b981; }
.eval-strengths h4 { color: #34d399; }
.eval-weaknesses { border-left: 3px solid #ef4444; }
.eval-weaknesses h4 { color: #f87171; }
.eval-recs { border-left: 3px solid #FFB454; }
.eval-recs h4 { color: #FFB454; }
.eval-metrics { border-left: 3px solid #3b82f6; margin-bottom: 16px; }
.eval-metrics h4 { color: #60a5fa; }
.war-eval-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.war-eval-block li {
  padding: 8px 10px;
  background: rgba(0,0,0,0.18);
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.55;
}
.war-eval-metric-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(0,0,0,0.18);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 13px;
  gap: 12px;
}
.war-eval-metric-key {
  color: var(--lp-muted, #9aa3b2);
  font-family: monospace;
  font-size: 12px;
}
.war-eval-metric-val {
  color: #fff;
  font-weight: 600;
  text-align: right;
}
.war-eval-foot {
  margin-top: 14px;
  font-style: italic;
  text-align: right;
}

/* --- Imports panel --- */
.war-imports-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.war-imports-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.war-imports-empty {
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}
.war-import-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.war-import-icon { font-size: 22px; line-height: 1; }
.war-import-info { flex: 1; min-width: 0; }
.war-import-name {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.war-import-meta { margin-top: 2px; }
.war-import-action {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--lp-muted, #9aa3b2);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.war-import-action:hover { background: rgba(255,255,255,0.08); color: #fff; }
.war-import-delete:hover { background: rgba(239,68,68,0.2); color: #f87171; border-color: rgba(239,68,68,0.4); }

/* --- Notes textarea --- */
.war-section-notes-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.55;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}
.war-section-notes-input:focus {
  outline: none;
  border-color: rgba(255,180,84,0.5);
  background: rgba(0,0,0,0.35);
}

.war-section-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
#btn-section-return-cockpit {
  font-size: 15px;
  padding: 12px 28px;
}
#btn-section-return-cockpit:disabled { opacity: 0.6; cursor: progress; }

/* ========================================================================
 * PEP TALK BANNER · motivational message
 * ====================================================================== */
.war-pep-talk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin: 0 0 24px;
  background: linear-gradient(135deg, rgba(255,180,84,0.12) 0%, rgba(245,158,11,0.06) 100%);
  border: 1px solid rgba(255,180,84,0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.war-pep-talk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,180,84,0.15), transparent 60%);
  pointer-events: none;
}
.war-pep-emoji {
  font-size: 28px;
  line-height: 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(255,180,84,0.5));
}
.war-pep-talk p {
  margin: 0;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.war-pep-talk strong { color: #FFB454; }
.war-pep-talk em { color: #f87171; font-style: normal; font-weight: 600; }

/* ========================================================================
 * IMPROVEMENTS · Plan de mejora con notes
 * ====================================================================== */
.war-imp-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--lp-muted, #9aa3b2);
}
.war-improvements {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.war-improvement {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-left-width: 4px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.war-imp-pending { border-left-color: #3b82f6; }
.war-imp-working { border-left-color: #FFB454; background: rgba(255,180,84,0.04); }
.war-imp-addressed { border-left-color: #10b981; opacity: 0.85; }
.war-imp-dismissed { border-left-color: #6b7280; opacity: 0.5; }

.war-imp-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.war-imp-cat-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 4px;
}
.cat-data_gap       { background: rgba(245,158,11,0.15); color: #fbbf24; }
.cat-narrative      { background: rgba(139,92,246,0.15); color: #a78bfa; }
.cat-validation     { background: rgba(20,184,166,0.15); color: #2dd4bf; }
.cat-metric         { background: rgba(59,130,246,0.15); color: #60a5fa; }
.cat-differentiation { background: rgba(236,72,153,0.15); color: #f472b6; }
.cat-risk           { background: rgba(239,68,68,0.15); color: #f87171; }

.war-imp-module {
  font-size: 11px;
  color: var(--lp-muted, #9aa3b2);
  text-decoration: none;
  padding: 3px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s ease;
}
.war-imp-module:hover { background: rgba(0,212,184,0.15); color: #00d4b8; }

.war-imp-status-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: auto;
}
.war-imp-status-pill.status-pending   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.war-imp-status-pill.status-working   { background: rgba(255,180,84,0.2); color: #FFB454; }
.war-imp-status-pill.status-addressed { background: rgba(16,185,129,0.15); color: #34d399; }
.war-imp-status-pill.status-dismissed { background: rgba(107,114,128,0.2); color: #9ca3af; }

.war-imp-text {
  margin: 0 0 12px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.55;
}

.war-imp-note-wrap { margin-bottom: 10px; }
.war-imp-note-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--lp-muted, #9aa3b2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.war-imp-note-status { transition: opacity 0.3s ease; }
.war-imp-note {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.25);
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  min-height: 50px;
  font-family: inherit;
}
.war-imp-note:focus {
  outline: none;
  border-color: rgba(255,180,84,0.5);
  background: rgba(0,0,0,0.35);
}

.war-imp-status-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.war-imp-status-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--lp-muted, #9aa3b2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.war-imp-status-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.war-imp-status-btn.active { background: rgba(255,180,84,0.2); border-color: rgba(255,180,84,0.5); color: #FFB454; }
.war-imp-status-btn.status-addressed.active { background: rgba(16,185,129,0.2); border-color: rgba(16,185,129,0.5); color: #34d399; }
.war-imp-status-btn.status-dismissed.active { background: rgba(107,114,128,0.25); border-color: rgba(107,114,128,0.5); color: #9ca3af; }

.war-imp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
#btn-return-cockpit {
  font-size: 14px;
  padding: 10px 20px;
  white-space: nowrap;
}
#btn-return-cockpit:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ========================================================================
 * INVESTOR-READY STAMP (Phase 3)
 * ====================================================================== */
.war-investor-stamp {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, #FFB454 0%, #f59e0b 100%);
  color: #1a1a1a;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 20px rgba(255, 180, 84, 0.6), 0 2px 8px rgba(0,0,0,0.4);
  white-space: nowrap;
  animation: investor-pulse 2.4s ease-in-out infinite;
}
@keyframes investor-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 180, 84, 0.6), 0 2px 8px rgba(0,0,0,0.4); }
  50%      { box-shadow: 0 0 32px rgba(255, 180, 84, 0.85), 0 2px 8px rgba(0,0,0,0.4); }
}

/* ========================================================================
 * QUEST ACTIONS (Phase 2 · ask advisor button)
 * ====================================================================== */
.war-quest-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.war-quest-ask {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.war-quest-ask:hover { background: rgba(139, 92, 246, 0.2); }

/* ========================================================================
 * TIMELINE (Phase 2)
 * ====================================================================== */
.war-timeline {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
}
.war-tl-round {
  flex: 0 0 auto;
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.war-tl-round-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #FFB454;
}
.war-tl-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.war-tl-score {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.war-tl-verdict {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.war-tl-war {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.war-tl-war-num {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}
.war-tl-war-lbl {
  font-size: 10px;
  color: var(--lp-muted, #9aa3b2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.war-tl-delta {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}
.war-tl-delta.delta-up { background: rgba(16,185,129,0.15); color: #34d399; }
.war-tl-delta.delta-down { background: rgba(239,68,68,0.15); color: #f87171; }
.war-tl-diff-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--lp-muted, #9aa3b2);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s ease;
}
.war-tl-diff-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ========================================================================
 * MODALS (Phase 2 · diff + ask advisor)
 * ====================================================================== */
.war-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.war-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.war-modal-card {
  position: relative;
  background: #0a0f1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
  max-width: 720px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.war-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: 0;
  color: var(--lp-muted, #9aa3b2);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.war-modal-close:hover { color: #fff; }
.war-modal-card h3 { margin-top: 0; color: #fff; }
.war-modal-card h4 {
  margin: 18px 0 10px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* --------- Diff content --------- */
.war-diff-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.war-diff-overall {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #fff;
}
.war-diff-overall-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.war-diff-overall.delta-up .war-diff-overall-pill { background: rgba(16,185,129,0.15); color: #34d399; }
.war-diff-overall.delta-down .war-diff-overall-pill { background: rgba(239,68,68,0.15); color: #f87171; }

.war-diff-panel-row {
  display: grid;
  grid-template-columns: 1fr 100px 60px 1.5fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 4px;
  font-size: 13px;
  align-items: center;
}
@media (max-width: 600px) {
  .war-diff-panel-row {
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 4px;
  }
}
.war-diff-panel-name { font-weight: 600; color: #fff; }
.war-diff-panel-scores { color: var(--lp-muted, #9aa3b2); font-family: monospace; }
.war-diff-panel-delta {
  font-weight: 700;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.war-diff-panel-delta.delta-up { background: rgba(16,185,129,0.15); color: #34d399; }
.war-diff-panel-delta.delta-down { background: rgba(239,68,68,0.15); color: #f87171; }
.war-diff-panel-verdict { font-size: 11px; color: var(--lp-muted, #9aa3b2); }

.war-diff-qlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.war-diff-qlist li {
  padding: 8px 12px;
  margin-bottom: 4px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.5;
}
.qs-addressed { color: #34d399; }
.qs-new       { color: #f87171; }
.qs-repeated  { color: #fbbf24; }

/* --------- Ask advisor modal --------- */
.war-ask-quote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid #a78bfa;
  background: rgba(139,92,246,0.06);
  color: #e5e7eb;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.war-ask-personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.war-ask-persona {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.war-ask-persona:hover {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.4);
  transform: translateY(-1px);
}
.war-ask-persona:disabled {
  opacity: 0.5;
  cursor: progress;
  transform: none;
}
.war-ask-emoji { font-size: 24px; }
.war-ask-name { font-weight: 700; font-size: 13px; }
.war-ask-role {
  font-size: 11px;
  color: var(--lp-muted, #9aa3b2);
  text-align: center;
}
.war-ask-status { margin-top: 12px; }
.war-ask-success {
  color: #34d399;
  font-weight: 600;
  font-size: 13px;
}
.war-ask-preview {
  margin-top: 8px;
  padding: 8px 12px;
  border-left: 2px solid rgba(255,255,255,0.15);
  color: #d1d5db;
  font-size: 12px;
  font-style: italic;
}

/* ========================================================================
 * SHARE controls (Phase 3)
 * ====================================================================== */
.war-share-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.war-share-controls #share-url-wrap {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
}
.war-share-controls #share-url {
  flex: 1;
  min-width: 260px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-family: monospace;
  font-size: 12px;
}
.war-share-revoke {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.4);
  color: #f87171;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.war-share-revoke:hover { background: rgba(239,68,68,0.2); }
#share-info { margin-top: 8px; }

/* ========================================================================
 * PUBLIC VIEW (Phase 3)
 * ====================================================================== */
.war-public-body main { padding-top: 0; }
.war-public-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.war-public-brand {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.war-public-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 180, 84, 0.12);
  border: 1px solid rgba(255, 180, 84, 0.4);
  color: #FFB454;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.war-public-foot {
  text-align: center;
  padding: 24px 0;
}
