/* Training panel and key highlighting */
.train-pane {
  width: 340px; max-width: 100%; box-sizing: border-box; align-self: flex-start;
  background: linear-gradient(175deg, #1f2937 0%, #151b24 100%);
  border: 2px solid #3b4b57; border-radius: 10px; padding: 12px;
  color: #cbd5e1; font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0,0,0,.6);
  max-height: calc(100vh - 90px); overflow-y: auto; position: sticky; top: 64px;
}
.train-pane.hidden { display: none !important; }
.tut-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tut-title { font-weight: 700; letter-spacing: .5px; color: #f8fafc; font-size: 15px; }
.tut-x { background: transparent; border: 0; color: #94a3b8; cursor: pointer; font-size: 16px; }
.tut-intro { margin: 0 0 10px; color: #94a3b8; }
.tut-card { background: #0f141b; border: 1px solid #2d3948; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.tut-card.step { border-color: #0e7490; }
.tut-card.step.ok { border-color: #16a34a; background: #0b1f14; }
.tut-card.done { border-color: #16a34a; }
.tut-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.tut-level { font-size: 10px; color: #7dd3fc; text-transform: uppercase; letter-spacing: .5px; }
.tut-desc { color: #94a3b8; margin: 4px 0 8px; font-size: 12px; }
.tut-bar { height: 5px; background: #1e293b; border-radius: 3px; overflow: hidden; margin: 6px 0 8px; }
.tut-bar i { display: block; height: 100%; background: #14b8a6; }
.tut-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.tut-count { color: #64748b; font-size: 11px; margin-left: auto; }
.tut-btn { background: #334155; color: #e2e8f0; border: 1px solid #475569; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.tut-btn:hover { background: #475569; }
.tut-btn.primary { background: #0f766e; border-color: #14b8a6; color: #fff; }
.tut-btn.link { background: transparent; border-color: transparent; color: #7dd3fc; padding: 4px 2px; }
.tut-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tut-lname { font-weight: 600; color: #e2e8f0; }
.tut-step-n { font-size: 11px; color: #7dd3fc; text-transform: uppercase; letter-spacing: .5px; }
.tut-step-title { font-weight: 700; color: #f8fafc; font-size: 14px; margin: 2px 0 6px; }
.tut-instr b { color: #fbbf24; font-weight: 700; }
.tut-why { margin-top: 8px; color: #94a3b8; font-size: 12px; }
.tut-why summary { cursor: pointer; color: #7dd3fc; }
.tut-why p { margin: 6px 0 0; }
.tut-hint { margin-top: 8px; padding: 6px 8px; border-left: 3px solid #f59e0b; background: #2a2110; color: #fcd34d; font-size: 12px; }
.tut-steps { margin: 6px 0 0; padding-left: 20px; color: #64748b; font-size: 12px; }
.tut-steps li { cursor: pointer; padding: 1px 0; }
.tut-steps li.done { color: #4ade80; }
.tut-steps li.cur { color: #f8fafc; font-weight: 700; }

/* highlight of the key to press */
.tutor-target {
  outline: 3px solid #f59e0b !important; outline-offset: 2px;
  box-shadow: 0 0 14px 4px rgba(245, 158, 11, .85) !important;
  animation: tutPulse 1.2s ease-in-out infinite;
  position: relative; z-index: 5;
}
@keyframes tutPulse { 0%,100% { box-shadow: 0 0 6px 1px rgba(245,158,11,.5); } 50% { box-shadow: 0 0 18px 6px rgba(245,158,11,.95); } }
@media (max-width: 820px) { .train-pane { width: 100%; position: static; max-height: none; } }

/* Flights modal and keyboard help */
.simbrief-modal-box h4 { margin: 14px 0 6px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #7dd3fc; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.fl-card { text-align: left; background: #0f141b; border: 1px solid #2d3948; border-radius: 8px; padding: 8px 10px; color: #e2e8f0; cursor: pointer; display: flex; flex-direction: column; gap: 3px; font-family: inherit; }
.fl-card:hover { border-color: #14b8a6; }
.fl-card span { color: #94a3b8; font-size: 11px; }
.fl-slot { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #1e293b; flex-wrap: wrap; }
.fl-slot-n { font-weight: 700; min-width: 48px; }
.fl-slot-i { flex: 1; color: #94a3b8; font-size: 12px; min-width: 160px; }
.fl-row { display: flex; gap: 8px; margin: 6px 0; align-items: center; flex-wrap: wrap; }
.fl-row input { flex: 1; min-width: 160px; background: #05080a; color: #e2e8f0; border: 1px solid #334155; border-radius: 4px; padding: 5px 7px; font-size: 12px; }
.fl-file { display: inline-block; }
.fl-toast { min-height: 18px; margin-top: 8px; color: #fbbf24; font-size: 12px; }
.help-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #cbd5e1; }
.help-table td { padding: 5px 4px; border-bottom: 1px solid #1e293b; vertical-align: top; }
.help-table td:first-child { white-space: nowrap; padding-right: 14px; }
kbd { background: #1e293b; border: 1px solid #475569; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 11px; font-family: 'Share Tech Mono', monospace; color: #f1f5f9; }
.help-note { color: #94a3b8; font-size: 12px; margin-top: 10px; }

/* header on narrow screens: wrap the buttons instead of overflowing */
@media (max-width: 820px) {
  .app-header { flex-wrap: wrap; row-gap: 6px; }
  .header-actions { flex-wrap: wrap; gap: 6px; width: 100%; }
  .header-title { display: none; }
  .btn-header { padding: 4px 9px; font-size: 12px; }
  #btnToggleND { display: none; }       /* the Displays tab replaces it */
  .mobile-nav-tabs { top: 0; position: static; }
  .simbrief-modal-box { width: 100%; max-width: 100%; box-sizing: border-box; }
}
