.pilot-launcher { position: fixed; right: 28px; bottom: 24px; z-index: 100; display: flex; align-items: center; gap: 12px; padding: 12px 20px; border: 1px solid #447db9; border-radius: 16px; background: #233c56; color: #fff; box-shadow: 0 8px 28px #122c4933; cursor: pointer; text-align: left; }
.pilot-launcher > span:first-child { font-size: 26px; color: #b7d8ff; }
.pilot-launcher small { display: block; margin-top: 3px; color: #ccdef0; }
.pilot-launcher:hover { background: #285f9b; }
.pilot-backdrop { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; padding: 20px; background: #152a4266; backdrop-filter: blur(3px); }
.pilot-dialog { width: min(920px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #a8bcd3; border-radius: 18px; background: #f7faff; color: #233649; box-shadow: 0 24px 80px #0c233d55; outline: none; }
.pilot-dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: linear-gradient(110deg, #233c56, #305b85); color: #fff; }
.pilot-dialog > header strong { letter-spacing: .12em; }
.pilot-dialog > header strong span { color: #b8d8ff; }
.pilot-dialog > header small { display: block; margin-top: 6px; color: #d0e0f1; }
.pilot-window-actions { display: flex; gap: 8px; }
.pilot-dialog > nav { display: flex; gap: 8px; padding: 12px 24px; border-bottom: 1px solid #c4d3e4; background: #e8eff7; }
.pilot-dialog > nav span { padding: 6px 10px; border-radius: 7px; color: #58718c; font-size: 12px; }
.pilot-dialog > nav .active { background: #2865a7; color: white; }
.pilot-content { padding: 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.pilot-content h2 { margin: 0 0 8px; font-size: 23px; }
.pilot-content p { font-size: 13px; line-height: 1.5; color: #526c88; }
.pilot-volume-row { margin: 16px 0; padding: 14px; border: 1px solid #bfcee0; border-radius: 10px; background: white; }
.pilot-run-field { display: grid; grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) auto; align-items: end; gap: 10px; }
.pilot-run-field > label { min-width: 0; }
.pilot-content label { display: grid; gap: 6px; font-size: 12px; color: #435f7c; }
.pilot-content input:not([type=checkbox]), .pilot-content select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 36px; padding: 7px 10px; }
.pilot-equipment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.pilot-machine-group { min-width: 0; padding-top: 10px; border-top: 1px solid #d4dfec; }
.pilot-machine-group > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.pilot-machine-group > header span { color: #58718c; }
.pilot-machine-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) 28px; align-items: center; gap: 8px; margin-bottom: 6px; }
.pilot-dialog .pilot-remove { width: 28px; min-height: 30px; padding: 3px; }
.pilot-dialog .pilot-add-machine { margin-top: 2px; padding: 5px 10px; min-height: 28px; font-size: 12px; }
.pilot-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pilot-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pilot-staff-summary { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #d4dfec; font-size: 13px; }
.pilot-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid #c4d3e4; background: #e8eff7; }
.pilot-dialog > footer > span { font-size: 12px; color: #526c88; }
.pilot-content .pilot-error { color: #a42c37; padding: 10px; border-left: 3px solid #bd3945; }
.pilot-content .pilot-warning { color: #8b611d; }
.pilot-dialog .tool:hover { background: #2865a7; color: white; border-color: #2865a7; }
.pilot-dialog .plan-task-row { padding: 10px 0; }
.pilot-dialog .plan-worker-row { padding: 10px 0; }
@media (max-width: 600px) {
  .pilot-backdrop { padding: 8px; }
  .pilot-dialog { max-height: calc(100dvh - 16px); }
  .pilot-dialog > header, .pilot-content, .pilot-dialog > footer { padding: 14px; }
  .pilot-dialog > nav { padding: 8px; gap: 0; }
  .pilot-dialog > nav span { font-size: 10px; padding: 6px; }
  .pilot-run-field { grid-template-columns: minmax(0, 1fr) auto; }
  .pilot-run-field > label:first-child { grid-column: 1 / -1; }
  .pilot-equipment-grid { grid-template-columns: 1fr; }
  .pilot-staff-summary { flex-direction: column; gap: 4px; }
  .pilot-launcher { right: 16px; bottom: 16px; }
}
