/* ============================================================
   CrisisOps · left + right panels — flat, no glows
   ============================================================ */

/* ---------- left: reports feed ---------- */

.reports-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  padding: 10px 12px;
  font-family: var(--mono);
  animation: slide-in 0.25s ease-out;
}

.report-card[data-state="verified"] { border-left-color: var(--green); }
.report-card[data-state="false"]    { border-left-color: var(--red); opacity: 0.55; }

@keyframes slide-in {
  from { transform: translateX(-12px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.rc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rc-incident {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-0);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rc-incident .glyph { color: var(--amber); font-size: 13px; }
.report-card[data-state="verified"] .rc-incident .glyph { color: var(--green); }
.report-card[data-state="false"]    .rc-incident .glyph { color: var(--red); }

.rc-id {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.rc-meta {
  font-size: 11px;
  color: var(--text-2);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.rc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.sev-bar { display: flex; gap: 2px; }
.sev-bar .cell {
  width: 10px; height: 6px;
  background: var(--line-2);
}
.sev-bar .cell.on { background: var(--amber); }
.report-card[data-state="verified"] .sev-bar .cell.on { background: var(--green); }
.report-card[data-state="false"]    .sev-bar .cell.on { background: var(--red); }

.sev-label {
  font-size: 10px;
  color: var(--text-2);
  margin-left: 8px;
  letter-spacing: 0.1em;
}

.pill {
  font-size: 10px;
  padding: 3px 7px;
  letter-spacing: 0.12em;
  font-weight: 700;
  border: 1px solid var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}
.report-card[data-state="verified"] .pill {
  border-color: var(--green); color: var(--green); background: var(--green-dim);
}
.report-card[data-state="false"] .pill {
  border-color: var(--red); color: var(--red); background: var(--red-dim);
}

/* ---------- left: units ---------- */

.units-block {
  border-top: 1px solid var(--line);
  padding: 14px 16px 16px;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.unit-chip {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.unit-chip[data-state="deployed"] {
  border-color: var(--blue);
  background: var(--blue-dim);
}

.unit-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.05em;
}
.unit-chip[data-state="deployed"] .unit-icon {
  border-color: var(--blue);
  color: var(--blue);
}

.unit-name {
  font-size: 11px;
  color: var(--text-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.unit-chip[data-state="deployed"] .unit-name { color: var(--blue); }

/* ---------- right: action log ---------- */

/* the right panel is a flex column. log-shell must claim the
   remaining space and itself be a flex column so the score block
   can pin to the bottom while the log scrolls. min-height:0 is
   the magic that lets nested flex items actually scroll. */
.log-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.log-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  background: var(--bg-0);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.log-body::-webkit-scrollbar { width: 0; height: 0; display: none; }

.log-line {
  display: grid;
  grid-template-columns: 56px 1fr 60px;
  gap: 8px;
  color: var(--text-1);
  white-space: nowrap;
  animation: log-in 0.18s ease-out;
}
@keyframes log-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.log-line .ts    { color: var(--text-3); }
.log-line .verb  { color: var(--text-0); overflow: hidden; text-overflow: ellipsis; }
.log-line .delta { text-align: right; color: var(--text-2); }

.log-line.pos .delta { color: var(--green); }
.log-line.neg .delta { color: var(--red); }
.log-line.evt        { color: var(--amber); }
.log-line.evt .verb  { color: var(--amber); }
.log-line.evt .delta { color: var(--orange); }
.log-line.star .delta::after { content: " ★"; color: var(--amber); }

/* ---------- right: next action card ---------- */

.next-action {
  border-top: 1px solid var(--line-2);
  padding: 14px 16px;
  background: var(--bg-2);
}

.na-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--amber);
  text-transform: uppercase;
}

.na-verb {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--text-0);
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.na-detail {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-1);
  margin-top: 4px;
}

.na-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.05em;
}
.na-meta span b { color: var(--text-1); font-weight: 600; }

/* ---------- right: score meter ---------- */

.score-block {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-1);
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.score-row .value {
  color: var(--amber);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.score-bar {
  height: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.score-fill {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--yellow);
  transition: right 0.5s cubic-bezier(.2,.8,.2,1);
}
