/**
 * TSF-PRM-001 — Platform Runtime Management System
 * Runtime Control Room styles. Shell geometry unchanged.
 */

.prm-workspace {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 0.85rem 1rem 1.35rem;
  color: rgba(220, 226, 235, 0.92);
}

.prm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.prm-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(145, 165, 190, 0.7);
}

.prm-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(235, 240, 248, 0.96);
}

.prm-lead {
  margin: 0.35rem 0 0;
  max-width: 44rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(160, 172, 190, 0.82);
}

.prm-chip {
  flex-shrink: 0;
  margin-top: 0.2rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(120, 170, 220, 0.28);
  border-radius: 2px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(180, 205, 230, 0.88);
  background: rgba(40, 70, 110, 0.25);
}

.prm-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(190, 200, 215, 0.88);
}

.prm-command-bar,
.prm-panel {
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(16, 22, 32, 0.55);
}

.prm-panel-lead,
.prm-note {
  margin: 0 0 0.65rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(150, 162, 180, 0.78);
}

.prm-note {
  margin: 0.55rem 0 0;
}

.prm-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.prm-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(220, 228, 238, 0.9);
  font-size: 0.72rem;
  padding: 0.4rem 0.65rem;
  cursor: default;
  opacity: 0.72;
}

.prm-btn--primary {
  border-color: rgba(90, 150, 210, 0.45);
  background: rgba(50, 90, 140, 0.35);
  color: rgba(210, 230, 250, 0.95);
}

.prm-btn--danger {
  border-color: rgba(180, 90, 90, 0.4);
  background: rgba(90, 40, 40, 0.35);
}

.prm-table-wrap {
  overflow: auto;
}

.prm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.prm-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(145, 160, 180, 0.75);
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prm-table td {
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.prm-row {
  cursor: pointer;
}

.prm-row:hover,
.prm-row.is-selected {
  background: rgba(70, 110, 160, 0.12);
}

.prm-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: rgba(145, 160, 180, 0.72);
}

.prm-state {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
  background: rgba(160, 170, 180, 0.5);
}

.prm-state.is-ok {
  background: rgba(90, 180, 120, 0.9);
}

.prm-state.is-fail {
  background: rgba(210, 90, 90, 0.95);
}

.prm-state.is-watch {
  background: rgba(210, 170, 70, 0.95);
}

.prm-actions-cell {
  white-space: nowrap;
}

.prm-mini {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(180, 190, 205, 0.75);
  font-size: 0.62rem;
  padding: 0.18rem 0.35rem;
  margin-right: 0.2rem;
  border-radius: 2px;
  cursor: default;
  opacity: 0.65;
}

.prm-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.prm-decision {
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  background: rgba(12, 16, 24, 0.45);
  cursor: pointer;
}

.prm-decision.is-selected,
.prm-decision:hover {
  border-color: rgba(100, 150, 200, 0.35);
}

.prm-decision.critical {
  border-color: rgba(200, 100, 90, 0.35);
}

.prm-decision.urgent {
  border-color: rgba(210, 160, 70, 0.35);
}

.prm-decision header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.prm-decision h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.prm-sev {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(170, 180, 195, 0.7);
}

.prm-decision p {
  margin: 0 0 0.65rem;
  font-size: 0.74rem;
  line-height: 1.4;
  color: rgba(155, 168, 185, 0.82);
}

.prm-panel--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.prm-facts,
.prm-sequence {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.74rem;
  line-height: 1.55;
  color: rgba(160, 172, 188, 0.85);
}

.prm-facts em {
  font-style: normal;
  color: rgba(190, 205, 220, 0.9);
  margin-right: 0.35rem;
}

@media (max-width: 980px) {
  .prm-decision-grid,
  .prm-panel--split {
    grid-template-columns: 1fr;
  }
}
