
#editor{max-width:min(980px,96vw);max-height:92vh;overflow:auto}#toms-panel{border-top:3px solid #254f77;margin-top:20px;padding-top:14px}#toms-panel h3{margin:12px 0}#toms-panel .toms-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}#toms-panel label{display:block;font-size:13px;margin:5px 0}#toms-panel input:not([type=checkbox]),#toms-panel select{width:100%;padding:7px;border:1px solid #bdc8d4;border-radius:5px}#toms-panel .toms-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}#toms-panel .toms-checks label{display:flex;align-items:start;gap:6px}#toms-panel .toms-checks input{margin-top:3px}#toms-panel .toms-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#toms-panel .toms-status{background:#f0f4f9;border-radius:6px;padding:10px;margin:10px 0}#toms-panel .toms-warning{color:#a32929;font-weight:600}#toms-panel .toms-signed{color:#16643c}#toms-panel .toms-muted{font-size:12px;color:#5e6b78}@media(max-width:650px){#toms-panel .toms-grid,#toms-panel .toms-checks{grid-template-columns:1fr}}

/* Aircraft handover: compact two-column hours and close-coupled yes/no choices */
.toms-ho-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;align-items:end}
.toms-ho-fields>label:first-child{grid-column:1/-1}
.toms-ho-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.toms-ho-check{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap}
.toms-ho-choice{display:inline-flex;gap:12px;align-items:center}
.toms-ho-choice label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
@media(max-width:640px){.toms-ho-fields,.toms-ho-checks{grid-template-columns:1fr}}

/* v4.5.174 - legible, aligned handover controls and alternating briefing sections */
#toms-panel .toms-brief-section{padding:16px 18px;margin:12px 0;border:1px solid #e3eaf1;border-radius:10px;background:#fff}
#toms-panel .toms-brief-section:nth-child(even){background:#f3f7fb;border-color:#dbe6f0}
#toms-panel .toms-brief-section>h2:first-child,#toms-panel .toms-brief-section>h3:first-child{margin-top:0}
#toms-panel .toms-brief-section hr{border:0;border-top:1px solid #d8e1eb}
#toms-panel .toms-ho-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}
#toms-panel .toms-ho-check{display:grid;grid-template-columns:minmax(0,1fr) 118px;align-items:center;gap:12px;padding:9px 12px;background:#fff;border:1px solid #dfe7ef;border-radius:7px;min-width:0}
#toms-panel .toms-ho-check strong{font-size:13px;font-weight:600}
#toms-panel .toms-ho-choice{display:grid;grid-template-columns:repeat(2,55px);gap:8px;justify-content:start;align-items:center}
#toms-panel .toms-ho-choice label,#toms-panel .toms-handover-mode label{display:inline-flex;align-items:center;justify-content:flex-start;gap:19px;margin:0;white-space:nowrap;line-height:1.3}
#toms-panel input[type=radio],#toms-panel .toms-ho-choice input[type=radio],#toms-panel .toms-handover-mode input[type=radio]{width:15px!important;height:15px;min-width:15px;flex:0 0 15px;padding:0;margin:0;accent-color:#275a86}
#toms-panel .toms-handover-mode{display:flex;flex-wrap:wrap;gap:12px 28px;margin:12px 0;padding:12px 14px;border:1px solid #dce6ef;background:#fff;border-radius:8px}
#toms-panel .toms-ho-choice label{gap:8px}
#toms-panel .toms-ho-check label{font-size:13px}
#toms-panel #toms-handover-form{margin-top:12px}
#toms-panel #toms-ho-remainder{border:1px solid #dbe4ed;border-radius:9px;padding:14px;margin-top:12px;min-width:0}
#toms-panel #toms-ho-remarks{display:block;width:100%;box-sizing:border-box;min-height:90px;margin-top:7px;padding:9px;border:1px solid #bdc8d4;border-radius:6px}
@media(max-width:700px){#toms-panel .toms-ho-checks{grid-template-columns:1fr}#toms-panel .toms-brief-section{padding:12px}#toms-panel .toms-ho-check{grid-template-columns:minmax(0,1fr) 118px}}
