body {
  margin: 0;
  background: #0a0f18;
  color: #e8eef7;
  font-family: Arial, Helvetica, sans-serif;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

h1, h2, h3 {
  margin-top: 0;
}

.panel {
  background: #111827;
  border: 1px solid #233047;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

textarea,
input,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e8eef7;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button {
  background: #2563eb;
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  margin-right: 8px;
}

button:hover {
  background: #1d4ed8;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.status {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #172033;
  border: 1px solid #2b3a55;
}

.status.loading {
  border-color: #3b82f6;
}

.status.success {
  border-color: #22c55e;
}

.status.error {
  border-color: #ef4444;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1e3a8a;
  font-size: 12px;
}

.summary-card h3 {
  margin-bottom: 6px;
}

.summary-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric {
  background: #0b1220;
  border: 1px solid #243147;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.metric-label {
  font-size: 12px;
  opacity: 0.8;
}

.metric-value {
  font-size: 28px;
  font-weight: bold;
  margin-top: 6px;
}

.feed-row,
.timeline-row {
  padding: 12px;
  border-radius: 12px;
  background: #0b1220;
  border: 1px solid #233047;
  margin-bottom: 10px;
}

.feed-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 12px;
  opacity: 0.86;
}

.feed-name {
  font-weight: bold;
}

.feed-role,
.feed-time,
.timeline-time {
  color: #93c5fd;
}

.feed-text,
.timeline-event {
  line-height: 1.4;
}

.empty {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .monitor-grid {
    grid-template-columns: 1fr;
  }
}

.monitor-panel {
  background: #000;
  padding: 10px;
  border-radius: 8px;
}

.vitals {
  display: flex;
  gap: 20px;
  color: #0f0;
  font-family: monospace;
  margin-bottom: 10px;
}

canvas {
  display: block;
  margin-bottom: 8px;
  background: #000;
  border: 1px solid #222;
}

/* =========================================================
   AVA REAL CLINICAL THEATER
   Canvas is the sole visual authority for room + actors.
   Legacy DOM placeholder scene elements remain mounted only
   for compatibility, but are never visually rendered.
   ========================================================= */

.avatar-stage {
  display: none !important;
}

.actor-layer,
.actor-entity,
.bed,
.monitor-stand,
.iv-pole,
.ekg-cart,
.lab-console,
.med-cart,
.oxygen-tank,
.object-hotspot,
.room-grid,
.floor-shadow,
.wall-label,
.alarm-light {
  display: none !important;
}

/* AVA Real Canvas must remain visible and never intercept UI input */
#avaRealCanvas,
.ava-real-canvas {
  display: block !important;
  pointer-events: none !important;
}
