/* One current task surface. Presentation only: native owners, state and recovery stay authoritative. */
:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service){--work-border:var(--hairline,var(--line));--work-muted:var(--stone,var(--mut));color:var(--ink);font-family:var(--font-ui,Geist,system-ui,sans-serif);font-size:16px;line-height:1.5}
:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;min-height:44px;font:400 16px/1.5 var(--font-ui,Geist,system-ui,sans-serif);color:var(--ink);background:var(--card);border-color:var(--field-border,var(--line));border-radius:8px}
:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) :is(button,summary){min-height:44px}
:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) :is(label,.bol-field>span){font-size:14px;line-height:1.5}
:root .wqf-host .wqf-summary{margin:12px 0 0;padding:20px 20px 12px;border-color:var(--work-border);border-radius:12px;background:var(--card);box-shadow:none}
:root .wqf-host .wqf-summary:has(+.wqf-task:not(:empty)){border-bottom:0;border-radius:12px 12px 0 0}
:root .wqf-host .wqf-summary+.wqf-task:not(:empty){margin:0 0 16px;padding:0 20px 20px;border-top:0;border-color:var(--work-border);border-radius:0 0 12px 12px;background:var(--card);box-shadow:none}
:root .wqf-host .wqf-summary :is(button[aria-label="Add update"],button[aria-label="Details"],button[aria-label="Hide details"],button[aria-label="Add evidence"],button[aria-label="Link photos"]){border-width:1px!important;border-color:transparent!important;background:transparent!important;padding-inline:10px!important}
:root .wqf-host .wqf-summary h2{font-size:22px!important;line-height:1.3!important;letter-spacing:-.02em}
:root .wqf-host .wqf-task :is(.vw-box,.vw-shot,.wvt-edit){margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
:root .wqf-host .wqf-task :is(.vw-shot,.vw-box) h3{font-size:16px;margin:0 0 10px}
:root .wqf-host .wqf-task textarea{min-height:88px}
:root .wqf-host .wvt-head,:root .wqf-host .vw-heading{margin:0;padding-block:8px 16px}
:root .wqf-host .wvt-instr{margin:0 0 16px;padding:12px 16px;border:0;border-radius:8px;background:var(--well);font-size:14px;line-height:1.5}
:root .wqf-host .wvt-instr p{margin:0}
:root .wqf-host :is(.wqf-details,.wqf-details .wvt-activity,.wqf-details .wvt-thread){margin:0}
:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) :is(.wqf-details,.wfs-native-details,.bof-details,.bof-more-fields,.bof-action-menu,.wfs-transport-details,.vff-details){border:0;border-top:1px solid var(--work-border);border-radius:0;background:transparent;box-shadow:none;padding:0;margin-block:0}
:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) :is(.wqf-details,.wfs-native-details,.bof-details,.bof-more-fields,.bof-action-menu,.wfs-transport-details,.vff-details)>summary{box-sizing:border-box;min-height:48px;padding:12px 0;color:var(--work-muted);font-size:14px;line-height:1.5;font-weight:500;letter-spacing:0}
:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) :is(.wqf-details,.wfs-native-details,.bof-details,.bof-more-fields,.bof-action-menu,.wfs-transport-details,.vff-details)[open]>*:not(summary){margin-block:0 16px}
:root .wfs-native-focus .wfs-native-form.title-editor{width:100%;min-height:0;gap:16px;margin:0;padding:20px;border-radius:12px;box-shadow:none;background:var(--card)}
:root .wfs-native-focus .wfs-native-form.title-editor>fieldset{display:block!important;grid-column:1/-1;min-width:0;width:100%;padding:0;margin:0}
:root .wfs-native-focus .wfs-native-form.title-editor .wfs-native-fields{grid-column:1/-1;width:100%;min-width:0;max-width:none;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
:root .wfs-native-focus .wfs-native-fields>:is(.td-alert,p,[role=alert],[role=status]),:root .wfs-native-focus .wfs-native-fields>label:has(textarea){grid-column:1/-1}
:root .wfs-native-focus .wfs-native-fields textarea{width:100%;min-height:88px}
:root .wfs-native-focus .wfs-native-form.title-editor>footer{margin:0;padding:12px 0 0;min-height:0;gap:12px;border-top:1px solid var(--work-border)}
:root .wfs-native-focus .wfs-native-form.title-editor>footer small{font-size:12px;line-height:1.5;color:var(--work-muted)}
:root .wfs-native-focus .sd-sheet-body{padding:20px;gap:16px}
:root .wfs-native-focus .sd-update{padding:0;margin:0;border:0;background:transparent;box-shadow:none}
:root .wfs-native-focus .sd-update h3{font-size:20px;line-height:1.3;margin:0 0 16px}
:root .wfs-native-focus .sd-post-row{padding-top:12px;margin-top:4px}
:root .bof-sheet{gap:16px}
:root .bof-sheet>.bol-heading{padding:0;margin:0}
:root .bof-sheet>.bol-heading h2{font-size:24px;line-height:1.25;letter-spacing:-.025em}
:root .bof-sheet .bof-current{gap:16px;padding:20px;border-radius:12px;border-color:var(--work-border);box-shadow:none;background:var(--card)}
:root .bof-sheet .bof-current>h3{font-size:20px;line-height:1.3}
:root .bof-sheet .bof-current>.bol-form{padding:0;margin:0;border:0;background:transparent;box-shadow:none}
:root .bof-sheet .bol-fields{gap:16px}
:root .bof-sheet .bol-actions{margin-top:4px}
:root .wfs-transport-focus .wfs-transport-current{gap:16px}
:root .wfs-transport-focus .wfs-transport-current>.td-hero{padding:0;margin:0}
:root .wfs-transport-focus .wfs-transport-current .td-arrival{padding:16px;border-radius:8px;box-shadow:none}
:root .wfs-transport-focus .wfs-transport-current [data-tp-receiving-host]{padding:16px;border-color:var(--work-border);border-radius:10px;box-shadow:none}
:root .wfs-transport-focus .tr-receiving-form{margin:12px 0 0;gap:12px}
:root .vff-service .sw-detail-header{padding-block:12px 16px;margin:0}
:root .vff-service .sw-detail-header h2{font-size:24px;line-height:1.25;letter-spacing:-.025em}
:root .vff-service .sw-detail-main>.sw-section{padding:20px;margin:0 0 16px;border-color:var(--work-border);border-radius:12px;box-shadow:none;background:var(--card)}
:root .vff-service .sw-note-label{font-size:14px;margin:12px 0 0}
:root .vff-service .sw-note-label textarea{min-height:88px}
:root .vff-service .sw-detail-footer{padding:12px 0 0;margin-top:16px;background:transparent;border-color:var(--work-border);border-radius:0;box-shadow:none}
:root .vff-service .sw-history{padding:0;margin:0;border:0;border-top:1px solid var(--work-border)}
:root .vff-service .sw-history>summary{min-height:48px;padding:12px 0;font-size:14px;color:var(--work-muted)}
:root .vff-service .vff-secondary{border:0}
:root .vff-service .sw-assignment{padding:20px;border:1px solid var(--work-border);border-radius:12px;background:var(--card);box-shadow:none}
:root .vff-service .sw-assignment h2{font-size:22px;margin:4px 0 8px}
:root .vff-service .sw-assignment form{gap:16px}
:root .vff-service .sj-section{padding:16px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
:root .vff-service .sj-tabs{gap:4px;margin:0 0 12px}
:root .vff-service .sj-tabs [role=tab]{font-size:14px;padding-inline:10px}
:root .vff-service .sj-quote{padding:16px;border-color:var(--work-border);border-radius:8px;box-shadow:none}
:root .vff-service .vff-internal-toggle{margin:0;border-color:var(--work-border);font-size:14px}
:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) :focus-visible{outline:2px solid var(--bleu);outline-offset:3px}
/* Respect native presentation state, including disabled/inert actions and permission-revoked rows. */
:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) [hidden]{display:none!important}
@media(max-width:640px){:root .wqf-host .wqf-summary{padding:16px 16px 12px}:root .wqf-host .wqf-summary+.wqf-task:not(:empty){padding:0 16px 16px}:root .wfs-native-focus .wfs-native-form.title-editor,:root .wfs-native-focus .sd-sheet-body,:root .bof-sheet .bof-current,:root .vff-service .sw-detail-main>.sw-section,:root .vff-service .sw-assignment{padding:16px}:root .wqf-host .wqf-task [data-wqf-native-action],:root .bof-sheet .bol-actions>button{width:100%;min-height:48px}}
@media(prefers-reduced-motion:reduce){:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) *{scroll-behavior:auto!important}}
@media(forced-colors:active){:root :is(.wqf-summary,.wqf-task,.bof-current,.wfs-native-form,.sw-section,.sw-assignment){border-color:CanvasText}:root :is(.wqf-host,.wfs-native-focus,.bof-sheet,.wfs-transport-focus,.vff-service) :focus-visible{outline-color:Highlight}}
/* The record shell relocated Close into its compact bar; keep only the actual vehicle heading below it. */
#drawer.brs[data-brs=record]:has(>.brs-top [data-close]):has(>.bww-native-record>.bof-sheet .bol-heading h2)>.dh.brs-head:not(:has(button)){display:none}
:root .wqf-host .wqf-summary div:has(+h2[role=heading]){font-size:12px!important;line-height:18px!important;color:var(--work-muted)!important}
/* Native task hosts use a flex gap; remove it between the two halves of the same current panel. */
#drawer .wqf-host{gap:0!important}
#drawer .wqf-host .wqf-summary{margin-top:12px}
#drawer .wqf-host .wqf-summary+.wqf-task:not(:empty){margin-top:0}
#drawer .wqf-host .wqf-task :is(.vw-box,.vw-shot,.wvt-edit){margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#drawer .wqf-host .wvt-instr{margin:0 0 12px;padding:12px 0;border:0;border-radius:0;background:transparent;font-size:14px}
#drawer .wqf-host .wqf-details{margin-block:0}
:root .wfs-native-focus .wfs-native-form.title-editor>header{margin:0;padding:0;gap:12px}
:root .wfs-native-focus .wfs-native-form.title-editor>p:not([role]){margin:0 0 4px;font-size:14px;line-height:1.5}
:root .wfs-native-focus .wfs-native-form.title-editor>[data-title-error]:empty{margin:0;padding:0;min-height:0}
/* The native Title dialog already owns the outer sheet surface. */
:root .wfs-native-focus .wfs-native-form.title-editor{border:0;border-radius:0;background:transparent}
:root .wfs-native-focus .wfs-native-form.title-editor>header h3{font-size:21px;font-weight:600;line-height:1.3;letter-spacing:-.02em}
:root .wfs-native-focus .wfs-native-form.title-editor>[data-title-error]:empty+footer{margin-top:-16px}
/* The maintained unified-record theme has two-ID authority; scope its flat instruction override to this focused task only. */
html[data-bleu-unified] #drawer#drawer[data-bux-record=task] .wqf-host .wvt-instr[data-bux-record-section]{padding:12px 0!important;margin:0 0 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
:root .wfs-native-focus form.title-editor.wfs-native-form>header>h3{font-size:21px!important;font-weight:600!important;line-height:1.3!important}
