:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20243c;background:#f7f8fc;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
button,select{font:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
.app-shell{display:flex;min-height:100vh}
.sidebar{width:254px;min-width:254px;background:#fff;border-right:1px solid #e9ebf2;padding:28px 17px;display:flex;flex-direction:column;min-height:100vh}
.brand{display:flex;align-items:center;gap:10px;font-size:26px;letter-spacing:-1.3px;font-weight:800;line-height:1}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#655df0;color:#fff;font-size:22px;font-weight:800}
.brand-accent{color:#655df0}
.brand small{display:block;margin-top:5px;color:#a0a4b8;font-size:9px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase}
.workspace-chip{display:flex;align-items:center;gap:10px;margin-top:47px;padding:10px 8px;border:1px solid #eceef4;border-radius:11px}
.workspace-avatar,.user-avatar{display:grid;place-items:center;border-radius:9px;background:#e9e6ff;color:#6259e6;font-weight:800}
.workspace-avatar{width:32px;height:32px}
.workspace-chip strong,.workspace-chip small{display:block}
.workspace-chip strong{font-size:11px}
.workspace-chip small{color:#9ca2b2;font-size:10px;margin-top:3px}
.chevron{margin-left:auto;color:#a6adba}
.nav-label{margin:35px 11px 14px;color:#acb2c0;font-size:10px;font-weight:800;letter-spacing:1.2px}
.sidebar nav{display:grid;gap:5px}
.nav-item{width:100%;padding:12px 13px;border:0;background:transparent;border-radius:9px;display:flex;align-items:center;gap:12px;color:#7f8799;font-size:13px;font-weight:600;text-align:left}
.nav-item:hover,.nav-item.active{background:#efedff;color:#5b50e9}
.nav-icon{font-size:18px;width:20px;text-align:center}
.sidebar-bottom{margin-top:auto;padding:0 9px;color:#8e95a7;font-size:11px;line-height:1.55}
.sidebar-bottom p{margin:13px 0}
.sidebar-bottom a{color:#6057e9;font-weight:700}
.demo-chip{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:8px;background:#f0fdf7;color:#15845b;font-size:10px;font-weight:700}
.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#29c48c}
.main-content{flex:1;min-width:0}
.topbar{height:69px;background:#fff;border-bottom:1px solid #e9ebf2;padding:0 38px;display:flex;align-items:center;justify-content:space-between}
.crumb{font-size:12px;color:#a0a6b7}
.crumb span{margin:0 10px;color:#c9ccda}
.crumb strong{color:#323952}
.top-actions{display:flex;align-items:center;gap:20px}
.top-pill{display:flex;align-items:center;gap:7px;color:#88909e;font-size:11px}
.user-avatar{width:33px;height:33px;font-size:10px}
.content-wrap{max-width:1440px;margin:0 auto;padding:35px 39px 80px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#6e65ed;margin:0 0 11px}
.page-heading h1{font-size:27px;letter-spacing:-.7px;margin:0;color:#1f253a}
.page-heading p:last-child{color:#8e96aa;font-size:13px;margin:10px 0 0}
.date-tag{padding:10px 14px;background:#fff;border:1px solid #e8eaf2;border-radius:9px;color:#69718b;font-size:11px;white-space:nowrap}
.notice{display:flex;gap:13px;align-items:flex-start;background:#fff9e9;border:1px solid #f8e8bf;border-radius:10px;padding:14px 17px;margin-bottom:22px;color:#886936;font-size:11px;line-height:1.55}
.notice-icon{display:grid;place-items:center;width:24px;height:24px;min-width:24px;background:#fff0c4;border-radius:7px}
.notice strong{display:block;margin-bottom:2px;font-size:11px}
.view{display:none}
.view.active{display:block}
.hero{min-height:265px;border-radius:15px;background:linear-gradient(112deg,#5147db 2%,#756bf1 59%,#988df7);color:#fff;display:flex;overflow:hidden;position:relative}
.hero:after{content:"";position:absolute;width:320px;height:320px;border:1px solid #ffffff33;border-radius:50%;right:-50px;top:-75px;box-shadow:0 0 0 55px #ffffff08,0 0 0 110px #ffffff07}
.hero-copy{padding:36px 39px;z-index:1;max-width:640px}
.hero-kicker{display:inline-block;font-size:10px;font-weight:800;letter-spacing:1.5px;color:#d6d1ff}
.hero h2{font-size:27px;max-width:540px;line-height:1.23;letter-spacing:-.7px;margin:13px 0 10px}
.hero h2 em{font-style:normal;color:#d8d3ff}
.hero p{color:#ddd9ff;font-size:12px;line-height:1.55;margin:0 0 20px}
.primary-button{border:0;background:#fff;color:#5b52df;border-radius:8px;padding:12px 17px;font-size:11px;font-weight:800}
.primary-button span{margin-left:15px;font-size:14px}
.hero-visual{position:absolute;right:68px;top:29px;z-index:1}
.visual-card{width:210px;height:205px;background:#fff;border-radius:13px;box-shadow:0 17px 40px #31269b45;padding:20px;transform:rotate(-6deg)}
.visual-header{display:flex;gap:5px}
.visual-header span{width:7px;height:7px;background:#eeedfa;border-radius:50%}
.visual-header span:first-child{background:#8d83f2}
.visual-bars{height:97px;display:flex;align-items:end;gap:10px;margin:13px 0}
.visual-bars i{flex:1;border-radius:5px 5px 0 0;background:#e3e0ff;height:45%}
.visual-bars i:nth-child(2),.visual-bars i:nth-child(5){height:70%;background:#afa8f8}
.visual-bars i:nth-child(3){height:90%;background:#685eea}
.visual-bars i:nth-child(4){height:58%}
.visual-bars i:nth-child(6){height:83%;background:#8d84f1}
.visual-bars i:nth-child(7){height:63%}
.visual-line{width:85%;height:7px;background:#ecebf8;border-radius:10px;margin-top:7px}
.visual-line.short{width:57%}
.float-card{position:absolute;left:-62px;bottom:-5px;padding:10px 14px;border-radius:8px;background:#fff;box-shadow:0 7px 25px #2e289447;color:#45475c;font-size:10px;font-weight:800;white-space:nowrap}
.float-card span{color:#17b980;margin-right:4px}
.section-heading{margin:28px 0 16px}
.section-heading h2,.panel h3{font-size:17px;margin:0;color:#242a40}
.section-heading p,.panel-head p{font-size:11px;color:#a0a6b6;margin:7px 0 0}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.metric,.panel,.schedule-panel,.rule-card,.source-box{background:#fff;border:1px solid #ebedf4;border-radius:12px;box-shadow:0 4px 18px #24327408}
.metric{min-height:165px;padding:19px}
.metric-icon{width:31px;height:31px;border-radius:8px;display:grid;place-items:center;font-size:17px;font-weight:800;margin-bottom:18px}
.metric-icon.purple{background:#efedff;color:#655be9}
.metric-icon.teal{background:#e7fbf5;color:#19ae85}
.metric-icon.amber{background:#fff4e4;color:#e5a03d}
.metric-icon.blue{background:#e9f1ff;color:#5a91e9}
.metric>span,.metric small{display:block;color:#989fb0;font-size:11px}
.metric strong{font-size:28px;letter-spacing:-1px;display:block;margin:5px 0}
.metric small{font-size:10px}
.overview-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;margin-top:16px}
.panel{padding:22px}
.panel-head{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:20px}
.text-button{border:0;background:none;color:#665be9;font-size:11px;font-weight:800;white-space:nowrap}
.coverage-list{display:grid;gap:11px}
.coverage-row{display:grid;grid-template-columns:65px 1fr auto;align-items:center;gap:12px;font-size:11px}
.coverage-row strong{color:#545b70}
.coverage-track{height:8px;background:#f0f1f7;border-radius:10px;overflow:hidden}
.coverage-track progress{display:block;width:100%;height:100%;border:0;background:#f0f1f7;border-radius:10px;appearance:none}
.coverage-track progress::-webkit-progress-bar{background:#f0f1f7;border-radius:10px}
.coverage-track progress::-webkit-progress-value{background:#7369ea;border-radius:10px}
.coverage-track progress::-moz-progress-bar{background:#7369ea;border-radius:10px}
.coverage-row small{color:#969eb0}
.issues-list{display:grid;gap:10px}
.issue{display:flex;gap:10px;padding:10px 12px;border-radius:8px;background:#fff7ec;color:#846035;font-size:11px;line-height:1.45}
.issue.ok{background:#effbf5;color:#227a58}
.issue-icon{font-size:13px;font-weight:800}
.toolbar{display:flex;align-items:end;gap:15px;margin-bottom:16px}
.toolbar>div:first-child{display:grid;gap:7px}
.toolbar label{font-size:11px;color:#777f94;font-weight:700}
.toolbar select{min-width:230px;background:#fff;border:1px solid #dfe3ee;border-radius:8px;padding:10px;color:#333b52;font-size:12px}
.toolbar-note{color:#9ba2b0;font-size:11px;margin-right:auto;padding-bottom:10px}
.secondary-button{border:1px solid #dedff1;color:#665be9;background:#fff;border-radius:8px;padding:10px 13px;font-size:11px;font-weight:800}
.schedule-panel{overflow:hidden}
.schedule-scroll{overflow-x:auto}
.schedule-table{width:100%;border-collapse:collapse;min-width:880px}
.schedule-table th,.schedule-table td{border-bottom:1px solid #eef0f5;text-align:center;padding:14px 6px}
.schedule-table th{background:#fbfbfe;color:#8c94a5;font-size:10px;font-weight:800}
.schedule-table th:first-child,.schedule-table td:first-child{text-align:left;padding-left:20px;width:170px}
.schedule-table tbody tr:last-child td{border-bottom:0}
.person{display:flex;align-items:center;gap:9px}
.person-avatar{width:30px;height:30px;background:#eae8fc;color:#5c55cf;display:grid;place-items:center;border-radius:8px;font-size:10px;font-weight:800}
.person strong{display:block;font-size:11px}
.person small{display:block;color:#a7adba;font-size:9px;margin-top:3px}
.shift{width:100%;max-width:76px;min-height:34px;border:1px solid transparent;border-radius:7px;font-size:10px;font-weight:700}
.shift.morning{background:#eeeaff;color:#6656d4}
.shift.afternoon{background:#e8f7f3;color:#168970}
.shift.off{background:#f5f6fa;color:#a8adbb}
.shift:hover{outline:2px solid #8e83f1}
.hours-cell strong{display:block;font-size:12px}
.hours-cell small{display:block;font-size:9px;color:#8490a2;margin-top:3px}
.hours-cell.bad strong,.hours-cell.bad small{color:#cf5c53}
.legend{display:flex;gap:20px;flex-wrap:wrap;margin:16px 0 24px;font-size:10px;color:#8d95a7}
.legend span{display:flex;align-items:center;gap:6px}
.legend-swatch{width:12px;height:12px;border-radius:3px}
.legend-swatch.morning{background:#d7ceff}
.legend-swatch.afternoon{background:#bcebdd}
.legend-swatch.off{background:#e6e9f0}
.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.bottom-grid p{font-size:12px;color:#858da0;line-height:1.65;margin-bottom:0}
.rules-intro{padding:34px 38px;background:#2b295e;color:#fff;border-radius:13px;margin-bottom:17px}
.rules-intro h2{font-size:26px;max-width:630px;line-height:1.3;letter-spacing:-.6px;margin:10px 0}
.rules-intro p{font-size:12px;color:#c6c4de;line-height:1.6}
.rules-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}
.rule-card{padding:22px}
.rule-card>span{font-size:10px;color:#6a61ee;font-weight:800;letter-spacing:1px}
.rule-card h3{font-size:16px;margin:15px 0 8px}
.rule-card p{font-size:12px;line-height:1.65;color:#858da0;margin:0 0 16px}
.rule-card small{color:#9da3b1;font-size:10px}
.source-box{margin-top:16px;padding:22px}
.source-box strong{font-size:14px}
.source-box p{max-width:750px;font-size:12px;color:#858da0;line-height:1.6}
.source-box a{font-size:11px;color:#655be9;font-weight:800}
button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #aea7ff;outline-offset:2px}
@media(max-width:1100px){.hero-visual{right:24px;opacity:.5}
.hero-copy{max-width:70%}
.metric-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){.app-shell{display:block}
.sidebar{position:sticky;top:0;z-index:10;width:100%;min-width:0;min-height:0;padding:11px 15px;display:block;border-right:0;border-bottom:1px solid #e7eaf2}
.brand{display:inline-flex;font-size:20px}
.brand-mark{width:29px;height:29px;font-size:18px}
.brand small{display:none}
.workspace-chip,.nav-label,.sidebar-bottom{display:none}
.sidebar nav{display:flex;gap:3px;overflow-x:auto;margin-top:11px}
.nav-item{width:auto;white-space:nowrap;font-size:11px;padding:8px}
.nav-icon{font-size:15px}
.topbar{display:none}
.content-wrap{padding:24px 15px 55px}
.page-heading{display:block}
.page-heading h1{font-size:24px}
.date-tag{display:inline-block;margin-top:14px}
.hero{min-height:0}
.hero-copy{padding:28px 22px;max-width:100%}
.hero h2{font-size:23px;max-width:420px}
.hero-visual{display:none}
.metric-grid{gap:9px}
.metric{min-height:140px;padding:14px}
.metric strong{font-size:24px}
.overview-grid,.bottom-grid,.rules-grid{grid-template-columns:1fr}
.toolbar{align-items:stretch;flex-wrap:wrap}
.toolbar>div:first-child{width:100%}
.toolbar select{width:100%}
.toolbar-note{padding:0;width:100%}
.rules-intro{padding:28px 22px}
.rules-intro h2{font-size:22px}
}

:root .coverage-track .coverage-0{width:0}

:root .coverage-track .coverage-1{width:50%}

:root .coverage-track .coverage-2{width:100%}


/* Workbook-inspired, fictitious scenario controls. */
.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.setup-grid .panel{min-width:0}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.form-grid label,.people-row label{display:grid;gap:6px;color:#6b7488;font-size:11px;font-weight:700}
.form-grid input,.people-row select{width:100%;min-height:39px;padding:8px 10px;background:#fff;border:1px solid #dfe3ee;border-radius:8px;color:#30374c;font:inherit}
.form-feedback{min-height:16px;margin:10px 0;color:#886936;font-size:11px}
.helper-text{margin:10px 0 0;color:#9299aa;font-size:11px;line-height:1.5}
.shift-fields{display:grid;gap:15px;margin-bottom:15px}
.shift-editor{padding:14px;background:#fafaff;border:1px solid #eeeefa;border-radius:9px}
.shift-editor h4{margin:0 0 11px;color:#4c5269;font-size:12px}
.people-list{display:grid;gap:9px}
.people-row{display:flex;align-items:center;gap:15px;padding:11px 13px;border:1px solid #edf0f5;border-radius:9px}
.people-identity{display:flex;align-items:center;gap:9px;min-width:170px;margin-right:auto;font-size:11px}
.people-row label{min-width:135px}
.people-row button:disabled,.people-panel #add-person:disabled{opacity:.5;cursor:not-allowed}
.shift.unassigned{background:#fff8e8;color:#986b26;border:1px dashed #ebcf91}
.legend-swatch.unassigned{background:#f7e7bb}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #aea7ff;outline-offset:2px}
@media(max-width:1000px){.setup-grid{grid-template-columns:1fr}}
@media(max-width:560px){.people-row{flex-wrap:wrap}.people-identity{width:100%}.people-row label{flex:1;min-width:120px}.people-panel .panel-head{flex-wrap:wrap}.form-grid{gap:8px}.coverage-row{grid-template-columns:36px 1fr auto;gap:7px}}
