@import url('data:text/css,');
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#263c37;background:#f6f7f4;font-size:13px;font-synthesis:none;--green:#244e42;--muted:#85918b;--line:#e5e9e4;--paper:#fff;--serif:Georgia,"Songti SC",serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);border-radius:7px;padding:9px 13px;background:white;color:inherit;transition:.16s}button:hover{background:#f1f5ef;border-color:#b7c8bc}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #adcabb;outline-offset:2px}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#34624f}.shell{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:100vh}.sidebar{background:#f0f3ec;border-right:1px solid #e0e6da;padding:35px 20px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 42px}.brandmark{display:grid;grid-template-columns:repeat(2,9px);gap:3px;transform:rotate(-7deg);background:#244e42;padding:10px;border-radius:11px}.brandmark i{width:9px;height:9px;border:1px solid #dbe8d7;border-radius:2px}.brand strong{font-size:24px;letter-spacing:4px;font-family:var(--serif)}.brand small{display:block;font-size:9px;letter-spacing:1.8px;color:#7b8c7c;margin-top:5px}.nav-label{font-size:10px;letter-spacing:1.5px;color:#94a08f;margin:0 14px 12px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{border:0;background:transparent;text-align:left;padding:13px 15px;display:flex;align-items:center;gap:12px;color:#6b7b6c}.nav button.active{background:#dce7d8;color:#254b35;font-weight:600}.icon{width:17px;height:17px;vertical-align:middle;flex-shrink:0}.sidebar-bottom{margin-top:auto}.side-note{border:1px solid #dbe3d4;border-radius:9px;padding:15px 13px;margin:30px 4px 18px;font-size:11px;color:#809075;line-height:1.9}.side-note strong{display:block;color:#647b5e;font-size:12px;margin-bottom:3px}.side-foot{padding:0 12px;font-size:10px;color:#98a294;letter-spacing:1px}.main{min-width:0}.topbar{height:76px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:0 34px;background:#fcfdfa}.crumb{color:#8b9690;font-size:12px}.crumb span{color:#435a4c;margin-left:12px}.top-right{display:flex;align-items:center;gap:17px}.campus{font-size:12px;color:#67796a}.avatar{display:inline-flex;justify-content:center;align-items:center;border-radius:50%;width:32px;height:32px;background:#dce7d5;color:#536c42;font-size:12px;font-weight:600}.identity{display:flex;align-items:center;gap:8px}.identity select{border:0;background:transparent;max-width:150px;color:#536757;outline-offset:3px}.workspace{padding:28px 34px 32px;max-width:1800px;margin:auto}.demo-banner{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#8e856c;background:#f1eee4;border:1px solid #e8e3d6;border-radius:6px;padding:9px 13px;margin-bottom:24px}.sync{color:#557a5c;white-space:nowrap}.sync::before{content:"";display:inline-block;width:6px;height:6px;background:#83a989;border-radius:50%;margin-right:6px}.sync.offline{color:#a66d47}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.eyebrow{font-size:10px;color:#899a8c;letter-spacing:1.7px;margin-bottom:8px}h1{font-size:28px;letter-spacing:1px;margin:0;font-weight:600}h1 .heading-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#b2bf7b;vertical-align:middle;margin-left:12px}.subtitle{color:#8a968e;margin:10px 0 0;font-size:12px}.heading-actions{display:flex;gap:9px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.metric{padding:20px 21px;background:var(--paper);border:1px solid var(--line);border-radius:9px;position:relative}.metric-label{font-size:11px;color:#86918a;display:flex;justify-content:space-between;align-items:center}.metric-value{font-size:31px;font-weight:500;letter-spacing:-1px;line-height:1.3;margin:13px 0 9px}.metric-value small{font-size:12px;color:#9ba59c;letter-spacing:0;margin-left:6px;font-weight:400}.metric-note{font-size:10px;color:#98a196}.metric-note .positive{color:#6b8965}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px}.panel{border:1px solid var(--line);background:white;border-radius:9px;overflow:hidden}.panel-header{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}h2{font-size:14px;font-weight:600;margin:0}h3{font-size:13px;margin:0}.toolbar{padding:14px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);flex-wrap:wrap}.week-controls{display:flex;align-items:center;gap:11px;font-size:12px}.icon-btn{padding:5px 9px;border:0;background:#f6f7f4;font-size:16px}.today-btn{font-size:10px;padding:5px 8px}.filters{display:flex;gap:7px;align-items:center}.filters select,.filters input{max-width:130px;padding:7px 9px;border:1px solid var(--line);border-radius:5px;background:white;color:#708071;font-size:11px}.filters input{width:120px}.calendar-scroll{overflow-x:auto}.calendar{table-layout:fixed;border-collapse:collapse;width:100%;min-width:760px}.calendar th{font-weight:400;padding:13px 7px;border-bottom:1px solid var(--line);background:#fcfdfb;font-size:10px;color:#8b988d}.calendar th:first-child{width:106px;text-align:left;padding-left:16px}.calendar th strong{display:inline-block;font-size:17px;font-weight:500;color:#566b56;margin:5px 0 0}.calendar th.today{background:#f0f5ea}.calendar th.today strong{background:#345d45;color:white;border-radius:50%;width:28px;line-height:28px}.calendar td{vertical-align:top;border-right:1px solid #eff1eb;border-bottom:1px solid var(--line);padding:9px 5px;position:relative}.calendar tr:last-child td{border-bottom:0}.calendar td:first-child{padding:17px 12px}.teacher-cell strong{display:block;font-size:12px;margin:8px 0 7px}.teacher-cell small{font-size:10px;color:#929b90}.teacher-cell .avatar{width:29px;height:29px}.tag{display:inline-block;padding:3px 6px;border:1px solid #e4e8dd;border-radius:4px;font-size:9px;color:#8a947e}.lesson{border:0;border-left:3px solid #98b6a2;border-radius:5px;padding:9px 7px;width:100%;text-align:left;margin-bottom:7px;background:#eaf1e8;display:block;overflow:hidden;min-height:70px}.lesson:hover{filter:brightness(.97);background:#e2eddf}.lesson .time{font-size:9px;font-weight:500;display:block;white-space:nowrap;margin-bottom:6px;letter-spacing:-.2px}.lesson strong{font-size:11px;font-weight:600;display:block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-bottom:5px}.lesson small{font-size:9px;display:block;color:#81957f;white-space:nowrap}.blue .lesson{background:#eaf0f4;border-left-color:#a2b7cc;color:#4d6e8a}.blue .lesson small{color:#859db0}.orange .lesson{background:#f8efe3;border-left-color:#d9bd8c;color:#9b7d48}.orange .lesson small{color:#b09b78}.purple .lesson{background:#f0ebf4;border-left-color:#bda9cd;color:#8c72a2}.purple .lesson small{color:#a390b5}.lesson.cancelled{opacity:.45;text-decoration:line-through}.available{border:1px dashed #dbe4d5;border-radius:4px;padding:7px 3px;margin:5px 0 0;font-size:9px;color:#91a484;text-align:center;display:block;background:#fcfdf9;width:100%}.unavailable{color:#c2c8be;font-size:10px;text-align:center;padding:24px 0}.calendar-foot{padding:13px 17px;border-top:1px solid var(--line);font-size:10px;display:flex;justify-content:space-between;color:#9aa391;gap:14px}.legend{display:flex;gap:13px;flex-wrap:wrap}.legend i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px;background:#95b195}.legend i.trial{background:#d4b87c}.right-column{display:flex;flex-direction:column;gap:18px}.aside-card{padding:19px;background:white;border:1px solid var(--line);border-radius:9px}.aside-card .section-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.aside-card .section-top small{font-size:10px;color:#9da894}.agenda{display:grid;grid-template-columns:35px 1fr;gap:10px;padding:11px 0;border-bottom:1px solid #f0f2ec}.agenda:last-child{border-bottom:0}.agenda-time{font-size:10px;color:#97a08d;padding-top:1px}.agenda-info{border-left:2px solid #b2c2a3;padding-left:10px}.agenda-info strong{font-size:11px;font-weight:500;display:block}.agenda-info small{font-size:9px;color:#a1ab97;display:block;margin-top:6px}.capacity-card{background:#eaf0e2;border-color:#e0e7d5;color:#576f48}.capacity-card p{font-size:11px;line-height:1.9;color:#8c9c7a;margin:11px 0 15px}.capacity-count{font-family:var(--serif);font-size:42px;line-height:1}.capacity-count small{font-family:inherit;font-size:12px;margin-left:7px}.capacity-card button{background:transparent;border-color:#c9d5ba;width:100%;color:#647b53;font-size:11px;margin-top:17px}.mini-log{font-size:10px;line-height:1.8;color:#8a9881;padding:8px 0}.mini-log strong{color:#5d7356;font-weight:400}.empty{padding:45px 20px;text-align:center;color:#97a28f;font-size:12px;line-height:1.9}.notice{font-size:11px;color:#84917b;line-height:1.9;background:#f6f8f1;padding:14px 18px;border:1px solid #e6ebdd;border-radius:7px;margin:18px 0}.teacher-tabs{display:flex;gap:9px;margin-bottom:20px;flex-wrap:wrap}.teacher-tabs button.active{border-color:#517956;color:#406245;background:#eaf0e3}.availability-table,.data-table{width:100%;border-collapse:collapse;font-size:12px}.availability-table td,.availability-table th,.data-table td,.data-table th{text-align:left;padding:17px 20px;border-bottom:1px solid var(--line);font-weight:400}.availability-table th,.data-table th{background:#fafbf7;font-size:11px;color:#8a9881}.period-pill{display:inline-block;background:#edf3e7;border-radius:5px;padding:6px 10px;margin:3px;color:#66815a;font-size:11px}.charts{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(210px,1fr);gap:20px;margin-bottom:20px}.chart{padding:25px 22px 18px}.chart-sub{font-size:11px;color:#98a08f;margin-top:7px}.bars{display:flex;align-items:flex-end;height:230px;gap:12px;padding-top:28px;margin-top:18px}.bar-col{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;gap:8px;color:#a0aa96;font-size:10px}.bar{width:100%;max-width:35px;min-height:3px;background:#d8e3cf;border-radius:4px 4px 0 0}.bar.peak{background:#5b7f4d}.rate-ring{width:130px;height:130px;border-radius:50%;margin:25px auto;background:conic-gradient(#769568 var(--rate),#edf1e6 0);display:grid;place-items:center}.rate-core{width:108px;height:108px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center}.rate-core strong{font-size:28px;font-weight:500}.rate-core small{font-size:10px;color:#9ba58e;margin-top:6px}.log-row{padding:19px 22px;border-bottom:1px solid var(--line)}.log-row summary{cursor:pointer;display:flex;justify-content:space-between;gap:15px;list-style:none}.log-row small{color:#98a28d;font-size:10px}.log-details{margin-top:14px;color:#7e8d75;font-size:11px;line-height:1.9;white-space:pre-wrap}.loading{padding:100px;text-align:center;color:#789069}dialog{padding:0;border:1px solid #dce3d5;border-radius:12px;width:min(560px,calc(100vw - 30px));box-shadow:0 18px 100px #22342424;color:#354b36;max-height:90vh}dialog::backdrop{background:#17261b57;backdrop-filter:blur(3px)}.dialog-head{padding:22px 26px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:18px}.dialog-head p{font-size:11px;color:#99a28e;margin:8px 0 0}.dialog-body{padding:22px 26px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 16px}.form-field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#89957f}.form-field.wide{grid-column:1/-1}.form-field input,.form-field select,.form-field textarea{width:100%;padding:10px;border:1px solid #dfe6d7;border-radius:5px;color:#49613e;background:white;min-height:37px}.dialog-footer{display:flex;justify-content:flex-end;gap:9px;padding:16px 26px 22px}.form-error{font-size:12px;line-height:1.7;color:#ac664b;min-height:17px;margin:16px 0 0}.period-editor{display:flex;gap:9px;align-items:center;margin:10px 0}.period-editor input{width:40%;padding:9px;border:1px solid var(--line);border-radius:4px}.period-editor button{padding:7px}.help{font-size:11px;color:#95a187;line-height:1.8;margin:14px 0}.dialog-footnote{font-size:10px;line-height:1.8;color:#9aa48e;margin-top:15px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#31523a;color:white;border-radius:8px;padding:14px 24px;box-shadow:0 5px 30px #24362722;opacity:0;pointer-events:none;transition:.2s;z-index:10;font-size:12px}#toast.visible{opacity:1}.mobile-title{display:none}.error-screen{padding:70px;line-height:2}.muted{color:#9aa58e}.footer-note{font-size:10px;color:#a6ad9f;display:flex;justify-content:space-between;margin-top:22px;letter-spacing:.2px}
@media(min-width:1500px){.calendar{min-width:900px}.calendar td{padding:11px 8px}.lesson{padding:10px}.lesson .time{font-size:10px}.lesson strong{font-size:12px}.content-layout{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:1250px){.content-layout{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:repeat(3,1fr)}.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:30px 12px}.workspace{padding:24px}.topbar{padding:0 24px}.brand{padding-left:5px}.metrics{gap:12px}.metric{padding:17px}}
@media(max-width:760px){.shell{display:block}.sidebar{height:auto;position:static;padding:12px 16px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:2px 0 14px}.brand strong{font-size:21px}.brandmark{padding:7px}.nav{flex-direction:row;overflow:auto;gap:3px}.nav button{white-space:nowrap;padding:9px;font-size:11px;gap:5px}.nav .icon{width:14px}.nav-label,.sidebar-bottom{display:none}.topbar{height:55px;padding:0 17px}.crumb{display:none}.top-right{justify-content:space-between;width:100%}.workspace{padding:18px 14px}.demo-banner{line-height:1.6;font-size:10px;flex-direction:column;gap:3px;margin-bottom:20px}.page-heading{align-items:flex-start;gap:10px}h1{font-size:23px}.heading-actions button{font-size:11px;padding:8px}.heading-actions .secondary-action{display:none}.subtitle{font-size:10px;line-height:1.7}.eyebrow{font-size:9px}.metrics{grid-template-columns:repeat(2,1fr);gap:10px}.metric{padding:14px}.metric-value{font-size:27px;margin:10px 0 6px}.metric-label{font-size:10px}.metric-note{font-size:9px}.toolbar{padding:12px;gap:12px}.filters{flex-wrap:wrap}.right-column{grid-template-columns:1fr}.charts{grid-template-columns:1fr}.availability-table td,.availability-table th,.data-table td,.data-table th{padding:12px}.calendar-foot{flex-direction:column;font-size:9px;gap:8px}.footer-note{display:block;line-height:1.8}.bars{gap:8px}.data-scroll{overflow:auto}.data-table{min-width:600px}.dialog-body{padding:20px}.dialog-head{padding:20px}.log-row summary{flex-direction:column;gap:8px}}
.view-toggle{display:flex;background:#f2f5ed;border-radius:6px;padding:3px;gap:3px}.view-toggle button{border:0;background:transparent;padding:7px 12px;font-size:11px;color:#86957e}.view-toggle button.active{background:white;color:#365941;box-shadow:0 1px 4px #233e1d12}.time-rules{display:flex;gap:24px;padding:15px 20px;background:#fbfcf8;border-bottom:1px solid var(--line);font-size:10px;color:#93a087;flex-wrap:wrap}.time-rules strong{color:#627b51;font-weight:500}.timeline-scroll{overflow-x:auto}.timeline{min-width:1100px;padding-right:28px}.timeline-head{display:flex;height:65px;border-bottom:1px solid var(--line)}.timeline-label{width:112px;flex-shrink:0;display:flex;align-items:center;gap:9px;padding:0 14px;font-size:10px;color:#92a184}.timeline-label strong{display:block;font-size:12px;color:#536b45}.timeline-label small{display:block;font-size:10px;margin-top:7px}.timeline-label .avatar{width:26px;height:26px;font-size:11px;flex-shrink:0}.timeline-scale{position:relative;flex:1;margin-top:22px}.time-tick{position:absolute;top:23px;transform:translateX(-50%);font-size:8px;color:#abb79e;white-space:nowrap}.time-tick.hour{top:1px;font-size:11px;color:#6a8059}.timeline-row{display:flex;height:112px;border-bottom:1px solid var(--line)}.timeline-row:last-child{border-bottom:0}.timeline-track{flex:1;position:relative;background-color:#f6f7f3;background-image:repeating-linear-gradient(to right,#e4e9de 0,#e4e9de 1px,transparent 1px,transparent calc(100% / var(--tick-count,43)));height:100%}.time-gap,.timeline-lesson{position:absolute;top:14px;height:84px;border-radius:5px;padding:8px 3px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;border:2px solid white}.time-gap{background:#f0f3ed;color:#77876b;border:1px dashed #d0dac5;border-left:3px solid white;border-right:3px solid white;box-shadow:inset 0 0 0 1px #f0f3ed}.time-gap span{font-size:10px;white-space:nowrap}.time-gap small{font-size:9px;color:#7e8d70}.time-gap.short-gap,.available.short-gap{background:#f5f0e4;color:#8b7b58;border-color:#e1d6be}.time-gap.short-gap small{color:#918262;font-size:8px}.timeline-lesson{color:#62755d;background:#e9eee6;border-left:3px solid #a7b79c;z-index:1}.timeline-lesson span{font-size:9px;line-height:1.4;white-space:nowrap}.timeline-lesson strong{font-size:11px;white-space:nowrap}.timeline-lesson small{font-size:8px;color:#8aa27b}.blue .timeline-lesson{background:#eaf0f3;border-left-color:#afc0cb;color:#687f8c}.orange .timeline-lesson{background:#f2ecdf;border-left-color:#c3b18d;color:#8b7858}.purple .timeline-lesson{background:#eeebf2;border-left-color:#b8aac6;color:#80718c}.timeline-lesson.dimmed{opacity:.22}.timeline-legend{padding:18px 20px;display:flex;gap:22px;flex-wrap:wrap;font-size:10px;color:#94a186;border-top:1px solid var(--line)}.swatch{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px}.swatch.booked{background:#adc29b}.swatch.free{background:#e7f0dc;border:1px dashed #b7ca9e}.swatch.small{background:#ead4a8}.swatch.unavailable{background:#e1e5db}.time-example{padding:22px 24px;margin:18px 0 0;background:#eef3e7;border:1px solid #e1e9d6;border-radius:9px}.time-example strong{display:block;font-size:13px;font-weight:500;margin-top:10px;color:#627951}.time-example strong span{color:#ac9767;margin:0 13px}.time-example p{font-size:11px;color:#9aa68d;line-height:1.8;margin:13px 0 0}.form-field input[readonly]{background:#f1f5eb;color:#8c9c7a}
@media(max-width:760px){.time-rules{gap:12px;font-size:9px;padding:13px}.timeline-legend{gap:12px;font-size:9px}.time-example{padding:18px}.time-example strong{line-height:2;font-size:11px}.time-example strong span{margin:0 5px}.view-toggle button{padding:6px 8px;font-size:10px}}
.time-gap.buffer-gap{top:53px;height:6px;min-height:0;padding:0;border:0;border-radius:3px;background:#e2e4e6;color:#747a80;box-shadow:none}.time-gap.buffer-gap span,.time-gap.buffer-gap small{display:none}.swatch.buffer{height:4px;vertical-align:middle;background:#e2e4e6}
.available.buffer-gap{background:#f1f2f3;color:#747a80;border:0;border-radius:2px;padding:2px 0;margin:4px 0 0;line-height:14px;white-space:nowrap}

.morning-toggle{display:flex;align-items:center;gap:18px;padding:12px 20px;border-bottom:1px solid var(--line);background:#f1f5eb}.morning-toggle button{background:white;border-color:#d5e1c8;color:#587247;font-size:11px;font-weight:500;white-space:nowrap}.morning-toggle span{font-size:11px;color:#829174;line-height:1.7}.morning-toggle small{display:block;font-size:10px;color:#a1ad96}.morning-cell{font-size:9px;padding:6px 4px;width:100%;background:#f2f5ee;color:#8a9d79;border:1px dashed #dce4d3;margin:3px 0 9px}.weekend-note{font-size:11px;color:#8c9b7d}.timeline-lesson.clipped-start{border-left:3px dashed #758d60}.timeline-lesson.clipped-start small{color:#9b7d4d}@media(max-width:760px){.morning-toggle{padding:12px;gap:10px;flex-wrap:wrap}.morning-toggle button{font-size:10px}.morning-toggle span{font-size:10px}}
.swatch.unavailable{padding:0}
.unit-rule-note{font-size:11px;line-height:1.7;color:#7c8d72;margin:0 0 12px}
.timeline-folded{width:36px;flex:0 0 36px;color:#9ca594;background:#f2f3ef;border-right:1px dashed #cdd4c7;display:flex;align-items:center;justify-content:center}
.folded-head{flex-direction:column;justify-content:flex-end;gap:3px;background:#fafbf8;padding-bottom:5px;font-size:8px}
.folded-head span:last-child{font-size:14px;line-height:10px}
.folded-row span{writing-mode:vertical-rl;font-size:9px;letter-spacing:3px}

/* Lesson state stays readable without relying on color alone. */
.form-field[hidden]{display:none}
.lesson-summary{background:#f3f6ef;border:1px solid #e0e8da;border-radius:9px;padding:19px;margin-bottom:16px;line-height:1.8}.lesson-summary strong{font-size:18px}.lesson-summary p{margin:4px 0 0;color:#71826c}
.lesson-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 12px}.lesson-actions button{min-height:44px}.lesson-actions button[data-action=leave]{border-color:#d9c8a5;background:#faf4e6;color:#866732}
.lesson-history{border-top:1px solid #e5e9e4;padding-top:16px;margin-top:18px}.lesson-history strong{display:block;margin-bottom:10px;font-size:12px}.lesson-history button{display:block;width:100%;text-align:left;font-size:11px;margin:7px 0;line-height:1.6}
.day-changes{padding:15px 20px;border-top:1px solid #e5e9e4;background:#fcfcf8}.day-changes>strong{font-size:11px;color:#8c8f7d}.day-changes>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.day-changes button{font-size:11px;border-style:dashed}.day-changes span{color:#9d7b44;margin-left:8px}
.timeline-row{--done:#586f60}.timeline-row.blue{--done:#5c7484}.timeline-row.orange{--done:#897452}.timeline-row.purple{--done:#796d85}
.timeline-row .timeline-lesson.completed{background:var(--done);border-color:var(--done);color:white}.timeline-row .timeline-lesson.completed small{color:#fff}.calendar .lesson.completed{background:#586f60;color:white;border-color:#586f60}.calendar .blue .lesson.completed{background:#5c7484;border-color:#5c7484}.calendar .orange .lesson.completed{background:#897452;border-color:#897452}.calendar .purple .lesson.completed{background:#796d85;border-color:#796d85}.calendar .lesson.completed small{color:#fff}.calendar .lesson.leave{background:#faf4e6;border:1px dashed #d9c8a5;color:#866732}.calendar .lesson.rescheduled{background:#f2f3ef;border:1px dashed #c8cec0;color:#7c8576}

.move-options{border-top:1px solid #e5e9e4;padding-top:14px;margin-top:20px}.move-options summary{color:#71826c;cursor:pointer;font-size:12px}.move-options[open] .form-grid{margin-top:18px}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:20px}.profile-card{border:1px solid #e5e9e4;border-radius:9px;padding:19px}.profile-heading{display:flex;gap:12px;align-items:center;margin-bottom:15px}.profile-heading p{font-size:11px;color:#83917c;margin:7px 0 0}.student-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;padding:10px 22px}.student-profile{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:16px 0;border-bottom:1px solid #edf0e7}.student-profile strong{font-size:12px}.student-profile button{font-size:11px}.instrument-label{display:block;margin-top:8px}.timeline-label small{line-height:1.6}@media(max-width:800px){.profile-grid,.student-grid{grid-template-columns:1fr}}

#lesson-time-summary{grid-column:1/-1;margin:0;padding:10px 12px;background:#f3f6f0;border-radius:5px;color:#61775b}
#edit-scope-summary{grid-column:1/-1;margin:0;padding:10px 12px;background:#f3f6f0;border-radius:5px;color:#61775b}

.repeat-panel{grid-column:1/-1;background:#f7f9f5;border:1px solid #e0e6dc;padding:16px;border-radius:7px}.repeat-panel[hidden],#repeat-second[hidden]{display:none}.repeat-panel>.help{margin-top:0}.repeat-panel .form-grid{gap:12px}.repeat-panel #repeat-second{border-top:1px solid #e0e6dc;margin-top:14px;padding-top:14px}#repeat-preview{margin-top:14px;color:#51684a}#repeat-preview>strong{font-size:13px}.repeat-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.repeat-dates span{font-size:10px;padding:6px 7px;border-radius:3px;background:#edf2e7;white-space:nowrap}@media(max-width:500px){.repeat-dates{grid-template-columns:1fr}}

button.danger{background:#8c5348;border-color:#8c5348;color:white}.cancel-preview{background:#faf6f2;border:1px solid #eaded6;border-radius:7px;padding:14px;margin-top:18px;color:#805747}.cancel-list{max-height:280px;overflow:auto}.cancel-list p{font-size:12px;padding:8px 0;border-bottom:1px solid #eaded6;margin:0}.cancel-list small{display:block;color:#958378;margin-top:5px}

/* Teacher workspace: a quiet calendar first, with personal records on separate pages. */
.teacher-shell .page-heading{margin-bottom:20px}.teacher-shell .sidebar .side-note{display:none}.teacher-shell .demo-banner{margin-bottom:18px}.teacher-shell .eyebrow{font-size:9px}.teacher-shell h1{font-size:27px}.teacher-shell .subtitle{margin-top:8px}.teaching-summary{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin:0 0 16px;color:#7b8b7d;font-size:12px}.teaching-summary strong{font-size:17px;color:#365847;font-weight:600;margin:0 3px}.teaching-summary button{margin-left:auto;border:0;background:transparent;color:#476c53;font-size:11px;padding:5px}.teacher-week-panel{overflow:hidden}.teacher-week-panel .toolbar{gap:12px}.teacher-week-panel .filters input{width:145px}.teacher-morning-control{display:flex;align-items:center;gap:16px;padding:9px 18px;border-bottom:1px solid var(--line);background:#fafbf8}.teacher-morning-control button{padding:6px 9px;font-size:10px}.teacher-morning-control>span{font-size:10px;color:#8b9788}.teacher-week-scroll{max-height:65vh;min-height:380px;overflow:auto;position:relative;overscroll-behavior:contain}.teacher-week-grid{min-width:950px}.week-grid-head,.week-grid-body{display:grid;grid-template-columns:64px repeat(7,minmax(0,1fr))}.week-grid-head{position:sticky;top:0;z-index:5;background:white;border-bottom:1px solid var(--line);height:64px}.week-time-heading{display:flex;align-items:center;justify-content:center;font-size:11px;color:#98a191;background:#fff;position:sticky;left:0;z-index:6}.week-day-heading{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;border-left:1px solid var(--line);font-size:11px}.week-day-heading span{font-size:10px;color:#8c9986}.week-day-heading.is-today{background:#eff5e9;color:#436d3d}.week-grid-body{position:relative}.week-time-axis{position:sticky;left:0;z-index:4;background:white}.week-time-axis span{position:absolute;left:0;width:100%;padding:0 10px 0 0;text-align:right;color:#8a9886;font-size:10px;transform:translateY(-50%)}.week-time-axis span:first-child{transform:translateY(6px)}.week-day-column{position:relative;border-left:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 23px,#f1f3ee 23px,#f1f3ee 24px),repeating-linear-gradient(to bottom,transparent 0,transparent 95px,#e3e9de 95px,#e3e9de 96px)}.week-day-column.is-today{background-color:#fcfdf9}.week-free{position:absolute;left:0;right:0;background:#eaf3e443;pointer-events:none}.week-morning-mask{position:absolute;top:0;left:0;right:0;background:#f6f7f4;z-index:1;border-bottom:1px dashed #dce2d5;display:flex;justify-content:center;align-items:flex-start;padding-top:18px;color:#a1aa99;font-size:10px}.week-lesson{position:absolute;z-index:2;padding:7px 6px;border:0;border-left:3px solid #87a676;border-radius:5px;background:#edf3e8;color:#4c6a42;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;overflow:hidden;box-shadow:0 2px 3px #364c2c08}.week-lesson span{font-size:10px;white-space:nowrap}.week-lesson strong{font-size:12px;line-height:1.2}.week-lesson small{font-size:9px;line-height:1.4;color:inherit;opacity:.8}.week-lesson:hover{background:#e0edd7;border-color:#648651}.week-lesson.completed{background:#586f60;color:white;border-color:#586f60}.week-lesson.absent{background:#f7e8e2;color:#986f5f;border-color:#c19483}.week-lesson.blue{border-left-color:#83a3c2;background:#edf3f8;color:#526f88}.week-lesson.blue.completed{background:#5c7484;color:white}.week-lesson.purple{border-left-color:#b099c3;background:#f1edf6;color:#826b96}.week-lesson.purple.completed{background:#796d85;color:white}.week-lesson.orange{border-left-color:#c4a46e;background:#faf2e7;color:#9a7d4d}.week-lesson.orange.completed{background:#897452;color:white}.teacher-week-changes{padding:16px 20px;background:#fafbf8;border-top:1px solid var(--line);font-size:11px;color:#849078}.teacher-week-changes>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.teacher-week-changes button{font-size:10px;padding:7px 9px;border-style:dashed}.institution-calendar{width:100%;min-width:1100px}.institution-calendar .teacher-cell{font-weight:normal}.institution-calendar .teacher-cell small{display:block;font-size:10px;margin-top:8px}.institution-free{font-size:9px;line-height:1.6;color:#8b9d7d;padding:5px 0}.teacher-shell .teacher-tabs{display:none}.teacher-shell .footer-note{font-size:9px}
@media(max-width:760px){.teacher-shell .brand{padding-bottom:9px}.teacher-shell .workspace{padding:16px 12px}.teacher-shell h1{font-size:23px}.teacher-shell .page-heading{margin-bottom:16px}.teaching-summary{gap:14px;font-size:11px}.teaching-summary strong{font-size:15px}.teaching-summary button{font-size:10px}.teacher-morning-control{flex-wrap:wrap;gap:7px;padding:8px 12px}.teacher-week-scroll{max-height:65vh}.teacher-week-grid{min-width:900px}.teacher-week-panel .panel-header{padding:15px}.teacher-week-panel .panel-header h2{font-size:14px}.teacher-week-panel .panel-header .tag{font-size:8px}.teacher-shell .nav button{padding:9px 10px}.teacher-week-panel .toolbar{padding:10px}.teacher-week-panel .filters{gap:7px}}
.teacher-shell .topbar{height:60px}.teacher-shell .workspace{padding-top:18px}.teacher-shell .demo-banner{margin-bottom:13px;padding:8px 12px}.teacher-shell .page-heading .eyebrow{display:none}.teacher-shell .page-heading{margin-bottom:15px}.teacher-shell .page-heading .subtitle{margin-top:5px}.teacher-week-panel .panel-header{padding:14px 18px}.teacher-week-panel .toolbar{padding:12px 18px}.teacher-week-scroll{max-height:none;min-height:0}.week-lesson.leave,.week-lesson.cancelled,.week-lesson.rescheduled{background:#f1f2ee;color:#89917f;border-left-color:#b8bfaf;border-left-style:dashed}.week-lesson.cancelled strong{text-decoration:line-through}
@media(max-width:760px){.teacher-shell .topbar{height:48px}.teacher-shell .page-heading{margin-bottom:12px}.teacher-shell .demo-banner{margin-bottom:12px}.teacher-week-scroll{max-height:65vh;min-height:320px}}
.teacher-week-scroll{max-height:65vh;min-height:380px}.teacher-morning-control button[data-action=weekend-morning]{margin-left:auto;background:transparent;border-color:transparent;color:#7c9170}
@media(max-width:760px){.teacher-week-scroll{min-height:320px}.teacher-morning-control{gap:6px}.teacher-morning-control>span{font-size:9px}.teacher-morning-control button[data-action=weekend-morning]{margin-left:0;padding:3px 6px}}
.week-time-axis span{transform:translateY(4px)}
@media(min-width:761px){.teacher-week-scroll{height:560px;max-height:560px;min-height:0}}

/* Teacher calendars stay in a roomy seven-day grid; teachers do not need the daily timeline toggle. */
.teacher-shell .workspace{max-width:none;width:100%;padding-left:clamp(22px,3vw,56px);padding-right:clamp(22px,3vw,56px)}
.teacher-shell .teacher-week-panel{width:100%}
.teacher-shell .teacher-week-scroll{height:min(76vh,960px);max-height:none;min-height:680px}
.teacher-shell .teacher-week-grid{min-width:1200px;width:100%}
.teacher-shell .week-grid-head,.teacher-shell .week-grid-body{grid-template-columns:72px repeat(7,minmax(150px,1fr))}
.teacher-shell .week-day-heading{font-size:13px}
.teacher-shell .week-day-heading span{font-size:11px}
.teacher-shell .week-lesson{padding:9px 8px;gap:7px}
.teacher-shell .week-lesson strong{font-size:13px}
.teacher-shell .week-lesson small{font-size:10px}
@media(max-width:760px){.teacher-shell .workspace{padding-left:12px;padding-right:12px}.teacher-shell .teacher-week-scroll{height:70vh;max-height:70vh;min-height:420px}.teacher-shell .teacher-week-grid{min-width:1120px}.teacher-shell .week-grid-head,.teacher-shell .week-grid-body{grid-template-columns:64px repeat(7,minmax(150px,1fr))}}

/* Enrollment counts and the retained student roster. */
.student-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 24px}.student-overview .metric{min-width:0;padding:18px 20px}.student-overview .metric-value{font-size:29px}.student-stats-foot{grid-column:1/-1;color:var(--muted,#829078);font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.student-stats-foot button{white-space:nowrap}.student-roster .toolbar{flex-wrap:wrap}.student-roster .view-toggle{flex-wrap:wrap}.roster-note{padding:0 24px;color:var(--muted,#829078);font-size:13px;line-height:1.7}.student-profile{align-items:flex-start;gap:14px;flex-direction:column}.student-profile small{display:block;font-size:12px;margin-top:10px;color:var(--muted,#829078)}.student-actions{display:flex;flex-wrap:wrap;gap:8px}.study-status{display:inline-block;margin-left:10px;padding:3px 7px;border-radius:5px;background:#eef3e9;color:#607c4c;font-size:11px}.study-status.stopped{background:#f2eeeb;color:#8e7361}.study-status.trial{background:#eef1f5;color:#75839a}.danger-text{color:#a26555}.student-roster input{max-width:200px}.student-roster label{font-size:13px;color:#6f7c66}.student-roster .student-grid{padding-top:12px}
@media(max-width:760px){.student-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.student-overview .metric{padding:14px}.student-overview .metric-label{font-size:12px}.student-overview .metric-note{line-height:1.5;min-height:34px}.student-stats-foot{align-items:flex-start;line-height:1.6}.student-roster .toolbar{padding:16px}.roster-note{padding:0 16px}}

.student-roster input,.student-roster select{border:1px solid #dce3d6;border-radius:8px;padding:9px 12px;background:#fff;color:#44513b;font:inherit;font-size:13px}.student-roster .view-toggle{max-width:100%}
.student-roster .view-toggle[hidden]{display:none}
.student-profile small{overflow-wrap:anywhere}


/* Completed teaching records, separate from parent course-package deductions. */
.metric-detail{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:15px;padding:9px 0 0;border:0;border-top:1px solid #e5eadd;border-radius:0;background:transparent;color:#597a48;font-size:11px;text-align:left}.metric-detail .icon{width:15px;height:15px}.month-comparison{margin-top:10px;display:flex;flex-direction:column;gap:4px}.month-comparison strong{font-size:14px;font-weight:600;color:#537648}.month-comparison.down strong{color:#9a7256}.month-comparison.none strong{font-size:11px;color:#829078}.month-comparison span{font-size:10px;line-height:1.5}.completion-report .dialog-body{padding-top:16px}.completion-tabs{display:flex;gap:8px;margin-bottom:16px}.completion-tabs button{padding:7px 24px}.completion-tabs .selected{background:#eaf1e4;border-color:#91a77d;color:#4e6d3d}.completion-totals{display:flex;flex-wrap:wrap;gap:12px 22px;padding:18px;background:#f2f6ec;border-radius:10px;color:#758768;font-size:12px}.completion-totals strong{font-size:21px;color:#49623c}.completion-totals small{flex-basis:100%;font-size:11px}.completion-tools{display:flex;gap:10px;align-items:center;margin-top:18px}.completion-tools input{min-width:0;flex:1;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font:inherit;font-size:12px}.completion-tools button{font-size:11px;white-space:nowrap}.completion-student{border:1px solid var(--line);border-radius:9px;margin:10px 0;overflow:hidden}.completion-student summary{padding:15px;cursor:pointer;font-size:14px;color:#4b6340}.completion-student summary span{font-weight:600}.completion-student summary small{float:right;font-size:12px;color:#7c8e70;padding-top:2px}.completion-student[open] summary{background:#fafbf7;border-bottom:1px solid var(--line)}.completion-lessons{padding:0 15px}.completion-lesson{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #edf0e8;font-size:12px}.completion-lesson:last-child{border-bottom:0}.completion-lesson>div{display:flex;flex-direction:column;gap:6px}.completion-lesson strong{font-weight:500}.completion-lesson span,.completion-lesson small{color:#88947c;font-size:11px}.completion-lesson b{font-weight:500;white-space:nowrap;color:#597649}.completion-lesson .trial-label{color:#997644}.completion-report .help{line-height:1.8}.completion-report .empty{padding:24px 12px}
@media(max-width:760px){.completion-totals{gap:10px 16px;padding:14px}.completion-totals strong{font-size:18px}.completion-tools{gap:7px}.completion-tools button{padding:9px 7px}.completion-report .dialog-body{padding:16px}}
.teaching-metrics .metric{display:flex;flex-direction:column;min-width:0}.teaching-metrics .metric-note{line-height:1.6;margin-bottom:12px}.teaching-metrics .metric-detail{margin-top:auto}.completion-report .dialog-head{position:sticky;top:0;background:#fff;z-index:2}.completion-report .dialog-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line)}

/* A student's teaching record and independent course packages. */
#editor:has(.student-dossier){width:920px;max-width:calc(100vw - 32px)}
.student-detail-link{margin-top:14px;color:#557649;background:#f3f6ef;border-color:#dfe7d7}
.dossier-eyebrow{font-size:10px;letter-spacing:1.5px;color:#8b9a7e;display:block;margin-bottom:10px}
.student-dossier .dialog-head{background:#fbfcf8}.student-dossier h2{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.dossier-section{margin-top:22px}.dossier-section .section-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.dossier-section h3{font-size:15px}.dossier-section h3 small{font-size:12px;font-weight:400;color:#839179;margin-left:8px}
.dossier-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 20px;padding:22px;background:#f7f8f4;border-radius:10px}.dossier-fields dt{font-size:11px;color:#8b947f;margin-bottom:8px}.dossier-fields dd{font-size:13px;margin:0;overflow-wrap:anywhere;line-height:1.6}
.dossier-note{white-space:pre-wrap;line-height:1.8;font-size:12px;color:#728365;padding:0 8px}
.package-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.package-card{padding:22px;border:1px solid #dce5d5;border-radius:10px;background:#fff}.package-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.package-title strong{font-size:15px;overflow-wrap:anywhere}.package-title span{font-size:11px;white-space:nowrap;background:#f1f5eb;border-radius:5px;padding:4px 7px;color:#6b815c}.package-card>p{font-size:12px;color:#89957f;line-height:1.7}.package-balance{display:flex;justify-content:space-between;align-items:baseline;margin:20px 0 12px;gap:12px}.package-balance strong{font-size:32px;font-weight:500;color:#52733f}.package-balance small{font-size:12px;color:#7c8e6d}.package-balance span{font-size:11px;color:#7e8a73}.package-card progress{appearance:none;width:100%;height:5px;border:0;border-radius:5px;overflow:hidden}.package-card progress::-webkit-progress-bar{background:#eff2e9}.package-card progress::-webkit-progress-value{background:#96ad81}.package-card progress::-moz-progress-bar{background:#96ad81}.package-card .student-actions{margin-top:18px}.package-card .student-actions button{font-size:11px;padding:8px 12px}
.dossier-paging{display:flex;gap:14px;justify-content:flex-end;align-items:center;margin-top:20px;font-size:12px;color:#809172}.student-dossier .data-table{min-width:670px}.student-dossier .data-table td{font-size:12px}.student-dossier .data-table td button{background:transparent;border:0;padding:0;text-align:left;font-size:12px;color:#527642}.student-dossier .help{line-height:1.8}#lesson-package-help{line-height:1.7;font-size:11px;color:#87977b}
@media(max-width:650px){.dossier-fields{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}.package-grid{grid-template-columns:1fr}.package-card{padding:16px}.student-dossier .dialog-body{padding:16px}.student-dossier .completion-tabs{gap:6px}.student-dossier .completion-tabs button{padding:8px 12px}}

.student-dossier .dialog-head{position:sticky;top:0;z-index:2}.student-dossier .dialog-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line)}
.tuition-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.tuition-summary>div{padding:22px;background:#eef3e8;border-radius:12px}.tuition-summary span{display:block;font-size:12px;color:#809172}.tuition-summary strong{display:block;font-size:26px;margin-top:12px;font-weight:500}.tuition-lines{font-size:12px;line-height:2}.tuition-lines>div{display:flex;justify-content:space-between;gap:12px}.tuition-lines dt{color:#8b997d}.tuition-lines dd{margin:0}.receipt-card{border:1px solid var(--line);border-radius:12px;padding:22px;margin-bottom:14px}.receipt-card .section-top{align-items:start}.receipt-card .section-top p{font-size:12px;color:#829373}.receipt-amount{text-align:right}.receipt-amount strong{font-size:23px;font-weight:500}.receipt-amount small{display:block;color:#879b78;font-size:11px;margin-top:6px}.receipt-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:12px;margin-top:16px;font-size:11px;color:#8b997e;flex-wrap:wrap}.receipt-meta button{background:transparent;border:0;color:#987b63;font-size:11px}.receipt-card.voided{background:#f7f8f5}.receipt-card.voided .receipt-amount strong{text-decoration:line-through;color:#98a18f}#package-form h3{font-size:14px;font-weight:500;margin:26px 0 16px}#package-form .dialog-head,#package-form .dialog-footer{position:sticky;z-index:2;background:white}#package-form .dialog-head{top:0}#package-form .dialog-footer{bottom:0}.student-actions{flex-wrap:wrap}

/* Muted mineral palette: warm paper, slate, sage and soft plum. */
:root{color:#343e43;background:#f6f5f2;--muted:#6f7679;--line:#e3e2dd;--blue:#536b7b;--blue-soft:#edf1f3;--purple:#786c82;--purple-soft:#f1edf3;--teal:#537875;--teal-soft:#edf2f0;--orange:#877052;--orange-soft:#f4efe6;--success:#586f60;--success-soft:#edf2ed;--rose:#956b73;--rose-soft:#f5edef;--accent:var(--blue);--accent-soft:var(--blue-soft)}
.shell[data-page=profiles]{--accent:var(--purple);--accent-soft:var(--purple-soft)}.shell[data-page=availability]{--accent:var(--teal);--accent-soft:var(--teal-soft)}.shell[data-page=stats]{--accent:var(--success);--accent-soft:var(--success-soft)}.shell[data-page=tuition]{--accent:var(--orange);--accent-soft:var(--orange-soft)}.shell[data-page=logs]{--accent:#717878;--accent-soft:#f0f1ef}
.sidebar{background:#f0efeb;border-color:#e3e2dd}.topbar{background:#fff}.brandmark{background:#40565b}.brand strong{color:#3e5056}.brand small,.nav-label,.side-foot{color:#767d7d}.side-note{background:#f7f6f3;border-color:#e0dfd9;color:#737b7e}.side-note strong{color:#596b73}.crumb span,.campus,.identity select{color:#626e73}.avatar{background:#e7eceb;color:#5c7178}.nav button{--nav:#536b7b;--nav-bg:#edf1f3;color:#657075;border-left:3px solid transparent;border-radius:8px;padding-left:12px}.nav button[data-page=profiles]{--nav:var(--purple);--nav-bg:var(--purple-soft)}.nav button[data-page=availability]{--nav:var(--teal);--nav-bg:var(--teal-soft)}.nav button[data-page=stats]{--nav:var(--success);--nav-bg:var(--success-soft)}.nav button[data-page=tuition]{--nav:var(--orange);--nav-bg:var(--orange-soft)}.nav button[data-page=logs]{--nav:#717878;--nav-bg:#f0f1ef}.nav button .icon{color:var(--nav)}.nav button:hover{background:var(--nav-bg)}.nav button.active{background:var(--nav-bg);color:var(--nav);border-left-color:var(--nav);font-weight:600}
.page-heading .eyebrow{color:var(--accent)}h1{color:#343e43}h1 .heading-dot{background:var(--accent)}.subtitle,.help,.metric-note,.footer-note,.chart-sub,.roster-note,.student-stats-foot{color:#6f7679}.demo-banner{background:#f1eee6;border-color:#e5ded0;color:#827761}.sync{color:#586f60}.panel-header{background:var(--accent-soft,#f5f8fc)}.panel-header h2{color:var(--accent,#536b7b)}.shell button.primary{background:var(--accent);border-color:var(--accent);color:white}.shell button.primary:hover{filter:brightness(.93)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9eafb7;outline-offset:2px}button:hover{background:#f0f2f2;border-color:#b8c3c6}
.metric{--metric-color:var(--blue);--metric-bg:var(--blue-soft);border-color:#e1e3e1;border-top:3px solid var(--metric-color);background:linear-gradient(120deg,var(--metric-bg),#fff 85%)}.metric:nth-child(2){--metric-color:var(--success);--metric-bg:var(--success-soft)}.metric:nth-child(3){--metric-color:var(--teal);--metric-bg:var(--teal-soft)}.metric:nth-child(4){--metric-color:var(--purple);--metric-bg:var(--purple-soft)}.metric-label{color:#677176}.metric-label .icon,.metric-value{color:var(--metric-color)}.metric-value small{color:#717a7d}
/* Student metrics are paired by current status, school totals, then annual change. */
.student-overview .metric:nth-child(-n+2){--metric-color:#536b7b;--metric-bg:#eef3f5;--metric-edge:#a9bbc6;--metric-line:#d6e0e5}
.student-overview .metric:nth-child(n+3):nth-child(-n+4){--metric-color:#70677a;--metric-bg:#f2eff4;--metric-edge:#c0b5c9;--metric-line:#e0d9e5}
.student-overview .metric:nth-child(n+5):nth-child(-n+8){--metric-color:#766b5b;--metric-bg:#f3f0eb;--metric-edge:#c9bdab;--metric-line:#e3dcd1}
.student-overview .metric{background:var(--metric-bg);border:1px solid var(--metric-line);border-top:2px solid var(--metric-edge);border-radius:10px;box-shadow:none}
.student-overview .metric-label{color:#555d64}
.student-overview .metric-value{font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.student-overview .metric-value small,.student-overview .metric-note{color:#687078}
.shell[data-page=tuition] .metric:first-child{--metric-color:var(--orange);--metric-bg:var(--orange-soft)}.shell[data-page=tuition] .metric:nth-child(3){--metric-color:var(--purple);--metric-bg:var(--purple-soft)}
.view-toggle{background:#eeefec}.view-toggle button{color:#6f7679}.view-toggle button.active{background:var(--accent,#536b7b);color:#fff;box-shadow:none}.teacher-tabs button.active{background:var(--blue-soft);border-color:#adbdc5;color:var(--blue)}.student-roster .view-toggle button[data-filter=active].active{background:var(--success)}.student-roster .view-toggle button[data-filter=stopped].active{background:var(--rose)}.student-roster .view-toggle button[data-filter=trial].active{background:var(--orange)}.student-roster .view-toggle button[data-filter=all].active{background:var(--purple)}.study-status.active{color:#526d5c;background:#eaf0e9}.study-status.stopped{color:#89636b;background:#f3e9ec}.study-status.trial{color:#876f4d;background:#f3ecde}.student-profile{border-left:3px solid #b5a8bf}.student-profile strong,.student-detail-link{color:#75677d}.student-profile small{color:#747b80}
.morning-toggle,.teacher-morning-control{background:#f0f2f1}.morning-toggle button,.teacher-morning-control button{background:#fff;border-color:#cfd8db;color:#566f7d}.morning-toggle span,.morning-toggle small,.teacher-morning-control>span{color:#778287}.time-rules{background:#fafaf7;color:#778287}.time-rules strong,.time-tick.hour{color:#62767e}.timeline-track{background-color:#f8f8f5;background-image:repeating-linear-gradient(to right,#e4e6e1 0,#e4e6e1 1px,transparent 1px,transparent calc(100% / var(--tick-count,43)))}.timeline-label{color:#738186}.timeline-label strong{color:#52676f}.time-example{background:#eff2f1;border-color:#dce2df}.time-example strong{color:#5b717c}.time-example p,.timeline-legend{color:#758084}.timeline-folded{background:#f0f2f2}.week-day-heading.is-today,.calendar th.today{background:#edf1f3;color:#536b7b}.calendar th.today strong{background:#536b7b}.week-morning-mask{background:#f6f5f2;color:#7b8588;border-color:#e0e3df}.week-time-axis span,.week-day-heading span{color:#7a8589}
button[data-action=complete],.lesson-actions button[data-action=complete]{background:#586f60;border-color:#586f60;color:#fff}button[data-action=reschedule]{background:#f5efe4;border-color:#ddd0b9;color:#8a7250}button[data-action=edit-lesson],button[data-action=package-book]{background:#edf1f3;border-color:#ccd8df;color:#536b7b}button[data-action=cancel-dialog],button[data-action=stop-student],button.danger,.danger-text{background:#f5edef;border-color:#e1cdd1;color:#946874}button[data-action=resume-student],button[data-action=enroll-student]{background:#edf2ed;border-color:#ccd9cb;color:#587361}button[data-action=receipt-form],button[data-action=package-form]{background:#f4efe6;border-color:#dfd2bf;color:#88704e}button[data-action=student-profile],button[data-action=teacher-profile]{background:#f1edf3;border-color:#ddd3e1;color:#786c82}.cancel-preview{background:#f6eef0;color:#916c78;border-color:#e5d2d8}
.notice{background:#f0f2f2;color:#6f8086;border-color:#dce2e3}.form-field,.form-field input,.form-field select,.form-field textarea{color:#5f7077}.form-field input,.form-field select,.form-field textarea{border-color:#d8dfde}.dialog-head p{color:#758184}dialog{color:#343e43;border-color:#dddfdc}dialog::backdrop{background:#29353257}#editor:has(#lesson-form) .dialog-head{background:#edf1f3}#editor:has(#student-profile-form,#register-student-form,#teacher-profile-form) .dialog-head{background:#f1edf3}#editor:has(#availability-form) .dialog-head{background:#edf2f0}#editor:has(#package-form,#receipt-form) .dialog-head{background:#f4efe6}#editor:has(#cancel-form,#void-receipt-form) .dialog-head{background:#f5edef}dialog button.primary{background:#536b7b;border-color:#536b7b;color:#fff}#package-form button.primary,#receipt-form button.primary{background:#877052;border-color:#877052}#void-receipt-form button.primary{background:#956b73;border-color:#956b73}
.student-dossier .dialog-head{background:#f4f1f5}.student-dossier .dialog-head h2{color:#75677d}.dossier-fields{background:#f7f4f7;border-color:#e4dce7}.dossier-fields dt{color:#80718a}.dossier-fields dd{color:#49464f}.dossier-note{background:#f8f5f8;color:#796c83}.completion-tabs{flex-wrap:wrap}.completion-tabs button{--tab-color:#536b7b;--tab-bg:#edf1f3;color:var(--tab-color);background:var(--tab-bg);border-color:transparent}.completion-tabs button[data-tab=overview]{--tab-color:#786c82;--tab-bg:#f1edf3}.completion-tabs button[data-tab=completed],.completion-tabs button[data-tab=consumption]{--tab-color:#586f60;--tab-bg:#edf2ed}.completion-tabs button[data-tab=tuition],.completion-tabs button[data-tab=receipts]{--tab-color:#877052;--tab-bg:#f4efe6}.completion-tabs button.selected{background:var(--tab-color);border-color:var(--tab-color);color:#fff;box-shadow:0 2px 5px #25344a12}.package-card{border-color:#e4ddd1;border-top:3px solid #b4a080;background:linear-gradient(135deg,#faf8f3,white 55%)}.package-title span{background:#f1eade;color:#857253}.package-card>p{color:#7b7267}.package-balance strong{color:#877352}.package-balance small,.package-balance span{color:#726b60}.package-card progress::-webkit-progress-value{background:#af9b79}.package-card progress::-webkit-progress-bar{background:#ede8dd}.package-card progress::-moz-progress-bar{background:#af9b79}.tuition-summary>div:first-child{background:#edf2ed;color:#586f60}.tuition-summary>div:nth-child(2){background:#f4efe6;color:#877052}.tuition-summary span{color:#747b7c}.receipt-card{border-left:3px solid #9aac9c}.receipt-card.voided{border-left-color:#b9a2a8;background:#faf6f7}.receipt-card .receipt-amount strong{color:#586f60}.receipt-card.voided .receipt-amount strong{color:#967480}.receipt-meta,.receipt-amount small{color:#737b7e}.tuition-lines dt{color:#766d60}.data-table th,.availability-table th{background:#f5f5f1;color:#6e7d82}.bar{background:#becbd0}.bar.peak{background:#778f9a}.period-pill{background:#edf2f0;color:#5c7979}.metric-detail{color:#536b7b;border-top-color:#dce2e3}.completion-totals{background:#edf2ed;color:#687e70}.completion-totals strong{color:#586f60}.form-error{color:#966776}.unit-rule-note{color:#748187;background:#f0f2f0}
@media(max-width:760px){.nav button{border-left:0;border-bottom:3px solid transparent}.nav button.active{border-left:0;border-bottom-color:var(--nav)}.tuition-summary strong{font-size:22px}.student-dossier .completion-tabs button{flex:1;padding:8px 10px;white-space:nowrap}.receipt-card{padding:16px}.tuition-lines>div{gap:8px}.tuition-summary>div{padding:16px}}

/* Quiet surfaces keep colour for grouping and meaningful actions. */
.topbar{background:#fcfcf9;border-color:#e3e2dd}
.panel,.aside-card,.metric{box-shadow:0 2px 8px #303b3503}
.panel-header{background:#fafaf7}.panel-header h2{color:#536367}
.metric{border-top-width:2px;border-top-color:color-mix(in srgb,var(--metric-color) 50%,white);background:linear-gradient(120deg,var(--metric-bg),#fdfdfb 90%)}
.student-overview .metric{background:var(--metric-bg);border-top-color:var(--metric-edge);box-shadow:none}
.brandmark{box-shadow:0 3px 9px #354c4b0d}.brand strong{letter-spacing:3px}
.nav button.active{box-shadow:inset 0 0 0 1px #5268710b}
.shell button.primary,dialog button.primary{box-shadow:0 2px 5px #364c4e0e}
.shell .primary:hover,dialog .primary:hover{filter:brightness(.94)}
.timeline-label .avatar,.teacher-cell .avatar{background:#e9ece7;color:#66745e}
.blue .timeline-label .avatar,.blue .teacher-cell .avatar{background:#e9eef1;color:#637c8b}
.orange .timeline-label .avatar,.orange .teacher-cell .avatar{background:#f0ebe1;color:#897652}
.purple .timeline-label .avatar,.purple .teacher-cell .avatar{background:#eeebf1;color:#7f6e8d}
.calendar .lesson{background:#e9eee6;color:#62755d}.calendar .blue .lesson{background:#eaf0f3;color:#687f8c}.calendar .orange .lesson{background:#f2ecdf;color:#8b7858}.calendar .purple .lesson{background:#eeebf2;color:#80718c}
.calendar .lesson.completed{background:#586f60;color:#fff}.calendar .blue .lesson.completed{background:#5c7484}.calendar .orange .lesson.completed{background:#897452}.calendar .purple .lesson.completed{background:#796d85}

/* Renewal reminders take precedence over teacher colours on pending lessons. */
.timeline-row .timeline-lesson.low-balance,.calendar .lesson.low-balance,.week-lesson.low-balance{background:#f5e5e8;border-color:#c4939e;color:#844b5b}
.timeline-row .timeline-lesson.low-balance small,.calendar .lesson.low-balance small,.week-lesson.low-balance small{color:#844b5b;font-weight:600}
.swatch.low-balance,.legend .swatch.low-balance{background:#eac5ce;border:1px solid #c4939e}
.balance-label{font-weight:600;color:#844b5b}.notice.balance-notice{background:#f7ecef;border-color:#e2c8d0;color:#844b5b}
.student-roster .view-toggle button[data-filter=lowBalance]{color:#946874}
.student-roster .view-toggle button[data-filter=lowBalance].active{background:#946874;color:white}
.student-profile.low-balance-profile{border-left-color:#c4939e}
.package-alert{background:#f7ecef;border:1px solid #e2c8d0;border-radius:7px;padding:12px 14px;margin:12px 0;color:#844b5b;font-size:12px;line-height:1.6}
.student-profile .package-alert strong{font-size:12px;color:#844b5b}.package-alert span{display:block;font-size:11px;margin-top:3px;color:#886572}
.package-alert button{border:0;background:transparent;padding:5px 0 0;color:#844b5b;font-size:11px}

.data-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:8px 0 18px}.data-section-heading h2{margin:0;font-size:19px;font-weight:600;color:#536367}.data-section-heading label{font-size:13px;color:#6e7d82}.data-section-heading select{margin-left:8px}

.teacher-permission{display:flex;flex-direction:column;gap:9px;margin-top:14px;padding-top:14px;border-top:1px solid #e3e2dd}.teacher-permission small{color:#69787f}.teacher-permission button{color:#536b7b}

.teacher-shell[data-page="stats"] .teacher-tabs{display:flex}

/* Birthday reminders stay visible without requiring a scheduled class. */
.birthday-reminder{margin:0 0 16px;padding:13px 18px;border:1px solid #ddd7e5;border-radius:12px;background:#f5f2f7;color:#655c70}.birthday-heading{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px}.birthday-heading>span{font-size:12px;color:#817889}.birthday-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.birthday-person{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;background:#fffdfd;border-color:#e5dfe8;font-size:12px;color:#655c70}.birthday-person span{font-size:11px}.birthday-person b{font-size:10px;font-weight:500}.birthday-person.birthday-today{background:#eee5ee;border-color:#bd9fb5;color:#805d75}.birthday-roster-date{margin:10px 0 0;color:#805d75;font-size:13px;font-weight:600}

.payment-note{grid-column:1/-1}.payment-note textarea{width:100%;min-height:84px;resize:vertical}

.receipt-fields [hidden]{display:none!important}
.actual-receipt output{display:block;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:#f3f5f5;color:#405963;font-size:18px;font-weight:600}
.payment-method small{font-size:12px;color:var(--muted);line-height:1.5}

.reconciliation-field{display:flex;flex-direction:column;gap:8px;margin-top:8px;font-size:12px}
.receipt-actions{display:flex;flex-wrap:wrap;gap:8px}
.teaching-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.teaching-overview-card{min-width:0;min-height:110px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:15px 18px;border:1px solid #d8e1e5;border-radius:12px;background:#eef2f4;color:#536b7b;text-align:left}
.teaching-overview-card:nth-child(2){background:#f3f0f5;border-color:#ddd7e5;color:#6e637a}
.teaching-overview-card:hover{background:#e8eef1;border-color:#a8bdc8}.teaching-overview-card:nth-child(2):hover{background:#ece7f0;border-color:#b7a9c3}
.overview-label{font-size:13px;font-weight:600}.overview-value{font-size:27px;font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums}.overview-value small{font-size:12px;font-weight:400;margin-left:6px}.overview-note{font-size:11px;line-height:1.5;opacity:.85}.overview-note>span{margin-left:4px}
.schedule-reminders+.birthday-reminder{min-height:110px;display:flex;flex-direction:column;justify-content:center}
.birthday-reminder{min-height:110px;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}
.management-tasks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.management-task{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px;border-radius:12px;background:#eef2f4;color:#536b7b;border-color:#d8e1e5;text-align:left}.management-task:nth-child(even){background:#f3f0f5;color:#6e637a;border-color:#ddd7e5}.management-task strong{font-size:30px;font-weight:600}.management-task strong small{font-size:13px;font-weight:400;margin-left:5px}.management-task>small{font-size:11px;line-height:1.5}.data-center-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.data-center-nav button{font-size:12px}#data-finance{margin:28px 0}#data-students,#data-finance,#data-purchases,#data-teaching{scroll-margin-top:20px}.finance-details{margin:20px 0}.finance-details>summary{font-weight:600;cursor:pointer;padding:16px;border:1px solid #dce3e6;border-radius:10px;background:#f6f8f9}.finance-details>.panel{margin-top:12px}.register-tabs{flex-wrap:wrap;margin-bottom:18px}.register-tools{flex-wrap:wrap;gap:12px}.register-tools label{display:flex;align-items:center;gap:8px}.teaching-register td{vertical-align:top}.teaching-register button{white-space:nowrap}
@media(max-width:700px){.management-tasks{grid-template-columns:repeat(2,minmax(0,1fr))}.management-task{padding:16px}.register-tools{align-items:stretch}.register-tools label{flex:1 1 180px}}
@media(max-width:600px){.teaching-overview-grid{gap:10px}.teaching-overview-card{padding:14px 12px}.overview-value{font-size:25px}.overview-note{font-size:10px}}
.purchase-report{margin-bottom:28px}.purchase-body{padding:20px}.purchase-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.purchase-metrics .metric{padding:16px;min-width:0;border:1px solid #dce3e6;background:#f6f8f9}.purchase-metrics .metric-value{font-size:27px}.purchase-metrics .metric-label{font-size:13px}.purchase-student-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid #e4e8e9}.purchase-student-row p{font-size:13px;margin:8px 0;color:#62717a}.purchase-student-row small{font-size:12px;color:#778188;line-height:1.6}.purchase-student-row button{flex-shrink:0}.purchase-details{border-top:1px solid #e0e6e8;margin-top:16px;padding-top:14px}.purchase-details summary{cursor:pointer;font-size:14px;font-weight:600;padding:5px 0}.purchase-type-tabs{margin-top:0}.purchase-type-tabs button{flex:1}#renewal-source-field{margin-bottom:20px}#renewal-source-field[hidden]{display:none}@media(max-width:600px){.purchase-body{padding:14px}.purchase-student-row{align-items:flex-start}.purchase-metrics .metric{padding:12px}.purchase-metrics .metric-value{font-size:25px}}

.register-batch{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0;padding:16px;border:1px solid #d8e1e5;border-radius:12px;background:#eef2f4}.register-batch>div{display:flex;flex-wrap:wrap;gap:8px}.register-batch>small{width:100%;color:#63717a}.register-batch>strong{font-size:14px}.register-check input{width:20px;height:20px;cursor:pointer;accent-color:#536b7b}.teaching-register tr.register-selected{background:#edf3f5}.batch-lesson-list{max-height:36vh;overflow:auto}.batch-lesson-list>div{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid #e0e5e7}.batch-lesson-list small{width:100%;color:#63717a}

.purchase-period{display:flex;align-items:center;gap:12px;margin:14px 0}.purchase-period select{min-width:100px}.refund-detail-report .receipt-card strong{font-variant-numeric:tabular-nums}

/* Revenue is one decision card: pre-refund receipts, refunds and net revenue. */
.revenue-summary-card{margin:0 0 18px;border:1px solid #d9e2df;border-radius:12px;overflow:hidden;background:linear-gradient(130deg,#eef4f1,#fbfcfa 64%);box-shadow:0 2px 8px #303b3503}.revenue-summary-title{padding:18px 20px 15px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.revenue-summary-title>span{font-size:13px;color:#536b67;font-weight:600}.revenue-summary-title>strong{font-size:30px;letter-spacing:-1px;color:#315d52;font-weight:600}.revenue-summary-title>small{font-size:11px;color:#72817e}.revenue-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid #dfe7e3}.revenue-breakdown>div{padding:14px 20px;border-right:1px solid #dfe7e3;display:flex;flex-direction:column;gap:5px}.revenue-breakdown>div:last-child{border-right:0}.revenue-breakdown span{font-size:11px;color:#6f7d79}.revenue-breakdown strong{font-size:19px;color:#405d56;font-weight:600}.revenue-breakdown small{font-size:10px;color:#8b9692}.revenue-breakdown .is-refund strong{color:#9a6971}.revenue-summary-card .help{margin:0;padding:0 20px 14px}.owner-month-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-primary-row,.schedule-secondary-row{grid-template-columns:repeat(2,minmax(0,1fr))}.annual-student-change{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:-8px 0 24px}.annual-student-change .metric{background:#f8faf9}.refund-followup-card{display:grid;grid-template-columns:1.4fr 1fr;border:1px solid #eadfe2;border-radius:10px;overflow:hidden;background:#fcf8f9;margin:14px 0 18px}.refund-followup-card>div{padding:16px 18px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.refund-followup-card>div+div{border-left:1px solid #eadfe2;background:#fdfafa}.refund-followup-card span{font-size:12px;color:#8c6871}.refund-followup-card strong{font-size:25px;color:#91636d;font-weight:600}.refund-followup-card small{font-size:10px;color:#9c858a}.refund-followup-card .metric-detail{margin-top:5px}
@media(max-width:600px){.revenue-summary-title{padding:15px}.revenue-summary-title>strong{font-size:26px}.revenue-breakdown>div{padding:12px}.revenue-breakdown strong{font-size:16px}.refund-followup-card{grid-template-columns:1fr}.refund-followup-card>div+div{border-left:0;border-top:1px solid #eadfe2}.annual-student-change{grid-template-columns:1fr}.owner-month-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Management finance: muted comparison charts and current teaching balances. */
.business-overview{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr);gap:22px;margin:28px 0}.business-overview .panel{margin:0;min-width:0}.business-trend .panel-header,.revenue-composition .panel-header{align-items:flex-start}.business-overview h2{font-size:19px}.business-overview .panel-header .help{margin:8px 0 0}.chart-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#65716f}.chart-legend span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px}.cash-key:before,.trend-bar.cash{background:#596e7b}.consume-key:before,.trend-bar.consume{background:#728477}.trend-scroll{overflow-x:auto;padding:24px 20px 8px}.trend-plot{display:flex;gap:12px;min-width:510px}.trend-scale{width:90px;flex-shrink:0;height:200px;display:flex;flex-direction:column;justify-content:space-between;font-size:11px;color:#78827e;text-align:right}.trend-columns{display:flex;flex:1;gap:8px;background:repeating-linear-gradient(to top,transparent 0,transparent 99px,#e6e9e6 99px,#e6e9e6 100px);background-size:100% 200px;background-repeat:no-repeat}.trend-column{flex:1;text-align:center;min-width:22px;font-size:11px;color:#78827e}.trend-bars{height:200px;display:flex;align-items:flex-end;justify-content:center;gap:3px;margin-bottom:12px}.trend-bar{width:13px;max-width:40%;border-radius:3px 3px 0 0}.business-details{border-top:1px solid #e2e6e3;padding:18px 22px;margin-top:20px}.business-details summary{cursor:pointer;font-size:13px;color:#586e77;font-weight:600}.business-details .data-scroll{margin-top:16px}.revenue-chart{display:flex;align-items:center;justify-content:center;gap:24px;padding:28px 20px;flex-wrap:wrap}.revenue-donut{width:186px;height:186px;border-radius:50%;padding:18px;display:grid;place-items:center;flex-shrink:0}.revenue-donut>div{width:150px;height:150px;border-radius:50%;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}.revenue-donut small{font-size:11px;color:#78827e}.revenue-donut strong{font-size:19px;color:#4e626e}.revenue-legend{flex:1;min-width:200px;max-width:360px}.revenue-legend>div{display:flex;align-items:flex-start;gap:9px;padding:12px 0;border-bottom:1px solid #edf0ec;font-size:14px}.revenue-legend i{width:10px;height:10px;border-radius:3px;margin-top:5px;flex-shrink:0}.revenue-legend span{flex:1}.revenue-legend small{display:block;font-size:11px;font-weight:400;color:#78827e;margin-top:5px}.revenue-legend strong{text-align:right}.remaining-business{grid-column:1/-1}.balance-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:28px;gap:25px}.balance-metrics>div{border-right:1px solid #e2e6e3}.balance-metrics>div:last-child{border:0}.balance-metrics span{color:#6a7670;font-size:14px}.balance-metrics strong{display:block;font-size:32px;font-weight:600;color:#596e63;margin-top:14px}.balance-metrics small{font-size:15px;margin-left:8px;font-weight:400}.business-note{padding:0 28px 8px;margin:0}.business-details .help{max-width:860px;line-height:1.8}@media(max-width:1100px){.business-overview{grid-template-columns:1fr}.balance-metrics strong{font-size:26px}}@media(max-width:600px){.balance-metrics{grid-template-columns:1fr;padding:20px}.balance-metrics>div{border-right:0;border-bottom:1px solid #e2e6e3;padding-bottom:18px}.trend-scroll{padding:20px 12px}.business-overview .panel-header{flex-wrap:wrap;gap:16px}.business-note{padding:0 20px 8px}}
#data-business,#data-purchases,#data-students,#data-teaching{scroll-margin-top:20px}#data-business,#data-purchases,#data-students,#data-teaching{margin-top:32px}
@media(max-width:600px){.trend-plot{min-width:0;gap:8px}.trend-scale{width:62px;font-size:9px}.trend-columns{gap:3px}.trend-column{min-width:0;font-size:9px}.trend-bars{gap:1px}.trend-bar{width:7px;max-width:45%}}

/* Student roster: blue and berry purchase actions on warm, lightly tinted cards. */
.student-roster{--accent:#456e94;--accent-soft:#edf3f8;border-color:#e5dfe6}
.student-roster .panel-header{background:linear-gradient(110deg,#f0f5fa,#f7eef5 70%,#fcf4e9);border-bottom-color:#e6dfe7}
.student-roster .panel-header h2{color:#5b4e6b}
.student-roster .toolbar{background:#fdfbf9;border-bottom-color:#eee6e2;gap:14px}
.student-roster .view-toggle{background:#f4eeed;padding:4px;gap:4px;border-radius:10px}
.student-roster .view-toggle button[data-filter]{border-radius:7px;color:#766b77}
.student-roster .view-toggle button[data-filter=active]{color:#53786d}
.student-roster .view-toggle button[data-filter=lowBalance]{color:#a06748}
.student-roster .view-toggle button[data-filter=birthday]{color:#94628a}
.student-roster .view-toggle button[data-filter=stopped]{color:#a06070}
.student-roster .view-toggle button[data-filter].active{background:#5e7594;color:#fff;box-shadow:0 2px 5px #33465f14}
.student-roster .view-toggle button[data-filter=active].active{background:#52786b}
.student-roster .view-toggle button[data-filter=lowBalance].active{background:#9d6a46}
.student-roster .view-toggle button[data-filter=birthday].active{background:#916383}
.student-roster .view-toggle button[data-filter=stopped].active{background:#a06476}
.student-roster .view-toggle button[data-filter=all].active{background:#6e6c92}
.student-roster #student-search{background:#fff;border-color:#ded7e2;border-radius:9px}
.student-roster .roster-note{color:#857c82;font-size:12px}
.student-roster .student-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:16px;padding:16px 22px 24px;background:#fbf9f6}
.student-roster .student-profile{border:1px solid #e8dfdf;border-top:3px solid #c8b4ce;border-radius:13px;background:linear-gradient(135deg,#fbf7fc 0,#fffdf9 48%,#fff 100%);gap:17px;padding:21px;box-shadow:0 3px 12px #63516806}
.student-roster .student-profile.low-balance-profile{border-color:#e7cdbb;border-top-color:#c69673;background:linear-gradient(135deg,#fff4e9,#fffdf9 55%)}
.student-profile>div{min-width:0;max-width:100%}
.student-profile strong{color:#414057;font-size:15px;overflow-wrap:anywhere}
.student-profile button{font-size:12px;border-radius:8px;min-height:36px}
.student-profile small{color:#847c85;line-height:1.6}
.student-roster .study-status{background:#e9f2eb;color:#51745f;border:1px solid #d5e6da;border-radius:6px}
.student-roster .study-status.stopped{background:#f9ebee;border-color:#efdce2;color:#9a6575}
.study-status.dormant,.student-roster .study-status.dormant{background:#f5eddd;border:1px solid #e6d7b7;color:#886a37}
.student-roster .view-toggle button[data-filter=dormant].active{background:#947947;color:#fff}
.student-roster .view-toggle button[data-filter=refunded].active{background:#9a6575;color:#fff}
.refund-roster-note{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:14px 0;padding:12px 14px;border:1px solid #efdce2;border-radius:10px;background:#faf0f2}
.student-profile .refund-roster-note strong{color:#986272;font-size:13px}
.refund-roster-note button{color:#986272;background:#fff9fb;border:1px solid #e5cbd4;border-radius:7px;padding:7px 10px}
.dormant-note{padding:14px 16px;margin:14px 0;background:#faf5e9;border:1px solid #e9dec7;border-radius:10px;color:#78643e;font-size:13px;line-height:1.6}
.dormant-note strong,.student-profile .dormant-note strong{color:#78643e;font-size:13px}
.dormant-note p{margin:5px 0}.dormant-note small,.student-profile .dormant-note small{color:#8b7c62;font-size:12px;margin-top:4px}
.student-dossier-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}
.student-dossier-actions button{white-space:nowrap;background:#edf3f8;border-color:#dfe8f0;color:#5c7790;box-shadow:none}
.student-dossier-actions button:hover{background:#e1ecf5;border-color:#c6d7e6;color:#3d6384}
.student-dossier-actions button[data-action=student-profile]{background:#f4edf5;border-color:#e9deeb;color:#88678b}
.student-dossier-actions button[data-action=student-profile]:hover{background:#ede0ef;border-color:#d8c5dd;color:#745277}
.student-dossier-actions .student-detail-link{margin-top:0}
.student-profile .student-actions{gap:8px;border-top:1px solid #eee5e9;padding-top:15px;width:100%}
.student-profile .student-actions button{background:#fffdfb;border-color:#e8dfe2;color:#887580;box-shadow:none}
.student-profile .student-actions button:hover{background:#f7eef1;border-color:#d9c6ce;color:#85586a}
.student-profile .student-actions button[data-action=package-form]{background:#456e94;border-color:#456e94;color:#fff;font-weight:600;box-shadow:0 3px 7px #456e941c}
.student-profile .student-actions button[data-action=package-form]:hover{background:#355a7d;border-color:#355a7d}
.student-profile .student-actions button[data-action=package-form][data-type=renewal]{background:#916383;border-color:#916383;box-shadow:0 3px 7px #9163831c}
.student-profile .student-actions button[data-action=package-form][data-type=renewal]:hover{background:#79516e;border-color:#79516e}
.student-profile .student-actions button[data-action=refund-form]{background:#faf2e9;border-color:#ecdcc9;color:#946c43}
.student-profile .student-actions button[data-action=refund-form]:hover{background:#f2e5d4;border-color:#dec4a6;color:#79542f}
.student-profile button:focus-visible{outline:2px solid #9c85b0;outline-offset:3px}
@media(max-width:600px){.student-roster .student-grid{padding:14px;gap:14px}.student-roster .student-profile{padding:18px}.student-roster .view-toggle button{padding:8px 10px}}
.revenue-breakdown .is-refund .metric-detail{width:auto;justify-content:flex-start;margin-top:3px;padding:4px 0 0;border-top:0;color:#80616a;font-size:10px}
@media(max-width:600px){.revenue-breakdown{grid-template-columns:1fr}.revenue-breakdown>div{border-right:0;border-bottom:1px solid #dfe7e3}.revenue-breakdown>div:last-child{border-bottom:0}}
.login-screen{max-width:580px;margin:12vh auto;padding:32px}
.login-screen form{display:grid;gap:20px;margin-top:28px}
.login-screen label{display:grid;gap:10px;text-align:left}
.login-screen input{width:100%;box-sizing:border-box}
/* The school timetable prioritizes actual classes; open slots are optional. */
.school-content{padding:0 22px 22px}.school-grid-scroll{height:68vh;overflow:auto;border:1px solid #dfe6e8;border-radius:12px;background:white}.school-grid{min-width:100%}.school-grid-head{height:46px;display:flex;position:sticky;top:0;z-index:6;background:#f4f7f8;border-bottom:1px solid #dfe6e8}.school-axis-head{width:56px;flex-shrink:0;position:sticky;left:0;z-index:7;background:#f4f7f8;text-align:center;line-height:46px;font-size:12px}.school-column-head{width:180px;flex-shrink:0;text-align:center;line-height:46px;color:#425b69;font-weight:600}.school-grid-body{display:flex;position:relative}.school-axis{width:56px;flex-shrink:0;position:sticky;left:0;z-index:4;background:white}.school-axis span{position:absolute;width:50px;text-align:right;font-size:11px;color:#879298}.school-teacher-column{position:relative;width:180px;flex-shrink:0;border-left:1px solid #e7edef;background:repeating-linear-gradient(to bottom,transparent 0,transparent 50px,#edf1f3 50px,#edf1f3 51px)}.school-course{position:absolute;box-sizing:border-box;border:3px solid white;border-left:4px solid #7c97a9!important;background:#eaf0f5!important;color:#425d70!important;border-radius:8px;padding:5px 7px!important;text-align:left;overflow:hidden;z-index:2;line-height:17px;min-height:0!important;box-shadow:none!important}.school-course strong,.school-course span,.school-course small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.school-course strong{font-size:15px}.school-course span,.school-course small{font-size:11px}.school-course.completed,.school-list-course.completed{background:#e4eee7!important;border-left-color:#6b8b76!important;color:#43654d!important}.school-course.absent,.school-list-course.absent{background:#f8ebe4!important;border-left-color:#bd8e75!important;color:#8e5f43!important}.school-open{position:absolute;left:3px;right:3px;border:1px dashed #cbdacf!important;background:#f8fbf8!important;border-radius:6px;color:#839889!important;font-size:10px!important;padding:5px!important;text-align:left;overflow:hidden;box-shadow:none!important;min-height:0!important}.school-changes{padding:18px 0;display:flex;flex-wrap:wrap;gap:8px}.school-changes strong{width:100%}.school-week-day{padding:14px 0;border-top:1px solid #e3e8e9}.school-list-course{display:block;text-align:left;width:100%;padding:12px;margin:8px 0;background:#eaf0f5;color:#425d70;border-left:4px solid #7c97a9}.school-list-course strong,.school-list-course span{display:block}.school-list-course span{font-size:13px;margin-top:5px}.ranking-panel>p,.ranking-panel>.notice{margin:14px 22px}.ranking-panel .data-scroll{margin:0 22px}.ranking-panel th{white-space:nowrap}
/* School week: weekday groups, teacher columns and a fixed quarter-hour axis. */
.school-week-head{display:flex;height:76px;position:sticky;top:0;z-index:6;background:#f7f7f3}.school-week-corner{position:sticky;left:0;z-index:9;width:56px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#f2f3ee;border-right:2px solid #c3cdc8;font-size:12px;color:#556661}.school-week-heading-rows{flex:1;min-width:0}.school-week-days,.school-week-teachers{display:flex}.school-week-day-heading{height:40px;flex-shrink:0;text-align:center;background:#f1f3ef;border-bottom:1px solid #d5ded8;border-right:2px solid #bac7c0;line-height:19px}.school-week-day-heading:nth-child(even){background:#e9efeb}.school-week-day-heading strong{font-size:14px;display:block}.school-week-day-heading span{font-size:11px;color:#7b8880;display:block}.school-week-teacher{height:36px;width:144px;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;border-left:1px solid #e0e7e2;border-bottom:2px solid #c5d1cb;background:var(--school-soft,#f4f5f3);color:var(--school-ink,#758179)}.school-day-edge{border-right:2px solid #bac7c0!important}.school-week-grid .school-teacher-column{width:144px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 24.5px,#edf1ef 24.5px,#edf1ef 25.5px),repeating-linear-gradient(to bottom,transparent 0,transparent 101px,#d6dfd9 101px,#d6dfd9 102px)}.school-week-grid .school-axis span{font-size:10px;line-height:14px;transform:translateY(2px);color:#8a9790}.school-week-grid .school-axis span.school-hour{font-weight:600;color:#52665a}.tone-green{--school-soft:#e4efe2;--school-fill:#c6dfbf;--school-edge:#7a9c70;--school-ink:#3e5c37}.tone-blue{--school-soft:#e1ecf6;--school-fill:#bdd5ec;--school-edge:#779bbd;--school-ink:#3d5d7c}.tone-orange{--school-soft:#fbf0d4;--school-fill:#f1d995;--school-edge:#c2a15c;--school-ink:#7e6230}.tone-purple{--school-soft:#eee5f5;--school-fill:#d9c4e9;--school-edge:#aa86c3;--school-ink:#725286}.tone-teal{--school-soft:#dff0ed;--school-fill:#b6ddd4;--school-edge:#70a79a;--school-ink:#3e7267}.school-week-grid .school-course{background:var(--school-soft,#eaf0f5)!important;border-left-color:var(--school-edge,#7c97a9)!important;color:var(--school-ink,#425d70)!important;border-radius:4px;line-height:15px;padding:4px 5px!important}.school-week-grid .school-course strong{font-size:14px;line-height:18px}.school-week-grid .school-course span,.school-week-grid .school-course small{font-size:10px}.school-week-grid .school-course.completed{background:var(--school-fill,#c6dfbf)!important}.school-week-grid .school-course.absent{background:#f6e2df!important;border-left-color:#bd8e86!important;color:#885d56!important}.school-week-grid .school-trial{border-style:dashed}.school-legend{display:flex;flex-wrap:wrap;gap:18px;font-size:11px;color:#7b8880;margin:12px 0}.school-week-scroll{height:72vh}.school-week-changes{padding-top:14px}.school-week-changes .school-changes{padding-top:8px}
.school-reminders{grid-template-columns:repeat(2,minmax(0,1fr))}.school-reminders .teaching-overview-card:only-child{grid-column:1/-1}.school-reminders .teaching-overview-card{background:#f3f0f5;border-color:#ddd7e5;color:#6e637a}.school-reminders .teaching-overview-card:hover{background:#ece7f0;border-color:#b7a9c3}.school-reminders [data-action="open-register"]{background:#edf3ef;border-color:#d4e0d7;color:#597064}.school-reminders [data-action="open-register"]:hover{background:#e4eee8;border-color:#a9bdaf}
.teaching-identity{padding:22px 24px;margin:18px 0;border:1px solid #d4e2df;border-radius:16px;background:#edf5f1;color:#3f625a}.teaching-identity .row{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}.teaching-identity h2{margin-top:0}

.student-learning{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0;padding:12px 16px;background:#edf5f1;border-radius:10px;color:#466b60}.student-learning small{flex-basis:100%;color:#73877f;font-size:12px}

.birthday-reminder{position:relative;padding-right:90px}.birthday-symbol{position:absolute;right:24px;top:50%;transform:translateY(-50%);font-size:40px;line-height:1;pointer-events:none}

#training-fields[hidden],#training-rows[hidden],#training-preview[hidden],#transfer-new[hidden]{display:none}
.training-teacher + .training-teacher{margin-top:17px}

.site-filing{padding:16px 20px;text-align:center;font-size:12px;color:var(--muted)}
.site-filing a{color:inherit;text-decoration:none}
.site-filing a:hover{text-decoration:underline}
