/* ============ 飞行事件 ============ */
#tab-events { flex-direction:column; background:#0f172a; overflow:hidden; }
.events-header { padding:18px 22px; background:#111827; border-bottom:2px solid #dc2626; flex-shrink:0; }
.events-header h2 { font-size:calc(18px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); color:#f3f4f6; }
.events-header p { margin-top:5px; color:#7f8da3; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.events-content { flex:1; min-height:0; overflow:auto; padding:18px 22px; }
.events-table-wrap { min-width:0; overflow-x:auto; }
#flight-event-table { min-width:1120px; table-layout:fixed; }
#flight-event-table th:nth-child(1) { width:18%; }
#flight-event-table th:nth-child(2) { width:14%; }
#flight-event-table th:nth-child(3) { width:13%; }
#flight-event-table th:nth-child(4) { width:8%; }
#flight-event-table th:nth-child(5) { width:17%; }
#flight-event-table th:nth-child(6) { width:10%; }
#flight-event-table th:nth-child(7) { width:10%; }
#flight-event-table th:nth-child(8) { width:10%; }
.event-drone-id { font-family:Consolas,monospace; color:#bfdbfe; word-break:break-all; }
.event-count-badge { display:inline-block; min-width:30px; padding:3px 8px; border-radius:12px; text-align:center; background:#1e3a5f; color:#93c5fd; }
.flight-advanced-trigger { margin-left:auto; border-color:#2563eb !important; color:#bfdbfe !important; }
.flight-advanced-trigger.active { background:rgba(37,99,235,.24) !important; box-shadow:inset 0 0 0 1px #3b82f6; }
.flight-advanced-modal { z-index:11500; padding:12px; }
.flight-advanced-card { width:min(1480px,calc(100vw - 24px)); height:min(880px,calc(100vh - 24px)); max-height:none; overflow:hidden; display:flex; flex-direction:column; padding:24px; }
.flight-advanced-card .detail-head { flex:0 0 auto; }
.flight-advanced-layout { flex:1; min-height:0; display:grid; grid-template-columns:minmax(680px,2fr) minmax(380px,.8fr); gap:24px; }
.flight-advanced-map-column { min-width:0; min-height:0; display:flex; flex-direction:column; }
#flight-advanced-map { flex:1; width:100%; min-height:600px; border:1px solid #374151; border-radius:10px; overflow:hidden; background:#0b1220; }
.flight-advanced-drawbar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.flight-advanced-drawbar .active { border-color:#60a5fa; background:#1d4ed8; color:#fff; }
.flight-advanced-hint { min-height:38px; margin:9px 0 0; color:#94a3b8; font-size:12px; line-height:1.55; }
.flight-advanced-form { min-height:0; overflow:auto; padding:24px; border:1px solid #334155; border-radius:10px; background:#0b1220; }
.flight-advanced-form h4 { margin:0 0 20px; color:#e5e7eb; font-size:16px; }
.flight-advanced-field { display:grid; gap:8px; margin-bottom:20px; }
.flight-advanced-field label { color:#cbd5e1; font-size:13px; font-weight:650; }
.flight-advanced-field input { width:100%; min-height:46px; box-sizing:border-box; padding:11px 13px; border:1px solid #374151; border-radius:7px; background:#111827; color:#e5e7eb; color-scheme:dark; outline:none; font-size:14px; }
.flight-advanced-field input:focus { border-color:#60a5fa; box-shadow:0 0 0 2px rgba(59,130,246,.18); }
.flight-advanced-summary { min-height:92px; padding:14px; border:1px solid #263449; border-radius:7px; background:#111827; color:#aebbd0; font-size:13px; line-height:1.75; }
.flight-advanced-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.flight-advanced-radius-label { padding:5px 8px; border:1px solid #60a5fa; border-radius:5px; background:rgba(15,23,42,.94); color:#dbeafe; font-size:12px; font-weight:700; white-space:nowrap; box-shadow:0 4px 14px rgba(0,0,0,.38); }
.flight-advanced-status { display:none; align-items:center; gap:7px; margin-left:auto; padding:6px 10px; border-radius:15px; background:rgba(37,99,235,.16); color:#93c5fd; font-size:12px; }
.flight-advanced-status.visible { display:inline-flex; }
.flight-advanced-status button { border:0; background:transparent; color:#bfdbfe; cursor:pointer; font-size:15px; line-height:1; }
.flight-result-feedback { display:none; align-items:center; min-height:44px; margin:-2px 0 14px; padding:10px 14px; border:1px solid #334155; border-radius:8px; font-size:13px; font-weight:650; }
.flight-result-feedback.visible { display:flex; }
.flight-result-feedback.loading { border-color:#1d4ed8; background:rgba(29,78,216,.13); color:#bfdbfe; }
.flight-result-feedback.success { border-color:#047857; background:rgba(4,120,87,.13); color:#6ee7b7; }
.flight-result-feedback.empty { border-color:#b45309; background:rgba(180,83,9,.13); color:#fcd34d; }
.flight-result-feedback.error { border-color:#b91c1c; background:rgba(185,28,28,.13); color:#fca5a5; }
@media(max-width:1050px){.flight-advanced-card{height:calc(100vh - 24px);overflow:auto}.flight-advanced-layout{grid-template-columns:1fr}.flight-advanced-map-column{min-height:520px}#flight-advanced-map{min-height:460px}.flight-advanced-form{overflow:visible}}
@media(max-height:760px) and (min-width:1051px){#flight-advanced-map{min-height:0}}
.flight-event-detail-card { width:min(1280px,98vw); }
.event-detail-meta { display:flex; flex-wrap:wrap; gap:10px 20px; margin:-5px 0 14px; color:#9ca3af; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.flight-event-remark-editor { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px 10px; margin:0 0 16px; padding:12px 14px; border:1px solid #2b3b50; border-radius:9px; background:#0b1220; }
.flight-event-remark-editor label { grid-column:1/-1; color:#dbeafe; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); font-weight:650; }
.flight-event-remark-editor textarea { min-height:58px; max-height:130px; resize:vertical; }
.flight-event-remark-editor .remark-editor-help { grid-column:1/-1; margin:0; color:#71849d; font-size:calc(11px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.flight-event-remark-editor .remark-editor-help.error { color:#fca5a5; }
@media(max-width:720px){.flight-event-remark-editor{grid-template-columns:1fr}.flight-event-remark-editor label,.flight-event-remark-editor .remark-editor-help{grid-column:1}.flight-event-remark-editor button{width:100%}}
.flight-owner-section { margin:0 0 16px; }
.flight-owner-section h4 { margin:0 0 8px; color:#d1d5db; font-size:calc(13px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.flight-owner-card {
  width:100%; min-height:68px; padding:12px 14px; border:1px solid #334155; border-radius:8px;
  background:#0b1220; color:#e5e7eb; display:flex; align-items:center; justify-content:space-between;
  gap:16px; text-align:left; cursor:pointer;
}
.flight-owner-card:not(:disabled):hover { border-color:#38bdf8; background:#101c30; }
.flight-owner-card:focus-visible { outline:2px solid #38bdf8; outline-offset:2px; }
.flight-owner-card:disabled { cursor:default; opacity:.68; }
.flight-owner-main { min-width:0; display:grid; gap:5px; }
.flight-owner-main strong { overflow:hidden; text-overflow:ellipsis; color:#f8fafc; font-size:calc(15px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.flight-owner-main span { overflow:hidden; text-overflow:ellipsis; color:#94a3b8; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.flight-owner-action { flex:0 0 auto; color:#7dd3fc; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); font-weight:650; }
.event-detail-table-wrap { overflow:auto; max-height:60vh; }
#flight-session-table { min-width:1160px; }
#flight-session-table td { white-space:nowrap; }
.location-cell { font-family:Consolas,monospace; font-size:calc(11px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); color:#cbd5e1; }
.address-cell { min-width:240px; max-width:360px; white-space:normal !important; line-height:1.45; color:#dbeafe; }
.flight-track-modal { z-index:12000; }
.flight-track-card { width:min(1380px,98vw); max-height:96vh; overflow:auto; }
.flight-track-layout { display:grid; grid-template-columns:minmax(520px,1fr) 330px; gap:14px; min-height:500px; }
#flight-track-map { width:100%; min-height:500px; border:1px solid #374151; border-radius:10px; overflow:hidden; background:#0b1220; }
.flight-telemetry-panel { border:1px solid #374151; border-radius:10px; background:#0b1220; padding:14px; }
.flight-telemetry-panel h4 { color:#f3f4f6; font-size:calc(14px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); margin-bottom:10px; padding-bottom:9px; border-bottom:1px solid #263244; }
.flight-telemetry-grid { display:grid; grid-template-columns:1fr; gap:0; }
.flight-telemetry-row { display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-bottom:1px solid #1f2937; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); }
.flight-telemetry-row span:first-child { color:#7f8da3; white-space:nowrap; }
.flight-telemetry-row span:last-child { color:#e5e7eb; text-align:right; word-break:break-all; }
.flight-track-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; padding:12px; border:1px solid #374151; border-radius:9px; background:#0b1220; }
.flight-track-controls input[type="range"] { flex:1; min-width:260px; accent-color:#2563eb; }
.flight-track-controls select { padding:7px 10px; border:1px solid #374151; border-radius:6px; background:#111827; color:#e5e7eb; }
.flight-detail-head-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.takeoff-distribution-modal { z-index:15500; }
.takeoff-distribution-card { width:min(1180px,96vw); max-height:94vh; overflow:auto; }
.takeoff-distribution-meta { display:flex; flex-wrap:wrap; gap:10px 18px; margin:0 0 12px; color:#cbd5e1; }
#takeoff-distribution-map { width:100%; min-height:560px; border:1px solid #374151; border-radius:10px; overflow:hidden; background:#0b1220; }
.takeoff-history-marker { width:30px; height:30px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; border:2px solid #fff; box-shadow:0 3px 12px rgba(0,0,0,.5); font-weight:700; font-size:12px; }
.takeoff-history-popup { min-width:220px; padding:10px 12px; color:#e5e7eb; background:#111827; border:1px solid #374151; border-radius:9px; }
.takeoff-history-popup strong { display:block; margin-bottom:7px; color:#fff; }
.takeoff-history-popup span { display:block; margin-top:4px; color:#cbd5e1; }
.pilot-association-qr { min-width:250px; }
.pilot-association-qr .nav-qr-code { margin:12px auto; }
.flight-progress-text { min-width:86px; color:#9ca3af; font-size:calc(12px + var(--utm-text-delta, 0px) + var(--utm-area-text-delta, 0px)); text-align:center; }
.playback-drone-marker { position:relative; width:76px; height:76px; }
.playback-drone-marker img { position:absolute; width:68px; height:auto; left:50%; top:50%; transform-origin:50% 50%; filter:drop-shadow(0 3px 4px rgba(0,0,0,.65)); }
@media (max-width:980px) {
  .flight-track-layout { grid-template-columns:1fr; }
  #flight-track-map { min-height:420px; }
  #takeoff-distribution-map { min-height:440px; }
}

