/* Hatc white office theme: brand accents, readable text and quiet surfaces. */
:root{--accent:#09395f;--muted:#5c6570;--border:#dfe3e7;color:#20252b;background:#f5f6f7;font-size:14px;line-height:1.6}
body{background:#f5f6f7;color:#20252b}
.topbar{background:#fff;border-bottom-color:#dfe3e7}.brand{color:#20252b}
.identity{font-size:13px;gap:8px}.identity>span{color:#424a54}
h1,h2,h3,.drawer h2,.account-name{color:#20252b}
.page-heading p,.section-top p,.live-dot,.breadcrumb,.prototype-note,.table-footer{color:#5c6570}
.page-heading p{font-size:14px}.breadcrumb{font-size:13px}.breadcrumb span{color:#707984}
.stat,.stat:first-child,.workspace,.drawer,dialog,.auth-card{background:#fff;border-color:#dfe3e7}
.stat{padding:17px 20px}.stat .label{font-size:14px;color:#424a54;font-weight:500}
.stat small{font-size:12px;color:#5c6570;line-height:1.6;display:block}.stat strong{color:#20252b;font-size:30px}
.stat:nth-child(2){border-top:3px solid #b87914;padding-top:15px}.stat:nth-child(2) strong{color:#8a5100}
.stat .stat-icon{color:#707984}.section-top h2{font-size:17px}.section-top p,.live-dot{font-size:13px}
.section-top h2 span,.tabs span{background:#f0f2f4;color:#505a65;font-size:12px}
.tabs button{font-size:14px;color:#505a65;padding:12px 0}.tabs button.active{color:#09395f}
.tabs .active span{color:#09395f;background:#edf2f6}.tabs{border-bottom-color:#dfe3e7}
.search-row{padding:15px 0}.search-row select,.search input{font-size:14px}
input,select,textarea{font-size:14px;color:#20252b;background:#fff;border-color:#aeb6bf;min-height:38px}
input::placeholder,textarea::placeholder{color:#64707c;opacity:1}
input:disabled,.modal-body input:disabled{background:#f1f3f5;color:#5c6570}
input:focus,select:focus,textarea:focus{outline:2px solid #b4cbdc;border-color:#09395f}
.primary,.secondary,.danger{font-size:14px;min-height:38px}.primary{background:#09395f;color:#fff}
.primary:hover{background:#062d4c}.secondary{color:#303942;border-color:#aeb6bf}.secondary:hover{background:#f2f4f6}
.text-button,.row-open{font-size:13px}.text-button{color:#424a54}.text-button:hover{color:#09395f;background:#edf2f6}
.requirements-table{min-width:1080px}th{font-size:13px;font-weight:600;color:#424a54;background:#f3f4f5;padding:12px 16px;border-color:#dfe3e7}
td{font-size:14px;color:#303942;padding:14px 16px;border-bottom-color:#e8ebee;font-variant-numeric:tabular-nums}
tbody tr:hover{background:#f4f7fa}td .title-link{font-size:15px;font-weight:600;color:#20252b;line-height:1.6}
td .meta{font-size:12px;color:#5c6570;margin-top:4px;line-height:1.5}.avatar{background:#eef0f2;color:#505a65;font-size:12px}
.badge{font-size:13px;line-height:1.5;padding:4px 9px;font-weight:500}
/* Shared status palette for badges, active workflow steps and dashboard bars. */
.b-pending,.step[data-status="pending"],.progress-pending{--status-fg:#8a5100;--status-bg:#fff7e8;--status-border:#e9cc96}
.b-scheduled,.step[data-status="scheduled"],.progress-scheduled{--status-fg:#4752a3;--status-bg:#f0f2ff;--status-border:#cbd1f1}
.b-developing,.step[data-status="developing"],.progress-developing{--status-fg:#185abd;--status-bg:#edf4ff;--status-border:#bad2f5}
.b-acceptance,.step[data-status="acceptance"],.progress-acceptance{--status-fg:#7b3294;--status-bg:#faf0ff;--status-border:#dfc3eb}
.b-ready,.step[data-status="ready"],.progress-ready{--status-fg:#006c7c;--status-bg:#eaf8fa;--status-border:#afdce2}
.b-online,.step[data-status="online"],.progress-online{--status-fg:#21633c;--status-bg:#edf8f0;--status-border:#bfdcc9}
.b-returned{--status-fg:#ad1735;--status-bg:#fff1f2;--status-border:#edbdc5}
.b-cancelled{--status-fg:#59616b;--status-bg:#f2f4f6;--status-border:#d5dbe1}
.badge{background:var(--status-bg,#f2f4f6);color:var(--status-fg,#424a54);border-color:var(--status-border,#dfe3e7);font-weight:600}
.row-review{font-size:13px;min-height:34px;padding:5px 12px}.row-open{color:#09395f;min-height:34px}
.table-footer{font-size:12px;padding:12px 20px}.prototype-note{font-size:12px;line-height:1.8}
.drawer-top,.drawer-summary,.detail-label{font-size:13px;color:#5c6570}.detail-value{font-size:14px;color:#20252b;line-height:1.8}
.detail-section h3{font-size:15px}.step{font-size:12px;color:#5c6570}.step.done{color:#505a65}.step.done:before{background:#aabaca}
.step.current{color:var(--status-fg,#09395f)}.step.current:before{background:var(--status-fg,#09395f)}.step:before{background:#e3e7eb}
.actions button{font-size:14px}.notice,.form-intro{font-size:13px;color:#424a54;background:#f4f5f6;line-height:1.8}
.notice{border-color:#dfe3e7}.notice.warning{background:#fff7e8;color:#8a5100;border-color:#e9cc96}
.form-intro{background:transparent}.modal-body label{font-size:14px;color:#303942}
.modal-body label input,.modal-body label select,.modal-body label textarea{font-size:14px}
.modal-body small,.upload-box p,.upload-box>small,.upload-status,.upload-item small,.file-download small{font-size:12px;color:#5c6570}
.required{color:#ad1735}.modal-footer{background:#fafafa}.icon{background:#f1f3f5;color:#505a65}
.upload-box{background:#fafbfc;border-color:#b8c0c8}.upload-title,.upload-item,.file-download{font-size:13px;color:#303942}
.upload-title span{color:#5c6570}.modal-body .file-picker,.file-download{background:#f4f7fa;color:#09395f;border-color:#c7d4de}
.history-item strong{font-size:14px;color:#303942}.history-item p,.history-item details{font-size:13px;color:#505a65}
.history-item time{font-size:12px;color:#5c6570}.history-item{border-left-color:#d6dce2}
.audit-change,.history-item pre{font-size:13px;color:#424a54;background:#f4f5f6}.audit-change b{color:#20252b}
.auth-intro p{font-size:15px;color:#505a65}.auth-intro h1{color:#20252b}
.auth-card{border-top:1px solid #dfe3e7;box-shadow:0 6px 24px #17212b06}
.auth-card h2{font-size:23px}.auth-sub{font-size:14px;color:#505a65}.auth-card label{font-size:14px;color:#303942}
.auth-help,.account-help{font-size:13px;color:#5c6570}.auth-steps span,.auth-intro .auth-steps span:first-child{font-size:12px;color:#505a65;background:#fff;border-color:#dfe3e7}
.account-form label{font-size:14px;color:#303942}.account-buttons button{font-size:13px}.auth-error{font-size:13px}
@media(max-width:850px){.stat{padding:15px}.stat:nth-child(2){padding-top:13px}.topbar{gap:10px}.identity{gap:2px}.page-heading p{font-size:14px}}
@media(max-width:540px){
 .page-heading p{font-size:13px}.identity{font-size:12px}.identity .text-button{font-size:12px}
 .stat .label{font-size:13px}.stat small{font-size:12px}.stat strong{font-size:28px}
 .tabs{gap:16px}.tabs button{font-size:13px}.tabs span{font-size:12px;margin-left:4px}
 .section-top p{font-size:13px}.table-footer{padding:12px 14px}.requirements-table{min-width:0}
 .requirements-table td{padding-top:14px;padding-bottom:14px}.requirements-table .title-link{font-size:14px}
 .requirements-table .meta{font-size:12px;overflow-wrap:anywhere}
 .requirements-table th:nth-child(3),.requirements-table td:nth-child(3){width:88px}
 .requirements-table th:last-child,.requirements-table td:last-child{width:72px}.badge{font-size:12px;padding:4px 7px}
 .row-review{padding:5px 10px}.step{font-size:11px}.auth-card{padding:24px}.auth-intro p{font-size:14px}
}

/* Weekly release plan shares the existing list, filters and detail actions. */
.stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.weekly-stat{font:inherit;text-align:left;cursor:pointer;color:#20252b;border:1px solid #dfe3e7}
.weekly-stat .label{display:block}.weekly-stat strong{display:block}
.weekly-stat:hover,.weekly-stat.selected{border-color:#09395f;background:#f4f7fa}
.weekly-stat:focus-visible{outline:2px solid #09395f;outline-offset:3px}
.weekly-range{font-size:12px;color:#5c6570}.weekly-context{padding:12px 20px;background:#f4f7fa;color:#424a54;font-size:13px;border-top:1px solid #dfe3e7}
.weekly-mobile-date{display:none}
@media(max-width:1000px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.weekly-stat{grid-column:1/-1}.weekly-mobile-date{display:block;font-size:12px;color:#09395f;margin-top:4px}.weekly-context{padding:12px 14px;font-size:12px}}

/* Delivery dashboard is an independent, read-only view. */
.view-switch{display:flex;gap:8px;margin:0 0 24px;border-bottom:1px solid #dfe3e7}
.view-switch button{background:transparent;color:#505a65;border:0;border-bottom:3px solid transparent;padding:12px 18px;font:inherit;font-weight:600}
.view-switch button.active{color:#09395f;border-bottom-color:#09395f}
.view-switch button:focus-visible{outline:2px solid #09395f;outline-offset:2px}
.dashboard-period{display:flex;align-items:center;gap:10px;color:#505a65;font-size:13px}.dashboard-period select{min-width:105px}
.delivery-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.delivery-metric{background:#fff;border:1px solid #dfe3e7;border-radius:6px;padding:20px}
.delivery-metric h2{font-size:14px;font-weight:500;margin:0;color:#424a54}.metric-value{font-size:36px;font-weight:650;margin:12px 0 8px;line-height:1.3;font-variant-numeric:tabular-nums}
.metric-value span{font-size:14px;font-weight:400;margin-left:6px;color:#5c6570}.delivery-metric p{font-size:12px;color:#5c6570;margin:0;line-height:1.7}
.metric-warning{border-top:3px solid #b87914;padding-top:18px}.metric-warning .metric-value{color:#8a5100}
.progress-panel,.overdue-panel{margin-bottom:20px}.progress-panel .section-top,.overdue-panel .section-top{gap:12px;flex-wrap:wrap}
#deliveryProgress{padding:4px 24px 12px}.progress-row{display:grid;grid-template-columns:80px 1fr 65px;gap:16px;align-items:center;padding:10px 0;font-size:14px}
.progress-track{height:12px;background:#f0f2f4;border-radius:4px;overflow:hidden}.progress-fill{height:100%;background:var(--status-fg,#09395f);border-radius:4px}
.progress-row strong{text-align:right;font-variant-numeric:tabular-nums}.progress-row small{font-weight:400;color:#5c6570}
.delivery-queue{font-size:13px;color:#5c6570;margin:0;padding:0 24px 20px}.overdue-days{color:#8a5100;font-weight:600}
.overdue-table{min-width:640px;width:100%}.overdue-panel .table-wrap{max-height:440px;overflow:auto}.overdue-table th{position:sticky;top:0;z-index:1}.overdue-table td:first-child{width:40%}
.dashboard-empty{padding:24px;color:#5c6570;text-align:center}.metric-notes{font-size:13px;color:#5c6570;line-height:1.8;margin-bottom:24px}
.metric-notes summary{cursor:pointer;width:fit-content;color:#424a54}.metric-notes p{max-width:1100px}
#dashboardStatus{padding:24px;background:#fff;border:1px solid #dfe3e7;border-radius:6px;color:#5c6570}
@media(max-width:1000px){.delivery-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.view-switch{margin-bottom:18px}.view-switch button{padding:10px 12px}.delivery-metrics{gap:10px}.delivery-metric{padding:14px}.metric-warning{padding-top:12px}.metric-value{font-size:30px}.delivery-metric h2{font-size:13px}#dashboardView .page-heading{align-items:flex-start;gap:14px;flex-wrap:wrap}.dashboard-period{margin-bottom:4px}#deliveryProgress{padding:0 16px 12px}.progress-row{grid-template-columns:62px 1fr 45px;gap:10px;font-size:13px}.delivery-queue{padding:0 16px 16px}.overdue-table{min-width:560px}.metric-notes{font-size:12px}}

.overdue-mobile{display:none}
/* Priority uses the user's four-quadrant color key; status colors remain separate. */
.priority-badge{display:inline-flex;align-items:center;max-width:100%;border-radius:14px;padding:2px 10px;font-size:12px;font-weight:600;line-height:1.6;color:#20252b;white-space:normal;overflow-wrap:anywhere;background:#eef0f2}
.priority-P0{background:#ff8800;color:#302000}
.priority-P1{background:#ffd3a5;color:#4d321b}
.priority-P2{background:#aae9ff;color:#164c60}
.priority-P3{background:#fff0a3;color:#554510}
.priority-none{background:#f0f2f4;color:#5c6570;font-weight:400}
.list-priority{margin-top:6px}.priority-preview{display:block;margin-top:7px}
.priority-inline{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:#465563}
.priority-inline select{min-height:32px;max-width:100%;padding:4px 26px 4px 10px;border:1px solid #b8c5d0;border-radius:16px;font-size:13px;font-weight:600;cursor:pointer}
.priority-inline select:disabled{cursor:wait;opacity:.7}
.drawer-summary{flex-wrap:wrap;align-items:center;gap:10px 12px}
.requester-highlight{display:flex;align-items:center;gap:12px;flex-basis:100%;min-width:0;padding:12px 16px;margin-top:4px;background:#edf4fa;border:1px solid #c4d6e5;border-left:4px solid #09395f;border-radius:7px}
.requester-avatar{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:50%;background:#09395f;color:white;font-size:17px;font-weight:700}
.requester-highlight>div{min-width:0}.requester-caption{display:block;color:#465563;font-size:12px;line-height:1.5}
.requester-highlight strong{display:block;color:#09395f;font-size:17px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:540px){.requester-highlight{padding:10px 12px}.requester-highlight strong{font-size:16px}.list-priority .priority-badge{font-size:11px;padding:2px 8px}}
/* Keep the requirement itself visually primary in the detail drawer. */
.detail-section.requirement-info{margin:22px 0 24px;padding:20px;border:1px solid #ccd9e3;border-left:4px solid #09395f;border-radius:8px;background:#f3f7fa}
.requirement-info h3{margin:0 0 18px;color:#09395f;font-size:18px;font-weight:700;line-height:1.5}
.requirement-info .detail-grid{gap:16px}
.requirement-info .detail-grid>div{min-width:0}
.requirement-info .detail-label{font-size:13px;color:#465563;font-weight:600;margin-bottom:6px}
.requirement-info .detail-value{font-size:14px;color:#20252b}
.requirement-info .full{padding:14px 16px;border:1px solid #dce5ec;border-radius:6px;background:#fff}
.requirement-info .full .detail-label{color:#09395f;margin-bottom:8px}
.requirement-info .full .detail-value{font-size:15px;line-height:1.85}
@media(max-width:540px){.detail-section.requirement-info{padding:16px 14px;margin:18px 0 20px}.requirement-info .full{padding:12px}.requirement-info .detail-grid{gap:14px}}
@media(max-width:540px){.overdue-table{min-width:0;table-layout:fixed}.overdue-table th,.overdue-table td{padding:12px 10px}.overdue-table th:nth-child(3),.overdue-table td:nth-child(3),.overdue-table th:nth-child(4),.overdue-table td:nth-child(4){display:none}.overdue-table th:nth-child(2){width:82px}.overdue-table th:last-child{width:62px}.overdue-table td:first-child{width:auto}.overdue-mobile{display:block;font-size:12px;margin-top:5px;color:#5c6570}.overdue-table .title-link{font-size:14px}.overdue-table .row-open{white-space:nowrap}}
