/* Reuse the current RPG theme and controls; scope only pilot layout. */
#learningPilotView .pilot-control, #pilotWordCard { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
#learningPilotView .pilot-control > div, #pilotWordCard > div { flex:1 1 260px; min-width:0; }
#learningPilotView .pilot-budget { color:var(--rpg-deep); font-weight:600; font-variant-numeric:tabular-nums; }
#learningPilotView .pilot-text, #pilotParentCard .pilot-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
#learningPilotView .pilot-label { color:var(--rpg-muted); font-size:12px; margin:14px 0 5px; }
#learningPilotView .pilot-error { color:#b63e50; }
#learningPilotView textarea, #pilotParentCard textarea, #pilotParentCard input:not([type=checkbox]), #pilotParentCard select,
#learningPilotView input, #learningPilotView select, #pilotWordMeaning input, #pilotWordMeaning select { width:100%; }
#learningPilotView form > label, #pilotParentCard .pilot-material > label { display:block; margin:12px 0; }
#learningPilotView textarea, #pilotParentCard textarea { resize:vertical; min-height:90px; }
#learningPilotView .pilot-save-row { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:14px; }
#learningPilotView .pilot-turn { border-left:3px solid var(--rpg-purple); }
#learningPilotView fieldset { min-width:0; margin:12px 0; }
#learningPilotView legend { color:var(--rpg-deep); font-weight:600; }
#learningPilotView #pilotSummary { margin-top:18px; padding-top:14px; border-top:1px solid var(--rpg-line); }
#learningPilotView #pilotRecordDetail { margin-top:20px; }
#pilotParentCard .pilot-settings-grid { margin:16px 0; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); }
#pilotParentCard .pilot-settings-grid label { display:flex; flex-direction:column; gap:6px; }
#pilotParentCard .pilot-switches { gap:20px; }
#pilotParentCard .pilot-confirm { display:flex; align-items:flex-start; gap:8px; }
#pilotParentCard .pilot-confirm input { flex:0 0 auto; margin-top:5px; }
#pilotParentCard #pilotParentPreparations { margin:16px 0 22px; }
#pilotWordMeaning { margin:14px 0; }
#pilotWordMeaning > button { margin-top:12px; }
#learningPilotView [hidden], #pilotParentCard [hidden], #pilotWordMeaning[hidden] { display:none !important; }
@media (max-width:600px) {
  #learningPilotView .page-intro { align-items:flex-start; flex-direction:column; }
  #learningPilotView .pilot-control > button, #pilotWordCard > button { width:100%; }
  #learningPilotView .panel, #pilotParentCard { padding:16px; }
  #learningPilotView .page-intro h2 { font-size:21px; }
}
#learningPilotView .pilot-figures figure { margin:14px 0; }
#learningPilotView .pilot-figures img { display:block; max-width:100%; height:auto; border-radius:8px; }
#learningPilotView .pilot-figures figcaption { margin-top:6px; color:var(--rpg-muted); font-size:12px; }
#pilotParentCard .pilot-maintenance { margin-top:12px; }
#pilotParentCard .pilot-maintenance form { margin-top:14px; padding-top:12px; border-top:1px solid var(--rpg-line); }
#pilotParentCard .pilot-maintenance summary { cursor:pointer; overflow-wrap:anywhere; }
#pilotParentCard .pilot-parent-figures img { display:block; max-width:100%; height:auto; margin:12px 0; border-radius:8px; }
