.work-media-picker,.dispatch-task,.stage-work{border:1px solid #dbe7dd;border-radius:18px;padding:16px;background:#f7faf6;min-width:0}
.work-media-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.work-media-source{display:grid;place-items:center;position:relative;min-height:48px;padding:8px;border:1px solid #a8bfaa;border-radius:10px;background:#fff;color:#23482e;text-align:center;font-weight:700;cursor:pointer}
.work-media-source:hover,.work-media-source:focus-within{background:#e8f3e6;border-color:#4e7954}
.work-media-source:focus-within{outline:2px solid #4e7954;outline-offset:2px}
.work-media-source input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
[data-media-native-sources] .work-media-source{justify-items:start;gap:4px;min-width:0;text-align:left}
[data-media-native-sources] .work-media-source input[type=file]{position:static;opacity:1;min-height:44px;box-sizing:border-box;font:inherit;font-size:13px;color:inherit}
[data-media-native-sources] input[type=file]::file-selector-button{min-height:44px;margin-inline-end:8px;padding:4px 10px;border:1px solid currentColor;border-radius:7px;background:transparent;color:inherit;font:inherit;cursor:pointer}
@media(max-width:600px){[data-media-native-sources] .work-media-sources{grid-template-columns:1fr}}
.wf-check:has(input:not(:disabled)){cursor:pointer}
.wf-check input[type=checkbox]{flex:none}
.wf-routing-history{gap:9px;border:1px solid #dbe7dd;border-radius:14px;padding:13px;background:#f7faf6}
.wf-routing-history h3{font-size:15px}
.wf-routing-history .wf-stage-list li{background:#fff}
.wf-routing-history time{white-space:nowrap}
.wf-routing-reason{gap:8px}
.work-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
.work-media-grid figure{margin:0;min-width:0;overflow:hidden;border:1px solid #dce7df;border-radius:13px;background:#fff}
.work-media-grid img,.work-media-grid video{width:100%;height:155px;object-fit:cover;display:block;background:#e3ece5}
.work-media-document{display:grid;place-items:center;min-height:74px;padding:10px;border-bottom:1px solid var(--line,#dce7df);font-weight:700}
.work-media-grid>figure:has([data-progress-pdf-actions] [data-pdf-viewer]:not([hidden])){grid-column:1/-1}
[data-progress-pdf-actions]>[data-sales-pdf-actions]{width:100%;min-width:0}
.work-media-grid figcaption{display:grid;gap:5px;padding:10px;font-size:12px;overflow-wrap:anywhere}
.work-media-grid small{font-size:11px;color:#607367}
.work-share{display:flex!important;align-items:flex-start;gap:9px;font-size:13px;line-height:1.5}
.work-share input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;accent-color:#284b40}
.task-three-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.task-three-actions button{font-size:12px;min-height:48px;padding:9px 5px;overflow-wrap:anywhere}
.dispatch-section{padding-top:16px;border-top:1px solid #dce7df}.dispatch-task h4{margin:0;font-size:15px}.dispatch-task p{margin:0;overflow-wrap:anywhere}
.dispatch-task input,.stage-work input{max-width:100%;min-width:0}.dispatch-task fieldset{border:1px solid #dce7df;border-radius:12px;padding:12px}
.customer-media-timeline{display:grid;gap:24px}.customer-media-timeline article{display:grid;gap:10px;border-left:3px solid #b4cf9d;padding-left:15px}
.customer-media-timeline img,.customer-media-timeline video{max-width:100%;width:100%;max-height:460px;object-fit:contain;border-radius:16px;background:#e5eee7}
.customer-media-timeline .panel-head{align-items:flex-start;flex-direction:column;gap:4px}
.pickup-handoff-card{min-width:0}
.pickup-handoff-title{display:flex;align-items:center;gap:6px;overflow-wrap:anywhere}
.pickup-handoff-title svg{flex:none}
.pickup-handoff-data,.pickup-handoff-fields,.pickup-handoff-files{display:grid;gap:8px}
.pickup-handoff-data,.pickup-handoff-files{grid-template-columns:repeat(2,minmax(0,1fr))}
.pickup-handoff-data{margin:0}
.pickup-handoff-data dt{color:var(--muted);font-size:12px}
.pickup-handoff-data dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.pickup-handoff-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.pickup-photo-source{position:relative;min-height:48px;text-align:center}
.pickup-photo-source:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.pickup-photo-source input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.job-drive-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.job-drive-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.job-drive-search input,.job-drive-filters select{min-width:0;min-height:44px}
.job-drive-group{display:grid;gap:8px}
.job-drive-group h3,.job-drive-folder-heading p{margin:0;font-size:13px;color:var(--muted)}
.job-drive-folder{display:flex;align-items:center;text-align:start;gap:10px;min-height:52px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:inherit;overflow-wrap:anywhere}
.job-drive-folder:hover,.job-drive-folder:focus-visible{border-color:var(--accent)}
.job-drive-folder-icon{display:flex;flex:none;color:var(--accent)}
.job-drive-folder small,.job-drive-file small{display:block;color:var(--muted)}
.job-drive-pages{display:flex;align-items:center;justify-content:center;gap:10px}
.job-drive-folder-heading h3{margin:4px 0 0;overflow-wrap:anywhere}
.job-drive-department{border-top:1px solid var(--line);padding-top:14px}
[data-drive-folder] h4,[data-drive-folder] .panel-head{margin:0}
.job-drive-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,13rem),1fr));gap:10px}
.job-drive-file{overflow:hidden;margin:0;border:1px solid var(--line);border-radius:12px}
.job-drive-file img{display:block;width:100%;height:145px;object-fit:contain;background:var(--surface)}
.job-drive-file figcaption{display:grid;gap:6px;padding:10px;overflow-wrap:anywhere}
@media(max-width:450px){.job-drive-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.job-drive-filters select:first-child{grid-column:1/-1}}
@media(max-width:600px){.pickup-handoff-fields,.pickup-handoff-files{grid-template-columns:1fr}}
@media(max-width:430px){.work-media-picker,.dispatch-task,.stage-work{padding:12px}.work-media-grid{gap:8px}.work-media-grid img,.work-media-grid video{height:130px}.work-media-picker .grid.two{grid-template-columns:1fr}.work-media-picker input[type=file]{font-size:12px}}

[data-progress-photo-tile] .attachment-preview-thumbnail{display:block;width:100%;aspect-ratio:1;overflow:hidden}
[data-progress-photo-tile] .attachment-preview-thumbnail:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
[data-progress-photo-tile] .attachment-preview-thumbnail img{width:100%;height:100%;object-fit:cover}
[data-progress-photo-tile] figcaption{gap:0;padding:8px}
[data-progress-photo-tile] figcaption small{line-height:1.4}
[data-progress-photo-tile] [data-progress-photo-controls]{margin-top:4px;min-width:0}
[data-progress-photo-tile] [data-progress-photo-controls]>summary{min-height:40px;padding:8px 0}

.wf-production-step-label{display:inline-flex;align-items:center;gap:.55rem;max-width:100%;min-width:0;vertical-align:middle}
.wf-production-step-label>span:last-child{min-width:0;overflow-wrap:anywhere}
.wf-production-step-icon{display:inline-grid;place-items:center;flex:0 0 2rem;width:2rem;height:2rem;border-radius:.6rem}
.wf-production-step-icon>svg{width:1.3rem;height:1.3rem}
.wf-production-step-icon--box{color:#174a9d;background:#e4efff}
.wf-production-step-icon--neon{color:#6c279a;background:#f2e5fc}
.wf-production-step-icon--wire{color:#075e70;background:#ddf5fa}
.wf-production-step-icon--weld{color:#91460c;background:#fff0da}
.wf-production-step-icon--spray{color:#9d235b;background:#fce5ef}
.wf-production-step-icon--sticker{color:#24623d;background:#e2f4e8}
