/* CREW-wide form and section standard. LINDA selectors are compatibility aliases. */
:root{--crew-form-canvas:#f4f6f9;--crew-form-heading:#eaf0f6;--crew-form-border:#cbd4df}
.crew-form-dialog{width:min(920px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:90vh;overflow:auto;border:1px solid var(--crew-form-border);border-radius:10px;padding:24px;color:#203247;box-sizing:border-box;font:16px/1.55 var(--crew-font,Arial,sans-serif)}
.crew-form-dialog::backdrop{background:#14223599}.crew-dialog-header{display:flex;justify-content:space-between;align-items:start;gap:16px}.crew-dialog-actions{position:sticky;bottom:-24px;display:flex;gap:12px;flex-wrap:wrap;background:white;border-top:1px solid var(--crew-form-border);z-index:2}.crew-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.crew-form-section{background:#fff;border:1px solid var(--crew-form-border);border-radius:6px;padding:20px;margin:0 0 20px;min-width:0}.crew-form-section> :is(h2,h3){font-size:19px;line-height:1.4;font-weight:700;background:var(--crew-form-heading);border-bottom:1px solid var(--crew-form-border);margin:-20px -20px 20px;padding:13px 20px;border-radius:5px 5px 0 0}
.crew-section-header{background:var(--crew-form-heading);border-color:var(--crew-form-border);border-radius:6px}.crew-confirm h2{background:var(--crew-form-heading);border-bottom:1px solid var(--crew-form-border)}
@media(max-width:600px){.crew-form-dialog{padding:16px;max-height:92vh;width:calc(100vw - 16px);max-width:calc(100vw - 16px)}.crew-dialog-actions{bottom:-16px}.crew-form-grid{grid-template-columns:1fr}.crew-form-section{padding:16px}.crew-form-section> :is(h2,h3){margin:-16px -16px 16px;padding:12px 16px}}
/* Task dialogs: group labels, inputs and help within clear form sections. */
:is(.crew-form-dialog,.linda-task-modal){background:#f4f6f9}:is(.crew-form-dialog,.linda-task-modal) .linda-task-body{border:0;background:transparent}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-dialog-header,.linda-modal-head){padding-bottom:16px;border-bottom:1px solid #cbd4df;margin-bottom:16px}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-dialog-header,.linda-modal-head) h2{margin:0;line-height:1.3}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-dialog-header,.linda-modal-head) button{flex-shrink:0}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-dialog-context,.linda-modal-context){padding:14px 16px;background:#e8eef5;border-left:3px solid #687d96;margin:0 0 20px}:is(.crew-dialog-context,.linda-modal-context) span{display:block;font-size:13px;color:#536174;margin-bottom:4px}:is(.crew-dialog-context,.linda-modal-context) strong{display:block}
:is(.crew-form-dialog,.linda-task-modal) :is(.crew-form-section,.linda-modal-section),:is(.crew-form-dialog,.linda-task-modal) .linda-owner-settings,:is(.crew-form-dialog,.linda-task-modal) .linda-connections{background:#fff;border:1px solid #cbd4df;border-radius:6px;padding:20px;margin:0 0 20px;min-width:0}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-form-section,.linda-modal-section)>h3,:is(.crew-form-dialog,.linda-task-modal) .linda-owner-settings>h3,:is(.crew-form-dialog,.linda-task-modal) .linda-connections>h3{font-size:19px;line-height:1.4;font-weight:700;background:#eaf0f6;border-bottom:1px solid #cbd4df;margin:-20px -20px 20px;padding:13px 20px;border-radius:5px 5px 0 0}:is(.crew-form-dialog,.linda-task-modal) label:not(:is(.crew-choice,.linda-check)){display:block;font-size:14px;font-weight:600;margin-bottom:8px}:is(.crew-form-dialog,.linda-task-modal) input:not([type=checkbox]):not([type=radio]):not([type=hidden]),:is(.crew-form-dialog,.linda-task-modal) select,:is(.crew-form-dialog,.linda-task-modal) textarea{display:block;width:100%;min-height:44px;padding:10px 12px;border:1px solid #b8c4d1;border-radius:5px;background:#fff;color:#203247;font:inherit;font-size:16px;line-height:1.4}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-form-grid,.linda-grid){gap:20px}:is(.crew-form-dialog,.linda-task-modal) p{line-height:1.55}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-field-help,.linda-muted),:is(.crew-form-dialog,.linda-task-modal) #insertExplanation{font-size:14px;color:#536174;margin:10px 0 18px}:is(.crew-form-dialog,.linda-task-modal) fieldset{min-width:0}:is(.crew-form-dialog,.linda-task-modal) .linda-owner-settings>fieldset{border:0;padding:0;margin:24px 0 16px}:is(.crew-form-dialog,.linda-task-modal) legend{font-size:14px;font-weight:700;margin-bottom:8px}:is(.crew-form-dialog,.linda-task-modal) .linda-secondary-picks{border-radius:5px;background:#fafbfd}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-choice,.linda-check){display:flex;align-items:flex-start;gap:10px;padding:8px 4px;margin:0;line-height:1.5}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-choice,.linda-check) input{width:18px;height:18px;flex:0 0 18px;margin-top:3px}:is(.crew-form-dialog,.linda-task-modal) .linda-rich-wrap{background:#fff}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-dialog-actions,.linda-modal-footer){margin:0 -24px -24px;padding:16px 24px;box-shadow:0 -4px 12px #20324708}:is(.crew-form-dialog,.linda-task-modal) .linda-options-section>summary{font-weight:700;line-height:1.5}:is(.crew-form-dialog,.linda-task-modal) .linda-connections>details{padding:14px 0;border-top:1px solid #dbe2ea;margin-top:12px}#insertTaskModal{width:min(720px,calc(100vw - 32px))}
@media(max-width:600px){:is(.crew-form-dialog,.linda-task-modal) :is(.crew-form-section,.linda-modal-section),:is(.crew-form-dialog,.linda-task-modal) .linda-owner-settings,:is(.crew-form-dialog,.linda-task-modal) .linda-connections{padding:16px}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-form-section,.linda-modal-section)>h3,:is(.crew-form-dialog,.linda-task-modal) .linda-owner-settings>h3,:is(.crew-form-dialog,.linda-task-modal) .linda-connections>h3{margin:-16px -16px 16px;padding:12px 16px}:is(.crew-form-dialog,.linda-task-modal) :is(.crew-dialog-actions,.linda-modal-footer){margin:0 -16px -16px;padding:14px 16px}#insertTaskModal{width:calc(100vw - 16px)}}

/* Full-size fields in shared sections also apply outside dialogs. */
.crew-form-section{box-sizing:border-box}.crew-form-section :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #b8c4d1;border-radius:5px;background:#fff;color:#203247;font:inherit;font-size:16px;line-height:1.4}.crew-form-section label:not(.linda-check):not(.crew-choice){display:block;font-size:14px;font-weight:600;margin-bottom:8px}

/* Opt-in shared select: consistent full-height controls in Safari and desktop browsers. */
select.crew-select{appearance:none;-webkit-appearance:none;min-height:44px;height:auto;padding:10px 40px 10px 12px!important;border:1px solid #b8c4d1;border-radius:5px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23536174' stroke-width='1.5'/%3E%3C/svg%3E")!important;background-position:right 12px center!important;background-repeat:no-repeat!important;color:#203247;font:inherit;font-size:16px;box-sizing:border-box}
@media(forced-colors:active){select.crew-select{appearance:auto;-webkit-appearance:menulist;background-image:none!important}}

/* Role picker choices keep native controls beside their labels in either editor. */
.staff-role-editor .role-picker-options label.assignment-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;box-sizing:border-box;padding:8px 0;margin:0;font-weight:400;line-height:1.5}
.staff-role-editor .role-picker-options label.assignment-check input:is([type=checkbox],[type=radio]){appearance:auto;display:block;box-sizing:border-box;width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;padding:0;flex:0 0 20px;margin:2px 0 0;align-self:flex-start;accent-color:var(--crew-primary,#cc0033)}
.staff-role-editor .role-picker-options label.assignment-check span{flex:1;min-width:0;overflow-wrap:anywhere}

/* Vacancy review shares the form dialog while keeping the two operations explicit. */
.role-vacancy-plan{padding:16px;margin:16px 0 24px;border:1px solid #b9cad5;background:#f0f5f8;border-radius:8px}.role-vacancy-dialog label{display:block;margin:16px 0}.role-vacancy-dialog fieldset{margin:20px 0;border:1px solid #d8e0e7;border-radius:8px;padding:16px}.role-vacancy-dialog fieldset>label{display:grid;grid-template-columns:24px 1fr;gap:4px 10px}.role-vacancy-dialog fieldset small{grid-column:2;font-weight:400;color:#64717e}.role-vacancy-dialog input[type=radio]{appearance:auto!important;width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;margin:2px 0 0!important}.role-vacancy-preview{padding:16px;background:#f0f5f8;border-radius:8px;font-size:14px;line-height:1.6}.role-vacancy-preview h3{margin-top:0}.role-vacancy-dialog select{width:100%;box-sizing:border-box;min-height:46px}.role-vacancy-dialog::backdrop{background:#172d3c80}.role-vacancy-dialog .crew-dialog-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.role-vacancy-dialog .crew-dialog-actions button{margin:0}.role-vacancy-dialog h2{background:transparent;border:0;padding:0}.role-vacancy-plan[hidden]{display:none!important}

body:has(.crew-header) #main .role-vacancy-dialog fieldset>label{display:grid;grid-template-columns:24px minmax(0,1fr);gap:4px 10px;margin:14px 0}body:has(.crew-header) #main .role-vacancy-dialog fieldset>label>small{display:block;grid-column:2;margin:0;font-size:13px;line-height:1.5}body:has(.crew-header) #main .role-vacancy-dialog fieldset>label>span{font-weight:600}.role-vacancy-preview p{margin:10px 0;overflow-wrap:anywhere}.role-vacancy-dialog{width:min(820px,calc(100vw - 32px))}.staff-role-editor form>.role-vacancy-launch{margin-bottom:24px}

/* Shared role card: heading and body have separate, consistent gutters. */
.crew-section-card.staff-role-editor>.crew-section-header{margin:0}
.crew-section-card.staff-role-editor>p{margin:0;padding:16px 20px 0}
.crew-section-card.staff-role-editor>form{padding:20px;min-width:0}
@media(max-width:600px){.crew-section-card.staff-role-editor>.crew-section-header{padding:16px}.crew-section-card.staff-role-editor>p{padding:16px 16px 0}.crew-section-card.staff-role-editor>form{padding:16px}}

/* One assignment-control layout for administrator and staff proposal editors. */
.staff-role-editor .assignment-fields{display:grid;gap:24px;min-width:0}.staff-role-editor .role-field-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px 28px;min-width:0}.staff-role-editor .role-field-group>h3{grid-column:1/-1}.staff-role-editor .workspace-field{display:block;min-width:0;font-size:14px;line-height:21px}.staff-role-editor .workspace-field :is(input,select){display:block;width:100%;box-sizing:border-box;margin-top:8px;height:48px;min-height:48px;padding:10px 13px;line-height:24px;font:inherit;border:1px solid #b5c1cc;border-radius:6px;background:#fff}.staff-role-editor .role-picker{border:0;padding:0;background:transparent;align-self:start;min-width:0}.staff-role-editor .role-picker>summary{list-style:none;line-height:21px;font-size:14px;cursor:pointer}.staff-role-editor .role-picker>summary::-webkit-details-marker{display:none}.staff-role-editor .role-picker>summary>span:first-child{display:block;min-height:21px}.staff-role-editor .role-picker>summary>span:first-child:after{content:'⌄';float:right;color:#64717e}.staff-role-editor .role-picker-preview,.staff-role-editor .role-picker>summary:not(:has(.role-picker-preview)):after{display:block;box-sizing:border-box;min-height:48px;margin:8px 0 0;padding:10px 13px;border:1px solid #b5c1cc;border-radius:6px;background:#fff;font-size:14px;font-weight:400;line-height:24px;color:inherit}.staff-role-editor .role-picker>summary:not(:has(.role-picker-preview)):after{content:'None selected';color:#64717e}.staff-role-editor .role-picker[open]>.role-picker-options{margin-top:12px}.staff-role-editor .role-picker-options{max-height:320px;overflow:auto}.staff-role-editor .role-picker>input[type=search]{min-height:44px;max-width:100%;box-sizing:border-box}.staff-role-editor .role-location-address{grid-column:1/-1;white-space:pre-line;margin:0;font-size:14px;line-height:1.5}.staff-role-editor .role-picker-selected{font-size:14px;line-height:1.5}.staff-role-editor .role-field-group>[hidden]{display:none!important}@media(max-width:600px){.staff-role-editor .role-field-group{grid-template-columns:minmax(0,1fr)}}

.staff-role-editor .role-picker-selected{display:none}.staff-role-editor .role-consultant{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 28px}.staff-role-editor .role-consultant>h3{grid-column:1/-1}.staff-role-editor .workspace-field textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px;min-height:110px;padding:10px 13px;border:1px solid #b5c1cc;border-radius:6px;font:inherit;resize:vertical}@media(max-width:600px){.staff-role-editor .role-consultant{grid-template-columns:minmax(0,1fr)}}

.crew-pronouns-multiple .role-picker-options label.assignment-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;box-sizing:border-box;padding:8px 0;margin:0;font-weight:400;line-height:1.5}.crew-pronouns-multiple .role-picker-options label.assignment-check input[type=checkbox]{appearance:auto;display:block;box-sizing:border-box;width:20px;min-width:20px;max-width:20px;height:20px;min-height:20px;max-height:20px;padding:0;flex:0 0 20px;margin:2px 0 0;align-self:flex-start}.crew-pronouns-multiple .role-picker-options label.assignment-check span{flex:1;min-width:0;overflow-wrap:anywhere;color:inherit}

/* Fieldsets retain native group semantics while sharing the section heading band. */
fieldset.crew-form-section{padding-top:0}fieldset.crew-form-section>legend{float:left;box-sizing:border-box;width:calc(100% + 40px);max-width:none;margin:0 -20px 20px;padding:13px 20px;border:0;border-bottom:1px solid var(--crew-form-border);border-radius:5px 5px 0 0;background:var(--crew-form-heading);color:#203247;font-size:19px;line-height:1.4;font-weight:700}fieldset.crew-form-section>legend+*{clear:both}
@media(max-width:600px){fieldset.crew-form-section>legend{width:calc(100% + 32px);margin:0 -16px 16px;padding:12px 16px}}
