:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1c2639;background:#f3f5fa}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #8fb0ff;outline-offset:2px}a{color:#2563eb}.app{min-height:100vh;display:grid;grid-template-columns:240px minmax(0,1fr)}.sidebar{background:#fff;border-right:1px solid #e1e5ee;padding:27px 16px 20px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:0 5px 35px;font-weight:700;font-size:21px;white-space:nowrap}.brand small,.sidebar-bottom small{display:block;font-size:12px;color:#8994a6;font-weight:400;margin-top:2px}.brand-icon{display:grid;place-items:center;background:#2563eb;color:#fff;width:42px;height:42px;border-radius:11px;font-size:22px}.nav-title{font-size:11px;letter-spacing:.1em;color:#99a4b4;font-weight:700;padding:0 12px 10px}.sidebar nav{display:grid;gap:5px}.nav-link{text-decoration:none;color:#6d7990;display:flex;align-items:center;gap:14px;padding:13px 12px;border-radius:9px;font-size:15px;font-weight:600}.nav-link:hover{background:#f5f7fc}.nav-link.active{background:#e7edfd;color:#2563eb}.nav-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;font-size:21px;line-height:1}.sidebar-bottom{border-top:1px solid #e5e9f0;margin-top:auto;padding:18px 4px 0;display:flex;align-items:center;gap:10px;font-size:13px}.sidebar-bottom form{margin-left:auto}.avatar,.initials{display:grid;place-items:center;flex:none;border-radius:50%;background:#e7edff;color:#3165d9;width:38px;height:38px;font-size:14px;font-weight:700}.logout,.dialog-close{border:0;background:none;color:#8390a3;font-size:24px}.content{padding:34px 4.5vw 55px;min-width:0}.breadcrumbs{font-size:12px;color:#94a0b2;margin-bottom:25px}.breadcrumbs span{padding:0 8px;color:#c5ccd7}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.page-heading h1{font-size:32px;letter-spacing:-.035em;margin:0 0 7px}h2{font-size:20px;letter-spacing:-.02em;margin:0 0 10px}p{color:#77849b;line-height:1.5;font-size:14px;margin:0 0 18px}.page-heading p,.dialog-head p{margin:0}.primary,.secondary{border-radius:9px;padding:12px 17px;font-weight:600;font-size:14px}.primary{border:1px solid #2563eb;color:#fff;background:#2563eb}.primary:hover{background:#1c53ce}.secondary{border:1px solid #dfe5ee;background:#fff;color:#5d6b80}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px}.search{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dfe5ef;border-radius:9px;padding:0 13px;width:330px;color:#8e9ab0}.search span[aria-hidden]{font-size:24px;line-height:1}.search input{padding:12px 0;border:0;outline:none;width:100%;font-size:14px}.count{color:#78859b;font-size:13px}.table-card,.panel,.login-card{background:#fff;border:1px solid #e0e5ef;border-radius:12px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{color:#8d99ab;text-transform:uppercase;font-size:11px;letter-spacing:.04em;background:#fafbfe;text-align:left}th,td{padding:17px 21px;border-bottom:1px solid #edf0f5;vertical-align:middle}tbody tr:last-child td{border-bottom:0}td small{display:block;color:#8c99ac;margin-top:5px;white-space:normal}.students-table th:first-child{width:34%}.students-table th:nth-child(2){width:27%}.student-cell{display:flex;align-items:center;gap:12px}.student-cell b{font-weight:600}.badge{display:inline-block;padding:6px 9px;border-radius:6px;background:#f0f3f8;color:#6b788d;font-size:12px;white-space:nowrap}.badge.pair{background:#eeefff;color:#675ed0}.price{font-weight:600;white-space:nowrap}.empty{padding:28px;color:#8390a3;font-size:14px}.empty[hidden],tr[hidden],label[hidden]{display:none}.panel{padding:25px;margin-bottom:20px}.panel.narrow{max-width:570px}.layout-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.list-item{padding:15px 0;border-bottom:1px solid #edf0f5;color:#465570}.list-item:last-child{border-bottom:0}.fields{display:grid;gap:16px}label{display:grid;gap:8px;font-size:13px;font-weight:600;color:#526079}input,select{min-width:0;width:100%;padding:11px 12px;border:1px solid #dce2eb;border-radius:8px;background:#fff;color:#27354c}input::placeholder{color:#a5afbd}label .required{color:#df5252}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stats small{display:block;color:#7c899e}.stats strong{display:block;font-size:22px;margin-top:16px}.alert{background:#e7f5ec;color:#247347;padding:13px 16px;border-radius:9px;margin-bottom:18px}.alert.error{background:#fbe9e8;color:#a83c36}.warning{color:#b74831}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{border:0;padding:0;border-radius:13px;box-shadow:0 18px 55px #1b284033;width:min(560px,calc(100% - 32px));color:#1c2639}dialog::backdrop{background:#18223580}.dialog-head{padding:24px 26px 20px;border-bottom:1px solid #edf0f5;display:flex;justify-content:space-between;gap:10px}.dialog-head h2{font-size:22px;margin:0 0 6px}.dialog-close{padding:0;align-self:start;line-height:1}.dialog-body{padding:22px 26px;display:grid;grid-template-columns:1fr 1fr;gap:17px}.dialog-body label{display:block;line-height:1.4}.dialog-body label input,.dialog-body label select{display:block;margin-top:8px}.dialog-body .full{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:17px 26px;border-top:1px solid #edf0f5;background:#fafbfe}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(100%,440px);padding:32px}.login-card h1{font-size:28px;margin:0 0 8px}.login-card .brand{padding-bottom:28px}.login-card .fields{margin-top:24px}@media(max-width:860px){.app{grid-template-columns:1fr}.sidebar{min-height:auto;padding:14px;border-right:0;border-bottom:1px solid #e1e5ee}.brand{padding:0 0 12px}.nav-title,.sidebar-bottom{display:none}.sidebar-bottom{display:flex;margin-top:10px;padding-top:10px}.sidebar nav{display:flex;overflow-x:auto}.nav-link{white-space:nowrap;font-size:13px;padding:10px}.content{padding:24px 18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.layout-grid{grid-template-columns:1fr}.page-heading{flex-wrap:wrap}.students-table{min-width:680px}}@media(max-width:500px){.page-heading h1{font-size:27px}.page-heading .primary{width:100%}.search{width:100%}.toolbar{align-items:start;flex-direction:column}.dialog-body{grid-template-columns:1fr}.dialog-body .full{grid-column:auto}.stats{grid-template-columns:1fr 1fr}.stats strong{font-size:18px}}

.dialog-error{margin:16px 26px 0;padding:12px;border-radius:8px;background:#fbe9e8;color:#a83c36;font-size:13px}
.settings-menu summary{cursor:pointer;list-style:none}.settings-menu summary::-webkit-details-marker{display:none}.menu-arrow{margin-left:auto}.settings-submenu{display:grid;gap:2px;border-left:1px solid #e4e9f2;margin-left:22px;padding:5px 0 8px 15px;font-size:12px}.settings-submenu a,.settings-submenu span{display:block;padding:9px 10px;border-radius:7px;text-decoration:none}.settings-submenu a{color:#6b7890}.settings-submenu a.selected{background:#f0f4ff;color:#2563eb;font-weight:700}.settings-submenu .settings-disabled{color:#b8c0cd;cursor:default}.history-filters{display:flex;gap:16px;align-items:end;margin-bottom:25px}.history-filters label{min-width:190px}.history-filters .count{margin-left:auto;margin-bottom:11px}.month-heading{display:flex;gap:10px;align-items:center;margin:26px 0 12px;color:#46546b;font-size:15px}.month-heading i{height:1px;background:#e0e5ef;flex:1}.history-event{background:#fff;border:1px solid #e0e5ef;border-radius:11px;margin-bottom:10px}.history-event summary{display:flex;align-items:center;gap:14px;padding:16px 18px;cursor:pointer;list-style:none}.history-event summary::-webkit-details-marker{display:none}.event-icon{display:grid;place-items:center;background:#e9efff;color:#3168e8;width:38px;height:38px;border-radius:9px;font-size:20px;flex:none}.event-main{flex:1;min-width:0}.event-main b{display:block;font-size:14px}.event-main small,.event-date small{display:block;color:#8c99ac;font-size:12px;margin-top:5px}.event-date{text-align:right;font-size:12px;color:#65738a;white-space:nowrap}.event-arrow{color:#8c99ac;font-size:18px}.history-event[open] .event-arrow{transform:rotate(180deg)}.event-details{border-top:1px solid #edf0f5;margin:0 18px;padding:16px 0 18px 52px;line-height:1.6;color:#4e5d73;font-size:14px;overflow-wrap:anywhere}.event-details small{display:block;margin-top:14px;color:#9aa5b4;font-size:12px}.history-empty{margin:0}@media(max-width:860px){.sidebar nav{flex-wrap:wrap;overflow:visible}.settings-menu{flex:none}.settings-submenu{background:white;min-width:190px}.history-filters{flex-wrap:wrap}.event-details{padding-left:0}}
.nav-link.nav-disabled{color:#b7c0cd;cursor:default;background:transparent}.nav-link.nav-disabled:hover{background:transparent}.students-table{min-width:780px}.students-table th:first-child{width:27%}.students-table th:nth-child(2){width:18%}.row-actions{display:flex;gap:6px;white-space:nowrap}.row-actions button{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid #e0e6f0;border-radius:7px;background:#fff;color:#2765e8}.row-actions button:hover{background:#edf3ff}.row-actions .delete-action{color:#dc5252}.row-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.student-details small{display:block;color:#8995a7;font-size:12px;margin-bottom:6px}.student-details strong{display:block;color:#26354c;font-size:14px;overflow-wrap:anywhere}.delete-note{color:#a83c36;background:#fff1ef;border:1px solid #f5d2ce;border-radius:8px;padding:13px;font-size:14px;line-height:1.5}.danger{border:1px solid #d94848;border-radius:9px;background:#d94848;color:white;padding:12px 17px;font-weight:600;font-size:14px}.settings-card-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px}.settings-card-head p{margin:0}.settings-card th:first-child{width:60%}.settings-card th:nth-child(2){width:25%}.direction-status{display:inline-block;padding:6px 9px;border-radius:6px;background:#e7f4eb;color:#228149;font-size:12px}.settings-footer{padding:16px 22px;color:#8995a7;font-size:12px}.dialog-body label small{display:block;margin-top:8px;color:#8995a7;font-size:12px;font-weight:400}@media(max-width:700px){.settings-card-head{align-items:start;flex-direction:column}.settings-card-head .primary{width:100%}}
.students-heading{align-items:center;gap:18px}.students-title{flex:0 0 175px}.students-summary{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:1;flex-wrap:wrap}.subject-stat{display:flex;align-items:center;gap:10px;flex:0 1 180px;min-width:150px;padding:12px 13px;background:#fff;border:1px solid #e0e5ef;border-radius:10px}.subject-stat-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;flex:none}.subject-stat-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.subject-stat-icon.tone-blue,.subject-chip.tone-blue{background:#eaf0ff;color:#356bcf}.subject-stat-icon.tone-violet,.subject-chip.tone-violet{background:#f2ecfb;color:#7b62a8}.subject-stat small{display:block;color:#7d8ba0;font-size:11px;margin-bottom:4px}.subject-stat strong{font-size:18px;line-height:1.1}.subject-stat em{font-size:11px;color:#94a0b1;font-style:normal;font-weight:400}.student-add{margin-left:auto;background:#2e9b65;border-color:#2e9b65}.student-add:hover{background:#238451;border-color:#238451}.student-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.student-toolbar{gap:18px}.student-toolbar .search{width:280px;height:44px;padding:0 12px;background:#fff;box-shadow:0 1px 2px #1c283c08}.student-toolbar .search:focus-within{border-color:#8eabf5;box-shadow:0 0 0 3px #e8efff}.student-toolbar .search input{outline:none;min-width:0}.student-toolbar .search input:focus::placeholder{color:transparent}.student-toolbar .search input::-webkit-search-cancel-button{cursor:pointer}.student-toolbar .search svg{width:18px;height:18px;flex:none;fill:none;stroke:#8190a7;stroke-width:1.7;stroke-linecap:round}.direction-control{display:flex;align-items:center;gap:9px;color:#78859b;font-size:13px}.direction-buttons{display:inline-flex;background:#fff;border:1px solid #dce3ed;border-radius:8px;overflow:hidden}.direction-buttons button{border:0;border-right:1px solid #e3e8f0;background:#fff;color:#66748a;padding:12px 11px;font-size:13px}.direction-buttons button:last-child{border-right:0}.direction-buttons button[aria-pressed=true]{background:#e7edff;color:#2563eb;font-weight:700}.student-cell .student-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.subject-chip{display:inline-block;padding:4px 7px;border-radius:5px;font-size:11px;font-weight:600;line-height:1.2}.students-table th:first-child{width:36%}.students-table th:nth-child(2){width:28%}.students-table .row-actions{display:inline-flex;gap:0;padding:4px;background:#f3f5fa;border:1px solid #e1e6f0;border-radius:9px}.students-table .row-actions button{border:0;background:transparent;width:34px;height:34px}.students-table .row-actions button:hover{background:#e5ecff}.students-table .row-actions button[data-student-action=view]{color:#2563eb}.students-table .row-actions button[data-student-action=edit]{color:#8149df}.students-table .row-actions button[data-student-action=delete]{color:#e14646}.students-table .row-actions button[data-student-action=delete]:hover{background:#fff0ef}@media(max-width:1150px){.students-title{flex:1 1 100%}.students-summary{justify-content:flex-start}.subject-stat{flex:1 1 150px}.student-add{margin-left:auto}}@media(max-width:500px){.student-add{margin-left:0;width:100%}.student-toolbar{align-items:start}.student-filters{width:100%}.student-toolbar .search{width:100%}.direction-control{flex-wrap:wrap}.subject-stat{min-width:0}.direction-buttons button{padding:10px 9px}}
.wide-dialog{width:min(860px,calc(100% - 32px));max-height:calc(100vh - 32px);overflow:auto}.student-editor{padding:20px 26px 24px}.editor-section{border:1px solid #e2e7f0;border-radius:11px;background:#fff;margin-bottom:16px}.editor-section:last-child{margin-bottom:0}.editor-head{display:flex;align-items:center;gap:12px;padding:15px 17px;background:#fafbfe;border-bottom:1px solid #e7ebf2;border-radius:11px 11px 0 0}.editor-head h3{font-size:15px;margin:0 0 3px;color:#1d283c}.editor-head p{font-size:12px;margin:0}.editor-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:9px;background:#e8efff;color:#2966e9;font-size:19px}.editor-icon.violet{background:#f0ebff;color:#7b62ca}.months-head .add-month{margin-left:auto;color:#2862d9;border-color:#bfcff8;background:#f5f8ff;white-space:nowrap}.editor-section .dialog-body{padding:18px}.student-month-list{display:grid;gap:9px;padding:16px 17px 0}.month-empty{font-size:13px;margin:0;color:#8995a7}.month-card{border:1px solid #e0e6ef;border-radius:9px;overflow:hidden}.month-card summary{display:flex;align-items:center;gap:10px;padding:13px 14px;cursor:pointer;list-style:none}.month-card summary::-webkit-details-marker{display:none}.month-label{display:flex;align-items:center;gap:8px;font-size:13px}.month-calendar{color:#71819b}.month-tag{background:#e9efff;color:#3468d8;font-size:11px;padding:4px 7px;border-radius:6px;white-space:nowrap;font-weight:600}.month-tag[hidden]{display:none}.month-summary{margin-left:auto;color:#8a97aa;font-size:12px}.month-chevron{font-size:18px;color:#8e9caf}.month-card[open] .month-chevron{transform:rotate(180deg)}.month-body{padding:15px 14px;border-top:1px solid #edf0f5}.monthly-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.monthly-fields small{font-size:11px!important;font-weight:400;color:#9aa5b4}.month-picker{max-width:190px;margin-bottom:14px}.month-picker input[readonly]{background:#f6f7fa;color:#6c788b}.invoice-lock{margin-top:12px;padding:10px;background:#fff7e8;border-radius:7px;color:#94671d;font-size:12px}.invoice-lock[hidden]{display:none}.editor-hint{font-size:12px;padding:13px 19px 17px;margin:0;color:#7c8ba2}.schedule{margin-top:17px;padding-top:16px;border-top:1px solid #edf0f5}.schedule-heading{font-size:13px;font-weight:600;color:#59677d;margin-bottom:9px}.compact-days{display:flex;align-items:flex-start;gap:7px;flex-wrap:wrap}.day-tile{display:grid;justify-items:center;width:85px;min-height:39px;border:1px solid #dfe5ef;border-radius:8px;background:#fff;overflow:hidden}.day-tile.selected{border-color:#b9ccf9;background:#f3f7ff}.day-toggle{width:100%;padding:10px 5px;border:0;background:transparent;color:#67758b;font-size:12px;font-weight:600;line-height:1}.day-toggle[aria-pressed=true]{color:#2464e9}.compact-time{width:100%;padding:0 4px 5px}.compact-time[hidden]{display:none}.compact-time input{width:100%;min-width:0;margin:0;padding:5px 2px;border:1px solid #d6e3ff;border-radius:6px;background:#fff;color:#334a73;font-size:12px;text-align:center}.schedule-empty{margin-top:10px;color:#9aa5b4;font-size:12px}.schedule-empty[hidden]{display:none}.schedule-chips{display:flex;gap:5px;flex-wrap:wrap}.schedule-chips span{background:#eef3ff;color:#4669ad;border-radius:5px;font-size:12px;padding:5px 7px;white-space:nowrap}.muted{color:#94a1b1;font-size:12px}.sources-card{margin-top:20px}.pretty-select{position:relative;margin-top:8px}.pretty-select:has(.pretty-options:not([hidden])){z-index:9}.pretty-native{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none;margin:0!important;padding:0!important}.pretty-trigger{width:100%;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dce3ed;border-radius:8px;color:#27354c;background:#fff;font-size:13px;font-weight:400;text-align:left}.pretty-trigger[aria-expanded=true]{border-color:#3475ff;box-shadow:0 0 0 3px #e4eeff}.pretty-arrow{color:#73839b;font-size:16px;line-height:1}.pretty-trigger[aria-expanded=true] .pretty-arrow{transform:rotate(180deg)}.pretty-options{position:absolute;top:calc(100% + 6px);left:0;right:0;padding:6px;background:#fff;border:1px solid #e0e6ef;border-radius:11px;box-shadow:0 12px 28px #27354d29}.pretty-options[hidden]{display:none}.pretty-options button{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-radius:7px;padding:11px;background:#fff;color:#28374d;text-align:left;font-size:13px}.pretty-options button:hover{background:#f4f7fd}.pretty-options button[aria-selected=true]{background:#e8f0ff;color:#2464e9}.pretty-check{color:#2464e9}.students-table{min-width:930px}.students-table th:first-child{width:29%}.students-table th:nth-child(2){width:20%}.students-table td{vertical-align:middle}@media(max-width:700px){.student-editor{padding:13px}.editor-head{align-items:flex-start;flex-wrap:wrap}.months-head .add-month{margin-left:0}.monthly-fields{grid-template-columns:1fr}.month-summary{display:none}.month-chevron{margin-left:auto}.wide-dialog{max-height:calc(100vh - 16px);width:calc(100% - 16px)}.day-tile{width:78px}}
.invoice-open{display:inline-flex;border:1px solid #c8d7f7;border-radius:8px;background:#f4f7ff;color:#285fcc;padding:9px 12px;font-size:12px;font-weight:600;white-space:nowrap}.invoice-open:hover{background:#e8efff}.students-table{min-width:1060px}.invoice-dialog-body{padding:20px 26px}.invoice-field-title{font-size:13px;font-weight:600;color:#526079;margin-bottom:10px}.invoice-months{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:17px}.invoice-months button{border:1px solid #dce3ed;border-radius:7px;background:#fff;padding:8px 10px;color:#5d6b80;font-size:12px}.invoice-months button[aria-pressed=true]{background:#e8efff;border-color:#b9ccf9;color:#2464e9;font-weight:600}.invoice-info-row{display:flex;justify-content:space-between;gap:15px;padding:8px 0;color:#79869a;font-size:13px}.invoice-info-row b{color:#26354c;text-align:right}.invoice-help,.invoice-muted{margin:12px 0 0;color:#8290a4;font-size:12px;line-height:1.5}.invoice-help[hidden],.invoice-muted[hidden],.invoice-details[hidden],.invoice-dialog-actions form[hidden],#invoice-link[hidden],#invoice-current[hidden]{display:none}.invoice-dialog-actions form{margin:0}#invoice-link{display:inline-block;margin-top:8px;font-size:13px}
