:root{color-scheme:light;--bg:#f6f8fa;--panel:#fff;--panel2:#edf2f4;--text:#172c35;--muted:#647781;--line:#e1e8ec;--green:#087f70;--accent:#dff3e9;--accentText:#076453;--hero:#123c35;--heroText:#e7f7ed;--heroMuted:#acd0bf;--lime:#cbf291;--shadow:0 5px 22px rgba(28,51,62,.045);--error:#a74529;--errorBg:#fff0e8}
:root[data-theme=dark]{color-scheme:dark;--bg:#10191f;--panel:#1a262e;--panel2:#23323b;--text:#eef5f6;--muted:#a4b6c0;--line:#2e404b;--green:#8ee0b9;--accent:#213f36;--accentText:#b0edc8;--hero:#234a3c;--heroText:#edfbf2;--heroMuted:#b1d1bd;--lime:#cced9f;--shadow:none;--error:#ffc2a6;--errorBg:#3c2b24}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.45}button,input,select{font:inherit}button{cursor:pointer;border:0;color:inherit;background:none}button:disabled{opacity:.6;cursor:default}button:focus-visible,input:focus-visible{outline:3px solid var(--green);outline-offset:3px}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.2;letter-spacing:-.8px}h2{font-size:23px;letter-spacing:-.6px;line-height:1.3}h3{font-size:16px;line-height:1.4}small{font-size:12px}.app{max-width:620px;margin:auto;min-height:100vh;padding-bottom:92px}.topbar{padding:23px 20px 17px;display:flex;justify-content:space-between;align-items:center;gap:10px}.brand{display:flex;align-items:center;gap:11px}.brand-icon{height:43px;width:43px;border-radius:14px;background:var(--hero);display:grid;place-items:center;color:var(--lime)}.brand-icon svg{width:25px;height:25px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.4px;color:var(--muted)}.brand-title{font-size:20px;font-weight:750;letter-spacing:-.5px}.top-actions{display:flex;gap:4px}.icon-button{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;flex-shrink:0}.icon-button:hover{background:var(--panel2)}.icon-button.favorited{color:var(--lime)}.icon-button.favorited svg{fill:currentColor}.status{display:none;margin:0 20px 15px;padding:11px 13px;border-radius:12px;font-size:12px;background:var(--panel2);color:var(--muted);line-height:1.5}.status.visible{display:block}.status.error{background:var(--errorBg);color:var(--error)}main{padding:0 20px}.hero{border-radius:24px;padding:21px;background:var(--hero);color:var(--heroText);position:relative;overflow:hidden}.hero .eyebrow{color:var(--heroMuted)}.hero-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.group-title-button{text-align:left;padding:9px 0 10px;display:flex;gap:9px;align-items:center;min-width:0}.group-title-button h1{overflow-wrap:anywhere;font-size:29px}.group-title-button svg{width:17px;flex-shrink:0}.hero .icon-button{margin-right:-7px;margin-top:-5px;color:var(--heroMuted)}.hero .icon-button.favorited{color:var(--lime)}.hero-bottom{border-top:1px solid #ffffff24;margin-top:7px;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:10px}.sub-label{font-size:12px;color:var(--heroMuted)}.sub-tabs{display:flex;gap:3px;background:#0000001a;border-radius:10px;padding:3px}.sub-tabs button{font-size:12px;min-height:33px;min-width:36px;border-radius:8px;padding:5px 11px;color:var(--heroText)}.sub-tabs button.active{background:var(--lime);color:var(--onLime,#183c2e);font-weight:700}.welcome{padding:27px 24px 24px}.welcome h1{font-size:28px;max-width:290px;margin:12px 0}.welcome p{color:var(--heroMuted);font-size:14px;max-width:300px;margin-bottom:24px}.button-primary{background:var(--green);color:var(--panel);padding:13px 18px;border-radius:13px;font-weight:650;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px}.hero .button-primary{background:var(--lime);color:var(--onLime,#183c2e)}.section-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.section-label{font-size:13px;font-weight:700}.text-button{color:var(--green);font-size:12px;font-weight:650;padding:8px;min-height:38px;display:inline-flex;gap:5px;align-items:center}.text-button svg{width:15px;height:15px}.week-mode{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px}.dot{width:6px;height:6px;background:var(--green);border-radius:50%;display:inline-block}.week-tabs{display:flex;background:var(--panel2);padding:4px;border-radius:14px;gap:4px}.week-tabs button{flex:1;min-height:42px;border-radius:11px;font-size:13px;color:var(--muted)}.week-tabs button.active{background:var(--panel);color:var(--text);box-shadow:0 2px 5px #1329360b;font-weight:700}.week-tabs button.active .week-dot{display:inline-block}.week-dot{display:none;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:6px;vertical-align:middle}.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:18px}.day{border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:64px;color:var(--muted);position:relative;padding:8px 0}.day span{font-size:11px}.day strong{font-size:16px;line-height:1.2;font-weight:600}.day.today:after{content:"";width:4px;height:4px;position:absolute;bottom:5px;border-radius:50%;background:currentColor}.day.active{background:var(--green);color:var(--panel)}.day.active strong{font-weight:700}.day.weekend:not(.active){color:var(--muted);opacity:.8}.day-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:24px 0 15px}.day-heading h2{font-size:22px}.day-date{font-size:12px;color:var(--muted);margin-top:3px}.count-label{font-size:11px;color:var(--muted);white-space:nowrap}.lessons{display:flex;flex-direction:column;gap:12px}.lesson{display:grid;grid-template-columns:51px 1fr;gap:10px;align-items:start}.time-col{padding-top:16px}.start-time{font-size:14px;font-weight:750;letter-spacing:-.3px}.end-time{font-size:11px;color:var(--muted);margin-top:2px}.timeline-line{width:1px;height:33px;background:var(--line);margin:12px 0 0 20px}.lesson-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow);min-width:0}.lesson-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:9px}.pair-num{font-size:10px;letter-spacing:1px;font-weight:750;color:var(--muted)}.live{border-radius:7px;font-size:10px;font-weight:700;background:var(--accent);color:var(--accentText);padding:4px 7px}.subject{font-size:15px;line-height:1.38;letter-spacing:-.2px;font-weight:700;overflow-wrap:anywhere}.teacher{font-size:12px;color:var(--muted);display:flex;gap:6px;align-items:flex-start;margin-top:10px}.teacher svg{width:15px;height:15px;flex-shrink:0;margin-top:1px}.lesson-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.tag{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:600;padding:5px 8px;border-radius:7px;background:var(--panel2);color:var(--muted)}.tag.room{background:var(--accent);color:var(--accentText)}.tag svg{width:12px;height:12px}.variant+.variant{border-top:1px solid var(--line);margin-top:14px;padding-top:13px}.empty{border:1px dashed var(--line);padding:32px 24px;border-radius:20px;text-align:center;margin:12px 0;background:var(--panel)}.empty-icon{color:var(--green);height:50px;width:50px;background:var(--accent);display:grid;place-items:center;margin:0 auto 14px;border-radius:16px}.empty h3{font-size:17px;margin-bottom:8px}.empty p{font-size:13px;color:var(--muted);max-width:320px;margin:auto;line-height:1.6}.empty .button-primary{margin-top:18px}.footer-note{margin:22px 0 7px;color:var(--muted);font-size:10px;line-height:1.7;text-align:center}.bottom-nav{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);max-width:620px;width:100%;background:var(--panel);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding:8px 10px max(10px,env(safe-area-inset-bottom));box-shadow:0 -4px 20px #00000003}.nav-item{min-height:56px;font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center}.nav-item>span:first-child{display:grid;place-items:center;width:54px;height:28px;border-radius:10px}.nav-item.active{color:var(--green);font-weight:700}.nav-item.active>span:first-child{background:var(--accent)}.nav-item svg{height:20px;width:20px}.page-heading{margin:15px 0 22px}.page-heading p{color:var(--muted);font-size:13px;margin-top:9px}.fav-card{background:var(--panel);border:1px solid var(--line);border-radius:17px;display:flex;align-items:center;margin-bottom:11px;padding:6px 9px 6px 17px;gap:5px}.fav-open{flex:1;padding:13px 0;text-align:left;min-width:0}.fav-open strong{font-size:17px;overflow-wrap:anywhere}.fav-open small{color:var(--muted);display:block;margin-top:4px}.fav-card .icon-button{color:var(--green)}.fav-card .icon-button svg{fill:currentColor}.settings-card{padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:18px;margin-bottom:14px}.settings-card h3{margin-bottom:6px}.settings-card p{font-size:12px;color:var(--muted);line-height:1.65}.theme-options{display:flex;gap:7px;margin-top:14px}.theme-option{flex:1;background:var(--panel2);padding:12px 4px;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;min-height:70px;border:1px solid transparent}.theme-option.active{background:var(--accent);color:var(--accentText);border-color:var(--green)}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:13px}.source-title{font-size:11px!important;margin-top:12px}.source-url{font-family:monospace;font-size:11px;color:var(--green);overflow-wrap:anywhere;margin:10px 0}.source-detail{font-size:11px!important;margin-top:5px}.settings-card .week-tabs{margin-top:12px}.settings-note{font-size:11px;color:var(--muted);text-align:center;margin:23px 0;line-height:1.8}.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:20;display:flex;align-items:flex-end;justify-content:center}.scrim{position:absolute;inset:0;background:#061c29a6;backdrop-filter:blur(3px)}.sheet{position:relative;width:100%;max-width:620px;background:var(--bg);border-radius:27px 27px 0 0;max-height:90vh;max-height:90dvh;display:flex;flex-direction:column;padding:10px 20px 0;box-shadow:0 -15px 60px #0002;animation:slideup .2s ease}.sheet-grip{width:34px;height:4px;border-radius:3px;background:var(--line);margin:0 auto 18px}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.sheet-heading h2{margin-top:4px}.search-box{display:flex;align-items:center;gap:9px;padding:0 13px;background:var(--panel);border:1px solid var(--line);border-radius:13px;height:49px;color:var(--muted);flex-shrink:0}.search-box svg{width:20px}.search-box input{width:100%;min-width:0;border:0;outline:none;background:transparent;color:var(--text);font-size:13px;height:100%}.search-box input::placeholder{color:var(--muted);opacity:.8}.chooser-filters{display:flex;align-items:center;gap:7px;margin:14px 0 9px}.chip{font-size:11px;min-height:38px;border-radius:10px;padding:7px 11px;color:var(--muted)}.chip.active{background:var(--accent);color:var(--accentText);font-weight:700}#groupCount{margin-left:auto;font-size:11px;color:var(--muted)}.group-list{overflow:auto;padding-bottom:25px;min-height:160px;overscroll-behavior:contain}.group-row{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--line);padding:5px 0}.group-pick{flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-align:left;padding:10px 0;min-height:60px}.group-avatar{width:36px;height:36px;border-radius:11px;background:var(--panel2);display:grid;place-items:center;color:var(--muted);flex-shrink:0}.group-avatar svg{width:18px}.group-name{font-size:14px;overflow-wrap:anywhere;font-weight:650}.group-current{font-size:10px;color:var(--green);margin-top:3px}.group-row .favorited{color:var(--green)}.modal-open{overflow:hidden}.toast{position:fixed;bottom:93px;left:50%;transform:translate(-50%,10px);background:var(--text);color:var(--bg);border-radius:12px;padding:12px 18px;font-size:12px;z-index:40;max-width:90%;width:max-content;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.spinning svg{animation:spin 1s linear infinite}.intro-points{display:flex;gap:12px;flex-direction:column;margin:25px 4px}.intro-point{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.intro-point svg{color:var(--green);width:19px}.manual-note{font-size:11px;color:var(--muted);padding-top:9px}.live-card{border-color:var(--green)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes slideup{from{transform:translateY(25px);opacity:.5}to{transform:translateY(0);opacity:1}}@media(min-width:580px){main{padding:0 28px}.topbar{padding:28px}.days{gap:9px}.lesson{grid-template-columns:62px 1fr}.lesson-card{padding:20px}.subject{font-size:16px}.app{border-left:1px solid var(--line);border-right:1px solid var(--line)}}@media(max-width:350px){main{padding:0 13px}.topbar{padding:18px 13px}.brand-title{font-size:18px}.brand-icon{width:36px;height:36px}.icon-button{width:39px}.hero{padding:17px}.days{gap:2px}.lesson{grid-template-columns:46px 1fr;gap:6px}.lesson-card{padding:13px}.subject{font-size:14px}}

.monday-events{margin-top:18px;border:1px solid var(--line);border-radius:13px;padding:13px 15px;color:var(--muted);font-size:11px}.monday-events summary{cursor:pointer;font-size:12px;color:var(--text);font-weight:600}.monday-events p{margin-top:9px;line-height:1.7}.monday-events small{display:block;margin-top:10px;font-size:10px;line-height:1.6}
.teacher-search{margin-bottom:10px}.teacher-results-heading{display:flex;align-items:center;justify-content:space-between;min-height:43px;font-size:11px;color:var(--muted)}.teacher-pick{width:100%;display:flex;align-items:center;gap:12px;min-height:73px;padding:14px 0;border-bottom:1px solid var(--line);text-align:left}.teacher-result-text{min-width:0;flex:1}.teacher-result-text strong{display:block;font-size:15px;font-weight:650;overflow-wrap:anywhere}.teacher-result-text small{display:block;font-size:11px;margin-top:4px;color:var(--muted)}.teacher-pick>svg{width:18px;color:var(--muted);flex-shrink:0}.teacher-pick:hover .group-avatar{background:var(--accent);color:var(--green)}.teacher-title-button{width:100%;justify-content:space-between;padding-top:14px}.teacher-title-button h1{font-size:25px;line-height:1.25}.teacher-group-count{font-size:12px;color:var(--lime);white-space:nowrap}.teacher-groups{margin-top:10px;display:flex;flex-direction:column;gap:6px}.teacher-group-button{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;text-align:left;padding:9px 10px;min-height:47px;border-radius:10px;background:var(--panel2);color:var(--text)}.teacher-group-button>span{font-size:12px;font-weight:650;overflow-wrap:anywhere}.teacher-group-button small{grid-column:1;font-size:10px;color:var(--muted);margin-top:2px}.teacher-group-button svg{grid-column:2;grid-row:1 / span 2;align-self:center;width:15px;height:15px;color:var(--green)}.teacher-group-button:hover{background:var(--accent)}.nav-item{font-size:9px}@media(max-width:350px){.teacher-title-button h1{font-size:22px}.teacher-hero .hero-bottom{gap:8px}.teacher-hero .sub-label{font-size:11px}.nav-item{font-size:8.5px}}


.palette-setting{margin-top:21px;padding-top:18px;border-top:1px solid var(--line)}.palette-setting-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.palette-setting-heading h3{font-size:14px;margin:0}.palette-setting-heading>span{font-size:10px;color:var(--muted)}.palette-summary{width:100%;display:flex;align-items:center;gap:12px;text-align:left;background:var(--panel2);border:1px solid var(--line);border-radius:14px;padding:11px}.palette-summary-text{min-width:0;flex:1}.palette-summary-text strong,.palette-summary-text span,.palette-summary-text small{display:block}.palette-summary-text strong{font-size:15px}.palette-summary-text span{font-size:10px;color:var(--muted);margin-top:2px}.palette-summary-text small{font-size:10px;color:var(--green);margin-top:6px;font-weight:600}.palette-summary>svg{width:17px;flex-shrink:0}.palette-setting-note{font-size:10px!important;margin-top:10px}.palette-sample{display:block;background:var(--bg);padding:9px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.palette-summary .palette-sample{width:69px;flex-shrink:0;padding:6px}.sample-top{display:flex;align-items:center;gap:4px;margin-bottom:6px}.sample-top i:first-child{width:8px;height:8px;border-radius:3px;background:var(--green)}.sample-top i:nth-child(2){height:3px;width:31%;border-radius:2px;background:var(--muted);opacity:.65}.sample-top i:last-child{width:5px;height:5px;margin-left:auto;border-radius:50%;background:var(--green)}.sample-hero{display:flex;align-items:center;justify-content:space-between;background:var(--hero);border-radius:5px;padding:8px;margin-bottom:5px}.sample-hero i:first-child{display:block;width:44%;height:4px;border-radius:2px;background:var(--heroText)}.sample-hero i:last-child{display:block;width:15px;height:8px;border-radius:4px;background:var(--lime)}.sample-bottom{display:flex;align-items:center;gap:5px}.sample-bottom>i{height:16px;width:4px;border-radius:3px;background:var(--green)}.sample-bottom>span{display:block;flex:1;background:var(--panel);border-radius:4px;padding:5px}.sample-bottom>span i{display:block;width:70%;height:3px;border-radius:2px;background:var(--text);opacity:.8}.sample-bottom>span i+i{width:42%;height:2px;margin-top:3px;opacity:.3}.palette-summary .sample-top{margin-bottom:4px}.palette-summary .sample-hero{padding:5px}.palette-summary .sample-hero i:last-child{width:8px;height:5px}.palette-summary .sample-bottom>span{padding:3px}.palette-summary .sample-bottom>i{height:12px}.palette-sheet .sheet-heading{margin-bottom:8px;flex-shrink:0}.palette-hint{font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:16px;flex-shrink:0}.palette-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:4px 3px 14px}.palette-choice{min-width:0;text-align:left;padding:7px;border:2px solid transparent;border-radius:15px;background:var(--panel)}.palette-choice:hover{background:var(--panel2)}.palette-choice.selected{border-color:var(--green);background:var(--accent)}.palette-choice-name{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:7px 3px 0;min-height:21px}.palette-choice-name strong{font-size:13px;font-weight:650}.palette-check{width:17px;height:17px;display:grid;place-items:center;background:var(--green);color:var(--panel);border-radius:50%;visibility:hidden}.palette-check svg{width:12px;height:12px;stroke-width:2.5}.palette-choice.selected .palette-check{visibility:visible}.palette-description{display:block;font-size:10px;color:var(--muted);margin:2px 3px 3px}.palette-footer{border-top:1px solid var(--line);padding:12px 0 max(14px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.palette-footer p{font-size:11px;color:var(--muted)}.palette-footer .button-primary{min-height:42px;padding:10px 18px;font-size:13px}.palette-sheet .sheet-grip{flex-shrink:0}@media(min-width:540px){.palette-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:350px){.palette-sheet{padding-left:13px;padding-right:13px}.palette-sheet h2{font-size:21px}.palette-summary{gap:9px;padding:9px}.palette-summary .palette-sample{width:58px}.palette-description{font-size:9px}}
.topbar{padding-top:max(23px,env(safe-area-inset-top))}.app{padding-bottom:calc(92px + env(safe-area-inset-bottom))}.install-card{display:flex;gap:14px;align-items:flex-start}.install-mark{display:grid;place-items:center;flex-shrink:0;width:40px;height:48px;color:var(--green);background:var(--accent);border-radius:12px}.install-card .text-button{padding-left:0}.web-sheet-body{overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(24px,env(safe-area-inset-bottom))}.web-sheet .sheet-heading{flex-shrink:0}.web-sheet .sheet-heading h2{font-size:22px}.steps{padding-left:24px;margin:0}.steps li{padding:0 0 20px 5px}.steps li::marker{font-weight:700;color:var(--green)}.steps p,.web-hint{font-size:13px;color:var(--muted);line-height:1.7;margin-top:7px}.steps .button-primary{margin-top:13px}.web-hint{padding:14px;background:var(--panel2);border-radius:12px;font-size:11px}.import-status{font-size:13px;line-height:1.6;margin-top:14px;overflow-wrap:anywhere}.wide-button{margin-top:15px;width:100%;font-size:13px}.source-detail{overflow-wrap:anywhere}.text-button{text-decoration:none}.sheet input[type=search]{font-size:16px}.sheet-grip{flex-shrink:0}.teacher span{overflow-wrap:anywhere;min-width:0}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
