:root{font-family:var(--app-font,"Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif);color:#302d3d;background:#f7f6fa;font-size:13px;--violet:#6b56b7;--line:#e9e6ef;--muted:#888394}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #ded9e9;background:#fff;color:#514b61;border-radius:7px;padding:8px 12px;white-space:nowrap}button:hover{border-color:#aa9bce;background:#f6f3fc}button:disabled{opacity:.4;cursor:default}.primary{background:var(--violet);border-color:var(--violet);color:#fff}.primary:hover{background:#5d48a5;color:#fff}.danger{color:#bd4656;border-color:#ebc9cf}.quiet{border-color:transparent;background:transparent}.tiny{padding:4px 7px;font-size:11px}h1,h2,h3,p{margin:0}h1{font-size:21px;letter-spacing:-.8px}h2{font-size:18px}h3{font-size:14px}.muted{color:var(--muted)}.small{font-size:11px}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:20px}.brand{display:flex;align-items:center;gap:11px}.brand-icon{display:grid;place-items:center;width:34px;height:36px;background:#eee9f9;color:var(--violet);border-radius:10px;font-size:20px}.brand strong{font-size:16px}.brand small{display:block;color:#aaa3b5;font-size:10px;margin-top:3px;letter-spacing:1px}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.spread{justify-content:space-between}.top-right{display:flex;align-items:center;gap:12px}.user-chip{padding-left:16px;border-left:1px solid var(--line);font-size:12px}.badge{font-size:10px;border-radius:4px;padding:3px 6px;display:inline-block;background:#eee9f8;color:#75639d;line-height:1.4}.badge.new{background:#e5f3ea;color:#3a8960}.badge.leader{background:#fff1d3;color:#a97b1e}.preview{color:#a4671f;background:#fff5df}.nav{background:white;display:flex;gap:28px;padding:0 30px;border-bottom:1px solid var(--line)}.nav button{border:0;border-radius:0;background:none;padding:17px 2px 13px;color:#8a8495;position:relative}.nav button.active{font-weight:700;color:var(--violet)}.nav button.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--violet);border-radius:3px 3px 0 0}main{padding:24px 28px 35px;max-width:2100px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.page-heading p{color:#96909f;margin-top:6px;font-size:12px}.month-nav{display:flex;align-items:center;gap:14px}.month-nav h1{font-size:23px;font-weight:600;min-width:145px;text-align:center}.month-nav button{border:none;background:none;padding:5px 9px;font-size:22px;color:#9b94a7}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.unit-tabs{display:flex;gap:6px;flex-wrap:wrap}.unit-tabs button{background:#efedf4;border-color:transparent;color:#96909e;padding:8px 15px}.unit-tabs button.active{color:var(--violet);background:#fff;border:1px solid #c8bbdf;box-shadow:0 1px 4px #72628e0b}.summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}.stat-card{background:#fff;padding:15px 18px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.stat-card .stat-value{font-size:22px;font-weight:600;color:#5b4d87}.stat-card span:first-child{font-size:11px;color:#91879d}.stat-card .stat-note{font-size:10px;color:#b0a9b7}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 267px;gap:18px;align-items:start}.schedule-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.card-head{padding:14px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.card-head h3{font-size:13px}.legend{display:flex;gap:12px;flex-wrap:wrap;color:#96909f;font-size:10px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:4px}.table-scroll{overflow:auto;max-height:65vh;position:relative}table{border-collapse:separate;border-spacing:0;width:100%}.roster{font-size:11px;table-layout:fixed;min-width:1360px}.roster th,.roster td{height:37px;text-align:center;border-right:1px solid #f0edf4;border-bottom:1px solid #eeeaf2;padding:0}.roster thead th{position:sticky;top:0;z-index:4;background:#faf9fc;font-weight:500;color:#8f879b;height:46px}.roster .name-col{width:126px;position:sticky;left:0;z-index:3;background:white;padding:0 9px;text-align:left}.roster thead .name-col{z-index:6;background:#faf9fc;text-align:center}.roster .tot-col{width:38px;background:#faf9fc}.roster .date-col{width:33px}.day-head{display:block;width:100%;height:46px;padding:3px 0;border:0;border-radius:0;background:none;font-size:11px;color:inherit}.day-head small{display:block;font-size:9px;margin-top:2px;color:#b2abba}.roster .sun,.roster .sun .day-head small{color:#d38d97}.roster .sat,.roster .sat .day-head small{color:#83a3c7}.roster .weekend{background:#fdfbfc}.roster .today{box-shadow:inset 0 3px #9d86cf}.group-row td{background:#f2eff8;text-align:left;height:30px;padding-left:12px;color:#80718e;font-size:11px;font-weight:600}.cell-button{position:relative;border:0;background:transparent;width:100%;height:36px;padding:0;border-radius:0;font-size:12px;font-weight:500}.cell-button:hover{background:#eee8fa!important;box-shadow:inset 0 0 0 1px #c4b3df}.cell-button.locked:after{content:"";position:absolute;right:2px;top:3px;border-top:4px solid #c9c0d6;border-left:4px solid transparent}.cell-button.support:before{content:"↗";position:absolute;right:1px;bottom:1px;font-size:8px;color:#6e8aa4}.cell-button.essential{background:#fff3bf!important;box-shadow:inset 0 0 0 1px #ead780}.cell-button.code-D{color:#4d91a6}.cell-button.code-E{color:#9b6bb6}.cell-button.code-S{color:#b39a34}.cell-button.code-N{color:#597aac;background:#eff3fa}.cell-button.code-NS{color:#b97831;background:#fff0dc;font-weight:700}.cell-button.code-F{color:#a5a0ae}.cell-button.code-휴{color:#4caa81;background:#edf9f3}.cell-button.code-병가,.cell-button.code-휴직{color:#c2747c;background:#fff2f2}.cell-button.code-S교{color:#cd6777;background:#fff5f5}.cell-button.inactive{background:#f2f1f4;color:#c6c0cd;cursor:default}.employee-name{display:block;font-weight:500;color:#655e70;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.employee-name .badge{font-size:8px;padding:1px 3px;margin-left:3px}.tot-bad{color:#c57479;font-weight:600}.tot-good{color:#5f9a80}.counts td{height:26px;color:#96909f;font-size:9px;background:#fdfcfe}.counts .name-col{background:#faf9fc;font-size:10px;color:#9b92a6}.counts .short{color:#d46c74;background:#fff1f1}.table-footer{display:flex;justify-content:space-between;padding:12px 16px;font-size:10px;color:#b0a8bb;gap:10px}.sidebar{display:grid;gap:14px}.side-card{border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden}.side-title{padding:14px 14px 11px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #f0edf4}.side-title h3{font-size:12px}.side-body{padding:13px}.issue-list{max-height:350px;overflow:auto}.issue{padding:11px 13px;border-bottom:1px solid #f1eef5;cursor:pointer}.issue:hover{background:#faf8fc}.issue-top{font-size:11px;display:flex;gap:5px;align-items:center;color:#9e7e4c}.issue.error .issue-top{color:#bf6d79}.issue p{font-size:10px;color:#a299ad;margin:5px 0 0;line-height:1.6}.issue small{font-size:9px;color:#aaa1b4}.empty{padding:28px 15px;color:#aaa1b4;text-align:center;line-height:1.9}.note-list{font-size:10px;color:#a198ad;line-height:2}.dot{width:5px;height:5px;background:#bfaed8;border-radius:50%;display:inline-block;margin-right:5px}.save-state{font-size:10px;color:#8b9c8a}.save-state.pending{color:#b59a66}.save-state.error{color:#c05d70}.bottom-help{margin-top:13px;color:#aaa2b6;font-size:10px}.panel{background:#fff;border:1px solid var(--line);border-radius:11px;padding:22px;margin-bottom:18px}.panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.data-table{font-size:12px}.data-table th{text-align:left;font-size:10px;color:#a098ab;background:#faf9fc;padding:11px 12px;font-weight:500}.data-table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}.table-wrap{overflow:auto}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}.field label{font-size:11px;color:#8b8199}.field input,.field select,.field textarea,input[type=search]{border:1px solid #e0d9e9;background:#fff;border-radius:6px;padding:9px 10px;color:#5f556e;width:100%;min-width:0}.field textarea{resize:vertical;min-height:70px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.full{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px;font-size:12px;margin:8px 0 16px}.check input{accent-color:var(--violet)}.priority{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);padding:10px 13px;border-radius:7px;margin-bottom:8px}.priority-index{display:inline-block;border-radius:50%;padding:3px 7px;margin-right:10px;font-size:10px;background:#f0ebf9;color:var(--violet)}.settings-note{font-size:11px;color:#9d94a8;line-height:1.8;margin:12px 0}.login-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at top right,#eae3f7,transparent 60%),#f8f6fb}.login-card{width:min(420px,calc(100% - 36px));background:white;border:1px solid #e8e1f0;border-radius:17px;padding:35px;box-shadow:0 20px 80px #53437b0d}.login-card .brand{margin-bottom:28px}.login-card h2{margin-bottom:8px}.login-card p{font-size:12px;line-height:1.8;color:#9b8faa;margin-bottom:25px}.login-card .primary{width:100%;padding:11px}.error-text{color:#bd6070;font-size:11px;line-height:1.7;margin:10px 0}.initial-loading{padding:80px;text-align:center;color:#9d8db8}dialog{border:1px solid #ded5e9;border-radius:13px;padding:0;max-width:calc(100vw - 40px);max-height:90vh;color:#51475e;box-shadow:0 25px 100px #30264230}dialog::backdrop{background:#29203555;backdrop-filter:blur(2px)}dialog,dialog *{scrollbar-width:none}dialog::-webkit-scrollbar,dialog *::-webkit-scrollbar{display:none}.modal-content{padding:24px;width:520px;max-width:100%;overflow:auto;max-height:90vh}.modal-content.wide{width:860px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:21px}.modal-head h2{font-size:17px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:21px;border-top:1px solid var(--line);padding-top:16px}.palette{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:13px 0 20px}.palette button{padding:12px 6px}.palette button.selected{background:#eee7fa;border-color:#aa94d0;color:#76569f;box-shadow:inset 0 0 0 1px #aa94d0}.callout{background:#f6f2fc;border:1px solid #e8dff5;color:#9b83b8;font-size:11px;line-height:1.8;padding:11px 13px;border-radius:7px;margin:12px 0}.callout.warn{background:#fff8ea;border-color:#f0dfb6;color:#a9915c}.callout.error{background:#fff1f3;border-color:#edccd3;color:#b57180}.chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.chip{border:1px solid #e7e0ee;border-radius:5px;padding:4px 7px;font-size:10px;color:#9885ab}.event-item{border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:10px}.event-item .row{justify-content:space-between}.member-select{max-height:180px;overflow:auto;border:1px solid var(--line);padding:7px 10px;border-radius:6px}.member-select label{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;min-width:120px}.candidate-table{max-height:300px;overflow:auto}.candidate-table td,.candidate-table th{padding:8px}.day-section{margin:17px 0}.day-section h3{margin-bottom:9px;font-size:12px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;background:#5b4b74;color:white;padding:11px 19px;border-radius:9px;z-index:100;font-size:12px;transition:.2s}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.reviewed{opacity:.55}.reviewed .issue-top{text-decoration:line-through}.auth-warning{padding:12px;background:#fff4e3;color:#ac8246}.toolbar-menu{position:relative}.menu{position:absolute;right:0;top:40px;background:#fff;z-index:20;box-shadow:0 8px 30px #49375920;border:1px solid var(--line);border-radius:8px;min-width:170px;padding:5px}.menu button{display:block;width:100%;text-align:left;border:0}.print-title{display:none}.mobile-toggle{display:none}@media(min-width:1600px){.roster{min-width:1450px}.workspace{grid-template-columns:minmax(0,1fr) 285px}}@media(max-width:1150px){.workspace{grid-template-columns:1fr}.sidebar{grid-template-columns:1fr 1fr}.summary-strip{gap:8px}.topbar{padding:0 18px}.top-right .muted{display:none}}@media(max-width:700px){main{padding:18px 12px}.topbar{padding:0 12px}.brand small{display:none}.user-chip{display:none}.nav{padding:0 16px}.page-heading,.toolbar{align-items:flex-start;flex-direction:column}.summary-strip{grid-template-columns:1fr 1fr}.stat-card{padding:10px 12px}.stat-card .stat-value{font-size:18px}.sidebar,.panel-grid{grid-template-columns:1fr}.fields{grid-template-columns:1fr}.modal-content{width:calc(100vw - 40px);padding:20px}.full{grid-column:auto}.top-right{gap:4px}.preview{font-size:8px}.month-nav h1{font-size:21px}}@media print{@page{size:A3 landscape;margin:10mm}body{background:white;font-size:10px}.topbar,.nav,.page-heading,.toolbar,.summary-strip,.sidebar,.bottom-help,.table-footer,#modal,#toast,.no-print{display:none!important}main{padding:0;max-width:none}.workspace{display:block}.schedule-card{border:0;border-radius:0}.card-head{padding:8px 0}.legend{font-size:8px}.table-scroll{max-height:none;overflow:visible}.roster{min-width:0;width:100%;table-layout:fixed;font-size:8px}.roster .name-col{width:80px;position:static}.roster .tot-col{width:22px}.roster .date-col{width:auto}.roster th,.roster td{height:27px}.cell-button{height:26px;font-size:8px}.roster thead th{position:static;height:31px}.day-head{height:31px;font-size:8px}.day-head small{font-size:7px}.group-row td{height:23px}.employee-name{font-size:9px}.employee-name .badge{font-size:6px}.counts td{height:22px}.print-title{display:block;font-size:18px;margin-bottom:10px}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

.stat-card .unstarted-value{font-size:18px;color:#9e8cbb}.unstarted-guide{padding:25px 16px;text-align:center}.unstarted-icon{display:inline-grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#f1ecf9;color:#9b83bd;font-size:24px;margin-bottom:15px}.unstarted-guide h3{font-size:12px;font-weight:500;color:#796a8d}.unstarted-guide p{font-size:11px;line-height:1.9;color:#a197ad;margin:10px 0 17px}.unstarted-guide button{font-size:11px;padding:8px 13px}.unstarted-guide small{display:block;font-size:9px;line-height:1.7;color:#b0a6bb;margin-top:14px}
.settings-intro{padding:17px 20px;border:1px solid #e1d8ef;background:#f0ebf8;border-radius:10px;color:#6e5c88;margin-bottom:20px;line-height:1.8}.settings-intro strong{font-size:13px}.settings-intro p{font-size:12px;color:#8c7a9e;margin-top:4px}.settings-layout{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,1fr);gap:20px;align-items:start}.settings-layout h2{font-size:17px}.setting-section{margin:25px 0 17px;padding-top:18px;border-top:1px solid var(--line);color:#7f6c94;font-size:13px}.setting-field{margin-bottom:20px}.setting-field .field{margin-bottom:7px}.setting-field p,.field-help{font-size:11px;line-height:1.85;color:#93869e}.setting-field small{display:block;font-size:10px;line-height:1.8;color:#aa91b9;background:#faf7fd;border-radius:5px;padding:7px 9px;margin-top:7px}.field-help{margin-top:4px}.field-help strong{font-weight:600;color:#826b98}.priority-detailed{align-items:flex-start;padding:14px 13px;gap:12px}.priority-content{min-width:0}.priority-heading{display:flex;align-items:center;gap:5px;font-size:12px;color:#746087}.priority-heading .priority-index{flex:none;margin:0 4px 0 0}.priority-content p{font-size:10px;color:#9c8da8;line-height:1.9;margin:8px 0}.priority-content small{display:block;font-size:10px;color:#ad94ba;line-height:1.8}.priority-controls{display:flex;gap:4px;flex:none;padding-top:2px}.glossary summary{cursor:pointer;font-size:14px;font-weight:600;color:#7c668f}.glossary[open] summary{margin-bottom:18px}.settings-priorities .settings-note{margin-bottom:17px}@media(max-width:1000px){.settings-layout{grid-template-columns:1fr}}@media(max-width:700px){.settings-layout .panel{padding:18px}.setting-field{margin-bottom:15px}.priority-controls{flex-direction:column}.settings-intro{padding:14px 16px}}
.scope-details{margin:7px 0;font-size:10px;color:#9b86af;line-height:1.8}.scope-details summary{cursor:pointer;color:#9b86af;font-size:10px}.scope-details p{padding:7px 9px;background:#faf7fd;border-radius:5px;margin-top:6px;font-size:10px;line-height:1.9}.scope-details[open] summary{color:#7c5fa0}

/* Content-sized dialogs stop at the viewport limit; only inner lists get cues. */
dialog{overflow:hidden;max-width:92vw;max-height:88dvh}
.modal-content{height:auto;max-height:calc(88dvh - 2px)}
.modal-content.wide{width:min(860px,calc(92vw - 2px))}
.comparison-layout{display:flex;flex-direction:column;overflow:hidden}
.comparison-layout> :not(.candidate-table):not(.candidate-issues){flex:none}
.comparison-layout .modal-head{margin-bottom:16px}
.comparison-layout>.callout{margin:0 0 12px}
.comparison-layout .candidate-table{flex:0 1 auto;min-height:0;max-height:38dvh;overflow:auto}
.comparison-layout .candidate-issues{flex:0 1 auto;min-height:0;max-height:22dvh;overflow:auto}
.comparison-section-title{margin:14px 0 8px}
.comparison-layout .modal-actions{margin-top:14px;padding-top:12px}
.scroll-hints{position:fixed;inset:0;pointer-events:none;z-index:20}
.scroll-hint{position:fixed;transform:translateX(-50%);display:grid;place-items:center;width:40px;height:24px;padding:0;border:0;border-radius:0;background:linear-gradient(to top,#fffffff2,transparent);color:var(--violet);opacity:.55;box-shadow:none;pointer-events:auto;line-height:1;z-index:1;transition:opacity .15s}
.scroll-hint svg{display:block;width:20px;height:12px}
.scroll-hint-up{background:linear-gradient(to bottom,#fffffff2,transparent)}
.scroll-hint:hover,.scroll-hint:focus-visible{opacity:.95;border:0}
.scroll-hint:focus-visible{outline:1px solid #b5a5d7;outline-offset:1px}
.scroll-hint[hidden]{display:none}
@media(max-height:600px){.comparison-layout{padding:14px 20px}.comparison-layout .modal-head{margin-bottom:8px}.comparison-layout .callout{padding:8px 10px;margin-bottom:8px}.comparison-layout .modal-actions{margin-top:8px;padding-top:8px}.comparison-section-title{margin:8px 0 5px}}

.request-date-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px;margin:12px 0}.request-date-grid label{display:flex;align-items:center;gap:5px;padding:6px}.fields[hidden]{display:none}

.staffing-range{display:flex;align-items:center;gap:4px}.staffing-range input{width:52px;padding:6px;border:1px solid #e4ddeb;border-radius:5px}
.modal-content.wide.prep-wizard{width:min(1180px,calc(92vw - 2px));display:flex;flex-direction:column;overflow:hidden}
.prep-wizard>.modal-head,.prep-wizard>.settings-note,.prep-wizard>.prep-steps,.prep-wizard>.modal-actions{flex:none}
.prep-step-body{min-height:0;overflow:auto}
.prep-steps{display:flex;list-style:none;gap:18px;padding:0;margin:6px 0 20px}
.prep-steps li{display:flex;align-items:center;gap:7px;color:#aaa2b5;font-size:12px}
.prep-steps span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#f0edf5}
.prep-steps .current{color:#6651b5;font-weight:700}.prep-steps .current span{background:#6c55b8;color:white}.prep-steps .done{color:#6c55b8}
.prep-brushes{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.prep-grid-scroll{max-height:48dvh;overflow:auto;border:1px solid #e5dfed;border-radius:8px}
.prep-grid{border-collapse:separate;border-spacing:0;min-width:100%;font-size:12px;user-select:none}
.prep-grid th,.prep-grid td{padding:0;border-bottom:1px solid #eee8f4;border-right:1px solid #eee8f4;text-align:center}
.prep-grid thead th{position:sticky;top:0;z-index:2;background:#f8f6fb;padding:7px 0;min-width:31px}
.prep-grid th:first-child{position:sticky;left:0;min-width:150px;text-align:left;padding:5px 10px;background:#fff;z-index:1}
.prep-grid thead th:first-child{z-index:3;background:#f8f6fb}
.prep-grid small{display:block;font-size:10px;font-weight:400;color:#94889f;margin-top:3px}
.prep-grid .prep-day{min-width:31px;width:100%;height:38px;padding:0;border:0;border-radius:0;background:white;color:#a399ae}
.prep-grid .prep-day.leave{background:#e5f4eb;color:#34734e;font-weight:700}.prep-grid .prep-day.fixed-off{background:#f0edf5;color:#655b76;font-weight:700}
.prep-grid .prep-day.preferred{background:#fff6dd;color:#927136;font-size:10px}.prep-grid .prep-day:disabled{background:#f6f4f8;color:#b3abbc}
.prep-grid .prep-day:focus-visible{outline:2px solid #7e67c4;outline-offset:-2px}
.leave-balance-toggle{display:flex;gap:10px;align-items:center;padding:12px;background:#f7f4fc;border-radius:8px;margin-bottom:16px}
.leave-balance-toggle input{appearance:none;width:36px;height:20px;border-radius:12px;background:#c6bfd0;position:relative;cursor:pointer;flex:none}
.leave-balance-toggle input:before{content:'';position:absolute;width:16px;height:16px;left:2px;top:2px;border-radius:50%;background:white;transition:transform .15s}
.leave-balance-toggle input:checked{background:#725bbb}.leave-balance-toggle input:checked:before{transform:translateX(16px)}

.prep-grid small.error-text{color:#bd4656}
/* Keep wheel/touch scrolling inside an open dialog; CSS also handles Escape. */
html{scrollbar-gutter:stable}
html:has(dialog[open]),body:has(dialog[open]){overflow:hidden;overscroll-behavior:none}
dialog,.modal-content,.prep-step-body{overscroll-behavior:contain}

.roster-highlight-toggle{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#756887;white-space:nowrap}.roster-highlight-toggle input{accent-color:#725bbb}
.roster-highlight-toggle input{appearance:none;position:relative;width:28px;height:16px;border-radius:10px;background:#c9c1d4;cursor:pointer;margin:0}.roster-highlight-toggle input:before{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;background:white;border-radius:50%;transition:transform .15s}.roster-highlight-toggle input:checked{background:#725bbb}.roster-highlight-toggle input:checked:before{transform:translateX(12px)}
.prep-grid .prep-day.prior-request:disabled{opacity:.55;background:#eeeaf3;color:#655b76;cursor:not-allowed}
.prep-grid .prep-day.work-request{background:#eee7fc;color:#6046a2;font-weight:700}
.prep-work-options:empty{display:none}
.modal-content.wide.prep-wizard.prep-review{width:min(820px,calc(92vw - 2px));max-height:88dvh}
.prep-wizard>.modal-head{margin-bottom:8px}.prep-wizard>.settings-note{margin:0 0 12px}
.prep-wizard>.prep-steps{margin-bottom:16px;flex-wrap:wrap;gap:10px 18px}
.prep-review-section{padding:16px 0;border-top:1px solid var(--line)}
.prep-review-section h3{margin-bottom:12px}.prep-review-section .field{margin-bottom:8px}
.prep-review .field-help{font-size:11px;line-height:1.7;color:var(--muted);margin-top:6px}
.prep-review-check{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;margin:8px 0;background:#faf9fc;border:1px solid var(--line);border-radius:8px;cursor:pointer}
.prep-review-check input[type=checkbox]{flex:0 0 16px;width:16px;height:16px;margin:2px 0 0;accent-color:var(--violet)}
.prep-review-check span{min-width:0}.prep-review-check strong{display:block;font-weight:500;font-size:12px;line-height:1.7}
.prep-review-check small{display:block;font-size:11px;line-height:1.7;color:var(--muted);margin-top:2px}
.prep-review-check:has(input:checked){background:#f4f0fb;border-color:#c8bce3}
.prep-review-details{padding:4px 12px 4px 38px;font-size:11px;line-height:1.9}.prep-review-details p+p{margin-top:5px}
.prep-review-ok{font-size:12px;color:#52765f;line-height:1.7}.prep-review .callout p+p{margin-top:10px}
.prep-review>.modal-actions{margin-top:4px}
.modal-content.wide.candidate-layout{width:min(1500px,calc(96vw - 2px));max-height:90dvh;display:flex;flex-direction:column;overflow:hidden}
.candidate-layout>.modal-head{margin-bottom:10px}.candidate-intro{font-size:12px;color:var(--muted);margin-bottom:12px;line-height:1.6}.candidate-tabs{flex-wrap:wrap;flex:none;margin-bottom:8px}.candidate-count{display:inline-block;border-radius:10px;padding:1px 6px;background:#ede7f7;margin-left:4px;font-size:11px}.candidate-key{margin-left:8px}.candidate-key.error{color:#b64e60}.candidate-key.warning{color:#9f792d}
.candidate-workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;min-height:0;margin-top:12px;overflow:hidden}
.candidate-grid{overflow:auto;min-height:0;max-height:58dvh;border:1px solid var(--line);border-radius:8px}.candidate-grid .prep-grid th:first-child{min-width:100px}.candidate-grid .prep-grid thead th{padding:0;min-width:34px}.candidate-grid thead button{border:0;border-radius:0;width:100%;padding:7px 3px;background:transparent;position:relative}.date-problems{display:block;font-size:9px;color:#ad5365}.candidate-date-active{box-shadow:inset 0 -3px #8872c8}
.candidate-shift{position:relative;width:100%;min-width:34px;height:36px;padding:0;border:0;border-radius:0}.candidate-shift sup{position:absolute;top:1px;right:2px;font-size:9px;color:#b3485c}.candidate-problem{box-shadow:inset 0 0 0 1px #dca5af}.candidate-shift.selected{outline:2px solid #785bbf;outline-offset:-2px}.candidate-staffing button{padding:5px 1px;border:0;border-radius:0;width:100%;font-size:11px}.candidate-staffing small{font-size:8px}.candidate-staffing .short{background:#fff1f2;color:#af4d60}
.candidate-detail{display:flex;flex-direction:column;min-height:0;overflow:hidden}.candidate-detail h3{font-size:13px}.candidate-editor{background:#f7f4fc;border-radius:8px;padding:12px;margin:10px 0;font-size:12px}.candidate-editor p{margin:7px 0}.candidate-editor small{display:block;font-size:10px;color:var(--muted);line-height:1.6}.candidate-palette{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:8px}.candidate-palette button{padding:6px 8px}
.candidate-problem-list{overflow:auto;min-height:0;margin-top:10px}.candidate-problem-card{display:block;white-space:normal;text-align:left;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 4px;line-height:1.7}.candidate-problem-card span{display:block;font-size:10px;color:#967532}.candidate-problem-card.error span{color:#b64e60}.candidate-problem-card strong{display:block;font-size:12px;font-weight:500}.candidate-problem-card p{font-size:11px;color:var(--muted);margin-top:4px}.candidate-clear{padding:14px 0;color:#52765f;font-size:12px}.candidate-layout>.modal-actions{flex:none;margin-top:12px}
@media(max-width:1200px){.candidate-workspace{grid-template-columns:1fr;overflow:auto}.candidate-grid{max-height:36dvh;flex:none}.candidate-detail{max-height:30dvh;min-height:180px}}
.prep-colors{margin:8px 0 12px;font-size:11px}.prep-colors summary{cursor:pointer;color:#74608f;padding:4px 0}.prep-colors .row{margin:8px 0}.prep-color-swatches{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.prep-color-swatches button:not(.tiny){width:24px;height:24px;padding:0;border:1px solid #c4bacf}.prep-color-swatches button[aria-pressed=true]{outline:2px solid #7556b3;outline-offset:2px}
.print-unit-options{display:flex;gap:8px 20px;flex-wrap:wrap;padding:4px 10px 10px 25px}.print-unit-options[hidden]{display:none}
#roster-print-root{position:fixed;left:-10000px;top:0;visibility:hidden;width:var(--print-width);color:#222;font-family:var(--app-font,"Malgun Gothic","Apple SD Gothic Neo",sans-serif)}
.roster-print-page{width:var(--print-width);height:var(--print-height);overflow:hidden;break-after:page;page-break-after:always}.roster-print-page:last-child{break-after:auto;page-break-after:auto}
.roster-print-content{width:100%;transform-origin:top left}.roster-print-content h1{font-size:20px;margin:0 0 8px;letter-spacing:0}.roster-print-legend,.roster-print-foot{font-size:10px;margin:6px 0;line-height:1.5}
.roster-print-content table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:11px}.roster-print-content th,.roster-print-content td{height:25px;border:1px solid #aaa;text-align:center;padding:2px 0;line-height:1.2;overflow-wrap:anywhere}.roster-print-content .print-name{width:92px}.roster-print-content small{display:block;font-size:8px;line-height:1.2}.roster-print-content thead th{height:35px;background:#f1eef5}.roster-print-content .print-unit th{text-align:left;padding-left:8px;height:23px;background:#eee}.roster-print-content .print-staffing{font-size:9px;color:#555}.roster-print-content .print-staffing th,.roster-print-content .print-staffing td{height:20px}
@media print{body.roster-printing{margin:0;padding:0;overflow:visible!important}body.roster-printing>*:not(#roster-print-root){display:none!important}body.roster-printing #roster-print-root{display:block;position:static;visibility:visible;margin:0;padding:0}body.roster-printing .roster-print-page{break-inside:avoid;page-break-inside:avoid}}
.schedule-main{padding-top:14px}.schedule-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}.schedule-month{gap:9px}.schedule-heading .month-nav{gap:6px}.schedule-heading .month-nav h1{font-size:20px;min-width:130px}.schedule-heading .month-nav button{padding:3px 6px}.schedule-heading select{border:1px solid var(--line);border-radius:6px;padding:5px}.schedule-main .toolbar{margin-bottom:10px;gap:8px;flex-wrap:wrap}.schedule-main .unit-tabs button{padding:6px 11px}.schedule-main .card-head{padding:9px 12px}.workspace.schedule-workspace{display:block}.schedule-main .table-scroll{max-height:calc(100dvh - 270px)}.stats-tabs{margin-bottom:16px}.stats-tabs~.panel tfoot td,.stats-tabs~.panel tfoot th{padding:12px;background:#f7f4fb}.schedule-review-list{max-height:60dvh;overflow:auto}
@media(max-width:700px){.schedule-main{padding-top:10px}.schedule-heading{gap:8px}.schedule-actions{gap:6px}.schedule-actions .primary{padding:7px 10px}.schedule-main .toolbar{flex-direction:row;align-items:center}.schedule-main .toolbar>.row{gap:6px}.schedule-main .table-scroll{max-height:calc(100dvh - 320px)}.schedule-main .bottom-help{margin-top:6px}}

.prep-grid-scroll .prep-grid th:first-child{width:75px;min-width:75px;max-width:75px;padding:5px 6px}.prep-grid-scroll .prep-grid thead th:first-child{font-size:11px;white-space:nowrap}
.employee-order-heading{width:92px}.employee-order-cell{white-space:nowrap;color:var(--muted);font-size:11px}.employee-drag-handle{cursor:grab;padding:5px 7px;margin-right:6px;border-color:transparent;background:#f5f1fa;color:#89769e;font-size:16px;line-height:1;touch-action:none}.employee-drag-handle:active{cursor:grabbing}.employee-drag-handle:focus-visible{outline:2px solid var(--violet)}tr.order-dragging{opacity:.45}tr.order-before>td{box-shadow:inset 0 2px #8a6bc9}tr.order-after>td{box-shadow:inset 0 -2px #8a6bc9}
.prep-wizard>.modal-head{flex-wrap:wrap}.prep-wizard>.modal-head h2{flex:none}.prep-wizard>.modal-head>.prep-steps{margin:0 0 0 auto;gap:10px 18px;flex-wrap:wrap}.prep-wizard>.modal-head>[data-action="close-modal"]{flex:none}.tenure-toggle{padding:5px 7px;border-color:transparent;background:#f6f3fb;color:#6e579d;font-size:12px;font-variant-numeric:tabular-nums}.tenure-toggle:hover{border-color:#c8bce3}
@media(max-width:650px){.prep-wizard>.modal-head>.prep-steps{order:3;flex-basis:100%;justify-content:flex-end;gap:8px}.prep-wizard>.modal-head>[data-action="close-modal"]{margin-left:auto}.prep-wizard>.modal-head>.prep-steps li{font-size:10px}}

.prep-wizard .prep-color-swatches{margin:10px 0 12px}

/* Preserve requested cell colors; communicate issues with separate borders and badges. */
.candidate-shift.candidate-error{box-shadow:inset 0 0 0 2px #dc2626}
.candidate-shift.candidate-warning{box-shadow:inset 0 0 0 2px #eab308}
.candidate-shift.candidate-problem sup{min-width:13px;height:13px;line-height:13px;border-radius:3px;text-decoration:none;font-weight:800}
.candidate-shift.candidate-error sup{background:#dc2626;color:#fff}
.candidate-shift.candidate-warning sup{background:#facc15;color:#422006}
.candidate-layout .date-problems.error,.candidate-layout .candidate-key.error{color:#dc2626;font-weight:700}
.candidate-layout .date-problems.warning,.candidate-layout .candidate-key.warning{color:#946200;font-weight:700}
.candidate-problem-card{border-left:3px solid #eab308;padding-left:10px;background:#fffdf2}
.candidate-problem-card.error{border-left-color:#dc2626;background:#fff5f5}
.candidate-problem-card.error span{color:#c51f1f}
.candidate-staffing .short{background:#fee2e2;color:#b91c1c;font-weight:700;box-shadow:inset 0 0 0 2px #dc2626}
.candidate-shift.candidate-problem sup{box-shadow:0 0 0 1px #fff,0 0 0 2px #302d3d}
.priority-list{display:grid;gap:4px}.priority-compact{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:6px 10px;text-align:left;cursor:grab;white-space:normal}.priority-compact:active{cursor:grabbing}.priority-compact strong{font-size:12px;font-weight:500;line-height:1.3}.priority-grip{color:#aaa0b9;font-size:16px;line-height:1}.priority-compact .priority-index{font-size:11px;color:#80718e;min-width:16px}.priority-compact.priority-dragging{opacity:.45}.priority-compact.priority-before{box-shadow:0 -2px #6b56b7}.priority-compact.priority-after{box-shadow:0 2px #6b56b7}.priority-compact:focus-visible{outline:2px solid #6b56b7;outline-offset:1px}.settings-priorities .settings-note{margin:7px 0 10px}
.settings-reflow{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:start}.settings-reflow>form,.settings-side{min-width:0}.settings-side{display:flex;flex-direction:column;gap:18px}.settings-reflow .panel{margin-bottom:0}.settings-reflow{margin-bottom:18px}.settings-reflow .setting-section{margin-top:18px;padding-top:14px}.settings-reflow .setting-field{margin-bottom:12px}.settings-side .fields{gap:12px}.settings-side h2{font-size:17px}@media(max-width:1000px){.settings-reflow{grid-template-columns:1fr}.settings-side{gap:14px}}
.settings-help ul{padding-left:19px;margin:10px 0 4px}.settings-help li{font-size:12px;line-height:1.8;color:#655e70;margin:7px 0}.settings-help[open]{padding-bottom:5px}
.unit-management-list{margin-top:16px;max-height:50dvh;overflow:auto}.unit-management-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.unit-management-row>div{min-width:0}.unit-management-row strong{overflow-wrap:anywhere}
.month-summary-tooltip{position:fixed;inset:auto;margin:0;padding:10px 12px;border:1px solid #ded7eb;border-radius:10px;background:#fff;box-shadow:0 5px 20px #302d3d24;color:#514b61;z-index:10000;pointer-events:none;max-width:calc(100vw - 16px)}.month-summary-tooltip[hidden]{display:none}.month-summary-title{font-size:11px;color:#82758e;margin-bottom:7px}.month-summary-cards{display:flex;gap:5px;flex-wrap:wrap}.month-summary-card{display:inline-flex;align-items:center;gap:4px;padding:6px 8px;border:1px solid #e5dfef;border-radius:6px;background:#f8f6fc;font-size:12px}.month-summary-card strong{font-weight:700;color:#5d48a5}[data-month-summary]{cursor:help}[data-month-summary]:focus-visible{outline:2px solid #8c77bc;outline-offset:2px}@media print{.month-summary-tooltip{display:none!important}}
#toast[popover]{inset:auto auto 25px 50%;margin:0;border:0;max-width:calc(100vw - 32px);width:max-content;line-height:1.6;text-align:center;white-space:normal}
.candidate-grid{min-width:0}.candidate-grid .prep-grid{table-layout:fixed;width:100%;min-width:calc(90px + var(--candidate-days,31)*26px)}.candidate-grid .prep-grid th:first-child{width:90px;min-width:0;padding:5px 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.candidate-grid .prep-grid thead th{min-width:0}.candidate-grid .candidate-shift{min-width:0}.candidate-grid thead button{padding-inline:0}.candidate-grid .candidate-staffing small{white-space:normal;overflow-wrap:anywhere}@media(max-width:1400px){.candidate-workspace{grid-template-columns:1fr;overflow:auto}.candidate-grid{max-height:40dvh}.candidate-detail{max-height:27dvh;min-height:150px}}
.candidate-grid .prep-grid thead th:first-child{text-align:center}

.candidate-grid .candidate-staffing th,.candidate-grid .candidate-staffing td{height:26px;background:#f2eff8;color:#80718e}.candidate-grid .candidate-staffing th:first-child{font-size:10px;font-weight:500;padding:3px 7px}.candidate-grid .candidate-staffing th small{display:inline;font-size:9px;white-space:nowrap}.candidate-grid .candidate-staffing button{height:26px;min-height:0;padding:3px 0;background:transparent}.candidate-grid .candidate-staffing button.short{background:#fee2e2;color:#b91c1c}.candidate-grid .candidate-staffing button small{display:none}.candidate-grid tr:not(.candidate-staffing)+.candidate-staffing>th,.candidate-grid tr:not(.candidate-staffing)+.candidate-staffing>td{border-top:2px solid #c8bbdf}

.candidate-notice{display:flex;align-items:center;justify-content:center;gap:16px;align-self:center;width:max-content;max-width:100%;flex-shrink:0;padding:10px 16px;margin:10px 0 0;border:1px solid #c8bbdf;border-radius:9px;background:#f2eff8;box-shadow:0 3px 12px #302d3d12;color:#514b61;font-size:12px;line-height:1.6}.candidate-notice>span{min-width:0;overflow-wrap:anywhere}.candidate-notice>.row{flex-shrink:0}.candidate-notice button{padding:6px 12px}@media(max-width:600px){.candidate-notice{flex-wrap:wrap;gap:8px;width:100%}}
.symbol-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));grid-auto-rows:1fr;gap:10px;margin-top:14px}.symbol-cards>button{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center;min-height:98px;padding:12px;text-align:left;white-space:normal}.symbol-cards .symbol-card-code{display:flex;align-items:center;justify-content:center;width:56px;height:56px;padding:4px;border:1px solid #ded9e9;border-radius:7px;background:#f5f2fa;font-size:22px;line-height:1.15;text-align:center;overflow-wrap:anywhere}.symbol-cards .symbol-card-long{font-size:15px}.symbol-card-info{display:grid;grid-template-rows:18px 28px 14px;gap:3px;min-width:0}.symbol-card-info strong{font-size:12px;font-weight:600}.symbol-card-time{font-size:11px;line-height:14px;color:#888394;overflow-wrap:anywhere}.symbol-card-info small{font-size:10px;line-height:14px;color:var(--violet)}
#symbol-form [hidden]{display:none!important}.candidate-shift,.cell-button,.prep-day{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.palette button{overflow:hidden;text-overflow:ellipsis}
.rule-base-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:8px;margin-top:12px}.rule-base-card{display:grid;text-align:left;gap:5px;white-space:normal}.rule-base-card span,.rule-base-card small{font-size:11px;color:var(--muted);line-height:1.6}.rule-list-heading{margin:18px 0 9px}.rule-list{display:grid;gap:8px}.rule-card{display:grid;grid-template-columns:24px minmax(0,1fr) 34px;align-items:center;border:1px solid var(--line);border-radius:9px;padding:8px;background:#faf9fd}.rule-card-body{border:0;background:none;display:grid;text-align:left;gap:5px;white-space:normal}.rule-card-body span{font-size:12px;line-height:1.7}.rule-card-body small{color:var(--muted);font-size:11px}.rule-grip{cursor:grab;text-align:center;color:#9585aa}.rule-disabled{opacity:.55}.rule-card.drag-before{border-top:3px solid var(--violet)}.rule-card.drag-after{border-bottom:3px solid var(--violet)}.rule-block{padding:16px;border:1px solid var(--line);border-radius:9px;margin:12px 0;background:#fcfbff}.rule-block h3{margin-bottom:12px}.rule-block h3 b{display:inline-grid;place-items:center;width:23px;height:23px;background:#eae4f7;border-radius:50%;margin-right:7px;color:var(--violet)}.rule-symbols,.rule-weekdays{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.rule-symbols label,.rule-weekdays label{display:flex;align-items:center;gap:5px;border:1px solid var(--line);background:white;padding:7px 10px;border-radius:7px;font-size:12px}.rule-preview{padding:13px;border-radius:8px;background:#f0ebfa;color:#65518f;line-height:1.8;font-size:12px;margin:12px 0}.rule-editor{max-height:90dvh;overflow:auto}#rule-form [hidden]{display:none!important}.settings-legacy{margin-top:18px}.settings-legacy>summary{padding:15px;cursor:pointer}.settings-legacy[open]>summary{margin-bottom:12px}

.custom-color-input{display:inline-flex;align-items:center;gap:6px;margin-left:6px}.custom-color-input input[type=color]{width:32px;height:28px;padding:2px;cursor:pointer}.custom-color-input input[type=text]{width:92px;height:28px;padding:4px 6px;font-size:12px}

.rule-base-row{grid-template-columns:32px minmax(0,1fr)}.rule-number{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 4px;margin-right:5px;border-radius:6px;background:#eae4f7;color:var(--violet);font-size:12px}.rule-grip{display:grid;place-items:center;align-self:stretch;min-width:24px;min-height:40px;user-select:none;-webkit-user-drag:element}.rule-grip:active{cursor:grabbing}.rule-base-row .rule-base-card{padding:5px 8px}.rule-card strong{display:flex;align-items:center}

.rule-condition-section{margin-top:16px}.rule-condition-section>summary{font-size:15px;font-weight:700;padding:12px 0}.rule-unit-section{border-top:1px solid #cfc6e2;margin-top:18px;padding-top:16px}.rule-unit-section h3{font-size:14px;color:var(--violet);margin:0 0 10px}.rule-unit-section .rule-base-list{margin-top:0}

.rule-base-list{display:flex;flex-direction:column;gap:12px}.rule-base-row{grid-template-columns:32px minmax(0,1fr) 30px;position:relative}.rule-remove{padding:3px;border:0;background:none;color:var(--muted);font-size:19px}.rule-section-actions{margin:8px 0 12px}.rule-card.drag-before,.rule-card.drag-after{border:1px solid var(--line)}.rule-card.drag-before:before,.rule-card.drag-after:after{content:"";position:absolute;left:0;right:0;height:3px;border-radius:3px;background:var(--violet);pointer-events:none}.rule-card.drag-before:before{top:-8px}.rule-card.drag-after:after{bottom:-8px}

.condition-symbols{display:inline-flex;flex-wrap:wrap;gap:4px;margin-left:8px}.condition-symbol{display:inline-grid;place-items:center;min-width:25px;height:24px;padding:0 5px;border:1px solid var(--line);border-radius:5px;background:#f0edf7;font-size:12px;line-height:1}.rule-card strong{flex-wrap:wrap;gap:4px}.rule-preview .condition-symbols{margin-left:0}

.condition-flow{align-items:center}.condition-arrow{display:inline-flex;align-items:center;gap:4px;margin:0 5px;font-size:18px;color:var(--violet)}.condition-arrow small{font-size:10px;font-weight:400;color:var(--muted)}.rule-preview-text{display:block;margin-top:8px}

.follow-step{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.follow-step>.row{margin-bottom:10px}.symbol-rule-link{margin:16px 0}

/* Compact condition summaries and content-sized draft tables. */
.rule-base-list{gap:7px}
.rule-base-row{grid-template-columns:26px minmax(0,1fr) auto 28px;padding:5px 8px}
.rule-base-row .rule-base-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 6px;min-width:0}
.rule-base-row .rule-base-card strong{font-size:12px;min-width:0}
.rule-base-row .rule-base-card small{font-size:12px;text-align:right;max-width:45%}
.condition-explanation{font-size:11px;color:var(--muted)}
.condition-explanation summary{cursor:pointer;padding:8px}
.condition-explanation[open]{grid-column:2 / 4;grid-row:2}
.condition-explanation p{line-height:1.7;margin:0 8px 6px}
.rule-base-row .rule-remove{grid-column:4;grid-row:1}
.candidate-grid{align-self:start}
.candidate-detail{max-height:58dvh}
@media(max-width:1400px){.candidate-detail{max-height:27dvh;min-height:0}}
@media(max-width:700px){.rule-base-row .rule-base-card{display:grid;gap:3px}.rule-base-row .rule-base-card small{text-align:left;max-width:none}}
@media(min-width:1401px){.candidate-workspace{position:relative}.candidate-detail{position:absolute;inset:0 0 0 auto;width:290px;max-height:100%}}
/* Screen hierarchy: readable controls, quiet help and consistent action areas. */
@media screen {
 :root{--muted:#6d667a}
 .field label,.field-help,.settings-note,.page-heading p,.small,.table-footer,.bottom-help{font-size:12px;color:#6d667a}
 .field input,.field select,.field textarea,input[type=search],#employee-filter{font-size:14px;min-height:36px}
 #employee-filter{border:1px solid #ded9e9;border-radius:6px;padding:6px 10px;background:#fff;color:#514b61}
 .data-table th{font-size:12px;color:#61566f;font-weight:600}
 .data-table td{font-size:13px}
 .tiny{font-size:12px;min-height:32px;padding:6px 10px}
 .nav button{font-size:14px;color:#625a70}
 .unit-tabs button{font-size:13px;color:#625a70;min-height:34px}
 .unit-tabs button.active{font-weight:700;border-color:var(--violet);box-shadow:inset 0 -2px var(--violet);background:#f5f1fc}
 .prep-steps li{color:#71667d}.prep-steps .current{color:#573f9e}
 .save-state{font-size:12px;color:#46654a}.save-state.pending{color:#876116}.save-state.error{color:#b42332}
 .stat-card span:first-child,.stat-card .stat-note{font-size:12px;color:#6d667a}
 .callout{font-size:12px;color:#665079}.callout.warn{color:#805916}.callout.error{color:#a72b3e}
 .scope-details,.scope-details summary,.scope-details p{font-size:12px;color:#6d667a}
 .rule-condition-section>summary{font-size:15px;color:#51435f;padding:10px 0}
 .candidate-problem-card span,.candidate-problem-card p,.candidate-editor small{font-size:12px}
 .candidate-problem-card strong{font-size:13px}
 .symbol-card-info strong,.symbol-card-time,.symbol-card-info small{font-size:12px!important}
 .symbol-card-time,.symbol-card-info small{color:#6d667a!important}
 .modal-head>[data-action="close-modal"]{width:34px;height:34px;flex:none;padding:0;font-size:18px}
 button:focus-visible,summary:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
 .danger{color:#b42332;border-color:#e2b4bb}
 .ui-help{margin:8px 0 12px;color:#655b72;font-size:12px;line-height:1.7}
 .ui-help>summary{cursor:pointer;width:fit-content;padding:4px 0;min-height:28px}
 .ui-help>p{margin:6px 0 0;padding-left:12px;max-width:90ch}
 .symbol-settings>summary{font-size:16px;font-weight:600;cursor:pointer;line-height:1.8}
 .symbol-settings>summary span{font-size:12px;font-weight:400;color:var(--muted);margin-left:12px}
 .symbol-heading{margin-top:18px}
 .symbol-settings:not([open]){padding-block:14px}
 .employee-panel{max-width:1450px}
 .employee-table{min-width:960px}
 .employee-table th:first-child{width:90px}.employee-table th:nth-child(2){width:160px}
 .employee-table th:nth-child(3){width:110px}.employee-table th:last-child{width:75px}
 .employee-edit-name{font-size:13px;font-weight:600;border:0;background:transparent;padding:6px 0;min-height:32px;color:#41364f;text-align:left}
 .employee-edit-name:hover{color:var(--violet);text-decoration:underline}
 .prep-brushes{align-items:center;margin:10px 0}
 .prep-brushes .prep-reset{margin-left:auto;min-height:34px;font-size:12px}
 .prep-brushes button[aria-pressed="true"]{outline:2px solid #55408f;outline-offset:2px;font-weight:700}
 .prep-color-swatches button[aria-pressed="true"]{outline:2px solid #55408f;outline-offset:2px}
 .prep-color-swatches .tiny{min-height:30px}
 .rule-editor{display:flex;flex-direction:column;overflow:hidden}
 .rule-editor>.modal-head{flex:none;margin-bottom:12px}
 #rule-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
 .rule-editor-body{overflow:auto;min-height:0;padding-right:5px;overscroll-behavior:contain}
 #rule-form>.modal-actions{flex:none;background:#fff;margin-top:8px;padding-top:12px}
 #rule-form>.error-text{flex:none}
 #rule-form .rule-block{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:14px 0 2px;margin:8px 0}
 #rule-form .rule-block h3{margin-bottom:12px}
 #rule-form .field{margin-bottom:12px}
 #rule-form .rule-symbols{gap:6px}
 #rule-form .rule-symbols label{font-size:13px;min-height:34px;padding:6px 9px}
 .rule-weekdays label{min-height:34px;font-size:13px}
 .rule-preview{font-size:13px}
 .prep-review-check strong{font-size:13px}.prep-review-check small{font-size:12px}
 .prep-grid,.candidate-shift,.cell-button{font-size:12px}
}
/* Familiar spreadsheet layout: weekend columns and two-way summaries. */
.roster thead th.sun,.roster thead th.sat,.roster td.weekend,.prep-grid th.weekend,.prep-grid td.weekend,.candidate-staffing button.weekend,.roster-print-content th.weekend,.roster-print-content td.weekend{background:#e2e2e2;color:#302d3d}
.roster th,.roster td,.prep-grid th,.prep-grid td{border-right-color:#d7d3dc;border-bottom-color:#d7d3dc}
.roster .tot-col,.prep-grid .monthly-total{background:#f2eff8;color:#453b56;font-size:12px;text-align:center;font-variant-numeric:tabular-nums}
.roster .summary-start,.prep-grid td.monthly-total:first-of-type{border-left:2px solid #b8afc8}
.roster .counts td{font-size:12px;color:#51475e;height:28px}.roster .counts .name-col{font-size:11px}
.roster .counts td.short,.candidate-staffing button.short{background:#fee2e2;color:#b91c1c;box-shadow:inset 0 0 0 1px #dc2626}
.roster-print-content .monthly-total{background:#f2eff8}
@media screen{.roster{min-width:1480px}.candidate-grid .monthly-total{width:24px;overflow-wrap:anywhere}.roster .tot-col{width:26px;overflow-wrap:anywhere}.roster .cell-button{font-weight:600}}
@media print{.roster .tot-col{font-size:8px}.roster .counts td{font-size:8px}}

/* Separate names, calendar cells and monthly totals without boxing in empty space. */
.roster .name-col,.prep-grid th:first-child{background:#f5f5f6;border-right:2px solid #bcb6c5;color:#39333f}
.roster .employee-name,.prep-grid tbody th:first-child{font-weight:600;color:#39333f}
.roster thead .name-col,.prep-grid thead th:first-child{background:#ededf0}
.roster .tot-col,.prep-grid .monthly-total,.roster-print-content .monthly-total{background:#f6f3fa}
.roster .tot-col:not(.tot-col + .tot-col),.prep-grid .monthly-total:not(.monthly-total + .monthly-total),.roster-print-content .monthly-total:not(.monthly-total + .monthly-total){border-left:2px solid #bcb3cb}
.roster td.summary-blank,.prep-grid td.summary-blank,.roster-print-content td.summary-blank{border:0;background:#fff;box-shadow:none}
.roster-print-content tr:not(.print-unit)>th:first-child{background:#f5f5f6;border-right:2px solid #bcb6c5;color:#39333f}

.font-settings>summary{font-size:15px;font-weight:600;cursor:pointer}.font-settings form{margin-top:16px;max-width:640px}.font-preview{font-size:18px;line-height:1.8;border:1px solid var(--line);border-radius:8px;padding:12px;background:#faf9fc}.font-settings:not([open]){padding-block:14px}

/* Settings section navigation */
.settings-heading{margin:0 0 18px}
.settings-heading h1{margin:0;font-size:22px;line-height:1.4}
.settings-sections{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:24px}
.settings-sections button{position:relative;border:0;border-radius:0;background:transparent;box-shadow:none;padding:10px 2px 13px;color:#777080;font-size:14px;line-height:1.5;min-height:44px}
.settings-sections button:hover{background:transparent;color:#6c53b9}
.settings-sections button.active{color:#6c53b9;font-weight:700}
.settings-sections button.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:3px;background:#6c53b9;border-radius:3px 3px 0 0}
.settings-sections button:focus-visible{outline:2px solid #8b75c6;outline-offset:3px}
.settings-operation-tools{margin-bottom:18px}
.settings-operation-tools p{margin:0}

.font-settings{max-width:760px}

/* Daily staffing totals form a distinct band below each unit roster. */
.roster .counts td:not(.summary-blank){background:#f3f1f7;color:#51475e}
.roster tr:not(.counts)+tr.counts td:not(.summary-blank){border-top:0}
.roster .counts td.weekend{background:#e5e3eb}
.roster .counts .name-col{background:#eae6f1;font-weight:600}
.roster .counts td.short{background:#fee2e2;color:#b91c1c;box-shadow:inset 0 0 0 1px #dc2626}
.roster .counts td.summary-blank{background:#fff;border:0;box-shadow:none}

/* Strong lines mark section boundaries; ordinary rows keep their fine grid. */
.roster{--section-line:2px solid #bcb3cb}
.roster thead th{border-top:var(--section-line);border-bottom:var(--section-line)}
.roster .group-row>td{border-top:var(--section-line);border-bottom:var(--section-line)}
.roster .group-row:first-child>td{border-top:0}
.roster .group-row+.roster-worker>td{border-top:0}
.roster .staff-end>td{border-bottom:var(--section-line)}
.roster .off-counts>td:not(.summary-blank){border-bottom:var(--section-line)}
.roster .off-counts:has(+.group-row)>td:not(.summary-blank){border-bottom:0}
.roster .floor-summary-start>td:not(.summary-blank){border-top:0}
.roster .floor-summary-end>td:not(.summary-blank){border-bottom:var(--section-line)}
.roster .floor-counts .name-col{font-weight:700}

/* Pointer guide overlays preserve cell colors and shortage indicators. */
@media screen{
 .roster td:not(.name-col){position:relative}
 .roster tr.row-highlight>td:not(.summary-blank)::after,
 .roster .column-highlight::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
  background:rgba(0,119,230,.14);border:0 solid #0783e8;
 }
 .roster tr.row-highlight>td:not(.summary-blank)::after{border-top-width:2px;border-bottom-width:2px}
 .roster .column-highlight::after{border-left-width:2px;border-right-width:2px}
 .roster tr.row-highlight>td.column-highlight:not(.summary-blank)::after{
  background:rgba(0,119,230,.24);border:2px solid #0053b8;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.8);
 }
 .roster tr.row-highlight>.name-col{color:#0053b8;font-weight:700}
 .roster th.column-highlight{color:#0053b8}
 .roster .cell-button:hover,.roster .cell-button:focus-visible{
  outline:2px solid #0053b8;outline-offset:-2px;
 }
}

.rotation-list {padding-left:28px;max-width:420px;margin:12px 0;}
.rotation-list li {padding:5px 8px;border-bottom:1px solid var(--line,#e5e0ed);cursor:grab;}
.rotation-list li span {display:inline-block;min-width:140px;}
.rotation-list li button {margin-left:6px;}
/* Adjacent form controls share the regular button geometry. */
.row > input:not([type=checkbox]):not([type=radio]):not([type=color]),
.row > select { min-height:36px; padding:8px 12px; border:1px solid var(--line,#ded8ee); border-radius:8px; font:inherit; box-sizing:border-box; background:#fff; color:inherit; }
.row:has(> input) > button:not(.tiny), .row:has(> select) > button:not(.tiny) { min-height:36px; border-radius:8px; box-sizing:border-box; }
.excel-import .excel-steps {display:flex;gap:16px;flex-wrap:wrap;margin-bottom:20px;color:#8b849a;}
.excel-steps .active {color:#6554bb;font-weight:700;}
.excel-preview {max-height:50vh;overflow:auto;margin-top:14px;}
.excel-preview input:not([type=checkbox]),.excel-preview select {min-width:70px;width:100%;box-sizing:border-box;}
.excel-symbol {display:inline-block;padding:6px 12px;border:1px solid #aaa;border-radius:4px;}
.single-group .schedule-main .toolbar > .unit-tabs,
.single-group .schedule-main .roster .group-row,
.single-group .employee-table th:nth-child(3),
.single-group .employee-table td:nth-child(3),
.single-group #employee-filter {display:none;}
/* Public welcome page */
.welcome{min-height:100vh;background:#faf9fd;color:#302b43}.welcome a{text-decoration:none}.welcome-nav{max-width:1120px;margin:auto;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.welcome-brand{font-size:20px;color:#40315d}.welcome-nav>a:last-child{color:#635974;font-size:14px}.welcome-main{max-width:1120px;margin:auto;padding:40px 32px 56px}.welcome-hero{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:64px}.welcome-eyebrow{font-size:12px;letter-spacing:2px;color:#7863ad}.welcome h1{font-size:clamp(30px,4vw,46px);line-height:1.35;letter-spacing:-1.5px;margin:18px 0}.welcome-copy>p{font-size:16px;line-height:1.9;color:#746c83}.welcome-tags{display:flex;flex-wrap:wrap;gap:16px;font-size:13px;color:#6d5a94;margin:24px 0}.welcome-login{background:white;padding:32px;border:1px solid #e6e0ef;border-radius:20px;box-shadow:0 12px 40px #38205308}.welcome h2{font-size:22px;margin:0 0 10px}.welcome-login>p,.welcome-downloads p{color:#7c738b;line-height:1.6}.google-login{box-sizing:border-box;display:flex;justify-content:center;align-items:center;gap:14px;width:100%;min-height:48px;margin-top:26px;background:#fff;border:1px solid #cfc8dc;border-radius:9px;color:#302b43;font-size:15px;font-weight:600}.google-login span{font-family:Arial,sans-serif;font-size:21px;color:#4285f4}.google-login:disabled{opacity:.6}.welcome .welcome-note{font-size:12px;line-height:1.7;margin:14px 0}.welcome-existing{margin-top:24px;border-top:1px solid #eee8f5;padding-top:18px}.welcome-existing summary{cursor:pointer;color:#786b89;font-size:13px}.welcome-existing form{margin-top:18px}.welcome-existing form button{width:100%;min-height:40px}.welcome-sample{max-width:450px;background:white;border:1px solid #e5dfee;border-radius:12px;overflow:hidden;margin-top:28px;transform:rotate(-1deg)}.welcome-sample>div{padding:13px 16px;font-size:12px;color:#82748e}.welcome-sample table{width:100%;border-collapse:collapse;font-size:13px;text-align:center}.welcome-sample td,.welcome-sample th{padding:12px 10px;border-top:1px solid #eee9f4}.welcome-sample th{font-weight:500;color:#82758f;background:#faf8fd}.welcome-sample .sample-night{background:#eee7ff;color:#6546aa}.welcome-sample .sample-leave{background:#e7f5ed;color:#377653}.welcome-downloads{margin-top:70px;border-top:1px solid #e5dfee;padding-top:34px}.download-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}.download-item{background:white;border:1px solid #e6e0ef;border-radius:12px;padding:22px;display:flex;justify-content:space-between;align-items:center;gap:16px}.download-item strong{font-size:17px}.download-item p{margin:6px 0 0;font-size:13px}.download-pending{font-size:12px;color:#8b8199;background:#f3f0f7;border-radius:20px;padding:7px 12px;white-space:nowrap}.landing-link{color:#6550ab;font-weight:600;white-space:nowrap}.welcome-footer{text-align:center;padding:24px;color:#9b91a8;font-size:12px}@media(max-width:760px){.welcome-hero{grid-template-columns:1fr;gap:32px}.welcome-main{padding:24px 20px}.welcome-nav{padding:22px 20px}.welcome-brand{font-size:17px}.welcome-nav>a:last-child{font-size:12px}.welcome-sample{display:none}.welcome-login{padding:24px}.download-grid{grid-template-columns:1fr}.welcome-downloads{margin-top:40px}}
.welcome-signup{border-top:1px solid #eee8f5;margin-top:20px;padding-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:13px}.signup-card{max-width:480px;margin:30px auto}.signup-card h1{font-size:28px;letter-spacing:-.6px}.signup-card form{margin:26px 0 16px}.signup-card form button{width:100%;min-height:44px}

/* Settings: one task at a time, with optional explanations beside each field. */
.settings-workspace{max-width:none;margin:0}
.settings-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.settings-save-hint{font-size:12px;color:#777080}
.settings-workspace .settings-sections{margin-bottom:14px}
.settings-subnav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:22px}
.settings-subnav button{min-height:40px;padding:8px 18px;border-color:transparent;background:transparent;color:#645d72;font-size:14px}
.settings-subnav button.active{background:#eee8fb;color:#5941a6;font-weight:700;border-color:#d9cdef}
.settings-subnav button:hover{background:#f2eef9}
.settings-content>.panel{margin-bottom:18px}
.settings-content h2{font-size:17px;margin-bottom:16px}
.settings-content .field>label,.settings-content .setting-field label{font-size:14px}
.settings-content .ui-help{font-size:13px;line-height:1.7;margin:8px 0 14px}
.settings-content .ui-help summary{cursor:pointer;color:#6e6184;min-height:28px;line-height:28px}
.settings-content .ui-help p{max-width:85ch;font-size:13px;line-height:1.8;color:#62596f;margin:8px 0}
.settings-content .business-settings{max-width:760px}
.settings-content .business-settings .field{max-width:380px}
.settings-content .settings-operation-tools{max-width:760px;align-items:center}
.settings-content .settings-operation-tools p{font-size:13px;color:#756d80}
.settings-content .settings-reflow{grid-template-columns:minmax(0,1fr)}
.settings-content .settings-side{min-width:0}
@media(max-width:600px){.settings-subnav{gap:4px}.settings-subnav button{padding:8px 12px}.settings-heading h1{font-size:20px}.settings-content .settings-operation-tools{align-items:flex-start;gap:12px;flex-direction:column}}
.settings-content .data-table input[type=number]{height:32px;border:1px solid var(--line);border-radius:6px;padding:5px 7px;background:#fff;color:inherit;font:inherit}
.settings-content .settings-help{font-size:13px;line-height:1.8}
.settings-content .settings-help summary{min-height:28px;line-height:28px}
.settings-content .settings-help li{margin:6px 0}
.settings-workspace{width:100%;min-width:0}
.settings-content,.settings-content .panel,.settings-content form{min-width:0;max-width:100%}
.settings-content .table-wrap{max-width:100%;overflow-x:auto}
.settings-content .data-table{min-width:740px}
.settings-content .data-table th:first-child,.settings-content .data-table td:first-child{white-space:nowrap}
@media(max-width:600px){.settings-content>.panel>.row.spread{display:block}.settings-content>.panel>.row.spread>.muted{display:block;margin-top:8px;white-space:normal}.settings-content .fields{grid-template-columns:minmax(0,1fr)}}
