:root{--bg:#f7f7f5;--surface:#fff;--ink:#1a1a1a;--muted:#6b6f76;--line:#e4e4e0;--accent:#1b3a5f;--accent-soft:#e8eef5;--warn:#b45309;--warn-bg:#fff7ed;--danger:#9e2b2b;--ok:#3d6b4f;--radius:12px;--font:"Segoe UI", system-ui, -apple-system, sans-serif;--serif:"Georgia", "Times New Roman", serif;--shadow:0 1px 0 #0000000a}html[data-theme=dark]{--bg:#12151a;--surface:#1c2129;--ink:#e8eaed;--muted:#9aa3ad;--line:#2a313c;--accent:#7eabdf;--accent-soft:#243041;--warn:#f0b06a;--warn-bg:#3a2a1c;--danger:#e07070;--ok:#7cbc94;--shadow:0 1px 0 #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--ink);font-family:var(--font);-webkit-font-smoothing:antialiased;margin:0;padding:0;font-size:16px;line-height:1.45}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:none}a{color:var(--accent)}#app{box-sizing:border-box;flex-direction:column;max-width:480px;min-height:100dvh;margin:0 auto;padding-bottom:72px;display:flex}#app.app-tabs{height:100dvh;max-height:100dvh;overflow:hidden}#app.app-picker{height:100dvh;max-height:100dvh;padding-bottom:0;overflow:hidden}#app.app-picker .panel{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;min-height:0;padding-bottom:max(24px, env(safe-area-inset-bottom));flex:auto;overflow:hidden auto}html.app-picker-mode.ptr-on body{overscroll-behavior-y:auto}.topbar{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:16px 16px 8px;display:flex}.topbar .brand{color:var(--muted);letter-spacing:.02em;font-size:13px}.topbar h1{font-family:var(--serif);margin:4px 0 0;font-size:28px;font-weight:600;line-height:1.15}.topbar-left{min-width:0}.group-title-btn{text-align:left;cursor:pointer;color:inherit;background:0 0;border:none;margin:0;padding:0;display:block}.group-title-btn h1{margin:4px 0 0}.topbar-sub{min-height:1.35em;color:var(--muted);margin:4px 0 0;font-size:13px;line-height:1.35}.picker-back-btn{border:1px solid var(--line);background:var(--card,var(--surface));color:var(--fg);cursor:pointer;border-radius:999px;flex-shrink:0;align-self:center;margin:0;padding:6px 12px;font-size:13px;font-weight:500}.picker-back-btn:active{transform:scale(.98)}.badge{border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:12px;font-weight:500;display:inline-flex}.badge.warn{background:var(--warn-bg);color:var(--warn);border:1px solid #fdd6a5}.badge.remote{background:var(--accent-soft);color:var(--accent)}.badge.muted{color:var(--muted);background:#eee}.week-block{padding-top:4px}.week-nav{align-items:center;gap:8px;padding:4px 16px 0;display:flex}.week-nav-btn{border:1px solid var(--line);background:var(--surface);width:36px;height:36px;color:var(--ink);cursor:pointer;border-radius:10px;font-size:18px;line-height:1}.week-nav-btn:disabled{opacity:.35;cursor:default}.week-nav-label{text-align:center;color:var(--muted);background:var(--accent-soft);cursor:pointer;border:none;border-radius:10px;flex:1;padding:8px 6px;font-size:13px}.days{justify-content:center;gap:6px;padding:8px 16px 12px;display:flex;overflow-x:auto}.days.days-align-start{justify-content:flex-start}.days button{background:var(--surface);border:1px solid var(--line);min-width:44px;color:var(--ink);border-radius:999px;flex:none;padding:8px 12px}.days button.active{background:var(--accent);border-color:var(--accent);color:#fff}html[data-theme=dark] .days button.active{color:#12151a}.due-quick{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.chip{border:1px solid var(--line);background:var(--surface);color:var(--accent);cursor:pointer;border-radius:999px;padding:6px 12px;font-size:13px}.due-set-hint{margin:6px 0 0;font-size:13px}.legal-card h2{margin:0 0 12px;font-size:1.15rem}.legal-p{color:var(--muted);margin:0 0 10px;font-size:13px;line-height:1.5}html[data-theme=dark] .audit-line--warn{color:#f0b0b0;background:#3a2222}.panel{flex:1;padding:0 16px 16px}.lesson{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:10px;padding:14px 14px 12px;position:relative}.lesson-formation{background:var(--accent-soft);border-style:dashed}.lesson-formation .lesson-subject{color:var(--accent)}.lesson.cancelled{opacity:.65}.lesson.has-override{border-left:3px solid var(--warn)}.lesson.is-live{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent), var(--shadow)}.lesson.is-live.has-override{border-left-color:var(--accent)}.lesson-live-badge{background:var(--accent);color:#fff;letter-spacing:.02em;border-radius:999px;flex-shrink:0;align-items:center;padding:3px 10px;font-size:12px;font-weight:700;line-height:1.2;display:inline-flex}.lesson.is-live .lesson-top{align-items:center;margin-bottom:8px}.lesson.is-live .lesson-subject{margin-top:0}.now-strip{border-radius:var(--radius);background:var(--accent-soft);border:1px solid var(--line);margin:0 0 12px;padding:10px 12px}.now-strip-text{color:var(--accent);margin:0;font-size:13px;font-weight:600;line-height:1.35}.now-strip-live .now-strip-text{margin-bottom:8px}.now-strip-bar{background:#1b3a5f24;border-radius:999px;height:4px;overflow:hidden}html[data-theme=dark] .now-strip-bar{background:#7eabdf33}.now-strip-bar-fill{border-radius:inherit;background:var(--accent);height:100%;transition:width .4s}.now-strip-done{border-color:var(--line);background:0 0}.now-strip-done .now-strip-text,.now-strip-done{color:var(--muted);font-size:13px;font-weight:500}.lesson-top{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.lesson-time{font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap;font-size:13px}.lesson-subject{margin:0 0 4px;font-size:17px;font-weight:600}.lesson-meta{color:var(--muted);font-size:13px}.lesson-meta .strike{margin-right:4px;text-decoration:line-through}.break-line{text-align:center;color:var(--muted);margin:2px 0 10px;font-size:12px}.hw-toggle{border-top:1px solid var(--line);width:100%;color:var(--accent);justify-content:space-between;align-items:center;min-height:0;margin-top:10px;padding:8px 0 0;font-size:14px;line-height:1.2;display:flex}.hw-toggle-empty{margin-top:6px;padding:3px 0 0;font-size:13px}.hw-toggle-quiet{opacity:.72;border-top:1px solid #0000;margin-top:6px;padding:2px 0 0;font-size:12px}.hw-toggle-quiet .hw-label.empty{color:var(--muted);letter-spacing:.01em;font-weight:400}.hw-toggle-quiet:hover,.hw-toggle-quiet:focus-visible{opacity:1;border-top-color:var(--line)}.hw-label.empty{color:var(--muted);font-weight:400}.hw-label.has{color:var(--ok);font-weight:600}.hw-day-block{margin:14px 0 18px}.hw-day-block:first-of-type{margin-top:8px}.hw-day-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:baseline;gap:10px;margin:0 2px 10px;padding-bottom:6px;display:flex}.hw-day-title{letter-spacing:.01em;margin:0;font-size:15px;font-weight:700}.hw-day-count{text-align:center;min-width:1.4em;color:var(--muted);background:var(--accent-soft);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600}.hw-day-block .hw-card{margin-bottom:10px}.hw-day-block .hw-card:last-child{margin-bottom:0}.hw-day-block.is-jump-target{outline:2px solid var(--accent,#1a4b8c);outline-offset:4px;background:var(--accent-soft,#1a4b8c14);border-radius:10px;transition:background .35s,outline-color .35s}@media (prefers-reduced-motion:reduce){.hw-day-block.is-jump-target{transition:none}}.hw-body{background:var(--bg);white-space:pre-wrap;word-break:break-word;border-radius:8px;margin-top:8px;padding:10px;font-size:14px}.hw-body-anim{opacity:0;grid-template-rows:0fr;transition:grid-template-rows .42s cubic-bezier(.2,.85,.25,1),opacity .34s;display:grid}.hw-body-anim.is-open{opacity:1;grid-template-rows:1fr}.hw-body-clip{min-height:0;overflow:hidden}.hw-body-anim .hw-body{margin-top:8px}.hw-author-block{margin-bottom:12px;padding-bottom:4px}.hw-author-block:last-child{margin-bottom:0}.hw-author-block .hw-author{margin-bottom:6px}.hw-inline-item{margin-bottom:10px;padding-left:2px}.hw-inline-item:last-child{margin-bottom:0}.hw-inline-text{white-space:pre-wrap;word-break:break-word;margin:0 0 4px}.hw-photos{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-top:8px;display:grid}.hw-photos a,.hw-photo-btn{border:1px solid var(--line);background:var(--bg);aspect-ratio:1;cursor:zoom-in;-webkit-tap-highlight-color:transparent;border-radius:8px;width:100%;margin:0;padding:0;display:block;overflow:hidden}.hw-photos img{object-fit:cover;background:linear-gradient(90deg,#e8eaed 25%,#f4f5f7 50%,#e8eaed 75%) 0 0/200% 100%;width:100%;height:100%;display:block}.hw-lightbox{z-index:1200;opacity:0;touch-action:none;background:#000;flex-direction:column;justify-content:center;align-items:center;padding:0;transition:opacity .22s,background .2s;display:flex;position:fixed;inset:0}.hw-lightbox.is-open{opacity:1}.hw-lightbox.is-closing{opacity:0}.hw-lightbox-stage{touch-action:none;width:100%;max-width:none;height:100%;max-height:none;display:block;position:absolute;inset:0;overflow:hidden}.hw-lightbox-track{will-change:transform;flex-flow:row;align-items:stretch;height:100%;margin:0;padding:0;display:flex}.hw-lightbox-slide{box-sizing:border-box;flex:0 0 100%;justify-content:center;align-items:center;width:100%;min-width:100%;max-width:100%;height:100%;display:flex;position:relative;overflow:hidden}.hw-lightbox-img{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:100%;box-shadow:none;transform-origin:50%;will-change:transform, opacity;-webkit-user-select:none;user-select:none;opacity:1;pointer-events:none;border-radius:0}.hw-lightbox.is-open .hw-lightbox-img{opacity:1}.hw-lightbox-close{top:max(10px, env(safe-area-inset-top));right:max(12px, env(safe-area-inset-right));z-index:3;color:#fff;cursor:pointer;background:#ffffff29;border:0;border-radius:999px;width:40px;height:40px;font-size:26px;line-height:1;position:absolute}.hw-lightbox-hint{display:none}.hw-lightbox-counter{top:max(16px, env(safe-area-inset-top));z-index:3;color:#ffffffe6;letter-spacing:.04em;text-align:center;pointer-events:none;margin:0;font-size:14px;font-weight:600;position:absolute;left:0;right:0}.hw-lightbox-nav{z-index:2;pointer-events:none;justify-content:space-between;align-items:center;padding:0 8px;display:flex;position:absolute;inset:0}.hw-lightbox-nav-btn{pointer-events:auto;color:#fff;cursor:pointer;background:#ffffff24;border:0;border-radius:999px;width:42px;height:42px;font-size:28px;line-height:1}html.hw-lightbox-open{overflow:hidden}@media (prefers-reduced-motion:reduce){.hw-body-anim{opacity:1;grid-template-rows:1fr;transition:none}.hw-lightbox,.hw-lightbox-img{transition:none!important}}.hw-files{flex-direction:column;gap:6px;margin-top:8px;display:flex}.hw-file-link{border:1px solid var(--line);background:var(--surface);color:var(--accent);word-break:break-word;border-radius:8px;padding:8px 10px;font-size:14px;text-decoration:none;display:block}.hw-file-link:hover{background:var(--accent-soft)}.code-list{flex-direction:column;gap:8px;margin-top:10px;display:flex}.code-row{border:1px solid var(--line);border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;font-size:14px;display:flex}.code-row .meta{color:var(--muted);font-size:12px}.code-row .code-plain{word-break:break-all;color:var(--accent);margin-top:4px;font-family:ui-monospace,Cascadia Mono,Consolas,monospace;font-size:13px}.code-row-actions{flex-direction:column;flex-shrink:0;gap:6px;display:flex}.code-row-actions .btn{white-space:nowrap}.code-list{flex-direction:column;gap:10px;width:100%;margin-top:8px;display:flex}.code-list-hint{margin:0;font-size:13px}.code-card{box-sizing:border-box;border:1px solid var(--line);background:var(--surface);border-radius:12px;flex-direction:column;align-items:stretch;gap:8px;width:100%;max-width:100%;padding:12px;display:flex}.code-card.is-editing{border-color:var(--accent);background:var(--accent-soft)}.code-card.is-revoking{border-color:#b42318}.code-card-head{justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex}.code-card-group{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:15px;font-weight:650;overflow:hidden}.code-card-name{font-size:16px;font-weight:600;line-height:1.25}.code-card-code{box-sizing:border-box;background:var(--bg);width:100%;max-width:100%;color:var(--accent);word-break:break-all;overflow-wrap:anywhere;white-space:normal;border-radius:8px;margin:0;padding:8px 10px;font-family:ui-monospace,Cascadia Mono,Consolas,monospace;font-size:14px;line-height:1.35;display:block}.code-card-code.is-empty{color:var(--muted);font-family:inherit;font-size:13px}.code-card-form{border-top:1px solid var(--line);flex-direction:column;gap:8px;width:100%;padding-top:4px;display:flex}.code-card-form .field{width:100%;margin:0}.code-card-form .field label{color:var(--muted);font-size:12px}.code-card-form input{box-sizing:border-box;width:100%;max-width:100%;display:block}.code-card-btns{grid-template-columns:1fr 1fr;gap:8px;width:100%;display:grid}.code-card-btns .btn{box-sizing:border-box;width:100%;min-width:0}.code-card-btns .btn:nth-child(3):last-child{grid-column:1/-1}.code-card-revoke{border-top:1px solid var(--line);flex-direction:column;gap:8px;width:100%;padding-top:4px;display:flex}.code-card-revoke-msg{margin:0;font-size:13px;line-height:1.35}.code-card-danger{color:#fff;background:#b42318;border-color:#b42318}.admin-panel .admin-acc{border:1px solid var(--line);background:var(--surface);border-radius:12px;margin:0 0 8px;overflow:hidden}.admin-acc-head{width:100%;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;font-size:15px;font-weight:600;display:flex}.admin-acc-head:hover,.admin-acc-head:focus-visible{background:var(--accent-soft)}.admin-acc.is-open .admin-acc-head{border-bottom:1px solid var(--line)}.admin-acc-title{min-width:0}.admin-acc-mark{color:var(--muted);flex-shrink:0;font-weight:500}.admin-acc-anim{opacity:0;grid-template-rows:0fr;transition:grid-template-rows .42s cubic-bezier(.2,.85,.25,1),opacity .34s;display:grid}.admin-acc-anim.is-open{opacity:1;grid-template-rows:1fr}.admin-acc-clip{min-height:0;overflow:hidden}.admin-acc-body{padding:12px 14px 14px}@media (prefers-reduced-motion:reduce){.admin-acc-anim{opacity:1;grid-template-rows:1fr;transition:none}}.nav{--nav-font:12px;--nav-pad-y:8px;--nav-pad-x:2px;background:var(--surface);border-top:1px solid var(--line);width:min(480px,100%);padding:8px 4px calc(8px + env(safe-area-inset-bottom));z-index:20;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.nav.nav-size-sm{--nav-font:10px;--nav-pad-y:6px;--nav-pad-x:2px}.nav button{font-size:var(--nav-font);color:var(--muted);padding:var(--nav-pad-y) var(--nav-pad-x);flex-direction:column;align-items:center;gap:2px;display:flex;position:relative}.nav button.active{color:var(--accent);font-weight:600}.nav.nav-with-icons{--nav-font:11px;--nav-pad-y:6px;padding-top:6px}.nav.nav-with-icons button{gap:3px;padding-bottom:10px}.nav-ico{flex-shrink:0;width:22px;height:22px;display:block}.nav-label{line-height:1.1}.nav.nav-with-icons button.active:after{content:"";background:var(--accent);border-radius:2px;width:18px;height:2px;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.teacher-suggest{flex-wrap:wrap;gap:8px;margin:0 0 12px;display:flex}.free-rooms-slots{margin-bottom:10px}.free-rooms-grid{flex-wrap:wrap;gap:8px;display:flex}.free-room-chip{border:1px solid color-mix(in srgb, var(--ok) 35%, var(--line));background:color-mix(in srgb, var(--ok) 12%, var(--surface));border-radius:10px;padding:8px 12px;font-size:14px;font-weight:600}.busy-room-row{border:1px solid var(--line);background:var(--surface);border-radius:10px;flex-direction:column;gap:2px;margin-bottom:8px;padding:10px 12px;display:flex}.busy-room-row strong{font-size:15px}.teacher-slot-top{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:4px;display:flex}.teacher-slot.cancelled{opacity:.72}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:10px;padding:14px}.card h3{margin:0 0 8px;font-size:16px}.field{flex-direction:column;gap:4px;margin-bottom:12px;display:flex}.field label{color:var(--muted);font-size:13px}.field input,.field select,.field textarea{border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px 12px}.field textarea{resize:vertical;min-height:88px}.btn{background:var(--accent);color:#fff;border-radius:8px;justify-content:center;align-items:center;gap:6px;width:100%;padding:10px 14px;font-weight:500;display:inline-flex}.btn.secondary{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.btn.danger{background:var(--danger)}.btn+.btn{margin-top:8px}.row-actions{gap:8px;display:flex}.row-actions .btn{flex:1}.muted{color:var(--muted);font-size:13px}.install-steps{background:var(--bg);border:1px solid var(--line);border-radius:8px;margin-top:12px;padding:10px 12px}.install-steps-title{margin:0 0 8px;font-size:14px;font-weight:600}.install-steps ol{margin:0 0 8px;padding-left:1.2em;font-size:14px;line-height:1.45}.install-steps li{margin-bottom:6px}.error{color:var(--danger);margin:8px 0;font-size:14px}.ok{color:var(--ok);margin:8px 0;font-size:14px}.search{margin:0 16px 12px}.search input{border:1px solid var(--line);background:var(--surface);border-radius:10px;width:100%;padding:12px 14px}.group-list button{text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);-webkit-tap-highlight-color:transparent;width:100%;margin-bottom:8px;padding:14px;transition:transform .14s cubic-bezier(.2,.85,.25,1),background .15s,border-color .15s,box-shadow .15s}.group-list button:active,.group-list button.is-picked{background:var(--accent-soft);border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);transform:scale(.97)}@media (prefers-reduced-motion:reduce){.group-list button{transition:background .1s,border-color .1s}.group-list button:active,.group-list button.is-picked{transform:none}}.group-list button strong{font-size:17px;display:block}.group-list button span{color:var(--muted);font-size:13px}.empty{text-align:center;color:var(--muted);padding:40px 16px}.footer-note{color:var(--muted);text-align:center;padding:8px 16px 24px;font-size:12px}.session-pill{background:var(--accent-soft);color:var(--accent);white-space:nowrap;border-radius:999px;flex-shrink:0;justify-content:center;align-self:flex-start;align-items:center;margin-top:4px;padding:6px 10px;font-size:12px;line-height:1.2;display:inline-flex}.audit-line{color:var(--muted);border-bottom:1px solid var(--line);word-break:break-word;padding:8px 0;font-size:12px}.audit-line--warn{color:#8b1e1e;background:#fff1f0;border-bottom-color:#0000;border-radius:6px;margin-bottom:4px;padding:8px 6px}.audit-list{max-height:360px;margin-top:8px;overflow:auto}.more-v2-lead{margin:0 0 12px}.more-profile{align-items:center;gap:14px;padding:16px;display:flex}.more-avatar{background:var(--accent-soft);width:52px;height:52px;color:var(--accent);box-shadow:none;border-radius:50%;outline:none;flex-shrink:0;justify-content:center;align-items:center;font-size:20px;font-weight:700;display:flex;overflow:hidden}.more-avatar-photo img{object-fit:cover;width:100%;height:100%;display:block}.more-profile-card{padding:0;overflow:hidden}.more-profile-card .more-profile{box-shadow:none;background:0 0;border:none;margin:0}.more-profile-centered .more-profile{text-align:center;flex-direction:column;gap:12px;padding:22px 16px 8px}.more-profile-centered .more-avatar{width:88px;height:88px;font-size:32px}.more-profile-centered .more-profile-meta{align-items:center}.more-profile-centered .more-profile-line{justify-content:center}.more-profile-centered .more-profile-name{font-size:22px}.more-avatar-actions{flex-wrap:wrap;align-items:center;gap:8px;padding:0 16px 14px;display:flex}.more-avatar-actions .btn{flex:none}.more-avatar-links{flex-direction:column;align-items:center;gap:10px;padding:4px 16px 16px}.more-photo-links-row{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.more-photo-link{color:var(--accent);cursor:pointer;background:0 0;border:0;margin:0;padding:0;font-size:15px;font-weight:600}.more-photo-link:active{opacity:.7}.more-photo-sep{color:var(--muted);-webkit-user-select:none;user-select:none;font-size:15px;line-height:1}.more-avatar-legal{text-align:center;max-width:34em;margin:0;font-size:12px;line-height:1.4}.theme-toggle-ico{justify-content:center;align-items:center;display:inline-flex;position:relative}.theme-toggle-ico .theme-ico{justify-content:center;align-items:center;transition:opacity .38s cubic-bezier(.2,.85,.25,1),transform .45s cubic-bezier(.2,.85,.25,1);display:flex}.theme-toggle-ico .theme-ico svg{width:22px;height:22px;display:block}.theme-toggle-ico .theme-ico-sun{opacity:1;position:absolute;transform:rotate(0)scale(1)}.theme-toggle-ico .theme-ico-moon{opacity:0;position:absolute;transform:rotate(-50deg)scale(.55)}.theme-toggle-ico.is-dark .theme-ico-sun{opacity:0;transform:rotate(50deg)scale(.55)}.theme-toggle-ico.is-dark .theme-ico-moon{opacity:1;transform:rotate(0)scale(1)}@media (prefers-reduced-motion:reduce){.theme-toggle-ico .theme-ico{transition:opacity .15s}}.avatar-crop-overlay{z-index:1200;box-sizing:border-box;background:#0000008c;justify-content:center;align-items:flex-end;padding:12px;display:flex;position:fixed;inset:0}.avatar-crop-sheet{background:var(--card,var(--bg-elevated,#fff));width:min(420px,100%);color:var(--text);margin-bottom:env(safe-area-inset-bottom,0);border-radius:16px 16px 12px 12px;padding:16px 16px 18px;box-shadow:0 12px 40px #00000047}.avatar-crop-sheet h3{margin:0 0 6px;font-size:18px}.avatar-crop-sheet>.muted{margin:0 0 14px;font-size:13px}.avatar-crop-stage{justify-content:center;margin-bottom:14px;display:flex}.avatar-crop-canvas{aspect-ratio:1;touch-action:none;cursor:grab;width:min(260px,72vw);height:auto;box-shadow:0 0 0 1px var(--line);background:#111;border-radius:50%}.avatar-crop-canvas:active{cursor:grabbing}.avatar-crop-zoom-row{grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-bottom:14px;font-size:13px;display:grid}.avatar-crop-zoom{width:100%;accent-color:var(--accent)}.avatar-crop-zoom-val{text-align:right;font-variant-numeric:tabular-nums;min-width:3.2em;color:var(--muted)}.avatar-crop-actions{justify-content:flex-end;gap:8px;display:flex}.avatar-crop-actions .btn{min-width:110px}@media (width>=560px){.avatar-crop-overlay{align-items:center}.avatar-crop-sheet{border-radius:16px}}.hw-toggle-lead{align-items:center;gap:8px;min-width:0;display:inline-flex}.hw-mini-ava,.hw-mini-letter{object-fit:cover;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.hw-mini-letter{background:var(--accent-soft);color:var(--accent);font-size:10px;font-weight:700;line-height:1}.hw-author{align-items:center;gap:6px;margin-bottom:6px;display:flex}.hw-author-ava,.hw-author-letter{object-fit:cover;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;display:inline-flex}.hw-author-letter{background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:700}.hw-author-name{color:var(--muted);font-size:12px}.hw-card-head{align-items:center;gap:8px;margin-bottom:2px;display:flex}.hw-card-head h3{margin:0}.hw-card-by{margin:0 0 6px;font-size:12px}.hw-inline-item .hw-author{margin-bottom:4px}.more-profile-meta{flex-direction:column;min-width:0;display:flex}.more-profile-name{margin-bottom:6px;font-size:17px;font-weight:700}.more-profile-line{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.more-role-badge{background:var(--accent);color:#fff;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600;display:inline-block}.more-profile-group{color:var(--muted);font-size:13px}.more-login{scroll-margin:24px}.login-highlight{outline:2px solid var(--accent);box-shadow:0 0 0 4px var(--accent-soft), 0 8px 24px #0000001f;animation:.9s ease-in-out 2 loginPulse}.login-highlight input{outline:2px solid var(--accent);outline-offset:1px}@keyframes loginPulse{0%,to{transform:scale(1)}50%{transform:scale(1.015)}}@media (prefers-reduced-motion:reduce){.login-highlight{animation:none}}.more-settings{padding:12px 8px 8px}.more-settings h3{margin-bottom:4px;padding:0 8px}.more-row{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:10px;align-items:center;gap:12px;padding:12px 8px;display:flex}.more-row+.more-row{border-top:1px solid var(--line);border-radius:0}.more-row:active{background:var(--accent-soft)}.more-row-ico{width:22px;height:22px;color:var(--accent);flex-shrink:0;justify-content:center;align-items:center;display:flex}.more-row-ico svg{width:22px;height:22px;display:block}.more-row>.more-row-ico:last-child{color:var(--muted);width:18px;height:18px;margin-left:auto}.more-row>.more-row-ico:last-child svg{width:18px;height:18px}.more-row-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.more-row-title{font-size:15px;font-weight:600}.more-row-sub{color:var(--muted);font-size:12px}.more-support h3{margin-bottom:6px}.more-logout-card{padding:12px}.more-logout-btn{box-sizing:border-box;width:100%;margin:0;display:block}.more-legal{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px;margin:8px 0 4px;padding:4px 8px;display:flex}.more-legal-link{color:var(--accent);cursor:pointer;text-underline-offset:2px;background:0 0;border:none;padding:4px 0;font-size:13px;text-decoration:underline}.more-legal-sep{color:var(--muted);font-size:13px}.more-session-note{text-align:center;margin:4px 0 0}.tab-stage{flex:auto;width:100%;height:0;min-height:0;position:relative;overflow:hidden}.tab-stage.tab-swiping{touch-action:pan-y}.tab-track{will-change:transform;flex-direction:row;align-items:stretch;display:flex}.tab-track.tab-pager{height:100%;min-height:0;max-height:100%}.tab-pane{box-sizing:border-box;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;background:var(--bg);align-self:stretch;height:100%;min-height:0;max-height:100%;overflow:hidden auto}.tab-pane-inner{min-height:min-content}@keyframes tabEnterFromRight{0%{opacity:.45;transform:translate(36px)}to{opacity:1;transform:translate(0,0)}}@keyframes tabEnterFromLeft{0%{opacity:.45;transform:translate(-36px)}to{opacity:1;transform:translate(0,0)}}@keyframes tabLeaveToLeft{0%{opacity:1;transform:translate(0,0)}to{opacity:.5;transform:translate(-24px)}}@keyframes tabLeaveToRight{0%{opacity:1;transform:translate(0,0)}to{opacity:.5;transform:translate(24px)}}.tab-stage.tab-enter-right{animation:.28s cubic-bezier(.22,.9,.3,1) tabEnterFromRight}.tab-stage.tab-enter-left{animation:.28s cubic-bezier(.22,.9,.3,1) tabEnterFromLeft}.tab-stage.tab-leave-left{animation:.16s ease-in forwards tabLeaveToLeft}.tab-stage.tab-leave-right{animation:.16s ease-in forwards tabLeaveToRight}html.ui-motion .tab-stage.tab-enter-right{animation:.32s cubic-bezier(.2,.85,.25,1) tabEnterSoftRight}html.ui-motion .tab-stage.tab-enter-left{animation:.32s cubic-bezier(.2,.85,.25,1) tabEnterSoftLeft}html.ui-motion .tab-stage.tab-leave-left{animation:.18s ease-in forwards tabLeaveSoftLeft}html.ui-motion .tab-stage.tab-leave-right{animation:.18s ease-in forwards tabLeaveSoftRight}@keyframes tabEnterSoftRight{0%{opacity:.78;transform:translate(16px)}to{opacity:1;transform:translate(0,0)}}@keyframes tabEnterSoftLeft{0%{opacity:.78;transform:translate(-16px)}to{opacity:1;transform:translate(0,0)}}@keyframes tabLeaveSoftLeft{0%{opacity:1;transform:translate(0,0)}to{opacity:.72;transform:translate(-12px)}}@keyframes tabLeaveSoftRight{0%{opacity:1;transform:translate(0,0)}to{opacity:.72;transform:translate(12px)}}@media (prefers-reduced-motion:reduce){.tab-stage.tab-enter-right,.tab-stage.tab-enter-left,.tab-stage.tab-leave-left,.tab-stage.tab-leave-right,.tab-track{transition:none!important;animation:none!important}}.boot-splash{z-index:2000;box-sizing:border-box;text-align:center;color:#fff;opacity:1;background:radial-gradient(circle at 50% 34%,#2a5a8f 0%,#184271 42%,#0c2544 100%);flex-direction:column;justify-content:center;align-items:center;gap:20px;min-height:100dvh;padding:32px 20px;transition:opacity .4s;display:flex;position:fixed;inset:0;overflow:hidden}.boot-splash.is-leaving{opacity:0;pointer-events:none}.boot-splash-badge{justify-content:center;align-items:center;width:160px;height:160px;display:flex;position:relative}.boot-splash-halo{filter:blur(10px);opacity:0;background:conic-gradient(#ffd16600 0deg,#ffd1668c 90deg,#ffffff26 180deg,#ffd1668c 270deg,#ffd16600 360deg);border-radius:50%;position:absolute;inset:-18px}.boot-splash-logo{object-fit:cover;box-sizing:border-box;opacity:0;will-change:transform, opacity;background:#fff;border-radius:50%;width:128px;height:128px;padding:6px;position:relative;transform:scale(.5)rotate(-14deg);box-shadow:0 18px 48px #0006,0 0 0 1px #ffffff80,0 0 40px #78b4ff59}.boot-splash-title{letter-spacing:.02em;color:#fff;text-shadow:0 2px 12px #0000004d;opacity:0;margin:0;font-size:23px;font-weight:800;transform:translateY(10px)}.boot-splash-sub{letter-spacing:.04em;color:#e2eeffc7;opacity:0;margin:0;font-size:13px;font-weight:500;transform:translateY(10px)}.boot-splash.is-ready .boot-splash-logo{animation:.72s cubic-bezier(.18,.9,.24,1.08) forwards splashLogoIn,2.6s ease-in-out .8s infinite splashLogoFloat}.boot-splash.is-ready .boot-splash-halo{animation:.6s .25s forwards splashHaloIn,5s linear .25s infinite splashHaloSpin}.boot-splash.is-ready .boot-splash-title{animation:.5s cubic-bezier(.2,.8,.25,1) .38s forwards splashTextUp}.boot-splash.is-ready .boot-splash-sub{animation:.5s cubic-bezier(.2,.8,.25,1) .5s forwards splashTextUp}.boot-splash.is-leaving .boot-splash-logo{animation:.55s cubic-bezier(.5,0,.75,0) forwards splashLogoFly}.boot-splash.is-leaving .boot-splash-title,.boot-splash.is-leaving .boot-splash-sub{animation:.3s forwards splashTextOut}@keyframes splashLogoIn{0%{opacity:0;transform:scale(.5)rotate(-14deg)}60%{opacity:1;transform:scale(1.06)rotate(3deg)}to{opacity:1;transform:scale(1)rotate(0)}}@keyframes splashLogoFloat{0%,to{transform:translate(0,0)scale(1)}50%{transform:translateY(-6px)scale(1.015)}}@keyframes splashLogoFly{0%{opacity:1;transform:translate(0,0)scale(1)}to{opacity:0;transform:translateY(-90px)scale(1.18)}}@keyframes splashHaloIn{to{opacity:1}}@keyframes splashHaloSpin{to{transform:rotate(360deg)}}@keyframes splashTextUp{to{opacity:1;transform:translate(0,0)}}@keyframes splashTextOut{to{opacity:0;transform:translateY(-14px)}}@media (prefers-reduced-motion:reduce){.boot-splash,.boot-splash-logo,.boot-splash-halo,.boot-splash-title,.boot-splash-sub{opacity:1!important;transition:opacity .2s!important;animation:none!important;transform:none!important}.boot-splash-halo{opacity:.6!important}}.toast-wrap{top:max(12px, env(safe-area-inset-top));z-index:1500;pointer-events:none;flex-direction:column;align-items:center;gap:8px;padding:0 12px;display:flex;position:fixed;left:0;right:0}.toast{pointer-events:auto;color:#fff;opacity:0;background:#1b3a5f;border-radius:12px;width:fit-content;max-width:440px;padding:11px 16px;font-size:14px;font-weight:500;line-height:1.3;transition:opacity .22s,transform .3s cubic-bezier(.2,.85,.25,1);transform:translateY(-16px)scale(.98);box-shadow:0 10px 28px #0000003d}.toast.is-in{opacity:1;transform:translate(0,0)scale(1)}.toast.is-out{opacity:0;transform:translateY(-14px)scale(.98)}.toast-error{background:#b42318}@media (prefers-reduced-motion:reduce){.toast{transition:opacity .15s;transform:none}.toast.is-in,.toast.is-out{transform:none}}html.ui-motion .nav button,html.ui-motion .days button,html.ui-motion .week-nav-btn,html.ui-motion .btn,html.ui-motion .hw-toggle,html.ui-motion .more-row{transition:transform 90ms,background .15s,border-color .15s}html.ui-motion .nav button:active,html.ui-motion .days button:active,html.ui-motion .week-nav-btn:active:not(:disabled),html.ui-motion .btn:active,html.ui-motion .hw-toggle:active,html.ui-motion .more-row:active{transform:scale(.96)}html.ui-motion{scroll-behavior:smooth}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}html.ui-motion .nav.nav-with-icons button.active:after{animation:.3s cubic-bezier(.2,.85,.25,1) navDot}html.ui-motion .nav.nav-with-icons button.active .nav-ico{animation:.32s cubic-bezier(.2,.85,.25,1) navIcoPop}@keyframes navDot{0%{opacity:0;transform:translate(-50%)scaleX(.2)}to{opacity:1;transform:translate(-50%)scaleX(1)}}@keyframes navIcoPop{0%{transform:translateY(2px)scale(.9)}60%{transform:translateY(-2px)scale(1.08)}to{transform:translateY(0)scale(1)}}@keyframes cardIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translate(0,0)}}html.ui-motion .do-cascade .panel>*,html.ui-motion .do-cascade>.hw-day-block{animation:.36s cubic-bezier(.2,.85,.25,1) both cardIn}html.ui-motion .do-cascade .panel>:first-child{animation-delay:20ms}html.ui-motion .do-cascade .panel>:nth-child(2){animation-delay:50ms}html.ui-motion .do-cascade .panel>:nth-child(3){animation-delay:80ms}html.ui-motion .do-cascade .panel>:nth-child(4){animation-delay:.11s}html.ui-motion .do-cascade .panel>:nth-child(5){animation-delay:.14s}html.ui-motion .do-cascade .panel>:nth-child(6){animation-delay:.17s}html.ui-motion .do-cascade .panel>:nth-child(7){animation-delay:.2s}html.ui-motion .do-cascade .panel>:nth-child(8){animation-delay:.23s}html.ui-motion .do-cascade .panel>:nth-child(n+9){animation-delay:.26s}@media (prefers-reduced-motion:reduce){html .do-cascade .panel>*,html .do-cascade>.hw-day-block{animation:none!important}}@keyframes dayInRight{0%{opacity:0;transform:translate(20px,8px)}to{opacity:1;transform:translate(0,0)}}@keyframes dayInLeft{0%{opacity:0;transform:translate(-20px,8px)}to{opacity:1;transform:translate(0,0)}}html.ui-motion .day-swap.day-swap-right>*{animation:.36s cubic-bezier(.2,.85,.25,1) both dayInRight}html.ui-motion .day-swap.day-swap-left>*{animation:.36s cubic-bezier(.2,.85,.25,1) both dayInLeft}html.ui-motion .day-swap>:first-child{animation-delay:20ms}html.ui-motion .day-swap>:nth-child(2){animation-delay:50ms}html.ui-motion .day-swap>:nth-child(3){animation-delay:80ms}html.ui-motion .day-swap>:nth-child(4){animation-delay:.11s}html.ui-motion .day-swap>:nth-child(5){animation-delay:.14s}html.ui-motion .day-swap>:nth-child(6){animation-delay:.17s}html.ui-motion .day-swap>:nth-child(7){animation-delay:.2s}html.ui-motion .day-swap>:nth-child(8){animation-delay:.23s}html.ui-motion .day-swap>:nth-child(n+9){animation-delay:.26s}@media (prefers-reduced-motion:reduce){html .day-swap>*{animation:none!important}}.hw-skeleton{pointer-events:none}.sk{background:linear-gradient(90deg, var(--line) 25%, var(--surface) 50%, var(--line) 75%);background-size:200% 100%;border-radius:8px;animation:1.3s ease-in-out infinite skShimmer}.sk-title{width:52%;height:16px;margin-bottom:12px}.sk-line{width:100%;height:12px;margin-bottom:8px}.sk-line.short{width:64%}@keyframes skShimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.sk{animation:none}}html.ptr-on body{overscroll-behavior-y:contain}.ptr-indicator{z-index:1400;background:var(--surface);width:40px;height:40px;color:var(--accent);opacity:0;pointer-events:none;border-radius:50%;justify-content:center;align-items:center;margin-left:-20px;display:flex;position:fixed;top:0;left:50%;transform:translateY(-50px);box-shadow:0 6px 18px #0000002e}.ptr-indicator svg{width:22px;height:22px}.ptr-indicator.is-refreshing svg{animation:.7s linear infinite ptrSpin}@keyframes ptrSpin{to{transform:rotate(360deg)}}@media (width>=768px){:root{--app-max:680px}#app{max-width:var(--app-max)}.nav{width:min(var(--app-max), 100%)}.panel{padding-left:20px;padding-right:20px}.topbar{padding:18px 20px 10px}.nav button:hover{color:var(--accent)}.btn:hover{filter:brightness(1.03)}.more-row:hover{background:var(--accent-soft)}}@media (width>=1024px){:root{--app-max:1080px}body{background:radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), transparent 60%), var(--bg)}#app,html.is-desktop #app{max-width:var(--app-max)}#app.app-tabs,#app.app-picker{border-left:1px solid var(--line);border-right:1px solid var(--line);background:var(--bg)}.nav{width:min(var(--app-max), 100%);box-shadow:0 -1px 0 var(--line)}.topbar{padding:20px 28px 12px}.topbar h1{font-size:1.65rem}.panel{padding:0 28px 28px}.tab-pane[data-tab=schedule] .panel,.tab-pane[data-tab=hw] .panel,.tab-pane[data-tab=teachers] .panel,.tab-pane[data-tab=overrides] .panel{width:100%;max-width:760px;margin-left:auto;margin-right:auto}.tab-pane[data-tab=more] .panel.more-v2{width:100%;max-width:720px;margin-left:auto;margin-right:auto;display:block}.panel.more-v2>.more-profile-card{position:static}.more-logout-card{box-sizing:border-box;width:100%}.more-logout-btn{width:100%}.admin-panel{display:block}.admin-acc-head{padding:14px 16px}.admin-acc-head:hover{background:var(--accent-soft)}.code-card-btns .btn{min-height:40px}.lesson:hover{border-color:color-mix(in srgb, var(--accent) 35%, var(--line))}.chip:hover{border-color:var(--accent)}}@media (width>=1280px){:root{--app-max:1180px}#app,html.is-desktop #app{max-width:var(--app-max)}.nav{width:min(var(--app-max), 100%)}.tab-pane[data-tab=schedule] .panel,.tab-pane[data-tab=hw] .panel,.tab-pane[data-tab=teachers] .panel,.tab-pane[data-tab=overrides] .panel{max-width:820px}.tab-pane[data-tab=more] .panel.more-v2{max-width:800px}}
