:root{--d-blue:#245ff0;--d-ink:#172d50;--d-muted:#70839e;--d-border:#e0e7f2}
/* Rest-only calendar: no business metrics are removed from shared work calendars. */
.rest-toolbar,.rest-filters{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.rest-filters{justify-content:flex-start}.rest-filters>label{display:flex;align-items:center;gap:8px;color:#647995;font-size:13px}.rest-filters select,.rest-month-label input{border:1px solid #dbe5f4;border-radius:8px;background:white;padding:9px 11px;color:#223a61;font:inherit;max-width:100%}.rest-month-label input{width:165px}.rest-legend{display:flex;gap:8px;margin-left:auto}.rest-state{font-size:12px;padding:5px 9px;border-radius:6px}.rest-state.approved{background:#e7f5ee;color:#247150}.rest-state.submitted{background:#fff3da;color:#8c611b}.rest-help{font-size:12px;margin-bottom:15px}.rest-week,.rest-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.rest-week span{text-align:center;font-size:12px;color:#7b8daa;padding:7px}.rest-day{position:relative;border:1px solid #e0e8f5;border-radius:9px;min-height:112px;padding:7px;min-width:0;background:#fff}.rest-day.outside{background:#f7f9fc;color:#b2bfd0}.rest-day.selected{background:#f3f7ff;border-color:#7b9fea}.rest-day.today{border-color:#2864ee}.rest-date{border:0;background:transparent;width:100%;display:flex;justify-content:space-between;gap:4px;align-items:center;font-size:14px;font-weight:600;text-align:left;padding:2px 3px 6px;color:#314b73;cursor:pointer}.rest-date:disabled{color:#abb8cc;cursor:default}.rest-date small{font-size:10px;font-weight:400;color:#2e64dc}.rest-day-people{display:flex;flex-direction:column;gap:4px}.rest-person{border:1px solid #d6eadd;background:#edf8f1;color:#285e43;border-radius:6px;padding:5px 7px;min-width:0;width:100%;font:inherit;text-align:left;font-size:12px;cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 5px;line-height:1.5;overflow-wrap:anywhere}.rest-person.submitted{border-color:#f0dfb4;background:#fff8e8;color:#846022}.rest-person small{font-size:10px;opacity:.85}.rest-person[draggable=true]{cursor:grab}.rest-person.dragging{opacity:.4}.rest-day.drop-target{background:#eaf2ff;border:2px dashed #2b63e7;padding:6px}.rest-no-one{font-size:10px;color:#a0aec2;display:block;padding:7px 3px}.rest-selected{border-top:1px solid #e6edf7;margin-top:16px;padding-top:8px}.rest-selected h4{font-size:14px;color:#344e72;margin:8px 0 12px}.rest-selected .rest-person{width:auto;min-width:95px}.rest-quota-item{display:flex;flex-wrap:wrap;gap:10px 20px;padding:12px 0;border-bottom:1px solid #edf1f7;font-size:13px;color:#647795}.rest-quota-item strong{color:#294469;min-width:70px}.rest-quota-item b{color:#286943}.rest-quota-item:last-child{border-bottom:0}.rest-detail .d-key-values{grid-template-columns:85px minmax(0,1fr)}.rest-detail h4{margin-top:28px}.rest-change{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:12px;align-items:center;background:#eaf1ff;padding:18px;border-radius:10px;margin:20px 0}.rest-change small{display:block;color:#6a80a1;margin-bottom:8px}.rest-change strong{color:#254b83;font-size:15px;line-height:1.8;overflow-wrap:anywhere}.rest-adjust-confirm>p{font-size:13px;line-height:1.8}.rest-conflicts,.rest-error{padding:12px 16px;background:#fff2e8;color:#885021;border-radius:8px;font-size:13px;line-height:1.75;overflow-wrap:anywhere}.rest-error[hidden]{display:none}.rest-ack{display:flex;align-items:flex-start;gap:8px;line-height:1.75;font-size:13px;margin:18px 0}.rest-ack input{margin-top:5px;flex-shrink:0}.rest-notice{padding:12px;background:#eaf2ff;color:#2d558d;border-radius:8px}.rest-adjust-form .field{min-width:0}.rest-adjust-form input{max-width:100%}
.rest-filters>label{white-space:nowrap}.rest-filters select{width:auto;min-width:130px}.rest-month-label>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.rest-cancel-button{margin:8px 0 8px 8px;color:#a44331;background:#fff1ed}.rest-cancel-form>.field{margin:16px 0}.rest-cancel-form p{font-size:13px;line-height:1.8}.rest-cancel-dates{margin-top:18px;padding:15px;background:#fff2eb;border:1px solid #f3ddd1;border-radius:9px;overflow-wrap:anywhere}.rest-cancel-dates small{display:block;color:#926858;margin-bottom:7px}.rest-cancel-dates strong{color:#853b29;line-height:1.8}.rest-cancelled-records{margin-top:20px;border-top:1px solid #e6edf6;padding-top:16px}.rest-cancelled-records>summary{cursor:pointer;font-weight:600}
@media(max-width:1000px){.rest-day{min-height:105px;padding:5px}.rest-week,.rest-month-grid{gap:4px}.rest-person{padding:4px;font-size:11px;display:block}.rest-person small{display:block}.rest-filters select{max-width:160px}.rest-day.drop-target{padding:4px}}
@media(max-width:640px){.rest-toolbar .d-actions{gap:4px}.rest-toolbar .soft-btn{padding:7px}.rest-month-label input{width:139px;padding:7px}.rest-week,.rest-month-grid{gap:3px}.rest-day{min-height:95px;padding:3px;border-radius:6px}.rest-person{font-size:10px;padding:3px 2px}.rest-date{font-size:12px;padding:1px 1px 5px}.rest-date small,.rest-no-one{font-size:9px}.rest-legend{margin-left:0}.rest-change{padding:12px;gap:7px}.rest-change strong{font-size:13px}}
.content{padding:26px 30px;background:#f4f7fc}.sidebar{background:#fff;border-right:1px solid var(--d-border)}.brand small{color:#738bad}.topbar{background:#fff;border-bottom:1px solid var(--d-border)}.nav-item.active{background:#eaf1ff;color:#215cea}.nav-section{color:#889bb9;font-size:12px;margin:19px 12px 6px}.nav-item{border-radius:9px}.d-hero{padding:26px 30px;border-radius:16px;background:linear-gradient(115deg,#203d83,#245bc7 65%,#4879df);color:white;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px;box-shadow:0 8px 22px #1b54af10}.d-hero h1{font-size:27px;line-height:1.35;margin:8px 0 10px}.d-hero p{font-size:13px;color:#d6e5ff;margin:0}.d-hero small{color:#bdd4ff}.d-hero-stats{display:flex;flex-shrink:0}.d-hero-stats>div{padding:0 22px;border-left:1px solid #ffffff20;min-width:105px}.d-hero-stats strong{font-size:29px;display:block}.d-hero-stats small{display:block;font-size:12px;margin-top:7px}.d-hero .d-actions{margin-top:17px}.d-hero .soft-btn{background:#ffffff15;border-color:#ffffff40;color:#fff}.d-hero .primary-btn{background:#fff;color:#245fdc;border-color:#fff}.d-panel{border:1px solid var(--d-border);border-radius:14px;background:white;margin-bottom:20px;overflow:hidden;box-shadow:0 5px 20px #204c8910}.d-panel>header{padding:17px 21px;border-bottom:1px solid #edf1f7;display:flex;justify-content:space-between;align-items:center;gap:12px}.d-panel h3{margin:0;font-size:16px;color:var(--d-ink)}.d-body{padding:19px 21px}.d-home-grid{display:grid;grid-template-columns:minmax(280px,1fr) minmax(450px,2.15fr);gap:20px;align-items:start}.d-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #eef2f7}.d-row:last-child{border:0}.d-row>div:first-child{min-width:0}.d-row h4{margin:8px 0;font-size:15px}.d-row p{font-size:13px;color:#70839c;margin:6px 0;line-height:1.65}.d-row small,.d-event small{color:#8494aa;font-size:12px}.d-row .d-actions{justify-content:flex-end}.d-empty{text-align:center;padding:32px 16px;color:#8594a9;line-height:1.8}.d-actions,.d-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.d-tabs{margin:0 0 18px}.d-tabs>button{padding:10px 22px}.d-badge{display:inline-block;font-size:11px;line-height:1.7;border-radius:5px;padding:2px 7px;background:#edf3ff;color:#3d70d6;margin:0 5px 3px 0;white-space:nowrap}.d-badge.warn{background:#fff3da;color:#b57714}.d-project{padding:18px;border:1px solid #e4ebf7;border-radius:11px;margin-bottom:13px}.d-project .d-row{padding-top:0}.d-project .d-row h3{margin:7px 0}.d-project-counts{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;color:#7385a0;margin-top:12px}.d-project-counts strong{color:#294f89}.d-progress{height:6px;border-radius:5px;background:#edf2fb;margin-top:13px;overflow:hidden}.d-progress i{display:block;background:#3980f2;height:100%}.d-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.d-shortcuts button{font-size:12px;justify-content:flex-start}.d-focus+.d-focus{border-top:1px solid #edf1f7;margin-top:13px}.d-focus .d-actions{padding-bottom:13px}.d-focus .d-row{border:0}.d-focus h4{font-size:14px}.d-calendar-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.d-calendar-controls>div{display:flex;gap:6px}.d-week,.d-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.d-week span{color:#8a99b1;text-align:center;font-size:12px;padding:8px}.d-day{border:1px solid transparent;background:white;border-radius:7px;height:65px;padding:6px 8px;display:flex;align-items:flex-start;flex-direction:column;gap:6px;text-align:left;color:#344965;cursor:pointer}.d-day small{font-size:10px;color:#5b82d5;background:#eaf0fc;white-space:nowrap;max-width:100%;overflow:hidden;padding:2px 3px;border-radius:3px}.d-day.selected{background:#f0f5ff;border-color:#6996fd}.d-day.today>span{background:#326bfa;color:white;border-radius:4px;padding:1px 4px}.d-day.outside{color:#bbc5d3}.d-calendar-agenda{margin-top:16px;border-top:1px solid #edf2f9;padding-top:13px}.d-calendar-agenda h4{font-size:14px}.d-table{overflow:auto} .d-table table{width:100%;font-size:13px;border-collapse:collapse;text-align:left}.d-table th{background:#f7f9fe;color:#6d7e97;font-weight:500}.d-table td,.d-table th{padding:14px 12px;border-bottom:1px solid #edf2f8}.d-table td small{display:block;color:#8798ae;margin-top:5px}.d-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;background:#f6f9fe;padding:15px;border-radius:10px}.d-facts p{font-size:13px;color:#7385a0;line-height:1.8}.d-facts strong{color:#354d73;font-weight:500}.d-event{padding:12px 18px;border-left:2px solid #d7e4fd;margin-left:8px}.d-event p{line-height:1.65;font-size:13px;white-space:pre-wrap;margin:8px 0}.d-event pre{overflow:auto;max-width:100%;font-size:12px}.d-pre{white-space:pre-wrap;line-height:1.8}.d-full{grid-column:1/-1}.field textarea{min-height:90px;width:100%;padding:12px;border:1px solid #d2ddef;border-radius:9px;resize:vertical;font:inherit}.field select[multiple]{min-height:130px}.d-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:18px 0}.d-metric{background:#fff;border:1px solid #e1e9f6;border-radius:12px;padding:20px;text-align:left;cursor:pointer}.d-metric>span{display:block;color:#7084a4;font-size:13px}.d-metric>strong{display:block;font-size:30px;color:#2452a1;margin:10px 0}.d-metric small{font-size:12px;color:#8496b1;font-weight:400}.d-report-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:20px}.d-report-filters .field{min-width:140px;flex:1}.d-definition{font-size:13px;line-height:1.75;color:#6e84a6;padding:12px 16px;background:#eef4ff;border-radius:8px}.d-card-actions{display:flex;flex-wrap:wrap;gap:7px;border-top:1px solid #edf2f8;padding-top:12px;margin-top:12px}.d-card-actions button{font-size:12px;padding:6px 10px}.d-card-focus{font-size:11px;color:#b18139;margin-bottom:8px}.candidate-photo-card.d-focused{border-top:3px solid #f6b449}.candidate-extra-filters{background:white;padding:12px 15px;border-radius:8px;font-size:12px}.candidate-list-controls{border:1px solid #e1e8f3;border-radius:12px;background:white;padding:13px;margin-bottom:18px;position:static}.candidate-toolbar{padding:0}.candidate-results-strip{padding-top:12px}.candidate-photo-card{border-radius:13px;box-shadow:0 3px 12px #24498009}.candidate-card-heading h3{font-size:20px}.candidate-card-body p{margin:6px 0}.candidate-status-details summary{cursor:pointer;padding:10px 2px;color:#6c82a6;font-size:12px}.candidate-date-shortcuts{display:flex;gap:7px;flex-wrap:wrap}.top-actions>#global-create-btn{display:none!important}.d-panel details summary{cursor:pointer;font-size:13px;color:#5277af}.d-panel details p{line-height:1.75;font-size:13px}.muted{line-height:1.75}
@media(max-width:1100px){.d-home-grid{grid-template-columns:minmax(250px,1fr) minmax(370px,1.7fr)}.d-hero-stats>div{padding:0 12px;min-width:80px}.d-hero h1{font-size:24px}}
@media(max-width:820px){.content{padding:16px}.d-home-grid{grid-template-columns:1fr}.d-hero{padding:22px;align-items:flex-start;flex-direction:column}.d-hero-stats{width:100%;justify-content:space-between}.d-hero-stats>div{padding:0 8px;border-left:0}.d-row{flex-wrap:wrap}.d-row .d-actions{justify-content:flex-start}.d-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.d-facts{grid-template-columns:1fr}.d-day{height:60px;padding:5px 3px}.d-day small{font-size:9px}.d-body{padding:15px}.candidate-extra-filters{padding:6px 0;gap:5px}.candidate-extra-filters input[type=date]{min-width:120px;max-width:100%;width:135px}.candidate-toolbar{flex-wrap:wrap}.candidate-toolbar .toolbar-search{flex-basis:100%;min-width:0}.d-report-filters .field{min-width:120px}.d-calendar-controls{gap:5px}.d-calendar-controls .soft-btn{padding:5px 7px}.d-shortcuts{grid-template-columns:1fr 1fr}.d-card-actions button{flex:1}.d-tabs>button{padding:9px 12px}.d-panel>header{padding:14px}.d-hero-stats strong{font-size:25px}}

/* V4 parity: shared scoped candidate context. */
.d-candidate-additions {padding:12px 0 0;border-top:1px solid #e7edf6;margin-top:12px}
.d-focus-item {padding:8px 0;border-bottom:1px solid #edf0f5}
.d-focus-item p,.d-candidate-context p {margin:6px 0;white-space:normal;overflow-wrap:anywhere}
.d-focus-item small {white-space:normal;display:block;color:#677890}
.candidate-table td[data-column="focus"],.candidate-table td[data-column="next_step"],.candidate-table td[data-column="helpers"] {white-space:normal;overflow:visible}
.candidate-table .d-actions {flex-wrap:wrap}
.d-candidate-detail-context {padding:16px}

.d-status-options{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.d-status-options label{display:flex;align-items:center;gap:5px}.d-report-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.d-contact-warning{background:#fff4dc;color:#825200;padding:12px;border-radius:8px}.d-candidate-context .d-actions{flex-wrap:wrap}

.duplicate-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.duplicate-compare .list-item{border:1px solid #dbe5f3;border-radius:12px;padding:18px;align-items:flex-start}

/* Final V4 project tabs and personnel cards, backed by scoped business records. */
.d-project-layout{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(250px,1fr);gap:20px;align-items:start}
.d-key-values{display:grid;grid-template-columns:135px minmax(0,1fr);gap:14px;margin:0 0 18px}.d-key-values dt{color:#74859d}.d-key-values dd{margin:0;overflow-wrap:anywhere}
.d-stage-line{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0}.d-stage-line span{display:flex;align-items:center;gap:7px;font-size:13px;color:#546e92}.d-stage-line b{border-radius:50%;padding:5px 10px;background:#ecf2ff;color:#2561e8}
.d-person-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.d-person{padding:20px;border:1px solid #e2e9f5;border-radius:12px;min-width:0}.d-person>header{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.d-person h3{margin:0 0 5px}.d-person small{color:#7384a0}.d-person p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.d-avatar{border-radius:12px;padding:12px;background:#edf2ff;color:#2e65df;font-weight:700}.d-person-tasks{margin-top:14px;border-top:1px solid #edf2f8}.d-person-tasks .soft-btn{text-align:left;white-space:normal}.d-project-layout .d-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1050px){.d-project-layout{grid-template-columns:minmax(0,1fr)}.d-person-grid{grid-template-columns:1fr}}

.d-focus-banner{display:inline-block;align-self:flex-start;margin:0 0 10px;background:#fff3dd;color:#9b620c;font-size:12px;border-radius:5px;padding:4px 8px}.d-calendar-fold>summary{cursor:pointer;color:#315ca5;padding:14px;border:1px solid #dce5f4;background:white;border-radius:10px;margin:14px 0}

.d-row>button{flex-shrink:0;white-space:nowrap}.d-task-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;align-items:start}.d-task-layout .d-facts{grid-template-columns:1fr}.d-task-layout .d-key-values{grid-template-columns:105px minmax(0,1fr)}@media(max-width:1050px){.d-task-layout{grid-template-columns:1fr}}

/* V4 compact groups keep daily work on one screen; custom columns remain opt-in. */
.candidate-grouped-table{width:100%!important;min-width:0!important;table-layout:fixed}
.candidate-grouped-table th,.candidate-grouped-table td{padding:14px 10px;text-align:left!important;vertical-align:top;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;overflow:visible!important;font-size:12px;line-height:1.65}
.candidate-grouped-table th{font-weight:500;color:#7487a1;background:#f5f8fd}
.candidate-grouped-table th,.candidate-grouped-table td{height:auto}
.candidate-focus-menu{margin:7px 0}.candidate-focus-menu>summary{cursor:pointer;color:#2863ce;font-size:12px}
.candidate-grouped-table .candidate-group-name{color:#1f5adc;font-size:14px;font-weight:600}
.candidate-group-line{margin:4px 0;white-space:normal}.candidate-group-line>[data-candidate-extra]{display:inline}
.candidate-group-grade{color:#bd822d;margin-top:4px}.candidate-grouped-table time{white-space:normal}
.candidate-grouped-table .status-pill,.candidate-grouped-table .d-badge{white-space:normal;max-width:100%;box-sizing:border-box}
.candidate-grouped-table .d-focus-item p{margin:4px 0}.candidate-grouped-table .d-focus-item small{font-size:11px;line-height:1.5;display:block}
.candidate-grouped-table button{padding:5px 8px;font-size:12px;white-space:normal;max-width:100%;min-width:0}.candidate-grouped-table .d-actions{gap:4px;margin:5px 0}
.candidate-table-wrap:has(.candidate-grouped-table){overflow-x:clip!important;container-type:inline-size}
@container (max-width:960px){
 .candidate-grouped-table colgroup,.candidate-grouped-table thead{display:none}
 .candidate-grouped-table,.candidate-grouped-table tbody{display:block}
 .candidate-grouped-table tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #dce5f3;padding:10px 8px;gap:0 10px}
 .candidate-grouped-table td{display:block;border:0!important;min-width:0;padding:9px 5px}
 .candidate-grouped-table td:before{content:attr(data-label);display:block;color:#8292a9;font-size:11px;margin-bottom:5px}
}
@container (max-width:570px){.candidate-grouped-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}}

.candidate-grouped-table td[data-column="dates"] .muted{display:block}
.candidate-grouped-table td[data-column="dates"] time{white-space:normal}
.candidate-grouped-table td[data-column="contact"] .candidate-group-line:first-child{white-space:nowrap}
.candidate-grouped-table .candidate-group-grade{display:inline-block;white-space:nowrap;margin-left:4px;font-size:11px}

/* Long summaries expand in the existing full-text controls. */
.candidate-grouped-table .candidate-focus-preview p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.candidate-grouped-table .candidate-group-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.d-goal-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.d-goal-metric{border:1px solid #dfe7f4;background:#fff;border-radius:12px;padding:16px;display:grid;gap:8px;text-align:left;color:#233957;cursor:pointer;font:inherit}
.d-goal-metric strong{font-size:24px;color:#2463eb}.d-goal-metric small{color:#687d99}.d-goal-metric.selected{border-color:#2463eb;background:#f4f8ff}
@media(max-width:800px){.d-goal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.candidate-row-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start}
.candidate-grouped-table td[data-column="actions"] .candidate-row-actions{flex-direction:column}
.candidate-row-actions button{font-size:12px;padding:6px 9px}
@container(max-width:960px){.candidate-grouped-table td[data-column="actions"]{grid-column:1/-1}.candidate-grouped-table td[data-column="actions"] .candidate-row-actions{flex-direction:row}}
.candidate-page-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 0 24px;padding:4px 0}
.candidate-page-intro small{color:#2463eb;letter-spacing:1px}.candidate-page-intro h1{font-size:28px;color:#162f52;margin:12px 0 8px}.candidate-page-intro p{color:#7286a4;font-size:13px;margin:0}
.candidate-status-chip{padding:4px 9px;border:1px solid #e0e8f4;border-radius:16px;color:#526b91;cursor:pointer}.candidate-status-chip:has(input:checked){background:#eef4ff;border-color:#84a9ff;color:#205bea}
.candidate-status-always .candidate-extra-filters{gap:8px;padding:12px 0}
.candidate-period-controls{border-top:1px solid #edf1f7;align-items:flex-end;padding:14px 0!important}.candidate-period-controls>label{display:flex;flex-direction:column;align-items:flex-start;gap:7px;color:#657e9f}.candidate-period-controls select{max-width:220px;padding:10px;border:1px solid #d9e3f1;border-radius:8px;color:#284667;background:#fff}
.candidate-view-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}.candidate-view-switch{display:flex;gap:4px;margin-left:auto;padding:3px;border-radius:10px;background:#edf2fa}.candidate-view-switch button.active{background:#fff;color:#2463eb;box-shadow:0 2px 7px #17407816}
.candidate-photo-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}.candidate-card-heading h3{font-size:17px}.candidate-card-body{gap:14px}.candidate-card-body p{margin:4px 0}
.candidate-photo-card .d-candidate-additions{font-size:12px}.candidate-photo-card .d-candidate-context p{line-height:1.6}.candidate-photo-card .d-card-focus:empty{display:none}
@media(max-width:760px){.candidate-page-intro{flex-direction:column}.candidate-period-controls>label{flex:1;min-width:140px}.candidate-period-controls select,.candidate-period-controls input[type=date]{width:100%;max-width:100%}}

#task-goal-fields[hidden]{display:none}.d-goal-metric:disabled{cursor:default;opacity:.65}.d-task-goal{margin-top:12px;display:grid;gap:6px}

.candidate-status-always .candidate-extra-filters .candidate-status-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;min-height:0;line-height:1.3;font-size:12px;border-radius:18px}
.candidate-status-always .candidate-extra-filters .candidate-status-chip input{width:14px;height:14px;margin:0}
#candidate-category{width:auto;min-width:140px;max-width:220px;margin:0}
.candidate-view-tools{margin-top:2px}.candidate-extra-filters.candidate-period-controls{margin-top:4px}
.d-hero-main{display:flex;align-items:center;justify-content:space-between;gap:24px;flex:1;min-width:0}.d-hero-main>.d-actions{margin:0;justify-content:flex-end}.d-hero-stats:empty{display:none}
@media(max-width:850px){.d-hero-main{flex-wrap:wrap}.d-hero-main>.d-actions{justify-content:flex-start}}

/* Keep real checkboxes compact inside the reporting filter. */
.d-status-options label{white-space:nowrap;flex:0 0 auto;min-width:0;width:auto;flex-direction:row}.d-status-options input[type="checkbox"]{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0;padding:0;accent-color:#2463eb}.d-report-cards{grid-template-columns:repeat(auto-fit,minmax(310px,1fr))}

/* V4 PC forms open from the right and keep their source page in place. */
html{scrollbar-gutter:stable}
body.modal-open{overflow:hidden}
#modal.modal-backdrop{display:flex;justify-content:flex-end;align-items:stretch;padding:0;background:#142c4d66;backdrop-filter:none}
#modal .modal-card{width:min(640px,100vw);height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border:0;border-radius:0;background:#f3f6fb;box-shadow:-12px 0 30px #142c4d15;animation:none}
#modal .modal-card>header{flex-shrink:0;padding:26px;background:#f3f6fb}
#modal .modal-card h3{font-size:22px;line-height:1.4}
#modal-form{flex:1;min-height:0}
#modal-body{flex:1;min-height:0;padding:20px 26px;overscroll-behavior:contain}
#modal-footer{flex-shrink:0;background:#f3f6fb;padding:15px 26px}
#modal-body .form-grid{min-width:0}
#modal-body .field,#modal-body .form-grid>*{min-width:0}
#modal-body input,#modal-body select,#modal-body textarea{max-width:100%}
@media(max-width:640px){#modal .modal-card{width:100vw}#modal .modal-card>header,#modal-body,#modal-footer{padding-left:18px;padding-right:18px}}

/* Hidden workflow branches must not be overridden by flex/grid field rules. */
#modal [hidden], #main-content > [hidden] { display:none !important; }
#modal input[type=checkbox],#modal input[type=radio]{width:16px;height:16px;min-height:16px;padding:0;flex:0 0 16px;margin:3px 0;box-shadow:none}

/* V4 desktop frame; smaller breakpoints keep their existing navigation layout. */
.d-project-four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%;padding:16px 14px;background:#f5f8fd;border:1px solid #e9eff9;border-radius:9px}
.d-project-four strong{display:block;font-size:24px;margin-bottom:7px}
.d-project-four span{display:block;font-size:12px;color:#8193af}
@media(max-width:600px){.d-project-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1101px){
  .sidebar{width:220px}
  .main-shell{margin-left:220px}
  .topbar{min-height:68px;padding:10px 30px}
  .topbar h2{font-size:18px}
  .toolbar{top:68px}
}

.candidate-status-summary{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:100%}.candidate-status-date{font-size:12px;line-height:1.6;color:#6d7e97;white-space:normal}.candidate-status-date time{display:inline-block;white-space:nowrap}

/* Candidate edit confirmation: preserve the drawer and its unsaved values. */
.unsaved-backdrop{position:fixed;inset:0;z-index:180;display:grid;place-items:center;padding:24px;background:rgba(22,35,58,.28)}
.unsaved-dialog{width:min(480px,100%);box-sizing:border-box;border:1px solid #e1e8f4;border-radius:18px;padding:26px;background:#fff;box-shadow:0 20px 70px rgba(22,35,58,.2);color:#18253e}
.unsaved-dialog h3{margin:0 0 12px;font-size:20px}.unsaved-dialog p{margin:0;color:#66758c;line-height:1.7}
.unsaved-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:26px}.unsaved-actions button{min-height:40px}.unsaved-actions button:focus-visible{outline:3px solid #83aaff;outline-offset:3px}

/* Candidate lookup from a metric detail keeps that detail intact underneath. */
.candidate-preview-backdrop{position:fixed;inset:0;z-index:160;display:flex;justify-content:flex-end;background:#142c4d55}
.candidate-preview-drawer{width:min(760px,90vw);height:100vh;height:100dvh;display:flex;flex-direction:column;background:#f3f6fb;box-shadow:-12px 0 36px #142c4d20;min-width:0}
.candidate-preview-drawer>header,.candidate-preview-drawer>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 24px;flex-shrink:0;background:#fff;border-bottom:1px solid #e1e8f4}
.candidate-preview-drawer>header h3{margin:0;font-size:20px}.candidate-preview-drawer>footer{border-top:1px solid #e1e8f4;border-bottom:0}
.candidate-preview-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 24px}.candidate-preview-body>.panel{margin-bottom:16px}.candidate-preview-body p,.candidate-preview-body strong{overflow-wrap:anywhere}
.candidate-preview-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.candidate-preview-fields small{display:block;color:#7d8ca3;margin-bottom:5px}.candidate-preview-fields strong{display:block;font-size:14px;font-weight:500}
.candidate-preview-photos{display:flex;flex-wrap:wrap;gap:10px}.candidate-preview-photos img{width:110px;height:146px;object-fit:cover;border-radius:8px}
.candidate-preview-record{border-bottom:1px solid #e7edf5;padding:12px 0}.candidate-preview-record small{color:#7d8ca3}
@media(max-width:640px){.candidate-preview-drawer{width:100vw}.candidate-preview-body{padding:16px}.candidate-preview-fields{gap:12px}}

/* Candidate helper picker: additive assignment shares the existing V4 drawer. */
.d-helper-display{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.d-helper-display>.soft-btn{padding:5px 9px;font-size:12px;white-space:normal}
.d-helper-picker h3{margin:0 0 8px;font-size:15px}.d-helper-picker p{margin:0 0 10px}.d-helper-options{max-height:300px;overflow:auto;border:1px solid #dce5f4;border-radius:10px;overscroll-behavior:contain}
.d-helper-option{display:flex;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #e6ecf5;cursor:pointer}.d-helper-option:last-child{border-bottom:0}.d-helper-option input{width:18px;height:18px;flex-shrink:0}.d-helper-option span{min-width:0}.d-helper-option strong,.d-helper-option small{display:block;overflow-wrap:anywhere}.d-helper-option small{color:#6a7f99}.d-helper-selected{display:flex;flex-wrap:wrap;gap:8px}.d-helper-chip{display:inline-flex;align-items:center;gap:6px;background:#eef4ff;border-radius:16px;padding:5px 10px;max-width:100%;overflow-wrap:anywhere}.d-helper-chip button{border:0;background:transparent;color:#47658c;cursor:pointer;font-size:18px}.d-helper-conflict{padding:12px;background:#fff6e8;border-radius:10px}.d-helper-conflict[hidden]{display:none}

.d-helper-picker [hidden]{display:none}

/* Store directory extends the V4 drawer without changing recruitment forms. */
.store-directory-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}.store-directory-toolbar input{flex:1 1 180px;min-width:0}.store-directory-toolbar select{flex:0 1 125px}.store-directory-list{display:grid;gap:12px;margin-top:14px}.store-directory-item{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:16px;border:1px solid #e0e8f4;border-radius:14px;background:#fff;min-width:0}.store-directory-item>div{min-width:0}.store-directory-item h4{margin:0 0 8px;overflow-wrap:anywhere}.store-directory-item p{margin:7px 0;color:#66758d;overflow-wrap:anywhere}.store-directory-actions{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.store-directory-history{display:grid;gap:12px}.store-directory-form input[readonly]{background:#edf1f7;color:#69778c}.store-directory-form .muted{line-height:1.7}
@media(max-width:440px){.store-directory-item{flex-wrap:wrap}.store-directory-actions{flex-direction:row;flex-wrap:wrap}}

/* V4 candidate detail links back to the authorized work behind the record. */
.d-candidate-work-list{display:grid;gap:12px}.d-candidate-work-item{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px;border:1px solid #e0e8f4;border-radius:12px;background:#fff;min-width:0}.d-candidate-work-item>div{min-width:0;flex:1}.d-candidate-work-item h4{margin:0;overflow-wrap:anywhere}.d-candidate-work-item p{margin:8px 0;overflow-wrap:anywhere}.d-candidate-work-item>button{flex-shrink:0}.d-candidate-work-pages{margin-top:14px}.d-candidate-work[aria-busy="true"]{min-height:85px}
@media(max-width:640px){.d-candidate-work-item{align-items:flex-start;flex-wrap:wrap}.d-candidate-work-item>div{flex-basis:100%}}

/* Candidate main work and supporting records follow the V4 two-column board. */
.candidate-v4-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:20px;align-items:start}.candidate-v4-main,.candidate-v4-side{min-width:0;display:grid;gap:20px}.candidate-v4-layout .panel{margin:0}.candidate-v4-layout #candidate-history-panels,.candidate-v4-layout .detail-side{display:grid;gap:20px;min-width:0}.candidate-v4-side .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.candidate-v4-layout .detail-hero{grid-template-columns:112px minmax(0,1fr);gap:18px;padding:20px}.candidate-v4-layout .photo-tile{min-height:150px;height:150px}.candidate-v4-layout .photo-tile img{height:150px;object-fit:contain}.candidate-v4-layout .identity-head{flex-wrap:wrap;gap:10px}.candidate-v4-layout .identity-head h1{font-size:24px}.candidate-v4-layout .profile-assignments{gap:8px}.candidate-v4-layout .profile-assignments>div{padding:10px}.candidate-v4-layout .portrait-actions{gap:6px;flex-wrap:wrap}.candidate-v4-layout .portrait-actions button{font-size:12px;padding:7px}.candidate-v4-layout .photo-paste-help{font-size:11px;line-height:1.5}.candidate-v4-layout .task-assignments{gap:8px}.candidate-v4-layout .task-assignments>div{padding:10px}.candidate-v4-layout .d-candidate-detail-context{padding:0;border:0;background:transparent;box-shadow:none}.candidate-v4-layout .d-candidate-work-item{flex-wrap:wrap}.candidate-v4-side .d-panel-body{overflow-wrap:anywhere}.candidate-v4-layout .current-task-panel .action-row{gap:8px}.candidate-v4-layout .basic-information-panel .info-item{min-width:0}.candidate-v4-layout .basic-information-panel strong{overflow-wrap:anywhere}
@media(max-width:1100px){.candidate-v4-layout{grid-template-columns:minmax(0,1fr)}.candidate-v4-side{grid-template-columns:repeat(2,minmax(0,1fr))}.candidate-v4-side .basic-information-panel,.candidate-v4-side .detail-side{grid-column:1/-1}}
@media(max-width:640px){.candidate-v4-side{grid-template-columns:minmax(0,1fr)}.candidate-v4-layout .detail-hero{grid-template-columns:minmax(0,1fr)}.candidate-v4-layout .portrait-column{max-width:190px}.candidate-v4-layout .profile-assignments,.candidate-v4-layout .task-assignments{grid-template-columns:minmax(0,1fr)}}
.candidate-v4-layout .portrait-actions{display:grid;grid-template-columns:1fr}.candidate-v4-layout .portrait-actions button{white-space:nowrap}.candidate-profile-facts{display:flex;gap:6px 18px;flex-wrap:wrap;color:#70839c;font-size:12px;margin:10px 0 16px}.candidate-v4-layout .candidate-profile-panel.d-focused{border-top:3px solid #f6b449}.candidate-v4-layout .candidate-profile-panel .d-card-focus{margin-top:14px;padding-top:12px;border-top:1px solid #edf2f8}.candidate-v4-layout .d-card-focus .d-focus-item{padding:8px 0}.candidate-v4-layout .d-card-focus p{margin:5px 0}
.d-retention-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:12px 0}.d-retention-days>div{padding:10px;border:1px solid var(--border,#e1e8f2);border-radius:8px;background:var(--bg,#f5f7fc)}.d-retention-days strong,.d-retention-days span{display:block;font-size:12px;line-height:1.6}.d-retention-days span{color:var(--muted,#64748b)}
.d-home-primary{margin-bottom:12px}.d-home-more{margin-top:12px}.d-home-more>summary{cursor:pointer;color:#526984;font-size:13px;list-style-position:inside}.d-home-more[open]>summary{margin-bottom:12px}.d-home-management-more{margin-top:0}.d-hero .d-home-more>summary{color:inherit}.d-home-management-more .d-actions{margin-top:10px;justify-content:flex-end}.rest-selected-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.rest-selected-heading h4{margin:0}.rest-apply-note{font-size:12px;line-height:1.7}.d-report-period{color:#65768f;line-height:1.7;margin:0 4px 18px}.d-report-explanation{margin:18px 0;padding:16px 20px;border:1px solid #dfe7f2;border-radius:14px;background:#fff}.d-report-explanation>summary{cursor:pointer;font-weight:600;color:#334c71}.d-report-explanation p{color:#65768f;line-height:1.8}.d-report-explanation p:last-child{margin-bottom:0}@media(max-width:820px){.rest-selected-heading{align-items:flex-start}.rest-selected-heading .d-actions{width:100%}.d-home-management-more .d-actions{justify-content:flex-start}.d-report-explanation{padding:14px}}

/* Unified entries retain distinct queues and permission-specific workflows. */
.unified-section-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:12px;background:#fff;border:1px solid #e1e8f5;border-radius:14px}.unified-section-nav button{white-space:nowrap}.team-state-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.team-state-counts span{display:flex;flex-direction:column;gap:5px;color:#71809b;font-size:12px}.team-state-counts strong{font-size:20px;color:#183358}.private-review-notes{margin:18px 0}.private-review-notes>details>summary{padding:16px;background:#fff;border:1px solid #e1e8f5;border-radius:12px;cursor:pointer}.unified-store-scope{align-items:end}.unified-store-scope select{min-width:210px}.d-person .d-actions{flex-wrap:wrap}.d-home-grid>aside{min-width:0}.d-report-filters>.field{min-width:140px}.d-person-grid{align-items:start}@media(max-width:900px){.unified-section-nav{gap:6px;padding:10px}.unified-section-nav button{padding:9px 12px}.d-home-grid{display:block}.d-person-grid{grid-template-columns:1fr}.d-report-filters{display:flex;flex-wrap:wrap}.d-report-filters>.field{min-width:0;flex:1 1 170px}.team-state-counts{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Task facts and the goal use the same business-date scope. */
.wcenter-task-period{color:#1b4ca2;font-weight:600;font-size:14px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}
.d-goal-activity-list{display:grid;gap:10px}.d-goal-activity{border:1px solid #e3eaf6;border-radius:10px;padding:12px;min-width:0;overflow-wrap:anywhere}.d-goal-activity .d-row{padding:0;gap:8px;flex-wrap:wrap}.d-goal-activity p{margin:7px 0}.d-goal-activity small{color:#687d99}.d-goal-activity details{margin-top:8px}.d-goal-activity .d-actions{margin-top:10px;flex-wrap:wrap}.d-goal-scope{color:#546a87;line-height:1.7}

.d-goal-activity-more{margin-top:12px}.d-goal-activity-more>summary{color:#2463eb;cursor:pointer;padding:6px 0}.d-goal-activity-more>.d-goal-activity-list{margin-top:8px}

/* V4 reporting keeps its own responsive frame and preserves every drilldown action. */
.d-report-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 32px;margin:0 0 24px;border-radius:20px;background:linear-gradient(115deg,#1749be,#2772ed);color:#fff;min-width:0;box-shadow:0 10px 28px #245ff01a}
.d-report-hero>div{min-width:0}.d-report-hero small{font-size:11px;letter-spacing:1.5px;color:#d8e7ff}.d-report-hero h1{font-size:28px;margin:12px 0;line-height:1.35;color:#fff}.d-report-hero p{font-size:13px;line-height:1.8;margin:5px 0;color:#e5eeff;overflow-wrap:anywhere}.d-report-hero-side{display:flex;flex-direction:column;gap:14px;align-items:flex-end}.d-report-hero-side>span{border:1px solid #ffffff50;background:#ffffff17;padding:9px 12px;border-radius:10px;font-size:12px;line-height:1.6}.d-report-hero .d-actions{margin:0;justify-content:flex-end}.d-report-hero .soft-btn{background:#fff;color:#2453a7;border-color:#ffffff80}
.d-report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 24px}.d-report-metrics .d-metric{min-width:0;text-align:left;position:relative;min-height:133px;padding:20px}.d-report-metrics .d-metric>span{font-size:13px;line-height:1.55}.d-report-metrics .d-metric>strong{font-size:32px;margin:12px 0 8px}.d-report-metrics .d-metric>small{line-height:1.6;white-space:normal}.d-report-metrics .d-metric:disabled{cursor:default;opacity:.65}.d-report-metrics .d-metric:focus-visible,.d-report-status button:focus-visible{outline:3px solid #88b2ff;outline-offset:3px}
.d-report-metric-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:18px}.d-report-metric-toolbar p{margin:0;color:#637791;font-size:13px}.d-report-metric-toolbar .d-actions{margin:0}.d-report-metric-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border:0;padding:12px 0;margin:0;min-width:0}.d-report-metric-options legend{font-size:14px;font-weight:600;padding:8px 0}.d-report-metric-options label{display:flex;align-items:center;gap:10px;min-width:0;padding:13px 10px;border:1px solid #dce6f5;border-radius:10px;cursor:pointer}.d-report-metric-options label span{overflow-wrap:anywhere;font-size:14px}.d-report-metric-options input{flex:0 0 auto;width:17px;height:17px;margin:0;accent-color:#2463de}.d-report-metrics-empty{grid-column:1/-1;border:1px dashed #cedbf0;border-radius:12px}.d-report-metrics-empty .d-actions{justify-content:center}@media(max-width:600px){.d-report-metric-options{grid-template-columns:repeat(2,minmax(0,1fr))}.d-report-metric-options label{padding:12px 8px}}
.d-report-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.d-report-columns>div{min-width:0}.d-report-columns .d-panel{min-width:0}.d-report-columns p{line-height:1.8;overflow-wrap:anywhere}.d-report-distribution{display:grid;gap:12px;margin:20px 0}.d-report-status{display:grid;grid-template-columns:minmax(74px,1fr) minmax(40px,2fr) auto;gap:10px;align-items:center;min-width:0}.d-report-status>span{font-size:12px;color:#4b6080;overflow-wrap:anywhere}.d-report-status-track{height:9px;border-radius:8px;background:#edf2fb;overflow:hidden}.d-report-status-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4b82f3,#2362de)}.d-report-status button{padding:6px 9px;white-space:nowrap;font-size:12px;min-width:56px}
.d-report-compare-table{max-width:100%;overflow:auto;overscroll-behavior-x:contain}.d-report-compare-table table{width:100%;min-width:430px;border-collapse:collapse;table-layout:fixed}.d-report-compare-table th,.d-report-compare-table td{padding:12px 8px;font-size:12px;line-height:1.7;white-space:normal;overflow-wrap:anywhere;text-align:left;vertical-align:top}.d-report-compare-table th:first-child{width:130px;min-width:100px}.d-report-compare-table th button{max-width:100%;white-space:normal;text-align:left;padding:5px 7px;line-height:1.7}.d-report-compare-table td small{display:block;color:#7988a0;font-size:11px}.d-report-counts{display:flex;flex-wrap:wrap;gap:10px 24px;padding:14px 16px;border:1px solid #dce7fc;border-radius:10px;background:#f2f6ff;color:#2355a3;font-size:14px;line-height:1.7}.d-report-counts span{color:#4e6383}
.d-report-quality{display:grid;gap:10px;margin:18px 0}.d-report-quality details{border:1px solid #f0deb8;border-radius:12px;padding:14px 18px;background:#fffaf0;min-width:0}.d-report-quality summary{cursor:pointer;color:#805d25;font-size:13px;font-weight:600;line-height:1.8}.d-report-quality p{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.d-report-quality article{padding:10px 0;border-top:1px solid #ecdcbf}.d-report-quality article:first-of-type{margin-top:10px}.d-report-quality strong{font-size:13px}.d-report-filter-error{padding:12px 16px;background:#fff0ee;color:#a83b31;border-radius:10px}.d-report-tabs{flex-wrap:wrap}.d-report-tabs button{white-space:normal}.d-report-hero~.d-panel .d-status-options{flex-wrap:wrap}.d-report-hero~.d-panel .d-status-options label{white-space:normal;overflow-wrap:anywhere}.d-report-hero~.d-panel #d-detail-filter>.primary-btn{margin-top:14px}.d-report-hero~.d-panel #d-report-filter input,.d-report-hero~.d-panel #d-report-filter select{min-width:0;max-width:100%}
@media(max-width:1100px){.d-report-columns{grid-template-columns:minmax(0,1fr)}.d-report-hero{padding:24px}.d-report-hero-side{align-items:flex-start}.d-report-hero{flex-wrap:wrap}.d-report-hero .d-actions{justify-content:flex-start}}
@media(max-width:600px){.d-report-hero{padding:22px 18px;border-radius:16px;gap:16px}.d-report-hero h1{font-size:24px}.d-report-hero-side{width:100%}.d-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.d-report-metrics .d-metric{padding:15px 12px;min-height:126px}.d-report-metrics .d-metric>strong{font-size:28px}.d-report-metrics .d-metric>span{font-size:12px}.d-report-columns{gap:0}.d-report-status{grid-template-columns:minmax(70px,1fr) minmax(30px,1.3fr) auto;gap:8px}.d-report-quality details{padding:12px}.d-report-counts{gap:6px;font-size:13px}.d-report-counts>*{width:100%}.d-report-hero~.d-panel .d-report-filters>.field{flex:1 1 130px}}

/* Employment archive filters use actual job/store and an explicit date basis. */
.d-record-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end;padding:18px 20px}.d-record-filters>.field{min-width:0;width:auto;margin:0}.d-record-filters>.d-full{grid-column:1/-1}.d-record-filters input,.d-record-filters select{width:100%;min-width:0}.d-record-filters>.d-actions{margin:0;min-height:43px;align-items:center}.d-record-filter-note{margin:0;font-size:12px;line-height:1.8}.d-record-filters .d-report-filter-error{margin:0}@media(max-width:1100px){.d-record-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.d-record-filters{padding:16px 12px;gap:12px}}

/* V4 complete local usability: summaries retain all original evidence and actions. */
.d-digest-nav{padding:12px 16px;margin:14px 0 18px;border:1px solid #dce6f5;border-radius:12px;background:#fff;scroll-margin-top:90px}.d-digest-nav>strong{display:block;margin-bottom:9px;color:#244771;font-size:13px}.d-digest-nav>div{display:flex;gap:8px;flex-wrap:wrap}.d-digest-nav .soft-btn{font-size:13px;padding:7px 11px}.d-digest-panel,.d-report-person{border:1px solid #dfe7f2;border-radius:12px;background:#fff;margin-bottom:14px;scroll-margin-top:100px;overflow:hidden}.d-digest-panel>summary,.d-report-person>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;padding:16px 18px;cursor:pointer;color:#244568;line-height:1.65}.d-digest-panel>summary::-webkit-details-marker,.d-report-person>summary::-webkit-details-marker{display:none}.d-digest-panel>summary:before,.d-report-person>summary:before{content:'▸';color:#5072a3;flex:0 0 auto}.d-digest-panel[open]>summary:before,.d-report-person[open]>summary:before{content:'▾'}.d-digest-panel>summary>strong,.d-report-person>summary>div{flex:1;min-width:0}.d-digest-panel>summary>span,.d-report-person>summary>span{font-size:13px;color:#586d88;overflow-wrap:anywhere}.d-report-person>summary>span{max-width:62%}.d-report-person>summary small{display:block;font-size:12px;color:#62738c;margin-top:3px}.d-digest-body{padding:16px 18px;border-top:1px solid #e8edf5}.d-digest-body>.d-panel:last-child{margin-bottom:0}.d-person-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}.d-person-overview>span{padding:14px;background:#fff;border:1px solid #dfe7f2;border-radius:10px;color:#586e8b;font-size:13px}.d-person-overview strong{display:block;margin-top:7px;font-size:24px;color:#2452a1}.d-review-people{margin:16px 0}.private-review-notes{margin:14px 0;padding:14px 18px;border:1px solid #dce6f5;border-radius:12px;background:#fff;scroll-margin-top:100px}.private-review-notes>details>summary{cursor:pointer;font-size:14px;font-weight:600;color:#24528b}.private-review-notes .d-panel{margin-top:14px;margin-bottom:0}.d-digest-panel:focus-within,.d-report-person:focus-within{outline-color:#91b1f1}.d-digest-panel summary:focus-visible,.d-report-person summary:focus-visible{outline:3px solid #91b1f1;outline-offset:-3px}
.d-employment-archive{isolation:isolate;overscroll-behavior-x:contain}.d-employment-archive table{min-width:860px}.d-employment-archive th:last-child,.d-employment-archive td:last-child{position:sticky;right:0;min-width:200px;width:200px;background:#fff;box-shadow:-6px 0 10px -8px #35577b70;z-index:2}.d-employment-archive th:last-child{background:#f7f9fe;z-index:3}.d-employment-archive td:last-child .d-actions{display:grid;grid-template-columns:1fr;min-width:150px;gap:8px}.d-employment-archive td:last-child button{width:100%;white-space:normal}.d-employment-archive td:nth-child(4){min-width:180px;overflow-wrap:anywhere;white-space:normal}.d-archive-scroll-hint{font-size:13px;color:#526986;line-height:1.7;margin:0 0 12px}
.d-report-hero-compact{padding:18px 22px;margin-bottom:16px;border-radius:14px;gap:16px}.d-report-hero-compact h1{font-size:24px;margin:5px 0}.d-report-hero-compact p{margin:3px 0;line-height:1.65}.d-report-hero-compact small{font-size:12px}.d-report-hero-compact .d-report-hero-side{gap:8px}.d-report-hero-compact .d-report-hero-side>span{padding:5px 9px;font-size:12px}.d-report-top-help{font-size:12px;line-height:1.7;color:#edf3ff}.d-report-top-help>summary{cursor:pointer}.d-report-filter-panel{margin-bottom:14px}.d-report-compact-filters{display:block;padding:14px 18px}.d-report-common{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end}.d-report-common>.field,.d-report-advanced-grid>.field{margin:0;min-width:0}.d-report-quick-actions{margin:12px 0 8px}.d-report-quick-actions>button{padding:8px 12px;min-height:38px}.d-report-advanced{border-top:1px solid #e6edf6;padding-top:10px;margin-top:10px}.d-report-advanced>summary,.d-report-scope-context>summary{font-size:13px;color:#42628b;cursor:pointer;line-height:1.7}.d-report-advanced-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px}.d-report-advanced p{font-size:13px;margin:12px 0 0;line-height:1.7}.d-report-context-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;margin:8px 0}.d-report-scope-context{max-width:100%;min-width:0}.d-report-scope-context[open]{width:100%;padding:12px 14px;border:1px solid #dfe8f5;border-radius:10px;background:#fff}.d-report-scope-context p{font-size:13px;line-height:1.8;margin:10px 0}.d-report-visible-warning{font-size:13px;line-height:1.7;margin:8px 0;padding:9px 12px}.d-report-quality{margin:8px 0;gap:7px}.d-report-quality details{padding:9px 12px;border-radius:9px}.d-report-quality summary{font-size:13px;line-height:1.7}.d-report-metric-toolbar{margin-top:10px}.d-report-tabs{margin-bottom:10px}.d-report-tabs>button{padding:8px 16px}
/* Critical secondary labels remain readable without removing fields. */
.d-project-counts small,.d-table td small,.d-row small,.d-event small,.d-task-goal small,.d-report-compare-table td small,.d-calendar-agenda small{font-size:12px;color:#526986}.d-project-counts,.d-row p{color:#526986}.d-day small{font-size:12px}.d-badge{font-size:12px}.d-report-status>span,.d-report-status button{font-size:13px}.d-report-quality p{font-size:13px}.d-definition,.d-record-filter-note{font-size:13px;color:#526986}.d-report-evidence,.d-report-evidence p{font-size:13px;line-height:1.8}
@media(max-width:1100px){.d-report-common,.d-report-advanced-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.d-report-hero-compact{padding:16px 18px}.d-report-hero-compact .d-report-hero-side{flex-direction:row;flex-wrap:wrap;align-items:center}.d-person-overview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.d-digest-panel>summary,.d-report-person>summary{padding:14px 12px;gap:8px;align-items:flex-start;flex-wrap:wrap}.d-report-person>summary>span{max-width:100%;width:100%;padding-left:16px}.d-digest-body{padding:12px}.d-report-common,.d-report-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.d-report-hero-compact .d-report-hero-side{width:100%}.d-report-hero-compact h1{font-size:23px}.d-person-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.d-person-overview>span{padding:10px}.d-report-common input,.d-report-common select{min-width:0}}
