/* Duty workspace: presentation only. Existing schedule and handover validators remain authoritative. */
.duty-workspace{color:var(--work-ink);--dw-gap:20px}
.duty-workspace .page-head{align-items:center;margin-bottom:20px}
.duty-workspace .page-head h1{font-size:28px;letter-spacing:-.5px;margin:0 0 5px}
.duty-workspace .page-head p{font-size:14px;color:var(--work-sub);margin:0}
.duty-workspace .dr-tabs{border:0;border-bottom:1px solid var(--work-line);border-radius:0;background:transparent;padding:0 0 10px;gap:6px;margin:20px 0 24px}
.duty-workspace .dr-tabs .btn{border:1px solid transparent;border-radius:4px;padding:10px 14px;background:transparent;color:var(--work-sub);box-shadow:none;font-size:14px}
.duty-workspace .dr-tabs .btn.active{color:var(--work-ink);background:var(--work-paper);border-color:var(--work-line);box-shadow:none;font-weight:600}
.duty-workspace .dr-tabs .btn:hover{background:var(--work-soft)!important;color:var(--work-ink)}
.duty-workspace .dr-hero.dw-shift{display:block;background:var(--work-paper);color:var(--work-ink);padding:24px 26px 0;border:1px solid var(--work-line);border-radius:5px;margin:0 0 20px;box-shadow:none}
.duty-workspace .dw-shift .dr-eyebrow{color:var(--work-key);font-size:11px;font-weight:600;letter-spacing:.08em}
.duty-workspace .dw-shift h2{color:var(--work-ink);font-size:27px;line-height:1.25;font-weight:600;margin:10px 0}
.duty-workspace .dw-shift p{color:var(--work-sub);font-size:14px;margin:10px 0 20px;line-height:1.65;max-width:850px}
.dw-shift-period{display:flex;gap:12px;flex-wrap:wrap;font-size:15px;color:var(--work-ink);font-variant-numeric:tabular-nums}
.dw-shift-footer{border-top:1px solid var(--work-line);padding:17px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.dw-next{display:flex;align-items:center;gap:12px;min-width:0;color:var(--work-sub)}
.dw-next>div{min-width:0}.dw-next small{display:block;font-size:12px;margin-bottom:4px}.dw-next strong{font-size:14px;font-weight:500;color:var(--work-ink);overflow-wrap:anywhere}
.dw-shift-footer>.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dw-shift-footer .dpublish-started{color:var(--work-key)}
.dw-current-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:var(--dw-gap);align-items:start}
.dw-primary,.dw-aside{min-width:0}.dw-aside{display:grid;gap:20px}
.duty-workspace .dr-routines,.dw-context,.duty-workspace .rr-board.dw-summary{border:1px solid var(--work-line);border-radius:5px;background:var(--work-paper);padding:20px;margin:0;box-shadow:none}
.dw-context>header{display:flex;gap:9px;align-items:center;margin-bottom:12px;color:var(--work-sub)}
.dw-context h3{font-size:16px;margin:0;color:var(--work-ink);font-weight:600}
.dw-hint{font-size:13px!important;color:var(--work-sub);line-height:1.6;margin:8px 0 14px}
.dw-context-foot{border-top:1px solid var(--work-line);padding-top:14px;margin-bottom:0}
.dw-case-group{border-top:1px solid var(--work-line);padding:0}
.dw-case-group summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:14px 0;font-weight:500;font-size:14px;list-style:none}
.dw-case-group summary:before{content:'›';font-size:20px;color:var(--work-sub);width:12px;transition:transform .12s}
.dw-case-group[open] summary:before{transform:rotate(90deg)}
.dw-case-group summary::-webkit-details-marker{display:none}.dw-case-group summary span{margin-left:auto;background:var(--work-soft);border:1px solid var(--work-line);border-radius:3px;min-width:26px;text-align:center;font-size:12px;padding:1px 6px}
.dw-case{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:12px 0;border-top:1px solid var(--work-line)}
.dw-case strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.dw-case small{font-size:12px;color:var(--work-sub);grid-column:1}.dw-case .btn{grid-column:2;grid-row:1/3;align-self:center}
.duty-workspace .dm-routine-head{margin:0 0 14px;gap:12px;align-items:center}.duty-workspace .dm-routine-head h2{font-size:18px;font-weight:600;margin:0;display:flex;gap:9px;align-items:center}.duty-workspace .dm-routine-head h2 svg{color:var(--work-sub)}
.dw-progress-label{display:flex;justify-content:space-between;gap:12px;color:var(--work-sub);font-size:12px;margin-bottom:8px;font-variant-numeric:tabular-nums}
.dw-progress{appearance:none;width:100%;height:4px;display:block;border:0;border-radius:0;background:var(--work-soft);color:var(--work-key);margin-bottom:8px}.dw-progress::-webkit-progress-bar{background:var(--work-soft)}.dw-progress::-webkit-progress-value{background:var(--work-key)}.dw-progress::-moz-progress-bar{background:var(--work-key)}
.duty-workspace .dm-routine.dw-routine{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;border:0;border-bottom:1px solid var(--work-line);border-radius:0;padding:18px 0;margin:0;background:transparent;box-shadow:none}
.duty-workspace .dw-routine:last-child{border-bottom:0;padding-bottom:0}
.duty-workspace :is(.dm-icon,.dr-icon){background:transparent;color:var(--work-sub);border-radius:0;width:28px;height:28px;flex-basis:28px}
.duty-workspace .dw-routine h3{font-size:15px;font-weight:600;margin:0 0 7px;line-height:1.45}
.duty-workspace .dw-routine p{font-size:12px;margin:7px 0;line-height:1.55}
.duty-workspace .dm-routine-actions{grid-column:2;max-width:none;justify-content:flex-start;gap:6px}
.dw-completion-notes{font-size:13px;color:var(--work-sub);margin-top:9px}.dw-completion-notes summary{cursor:pointer;color:var(--work-key);padding:4px 0}.dw-completion-notes .prewrap{color:var(--work-ink);line-height:1.6;margin-top:8px}
.dw-no-pending{font-size:13px;color:var(--work-sub);margin-bottom:16px}.dw-no-pending>summary{cursor:pointer;padding:4px 0}
.duty-workspace .dpublish-empty{padding:14px;border-radius:4px;background:var(--work-soft);border-color:var(--work-line);line-height:1.6}
.duty-workspace .dr-section{margin:0 0 14px}.duty-workspace .dr-section h2{font-size:18px;font-weight:600;margin:8px 0}.duty-workspace .dr-section p{font-size:13px;margin:4px 0}
.duty-workspace :is(.dr-duty-card,.dr-tile,.dm-overview,.dm-calendar,.dm-day-detail,.dr-calendar){border-color:var(--work-line);border-radius:5px;background:var(--work-paper);box-shadow:none}
.duty-workspace .dr-card-heading{padding:18px;gap:12px}.duty-workspace .dr-card-heading h3{font-size:16px;font-weight:600}.duty-workspace .dr-card-heading p{font-size:13px}.duty-workspace .dr-card-foot{padding:12px 18px;border-color:var(--work-line)}
.duty-workspace :is(.dr-person,.dr-readiness>div){border-radius:3px;background:var(--work-soft)}
.duty-workspace .rr-board.dw-summary{display:block}.duty-workspace .rr-board.dw-summary h3{font-size:16px;font-weight:600;margin:0 0 8px}.duty-workspace .rr-board.dw-summary p{font-size:13px;color:var(--work-sub);line-height:1.6}.duty-workspace .rr-board.dw-summary .actions{margin-top:14px;justify-content:flex-start}
.duty-workspace .rr-board.dw-summary>span{display:none}
.duty-workspace .dm-toolbar{margin:16px 0;gap:12px}.duty-workspace .dm-view{border-radius:4px;padding:3px;background:var(--work-paper)}.duty-workspace .dm-view .btn.selected{background:var(--work-select);color:var(--work-key)}
.duty-workspace .dm-overview{padding:18px 20px;margin:16px 0}.duty-workspace .dm-overview small{color:var(--work-sub);letter-spacing:.06em;font-weight:500}.duty-workspace .dm-overview h2{font-size:22px;font-weight:600}
.duty-workspace .dm-day{border-color:var(--work-line);min-height:116px;padding:6px}.duty-workspace .dm-day.outside{background:var(--work-soft)}.duty-workspace .dm-day.selected{box-shadow:inset 0 0 0 2px var(--work-key)}.duty-workspace .dm-weekday{background:var(--work-soft);color:var(--work-sub);font-weight:500}
.duty-workspace .dm-slot{border:1px solid var(--work-line);border-radius:3px;background:var(--work-select);color:var(--work-ink);padding:7px;gap:4px;box-shadow:none;overflow-wrap:normal}
.duty-workspace .dm-slot.draft{background:var(--work-soft);border-style:dashed}.duty-workspace .dm-slot:hover{border-color:var(--work-key)}
.duty-workspace .dm-slot strong{font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.duty-workspace .dm-slot small{color:var(--work-sub)}.duty-workspace .dm-date{border-radius:3px;font-variant-numeric:tabular-nums}.duty-workspace .dm-day.today .dm-date b{background:var(--work-key);color:var(--work-paper);border-radius:3px}
.duty-workspace .dm-detail-row{padding:16px 20px;border-color:var(--work-line)}.duty-workspace .dm-day-detail>header{padding:16px 20px;background:var(--work-soft)}.duty-workspace .dm-day-detail h3{font-size:16px;font-weight:600}.duty-workspace .dm-day-detail small{color:var(--work-sub);font-weight:500;letter-spacing:.06em}
.duty-workspace .dr-slot{border:1px solid var(--work-line);background:var(--work-select);border-radius:3px;box-shadow:none}.duty-workspace .dr-slot.draft{border-style:dashed;background:var(--work-soft)}
.duty-workspace .dr-tile{padding:20px}.duty-workspace .dr-tile h3{font-size:17px;margin-top:12px}.duty-workspace .dr-tile p{font-size:14px}
.duty-workspace-modal{color:var(--work-ink)}
.duty-workspace-modal .modal-head{background:var(--work-paper);padding:20px 24px}.duty-workspace-modal .modal-head h2{font-size:22px;font-weight:600;letter-spacing:-.3px}.duty-workspace-modal .modal-body{background:var(--work-soft);padding:24px}
.duty-workspace-modal.dp-report-modal{width:min(1120px,96vw)}
.duty-workspace-modal #edit-form.dw-report-form{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px;align-items:start}
.dw-report-fields,.dw-report-aside{min-width:0}.dw-report-aside{display:grid;gap:16px}.dw-report-aside .dw-context{padding:18px}.dw-report-aside .dw-context>p{font-size:14px}
.dw-report-step{padding:13px 0;border-top:1px solid var(--work-line)}.dw-report-step strong{font-size:14px;font-weight:500}.dw-report-step small{display:block;font-size:13px;line-height:1.6;color:var(--work-sub);margin-top:4px}
.duty-workspace-modal :is(.dp-report-intro,.dp-report-section,.dpublish-status,.dr-form-note,.dm-form-note,.multi){border-radius:4px;border-color:var(--work-line);box-shadow:none}
.duty-workspace-modal .dp-report-intro{background:var(--work-paper);padding:18px;margin-bottom:16px}.duty-workspace-modal .dp-report-intro strong{font-size:16px}.duty-workspace-modal .dp-report-intro p{font-size:13px;color:var(--work-sub)}
.duty-workspace-modal .dp-report-section{padding:20px;margin-bottom:16px;background:var(--work-paper)}.duty-workspace-modal .dp-report-section:last-child{margin-bottom:0}.duty-workspace-modal .dp-report-section>header{gap:10px;margin-bottom:18px}.duty-workspace-modal .dp-report-section>header>span{color:var(--work-sub)}.duty-workspace-modal .dp-report-section h3{font-size:16px;font-weight:600}.duty-workspace-modal .dp-report-section p{color:var(--work-sub)}
.duty-workspace-modal .dp-report-fields{gap:16px}.duty-workspace-modal .dp-report-fields label{font-size:14px;font-weight:500}.duty-workspace-modal textarea[name=description]{min-height:300px;line-height:1.7}.duty-workspace-modal .dp-report-urgent{border-left:1px solid var(--work-line);background:var(--work-soft)}
.duty-workspace-modal .dp-report-people strong{font-size:16px;font-weight:600}.duty-workspace-modal .dp-report-text{font-size:14px}.duty-workspace-modal .modal-foot{background:var(--work-paper)}
@media(max-width:1100px){.dw-current-grid{grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr)}.duty-workspace .dr-tabs{gap:4px}.duty-workspace .dr-tabs .btn{font-size:13px}}
@media(max-width:900px){.dw-current-grid{grid-template-columns:1fr}.dw-aside{grid-template-columns:1fr 1fr}.duty-workspace-modal #edit-form.dw-report-form{grid-template-columns:1fr}.dw-report-aside{grid-template-columns:1fr 1fr}}
@media(max-width:760px){
 .duty-workspace .page-head h1{font-size:25px}.duty-workspace .page-head{gap:14px}.duty-workspace .page-head>.actions{display:flex;width:100%;gap:8px;flex-wrap:wrap}.duty-workspace .page-head>.actions .btn{flex:1;font-size:13px;white-space:normal}
 .duty-workspace .dr-tabs{flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:0 2px 10px;margin:18px 0;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.duty-workspace .dr-tabs .btn{flex:0 0 auto;font-size:14px;min-height:44px}
 .duty-workspace .dr-hero.dw-shift{padding:19px 18px 0}.duty-workspace .dw-shift h2{font-size:23px}.dw-shift-period{font-size:13px;line-height:1.6}.dw-shift-footer{gap:16px}.dw-shift-footer>.actions{width:100%}.dw-shift-footer>.actions .btn{flex:1;white-space:normal}
 .dw-aside,.dw-report-aside{grid-template-columns:1fr}.duty-workspace .dr-routines,.dw-context,.duty-workspace .rr-board.dw-summary{padding:17px}.duty-workspace .dm-routine-head{align-items:flex-start}.duty-workspace .dm-routine-head .actions{gap:6px}.duty-workspace .dm-routine-head h2{font-size:17px}
 .duty-workspace .dm-routine-body{min-width:0}.duty-workspace .dm-routine-actions .btn{flex:0 1 auto}.duty-workspace .dm-routine-actions{grid-column:1/-1;gap:6px}.duty-workspace .dm-routine.dw-routine{grid-template-columns:24px minmax(0,1fr);gap:10px}
 .duty-workspace .dm-day{min-height:62px;padding:2px}.duty-workspace .dm-slots{display:none}.duty-workspace .dm-mobile-count{display:block;font-size:10px}.duty-workspace .dm-date{flex-direction:column;min-height:52px;gap:4px}.duty-workspace .dm-weekday{padding:10px 2px}.duty-workspace .dm-calendar{border-radius:4px}.duty-workspace .dm-day.dw-has-draft .dm-mobile-count{text-decoration:underline dotted;text-underline-offset:3px}
 .duty-workspace .dm-detail-row{padding:16px;display:block}.duty-workspace .dpublish-actions{margin-top:12px}.duty-workspace .dpublish-actions .btn{white-space:normal}.duty-workspace .dm-day-detail>header{padding:16px}.duty-workspace .dm-toolbar>.actions{width:100%}.duty-workspace .dm-toolbar>.actions .btn{flex:1}.duty-workspace .dm-view{width:100%}.duty-workspace .dm-view .btn{flex:1}
 .duty-workspace-modal.dp-report-modal{width:100vw}.duty-workspace-modal .modal-head,.duty-workspace-modal .modal-body{padding:16px}.duty-workspace-modal .modal-head h2{font-size:20px}.duty-workspace-modal .dp-report-fields,.duty-workspace-modal .dp-report-people{grid-template-columns:1fr}.duty-workspace-modal .dp-report-section{padding:16px}.duty-workspace-modal textarea[name=description]{min-height:300px;font-size:16px}
 .duty-workspace .dr-card-heading>.grow{flex:1 1 180px;min-width:0}.duty-workspace .dr-card-heading p{overflow-wrap:anywhere}.duty-workspace .dr-catalog{grid-template-columns:1fr}.dw-case{grid-template-columns:minmax(0,1fr) auto}
}
@media print{.dw-report-aside{display:none}.duty-workspace-modal #edit-form.dw-report-form{display:block}.duty-workspace-modal .modal-body{background:white}}
body.dark .duty-workspace .dr-tabs .btn.active{background:var(--work-paper);color:var(--work-ink);border-color:var(--work-line);box-shadow:none}
.duty-workspace .section-title{flex-wrap:wrap;gap:12px}.duty-workspace .section-title h2{font-size:18px}.duty-workspace .section-title .actions{flex-wrap:wrap}
.duty-workspace .record-card{border-radius:5px;border-color:var(--work-line);background:var(--work-paper);box-shadow:none;flex-wrap:wrap}
.duty-workspace .record-card .record-main{min-width:0;flex:1 1 220px}.duty-workspace .record-card .actions{flex-wrap:wrap}
.duty-workspace .rr-actions{margin-top:14px}.duty-workspace .rr-progress strong{color:var(--work-key);font-size:17px}.duty-workspace .rr-progress progress{height:4px;accent-color:var(--work-key)}
.duty-workspace .rr-main>.eyebrow{color:var(--work-sub);letter-spacing:.04em;font-size:10px;font-weight:500}
.duty-workspace-modal :is(.dd-symbol,.rr-symbol){background:transparent;color:var(--work-sub);border-radius:0;width:28px;height:28px}
.duty-workspace-modal :is(.rr-note,.dd-info){border-radius:4px;background:var(--work-soft);color:var(--work-sub)}
.duty-workspace-modal #hg-slot-details{border:1px solid var(--work-line);border-radius:4px;background:var(--work-soft);color:var(--work-sub)}
@media(max-width:760px){.duty-workspace .page-head>div:first-child{width:100%;text-align:left}.duty-workspace .record-card .grow{flex:1 1 170px;min-width:0}.duty-workspace .record-card .actions{width:100%;justify-content:flex-start}.duty-workspace .record-card .actions .btn{white-space:normal}}
.duty-workspace-modal #edit-form.dw-report-form{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}

.duty-workspace .dr-tabs .btn:focus-visible{outline:2px solid var(--work-ink);outline-offset:2px}
