.sidebar .season{text-align:center;padding-left:0;padding-right:0}.sidebar>.brand span{font-size:12px!important;letter-spacing:1.1px;line-height:1.85;font-weight:400;white-space:nowrap;padding-left:11px;margin-left:0;color:#28455e}.sidebar>.brand img{width:100px}.theme-switch{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;margin-top:auto;padding:10px 12px;color:#637281;font-size:12px;border-radius:8px;min-height:40px}.theme-switch svg{width:19px;height:19px;flex:none}.theme-switch:hover{background:#f1f4f7;color:#173957}.sidebar>.profile{margin-top:8px}
html[data-theme=dark]{--paper:#131a22;--ink:#dfe7ee;--muted:#a2b1bf;--line:#34414e;--navy:#93badc;--blue:#263d52;--mint:#263f36;--green:#97c8b3;--gold:#d1ae70;--red:#e4a39a;--peach:#41352b}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(.sidebar,.topbar,.card,dialog,.calendar,.board-scroll,.student-search-results,.level-panel,.report-toolbar,.account-panel){background:#1b2530;border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(h1,h2,h3,.side-nav button,.profile b,.text-btn,.customer-name,.family-link,.contact-item a,.customer-metrics b,.time-label,.student-identity-line){color:var(--ink)}
html[data-theme=dark] .demo-bar{background:#1b2530;color:#a2b1bf;border-color:var(--line)}
html[data-theme=dark] .side-nav button.active{background:#314f6c;color:#fff}
html[data-theme=dark] .sidebar>.brand span{color:#c8dae8}
html[data-theme=dark] .sidebar>.brand img{filter:brightness(0) invert(1);opacity:.92}
html[data-theme=dark] .sidebar>.profile{background:#202d39;border-color:#34414e}
html[data-theme=dark] .theme-switch{color:#b8c6d2}
html[data-theme=dark] .theme-switch:hover{background:#263744;color:#e6edf3}
html[data-theme=dark] :is(input,select,textarea){background-color:#15202b;border-color:#40505e;color:#e1e9f0}
html[data-theme=dark] :is(.btn,.editor-actions .btn){background:#385e80;color:#f1f6fb}
html[data-theme=dark] .btn.outline{background:#202d39;color:#dce6ee;border-color:#40505e}
html[data-theme=dark] .btn.light{background:#293e52;color:#d6e6f3}
html[data-theme=dark] .btn.green{background:#386f5b;color:#f4fbf7}
html[data-theme=dark] .btn.danger{background:#472e31;color:#f1b6ad}
html[data-theme=dark] :is(.tag,.avatar){background:#293e52;color:#bcd6ec}
html[data-theme=dark] :is(.tag.green,.stat:nth-child(3)){background:#263f36;color:#a9d6c2}
html[data-theme=dark] :is(.tag.gold,.nav-count,.stat:nth-child(2)){background:#493b27;color:#e6c58b}
html[data-theme=dark] .tag.red{background:#4b3034;color:#efb1aa}
html[data-theme=dark] .stat{background:#1b2530;border-color:var(--line)}
html[data-theme=dark] :is(.stat strong,.stat small){color:#e3edf6}
html[data-theme=dark] :is(.list th,.assignment-board thead th,.assignment-board th:first-child,.week-table th,.weekdays,.customer-level summary){background:#243240;color:#c7d7e4}
html[data-theme=dark] :is(td,th,.lesson-row,.card-head,.activity,.customer-history-row,.customer-skill,.contact-item,.family-link,.customer-level,.assessment-row,.level-panel summary,.student-history,.feedback-summary,.dashboard-heading,.customer-metrics){border-color:#34414e}
html[data-theme=dark] :is(.day.empty,.day,.calendar .day){background:#1b2530;border-color:#34414e}
html[data-theme=dark] :is(.board-empty,.segmented,.student-fields,.skip-area,.student-result:hover,.rating-button,.level-control-card){background:#243240;color:#c5d6e4;border-color:#40505e}
html[data-theme=dark] .segmented .on{background:#426481;color:#fff}
html[data-theme=dark] :is(.cal-event,.board-lesson.child,.tag.child){background:#453c25;color:#f0d69e;border-color:#cda95c}
html[data-theme=dark] :is(.cal-event.adult,.board-lesson.adult,.tag.adult){background:#263f36;color:#b5ddc8;border-color:#7aaf98}
html[data-theme=dark] :is(.cal-event.unassigned,.unassigned-ticket,.rejection-detail){background:#442f34;color:#edb9b3;border-color:#865d60}
html[data-theme=dark] .unassigned-ticket.selected{outline-color:#bad2e7;background:#2a4054}
html[data-theme=dark] :is(.cal-leave,.offday-block){background:#303b45;color:#c6d0d8;border-color:#52616e}
html[data-theme=dark] :is(.below-note,.muted,small,.profile small,.logout,.file-note,.level-description,.customer-note){color:var(--muted)}
html[data-theme=dark] .leave-rejection-note{color:#d4dfe8}
html[data-theme=dark] :is(.leave-rejection-note b,.rejection-detail>b){color:#e1aaa1}
html[data-theme=dark] .rejection-detail p{color:#d4dfe8}
html[data-theme=dark] .symbol{--symbol-color:#b8d2e7}
html[data-theme=dark] .symbol.s0{border-color:#b8d2e7}
html[data-theme=dark] .symbol.s1{border-color:#b8d2e7;background:linear-gradient(135deg,transparent 50%,#b8d2e7 50%)}
html[data-theme=dark] .symbol.s2{border-color:#b8d2e7;background:#b8d2e7}
/* The customer-facing letter remains a white document in either editor theme. */
html[data-theme=dark] .report{--ink:#263746;--muted:#637281;--navy:#173957;--line:#e2e7e9;background:#fff;color:#263746}
html[data-theme=dark] .report :is(h1,h2,h3){color:#173957}
html[data-theme=dark] .report .report-level h3{background:#173957;color:#fff}
html[data-theme=dark] .report .symbol.s0{border-color:#173957}
html[data-theme=dark] .report .symbol.s1{border-color:#173957;background:linear-gradient(135deg,transparent 50%,#173957 50%)}
html[data-theme=dark] .report .symbol.s2{border-color:#173957;background:#173957}
@media(max-width:700px){.theme-switch{width:auto;margin:8px auto}.sidebar>.brand span{font-size:12px!important}.sidebar .season{text-align:center}}

/* Calendar dates: a flat table with a single outlined selection. */
.week-wrap{padding:0;background:var(--surface,#fff);border:1px solid var(--line);border-radius:14px;box-shadow:none}
.week-table :is(th,td){transform:none!important;border-radius:0!important;text-align:center!important;vertical-align:middle}
.week-table th{padding:8px 4px}
.week-table td{background:#fff}
.week-table th.date-current{position:relative;z-index:1;background:#dce8f2;color:#173957}
.week-table td.date-current{background:#fff}
.week-table thead th.date-current:before{display:none}
.calendar-date-choice{display:block;width:100%;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:8px 2px;border-radius:6px;transform:none!important}
.week-table th.date-current .calendar-date-choice{font-size:13px;font-weight:600;background:#dce8f2;color:#173957;box-shadow:none}
.week-table :is(th,td).date-selected{box-shadow:inset 2px 0 #7296b6,inset -2px 0 #7296b6}
.week-table th.date-selected{box-shadow:inset 2px 0 #7296b6,inset -2px 0 #7296b6,inset 0 2px #7296b6}
.week-table tbody tr:last-child td.date-selected{box-shadow:inset 2px 0 #7296b6,inset -2px 0 #7296b6,inset 0 -2px #7296b6}
.week-table :is(th,td).date-past{background:#eef0f2;color:#89939b}
.calendar-date-choice:hover{background:#7296b61c}.calendar-date-choice:focus-visible{outline:2px solid #7296b6;outline-offset:1px}
html[data-theme=dark] .week-wrap,html[data-theme=dark] .week-table td,html[data-theme=dark] .week-table td.date-current{background:#1c2934}
html[data-theme=dark] .week-table th.date-current,html[data-theme=dark] .week-table th.date-current .calendar-date-choice{background:#36516a;color:#f0f6fb}
html[data-theme=dark] .week-table :is(th,td).date-past{background:#202831;color:#80909c}
.notice-summary .feedback-context{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.notice-summary .context-block{min-width:0}.notice-summary .context-block p{overflow-wrap:anywhere}
.notice-row-action{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:108px}.notice-row-action small{font-size:12px;color:var(--muted);white-space:nowrap}.notice-row-action .btn{min-width:94px}
.notice-footer{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-top:20px;flex-wrap:wrap}.notice-footer .notice-actions{margin:0}.notice-customer-contacts{display:flex;flex-direction:column;gap:8px;min-width:230px}.notice-customer-contacts>small{color:var(--muted);font-size:12px}.notice-phone-row{display:flex;align-items:center;gap:15px}.notice-phone-row>div{display:flex;flex-direction:column;gap:2px}.notice-phone-row span{font-size:12px;color:var(--muted)}.notice-phone-row a{font-size:16px;text-decoration:none}.notice-phone-row .btn{padding:6px 12px;font-size:12px}
main table :is(th,td){text-align:center!important;vertical-align:middle!important}main table td{padding-top:18px;padding-bottom:18px}main table td .student-name-line,main table td .row,main table td .customer-name{justify-content:center}main table td .tag{vertical-align:middle}main table .cal-event,main table .cal-leave,main table .board-lesson{text-align:center}.week-table td{padding:9px!important}.week-table .cal-event b{font-weight:500;line-height:1.65}.week-table .cal-instructor{display:block;margin-top:4px}
@media(max-width:480px){.notice-summary .feedback-context{gap:14px}.notice-footer{gap:18px}.notice-footer .notice-actions{width:100%;justify-content:flex-end}.notice-row-action{min-width:94px}}

/* Dashboard: task order and compact, consistent row rhythm. */
.dashboard-cards{grid-template-columns:minmax(0,1fr);gap:18px}.dashboard-cards>.card{min-height:0;margin:0;padding:22px 24px}.dashboard-cards .card-head{margin-bottom:0;padding-bottom:16px;align-items:center}.dashboard-cards .lesson-row{min-height:86px;padding:18px 0;gap:18px;align-items:center}.dashboard-cards .lesson-row:last-child{padding-bottom:2px;border-bottom:0}.dashboard-cards .today-lessons .lesson-row{grid-template-columns:82px minmax(0,1fr) auto}.dashboard-cards .today-lessons .time-label{font-size:15px;line-height:1.55;text-align:left;font-variant-numeric:tabular-nums;border-right:1px solid var(--line);padding-right:14px}.dashboard-cards .today-lessons .time-label .muted{font-size:13px}.dashboard-cards .today-lessons .grow{padding:0;text-align:left}.dashboard-cards .today-lessons .lesson-person{justify-content:flex-start;gap:12px;flex-wrap:nowrap}.dashboard-cards .today-lessons .lesson-student-names{display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap}.dashboard-cards .today-lessons .student-name-line{gap:7px}.dashboard-cards .today-lessons .grow>small{display:block;text-align:left;margin-top:7px}.dashboard-cards .lesson-row>.btn,.dashboard-cards .notice-row-action .btn{min-width:94px}.dashboard-cards .notice-row-action{min-width:94px}.dashboard-cards .empty-state{padding:22px 0 8px}.dashboard-cards .avatar{flex-shrink:0}.dashboard-cards .section-count-heading{gap:12px}.dashboard-cards .ack-chip{display:none}
@media(max-width:600px){.dashboard-cards>.card{padding:18px}.dashboard-cards .lesson-row{gap:12px;min-height:78px}.dashboard-cards .today-lessons .lesson-row{grid-template-columns:59px minmax(0,1fr) auto;column-gap:12px}.dashboard-cards .today-lessons .time-label{font-size:13px;padding-right:8px}.dashboard-cards .today-lessons .lesson-person{align-items:flex-start;gap:8px}.dashboard-cards .today-lessons .lesson-student-names{gap:6px}.dashboard-cards .lesson-row>.btn,.dashboard-cards .notice-row-action .btn{min-width:76px;padding:9px 11px}.dashboard-cards .notice-row-action{min-width:76px}.dashboard-cards .card-head h3{font-size:15px}.dashboard-cards .section-count{font-size:24px}}

.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}.dashboard-stats .stat{padding:15px 20px;min-height:72px;display:flex;justify-content:space-between;align-items:center;gap:12px}.dashboard-stats .stat strong{font-size:27px;line-height:1.2;display:flex;align-items:baseline;gap:5px;white-space:nowrap}.dashboard-stats .stat strong small{font-size:12px;font-weight:400}.dashboard-stats .stat span{font-size:13px;white-space:nowrap}.week-table th.date-current{box-shadow:inset 0 -3px #7296b6}.week-table th.date-current.date-selected{box-shadow:inset 2px 0 #7296b6,inset -2px 0 #7296b6,inset 0 2px #7296b6,inset 0 -3px #7296b6}.leave-table{min-width:0!important;max-width:100%;width:100%;table-layout:fixed}.leave-table th,.leave-table td{padding:16px 10px;overflow-wrap:anywhere;white-space:normal}.leave-table .row{flex-wrap:wrap;gap:6px}.leave-table .btn{padding:7px 9px;font-size:12px;min-height:35px}.leave-table .leave-rejection-note{max-width:100%}
@media(max-width:700px){.dashboard-stats{gap:10px}.dashboard-stats .stat{padding:13px 12px;min-height:68px;gap:7px}.dashboard-stats .stat span{font-size:12px}.dashboard-stats .stat strong{font-size:25px}.leave-table th,.leave-table td{padding:13px 7px;font-size:12px}}@media(max-width:480px){.dashboard-stats .stat{flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}.dashboard-stats .stat span{font-size:11px}.dashboard-stats .stat strong{font-size:23px}}
