/* Simulation page (step 2): fits the shared app bar on top of the simulation's own toolbar.
   Loaded after simulation/css/sim.css and app/shell.css. */
:root { --top-h: 142px; }
.topbar { display: flex; flex-direction: column; }
.topbar .ab { position: static; flex: none; height: 52px; border-bottom: 1px solid var(--line); background: transparent; backdrop-filter: none; }
.tb-row.sim-tools { height: 48px; flex: none; }
.tb-row.stats { height: 42px; flex: none; }
.tb-row.stats .btn { white-space: nowrap; text-decoration: none; }
.sim-tools .tabs { flex: 1; }
.end-btn { white-space: nowrap; color: #1a0c00 !important; background: linear-gradient(90deg, #ffd27a, #ff8a5c) !important; border-color: transparent !important; }
@media (max-width: 1250px) { .end-btn span { display: none; } }
@media (max-width: 760px) {
  :root { --top-h: 186px; }
  .tb-row.sim-tools { flex-wrap: wrap; height: 92px; align-content: center; row-gap: 4px; padding: 0 10px; }
  .sim-tools .tabs { order: 3; flex-basis: 100%; }
  .sim-tools .clock { margin-right: auto; text-align: left; }
  .warp-cap { display: none; }
}

/* Mission Control: live status (simulation/js/view-ops.js) */
.ops-live { margin-bottom: 12px; border-color: rgba(76,195,255,.35); }
.live-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.live-state { font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); }
.live-state.run { color: var(--good); border-color: rgba(61,220,132,.55); background: rgba(61,220,132,.1); animation: live-pulse 1.4s ease-in-out infinite; }
.live-state.wait { color: var(--warn); border-color: rgba(255,194,75,.55); background: rgba(255,194,75,.08); }
.live-state.done { color: var(--accent); border-color: rgba(76,195,255,.55); }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 4px rgba(61,220,132,.12); } }
.live-date { font-size: 18px; font-weight: 600; }
.live-year { color: var(--muted); margin-left: auto; }
.live-year b { color: var(--text); font-size: 16px; }
.live-bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; margin: 10px 0 4px; }
.live-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2b8cff, #23c6d8); transition: width .2s linear; }
.live-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
.sat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sat-chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); }
.sat-chip.ok { border-color: rgba(61,220,132,.5); } .sat-chip.ok b { color: var(--good); }
.sat-chip.warn { border-color: rgba(255,194,75,.6); color: var(--warn); }
.sat-chip.lost { border-color: rgba(255,93,108,.6); color: var(--fail); }
.live-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12.5px; }
.live-feed li { padding: 3px 8px; border-radius: 6px; color: var(--text-2); border-left: 3px solid var(--line-strong); background: rgba(255,255,255,.02); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-feed li .mono { color: var(--muted); margin-right: 6px; }
.live-feed li.bad { border-left-color: var(--fail); color: #ffc9cf; }
.live-feed li.good { border-left-color: var(--good); }
.live-feed li.fresh { animation: live-fresh 1s ease-out; }
@keyframes live-fresh { from { background: rgba(76,195,255,.25); } }
.kpi .trend { font-family: var(--mono); font-size: 11.5px; }
.kpi .trend.up { color: var(--good); } .kpi .trend.down { color: var(--fail); }
@media (max-width: 900px) { .live-cols { grid-template-columns: minmax(0, 1fr); } }
