/* Unmounted Fill Out Form styles, scoped from retained styles.css 891–990 and
   1447–1465. No global form rules, remote assets, or inline style requirement. */
.form-draft-editor { padding:16px; color:var(--text,#22262c); background:var(--panel,#fff); font:14px/1.45 'Segoe UI Variable Text','Segoe UI',system-ui,-apple-system,Roboto,'Helvetica Neue',Arial,sans-serif; }
.form-draft-editor .btn { background:#fff; color:inherit; border:1px solid var(--line-strong,#bec0c3); padding:6px 11px; border-radius:9px; font-family:inherit; font-size:12px; font-weight:650; line-height:1.45; cursor:pointer; }
.form-draft-editor .btn:hover { background:var(--bg,#f5f4f1); border-color:var(--muted,#5f6670); }
.form-draft-editor .fm-fill-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.form-draft-editor .fm-title { font-size:19px; font-weight:800; overflow-wrap:anywhere; }
.form-draft-editor .fm-header-controls { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.form-draft-editor .fm-header-controls input { width:auto; }
.form-draft-editor .fm-sec { font-weight:800; font-size:13px; letter-spacing:.3px; text-transform:uppercase; color:var(--red-dark,#892732); border-bottom:2px solid var(--red,#b02a37); padding-bottom:5px; margin:20px 0 4px; }
.form-draft-editor .fm-qs > .fm-sec:first-child { margin-top:4px; }
.form-draft-editor .fm-q,.form-draft-editor .fm-rep { margin:13px 0; }
.form-draft-editor .fm-label,.form-draft-editor label { font-weight:650; }
.form-draft-editor .fm-label { margin-bottom:5px; }
.form-draft-editor .fm-req { color:var(--red,#b02a37); font-weight:800; margin-left:3px; }
.form-draft-editor .footnote { color:var(--muted,#5f6670); font-size:12px; margin:5px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.form-draft-editor input,.form-draft-editor select,.form-draft-editor textarea { box-sizing:border-box; max-width:100%; padding:9px 10px; border:1px solid var(--line-strong,#bec0c3); border-radius:8px; background:var(--panel,#fff); color:inherit; font:inherit; }
.form-draft-editor textarea { display:block; width:100%; resize:vertical; }
.form-draft-editor input:not([type=checkbox]):not([type=file]),.form-draft-editor select { width:100%; }
.form-draft-editor .fm-header-controls input { width:auto !important; }
.form-draft-editor .fm-choices,.form-draft-editor .fm-weather-chips { display:flex; gap:7px; flex-wrap:wrap; }
.form-draft-editor .fm-choice { min-width:58px; padding:9px 14px; border:1.5px solid var(--line-strong,#bec0c3); border-radius:9px; background:var(--panel,#fff); font:inherit; font-size:13px; font-weight:650; color:var(--muted,#5f6670); cursor:pointer; }
.form-draft-editor .fm-choice.sel { background:var(--black,#22262c); border-color:var(--black,#22262c); color:#fff; }
.form-draft-editor .fm-choice.flagv.sel { background:var(--red,#b02a37); border-color:var(--red,#b02a37); }
.form-draft-editor button:disabled { cursor:default; opacity:.7; }
.form-draft-editor .fm-check { display:flex; align-items:center; gap:9px; font-weight:550; padding:7px 2px; cursor:pointer; }
.form-draft-editor .fm-multi { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:2px 16px; }
.form-draft-editor .fm-cl { border:1px solid var(--line,#ddd); border-radius:10px; overflow:hidden; margin-top:6px; }
.form-draft-editor .fm-cl-row { display:flex; align-items:center; gap:10px; padding:8px 10px; border-bottom:1px solid var(--line,#ddd); flex-wrap:wrap; }
.form-draft-editor .fm-cl-row:last-child { border-bottom:none; }
.form-draft-editor .fm-cl-row:nth-child(even) { background:var(--bg,#f5f4f1); }
.form-draft-editor .fm-cl-item { flex:1 1 240px; font-size:13.5px; white-space:pre-wrap; overflow-wrap:anywhere; }
.form-draft-editor .fm-cl-note { flex:1 1 130px; max-width:220px; padding:7px 9px; font-size:12.5px; }
.form-draft-editor .fm-note { white-space:pre-wrap; margin:10px 0; padding:8px 12px; border-left:3px solid var(--line-strong,#bec0c3); color:var(--muted,#5f6670); font-size:13.5px; background:var(--bg,#f5f4f1); border-radius:0 8px 8px 0; }
.form-draft-editor .fm-q + .fm-note { margin-top:-4px; }
.form-draft-editor .fm-note.warn { border-left-color:var(--red,#b02a37); background:var(--red-soft,#f7e9eb); color:var(--red-dark,#892732); font-weight:600; }
.form-draft-editor .fm-img img,.form-draft-editor .fm-img canvas { display:block; max-width:100%; max-height:340px; height:auto; border:1px solid var(--line,#ddd); border-radius:10px; background:#fff; }
.form-draft-editor .fm-image-overlay { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px; box-sizing:border-box; background:var(--panel,#fff); overflow:auto; }
.form-draft-editor .fm-image-picture { max-width:1200px; width:96vw; display:flex; justify-content:center; }
.form-draft-editor .fm-image-picture img,.form-draft-editor .fm-image-picture canvas { max-width:100%; max-height:85vh; width:auto; height:auto; object-fit:contain; background:#fff; }
.form-draft-editor .fm-person-pick { display:flex; flex-wrap:wrap; gap:8px; max-width:480px; }
.form-draft-editor .fm-person-pick input { flex:1 1 220px; min-width:0; max-width:100%; }
.form-draft-editor .fm-person-results { display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.form-draft-editor .fm-emps { display:flex; gap:7px; flex-wrap:wrap; margin:6px 0; }
.form-draft-editor .fm-rep-inst { border:1px solid var(--line,#ddd); border-left:4px solid var(--red,#b02a37); border-radius:10px; padding:4px 14px 12px; margin:12px 0; background:var(--panel,#fff); box-shadow:var(--shadow,none); }
.form-draft-editor .fm-rep-head { display:flex; align-items:center; gap:10px; padding:9px 0 4px; border-bottom:1px solid var(--line,#ddd); }
.form-draft-editor .fm-rep-head b { flex:1; font-size:14px; overflow-wrap:anywhere; white-space:pre-wrap; }
.form-draft-editor .fm-rep-n { color:var(--muted,#5f6670); font-size:12px; font-weight:700; white-space:nowrap; }
.form-draft-editor .fm-flagbox { border:1px solid var(--red,#b02a37); background:var(--red-soft,#f7e9eb); color:var(--red-dark,#892732); border-radius:10px; padding:10px 13px; margin-bottom:12px; }
.form-draft-editor .fm-sigs-wrap { margin-top:22px; }
.form-draft-editor .fm-actions { display:flex; gap:10px; align-items:center; margin-top:24px; padding-top:14px; border-top:1px solid var(--line,#ddd); flex-wrap:wrap; }
.form-draft-editor .fm-spacer { flex:1; }
.form-draft-editor .fm-status:empty { display:none; }
.form-draft-editor .fm-tbl { border:1px solid var(--line,#ddd); border-radius:8px; margin-top:4px; overflow-x:auto; }
.form-draft-editor .fm-tbl-h,.form-draft-editor .fm-tbl-r,.form-draft-editor .fm-tbl-t { display:grid; gap:6px; align-items:center; padding:5px 8px; min-width:430px; }
.form-draft-editor .fm-tbl-crew > div { grid-template-columns:minmax(140px,1fr) 76px 76px 64px 30px; }
.form-draft-editor .fm-tbl-delay > div { grid-template-columns:150px minmax(120px,1fr) 70px 70px 60px 30px; }
.form-draft-editor .fm-tbl-h { background:var(--panel,#fff); font-size:10.5px; font-weight:700; color:var(--muted,#5f6670); text-transform:uppercase; letter-spacing:.03em; }
.form-draft-editor .fm-tbl-r { border-top:1px solid var(--line,#ddd); }
.form-draft-editor .fm-tbl-r input,.form-draft-editor .fm-tbl-r select,.form-draft-editor .fm-tbl-r textarea { margin:0; min-width:0; }
.form-draft-editor .fm-tbl-t { border-top:2px solid var(--line,#ddd); font-weight:800; }
.form-draft-editor .fm-mh { text-align:right; font-weight:700; padding-right:4px; }
.form-draft-editor .fm-photos { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-top:6px; }
.form-draft-editor .fm-photo { border:1px solid var(--line,#ddd); border-radius:8px; overflow:hidden; position:relative; background:var(--panel,#fff); }
.form-draft-editor .fm-photo > img,.form-draft-editor .fm-photo > canvas { width:100%; height:110px; object-fit:cover; display:block; }
.form-draft-editor .fm-photo textarea { border:0; border-top:1px solid var(--line,#ddd); border-radius:0; font-size:12px; width:100%; }
.form-draft-editor .fm-delrow { border:1px solid var(--line,#ddd); border-radius:8px; padding:8px 10px; margin-top:6px; }
.form-draft-editor [hidden] { display:none !important; }
@media(max-width:740px) {
  .form-draft-editor .fm-cl-row { align-items:flex-start; flex-direction:column; gap:6px; }
  .form-draft-editor .fm-cl-note { max-width:none; width:100%; }
  .form-draft-editor .fm-cl-item,.form-draft-editor .fm-cl-note { flex:0 0 auto; }
  .form-draft-editor .fm-title { font-size:16.5px; }
  .form-draft-editor .fm-rep-inst { padding:2px 10px 10px; }
}
@media(pointer:coarse) {
  .form-draft-editor input,.form-draft-editor select,.form-draft-editor textarea { font-size:16px; }
  .form-draft-editor .fm-choice { min-height:46px; min-width:70px; padding:12px 16px; font-size:15px; }
}
