/* PFD + flight controls panel */
.pfd-chassis { margin-top: 0; }
.pfd-frame { height: 480px; }
#pfdCanvas { width: 100%; height: 100%; display: block; position: relative; z-index: 2; }
@media (max-width: 520px) { .pfd-frame { height: auto; aspect-ratio: 1 / 1; } }

.sim-panel {
  width: 480px; max-width: 100%; box-sizing: border-box; margin-top: 10px;
  background: linear-gradient(175deg, #2a3441 0%, #1d252f 100%);
  border: 2px solid #3b4b57; border-radius: 10px; padding: 10px 12px;
  color: #cbd5e1; font-family: 'Inter', sans-serif; font-size: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  user-select: none;
}
.sim-head, .sim-row, .fcu-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sim-spacer { flex: 1; }
.sim-phase { font-weight: 700; letter-spacing: .6px; padding: 3px 9px; border-radius: 4px; background: #0b3a53; color: #7dd3fc; }
.sim-phase[data-phase="3"] { background: #14532d; color: #86efac; }
.sim-phase[data-phase="1"], .sim-phase[data-phase="2"] { background: #3f3a0b; color: #fde047; }
.sim-phase[data-phase="4"], .sim-phase[data-phase="5"] { background: #4a2b0b; color: #fdba74; }
.sim-phase[data-phase="6"] { background: #5b1414; color: #fca5a5; }
.sim-clock { font-family: 'Share Tech Mono', monospace; font-size: 14px; color: #e2e8f0; }
.sim-scale { display: flex; gap: 3px; }
.sim-btn {
  background: #334155; color: #e2e8f0; border: 1px solid #475569; border-radius: 5px;
  padding: 4px 8px; font-size: 11px; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.sim-btn:hover { background: #475569; }
.sim-btn.active, .sim-btn.on { background: #0f766e; border-color: #14b8a6; color: #fff; }
.sim-toga { background: #7c2d12; border-color: #ea580c; color: #fff; }
.sim-ga { background: #7f1d1d; border-color: #ef4444; color: #fff; }
.sim-msg { min-height: 16px; color: #fbbf24; font-weight: 600; margin-bottom: 6px; }
.fcu { background: #11171f; border: 1px solid #2d3948; border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.fcu-title { font-size: 10px; letter-spacing: 1px; color: #64748b; margin-bottom: 4px; font-weight: 700; }
.fcu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.fcu-cell { display: flex; flex-direction: column; gap: 3px; }
.fcu-cell label { font-size: 10px; color: #94a3b8; font-weight: 700; }
.fcu-cell input, .sim-wind input {
  width: 100%; box-sizing: border-box; background: #05080a; color: #fb923c; border: 1px solid #334155;
  border-radius: 4px; padding: 4px 5px; font-family: 'Share Tech Mono', monospace; font-size: 14px;
}
.sim-wind input { width: 54px; }
.fcu-btns { display: flex; gap: 3px; }
.fcu-btns .sim-btn { flex: 1; padding: 3px 2px; font-size: 10px; }
.sim-info { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: #94a3b8; margin-bottom: 8px; }
.sim-info b { color: #e2e8f0; font-family: 'Share Tech Mono', monospace; font-size: 12px; }
.sim-wind { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: #94a3b8; font-size: 11px; }
@media (max-width: 520px) { .sim-panel { width: 100%; } .fcu-grid { grid-template-columns: repeat(2, 1fr); } }
