:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#202733;background:#f4f6f9;font-size:16px;--brand:#922b43;--muted:#6d7685;--line:#e7eaf0;--soft:#f9eef1;--green:#247459}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,a,input,select{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #c78193}button{border:0;background:none;color:inherit}a{color:var(--brand)}.layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{background:white;border-right:1px solid var(--line);padding:30px 20px;position:fixed;width:224px;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;margin:0 7px 44px;font-weight:750;font-size:19px;letter-spacing:.5px}.brandmark{width:36px;height:36px;border-radius:11px;background:var(--brand);color:white;display:grid;place-items:center}.nav{display:grid;gap:9px}.nav button{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:9px;text-align:left;color:#69717e;font-weight:550}.nav button:hover{background:#f5f6f8}.nav button.active{color:var(--brand);background:var(--soft)}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0}.sidebottom{margin-top:auto;padding-top:25px;border-top:1px solid var(--line);display:grid;gap:10px}.sidebottom button{display:flex;align-items:center;gap:11px;padding:8px 16px;text-align:left;font-size:14px;color:var(--muted)}.localstatus{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--green);padding:12px 16px 0}.main{grid-column:2;min-width:0}.topbar{min-height:80px;display:flex;align-items:center;justify-content:space-between;padding:18px 38px;background:#fff;border-bottom:1px solid var(--line);gap:14px}.topbar-title{font-size:16px;font-weight:600}.topbar-right{display:flex;gap:12px;align-items:center}.topbar select{max-width:230px}.content{padding:34px 38px 50px;max-width:1660px;margin:auto}.pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:26px}.pagehead h1{font-size:28px;letter-spacing:.3px;margin:0 0 10px;font-weight:750}.pagehead p{margin:0;color:var(--muted);font-size:15px}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 17px;border-radius:8px;background:white;border:1px solid #dce1e9;font-size:15px;font-weight:550;white-space:nowrap}.btn:hover{background:#f8f9fb}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:#7c2036}.btn.danger{color:#b12e43}.btn.small{min-height:34px;padding:6px 10px;font-size:14px}.iconbtn{display:inline-flex;align-items:center;justify-content:center;padding:7px;color:var(--muted);border-radius:7px}.iconbtn:hover{background:#f5f6f8}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:22px;position:relative}.stat .label{color:var(--muted);font-size:14px;margin-bottom:12px}.stat .value{font-size:32px;line-height:1.2;font-weight:720;letter-spacing:-1px}.stat .unit{font-size:14px;color:var(--muted);margin-left:7px;font-weight:400;letter-spacing:0}.stat .stat-icon{position:absolute;right:20px;top:20px;background:#f5f6f9;padding:9px;border-radius:9px;color:#8891a0}.stat:first-child .stat-icon{background:var(--soft);color:var(--brand)}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:22px;overflow:hidden}.panelhead{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.panelhead h2{font-size:18px;margin:0;font-weight:650}.panelbody{padding:22px}.tabs{display:flex;gap:22px;align-items:center}.tabs button{padding:9px 1px 13px;position:relative;color:var(--muted);font-size:15px}.tabs button.active{color:var(--brand);font-weight:650}.tabs button.active:after{content:"";position:absolute;height:3px;border-radius:3px;bottom:0;left:0;right:0;background:var(--brand)}.rulebar{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.rulepill{display:flex;align-items:center;gap:7px;font-size:14px;padding:9px 12px;border-radius:7px;background:#f4f6f9;color:#626b79}.rulepill svg{width:17px;height:17px}.badge{display:inline-flex;align-items:center;white-space:nowrap;border-radius:5px;padding:4px 8px;font-size:14px;background:#f0f3f7;color:#616b7a}.badge.rose{background:var(--soft);color:var(--brand)}.badge.green{background:#eaf6ef;color:var(--green)}.badge.amber{background:#fff3df;color:#94621c}.empty{padding:64px 24px;text-align:center}.empty-visual{width:76px;height:76px;display:grid;place-items:center;border-radius:21px;background:var(--soft);color:var(--brand);margin:0 auto 23px}.empty-visual svg{width:35px;height:35px}.empty h2{font-size:21px;margin:0 0 12px}.empty p{font-size:15px;color:var(--muted);margin:0 auto 24px;line-height:1.8;max-width:540px}.empty .actions{justify-content:center}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}.step{padding:20px;border:1px solid var(--line);border-radius:10px;background:#fff;display:flex;align-items:center;gap:14px;font-size:15px}.step svg{color:var(--brand);width:23px;height:23px}.step .muted{font-size:14px;margin-top:5px}.muted{color:var(--muted)}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;gap:8px;font-size:14px}.field.full{grid-column:1/-1}.field span{font-weight:550}.field input,.field select,select.select,input.search{height:44px;padding:10px 12px;border:1px solid #dce1e9;border-radius:7px;background:#fff;color:#2e3541;min-width:0;width:100%}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d7685' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-position:right 11px center!important;background-repeat:no-repeat!important;padding-right:34px!important}select.select{width:auto;font-size:14px}.formfooter{margin-top:24px;display:flex;justify-content:flex-end;gap:10px}.tablewrap{overflow-x:auto;overscroll-behavior-x:contain}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;color:#6b7380;background:#fafbfc;font-weight:550;white-space:nowrap}th,td{padding:15px 21px;border-bottom:1px solid var(--line);line-height:1.6}tbody tr:last-child td{border-bottom:0}.person{display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#eff1f6;color:#646d7d;font-size:14px;flex-shrink:0}.person-name{font-weight:600;color:#28303d}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.weeknav{display:flex;align-items:center;gap:12px;font-size:14px}.weeknav button{border:1px solid var(--line);border-radius:6px;padding:5px 9px}.roster{min-width:1080px;table-layout:fixed}.roster th,.roster td{padding:12px;border-right:1px solid var(--line);vertical-align:top}.roster th:first-child,.roster td:first-child{width:130px;position:sticky;left:0;z-index:2;background:white}.roster th:first-child{background:#fafbfc}.roster th{font-size:14px;text-align:center}.roster td{height:145px}.roster .weekday{margin-top:3px;font-weight:400;color:#8b939e}.daycell{width:100%;height:100%;text-align:left;border-radius:7px;padding:9px;background:#f7f8fb;display:flex;flex-direction:column;gap:7px;transition:background .15s}.daycell:hover{background:#f0e5e9}.daycell .daytitle{display:flex;justify-content:space-between;gap:5px;color:var(--brand);font-size:14px;font-weight:600}.taskline{font-size:14px;line-height:1.5;color:#303846}.taskline .taskhours{color:#7d8592;float:right;margin-left:3px}.restcell{display:flex;justify-content:center;align-items:center;color:#9ca3af;min-height:112px;font-size:14px}.restcell.rest{color:#7b8591;background:repeating-linear-gradient(135deg,#fafbfc,#fafbfc 6px,#f5f6f8 6px,#f5f6f8 7px);border-radius:7px}.storehead{padding:15px 22px;background:#fcfcfd;border-bottom:1px solid var(--line);font-size:15px;font-weight:650;display:flex;align-items:center;gap:9px}.capacitygrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:22px}.trainer-card{border:1px solid var(--line);border-radius:10px;padding:18px}.trainer-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:17px}.capacitynums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.capacitynums strong{font-size:24px;display:block;margin-bottom:4px}.capacitynums span{font-size:14px;color:var(--muted)}.progress{height:6px;background:#f0f2f5;border-radius:5px;overflow:hidden;margin-bottom:17px}.progress div{height:100%;background:var(--brand)}.session{padding:12px 0;border-top:1px solid var(--line);font-size:14px}.session-row{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px}.session-name{font-weight:600}.warning{background:#fff8ed;color:#865d28;border:1px solid #f1ddbb;border-radius:9px;padding:16px 19px;margin-bottom:20px;font-size:14px;line-height:1.8}.warning h3{font-size:15px;margin:0 0 6px}.warning p{margin:4px 0}.coursegrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.coursecard{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.coursecard .panelhead{padding:16px 18px}.courseitem{display:grid;grid-template-columns:minmax(0,1fr) 70px 110px;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid var(--line);font-size:14px}.courseitem:last-child{border:0}.courseitem .source{font-size:14px;color:#87909f;margin-top:4px}.courseitem input{width:70px;border:1px solid #dce1e9;border-radius:6px;padding:8px;font:inherit}.courseitem select{width:110px;border:1px solid #dce1e9;border-radius:6px;padding:8px;font:inherit;background:white}.overlay{position:fixed;inset:0;background:#18233566;z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(2px)}.modal{background:white;width:560px;max-width:100%;max-height:90vh;overflow-y:auto;border-radius:14px;box-shadow:0 20px 70px #18233533}.modal.wide{width:720px}.modalhead{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}.modalhead h2{margin:0;font-size:21px}.modalbody{padding:24px}.modalbody .detailrow{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);gap:16px;font-size:15px}.detailrow .muted{font-size:14px;margin-top:6px}.modalbody .detailrow:last-child{border:0}.notice{padding:14px 16px;background:#f5f6f9;border-radius:7px;font-size:14px;color:#657080;line-height:1.8;margin-bottom:20px}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(15px);padding:13px 20px;background:#26323f;color:white;border-radius:9px;z-index:200;font-size:15px;max-width:90vw;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 5px 20px #0002}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.search{max-width:280px}.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:14px;color:var(--muted)}.legend span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;background:#922b43;margin-right:6px}.legend span:nth-child(2):before{background:#71849e}.legend span:nth-child(3):before{background:#3d8a6d}.task-tutor{color:#697c96}.task-self{color:#34795e}.mobile-brand{display:none}.count{font-size:14px;font-weight:400;color:var(--muted);margin-left:8px}.totals{padding:17px 22px;font-size:14px;color:var(--muted);border-top:1px solid var(--line)}.helptext{font-size:14px;color:var(--muted);line-height:1.8}.demo-label{font-size:14px;color:var(--brand);padding:5px 10px;background:var(--soft);border-radius:5px}.inlineempty{padding:35px;text-align:center;font-size:15px;color:var(--muted)}@media(min-width:1500px){.roster{min-width:1150px}.roster th:first-child,.roster td:first-child{width:150px}}@media(max-width:1200px){.capacitygrid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:28px 25px}.topbar{padding:18px 25px}.stat{padding:18px}.stat .stat-icon{display:none}.pagehead{flex-wrap:wrap}.coursegrid{grid-template-columns:1fr}}@media(max-width:800px){.layout{display:block}.sidebar{position:sticky;top:0;width:100%;height:auto;display:block;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line)}.brand{display:none}.nav{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.nav button{padding:11px 4px;gap:7px;justify-content:center;font-size:14px}.nav svg{width:17px;height:17px}.sidebottom{display:none}.main{display:block}.topbar{padding:15px 18px;min-height:65px;flex-wrap:wrap}.topbar-title{font-size:15px}.topbar-right{gap:8px}.topbar select{max-width:175px}.mobile-brand{display:inline-flex;align-items:center;color:var(--brand);gap:7px;font-weight:700}.desktop-title{display:none}.content{padding:24px 16px 40px}.pagehead{margin-bottom:20px;gap:16px}.pagehead h1{font-size:25px}.pagehead p{font-size:14px;line-height:1.7}.stats{grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:18px}.stat{padding:17px}.stat .value{font-size:28px}.stat .label{margin-bottom:10px}.panelhead{padding:16px}.panelhead h2{font-size:17px}.toolbar{padding:14px 16px}.capacitygrid{padding:16px;gap:13px}.steps{grid-template-columns:1fr;gap:10px}.step{padding:17px}.empty{padding:42px 18px}.rulebar{gap:8px}.rulepill{font-size:14px;padding:8px 10px}.topbar .demo-label{display:none}.panelbody{padding:18px}.actions .btn{font-size:14px;padding:9px 12px}.pagehead>.actions{width:100%}.pagehead>.actions .primary{flex:1}.courseitem{padding:12px;grid-template-columns:minmax(0,1fr) 62px 105px;gap:7px}.courseitem input{width:62px}.courseitem select{width:105px}.warning{padding:14px}.storehead{padding:14px 16px}.formgrid{gap:15px}.modalbody{padding:20px}.modalhead{padding:18px 20px}.roster td{height:135px}.topbar .btn.small{padding:7px}.topbar .btn.small span{display:none}.totals{padding:15px 16px}}@media(max-width:520px){.capacitygrid{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}.topbar-right{margin-left:auto}.topbar-title{display:none}.weeknav{gap:7px;font-size:14px}.tabs{gap:18px}.modalbody{padding:18px}.overlay{padding:12px}.modal{max-height:94vh}.courseitem{font-size:14px}.legend{gap:10px}.btn{min-height:42px}}@media print{.sidebar,.topbar,.pagehead .actions,.toolbar .btn,.weeknav button,.rulebar{display:none}.layout{display:block}.content{padding:0}.roster{min-width:0;font-size:10px}.roster td,.roster th{padding:4px}.taskline{font-size:10px}.panel{overflow:visible}.tablewrap{overflow:visible}.pagehead h1{font-size:22px}.stats{display:none}}
/* Desktop first: use the available screen for the complete weekly calendar. */
@media(min-width:1100px){.content{max-width:none;padding:28px 28px 44px}.topbar{padding:18px 28px}.layout{grid-template-columns:208px minmax(0,1fr)}.sidebar{width:208px;padding:26px 16px}.roster{min-width:0}.roster th:first-child,.roster td:first-child{width:112px}.roster th,.roster td{padding:9px 7px}.daycell{padding:8px 7px;gap:7px}.taskline{font-size:14px;overflow-wrap:anywhere}.daycell .daytitle{font-size:14px;flex-wrap:wrap}.tablewrap{scrollbar-width:thin}.coursegrid{grid-template-columns:repeat(2,minmax(0,1fr))}.panelhead{padding:17px 20px}.stats{gap:16px}.capacitygrid{grid-template-columns:repeat(3,minmax(0,1fr))}.capacitynums strong{font-size:25px}.brand{font-size:18px;margin-left:2px;margin-right:0;gap:8px}}
@media(min-width:1600px){.content{padding:30px 34px 48px}.roster th:first-child,.roster td:first-child{width:130px}.roster th,.roster td{padding:12px}.daycell{padding:11px}.taskline{font-size:15px}.capacitygrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.staffing-summary{padding:15px 22px;background:#faf6ed;border-bottom:1px solid #eee6d5;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:15px;color:#705928;flex-wrap:wrap}.staffing-summary span{display:inline-flex;align-items:center;gap:7px}.trainer-card:has(.badge.amber){background:#fffefa}
.daycell.adjusted{box-shadow:inset 3px 0 #b78028;background:#fffbf0}.day-edit-row{display:grid;grid-template-columns:minmax(0,1fr) 85px 130px 34px;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid var(--line)}.day-edit-row .iconbtn{height:44px}.day-edit-row input,.day-edit-row select{width:100%}@media(max-width:560px){.day-edit-row{grid-template-columns:minmax(0,1fr) 75px 30px;gap:9px}.day-edit-row .field:nth-child(3){grid-column:1/3;grid-row:2}.day-edit-row .remove-task{grid-column:3;grid-row:1}}
