.handoff-workbench{display:grid;gap:18px}.handoff-workbench>header,.handoff-card-top,.handoff-repair-entry,.handoff-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:14px}.handoff-workbench h2,.handoff-repair-entry h3,.handoff-dialog h2,.handoff-dialog h3{margin:0}.handoff-workbench header p,.handoff-repair-entry p{margin:6px 0;color:#64748b}.handoff-filters,.handoff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.handoff-filters{grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:end;padding:18px;background:#fff;border-radius:14px}.handoff-field{display:grid;gap:7px;min-width:0;font-size:14px;font-weight:600}.handoff-field input,.handoff-field select,.handoff-field textarea{min-width:0;width:100%;font-size:16px;box-sizing:border-box;padding:11px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#10283a}.handoff-field textarea{min-height:96px;resize:vertical}.handoff-case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.handoff-case{display:block;text-align:left;background:#fff;color:#132b40;border:1px solid #d4e1e9;border-radius:14px;padding:18px;min-width:0;cursor:pointer}.handoff-case h3{margin:12px 0 8px}.handoff-case p{white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400}.handoff-case-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px;font-size:13px;font-weight:400;color:#536779}.handoff-status{display:inline-block;padding:5px 9px;border-radius:20px;background:#e9f0f6;color:#304b66;font-size:12px;white-space:nowrap}.status-pending,.status-waiting{background:#fff2d8;color:#885708}.status-accepted,.status-awaiting_verification{background:#daf4ee;color:#076455}.status-returned,.handoff-overdue{color:#b42318}.status-completed{background:#e2f7e7;color:#216d39}.handoff-dashboard-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.handoff-dashboard-cards button{display:grid;gap:8px;padding:20px;text-align:left;background:#fff;border:1px solid #9ed7cd;border-left:5px solid #0b8c7d;border-radius:14px;color:#132b40}.handoff-dashboard-cards strong{font-size:30px}.handoff-dashboard-cards small{color:#536779;font-weight:400}.handoff-repair-entry{flex-wrap:wrap;margin:0 0 18px;padding:18px;background:#f0faf7;border:1px solid #b9ded4;border-radius:14px}.handoff-entry-buttons{display:flex;flex-wrap:wrap;gap:9px}.handoff-entry-buttons button,.handoff-inline-case,.handoff-workbench button,.handoff-dialog button{cursor:pointer;min-height:42px}.handoff-inline-case{display:flex;align-items:center;flex-wrap:wrap;gap:8px;width:100%;text-align:left;background:white;border:1px solid #cddfd9;padding:12px;border-radius:9px}.handoff-inline-case small{flex-basis:100%;color:#09705f}.handoff-dialog{width:min(980px,calc(100vw - 32px));max-width:100%;max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:16px;color:#142d40;background:#fff;box-shadow:0 15px 65px #001a3340}.handoff-dialog::backdrop{background:#10223499}.handoff-dialog>header{padding:20px;border-bottom:1px solid #dce7ee;position:sticky;top:0;background:#fff;z-index:2}.handoff-dialog>header small{color:#0b8c7d;display:block;margin-bottom:5px}.handoff-dialog>header button{border:0;background:#f1f5f9;min-width:42px;border-radius:8px;font-size:24px}.handoff-dialog-body{display:grid;gap:20px;padding:22px;overflow-wrap:anywhere}.handoff-form{display:grid;gap:18px}.handoff-form footer{display:flex;justify-content:flex-end;gap:10px;padding:12px 0;background:white;position:sticky;bottom:0;z-index:1}.handoff-dialog button{padding:10px 14px;border:1px solid #d1dee6;border-radius:8px;color:#19354c;background:#f4f7f9;font-weight:600}.handoff-dialog button.primary,.handoff-workbench button.primary{background:#0b8c7d;color:#fff;border-color:#0b8c7d}.handoff-dialog button:disabled{opacity:.5;cursor:wait}.handoff-notice{margin:0;padding:14px;border:1px solid #b7ded4;background:#effaf5;border-radius:10px;line-height:1.6}.handoff-material-input{display:grid;grid-template-columns:minmax(0,1fr) 95px auto;gap:10px;align-items:end;margin:12px 0}.handoff-error{background:#fff2f0;border:1px solid #f0b5af;padding:12px;border-radius:8px;color:#a42920;white-space:pre-wrap}.handoff-empty{padding:36px;text-align:center;color:#627384;background:white;border-radius:12px}.handoff-summary{padding:17px;border:1px solid #dbe6ed;border-radius:12px;background:#f7fafc}.handoff-summary small,.handoff-summary strong{display:block}.handoff-summary .handoff-grid{margin-top:12px}.handoff-summary p{white-space:pre-wrap}.handoff-summary p strong{display:inline}.handoff-action-zone{padding:16px;border:1px solid #afd9cf;border-radius:12px}.handoff-action-zone h3{margin-bottom:14px}.handoff-action-zone [data-action-form]:not(:empty){margin-top:18px;border-top:1px solid #d5e4de;padding-top:16px}.handoff-material-list{display:grid;gap:10px}.handoff-material-list article,.handoff-mapping{border:1px solid #d7e3e9;padding:14px;border-radius:10px}.handoff-mapping{display:grid;gap:10px}.handoff-mapping [data-map-options]{display:grid;gap:7px}.handoff-mapping [data-map-options] button{text-align:left;background:#fff}.handoff-mapping small{display:block;color:#627384}.handoff-photo-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px}.handoff-photo-thumbs button{padding:5px;background:white}.handoff-photo-thumbs img{width:100%;height:110px;object-fit:cover;border-radius:5px}.handoff-photo-thumbs span{font-size:12px;display:block}.handoff-photos [data-photo-full]{display:block;max-width:100%;width:100%;max-height:65dvh;object-fit:contain;background:#172432}.handoff-photos [data-photo-stage]{margin-top:12px}.handoff-photos [data-photo-stage]>div{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:10px;background:#f0f5f8}.handoff-timeline{padding-left:24px}.handoff-timeline li{padding:10px 0}.handoff-timeline small{display:block;color:#6b7b8c;margin:4px 0}.handoff-timeline p{white-space:pre-wrap;margin:5px 0}.handoff-dialog [hidden]{display:none!important}.handoff-counts{color:#536779;font-size:14px}
@media(max-width:700px){.handoff-filters{grid-template-columns:1fr 1fr}.handoff-filters button{grid-column:1/-1}.handoff-case-grid{grid-template-columns:1fr}.handoff-dashboard-cards{gap:9px}.handoff-dashboard-cards button{padding:14px}.handoff-dashboard-cards small{line-height:1.5}.handoff-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);margin:auto;border-radius:12px}.handoff-dialog>header{padding:14px}.handoff-dialog h2{font-size:20px}.handoff-dialog-body{padding:14px;gap:16px}.handoff-grid{grid-template-columns:1fr}.handoff-material-input{grid-template-columns:minmax(0,1fr) 78px}.handoff-material-input>button{grid-column:1/-1;justify-self:end}.handoff-entry-buttons{width:100%}.handoff-entry-buttons button{flex:1 1 150px}.handoff-photo-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}.handoff-photo-thumbs img{height:85px}.handoff-card-top{align-items:flex-start}.handoff-workbench>header{align-items:flex-start}.handoff-form footer{padding-bottom:calc(10px + env(safe-area-inset-bottom))}}
.handoff-notifications{padding:16px;background:#fff;border:1px solid #d3e3e9;border-radius:12px}.handoff-notifications summary{cursor:pointer;font-weight:700;color:#146a5e}.handoff-notifications>div{display:grid;gap:8px;margin-top:12px}.handoff-notifications button{display:grid;gap:5px;text-align:left;padding:12px;border:1px solid #dce7ec;border-radius:8px;background:#f7fafb;color:#1e344a}.handoff-notifications span{font-size:13px;color:#637789}
.handoff-dialog{overflow-y:auto;overscroll-behavior:contain}.handoff-date-hint{font-weight:400;font-size:13px;line-height:1.5;color:#66768a}

/* Phase 262: task-first workbench; detail dialogs retain their existing layout. */
.handoff-workbench{gap:14px;font-size:16px}.handoff-workbench .handoff-workbench-toolbar{gap:12px;flex-wrap:wrap}.handoff-workbench-toolbar>button,.handoff-results-toolbar>button{padding:8px 14px;border:1px solid #cbdbe3;border-radius:8px;background:#fff;color:#345366;font-size:14px}.handoff-type-tabs{display:flex;gap:4px;padding:4px;border:1px solid #d4e2e8;border-radius:11px;background:#edf3f6}.handoff-type-tabs button{padding:10px 20px;border:0;border-radius:8px;background:transparent;color:#526a7a;font-size:16px;font-weight:700}.handoff-type-tabs button[aria-pressed="true"]{background:#0b8c7d;color:white;box-shadow:0 2px 5px #0b8c7d20}.handoff-workbench button:focus-visible,.handoff-workbench input:focus-visible,.handoff-workbench select:focus-visible{outline:3px solid #268bb7;outline-offset:3px}.handoff-workbench .handoff-filters{grid-template-columns:minmax(155px,1fr) minmax(155px,1fr) minmax(220px,2fr) auto;gap:12px;padding:16px;border:1px solid #e0e8ed;border-radius:10px}.handoff-filters>button{padding:10px 20px;border:0;border-radius:8px;font-size:16px;font-weight:700}.handoff-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.handoff-counts{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:14px}.handoff-counts strong{color:#193d4e;font-size:16px}.handoff-case-list{border:1px solid #d4e2e8;border-radius:12px;overflow:hidden;background:white}.handoff-list-columns,.handoff-case-list .handoff-case-row{display:grid;grid-template-columns:minmax(200px,1.3fr) minmax(190px,1.5fr) minmax(150px,1fr) minmax(160px,1fr);gap:18px;padding:14px 18px}.handoff-list-columns{background:#eef4f7;color:#526a7a;font-size:14px;font-weight:600;border-bottom:1px solid #d4e2e8}.handoff-case-list .handoff-case-grid{display:grid;grid-template-columns:1fr;gap:0}.handoff-case-list .handoff-case-row{width:100%;border:0;border-bottom:1px solid #e5edf1;border-radius:0;background:#fff;align-items:center;font:inherit;line-height:1.45}.handoff-case-list .handoff-case-row:last-child{border-bottom:0}.handoff-case-list .handoff-case-row:hover{background:#f2faf8}.handoff-case-row>span{min-width:0;overflow-wrap:anywhere}.handoff-case-identity,.handoff-case-people,.handoff-case-progress,.handoff-case-task{display:grid;gap:5px}.handoff-case-identity>strong{font-size:16px;font-variant-numeric:tabular-nums;letter-spacing:.1px}.handoff-device{color:#375367;font-size:14px}.handoff-type-label{justify-self:start;font-size:13px;font-weight:600;color:#13685e}.handoff-type-label.type-admin_material{color:#3b60a0}.handoff-case-task>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.handoff-cell-label{display:none}.handoff-case-people{font-size:14px;color:#345366}.handoff-case-people small{font-size:13px;color:#71828c}.handoff-case-progress{justify-items:start;font-size:14px;color:#526a7a}.handoff-case-progress .handoff-status{font-size:13px}.handoff-case-open{font-size:13px;color:#087e70;font-weight:600}.handoff-empty{margin:0;padding:32px 18px}.handoff-empty strong{font-size:16px;color:#345366}.handoff-empty p{font-size:14px;margin:8px 0 0}.handoff-workbench .handoff-notifications{padding:14px 16px;background:#f8fafb;border-color:#dce6eb}.handoff-notifications summary{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px}.handoff-notifications summary>span:first-child:before{content:'▸';display:inline-block;margin-right:8px}.handoff-notifications[open] summary>span:first-child:before{content:'▾'}.handoff-notifications summary small{font-size:13px;font-weight:400;margin-left:6px;color:#627887}.handoff-notifications>div{max-height:320px;overflow:auto;overscroll-behavior:contain}.handoff-notification-hint{font-size:13px;color:#627887;margin:2px 0 8px}.handoff-workbench .handoff-notifications button{font-size:14px}.handoff-notification-outside{margin:0;padding:10px 14px;font-size:14px;color:#526a7a;background:#f1f5f8;border-radius:8px}.handoff-notification-outside button{margin-left:8px;border:0;background:transparent;color:#087e70;text-decoration:underline;font-size:14px}.handoff-workbench [hidden]{display:none!important}[aria-busy="true"] .handoff-case-list,[aria-busy="true"] .handoff-notifications{opacity:.55;pointer-events:none}
@media(max-width:1100px){.handoff-workbench .handoff-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.handoff-filters>label:has([name="q"]){grid-column:1/-1}.handoff-filters>button{grid-column:1/-1}.handoff-list-columns{display:none}.handoff-case-list .handoff-case-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px 20px;padding:16px}.handoff-case-identity{grid-column:1}.handoff-case-task{grid-column:2;grid-row:1}.handoff-case-people{grid-column:1}.handoff-case-progress{grid-column:2;grid-template-columns:auto 1fr;align-items:center;gap:6px}.handoff-case-open{grid-column:1/-1}.handoff-cell-label{display:block;font-size:13px;color:#71828c}}
@media(max-width:700px){.handoff-workbench{gap:12px}.handoff-type-tabs{width:100%;box-sizing:border-box}.handoff-type-tabs button{flex:1;padding:10px 6px;font-size:14px}.handoff-workbench-toolbar>button{margin-left:auto}.handoff-workbench .handoff-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px}.handoff-filters>label:has([name="q"]){grid-column:1/-1}.handoff-filters>button{grid-column:1/-1}.handoff-counts{display:grid;gap:4px}.handoff-results-toolbar>button{flex-shrink:0;padding:8px 10px}.handoff-case-list .handoff-case-row{gap:12px;padding:14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.handoff-case-identity{grid-column:1/-1}.handoff-case-task{grid-column:1/-1;grid-row:2}.handoff-case-progress{grid-template-columns:1fr;justify-self:end;text-align:right;justify-items:end}.handoff-case-people{align-self:start}.handoff-notifications summary{align-items:start}.handoff-notifications summary small{display:block;margin:4px 0 0 16px}.handoff-notifications summary>span:last-child{white-space:nowrap}.handoff-workbench button:focus-visible{outline-offset:-3px}}
