*{box-sizing:border-box} :root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;color:#202535;background:#f6f7fb;font-synthesis:none;font-size:14px;--blue:#3478f6;--ink:#202535;--muted:#9197a7;--line:#e9ecf2;--shadow:0 8px 32px #202f5810}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #96baff;outline-offset:3px}button{border:0}button svg{flex:none}a{color:var(--blue)}h1,h2,h3,p{margin:0}h1{font-weight:650;letter-spacing:-.9px}h2{font-weight:650;letter-spacing:-.3px}button{color:inherit}svg{width:20px;height:20px;vertical-align:middle}button .icon{width:18px;height:18px}.boot{height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--muted)}.brand-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:linear-gradient(150deg,#6198ff,#2869e8);color:#fff;font-weight:600;font-size:20px;box-shadow:0 5px 15px #407ef02b}.shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(160deg,#eff2f9f0,#e9eef7b8);border-right:1px solid #e3e8f1;position:fixed;inset:0 auto 0 0;width:216px;padding:34px 19px 24px;display:flex;flex-direction:column;z-index:10;backdrop-filter:blur(25px)}.brand{display:flex;align-items:center;gap:12px;padding:0 9px}.brand-title{font-weight:700;font-size:22px;letter-spacing:2px}.brand-sub{font-size:9px;color:#8b95a8;letter-spacing:2px;margin-top:4px}.workspace-label{font-size:10px;letter-spacing:1.5px;color:#96a0b2;margin:43px 14px 15px}.nav{display:grid;gap:7px}.nav-button{width:100%;display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:11px;background:transparent;color:#737e94;text-align:left;font-weight:500}.nav-button.active{background:white;box-shadow:0 3px 12px #4a5b8410;color:#3478f6}.nav-button:hover{background:#ffffff90}.nav-button.active:hover{background:#fff}.nav-button .nav-count{margin-left:auto;color:#9ca7ba;font-size:11px}.sidebar-note{margin-top:29px;margin-left:14px;font-size:11px;color:#9ba5b8;line-height:1.9}.sidebar-bottom{margin-top:auto;padding-top:40px}.private-note{display:flex;align-items:center;gap:6px;font-size:10px;color:#929db1;padding:20px 14px 0}.private-note svg{width:13px;height:13px}.main{grid-column:2;padding:36px 38px 30px;max-width:1800px;width:100%;margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px;gap:18px}.breadcrumb{display:flex;gap:9px;align-items:center;font-size:12px;color:#a4aaba}.breadcrumb strong{font-weight:500;color:#6e778a}.top-right{display:flex;align-items:center;gap:18px}.sync{font-size:11px;color:#8d98ab;display:flex;align-items:center;gap:6px}.sync:before{content:"";width:6px;height:6px;border-radius:50%;background:#67bd9a}.sync.error:before{background:#e89b62}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dfe8fb;color:#5574ac;font-size:12px;font-weight:600}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;color:#9ba4b4;margin-bottom:9px}.page-heading h1{font-size:29px;line-height:1.3}.page-heading p{font-size:12px;color:#98a0b0;margin-top:9px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;border-radius:9px;padding:0 15px;background:white;border:1px solid #e5e9f1;font-size:12px;font-weight:500;white-space:nowrap;transition:background .15s,transform .15s}.button:hover{background:#f4f6fc}.button:active{transform:scale(.98)}.button.primary{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 3px 8px #3478f61c}.button.primary:hover{background:#2469e8}.button.soft{background:#edf3ff;border-color:transparent;color:#3875df}.button.danger{color:#c96363;background:#fff7f7;border-color:#f5dfdf}.button.small{min-height:32px;padding:0 10px;font-size:11px}.button.icon-only{width:34px;min-height:34px;padding:0}.button.text{border-color:transparent;background:transparent;color:#8e99ad}.button.wide{width:100%}.toolbar-actions,.button-row{display:flex;align-items:center;gap:8px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:#ffffffd9;border:1px solid #eaedf4;border-radius:14px;padding:19px 20px;display:flex;align-items:center;gap:15px;box-shadow:0 3px 10px #34476a02}.stat-icon{width:41px;height:41px;display:grid;place-items:center;border-radius:12px;background:#eef3ff;color:#6389db}.stat:nth-child(2) .stat-icon{background:#edf7f3;color:#70ac97}.stat:nth-child(3) .stat-icon{background:#f4effc;color:#a18acd}.stat-label{font-size:11px;color:#98a1b1;margin-bottom:6px}.stat-value{font-size:22px;font-weight:650;line-height:1}.stat-value span{font-size:11px;color:#a2a9b7;font-weight:400;margin-left:7px}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 259px;gap:22px}.panel{background:#fff;border:1px solid #e7ebf2;border-radius:16px;box-shadow:0 3px 12px #26334f02;overflow:hidden}.panel-header{padding:19px 21px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #f0f2f6}.panel-header h2{font-size:14px}.panel-header small{font-size:10px;color:#a0a8b8}.calendar-toolbar{display:flex;align-items:center;gap:14px}.week-title{font-size:13px;font-weight:600;color:#5e687d}.week-controls{display:flex;gap:3px}.week-controls button{border:1px solid #edf0f5;border-radius:6px;width:25px;height:25px;background:#fff;color:#8c96a8}.week-controls button svg{width:14px;height:14px}.today-button{background:#f4f6fa;color:#828ea4;border:0;border-radius:6px;height:26px;font-size:10px;padding:0 9px}.calendar-scroll{overflow:auto}.calendar{min-width:580px}.calendar-days{display:grid;grid-template-columns:47px repeat(7,minmax(0,1fr));border-bottom:1px solid #edf0f6;padding:0 9px 0 0}.calendar-day{text-align:center;padding:14px 0 12px;color:#99a2b5;font-size:10px}.calendar-day b{font-size:17px;font-weight:500;color:#667086;display:block;margin-top:5px}.calendar-day.today b{border-radius:50%;width:29px;height:29px;display:grid;place-items:center;background:var(--blue);color:#fff;margin:0 auto -5px}.calendar-day.today{color:var(--blue)}.calendar-body{position:relative;display:grid;grid-template-columns:47px repeat(7,minmax(0,1fr));height:550px;padding-right:9px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 54px,#f0f2f7 54px,#f0f2f7 55px)}.time-column{position:relative;background:#fff}.time-label{position:absolute;left:10px;font-size:9px;color:#b3bac8;transform:translateY(-5px)}.day-column{position:relative;border-left:1px solid #f1f3f8}.day-column.today{background:#f5f8ff66}.lesson-card{position:absolute;left:4px;right:4px;text-align:left;border:0;border-radius:8px;padding:9px 7px;border-left:3px solid var(--class-color);background:var(--class-bg);color:var(--class-ink);min-height:45px;overflow:hidden;transition:filter .15s,transform .15s}.lesson-card:hover{filter:brightness(.97);transform:translateY(-1px)}.lesson-card .subject{font-size:11px;font-weight:650;display:block;margin-bottom:5px}.lesson-card .class-name{font-size:9px;display:block;opacity:.78;line-height:1.6}.lesson-card .lesson-time{font-size:8px;display:block;opacity:.65;margin-top:6px;white-space:nowrap}.calendar-footer{padding:12px 19px;border-top:1px solid #f0f2f6;display:flex;flex-wrap:wrap;gap:17px;font-size:9px;color:#9ca5b6}.legend{display:flex;align-items:center;gap:6px}.dot{width:6px;height:6px;border-radius:50%;background:var(--class-color);display:inline-block}.right-stack{display:flex;flex-direction:column;gap:18px}.focus-card{padding:22px;background:linear-gradient(135deg,#edf3ff,#f7f9ff);border:1px solid #e1eaff;border-radius:16px;position:relative;overflow:hidden}.focus-card:after{content:"";position:absolute;width:130px;height:130px;right:-60px;top:-45px;border:20px solid #dee9ff75;border-radius:50%;pointer-events:none}.section-kicker{font-size:10px;color:#7a96c8;display:flex;align-items:center;gap:5px;letter-spacing:1px;margin-bottom:19px}.section-kicker svg{width:13px;height:13px}.focus-card h2{font-size:19px;color:#466287;line-height:1.5;font-weight:600}.focus-card p{font-size:11px;color:#97a8c3;line-height:1.8;margin:8px 0 20px}.focus-card .button{border:0;box-shadow:0 3px 8px #5277b30b}.mini-list{padding:2px 17px 13px}.mini-lesson{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid #f2f4f8}.mini-lesson:last-child{border-bottom:0}.mini-time{font-size:10px;color:#a3adbe;width:35px;padding-top:2px;flex:none}.mini-line{width:3px;border-radius:4px;background:var(--class-color);flex:none}.mini-info{flex:1}.mini-info strong{font-size:11px;color:#65718a;font-weight:550}.mini-info p{font-size:10px;color:#a3adbe;margin-top:5px}.mini-info button{font-size:10px;background:none;color:#6b8fce;padding:6px 0 0}.quote-card{border:1px dashed #e0e5ef;border-radius:14px;padding:24px 18px;text-align:center;color:#a2aec3;font-size:11px;line-height:1.9}.quote-card svg{width:22px;height:22px;color:#bbc7d9;margin-bottom:10px}.footer{font-size:9px;color:#b2bac9;margin-top:28px;display:flex;justify-content:space-between;letter-spacing:.5px}.demo-banner{background:#fff8e8;border:1px solid #f4e7c9;border-radius:10px;padding:10px 14px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#a18a5b;gap:12px}.demo-banner button{background:transparent;color:#9c7937;text-decoration:underline;font-size:11px}.empty{padding:50px 20px;text-align:center;color:#a1aabb}.empty-icon{display:grid;place-items:center;width:60px;height:60px;background:#f2f5fa;border-radius:18px;margin:0 auto 17px;color:#a8b6ce}.empty-icon svg{width:28px;height:28px}.empty h3{font-size:15px;color:#71809a;font-weight:550}.empty p{font-size:12px;line-height:1.8;margin:9px auto 19px;max-width:300px}.mobile-calendar{display:none}.tag{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:5px 8px;background:#f2f5fb;color:#8a9ab6;font-size:10px}.draw-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.draw-stage{text-align:center;padding:35px 40px;background:radial-gradient(ellipse at 50% 40%,#f0f5ff,#fff 67%);min-height:470px;display:flex;flex-direction:column;align-items:center}.draw-context{font-size:12px;color:#95a4bd;display:flex;align-items:center;gap:7px;margin-bottom:22px}.draw-orb{height:180px;width:180px;border-radius:50%;background:linear-gradient(145deg,#f2f7ff,#e8f0ff);display:grid;place-items:center;box-shadow:inset 0 0 0 1px #e5edfb,0 20px 55px #7195db16;margin:20px 0 25px;position:relative}.draw-orb:before{content:"";position:absolute;inset:12px;border:1px solid #fff;border-radius:50%}.draw-orb svg{width:52px;height:52px;color:#92b1e9}.draw-orb .picked-name{font-size:33px;color:#4c6a9b;font-weight:600;letter-spacing:2px;position:relative}.draw-result-multi{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:20px 0}.name-chip{background:#eef4ff;color:#5077b6;border:1px solid #dde8fc;padding:16px 23px;border-radius:13px;font-size:21px;font-weight:600}.draw-stage h2{font-size:19px;color:#667895;font-weight:550}.draw-stage p{font-size:12px;color:#a1adc0;line-height:1.9;margin-top:10px}.draw-start{min-width:190px;min-height:46px;margin-top:25px}.draw-options{padding:22px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;text-align:left}.field label,.field-label{font-size:12px;color:#758298;font-weight:500}.field input,.field select,.field textarea{width:100%;border:1px solid #e1e6ef;border-radius:8px;background:#fcfdff;padding:11px 12px;color:#52617b;line-height:1.4;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:#81aaff;box-shadow:0 0 0 3px #e9f1ff}.field textarea{resize:vertical;min-height:125px}.field-help{font-size:10px;color:#a2aec0;line-height:1.7}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0;font-size:12px;color:#77869e}.switch-row input{accent-color:var(--blue);width:17px;height:17px}.option-divider{height:1px;background:#edf0f5;margin:23px 0}.exclusion-list{max-height:190px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.exclusion-list label{display:flex;align-items:center;gap:6px;font-size:11px;color:#8090a9}.exclusion-list input{accent-color:var(--blue)}.history{margin-top:22px}.history-list{padding:3px 22px}.history-item{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #f0f2f7}.history-item:last-child{border:0}.history-item .history-dot{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#f1f5fc;color:#93acd2}.history-info{flex:1;font-size:12px;color:#64748e}.history-info p{font-size:10px;color:#a3afc1;margin-top:5px}.history-item time{font-size:10px;color:#a4afc0}.class-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:24px}.class-tile{background:#fff;border:1px solid #e6ebf3;padding:21px;border-radius:14px;text-align:left;position:relative;transition:box-shadow .15s}.class-tile.active{border-color:#a9c6fa;box-shadow:0 0 0 3px #edf4ff}.class-tile .class-initial{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;color:var(--class-ink);background:var(--class-bg);font-size:16px;font-weight:550;margin-bottom:17px}.class-tile h3{font-size:15px;color:#5e6e88;font-weight:550}.class-tile p{font-size:11px;color:#9cabc0;margin-top:8px}.class-tile .selected-mark{position:absolute;right:18px;top:20px;width:17px;height:17px;color:#79a5ee}.roster-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.roster-search{background:#f6f8fc;border:1px solid #edf0f6;border-radius:8px;padding:8px 11px;font-size:11px;outline:none;width:165px}.roster-list{padding:7px 22px 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:26px}.student-row{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #f0f3f8;min-width:0}.student-number{font-size:10px;color:#b0bbcd;min-width:20px}.student-name{flex:1;font-size:12px;color:#667791;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-row button{border:0;background:none;color:#b1bfd4;padding:3px}.student-row button:hover{color:#397deb}.student-row button svg{width:14px;height:14px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.settings-card{padding:27px}.settings-card h2{font-size:16px;color:#60728f;margin-bottom:12px}.settings-card p{font-size:12px;color:#98a7bb;line-height:1.9;margin-bottom:20px}.settings-card .setting-icon{width:42px;height:42px;background:#eff4fc;color:#88a5d1;display:grid;place-items:center;border-radius:12px;margin-bottom:19px}.settings-card small{font-size:10px;color:#a5b0c1;display:block;line-height:1.8;margin-top:10px}.login-page{min-height:100vh;background:radial-gradient(ellipse at 20% 20%,#eaf0fd 0,transparent 55%),radial-gradient(ellipse at 90% 90%,#edf0fb 0,transparent 50%),#f7f8fc;display:flex;align-items:center;justify-content:center;padding:30px}.login-card{width:890px;display:grid;grid-template-columns:1.08fr 1fr;background:#ffffffb8;border:1px solid #fff;border-radius:28px;box-shadow:0 25px 100px #4c658514;overflow:hidden;backdrop-filter:blur(18px)}.login-intro{padding:52px 44px;background:linear-gradient(145deg,#edf3ff,#f4f7ff);display:flex;flex-direction:column;justify-content:space-between;gap:45px}.login-intro .brand{padding:0}.login-intro h1{font-size:33px;line-height:1.6;color:#506889;margin:25px 0 16px;letter-spacing:0}.login-intro p{font-size:12px;line-height:2;color:#91a2bc}.intro-features{display:flex;flex-direction:column;gap:18px;margin-top:35px;font-size:12px;color:#7b93b4}.intro-features div{display:flex;align-items:center;gap:10px}.intro-features svg{width:16px;height:16px}.intro-foot{font-size:10px;color:#a9b6ca;letter-spacing:1px}.login-form-wrap{padding:58px 45px;display:flex;justify-content:center;flex-direction:column}.login-form-wrap h2{font-size:23px;color:#53657f;margin-bottom:11px}.login-form-wrap>p{font-size:12px;color:#a0aec2;margin-bottom:32px}.login-form-wrap .field{margin-bottom:21px}.login-form-wrap .button{min-height:43px}.login-footer{font-size:10px;text-align:center;color:#b0bac9;line-height:1.9;margin-top:24px}.login-divider{display:flex;align-items:center;gap:12px;font-size:10px;color:#b3bdcc;margin:22px 0}.login-divider:before,.login-divider:after{content:"";height:1px;background:#eef0f6;flex:1}.form-error{font-size:11px;color:#c87878;line-height:1.8;margin-bottom:14px}.login-note{font-size:10px;color:#a9b5c8;margin-top:13px;line-height:1.7;text-align:center}dialog{border:1px solid #e6ebf4;border-radius:20px;width:min(480px,calc(100% - 28px));padding:0;box-shadow:0 25px 100px #1f375a26;color:var(--ink);max-height:90dvh}dialog::backdrop{background:#30425a42;backdrop-filter:blur(4px)}.modal-heading{padding:24px 26px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #f0f2f7}.modal-heading h2{font-size:18px;color:#5b6d88}.modal-heading button{border:0;background:#f3f6fa;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;color:#93a1b6}.modal-heading button svg{width:14px;height:14px}.modal-body{padding:23px 26px 26px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}.modal-actions .left-action{margin-right:auto}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-pair{display:flex;justify-content:space-between;font-size:12px;padding:13px 0;border-bottom:1px solid #f0f3f8;color:#95a3b9}.detail-pair strong{color:#657994;font-weight:500}.color-options{display:flex;gap:11px;margin:8px 0}.color-option{border:3px solid transparent;width:29px;height:29px;border-radius:50%;background:var(--class-color);box-shadow:0 0 0 2px transparent}.color-option.active{border-color:white;box-shadow:0 0 0 2px var(--class-color)}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);padding:13px 22px;border-radius:11px;background:#36465deF;color:#fff;font-size:12px;box-shadow:0 10px 30px #1f2c4326;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100% - 30px);text-align:center;line-height:1.7}#toast.visible{opacity:1;transform:translate(-50%,0)}.spinning{animation:pulse .25s ease-in-out infinite alternate}.muted{color:#a4afbf;font-size:11px}.mt-16{margin-top:16px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes pulse{to{transform:scale(1.035);opacity:.7}}@media(min-width:1550px){.main{padding:40px 55px}.content-grid{grid-template-columns:minmax(0,1fr) 290px}.calendar-body{height:600px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,#f0f2f7 59px,#f0f2f7 60px)}}@media(max-width:1180px){.main{padding:29px 25px}.content-grid{grid-template-columns:minmax(0,1fr)}.right-stack{display:grid;grid-template-columns:1fr 1fr}.quote-card{display:none}.draw-layout{grid-template-columns:minmax(0,1fr) 260px}.draw-stage{padding:30px 20px}.sidebar{width:190px;padding-left:13px;padding-right:13px}.shell{grid-template-columns:190px minmax(0,1fr)}.class-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:850px){.sidebar{width:78px;align-items:center;padding:25px 10px 17px}.shell{grid-template-columns:78px minmax(0,1fr)}.brand{padding:0}.sidebar .brand-copy,.workspace-label,.sidebar-note,.nav-button span,.private-note,.nav-count{display:none}.nav{margin-top:45px;gap:13px;width:100%}.nav-button{padding:13px;justify-content:center}.sidebar-bottom{width:100%}.topbar{margin-bottom:26px}.draw-layout{grid-template-columns:minmax(0,1fr)}.draw-options{display:grid;grid-template-columns:1fr 1fr;column-gap:22px}.draw-options .option-divider{grid-column:1/-1;margin:4px 0 18px}.draw-options .exclude-group{grid-column:1/-1}.exclusion-list{grid-template-columns:repeat(4,1fr)}.draw-options .switch-row{margin:0 0 18px}.settings-grid{grid-template-columns:1fr}.roster-list{grid-template-columns:repeat(2,minmax(0,1fr))}.login-card{max-width:760px}.login-intro{padding:40px 30px}.login-form-wrap{padding:45px 30px}}@media(max-width:600px){.shell{display:block;min-height:100dvh}.sidebar{top:auto;bottom:0;left:0;right:0;width:100%;height:calc(64px + env(safe-area-inset-bottom));padding:5px 11px calc(5px + env(safe-area-inset-bottom));border-top:1px solid #e1e7f1;border-right:0;background:#f8faffef;flex-direction:row;gap:0;justify-content:space-around}.sidebar>.brand,.sidebar-bottom{display:none}.nav{display:flex;flex:1;margin:0;gap:9px;justify-content:space-around}.nav-button{width:auto;flex:1;flex-direction:column;gap:5px;padding:6px 9px;border-radius:10px;font-size:10px}.nav-button span{display:block;font-size:9px}.nav-button .nav-count{display:none}.nav-button.active{background:#e9f1ff;box-shadow:none}.nav-button svg{width:20px;height:20px}.main{padding:22px 18px 95px}.topbar{margin-bottom:24px}.breadcrumb{font-size:11px}.top-right{gap:11px}.sync{font-size:9px}.avatar{height:29px;width:29px;font-size:10px}.page-heading{margin-bottom:23px;align-items:center;gap:10px}.page-heading h1{font-size:25px}.page-heading p{font-size:10px;line-height:1.7}.eyebrow{font-size:9px;margin-bottom:7px}.page-heading>.button{padding:0 11px;min-height:36px;font-size:11px}.stats{gap:8px;margin-bottom:20px}.stat{border-radius:11px;padding:13px 10px;gap:8px;align-items:flex-start;flex-direction:column}.stat-icon{width:27px;height:27px;border-radius:8px}.stat-icon svg{width:15px;height:15px}.stat-label{font-size:9px;margin-bottom:7px}.stat-value{font-size:20px}.stat-value span{font-size:8px;margin-left:3px}.desktop-calendar{display:none}.mobile-calendar{display:block}.panel-header{padding:17px 16px}.calendar-toolbar{gap:10px}.week-title{font-size:11px}.week-controls{gap:4px}.mobile-day-tabs{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:13px 11px;border-bottom:1px solid #edf1f7}.mobile-day-tabs button{background:none;border-radius:10px;padding:8px 0 9px;color:#a0abc0;font-size:10px}.mobile-day-tabs button b{display:block;font-size:16px;margin-top:7px;font-weight:500}.mobile-day-tabs button.active{background:#eaf1ff;color:#4e85e7}.daily-list{padding:8px 16px 14px}.daily-lesson{display:flex;align-items:stretch;gap:15px;padding:15px 0}.daily-time{width:40px;flex:none;color:#a2afc3;font-size:10px;line-height:1.8;padding-top:8px}.daily-time strong{display:block;font-weight:500;color:#7f91ac;font-size:12px}.daily-card{flex:1;border-radius:11px;text-align:left;padding:15px;background:var(--class-bg);border-left:3px solid var(--class-color);color:var(--class-ink)}.daily-card strong{font-size:13px;font-weight:600}.daily-card p{font-size:10px;opacity:.8;margin-top:7px}.daily-card small{font-size:9px;display:block;margin-top:11px;opacity:.6}.right-stack{display:flex;gap:16px}.right-stack>.panel{display:none}.focus-card{padding:20px}.focus-card h2{font-size:18px}.focus-card .section-kicker{margin-bottom:12px}.focus-card p{margin-bottom:15px}.focus-card .button{min-height:36px}.footer{font-size:8px;gap:10px;line-height:1.8}.demo-banner{font-size:10px;padding:9px 11px;margin-bottom:20px;line-height:1.6}.demo-banner button{font-size:10px;white-space:nowrap}.class-grid{gap:11px}.class-tile{padding:17px;border-radius:12px}.class-tile .class-initial{width:34px;height:34px;font-size:14px;margin-bottom:13px}.class-tile h3{font-size:13px}.class-tile p{font-size:9px}.roster-list{padding:5px 16px 15px;grid-template-columns:1fr}.roster-toolbar{gap:7px}.roster-search{width:120px;font-size:10px}.roster-panel .panel-header{flex-wrap:wrap}.roster-panel .panel-header h2{width:100%}.roster-toolbar .button{font-size:10px;min-height:30px;padding:0 8px}.student-row{padding:12px 0}.student-row button{padding:7px}.draw-stage{min-height:390px;padding:28px 17px}.draw-orb{height:160px;width:160px;margin:12px 0 23px}.draw-stage h2{font-size:17px}.draw-stage p{font-size:11px}.draw-start{margin-top:20px;min-height:44px;min-width:190px}.draw-options{padding:20px;grid-template-columns:1fr}.draw-options .exclude-group,.draw-options .option-divider{grid-column:auto}.exclusion-list{grid-template-columns:repeat(3,1fr)}.history-list{padding:0 16px}.history-item{gap:10px}.history-info{font-size:11px}.history-info p,.history-item time{font-size:9px}.settings-card{padding:23px}.login-page{padding:20px;min-height:100dvh}.login-card{display:block;max-width:430px;border-radius:23px}.login-intro{padding:29px 30px 24px;gap:0}.login-intro h1{font-size:23px;line-height:1.6;margin:22px 0 8px}.login-intro p{font-size:10px;line-height:1.8}.login-intro .brand-icon{width:35px;height:35px;font-size:17px;border-radius:10px}.login-intro .brand-title{font-size:19px}.intro-features,.intro-foot{display:none}.login-form-wrap{padding:29px 30px 30px}.login-form-wrap h2{font-size:19px}.login-form-wrap>p{font-size:11px;margin-bottom:23px}.login-form-wrap .field{margin-bottom:17px}.login-footer{margin-top:20px;font-size:9px}.login-divider{margin:18px 0}.modal-heading{padding:20px}.modal-body{padding:20px}.modal-actions{flex-wrap:wrap}.modal-actions .button{min-height:39px;font-size:11px}.modal-actions .left-action{margin-right:auto}.draw-result-multi{gap:7px}.name-chip{font-size:18px;padding:13px 17px}#toast{bottom:90px;font-size:11px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
 .access-description{font-size:12px;color:#99a8be;line-height:1.9;margin:0 0 24px}

/* A gentle classroom palette, with stable page geometry across every view. */
:root {
  color-scheme: light;
  color: #403d4c;
  background: #fbf8f6;
  --blue: #ad5470;
  --ink: #403d4c;
  --muted: #817580;
  --line: #eee5e8;
  --shadow: 0 9px 32px #7650610a;
}
html { scrollbar-gutter: stable; }
body {
  background: radial-gradient(ellipse at 95% 0, #f5eaf580, transparent 42%), #fbf8f6;
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline-color: #bf7c99; }
.shell { align-items: start; min-height: 100dvh; }
.main {
  margin: 0 auto;
  align-self: start;
  min-height: 100dvh;
  max-width: 1720px;
  display: flex;
  flex-direction: column;
}
.main > .page-content { flex: 1 0 auto; min-width: 0; }
.topbar { min-height: 36px; margin-bottom: 30px; flex-shrink: 0; }
.page-heading {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.page-heading > div:first-child { min-width: 0; }
.page-heading h1 { font-size: 29px; line-height: 1.35; color: #443c4b; }
.page-heading p { color: #837781; font-size: 12px; line-height: 1.7; min-height: 21px; }
.eyebrow {
  color: #a17c8d;
  font-size: 9px;
  line-height: 15px;
  letter-spacing: 1.65px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eyebrow::before { content: "✦"; margin-right: 8px; color: #c69aa6; }
.footer { margin-top: 30px; padding-top: 2px; color: #92818c; font-size: 10px; }
.sidebar {
  background: linear-gradient(150deg, #fbf1f4ed, #f2edf6e8 75%, #f5f2eedd);
  border-color: #ede2e8;
}
.brand-icon {
  background: linear-gradient(145deg, #db9aac, #ad5975);
  box-shadow: 0 6px 16px #b36c8629, inset 0 1px 0 #ffffff70;
  border-radius: 15px;
}
.brand-title { color: #594354; }
.brand-sub { color: #947b8c; letter-spacing: 2.4px; }
.workspace-label { color: #947f8f; }
.nav { gap: 8px; }
.nav-button { color: #7d6b7c; border-radius: 13px; }
.nav-button.active {
  color: #a94f6d;
  background: #ffffffeb;
  box-shadow: 0 5px 17px #a8758c12, inset 0 0 0 1px #fff;
}
.nav-button:hover { background: #ffffff9c; }
.nav-button .nav-count { color: #9b8494; }
.sidebar-note { color: #967e8e; line-height: 1.95; margin-top: 25px; }
.sidebar-note::before { content: "✿"; display: block; font-size: 30px; color: #c79cab; margin-bottom: 8px; line-height: 1.2; }
.private-note { color: #967e8e; }
.breadcrumb { color: #9a8794; }
.breadcrumb strong { color: #786577; }
.sync { color: #897784; }
.sync::before { background: #77a98f; }
.avatar {
  color: #9b5572;
  background: #f3dfe8;
  box-shadow: inset 0 0 0 1px #fff9;
}
.button { border-color: #e9dfe5; border-radius: 11px; color: #706170; min-height: 40px; }
.button:hover { background: #fcf4f6; }
.button.primary { background: #ad5470; border-color: #ad5470; box-shadow: 0 5px 12px #ad547019; }
.button.primary:hover { background: #96445e; border-color: #96445e; }
.button.soft { background: #f8eaf0; color: #9b4966; }
.button.text { color: #8c7083; }
.button.danger { color: #ad4d55; border-color: #f0d7db; background: #fff2f3; }
.toolbar-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button-row { flex-wrap: wrap; }
.stat { border-color: #efe5e9; border-radius: 18px; background: #fffdfdf2; box-shadow: var(--shadow); }
.stat-icon { background: #faeaf0; color: #b36786; border-radius: 13px; }
.stat:nth-child(2) .stat-icon { background: #edf4ee; color: #638b77; }
.stat:nth-child(3) .stat-icon { background: #f0ebf7; color: #9270ae; }
.stat-label { color: #897884; }
.stat-value { color: #5c4659; }
.stat-value span { color: #8c7b88; }
.panel, .class-tile { border-color: #eee5e9; border-radius: 19px; box-shadow: var(--shadow); }
.panel { background: #fffefd; }
.panel-header { min-height: 65px; border-color: #f0e9ed; }
.panel-header h2 { color: #675163; }
.panel-header small, .calendar-footer, .time-label { color: #8c7a87; }
.calendar-days { border-color: #f0e9ed; }
.calendar-day { color: #917b8c; }
.calendar-day b { color: #746071; }
.calendar-day.today, .calendar-day.today b { color: #ad5470; }
.calendar-day.today b { color: #fff; background: #b9657f; box-shadow: 0 3px 9px #b9657f21; }
.day-column { border-color: #f3edf0; }
.day-column.today { background: #fff3f766; }
.time-column { background: #fffefd; }
.week-title { color: #745f70; }
.week-controls button { color: #9c7e92; border-color: #eee3e9; border-radius: 8px; }
.today-button { background: #f7edf2; color: #95657e; }
.lesson-card { border-radius: 10px; padding-left: 8px; }
.lesson-card .subject { color: #4f5067; }
.lesson-card .class-name { color: #5f5c72; opacity: .95; }
.lesson-card .lesson-time { color: #615f75; opacity: .9; }
.calendar-footer { border-color: #f0e9ed; }
.focus-card {
  border-color: #eddde7;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8eaf0, #fcf7f1);
}
.focus-card::after {
  width: 116px;
  height: 116px;
  border: 0;
  right: -28px;
  top: -24px;
  opacity: .65;
  border-radius: 0;
  background: radial-gradient(circle at 50% 25%, #ebccd8 0 23%, transparent 24%),
    radial-gradient(circle at 75% 50%, #ebccd8 0 23%, transparent 24%),
    radial-gradient(circle at 50% 75%, #ebccd8 0 23%, transparent 24%),
    radial-gradient(circle at 25% 50%, #ebccd8 0 23%, transparent 24%);
  transform: rotate(15deg);
}
.section-kicker { color: #a46b86; }
.focus-card h2 { color: #8c536d; position: relative; z-index: 1; }
.focus-card p { color: #927383; }
.mini-time, .mini-info p { color: #8f7d8a; }
.mini-info strong { color: #726074; }
.mini-info button { color: #a35a7e; }
.mini-lesson { border-color: #f3edf0; }
.quote-card { border-color: #e9dbe5; background: #f9f2f650; color: #8c7285; border-radius: 18px; }
.quote-card svg { color: #b795aa; }
.demo-banner { border-color: #f1e3ca; background: #fff8e9; color: #967343; border-radius: 12px; }
.demo-banner button { color: #906630; }
.empty { color: #8c7b89; padding: 54px 24px; }
.empty-icon { background: #f8edf3; color: #ba8ca6; border-radius: 22px; }
.empty h3 { color: #80667a; }
.empty p { color: #8c7b89; }
.tag { background: #f5edf5; color: #92718e; border-radius: 8px; }
.draw-stage {
  background: radial-gradient(ellipse at 50% 35%, #fff0f5, #fffefd 66%);
  min-height: 510px;
  padding-top: 38px;
}
.draw-context { color: #93768b; }
.draw-orb {
  background: linear-gradient(140deg, #fff4f7, #f3dfeb 80%);
  box-shadow: inset 0 0 0 1px #efd8e4, 0 18px 52px #b4759421;
  border-radius: 45% 55% 49% 51% / 53% 46% 54% 47%;
}
.draw-orb::before { border-radius: inherit; border-color: #fffc; }
.draw-orb svg { color: #b87e9b; }
.draw-orb .picked-name { color: #965d7d; max-width: 90%; overflow-wrap: anywhere; }
.draw-stage h2 { color: #86617c; }
.draw-stage p { color: #947b8d; }
.name-chip { color: #975d7b; border-color: #ecd8e4; background: #fbf0f6; }
.draw-result-multi { max-width: 100%; }
.name-chip { max-width: 100%; overflow-wrap: anywhere; }
.field label, .field-label, .switch-row { color: #7c687b; }
.field input, .field select, .field textarea {
  border-color: #e8dee6;
  background: #fffdfd;
  color: #655367;
  border-radius: 11px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #c991ad; box-shadow: 0 0 0 3px #f9eaf2; }
.field-help, .muted { color: #8e7a8b; }
.option-divider { background: #efe6ed; }
.exclusion-list label { color: #806e80; }
.history-item { border-color: #f1e8ef; }
.history-item .history-dot { background: #f4edf7; color: #ac8cba; border-radius: 11px; }
.history-info { color: #7b6077; }
.history-info p, .history-item time { color: #927b8e; }
.class-tile { background: #fffefd; transition: border-color .15s, box-shadow .15s, transform .15s; }
.class-tile:hover { transform: translateY(-2px); box-shadow: 0 9px 24px #9a6b8810; }
.class-tile.active { border-color: #d2a3bc; box-shadow: 0 0 0 3px #f7eaf2; }
.class-tile .class-initial { border-radius: 14px; }
.class-tile h3 { color: #6f566d; }
.class-tile p { color: #927a8d; }
.class-tile .selected-mark { color: #ad6b91; }
.roster-search { color: #756074; border-color: #eadfe7; background: #fbf5f8; border-radius: 10px; }
.student-row { border-color: #f0e8ee; }
.student-number { color: #a38b9e; }
.student-name { color: #735d73; }
.student-row button { color: #a68b9f; }
.student-row button:hover { color: #a84f7c; }
.settings-grid { align-items: stretch; }
.settings-card { padding: 28px; min-height: 252px; }
.settings-card h2 { color: #76566e; }
.settings-card p { color: #897386; }
.settings-card small { color: #927c8e; }
.settings-card .setting-icon { background: #f7eaf1; color: #af7b9b; border-radius: 14px; }
.settings-card:nth-child(2) .setting-icon { background: #f2ecf8; color: #9a7ab5; }
.settings-card:nth-child(3) .setting-icon { background: #edf3ed; color: #7c9c88; }
.login-page { background: radial-gradient(ellipse at 18% 25%, #fae7ed 0, transparent 52%), radial-gradient(ellipse at 90% 85%, #eee7f5 0, transparent 48%), #fbf8f6; }
.login-card { border-color: #fff; box-shadow: 0 25px 90px #93657d16; }
.login-intro { background: linear-gradient(145deg, #faeaf0, #f8f1e8); }
.login-intro h1 { color: #8e6078; }
.login-intro p, .intro-features { color: #967a8d; }
.intro-foot { color: #a18799; }
.login-form-wrap h2 { color: #76566f; }
.login-form-wrap > p, .login-note, .login-footer, .access-description { color: #927d8f; }
.login-divider { color: #9e899c; }
.login-divider::before, .login-divider::after { background: #eee4ec; }
.form-error { color: #b34f64; }
dialog { background: #fffdfd; border-color: #ecdee7; border-radius: 23px; box-shadow: 0 25px 100px #68485d29; }
dialog::backdrop { background: #52384d3b; }
.modal-heading { border-color: #f1e7ed; }
.modal-heading h2 { color: #795b72; }
.modal-heading button { color: #a17a96; background: #f6edf3; }
.detail-pair { color: #93788d; border-color: #f0e7ee; }
.detail-pair strong { color: #7a5f76; }
#toast { background: #6a4860f5; border-radius: 13px; box-shadow: 0 10px 30px #68435c26; }

/* Classroom tools: the same panel rhythm as the timetable and roster. */
.tools-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.timer-card {
  padding: 34px 30px;
  min-height: 510px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 35%, #f5edf9, #fffefd 70%);
  position: relative;
}
.timer-card h2 { color: #826080; font-size: 18px; }
.timer-display {
  color: #8c5e86;
  font-size: clamp(54px, 7.5vw, 104px);
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  margin: 34px 0 14px;
  max-width: 100%;
}
.timer-status { color: #92778c; font-size: 12px; line-height: 1.8; min-height: 23px; margin-bottom: 26px; }
.timer-presets { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.timer-presets button { min-height: 36px; padding: 0 15px; border: 1px solid #ebddec; background: #fff9fd; color: #997a94; border-radius: 999px; font-size: 12px; }
.timer-presets button.active { border-color: #b38aaa; color: #8e5a85; background: #f1e4f1; box-shadow: 0 0 0 2px #f8f0f9; }
.timer-custom { display: flex; align-items: flex-end; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; width: 100%; }
.timer-custom label { font-size: 12px; color: #897286; }
.timer-custom .field { margin-bottom: 0; gap: 6px; max-width: 160px; }
.timer-custom input { width: 84px; border: 1px solid #e9dce8; background: #fffdfd; color: #7d6078; border-radius: 10px; padding: 10px; font: inherit; text-align: center; }
.timer-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; }
.timer-actions .primary { min-width: 128px; min-height: 44px; }
.timer-finished .timer-display { color: #b26179; }
.timer-finished { background: radial-gradient(ellipse at 50% 35%, #ffe9f0, #fffefd 70%); }
.tool-tip-card { padding: 25px; margin-bottom: 18px; color: #897286; line-height: 1.85; }
.tool-tip-card h2, .tool-tip-card h3 { font-size: 15px; color: #7f5d77; margin-bottom: 12px; }
.tool-tip-card p { font-size: 12px; margin-bottom: 14px; }
.tool-tip-card small { font-size: 11px; color: #9b8495; }
.tool-tip-card .button { margin-top: 7px; }
.focus-exit { display: none; }

/* Focus mode stays useful even where native Fullscreen is unavailable. */
body.focus-mode { background: #fcf8fb; }
body.focus-mode .shell { display: block; min-height: 100dvh; }
body.focus-mode .sidebar, body.focus-mode .topbar, body.focus-mode .demo-banner,
body.focus-mode .footer, body.focus-mode .page-heading, body.focus-mode .draw-options,
body.focus-mode .history, body.focus-mode .tools-layout > :not(.timer-card) { display: none; }
body.focus-mode .main { grid-column: 1; max-width: 1140px; margin: 0 auto; padding: 80px 32px 30px; }
body.focus-mode .draw-layout, body.focus-mode .tools-layout { display: block; }
body.focus-mode .draw-stage, body.focus-mode .timer-card { min-height: calc(100dvh - 116px); justify-content: center; padding: 30px; }
body.focus-mode .draw-orb { width: min(34vw, 300px); height: min(34vw, 300px); }
body.focus-mode .draw-orb .picked-name { font-size: clamp(40px, 5.5vw, 70px); }
body.focus-mode .draw-stage h2 { font-size: 23px; }
body.focus-mode .draw-start { min-height: 50px; min-width: 220px; font-size: 16px; }
body.focus-mode .timer-display { font-size: clamp(72px, 14vw, 180px); }
body.focus-mode .focus-exit { display: inline-flex; position: fixed; top: max(20px, env(safe-area-inset-top)); right: 24px; z-index: 50; box-shadow: 0 5px 20px #89577418; }
body.focus-mode .name-chip { font-size: 28px; }

@media (max-width: 1180px) {
  .tools-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .page-heading { gap: 14px; }
}
@media (max-width: 850px) {
  .tools-layout { grid-template-columns: 1fr; }
  .tools-layout > aside { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .tool-tip-card { margin-bottom: 0; }
  .sidebar-note { display: none; }
  .timer-card { min-height: 480px; }
  .timer-display { font-size: clamp(62px, 10vw, 100px); }
}
@media (max-width: 600px) {
  html { scrollbar-gutter: auto; }
  .main { padding: 22px 18px calc(95px + env(safe-area-inset-bottom)); min-height: 100dvh; }
  .topbar { min-height: 32px; margin-bottom: 23px; }
  .page-heading { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 148px; gap: 14px; margin-bottom: 22px; }
  .page-heading h1 { font-size: 26px; line-height: 1.35; }
  .page-heading p { font-size: 11px; line-height: 1.8; }
  .page-heading > .button { align-self: flex-start; }
  .page-heading .toolbar-actions { justify-content: flex-start; }
  .page-heading .toolbar-actions .button { font-size: 11px; min-height: 37px; padding: 0 12px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.35px; }
  .eyebrow::before { margin-right: 6px; }
  .sidebar { background: #fff8fbea; border-color: #ecdfe8; }
  .nav { gap: 4px; }
  .nav-button { padding: 7px 4px; min-width: 0; min-height: 49px; }
  .nav-button span { font-size: 9px; white-space: nowrap; }
  .nav-button.active { background: #f6e7ee; color: #ac5579; }
  .nav-button.active:hover { background: #f5e4ec; }
  .stat { border-radius: 14px; }
  .stat-label { color: #8c7988; }
  .stat-value { font-size: 20px; }
  .stat-value span { color: #8f7d8a; }
  .panel-header { min-height: 61px; }
  .mobile-day-tabs { border-color: #f0e7ee; }
  .mobile-day-tabs button { color: #937a8d; }
  .mobile-day-tabs button.active { background: #f8e8f0; color: #a85d81; }
  .daily-time { color: #97818f; }
  .daily-time strong { color: #886b80; }
  .daily-card { border-radius: 14px; }
  .daily-card strong { color: #59566d; }
  .daily-card p, .daily-card small { color: #676074; opacity: 1; }
  .draw-stage { min-height: 450px; }
  .draw-orb { width: 176px; height: 176px; }
  .draw-orb .picked-name { font-size: 30px; }
  .class-tile { border-radius: 16px; }
  .class-tile p { font-size: 10px; }
  .settings-card { min-height: 235px; padding: 25px; }
  .timer-card { padding: 30px 18px; min-height: 470px; }
  .timer-display { font-size: clamp(58px, 19vw, 82px); letter-spacing: -2px; margin: 29px 0 13px; }
  .timer-status { font-size: 11px; margin-bottom: 22px; }
  .timer-presets { gap: 7px; }
  .timer-presets button { font-size: 11px; padding: 0 12px; }
  .timer-custom { gap: 8px; }
  .timer-actions { gap: 8px; }
  .timer-actions .button { padding: 0 13px; }
  .timer-actions .primary { min-width: 120px; }
  .tools-layout > aside { display: block; }
  .tool-tip-card { padding: 23px; margin-bottom: 16px; }
  .footer { font-size: 9px; }
  .login-form-wrap { background: #ffffff80; }
  .login-intro { position: relative; overflow: hidden; }
  .login-intro::after { content: "✿"; position: absolute; right: 19px; top: 28px; font-size: 57px; line-height: 1; color: #ebc7d687; transform: rotate(18deg); pointer-events: none; }
  body.focus-mode .main { padding: 74px 14px 24px; }
  body.focus-mode .draw-stage, body.focus-mode .timer-card { min-height: calc(100dvh - 98px); padding: 26px 15px; }
  body.focus-mode .draw-orb { width: 220px; height: 220px; }
  body.focus-mode .draw-orb .picked-name { font-size: 39px; }
  body.focus-mode .draw-stage h2 { font-size: 18px; }
  body.focus-mode .timer-display { font-size: min(23vw, 98px); }
  body.focus-mode .focus-exit { right: 16px; }
  body.focus-mode #toast { bottom: 25px; }
}

/* Secondary text stays legible on the pale surfaces, including small labels. */
.page-heading p, .footer, .sync, .stat-label, .stat-value span,
.panel-header small, .calendar-footer, .time-label, .calendar-day,
.focus-card p, .mini-time, .mini-info p, .quote-card, .empty, .empty p,
.draw-context, .draw-stage p, .field-help, .muted, .history-info p,
.history-item time, .class-tile p, .student-number, .settings-card p,
.settings-card small, .login-intro p, .intro-features, .login-form-wrap > p,
.login-note, .login-footer, .access-description, .timer-status,
.tool-tip-card, .tool-tip-card small, .sidebar-note, .private-note { color: #7e687b; }
.eyebrow, .breadcrumb { color: #85667c; }
.demo-banner { color: #84612f; }
.mobile-day-tabs button, .daily-time { color: #80667d; }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  html, body { background: #fff !important; color: #222 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .shell { display: block !important; min-height: 0; }
  .main { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none; min-height: 0; width: 100%; }
  .sidebar, .topbar, .demo-banner, .footer, .right-stack, .stats,
  .mobile-calendar, .page-heading > :not(:first-child), .focus-exit,
  #toast, dialog, .week-controls, .today-button,
  .panel-header .toolbar-actions .button { display: none !important; }
  .page-heading { display: block !important; min-height: 0 !important; margin-bottom: 15px; }
  .page-heading .eyebrow { display: none; }
  .page-heading h1 { color: #333; font-size: 23px; }
  .page-heading p { margin-top: 4px; }
  .content-grid { display: block; }
  .desktop-calendar { display: block !important; overflow: visible; }
  .calendar { min-width: 0; }
  .calendar-body { height: 470px !important; }
  .panel { border: 1px solid #ddd; border-radius: 10px; box-shadow: none; break-inside: avoid; }
  .panel-header { padding: 11px 14px; min-height: 0; }
  .lesson-card { border-radius: 6px; box-shadow: none; }
  .lesson-card .subject { font-size: 10px; margin-bottom: 3px; }
  .lesson-card .class-name { font-size: 9px; }
  .lesson-card .lesson-time { margin-top: 3px; }
  .calendar-footer { font-size: 9px; padding: 9px 14px; }
}
/* Course credits: a compact, color-coded teaching notebook. */
.credit-stats .stat-value{font-variant-numeric:tabular-nums}
.credit-stat-low .stat-icon{background:#fce9e7;color:#a15b58}
.credit-note{display:flex;align-items:center;gap:14px;padding:18px 22px;margin:0 0 22px;border:1px solid #ebdeda;border-radius:20px;background:linear-gradient(105deg,#fff5ec,#faf2f8);color:#725e6b}
.credit-note>.icon{width:27px;height:27px;flex-shrink:0;color:#c28c98}
.credit-note>div{flex:1;min-width:0}.credit-note strong{font-size:14px}.credit-note p{font-size:12px;line-height:1.7;margin:5px 0 0;color:#8d7d87}
.credit-panel{overflow:hidden}.credit-filters{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) auto;gap:12px;padding:18px 24px;background:#fffdfd;border-bottom:1px solid #f0e9ed}
.credit-filters>select,.credit-filters>input{min-width:0;width:100%;height:42px;padding:0 12px;border:1px solid #e9e1e8;border-radius:12px;font:inherit;font-size:13px;background:#fff;color:#655a69}
.credit-low-filter{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;color:#81717e}.credit-low-filter input{width:16px;height:16px;accent-color:#b788a5}
.credit-group+.credit-group{border-top:1px solid #ebe4e9}.credit-group-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 24px;background:var(--class-bg);color:var(--class-ink)}
.credit-group-heading>div{display:flex;align-items:center;gap:10px;min-width:0}.credit-group-heading h3{font-size:14px;margin:0;overflow-wrap:anywhere}.credit-group-heading small{font-size:11px;opacity:.8;white-space:nowrap}.credit-group-heading .button{color:inherit;border-color:#ffffff80;background:#ffffff70;flex-shrink:0}
.credit-color-dot{display:block;width:11px;height:11px;flex-shrink:0;border-radius:50%;background:var(--class-color);box-shadow:0 0 0 1px #0000001c inset}
.credit-student{display:grid;grid-template-columns:minmax(160px,1fr) 100px minmax(260px,auto);align-items:center;gap:16px;padding:16px 24px;background:#ffffffa6}.credit-student+.credit-student{border-top:1px solid #f0eaf0}
.credit-student-identity{display:flex;align-items:center;gap:12px;min-width:0}.credit-avatar{width:40px;height:40px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:15px;background:var(--class-bg);color:var(--class-ink);flex-shrink:0}.credit-student-name{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.balance-status{display:block;font-size:10px;color:#8b9990;margin-top:3px}.balance-status.low{color:#ba7179}
.credit-balance{display:flex;align-items:baseline;gap:6px;white-space:nowrap}.credit-balance b{font-size:25px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-1px;color:#62576b}.credit-balance span{font-size:10px;color:#9a8f9d}
.credit-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap}.credit-actions .button{padding:7px 10px;font-size:11px}.credit-actions .icon{width:13px;height:13px}.credit-footnote{font-size:11px;line-height:1.7;margin:16px 4px;color:#988c9a}
dialog.credit-modal{width:min(660px,calc(100% - 32px));max-width:660px}.credit-modal .modal-body{padding-top:18px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-pair .field{min-width:0}.field-pair input{min-width:0;width:100%;max-width:100%}
.attendance-toolbar{display:flex;gap:8px;align-items:center;margin:6px 0 12px}.attendance-toolbar strong{font-size:13px;flex:1}.attendance-toolbar .button{white-space:nowrap;padding:6px 7px;font-size:11px}.attendance-list{border:1px solid #e8e0e7;border-radius:14px;overflow:hidden;max-height:310px;overflow-y:auto}
.attendance-row{display:flex;align-items:center;gap:12px;padding:13px 15px;font-size:13px;cursor:pointer;background:#fff}.attendance-row+.attendance-row{border-top:1px solid #f0e9ee}.attendance-row:has(input:checked){background:#f6eff7}.attendance-row input{width:18px;height:18px;accent-color:#b588ad;flex-shrink:0}.attendance-name{flex:1;min-width:0;overflow-wrap:anywhere}.attendance-balance{font-size:12px;color:#8a788e;font-variant-numeric:tabular-nums;white-space:nowrap}.attendance-row.insufficient{background:#faf8f9;color:#a2939c}.attendance-row small{color:#c18e91;font-size:10px;white-space:nowrap}.attendance-summary{padding:10px 0;margin:0 0 8px;font-size:12px;line-height:1.6;color:#8d6c85}
.credit-confirm-intro{padding:16px 18px;background:var(--class-bg,#faf1f7);border-radius:14px;margin-bottom:18px;color:var(--class-ink,#6f5b73)}.credit-confirm-intro p{font-size:12px;line-height:1.6;margin:7px 0 0}.credit-preview-list{margin:18px 0;border:1px solid #eae1e8;border-radius:14px;overflow:hidden}.credit-preview-row{display:flex;justify-content:space-between;gap:18px;padding:13px 16px;font-size:13px}.credit-preview-row+.credit-preview-row{border-top:1px solid #eee8ed}.credit-preview-row span{color:#947789;font-variant-numeric:tabular-nums;white-space:nowrap}
.topup-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-radius:14px;background:#f8f0f7;margin:14px 0 20px;font-size:12px;color:#8c7287}.topup-preview strong{font-size:18px;color:#85647e;font-variant-numeric:tabular-nums}
.credit-ledger{margin-top:18px}.ledger-item{padding:17px 0;border-top:1px solid #eee5ec}.ledger-item-main{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ledger-item-main>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ledger-item-main strong{font-size:14px}.ledger-kind{font-size:10px;padding:4px 7px;background:#f5f0f6;color:#8d7a91;border-radius:7px}.ledger-reversed{font-size:10px;color:#a598a5}.ledger-item-main>b{font-size:14px;white-space:nowrap}.ledger-positive{color:#64977c}.ledger-negative{color:#bb8090}.ledger-item p{font-size:11px;color:#968896;line-height:1.7;margin:8px 0 0;overflow-wrap:anywhere}.ledger-item .ledger-note{color:#7c6a7c}.ledger-item-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:8px}.ledger-item-bottom small{color:#b0a3af;font-size:10px}.ledger-footer{text-align:center;margin-top:14px}
.custom-color-row{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:12px;color:#938293}.custom-color-row input[type=color]{width:44px;height:35px;padding:3px;border:1px solid #e5dae3;border-radius:9px;cursor:pointer}.class-student-summary{display:block;line-height:1.5;font-size:11px;opacity:.75;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.student-row .roster-credit{width:auto;flex-shrink:0;font-size:10px;color:#88a38f;white-space:nowrap;padding:4px 5px}.student-row .roster-credit.low{color:#b9788a}.roster-list{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1150px){.credit-student{grid-template-columns:minmax(120px,1fr) 100px;gap:9px 14px}.credit-actions{grid-column:1/-1;justify-content:flex-start;padding-left:52px}.credit-filters{grid-template-columns:1fr 1fr}.credit-low-filter{grid-column:1/-1}.roster-list{grid-template-columns:1fr}}
@media(max-width:680px){.credit-note{padding:15px;gap:10px;margin-bottom:18px;align-items:flex-start;flex-wrap:wrap}.credit-note>.icon{width:22px;height:22px}.credit-note>div{flex-basis:calc(100% - 34px)}.credit-note>.button{margin-left:26px}.credit-note p{font-size:11px}.credit-stats .stat{padding:14px 12px}.credit-stats .stat-value{font-size:25px}.credit-stats .stat-value span{font-size:9px}.credit-filters{padding:15px;gap:10px;grid-template-columns:1fr}.credit-low-filter{grid-column:auto;padding-top:3px}.credit-group-heading{padding:12px 15px}.credit-group-heading h3{font-size:13px}.credit-group-heading>div{gap:7px}.credit-group-heading .button{padding:7px 8px;font-size:11px}.credit-student{padding:15px;grid-template-columns:minmax(120px,1fr) 94px;gap:12px}.credit-student-identity{gap:10px}.credit-avatar{width:35px;height:35px;border-radius:12px}.credit-actions{padding-left:0;gap:7px;justify-content:flex-start}.credit-actions .button{padding:8px 10px}.credit-balance{justify-content:flex-end;gap:5px}.credit-balance b{font-size:26px}.credit-balance span{font-size:9px}.credit-footnote{font-size:10px}.attendance-row{padding:12px 10px;gap:8px}.attendance-name{font-size:12px}.attendance-balance{font-size:11px}.attendance-row small{font-size:9px}.attendance-toolbar{gap:4px}.attendance-toolbar strong{font-size:12px}.attendance-toolbar .button{padding:6px 4px;font-size:10px}.topup-preview{padding:15px;gap:8px}.topup-preview strong{font-size:16px}.credit-preview-row{padding:12px;font-size:12px}.field-pair{gap:10px}.ledger-item-main>div{gap:6px}.ledger-item-main>b{font-size:12px}.student-row{gap:7px}.student-row .student-name{font-size:12px}.student-row .roster-credit{padding:3px;font-size:10px}}

.credit-balance .balance-unknown{font-size:15px;letter-spacing:0;color:#a18e9e}.color-options{flex-wrap:wrap}.roster-list{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:1150px){.roster-list{grid-template-columns:1fr}}
