:root{font-family:Inter,"Segoe UI",sans-serif;color:#23354b;background:#f5f7fa;font-synthesis:none;font-size:16px;--navy:#152b45;--blue:#245edb;--line:#e8edf3}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}button:focus-visible,select:focus-visible,a:focus-visible,.table-scroll:focus-visible{outline:3px solid #6090f2;outline-offset:3px}button{touch-action:manipulation}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.app-header{height:84px;background:#fff;border-bottom:1px solid var(--line);padding:0 4.6%;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px;font-weight:700;font-size:19px;white-space:nowrap}.brand-mark{width:40px;height:40px;background:var(--navy);color:#fff;display:grid;place-items:center;border-radius:11px}.brand-mark svg{width:24px;height:24px}.brand-secondary{color:#67788b;font-weight:400;font-size:16px;margin-left:8px}.demo-badge{border:1px solid #e1e7f0;padding:6px 11px;border-radius:6px;font-size:13px;color:#5b6b7f;background:#f8fafc}main{max-width:1500px;margin:0 auto;padding:49px 4.6% 40px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:31px;gap:20px}.eyebrow{font-size:12px;letter-spacing:.13em;font-weight:700;color:#75849a}h1{font-size:34px;letter-spacing:-1.1px;line-height:1.2;margin:10px 0 10px;font-weight:650;color:var(--navy)}.page-heading p{color:#788597;margin:0;font-size:16px}.team-label{display:flex;align-items:center;gap:14px;font-size:14px;color:#617187}.small-avatars{display:flex;padding-left:9px}.small-avatars i{font-style:normal;font-size:11px;font-weight:650;width:32px;height:32px;border-radius:50%;background:#e4eafa;color:#46618a;display:grid;place-items:center;border:2px solid #f5f7fa;margin-left:-9px}.small-avatars i:nth-child(2){background:#ece6f5;color:#806595}.small-avatars i:nth-child(3){background:#f3e4e8;color:#96667c}.roster-panel{background:#fff;border:1px solid #e0e6ed;border-radius:14px;box-shadow:0 4px 18px #1c354b04;overflow:hidden}.toolbar{display:flex;align-items:center;justify-content:space-between;padding:24px 27px;gap:20px}.week-title{display:flex;align-items:center;gap:15px}.calendar-icon{width:43px;height:43px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;font-size:27px;color:#596e88}.week-title h2{font-size:19px;line-height:1.3;margin:0 0 4px;font-weight:650}.week-title p{font-size:14px;color:#748298;margin:0}.week-controls{display:flex;gap:14px;align-items:center}.button{border:1px solid #dce3ec;background:white;color:#34475f;border-radius:7px;padding:10px 16px;font-size:14px;font-weight:550;min-height:42px;transition:background .15s}.button:hover{background:#f4f7fb}.arrows{display:flex;border:1px solid #dce3ec;border-radius:7px;overflow:hidden}.icon-button{border:0;background:transparent;color:#5f7188;font-size:26px;width:40px;min-height:40px;display:grid;place-items:center;line-height:1}.icon-button:hover{background:#f0f4fa}.arrows .icon-button+button{border-left:1px solid #e4e9f0}.table-scroll{overflow:auto}table{border-collapse:separate;border-spacing:0;width:100%;min-width:970px;table-layout:fixed}thead{background:#f9fafc}th,td{text-align:left;border-top:1px solid var(--line)}thead th{height:80px;font-size:14px;font-weight:550;color:#708097;padding:15px 16px}thead th:first-child{width:265px;padding-left:27px}.day-heading{display:flex;align-items:center;gap:7px;margin-bottom:7px}.day-date{font-size:16px;color:#384c65;font-weight:600}.today-label{font-size:11px;border-radius:4px;padding:2px 5px;color:#fff;background:var(--blue);font-weight:550}th.today{background:#f0f5ff;box-shadow:inset 0 3px var(--blue)}th.today .day-date{color:var(--blue)}tbody th{padding:20px 20px 20px 27px;font-weight:400;background:#fff}tbody td{padding:12px 10px;vertical-align:middle;border-left:1px solid #f0f3f7}td.today{background:#fbfcff}.employee{display:flex;align-items:center;gap:12px}.avatar{width:37px;height:37px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:600;color:#536e9f;background:#eaf0fb}.avatar.purple{background:#eee9f7;color:#8469a3}.avatar.rose{background:#f8e9ed;color:#ab7182}.avatar.teal{background:#e4f1f0;color:#5a8a84}.avatar.amber{background:#faf0dd;color:#a58a4d}.avatar.slate{background:#e9edf2;color:#6e7f92}.employee-name{font-size:14px;color:#2a3d55;font-weight:600}.employee-role{display:block;font-size:12px;color:#7c899a;margin-top:4px}.pattern-button{padding:3px;margin-left:auto;min-width:27px;height:29px;border:0;background:transparent;color:#8795a7;border-radius:5px;display:grid;place-items:center}.pattern-button svg{width:16px;height:16px}.pattern-button:hover{color:var(--blue);background:#edf3ff}.status-cell{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:42px;padding:10px 13px;border-radius:7px;border:1px solid transparent;font-size:14px;text-align:left;white-space:nowrap;transition:filter .15s,transform .15s}.status-cell:hover{filter:brightness(.97);border-color:currentColor;transform:translateY(-1px)}.status-cell svg{width:17px;height:17px}.office{background:#d1fae5;color:#166534}.home{background:#dbeafe;color:#1e40af}.leave{background:#fff4df;color:#99722b}.absent{background:#fcecee;color:#ac6170}.off{background:#f2f4f7;color:#8994a2}.exception-dot{display:inline-block;width:6px;height:6px;background:#7083a0;border-radius:50%;flex-shrink:0}.status-cell .exception-dot{position:absolute;right:6px;top:6px;background:currentColor}tfoot th{padding:18px 27px;font-size:13px;font-weight:500;color:#7c899a}tfoot td{padding:18px 23px;font-size:13px;color:#6d7f93}tfoot strong{font-size:14px;color:#465c77;font-weight:600;margin-right:3px}.panel-bottom{border-top:1px solid var(--line);padding:15px 27px;display:flex;justify-content:space-between;gap:15px;color:#7b889a;font-size:12px;background:#fdfdfe}.panel-bottom>span:first-child{display:flex;align-items:center;gap:8px}.legend{display:flex;justify-content:center;flex-wrap:wrap;gap:25px;margin-top:23px}.legend-item{display:flex;align-items:center;gap:8px;font-size:13px;color:#65768c}.legend-item .swatch{width:10px;height:10px;border-radius:3px;border:1px solid #0000000c}.workspace-note{display:flex;align-items:flex-start;justify-content:center;gap:10px;margin-top:33px;color:#7b899b;font-size:13px;line-height:1.7}.workspace-note p{margin:0}.workspace-note p span{color:#8996a7}.note-icon{border:1px solid #a7b2c1;border-radius:50%;width:15px;height:15px;text-align:center;line-height:14px;font-size:11px;flex-shrink:0;margin-top:3px}dialog{border:1px solid #e0e6ee;border-radius:16px;padding:28px;width:460px;max-width:calc(100% - 32px);color:#23354b;box-shadow:0 22px 80px #10253d33}dialog::backdrop{background:#13284066;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between}.close{margin:-12px -12px 0 0;font-size:27px}dialog h2{font-size:23px;margin:13px 0 7px;color:var(--navy)}#dialog-description{font-size:14px;color:#75859a;line-height:1.6;margin:0 0 22px}.status-options{border:0;padding:0;margin:0;display:grid;gap:9px}.status-options legend{font-size:14px;font-weight:600;margin-bottom:12px}.status-option{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e1e7ef;border-radius:8px;font-size:14px;cursor:pointer}.status-option:has(input:checked){border-color:var(--blue);background:#f2f6ff;box-shadow:0 0 0 1px var(--blue)}input[type=radio]{accent-color:var(--blue);width:17px;height:17px;margin:0}.status-option svg{width:17px;height:17px}.option-detail{margin-left:auto;font-size:12px;color:#7a8a9f}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.primary:hover{background:#1d50c0}.pattern-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0;font-size:14px}.pattern-row select{padding:10px 12px;background:#fff;color:#34475f;border:1px solid #d6e0ec;border-radius:7px;width:190px}.editor-note{font-size:13px;line-height:1.6;background:#f5f7fb;color:#73849a;padding:12px;border-radius:7px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;padding:14px 23px;border-radius:9px;font-size:14px;box-shadow:0 5px 25px #152b4529;z-index:2;max-width:90%}.error,#page-error{color:#a3384b;background:#fff0f2;padding:12px;font-size:14px;border-radius:6px}#page-error{margin:12px 26px}#loading{padding:12px 27px;color:#718298;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(min-width:1450px){tbody th{padding-top:24px;padding-bottom:24px}}@media(max-width:1050px){main{padding:32px 24px}.app-header{padding:0 24px}.team-label{display:none}table{min-width:970px}.table-scroll th:first-child{position:sticky;left:0;z-index:1;border-right:1px solid var(--line)}thead th:first-child{background:#f9fafc}tfoot th{background:#fff}}@media(max-width:600px){.app-header{height:70px;padding:0 18px}.brand-secondary{font-size:13px;margin-left:4px}.brand{font-size:17px;gap:10px}.brand-mark{width:34px;height:34px}.demo-badge{font-size:12px;padding:5px 7px}.demo-badge span{display:none}main{padding:30px 16px}.page-heading{margin-bottom:23px}h1{font-size:29px}.toolbar{padding:19px 16px;flex-wrap:wrap;gap:18px}.week-controls{justify-content:space-between;width:100%}.calendar-icon{display:none}.table-scroll thead th:first-child{width:220px;padding-left:16px}tbody th{padding-left:16px;padding-right:10px}.employee{gap:9px}.avatar{width:30px;height:30px}.employee-name{font-size:13px}.employee-role{font-size:12px}.panel-bottom{padding:14px 16px;flex-direction:column;gap:9px}.legend{justify-content:flex-start;gap:14px 20px}.workspace-note{margin-top:25px;font-size:12px}.table-scroll{max-height:660px}.table-scroll thead th{position:sticky;top:0;background:#f9fafc;z-index:2}.table-scroll thead th:first-child{z-index:3}.table-scroll thead th.today{background:#f0f5ff}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.heading-actions{display:flex;align-items:center;gap:16px;font-size:14px;color:#617187}.profile-field{display:grid;gap:7px;margin:15px 0;font-size:14px;font-weight:550}.profile-field input{width:100%;padding:10px 12px;border:1px solid #d6e0ec;border-radius:7px;color:#34475f;background:#fff}.profile-field input:focus-visible{outline:3px solid #6090f2;outline-offset:2px}dialog{max-height:calc(100dvh - 32px);overflow:auto}@media(max-width:600px){.page-heading{flex-wrap:wrap}.heading-actions{width:100%;justify-content:space-between}.employee-name,.employee-role{overflow-wrap:anywhere}}
.view-switch{display:flex;gap:4px;padding:4px;background:#e9eef5;border-radius:10px;width:fit-content;margin-bottom:18px}
.view-switch .button{border-color:transparent;background:transparent;min-width:92px}
.view-switch .button[aria-pressed=true]{background:#fff;color:#245edb;box-shadow:0 1px 5px #152b4514}
#month-hint{margin:0;padding:0 27px 18px;font-size:14px;color:#65768c}
.month-view th:first-child{position:sticky;left:0;z-index:3;width:240px;border-right:1px solid #dce3ec;box-shadow:4px 0 8px #152b4508}
.month-view thead th:first-child{background:#f9fafc}
.month-view thead th{height:96px;padding:12px 10px}
.month-view tbody th{padding:16px}
.month-view tbody td{padding:8px 6px}
.month-view .status-cell{padding:9px 7px;gap:4px;flex-direction:column;min-height:66px;font-size:14px}
.month-view .status-cell svg{width:15px;height:15px}
.month-view .cell-remark{font-size:13px}
.month-view .month-week{display:block;margin-top:5px;font-size:12px;color:#65768c;font-weight:400}
.month-view .week-start{border-left:2px solid #cbd5e3}
.month-view .day-heading{gap:4px;flex-wrap:wrap}
.month-view .day-date{font-size:15px}
@media(max-width:600px){.table-scroll .month-view th:first-child{width:240px}.table-scroll .month-view thead th:first-child{z-index:4}#month-hint{padding:0 16px 16px}}
.employee-info{min-width:0;flex:1}.employee-info .employee-name,.employee-info .employee-role{overflow-wrap:anywhere}.employee-edit-button{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;flex:0 0 28px;width:28px;height:28px;margin:-3px 0 0;padding:5px;border:0;border-radius:5px;background:transparent;color:#65768c}.employee-edit-button svg{width:17px;height:17px}.employee-edit-button:hover{background:#edf3fd;color:#245edb}
.setup-panel{margin:0 0 24px;padding:24px;border:1px solid #cbdaf7;background:#f0f5ff;border-radius:12px}.setup-panel h2{margin:0 0 10px;font-size:21px}.setup-panel p{font-size:14px;line-height:1.6;max-width:760px}.setup-actions{display:flex;gap:10px;flex-wrap:wrap}.empty-roster{padding:32px;text-align:center;color:#65768c}.week-controls{flex-wrap:wrap}
.cell-text{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.4}.cell-remark{display:block;font-size:13px;font-weight:400;margin-top:3px}.status-cell{align-items:flex-start}.status-cell svg{margin-top:2px}.pattern-title{font-size:16px;margin:24px 0 14px}.pattern-day{padding:8px 0 12px;border-top:1px solid #e8edf3}.pattern-day .pattern-row{margin:4px 0 8px}.pattern-remark{display:grid;grid-template-columns:1fr 190px;align-items:center;gap:12px;font-size:13px;color:#65768c}.pattern-remark input{min-width:0;width:100%;border:1px solid #d6e0ec;border-radius:7px;padding:9px 10px;color:#34475f;background:#fff;font-size:14px}.pattern-remark input:focus-visible{outline:3px solid #6090f2;outline-offset:2px}input:disabled{background:#f3f5f8;color:#75859a}

/* Date-specific changes use a subtle visible edge. */
.status-cell.is-exception{box-shadow:inset 3px 0 0 #526784}
.status-cell>svg{flex-shrink:0}


/* Keep status and remark together on one consistent-height line. */
#roster:not(.month-view){width:100%;min-width:0}
#roster .status-cell{height:42px;min-height:42px;flex-direction:row;align-items:center;gap:9px;padding:8px 10px}
#roster .status-cell svg{margin-top:0}
#roster .cell-text{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
#roster .cell-remark{display:inline;margin:0;font-size:inherit;font-weight:400}

/* Fit the five-day overview to its container instead of forcing a wide table. */
#roster:not(.month-view) th:first-child{width:22%;padding-left:12px;padding-right:8px}
#roster:not(.month-view) tbody th{padding-top:12px;padding-bottom:12px}
#roster:not(.month-view) tbody td{padding:8px 4px}
#roster:not(.month-view) thead th:not(:first-child){padding:12px 6px}
#roster:not(.month-view) .status-cell{padding:6px;gap:5px;min-width:0}
#roster:not(.month-view) .day-heading{flex-wrap:wrap;gap:4px;overflow-wrap:anywhere}
#roster:not(.month-view) .day-date{font-size:14px}
#roster:not(.month-view) .employee{gap:6px}
@media(max-width:1100px){#roster:not(.month-view) .employee>.avatar{display:none}#roster:not(.month-view) .status-cell>svg{display:none}}
@media(max-width:600px){#roster:not(.month-view) th:first-child{width:28%;padding-left:6px;padding-right:4px}#roster:not(.month-view) tbody td{padding:6px 2px}#roster:not(.month-view) .status-cell{padding:5px 3px}#roster:not(.month-view) thead th:not(:first-child){padding:10px 3px}#roster:not(.month-view) .day-heading{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#roster:not(.month-view) .today-label{display:none}#roster:not(.month-view) .employee-role{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.profile-field select{width:100%;min-width:0;padding:10px 12px;border:1px solid #d6e0ec;border-radius:7px;color:#34475f;background:#fff;font-size:14px}

.view-schema-option{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.view-schema-option .button{width:100%}.view-schema-option p{margin:10px 0 0;font-size:13px;line-height:1.5;color:#65768c}


/* Live availability stays inline with the employee name in both views. */
.availability-dot{display:inline-block;width:8px;height:8px;margin-left:6px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 2px #dcfce7;vertical-align:middle;flex-shrink:0}.legend-item .availability-dot{margin-left:0}

.pattern-hours{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}.pattern-hours label{display:grid;gap:5px;font-size:13px;color:#65768c}.pattern-hours input{min-width:0;width:100%;padding:9px 10px;border:1px solid #d6e0ec;border-radius:7px;background:#fff;color:#34475f;font-size:14px}.pattern-hours input:focus-visible{outline:3px solid #6090f2;outline-offset:2px}

.beta-badge{display:inline-flex;gap:7px;align-items:center;white-space:nowrap;padding:7px 12px;border:1px solid #e8c77a;border-radius:6px;background:#fff6dc;color:#79520d;font-size:14px;font-weight:700}.beta-badge span{font-weight:500}.view-bar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.view-bar .view-switch{margin-bottom:0}.date-heading{display:flex;align-items:center;gap:4px;justify-content:space-between}.day-event-edit{border:0;border-radius:5px;background:transparent;color:#728299;padding:4px;display:grid;place-items:center;flex-shrink:0;min-height:28px;min-width:28px}.day-event-edit:hover{background:#e7edf6;color:#245edb}.day-event-edit svg{width:14px;height:14px}.day-event-label{display:block;margin-top:9px;padding:5px 7px;border-radius:5px;border:1px solid var(--event-border);background:var(--event-bg);color:var(--event-ink);font-weight:600;font-size:14px;line-height:1.35;overflow-wrap:anywhere;white-space:normal}.event-amber{--event-bg:#fff0c5;--event-ink:#79500a;--event-border:#eacb7d}.event-blue{--event-bg:#e2edff;--event-ink:#27579a;--event-border:#b4cef5}.event-rose{--event-bg:#fde5eb;--event-ink:#943955;--event-border:#eab4c4}thead th.has-event{border-bottom:3px solid var(--event-border);vertical-align:top}.event-description{font-size:14px;line-height:1.6;color:#65768c}.event-colors{border:0;padding:0;margin:18px 0;display:flex;flex-wrap:wrap;gap:14px}.event-colors legend{font-size:14px;font-weight:550;margin-bottom:12px}.event-colors label{display:flex;align-items:center;gap:7px;font-size:14px;cursor:pointer}.event-swatch{width:14px;height:14px;border:1px solid var(--event-border);border-radius:4px;background:var(--event-bg)}
@media(max-width:600px){.app-header{height:auto;min-height:70px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;gap:10px}.beta-badge{font-size:13px;padding:5px 8px}.day-event-label{padding:4px 3px;font-size:12px}.date-heading{flex-wrap:wrap}.day-event-edit{min-height:26px;min-width:26px}}

/* A month fits the available width; phones show a five-column calendar per person. */
.coverage-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.coverage-chip,.coverage-icon{display:inline-flex;align-items:center;justify-content:center;gap:4px;border:1px solid currentColor;border-radius:5px;background:#fff;padding:4px;font-size:12px;line-height:1.4;min-height:28px}.coverage-chip svg,.coverage-icon svg{width:16px;height:16px}.warning{color:#a45400}.critical{color:#bd243d}.coverage-chip.warning,.coverage-icon.warning{background:#fff2d8}.coverage-chip.critical,.coverage-icon.critical{background:#ffe7eb}.coverage-icon{margin:3px auto;padding:3px;min-width:24px;min-height:24px}#coverage-summary{display:none;flex-wrap:wrap;gap:6px;padding:0 16px 16px}.coverage-period h3{font-size:16px;display:flex;gap:7px;align-items:center;line-height:1.5}.coverage-period ul{padding-left:22px;line-height:1.8;font-size:14px}.holiday-closed{display:flex;align-items:flex-start;gap:9px;font-size:14px;line-height:1.5;margin:16px 0}.holiday-closed input{width:18px;height:18px;accent-color:var(--blue);flex-shrink:0}
@media(max-width:900px){#coverage-summary{display:flex}.coverage-badges .coverage-chip{font-size:12px}}
#month-hint{line-height:1.7}
#month-events{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px 18px}
.month-event-item{border:1px solid var(--event-border);background:var(--event-bg);color:var(--event-ink);border-radius:6px;padding:7px 10px;font-size:14px;line-height:1.4;text-align:left;overflow-wrap:anywhere;max-width:100%}
.month-event-item strong{margin-right:5px}
#roster.month-view{width:100%;min-width:0}
#roster.month-view th:first-child{width:18%;position:static;box-shadow:none;padding:10px}
#roster.month-view thead .month-week-groups th{height:30px;padding:6px 2px;font-size:12px;text-align:center;border-right:1px solid #dce3ec}
#roster.month-view thead .month-week-groups th:first-child{text-align:left;padding-left:12px;font-size:14px}
#roster.month-view thead .month-day{width:auto;height:66px;padding:0;position:static;text-align:center;vertical-align:top;box-shadow:none}
#roster.month-view .month-date{display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;min-height:62px;padding:7px 0;border:0;background:transparent;color:inherit;border-radius:3px;font-size:12px}
#roster.month-view button.month-date:hover{background:#e8eef8}
#roster.month-view .month-date strong{font-size:14px;color:#34475f}
#roster.month-view .today .month-date strong{color:var(--blue)}
#roster.month-view .month-event-mark{font-size:12px;color:var(--event-ink);line-height:1}
#roster.month-view tbody th{padding:9px 10px}
#roster.month-view tbody td{padding:5px 2px}
#roster.month-view .employee{gap:5px}
#roster.month-view .avatar,#roster.month-view .employee-role{display:none}
#roster.month-view .employee-edit-button{flex-basis:24px;width:24px}
#roster.month-view .status-cell{height:32px;min-height:32px;justify-content:center;padding:0;gap:0;border-radius:4px;font-size:14px;font-weight:600}
#roster.month-view .status-cell.is-exception{box-shadow:inset 2px 0 #526784}
.month-code{position:relative;line-height:1.4}.month-code sup{font-size:12px;position:absolute;top:-3px;right:-6px}
.month-cell-date,.cell-event-mark{display:none}
#day-detail p{line-height:1.6;overflow-wrap:anywhere}
#detail-status{font-size:18px;font-weight:600}
@media(max-width:900px){
  .table-scroll.compact-month{max-height:none;overflow:visible}
  #roster.month-view{display:block;padding:0 14px 14px}
  #roster.month-view thead{display:none}
  #roster.month-view tbody{display:grid;gap:14px}
  #roster.month-view tbody tr{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;border:1px solid var(--line);border-radius:9px;padding:10px}
  #roster.month-view tbody th:first-child{display:block;grid-column:1/-1;width:auto;border:0;background:transparent;padding:3px 0 10px}
  #roster.month-view .employee-edit-button{margin-left:auto;flex-basis:28px}
  #roster.month-view .employee-name{font-size:14px}
  #roster.month-view tbody td{display:block;grid-column:var(--weekday);padding:0;border:0;min-width:0}
  #roster.month-view tbody td.today{background:transparent}
  #roster.month-view .status-cell{position:relative;height:54px;min-height:54px;display:flex;flex-direction:column;gap:2px;padding:4px 0}
  #roster.month-view .today .status-cell{outline:2px solid var(--blue);outline-offset:-2px}
  #roster.month-view .month-cell-date{display:block;font-size:12px;font-weight:400;white-space:nowrap}
  #roster.month-view .cell-event-mark{display:block;position:absolute;right:3px;bottom:3px;font-size:12px;color:var(--event-ink);line-height:1}
  #roster.month-view .empty-roster{grid-column:1/-1}
}

/* Explicit event warning, separate from staffing alerts. */
.event-important{--event-bg:#ffdc9c;--event-ink:#6b2600;--event-border:#c24b00}.day-event-label.event-important,.month-event-item.event-important{border:2px solid var(--event-border);border-left-width:5px;background:var(--event-bg);color:var(--event-ink);font-weight:700}.event-warning-prefix{display:inline-flex;align-items:center;gap:5px;margin-right:4px;font-weight:800}.event-warning-prefix svg,.month-event-mark svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;vertical-align:middle}.event-important-option{display:flex;align-items:center;gap:9px;border:1px solid #e1ad61;background:#fff5df;padding:12px;border-radius:6px;font-weight:650;margin-top:16px}.event-important-option input{accent-color:#b54b00;width:18px;height:18px}.cell-event-mark.event-important{background:#ffdc9c;color:#6b2600;border:1px solid #c24b00;border-radius:3px;padding:0 3px;font-weight:800}

.view-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}#download-pdf{white-space:nowrap}@media(max-width:600px){.view-bar{flex-wrap:wrap}.view-actions{justify-content:flex-start}}

/* First usability round: clearer text, less chrome and focused editing. */
.password-control{position:relative;display:flex;align-items:center}
.profile-field .password-control input{padding-right:52px}
.password-toggle{position:absolute;right:2px;top:2px;bottom:2px;width:44px;border:0;border-radius:5px;background:transparent;color:#536479;display:grid;place-items:center}
.password-toggle:hover{background:#edf3fd;color:#245edb}
.password-toggle svg{width:20px;height:20px}
.password-control input::-ms-reveal{display:none}
:root{--secondary:#536479}
.app-header{height:auto;min-height:68px;padding-block:10px;gap:16px}
.app-header .brand{font-size:18px;gap:10px}.brand-secondary{color:var(--secondary);font-size:14px}
.app-header .brand-mark{width:34px;height:34px;border-radius:9px}
.app-header .beta-badge{font-size:12px;padding:5px 8px;margin-right:auto}
.app-header .session-bar{margin:0;font-size:13px;gap:10px;color:var(--secondary)}
#session-email{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main{padding-top:22px;padding-bottom:24px}
.page-heading{margin-bottom:16px;gap:16px;align-items:center}
.page-heading h1{font-size:26px;letter-spacing:-.65px;margin:0}
.page-heading .heading-actions{gap:8px;font-size:13px}
.page-heading .view-actions{gap:8px}.heading-actions #employee-count{margin:0 6px}
.toolbar{padding:14px 18px;gap:12px;flex-wrap:wrap}
.calendar-icon{display:none}.week-title{gap:0}.week-title h2{font-size:18px}
.week-title p{color:var(--secondary);font-size:13px}
.week-controls{gap:8px}.week-controls .view-switch{margin:0;padding:3px;gap:2px;border-radius:8px}
.view-switch .button{min-width:66px;padding:8px 12px}
.button{padding:8px 12px;min-height:40px}.role-badge{font-size:12px}
.eyebrow,.employee-role,.panel-bottom,.legend-item,.workspace-note,.workspace-note p span,
.editor-note,.option-detail,#dialog-description,#loading,.pattern-hours label,.event-description,
#month-hint,.month-view .month-week,.role-user-email span{color:var(--secondary)}
.employee-edit-button,.pattern-button,.day-event-edit{color:#536479}
thead th{color:#536479}
.office{color:#166534}.home{color:#1e40af}.leave{color:#77500d}.absent{color:#8b3e51}.off{color:#586576}
.avatar{color:#3b5681}.avatar.purple{color:#654a82}.avatar.rose{color:#87465c}.avatar.teal{color:#356a64}.avatar.amber{color:#77591f}.avatar.slate{color:#506177}
.cell-remark{color:inherit}.legend{margin-top:16px;gap:12px 22px}.workspace-note{margin-top:16px}
.panel-bottom{padding:10px 18px}#month-hint{padding:0 18px 12px;font-size:13px}
.profile-field input::placeholder,.pattern-hours input::placeholder{color:#657285;opacity:1}
#editor{width:660px;padding:0;overflow:hidden;max-height:calc(100dvh - 32px)}
#edit-form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.editor-scroll{overflow:auto;overscroll-behavior:contain;padding:22px 24px 12px;min-height:0}
#editor .dialog-actions{flex-shrink:0;margin:0;padding:14px 24px;background:#fff;box-shadow:0 -3px 12px #152b4506}
#editor .dialog-top .close{margin:-6px -8px 0 0}
#editor #dialog-description{margin-bottom:16px}
.editor-tabs{display:flex;gap:4px;background:#e9eef5;border-radius:8px;padding:4px;margin-bottom:16px}
.editor-tabs [role=tab]{flex:1;min-height:40px;padding:8px 10px;border:0;border-radius:5px;background:transparent;color:#43546a;font-size:14px;font-weight:600}
.editor-tabs [aria-selected=true]{background:white;color:#1b50ba;box-shadow:0 1px 4px #152b4517}
#editor [role=tabpanel]{min-height:180px}
.pattern-day{border:1px solid var(--line);border-radius:9px;padding:12px;margin-bottom:10px;background:#fafbfd}
.pattern-day .pattern-row{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:10px;margin:0 0 10px}
.pattern-day .pattern-row label{min-width:0}.pattern-day .pattern-row select{width:100%;min-width:0;padding:8px;font-size:14px;min-height:40px}
.pattern-hours{grid-template-columns:1fr 1fr 1.65fr;gap:10px;margin:0}
.pattern-hours input{padding:8px;min-height:40px}
#editor .editor-note{margin:10px 0;font-size:13px;line-height:1.6}
#editor .status-option{padding:10px 12px;min-height:44px}
#editor .option-detail{max-width:47%;text-align:right}
@media(max-width:1100px){.page-heading{flex-wrap:wrap}.page-heading .heading-actions{justify-content:flex-start}.app-header{flex-wrap:wrap}.app-header .session-bar{margin-left:auto}.brand-secondary{display:none}}
@media(max-width:700px){
  main{padding:18px 16px 24px}.app-header{padding:10px 16px;gap:10px}.app-header .session-bar{width:100%;justify-content:space-between}
  .page-heading h1{font-size:24px}.page-heading .heading-actions{width:100%;gap:8px}.heading-actions #employee-count{margin:0}
  .toolbar{padding:12px}.week-controls{width:100%;justify-content:flex-start;gap:6px}.week-controls .view-switch{margin-right:auto}
  .week-controls #refresh-roster{order:5}.week-controls .button{padding:8px}.week-controls .view-switch .button{min-width:56px}
  #editor{max-width:calc(100% - 20px)}.editor-scroll{padding:16px}.editor-tabs [role=tab]{padding-inline:6px}
  #editor .dialog-actions{padding:12px 16px}.pattern-day .pattern-row{grid-template-columns:1fr 1fr;gap:8px}.pattern-row strong{grid-column:1/-1}
  .pattern-hours{grid-template-columns:1fr 1fr}.pattern-note{grid-column:1/-1}
}

.changes-bell {display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.changes-bell svg {width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#changes-count,.change-new {border-radius:20px;background:#e9eef8;color:#244b7b;padding:2px 7px;font-size:11px;font-weight:700}
#changes-dialog {width:min(680px,calc(100vw - 32px));max-height:85vh;overflow-y:auto}
.changes-tools {display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.change-entry {border:1px solid #dce3ec;border-radius:12px;padding:16px;margin:12px 0;background:#fff}
.change-entry.unread {border-left:4px solid #416998;background:#f8faff}
.change-entry-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
.change-entry h3 {margin:0;font-size:15px}.change-meta {font-size:12px;color:#536479;margin:7px 0;overflow-wrap:anywhere}
.change-kind {font-size:13px;font-weight:600;margin:10px 0}.change-values {display:grid;gap:10px}
.change-value {font-size:13px;line-height:1.6;overflow-wrap:anywhere}.change-value strong {display:block}.change-caption {display:inline-block;color:#536479;width:30px;font-size:12px}
.change-impact {margin-top:12px;font-size:12px}.change-impact summary {cursor:pointer;font-weight:600;color:#77500d;padding:6px 0}.change-impact p {color:#536479}
.change-impact-day {display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.change-impact-day strong {width:100%}
.change-alert {padding:4px 8px;border-radius:6px}.change-alert.critical {background:#fdebed;color:#982f3c}.change-alert.warning {background:#fff0d5;color:#77500d}
#changes-newer {padding:10px;background:#e9eef8;border-radius:6px;color:#244b7b;font-size:13px}
@media(max-width:600px){.changes-button-label{display:none}#changes-dialog{padding:18px}.change-entry{padding:12px}}

/* A focused two-column view of the current calendar day. */
#roster.today-view{width:100%;min-width:0;table-layout:fixed}
#roster.today-view th:first-child{width:36%;padding:16px 20px}
#roster.today-view thead th:not(:first-child){padding:16px 20px}
#roster.today-view tbody td{padding:10px 20px}
#roster.today-view .status-cell{height:auto;min-height:46px;padding:10px 14px;gap:10px;font-size:15px;justify-content:flex-start}
#roster.today-view .status-cell>svg{display:block;flex-shrink:0}
#roster.today-view .employee>.avatar{display:flex}
#roster.today-view .employee-name,#roster.today-view .employee-role{white-space:normal;overflow-wrap:anywhere}
#roster.today-view .cell-text,#roster.today-view .cell-remark{white-space:normal;overflow:visible;text-overflow:clip}
@media(max-width:600px){#roster.today-view th:first-child{width:43%;padding:12px 10px}#roster.today-view thead th:not(:first-child),#roster.today-view tbody td{padding:10px}#roster.today-view .employee>.avatar{display:none}#roster.today-view .status-cell{padding:8px;font-size:14px}#roster.today-view .day-heading{white-space:normal}#roster.today-view .today-label{display:none}}

.password-success{padding:12px;border-radius:8px;background:#e9f5ee;color:#225e3d;font-size:14px;line-height:1.5}#password-account{overflow-wrap:anywhere}#password-dialog{max-height:90vh;overflow:auto}

#period-dialog{width:560px;max-height:90vh;overflow:auto}.period-dates{display:grid;grid-template-columns:1fr 1fr;gap:14px}.period-dates>*{min-width:0}.period-preview{margin:14px 0;padding:12px;background:#f2f6fb;border-radius:8px;font-size:13px;line-height:1.6}.period-preview:empty{display:none}.period-preview p{margin:6px 0}.period-overwrite{color:#77500d}.period-preview summary{cursor:pointer}#period-dialog .dialog-actions{position:sticky;bottom:-28px;background:white;padding-bottom:16px}@media(max-width:420px){.period-dates{grid-template-columns:1fr;gap:0}}

#period-dialog{width:620px;padding:20px}#period-dialog .profile-field{margin:8px 0;gap:5px}#period-dialog .event-description{margin:6px 0 10px}#period-dialog h2{margin-top:7px}#period-dialog .holiday-closed{margin:10px 0}.period-help{font-size:13px;color:#65768c}.period-help summary{cursor:pointer}#period-dialog .period-preview{margin:10px 0;padding:10px}#period-dialog .dialog-actions{bottom:-20px;margin-top:12px;padding:12px 0 4px}

#period-refresh{margin-right:auto}#period-dialog .dialog-actions{flex-wrap:wrap}#period-dialog .dialog-top .close{margin:0 -8px 0 0}

.nonworking{background:#e9edf2;color:#526175}.nonworking-day input:disabled,.nonworking-day select:disabled{background:#f2f4f7;color:#718096;cursor:not-allowed}

#pdf-dialog{width:520px;max-height:90vh;overflow:auto}#pdf-current-label{display:block;font-size:12px;color:#65768c;margin-top:5px}#pdf-dialog .dialog-top h2{margin-top:0}#pdf-selection-summary{font-size:13px;color:#526175}

/* Aq status colors */
.home{background:#dcfce7;color:#166534}.onsite{background:#ede9fe;color:#5b21b6}
