/* ============================================================
   CrisisOps · base layout, top bar, bottom strip, theme tokens
   palantir-style flat minimalism — no glows, no gradients
   ============================================================ */

:root {
  /* pure black, neutral greys for cards */
  --bg-0: #000000;
  --bg-1: #0a0a0c;
  --bg-2: #131318;
  --bg-3: #1c1c24;
  --line:   rgba(220, 230, 240, 0.05);
  --line-2: rgba(220, 230, 240, 0.11);
  --line-3: rgba(220, 230, 240, 0.20);

  /* text */
  --text-0: #e8eaee;
  --text-1: #b4b8c0;
  --text-2: #74787f;
  --text-3: #4a4d54;

  /* status — flat, no glow */
  --amber:  #e0a93a;
  --yellow: #f5cc40;
  --orange: #d97a2a;
  --green:  #6cb371;
  --red:    #d04d4d;
  --blue:   #4ea6d8;

  --amber-dim:  rgba(224, 169,  58, 0.10);
  --yellow-dim: rgba(245, 204,  64, 0.10);
  --green-dim:  rgba(108, 179, 113, 0.12);
  --red-dim:    rgba(208,  77,  77, 0.12);
  --blue-dim:   rgba( 78, 166, 216, 0.12);

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ---------- shell grid ---------- */

.shell {
  display: grid;
  grid-template-rows: 52px 1fr;
  grid-template-columns: 320px 1fr 360px;
  grid-template-areas:
    "top    top    top"
    "left   map    right";
  height: 100vh; width: 100vw;
}

.top    { grid-area: top; }
.left   { grid-area: left; }
.map    { grid-area: map; }
.right  { grid-area: right; }

/* ---------- top bar (flat) ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.top-left, .top-center, .top-right {
  display: flex; align-items: center; gap: 14px;
}

.scenario-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-0);
}

.tier-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--amber);
  color: #0c0a04;
  letter-spacing: 0.12em;
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.step-counter {
  font-size: 13px;
  color: var(--text-1);
}
.step-counter b { color: var(--amber); font-weight: 700; }

.btn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-1);
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 14px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.btn:hover { border-color: var(--line-3); color: var(--text-0); }
.btn.primary { border-color: var(--amber); color: var(--amber); }
.btn.primary.active { background: var(--amber); color: #0c0a04; }

/* ---------- shared panel chrome ---------- */

.panel {
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-2);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header .count { color: var(--text-3); font-size: 11px; }

.panel-body {
  flex: 1;
  overflow-y: auto;
  /* hide scrollbar entirely (still scrollable via wheel/trackpad) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.panel-body::-webkit-scrollbar { width: 0; height: 0; display: none; }

.left  { border-right: 1px solid var(--line-2); }
.right { border-left:  1px solid var(--line-2); }
