:root{--bg: #121212;--bg-deep: #000000;--surface: #181818;--surface-2: #1f1f1f;--card: #252525;--card-hover: #2a2a2a;--elevated: #282828;--border: #4d4d4d;--border-light: #7c7c7c;--line: #222222;--line-strong: #333333;--hover: rgba(255, 255, 255, .07);--text: #ffffff;--text-muted: #b3b3b3;--text-soft: #cbcbcb;--text-faint: #555555;--inverse-bg: #ffffff;--inverse-fg: #000000;--button-light-bg: #eeeeee;--button-light-fg: #181818;--on-accent: #000000;--green: #1ed760;--green-hover: #3be477;--green-dark: #1db954;--red: #f3727f;--orange: #ffa42b;--blue: #539df5;--green-ink: var(--green);--red-ink: var(--red);--orange-ink: var(--orange);--blue-ink: var(--blue);--avatar: #535353;--bar: #b3b3b3;--icon-btn: rgba(0, 0, 0, .55);--topbar: rgba(18, 18, 18, .86);--overlay: rgba(0, 0, 0, .7);--hero-from: #2a2a2a;--hero-green-from: rgba(30, 215, 96, .28);--login-from: #2a2a2a;--login-to: #000000;--bottom-nav-from: rgba(0, 0, 0, .7);--bottom-nav-to: #000000;--focus: #ffffff;--shadow-heavy: rgba(0, 0, 0, .5) 0px 8px 24px;--shadow-medium: rgba(0, 0, 0, .3) 0px 8px 8px;--inset-border: rgb(18, 18, 18) 0px 1px 0px, rgb(124, 124, 124) 0px 0px 0px 1px inset;--font: "Manrope", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", sans-serif;--sidebar: 248px;--bottom-nav: 64px;color-scheme:dark}:root[data-theme=light]{--bg: #ffffff;--bg-deep: #ededed;--surface: #f6f6f6;--surface-2: #ededed;--card: #e8e8e8;--card-hover: #ececec;--elevated: #ffffff;--border: #d4d4d4;--border-light: #8f8f8f;--line: #ebebeb;--line-strong: #dcdcdc;--hover: rgba(0, 0, 0, .05);--text: #121212;--text-muted: #5e5e5e;--text-soft: #3d3d3d;--text-faint: #b8b8b8;--inverse-bg: #121212;--inverse-fg: #ffffff;--button-light-bg: #121212;--button-light-fg: #ffffff;--green-ink: #0e7a35;--red-ink: #c4314b;--orange-ink: #995800;--blue-ink: #1f62c4;--avatar: #d9d9d9;--bar: #c2c2c2;--icon-btn: rgba(0, 0, 0, .06);--topbar: rgba(255, 255, 255, .88);--overlay: rgba(0, 0, 0, .35);--hero-from: #e6e6e6;--hero-green-from: rgba(30, 215, 96, .3);--login-from: #ffffff;--login-to: #e4e4e4;--bottom-nav-from: rgba(255, 255, 255, .75);--bottom-nav-to: #ffffff;--focus: #121212;--shadow-heavy: rgba(0, 0, 0, .16) 0px 8px 24px;--shadow-medium: rgba(0, 0, 0, .1) 0px 6px 10px;--inset-border: rgb(255, 255, 255) 0px 1px 0px, rgb(143, 143, 143) 0px 0px 0px 1px inset;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg-deep);color:var(--text);font-family:var(--font);font-size:16px;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}.app{display:grid;grid-template-columns:var(--sidebar) 1fr;gap:8px;height:100%;padding:8px}.sidebar{display:flex;flex-direction:column;gap:8px;min-height:0}.sidebar-block{background:var(--bg);border-radius:8px;padding:16px 12px}.sidebar-block.grow{flex:1;overflow:auto}.logo{display:flex;align-items:center;gap:10px;padding:4px 12px 16px;font-weight:800;font-size:18px;letter-spacing:-.2px}.logo-mark{width:32px;height:32px;border-radius:50%;background:var(--green);color:var(--on-accent);display:grid;place-items:center}.nav-link{display:flex;align-items:center;gap:16px;padding:10px 12px;border-radius:6px;color:var(--text-muted);font-size:15px;font-weight:700;transition:color .15s}.nav-link:hover,.nav-link.active{color:var(--text)}.nav-link.active svg{color:var(--green-ink)}.sidebar-caption{color:var(--text-muted);font-size:12px;font-weight:700;padding:0 12px 8px;text-transform:uppercase;letter-spacing:1.4px}.sidebar-user{display:flex;align-items:center;gap:12px;padding:8px 12px}.sidebar-actions{display:flex;gap:2px;margin-right:-8px}.main{background:var(--bg);border-radius:8px;overflow:auto;min-width:0;position:relative}.page{padding:24px 32px 120px;max-width:1240px}.page-hero{padding:32px 32px 24px;background:linear-gradient(180deg,var(--hero-from) 0%,var(--bg) 100%)}.page-hero.green{background:linear-gradient(180deg,var(--hero-green-from) 0%,var(--bg) 100%)}.page-hero .page{padding:0}.eyebrow{font-size:12px;font-weight:700;color:var(--text-soft);text-transform:uppercase;letter-spacing:1.4px}.title{font-size:32px;font-weight:800;letter-spacing:-.8px;line-height:1.1;margin:6px 0 8px}.subtitle{color:var(--text-muted);font-size:14px}.section-title{font-size:22px;font-weight:800;letter-spacing:-.3px;margin:28px 0 12px}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.spacer{flex:1}.muted{color:var(--text-muted)}.small{font-size:12px}.topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;padding:12px 32px;background:var(--topbar);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.bottom-nav{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;border-radius:9999px;padding:10px 20px;font-size:14px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;line-height:1;background:var(--surface-2);color:var(--text);transition:transform .1s,background .15s,opacity .15s;white-space:nowrap}.btn:hover{background:var(--card-hover)}.btn:active{transform:scale(.97)}.btn:disabled{opacity:.45;cursor:default;transform:none}.btn-primary{background:var(--green);color:var(--on-accent)}.btn-primary:hover{background:var(--green-hover)}.btn-light{background:var(--button-light-bg);color:var(--button-light-fg)}.btn-light:hover{background:var(--button-light-bg);opacity:.88}.btn-outline{background:transparent;box-shadow:inset 0 0 0 1px var(--border-light)}.btn-outline:hover{background:transparent;box-shadow:inset 0 0 0 1px var(--text)}.btn-ghost{background:transparent;color:var(--text-muted);padding:8px 12px}.btn-ghost:hover{background:transparent;color:var(--text)}.btn-danger{background:transparent;color:var(--red-ink);box-shadow:inset 0 0 0 1px #f3727f99}.btn-danger:hover{background:#f3727f1a}.btn-lg{padding:14px 32px;font-size:15px}.btn-sm{padding:7px 14px;font-size:12px;letter-spacing:1px}.icon-btn{width:36px;height:36px;border-radius:50%;display:inline-grid;place-items:center;border:0;cursor:pointer;background:var(--icon-btn);color:var(--text-muted);transition:color .15s,transform .1s,background .15s}.icon-btn:hover{color:var(--text);transform:scale(1.04)}.icon-btn.plain{background:transparent}.play-btn{width:56px;height:56px;border-radius:50%;background:var(--green);color:var(--on-accent);border:0;cursor:pointer;display:grid;place-items:center;box-shadow:var(--shadow-medium);transition:transform .1s,background .15s}.play-btn:hover{transform:scale(1.05);background:var(--green-hover)}.chip{border:0;cursor:pointer;border-radius:9999px;padding:8px 14px;background:var(--surface-2);color:var(--text);font-size:14px;font-weight:600;white-space:nowrap;transition:background .15s}.chip:hover{background:var(--card-hover)}.chip.active{background:var(--inverse-bg);color:var(--inverse-fg)}.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.chips::-webkit-scrollbar{display:none}.input,.select,.textarea{width:100%;background:var(--surface-2);border:0;border-radius:4px;padding:12px 14px;box-shadow:var(--inset-border);outline:none;font-size:15px}.input:focus,.select:focus,.textarea:focus{box-shadow:var(--focus) 0 0 0 2px inset}.input.pill{border-radius:500px;padding:12px 20px}.textarea{min-height:140px;resize:vertical;line-height:1.5}.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--text-muted) 50%),linear-gradient(135deg,var(--text-muted) 50%,transparent 50%);background-position:calc(100% - 18px) 52%,calc(100% - 13px) 52%;background-size:5px 5px;background-repeat:no-repeat;padding-right:36px}.field{display:flex;flex-direction:column;gap:8px}.field>span{font-size:14px;font-weight:700}.form{display:flex;flex-direction:column;gap:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.checkbox{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:14px}.checkbox input{accent-color:var(--green-dark);width:18px;height:18px}.card{background:var(--surface);border-radius:8px;padding:16px;transition:background .2s}.card.hover:hover{background:var(--card-hover);cursor:pointer}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.stat-card{background:var(--surface);border-radius:8px;padding:16px}.stat-value{font-size:32px;font-weight:800;letter-spacing:-1px}.stat-label{color:var(--text-muted);font-size:13px;font-weight:600;margin-top:2px}.lesson{display:grid;grid-template-columns:56px 1fr auto;gap:16px;align-items:center;padding:12px 16px;border-radius:6px;cursor:pointer;transition:background .15s}.lesson:hover{background:var(--hover)}.lesson-num{width:56px;height:56px;border-radius:6px;background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:var(--shadow-medium)}.lesson-num b{font-size:22px;line-height:1}.lesson-num span{font-size:10px;color:var(--text-muted);margin-top:2px}.lesson-title{font-weight:700;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-meta{color:var(--text-muted);font-size:14px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;min-width:120px}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:9999px;padding:3px 9px;font-size:11px;font-weight:700;background:var(--surface-2);color:var(--text-muted)}.badge.warn{color:var(--orange-ink);background:#ffa42b24}.badge.ok{color:var(--green-ink);background:#1ed76024}.badge.bad{color:var(--red-ink);background:#f3727f24}.badge.info{color:var(--blue-ink);background:#539df524}.stack-bar{display:flex;height:4px;width:120px;border-radius:2px;overflow:hidden;background:var(--border)}.stack-bar>i{display:block;height:100%}.rate-bar{height:4px;border-radius:2px;background:var(--border);overflow:hidden;flex:1;min-width:60px}.rate-bar>i{display:block;height:100%;background:var(--text);border-radius:2px}.rate-bar.good>i{background:var(--green)}.rate-bar.mid>i{background:var(--orange)}.rate-bar.low>i{background:var(--red)}.tracklist{width:100%;border-collapse:collapse;font-size:14px}.tracklist th{text-align:left;color:var(--text-muted);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:1px;padding:8px 12px;border-bottom:1px solid var(--line-strong)}.tracklist td{padding:10px 12px}.tracklist tbody tr{transition:background .15s}.tracklist tbody tr:hover{background:var(--hover)}.tracklist td:first-child,.tracklist th:first-child{border-radius:6px 0 0 6px}.tracklist td:last-child,.tracklist th:last-child{border-radius:0 6px 6px 0}.num-col{width:40px;color:var(--text-muted);text-align:right;font-variant-numeric:tabular-nums}.student{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:12px;padding:8px 12px;border-radius:6px;transition:background .15s}.student:hover{background:var(--hover)}.student .num-col{align-self:start;padding-top:1px;font-weight:600;font-size:15px}.student.dirty .student-name:after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-left:8px;vertical-align:middle}.student-name{font-weight:600;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-sub{color:var(--text-muted);font-size:12px;margin-top:2px}.marks{display:flex;gap:6px}.mark{height:36px;min-width:36px;border-radius:9999px;border:0;cursor:pointer;padding:0 14px;background:var(--surface-2);color:var(--text-muted);font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:background .12s,color .12s,transform .08s}.mark:hover{color:var(--text);background:var(--card-hover)}.mark:active{transform:scale(.94)}.mark.on{color:var(--on-accent)}.mark:disabled{cursor:default}.mark:disabled:not(.on){opacity:.35}.mark .short{display:none}.comment-input{grid-column:2 / -1}.save-bar{position:sticky;bottom:16px;z-index:6;margin:24px auto 0;max-width:560px;display:flex;align-items:center;gap:12px;background:var(--elevated);border-radius:8px;padding:10px 10px 10px 18px;box-shadow:var(--shadow-heavy);font-size:14px;font-weight:600}.sheet-wrap{overflow:auto;border-radius:8px;background:var(--surface);max-height:calc(100vh - 260px)}.sheet{border-collapse:separate;border-spacing:0;font-size:13px}.sheet th,.sheet td{padding:0;text-align:center;border-bottom:1px solid var(--line)}.sheet thead th{position:sticky;top:0;background:var(--surface);z-index:2;padding:8px 4px;font-weight:600;color:var(--text-muted);min-width:42px;vertical-align:bottom}.sheet thead th a:hover{color:var(--text)}.sheet .name{position:sticky;left:0;background:var(--surface);z-index:1;text-align:left;padding:6px 12px;white-space:nowrap;font-weight:600;min-width:200px;max-width:260px;overflow:hidden;text-overflow:ellipsis}.sheet thead .name{z-index:3}.sheet .cell{width:42px;height:34px}.list-no{display:inline-block;width:22px;margin-right:8px;text-align:right;color:var(--text-muted);font-weight:600;font-variant-numeric:tabular-nums}.sheet .day-start{border-left:1px solid var(--line-strong)}.dot{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:11px;font-weight:800;color:var(--on-accent)}.dot.blank{background:transparent;color:var(--text-faint)}.vhead{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;max-height:120px;overflow:hidden;text-overflow:ellipsis;font-size:11px}.bars{display:flex;align-items:flex-end;gap:3px;height:120px;padding-top:8px}.bars>div{flex:1;min-width:4px;border-radius:2px 2px 0 0;background:var(--bar);position:relative;transition:background .15s}.bars>div:hover{background:var(--green-dark)}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay);z-index:50;display:grid;place-items:center;padding:16px;animation:fade .15s}.modal{background:var(--elevated);border-radius:8px;box-shadow:var(--shadow-heavy);width:100%;max-width:480px;max-height:calc(100vh - 32px);overflow:auto;padding:24px;animation:pop .18s}.modal-title{font-size:22px;font-weight:800;margin-bottom:20px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{opacity:0;transform:translateY(8px) scale(.98)}}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%);z-index:60;background:var(--blue);color:var(--on-accent);font-weight:700;font-size:14px;border-radius:8px;padding:12px 18px;box-shadow:var(--shadow-heavy);animation:pop .2s;max-width:calc(100vw - 32px)}.toast.error{background:var(--red)}.toast.success{background:var(--green)}.empty{text-align:center;padding:48px 16px;color:var(--text-muted)}.empty b{display:block;color:var(--text);font-size:18px;margin-bottom:6px}.error-box{color:var(--red-ink);background:#f3727f1f;border-radius:6px;padding:10px 14px;font-size:14px}.spinner{width:28px;height:28px;border-radius:50%;border:3px solid var(--line-strong);border-top-color:var(--green);animation:spin .8s linear infinite;margin:48px auto}@keyframes spin{to{transform:rotate(360deg)}}.avatar{width:32px;height:32px;border-radius:50%;background:var(--avatar);display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}.avatar.green{background:var(--green);color:var(--on-accent)}.tabs{display:flex;gap:8px;margin-bottom:20px;overflow-x:auto;scrollbar-width:none}.login-page{min-height:100%;display:grid;place-items:center;padding:24px 16px;background:linear-gradient(180deg,var(--login-from) 0%,var(--login-to) 70%)}.login-card{width:100%;max-width:420px;background:var(--bg);border-radius:8px;padding:40px 32px;box-shadow:var(--shadow-heavy)}.login-card .logo-mark{width:48px;height:48px;margin:0 auto 16px}.login-card h1{text-align:center;font-size:28px;font-weight:800;letter-spacing:-.6px;margin-bottom:8px}.demo-hint{margin-top:20px;font-size:12px;color:var(--text-muted);text-align:center;line-height:1.6}@media (max-width: 1024px){:root{--sidebar: 76px}.sidebar .label,.sidebar-caption,.logo-text,.sidebar-user .label{display:none}.nav-link{justify-content:center;padding:12px 0}.logo{justify-content:center;padding:4px 0 16px}.sidebar-user{flex-direction:column;justify-content:center;padding:8px 0;gap:8px}.sidebar-actions{flex-direction:column;margin:0}}@media (max-width: 768px){body{background:var(--bg)}.app{display:block;padding:0}.sidebar{display:none}.main{border-radius:0;height:100%;padding-bottom:calc(var(--bottom-nav) + env(safe-area-inset-bottom))}.page{padding:16px 16px 120px}.page-hero{padding:24px 16px 16px}.topbar{padding:10px 16px;flex-wrap:wrap}.topbar>.chips{order:10;flex-basis:100%}.topbar>.spacer:has(+.chips){display:none}.save-bar{white-space:nowrap;padding-left:14px;gap:6px}.title{font-size:26px}.section-title{font-size:18px;margin-top:22px}.form-grid{grid-template-columns:1fr}.bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:20;height:calc(var(--bottom-nav) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:linear-gradient(180deg,var(--bottom-nav-from) 0%,var(--bottom-nav-to) 40%);box-shadow:0 -1px 0 var(--line)}.bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;color:var(--text-muted);font-weight:600}.bottom-nav a.active{color:var(--text)}.bottom-nav a.active svg{color:var(--green-ink)}.lesson{grid-template-columns:48px 1fr;gap:12px;padding:10px 8px}.lesson-num{width:48px;height:48px}.lesson-side{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;min-width:0}.student{grid-template-columns:24px 1fr;gap:8px 10px;padding:12px 4px;border-bottom:1px solid var(--line);border-radius:0}.student .num-col{width:auto}.marks{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.mark{height:44px;padding:0 6px}.mark .long{display:none}.mark .short{display:inline}.comment-input{grid-column:1 / -1}.save-bar{position:fixed;left:8px;right:8px;bottom:calc(var(--bottom-nav) + 8px + env(safe-area-inset-bottom));margin:0;max-width:none}.toast{bottom:calc(var(--bottom-nav) + 16px)}.hide-mobile{display:none!important}.sheet-wrap{max-height:calc(100vh - 240px)}.sheet .name{min-width:140px;max-width:160px;padding:6px 8px}.tracklist .hide-sm{display:none}.modal{padding:20px;align-self:end;border-radius:12px 12px 0 0;max-width:none}.overlay{padding:0;place-items:end stretch}}@media (min-width: 769px){.show-mobile{display:none!important}}
