:root{--bg:#f6f5f0;--panel:#fff;--ink:#262e2b;--muted:#7c827c;--line:#e6e8df;--green:#234e40;--green-soft:#e9f1e9;--orange:#e8844b;--orange-soft:#fcf0e5;--red:#b54a3c;--shadow:0 10px 35px rgba(38,46,43,.035);font-family:"Microsoft YaHei UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #e9b07c;outline-offset:3px}input:focus,textarea:focus{outline:2px solid #a7b7a4;outline-offset:1px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.environment-banner{text-align:center;background:#f9e9d4;color:#8b5c25;font-size:12px;letter-spacing:.02em;min-height:30px;padding:7px 16px}.site-header{height:87px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1512px)/2));gap:28px}.brand{display:flex;align-items:center;gap:12px;font-size:21px;font-weight:700;letter-spacing:1px}.brand-mark{font-family:Georgia,serif;font-size:29px;background:var(--green);color:#fff;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;letter-spacing:-1px;padding-bottom:4px}.brand-detail{display:inline-block;font-size:13px;font-weight:400;letter-spacing:2px;border-left:1px solid #cfd4cb;margin-left:15px;padding-left:15px}.header-middle{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;letter-spacing:1px}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#88a486;flex:none}.header-account{display:flex;align-items:center;gap:20px;font-size:13px}.text-button{border:0;background:none;padding:4px 0;color:var(--green);font-size:12px;white-space:nowrap}.text-button:hover{text-decoration:underline;text-underline-offset:4px}#app{min-height:calc(100vh - 195px)}.login-layout{max-width:1120px;padding:75px 30px 70px;margin:auto;display:grid;grid-template-columns:1.2fr 1fr;gap:105px;align-items:center}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted);display:inline-block}.login-intro h1{font-size:42px;line-height:1.5;font-weight:700;letter-spacing:2px;margin:17px 0 20px}.login-intro>p{font-size:14px;line-height:1.9;color:var(--muted)}.intro-sample{position:relative;margin:33px 0 27px;background:#fdfdf9;border:1px solid #e2e5db;border-radius:12px;box-shadow:var(--shadow);max-width:430px;transform:rotate(-1deg)}.sample-bar{height:38px;border-bottom:1px solid var(--line);display:flex;gap:5px;align-items:center;padding:0 15px}.sample-bar>span{width:6px;height:6px;border-radius:50%;background:#d8dcd3}.sample-bar>span:first-child{background:#d6a997}.sample-bar b{font-weight:400;font:10px Consolas,monospace;color:#90978a;margin-left:15px}.intro-sample pre{padding:10px 22px 22px;margin:14px 0 0;font:13px/1.9 Consolas,monospace;color:#4a5650}.sample-caption{position:absolute;bottom:-12px;right:-15px;font-size:10px;color:#8a5f3e;background:#f4dfc8;border-radius:4px;padding:9px 14px;transform:rotate(4deg)}.code-purple{color:#8a7798}.code-muted{color:#a5ac9c}.code-green{color:#6c8c64}.code-orange{color:#b77d52}.intro-bottom{display:flex;gap:28px;color:#969c91;font-size:10px;margin-top:35px}.login-card{padding:40px 36px 24px;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}h2,h3,p{margin-top:0}.login-card h2{font-size:26px;letter-spacing:1px;margin:11px 0 10px}.login-card>.muted{font-size:12px;margin-bottom:30px}.muted{color:var(--muted);line-height:1.65}.login-card label{display:block;font-size:12px;margin:19px 0 9px;font-weight:700}.login-card input{width:100%;height:45px;padding:0 13px;border:1px solid var(--line);border-radius:6px;background:#fdfdfb}.login-card input::placeholder{color:#b1b5ad;font-size:12px}.button{display:inline-flex;gap:8px;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;padding:10px 18px;font-size:12px;min-height:39px;transition:background .15s}.button-primary{background:var(--green);color:#fff}.button-primary:hover:not(:disabled){background:#163d30}.button-outline{border-color:#d7ded2;background:#fff;color:var(--green)}.button-outline:hover:not(:disabled){background:#f4f7f0}.button-wide{width:100%;margin-top:24px;justify-content:space-between}.button-small{padding:7px 11px;min-height:32px}.form-error{font-size:12px;color:var(--red);line-height:1.6;margin:14px 0 -8px}.demo-login{border-top:1px solid var(--line);margin-top:28px;padding-top:19px}.demo-login strong{font-size:11px;font-weight:500}.demo-login p{font-size:10px;color:#92998e;line-height:1.7;margin:7px 0}.demo-accounts{display:flex;gap:10px;margin:12px 0}.demo-accounts button{font-size:11px;background:#f6f7f2;border:1px solid var(--line);border-radius:4px;padding:7px 12px;color:#62705e}.home-view,.classroom-view{max-width:1512px;margin:auto;padding:45px 28px 55px}.page-heading{display:flex;justify-content:space-between;align-items:center}.page-heading h1{font-size:29px;letter-spacing:1px;margin:12px 0}.page-heading p{font-size:13px}.small-label{color:var(--muted);font-size:10px;white-space:nowrap}.home-notice{display:flex;align-items:flex-start;gap:12px;border:1px solid #e3e6d8;background:#fafbf5;border-radius:9px;padding:17px 20px;margin:26px 0 30px}.notice-icon{font-family:Georgia,serif;color:#8c9a78;border:1px solid #c6cfb5;border-radius:50%;width:17px;height:17px;text-align:center;line-height:17px;font-size:12px;flex:none}.home-notice strong{font-size:12px;font-weight:500}.home-notice p{font-size:11px;line-height:1.8;color:var(--muted);margin:6px 0 0}.lesson-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.lesson-card{background:white;border:1px solid var(--line);border-radius:12px;padding:26px;box-shadow:var(--shadow)}.lesson-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px}.course-number{font:italic 26px Georgia,serif;color:#a9b59c}.lesson-card h2{font-size:20px;line-height:1.5;margin:0 0 14px}.lesson-card p{font-size:12px;color:var(--muted);line-height:1.8;margin:7px 0}.lesson-card-bottom{border-top:1px solid var(--line);margin-top:25px;padding-top:20px;display:flex;align-items:center;justify-content:space-between}.status-badge{display:inline-flex;align-items:center;font-size:10px;border-radius:4px;padding:5px 8px;background:#f0f2eb;color:#79856f;white-space:nowrap}.status-badge.active{background:var(--green-soft);color:var(--green)}.status-badge.ended{background:#f1efec;color:#938a7e}.classroom-view{padding-top:22px}.classroom-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.back-button{color:var(--muted)}.sync-indicator{display:flex;align-items:center;gap:7px;font-size:10px;color:#7f8c72}.sync-indicator.disconnected{color:#b1814e}.sync-indicator.disconnected .live-dot{background:#c29565}.lesson-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.lesson-kicker{display:flex;align-items:center;gap:12px}.lesson-heading h1{font-size:25px;line-height:1.5;letter-spacing:1px;margin:11px 0 7px}.lesson-heading p{font-size:11px;margin:0}.teacher-controls{display:flex;gap:10px}.classroom-grid{display:grid;grid-template-columns:206px minmax(360px,1fr) 286px;gap:21px;align-items:start}.lesson-main,.detail-sidebar{display:grid;gap:21px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:20px 20px 0}.panel-heading h2{font-size:13px;font-weight:700;line-height:1.5;margin:0}.panel-heading .eyebrow{font-size:9px;margin-bottom:6px}.section-hint{font-size:10px;color:#9a9f94;line-height:1.65;margin:10px 20px 16px}.problem-list{display:grid;gap:9px;padding:0 11px 15px}.problem-item{position:relative;border:1px solid transparent;display:flex;gap:10px;text-align:left;width:100%;background:none;border-radius:6px;padding:11px 9px;color:var(--ink)}.problem-item:hover{background:#f7f8f3}.problem-item.selected{background:#f1f5ed;border-color:#e2e9d9}.problem-number{font:14px Georgia,serif;color:#a1ac96;min-width:20px;padding-top:1px}.problem-item h3{font-size:11px;line-height:1.6;font-weight:500;margin:0 0 4px;overflow-wrap:anywhere}.problem-item p{font-size:9px;color:#9ba391;margin:0;line-height:1.5}.problem-item.selected h3{color:var(--green);font-weight:700}.problem-publish{border:0;border-radius:4px;padding:4px 6px;font-size:9px;background:#e6eddd;color:#627253;margin-top:6px}.sidebar-note{padding:22px 13px;display:flex;gap:10px}.note-spark{color:#b7a482;font-size:23px}.sidebar-note p{font-size:10px;line-height:1.85;color:#929988;margin:2px 0 0}.courseware-panel .panel-heading{margin-bottom:17px}.sample-badge{font-size:9px;padding:4px 7px;border:1px solid #eddfcc;background:#fffaf2;border-radius:4px;color:#b08f62}.slide{position:relative;aspect-ratio:16/9;margin:0 19px;background:#f1f2e9;border:1px solid #e4e8da;display:flex;flex-direction:column;overflow:auto;padding:20px 27px}.slide-top{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:#879378}.slide-content{margin:auto 0;padding:25px 0 30px}.slide-eyebrow{color:#b49568;letter-spacing:2px;font-size:9px}.slide-content h2{font-size:clamp(20px,2vw,32px);font-weight:700;line-height:1.5;letter-spacing:1px;margin:10px 0 17px;color:#344d3d}.slide-body{white-space:pre-wrap;font-size:clamp(11px,.9vw,14px);line-height:1.85;color:#64765c;overflow-wrap:anywhere}.slide-footer{position:absolute;bottom:15px;left:27px;font-size:7px;color:#a2ac96;letter-spacing:1px}.slide-controls{padding:15px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.slide-controls>.muted{font-size:9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-navigation{display:flex;align-items:center;gap:13px;font-size:10px;color:var(--muted);white-space:nowrap}.icon-button{background:#f9faf5;border:1px solid var(--line);border-radius:4px;color:var(--green);width:28px;height:25px}.problem-detail{padding:17px 20px 22px}.problem-detail h3{font-size:14px;line-height:1.65;margin:0 0 16px;overflow-wrap:anywhere}.problem-detail h4{font-size:10px;color:#627358;font-weight:700;margin:20px 0 9px}.problem-detail p,.problem-detail .statement{font-size:11px;line-height:1.95;color:#7c8277;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.sample-pair{border:1px solid #e9ece2;border-radius:5px;overflow:hidden;margin-bottom:9px}.sample-pair label{font-size:9px;color:#a0a88f;display:block;padding:7px 10px 0}.sample-pair pre{margin:0;padding:7px 10px 10px;white-space:pre-wrap;overflow-wrap:anywhere;color:#5a6854;background:#f9faf6;font:11px/1.7 Consolas,monospace}.student-row{margin:0 20px;padding:16px 0;border-bottom:1px solid #eff0e9;display:flex;align-items:center;gap:10px}.student-row:last-child{border:0;padding-bottom:21px}.student-avatar{width:30px;height:30px;border-radius:50%;background:#edf0e7;color:#8c9c7e;display:grid;place-items:center;font-size:11px;flex:none}.student-text{flex:1;min-width:0}.student-text strong{font-size:11px;font-weight:500;display:block}.student-text p{font-size:9px;color:#a0a692;margin:5px 0 0;overflow-wrap:anywhere}.student-online{font-size:9px;color:#94a587;display:flex;align-items:center;gap:4px}.student-online .live-dot{width:4px;height:4px}.student-online.offline{color:#aeb1a8}.student-online.offline .live-dot{background:#c6c9c0}.workspace-panel .panel-heading{padding-bottom:17px;align-items:flex-end}.save-indicator{font-size:9px;color:#8a9c7c;white-space:nowrap}.save-indicator.error{color:var(--red)}.editor-toolbar{height:37px;background:#f8f9f4;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:0 20px;display:flex;align-items:center;gap:15px}.editor-toolbar .muted{font-size:9px;flex:1}.editor-toolbar .text-button{font-size:10px}.language-label{font:11px Consolas,monospace;color:#788967}.code-editor{display:block;width:100%;height:300px;resize:vertical;border:0;padding:18px 21px;color:#384b3d;background:#fdfefa;tab-size:4;font:13px/1.8 Consolas,"Courier New",monospace;min-height:160px;outline-offset:-2px!important}.execution-section{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}.execution-input,.execution-output{padding:14px 19px}.execution-input{border-right:1px solid var(--line)}.execution-section label{display:block;font-size:10px;color:#7e8972;margin-bottom:9px}.custom-input{width:100%;border:1px solid #e8ebdf;border-radius:4px;resize:vertical;min-height:85px;padding:9px;background:#fafbf7;color:#4d614b;font:11px/1.7 Consolas,monospace}.execution-output pre{margin:0;color:#7e8972;font:11px/1.7 Consolas,"Microsoft YaHei UI",monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto}.workspace-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding:14px 19px}.workspace-actions p{font-size:9px;line-height:1.7;color:#a29579;margin:0;max-width:230px}.workspace-actions>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.workspace-actions .button{padding:9px 11px;font-size:10px;min-height:33px}.submission-feedback{font-size:11px;line-height:1.8;background:#f4f7ee;border-top:1px solid var(--line);color:#687957;padding:12px 20px;white-space:pre-wrap}.submission-feedback.error{background:#fff6ef;color:#a06848}.submission-history{padding:12px 20px 18px}.history-row{display:grid;grid-template-columns:minmax(60px,1fr) minmax(70px,1.3fr) 1fr auto;align-items:center;gap:9px;padding:12px 0;border-bottom:1px solid #eff1e9;font-size:10px}.history-row:last-child{border:0}.history-row .history-person{color:#8e9983;font-size:9px;margin-top:5px}.history-row time{font-size:9px;color:#9ca58f}.result-badge{font-size:9px;border-radius:3px;background:#f2f3ec;color:#8d967f;padding:4px 6px;justify-self:start}.result-badge.success{color:#69815a;background:#edf4e6}.result-badge.failure{color:#b17e50;background:#fff2e5}.history-mode{font-size:8px;color:#b8a382}.empty-state{font-size:12px;line-height:1.9;color:#9ca58e;padding:30px 20px;text-align:center}.site-footer{max-width:1512px;display:flex;justify-content:space-between;gap:15px;margin:auto;padding:21px 28px;color:#a5aa9b;font-size:9px;border-top:1px solid var(--line)}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:100;background:#294c3c;color:#fff;padding:13px 22px;border-radius:7px;box-shadow:0 5px 24px #203c2a25;font-size:12px;max-width:90vw;line-height:1.7}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.classroom-grid.student-mode{grid-template-columns:190px minmax(420px,1fr) 286px}.student-mode .slide{aspect-ratio:auto;min-height:190px;max-height:290px}.student-mode .slide-content{padding:19px 0 27px}.student-mode .slide-content h2{font-size:23px;margin-bottom:9px}.student-mode .slide-body{font-size:11px}.student-mode .slide-controls{padding-top:11px;padding-bottom:11px}@media(min-width:1600px){.classroom-grid{grid-template-columns:220px minmax(360px,1fr) 304px}.classroom-grid.student-mode{grid-template-columns:210px minmax(420px,1fr) 304px}}@media(max-width:1150px){.classroom-grid,.classroom-grid.student-mode{grid-template-columns:170px minmax(340px,1fr)}.detail-sidebar{grid-column:2;grid-template-columns:1fr 1fr}.problem-detail-panel:only-child{grid-column:1/-1}.lesson-sidebar{grid-row:1/3}.login-layout{gap:60px}.header-middle{display:none}.workspace-actions{align-items:flex-start}.slide-content h2{font-size:26px}}@media(max-width:820px){.site-header{height:73px;padding:0 22px}.brand{font-size:19px}.brand-detail{font-size:11px}.brand-mark{height:36px;width:36px;font-size:25px}.login-layout{padding-top:45px;gap:35px;grid-template-columns:1fr 1fr}.login-intro h1{font-size:29px}.login-intro>p{font-size:12px}.login-card{padding:28px 23px 20px}.login-card h2{font-size:22px}.intro-sample pre{font-size:10px;padding-left:14px}.intro-bottom{flex-direction:column;gap:9px}.lesson-cards{grid-template-columns:1fr 1fr}.home-view,.classroom-view{padding-left:20px;padding-right:20px}.classroom-grid,.classroom-grid.student-mode{grid-template-columns:1fr}.lesson-sidebar{grid-row:auto}.lesson-sidebar .panel{display:block}.problem-list{display:flex;overflow:auto;gap:8px;padding:0 14px 13px}.problem-item{min-width:150px;width:auto;flex:1}.sidebar-note{display:none}.detail-sidebar{grid-column:auto}.lesson-heading h1{font-size:22px}.lesson-heading{align-items:flex-start}.teacher-controls{gap:7px}.teacher-controls .button{font-size:10px;padding:8px 11px}.lesson-sidebar .panel-heading{padding-top:15px}.section-hint{margin-bottom:10px}.slide{aspect-ratio:16/9}.student-mode .slide{min-height:165px}.workspace-actions p{max-width:190px}}@media(max-width:560px){.environment-banner{font-size:10px;padding:7px}.site-header{padding:0 17px;height:65px}.brand{gap:9px;font-size:17px}.brand-detail{margin-left:10px;padding-left:10px;font-size:10px;letter-spacing:1px}.brand-mark{height:32px;width:32px;font-size:22px;border-radius:9px}.header-account{font-size:10px;gap:13px}.login-layout{display:flex;flex-direction:column;gap:24px;padding:32px 20px 35px}.login-intro{width:100%}.login-intro h1{font-size:29px;line-height:1.4;margin:12px 0}.login-intro>p{font-size:11px}.intro-sample,.intro-bottom{display:none}.login-card{width:100%;max-width:430px;padding:27px 24px 19px}.home-view{padding-top:30px}.page-heading h1{font-size:25px}.page-heading>.small-label{display:none}.home-notice{padding:14px}.lesson-cards{grid-template-columns:1fr;gap:16px}.classroom-view{padding:17px 14px 30px}.classroom-top{margin-bottom:22px}.lesson-heading{flex-wrap:wrap;margin-bottom:20px;gap:14px}.lesson-heading h1{font-size:21px}.teacher-controls{margin-left:auto}.lesson-meta{font-size:10px}.classroom-grid,.lesson-main,.detail-sidebar{gap:15px}.detail-sidebar{grid-template-columns:1fr}.panel-heading{padding:17px 16px 0}.sample-badge{font-size:8px;padding:3px 5px}.slide{margin:0 14px;padding:16px 18px;aspect-ratio:4/3}.slide-content{padding:24px 0 30px}.slide-content h2{font-size:23px;margin-bottom:12px}.slide-body{font-size:11px}.slide-footer{left:18px;bottom:10px}.student-mode .slide-content h2{font-size:20px}.slide-controls{padding:13px 16px}.slide-controls>.muted{max-width:55%;font-size:8px}.page-navigation{gap:8px}.student-mode .slide{max-height:300px}.code-editor{font-size:12px;padding:15px}.editor-toolbar{padding:0 15px;gap:10px}.editor-toolbar .muted{font-size:8px}.editor-toolbar .text-button{font-size:9px}.execution-section{grid-template-columns:1fr}.execution-input{border-right:0;border-bottom:1px solid var(--line)}.execution-input,.execution-output{padding:13px 15px}.workspace-actions{flex-direction:column;gap:10px;padding:13px 15px}.workspace-actions p{max-width:none}.workspace-actions>div{width:100%}.workspace-actions .button{flex:1;font-size:10px}.save-indicator{font-size:8px}.history-row{grid-template-columns:1fr 1.2fr auto}.history-row time{grid-column:2}.history-mode{grid-column:3;grid-row:1}.site-footer{padding:18px;flex-direction:column;gap:8px;font-size:8px}.problem-list-hint{font-size:9px}.sync-indicator{font-size:9px}}

.problem-card .problem-publish{margin:0 0 7px 40px}.problem-card{min-width:0}.problem-card .problem-item{width:100%}@media(max-width:820px){.problem-card{min-width:160px;flex:1}.problem-card .problem-item{min-width:0}}


.editor-toolbar .confirm-replace{color:#aa6036;font-weight:700}#undo-demo-code{color:#9a8060}@media(max-width:560px){.editor-toolbar{height:auto;min-height:37px;flex-wrap:wrap;padding-top:7px;padding-bottom:7px}.editor-toolbar>.muted{min-width:130px}}

.hoj-connection-panel{max-width:1456px;margin:24px auto 0;padding:21px 25px;border:1px solid #dce5d7;border-radius:10px;background:#fbfdf7}.hoj-panel-top{display:flex;justify-content:space-between;align-items:center;gap:15px}.hoj-panel-top h2{font-size:16px;margin:7px 0 0}.hoj-privacy{font-size:11px;color:#859178;line-height:1.9;margin:11px 0 15px}.hoj-login-form{display:flex;align-items:flex-end;gap:14px}.hoj-login-form>div{flex:1;max-width:300px}.hoj-login-form label{display:block;font-size:11px;color:#627358;margin-bottom:7px}.hoj-login-form input{width:100%;height:39px;border:1px solid #dce3d3;border-radius:5px;background:white;padding:0 12px;font-size:12px;color:var(--ink)}.hoj-login-form input::placeholder{color:#a7af9d}.hoj-bound-account{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e5eadf;padding-top:15px}.hoj-bound-account strong{font-size:13px;font-weight:500}.hoj-bound-account span{display:inline-block;font-size:10px;color:#8d9a80;margin-left:17px}.hoj-connection-message{font-size:10px;line-height:1.8;color:#89987c;margin:13px 0 0;overflow-wrap:anywhere}.hoj-connection-message.error{color:#ae7052}.history-judge-meta{grid-column:1/-1;display:flex;gap:12px;flex-wrap:wrap;font-size:9px;color:#8e9e82;margin-top:2px;line-height:1.7;overflow-wrap:anywhere}.history-hoj-link{color:var(--green);text-decoration:underline;text-underline-offset:3px}@media(max-width:1512px){.hoj-connection-panel{margin-left:28px;margin-right:28px}}@media(max-width:820px){.hoj-connection-panel{margin-left:20px;margin-right:20px;padding:18px 20px}.hoj-login-form{flex-wrap:wrap}.hoj-login-form>div{min-width:170px;max-width:none}.hoj-login-form .button{margin-left:auto}}@media(max-width:560px){.hoj-connection-panel{margin:17px 14px 0;padding:17px}.hoj-panel-top h2{font-size:14px}.hoj-panel-top .eyebrow{font-size:8px}.hoj-privacy{font-size:10px}.hoj-login-form{gap:11px}.hoj-login-form>div{min-width:100%}.hoj-login-form .button{width:100%}.hoj-bound-account{align-items:flex-start}.hoj-bound-account span{display:block;margin:6px 0 0}.hoj-bound-account .button{font-size:9px}.history-judge-meta{gap:7px;font-size:8px}}
.sample-input-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:7px 9px 5px;background:#f9faf6}.sample-input-label{font-size:9px;color:#8f9c80}.sample-actions{display:flex;gap:5px}.sample-action-button{border:1px solid #dce5d4;border-radius:4px;background:white;color:#617d51;font-size:9px;padding:4px 6px;line-height:1.3}.sample-run-button{background:#eaf1e4;border-color:#d6e1ca;color:#426435}.sample-action-button:hover:not(:disabled){background:#e0ecd7}.clipboard-fallback{position:fixed;left:-10000px;top:0;width:1px;height:1px;opacity:0}.run-feedback-summary{margin:1px 0 12px;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.run-status-badge{display:inline-flex;align-items:center;border-radius:5px;padding:4px 9px;font:700 11px/1.5 Consolas,"Microsoft YaHei UI",monospace;background:#f0f1eb;color:#7b8571}.run-status-badge.success{background:#e4f2dd;color:#3e7b31;border:1px solid #cde5c2}.run-status-badge.failure{background:#fbe9e4;color:#b94734;border:1px solid #f0d2c9}.run-status-badge.pending{background:#fbf1dd;color:#a17b30;border:1px solid #ecdfbc}.run-status-badge.neutral{background:#eff1eb;color:#7e8973;border:1px solid #e0e5d8}.run-mode-label{font-size:8px;color:#9a9c8a}.run-feedback-summary p{width:100%;font-size:10px;line-height:1.75;color:#8a937e;margin:0;overflow-wrap:anywhere}.teacher-controls{flex-wrap:wrap;justify-content:flex-end}.presentation-overlay{position:fixed;inset:0;z-index:1000;height:100vh;height:100dvh;width:100vw;background:#f1f3e9;color:#344f3c;display:flex;flex-direction:column;gap:20px;padding:24px clamp(20px,4vw,80px);outline:none;overflow:hidden}.presentation-top{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;max-width:1400px;margin:0 auto}.presentation-top .eyebrow{font-size:9px;color:#92a17f}.presentation-top h2{font-size:17px;letter-spacing:1px;margin:7px 0 0}.presentation-top .sample-badge{font-size:10px;padding:6px 10px}.presentation-slide{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:1400px;margin:0 auto;padding:28px clamp(25px,5vw,90px);border:1px solid #d8e1ca;background:#f8faf2;border-radius:10px;box-shadow:0 15px 60px #45623808;overflow:auto}.presentation-slide-top{display:flex;justify-content:space-between;gap:15px;font-size:11px;letter-spacing:2px;color:#8da078;flex:none}.presentation-content{margin:auto 0;padding:35px 0 55px}.presentation-content .slide-eyebrow{font-size:12px;letter-spacing:3px}.presentation-content h1{font-size:clamp(30px,4vw,62px);line-height:1.4;letter-spacing:2px;margin:20px 0 32px;overflow-wrap:anywhere}.presentation-content>div{font-size:clamp(17px,1.75vw,26px);line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;color:#677c59}.presentation-slide-footer{font-size:10px;color:#a0ad90;letter-spacing:1px;flex:none}.presentation-bottom{max-width:1400px;margin:0 auto;display:flex;justify-content:space-between;gap:18px;width:100%;font-size:10px;line-height:1.8;color:#8a9a78;flex:none}.presentation-playing{overscroll-behavior:none}@media(max-width:820px){.presentation-overlay{padding:20px;gap:15px}.presentation-slide{padding:23px 26px}.presentation-content h1{font-size:clamp(27px,5vw,43px)}.presentation-content>div{font-size:clamp(15px,2.5vw,23px)}.presentation-bottom{font-size:9px}}@media(max-width:560px){.presentation-overlay{padding:16px 13px;gap:13px}.presentation-top{gap:10px}.presentation-top h2{font-size:13px}.presentation-top .eyebrow{font-size:7px}.presentation-top .sample-badge{font-size:8px;padding:4px 6px}.presentation-slide{padding:18px}.presentation-content{padding:22px 0 35px}.presentation-content h1{font-size:28px;letter-spacing:1px;margin:16px 0 23px}.presentation-content>div{font-size:16px;line-height:1.85}.presentation-content .slide-eyebrow{font-size:9px}.presentation-slide-top{font-size:8px}.presentation-slide-footer{font-size:8px}.presentation-bottom{flex-direction:column;gap:5px;font-size:8px}.sample-action-button{padding:4px 7px;font-size:10px}}
.whiteboard-entry{border:1px solid #d8e3ce;border-radius:5px;padding:5px 12px;background:#eaf1e2;color:#597441;font-size:11px;white-space:nowrap}.whiteboard-workspace{margin:0 19px 0;border:1px solid #dce3d3;border-radius:7px;background:#fbfcf8;overflow:hidden}.whiteboard-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-bottom:1px solid #e2e8d9;background:#f5f8ef}.whiteboard-tool-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.whiteboard-tool{font-size:10px;padding:6px 9px;min-height:30px;border:1px solid #dce4d3;border-radius:4px;color:#60734f;background:white;white-space:nowrap}.whiteboard-tool.selected{background:#dce9cf;border-color:#b9cfa6;color:#3a6026}.whiteboard-color-label,.whiteboard-width-label{display:flex;align-items:center;gap:5px;font-size:9px;color:#8b997b;padding:0 3px;white-space:nowrap}.whiteboard-color-label input{border:0;background:transparent;padding:0;width:27px;height:28px;cursor:pointer}.whiteboard-width-label input{width:65px;accent-color:#657e4f}.whiteboard-width-label span{min-width:16px;font:10px Consolas,monospace}.teacher-whiteboard-wrap{height:clamp(260px,35vw,520px);background:white;position:relative;min-width:0;min-height:0}.teacher-whiteboard-wrap canvas,.presentation-whiteboard-area canvas,.case-canvas-wrap canvas{display:block;width:100%;height:100%;touch-action:none;background:#fff}.whiteboard-status-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid #e5eadf;font-size:9px;line-height:1.8;color:#8b9b7a}.whiteboard-status-row .error{color:#b57550}.whiteboard-status-row .text-button{font-size:9px}.whiteboard-case-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 12px;border-top:1px solid #e5eadf;background:#f8faf3}.whiteboard-case-form label{font-size:10px;color:#839272}.whiteboard-case-form input{flex:1;min-width:180px;padding:8px 10px;border:1px solid #dce4d1;border-radius:4px;background:#fff;color:var(--ink);font-size:10px}.whiteboard-case-form input::placeholder{color:#acb4a1}.whiteboard-case-form .button{font-size:10px}.whiteboard-expanded{position:fixed;inset:0;z-index:950;margin:0;border-radius:0;display:flex;flex-direction:column;height:100vh;height:100dvh;width:100vw;box-shadow:none}.whiteboard-expanded .whiteboard-toolbar{padding:15px 22px;flex:none}.whiteboard-expanded .teacher-whiteboard-wrap{height:auto;flex:1;min-height:0}.whiteboard-expanded .whiteboard-status-row,.whiteboard-expanded .whiteboard-case-form{padding-left:22px;padding-right:22px;flex:none}.presentation-whiteboard-area{position:relative;flex:1;min-height:0;width:100%;max-width:1600px;margin:0 auto;border:1px solid #d7e0ca;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 12px 45px #4761380a}.classroom-cases{padding:12px 20px 17px}.classroom-case-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #ecf0e4}.classroom-case-row:last-child{border-bottom:0}.classroom-case-row strong{font-size:11px;font-weight:500;overflow-wrap:anywhere}.classroom-case-row p{font-size:9px;color:#98a48b;line-height:1.6;margin:5px 0 0}.classroom-case-row .text-button{font-size:10px}.case-empty{font-size:10px;color:#9aa58d;line-height:1.9;margin:7px 0}.case-preview{position:fixed;inset:0;z-index:1100;display:flex;flex-direction:column;gap:18px;padding:25px clamp(18px,4vw,75px);height:100vh;height:100dvh;background:#f0f3e8;outline:none;overflow:hidden}.case-preview-top{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:1600px;width:100%;margin:0 auto}.case-preview-top h2{font-size:23px;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}.case-preview-top p{font-size:10px;color:#8e9c7e;margin:0;line-height:1.8}.case-canvas-wrap{position:relative;flex:1;min-height:0;max-width:1600px;width:100%;margin:0 auto;border:1px solid #d7e0ca;border-radius:7px;overflow:hidden;background:white}.case-preview-note{font-size:10px;color:#8b9c79;line-height:1.8;max-width:1600px;width:100%;margin:0 auto}@media(max-width:820px){.whiteboard-toolbar{align-items:flex-start}.whiteboard-tool{font-size:9px;padding:5px 7px}.whiteboard-width-label input{width:52px}.whiteboard-case-form input{min-width:150px}.whiteboard-entry{font-size:10px;padding:5px 9px}.case-preview{padding:20px;gap:15px}}@media(max-width:560px){.whiteboard-workspace{margin:0 14px}.whiteboard-toolbar{gap:7px;padding:9px}.whiteboard-tool-group{gap:5px}.whiteboard-tool{font-size:9px;min-height:28px;padding:5px 7px}.whiteboard-color-label,.whiteboard-width-label{font-size:8px}.whiteboard-width-label input{width:49px}.teacher-whiteboard-wrap{height:310px}.whiteboard-status-row{align-items:flex-start;flex-direction:column;gap:5px;padding:9px;font-size:8px}.whiteboard-case-form{padding:9px;gap:8px}.whiteboard-case-form label{width:100%;font-size:9px}.whiteboard-case-form input{min-width:150px;font-size:9px}.whiteboard-case-form .button{font-size:9px;padding:7px 9px}.whiteboard-expanded{margin:0}.whiteboard-expanded .whiteboard-toolbar{padding:10px}.whiteboard-expanded .whiteboard-status-row,.whiteboard-expanded .whiteboard-case-form{padding-left:10px;padding-right:10px}.classroom-cases{padding:10px 16px 14px}.classroom-case-row{gap:12px}.classroom-case-row strong{font-size:10px}.classroom-case-row p{font-size:8px}.case-preview{padding:16px 13px;gap:13px}.case-preview-top{gap:12px}.case-preview-top h2{font-size:17px}.case-preview-top .button{font-size:10px;padding:8px 12px}.case-preview-top p,.case-preview-note{font-size:8px}.presentation-whiteboard-area{border-radius:5px}}

.whiteboard-toolbar>.whiteboard-tool-group:first-child{flex:1 1 430px;min-width:0}.whiteboard-toolbar>.whiteboard-tool-group:last-child{flex:0 1 auto}@media(max-width:560px){.whiteboard-toolbar>.whiteboard-tool-group:first-child{flex-basis:100%}}
.demo-lesson-create{max-width:470px;align-self:center;margin-left:22px}.demo-create-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.demo-create-controls label{font-size:10px;color:#8d997f}.demo-create-controls select{height:38px;max-width:210px;border:1px solid #dce4d3;border-radius:5px;background:#fff;color:#647951;font-size:11px;padding:0 10px}.demo-lesson-create>p{font-size:10px;line-height:1.8;color:#94a180;margin:10px 0 0;text-align:right;overflow-wrap:anywhere}.demo-lesson-create>p.error{color:#b47752}@media(max-width:820px){.page-heading{align-items:flex-start;gap:18px;flex-wrap:wrap}.demo-lesson-create{margin-left:0;max-width:100%}.demo-create-controls{justify-content:flex-start}.demo-lesson-create>p{text-align:left}}@media(max-width:560px){.demo-lesson-create{width:100%;margin:0 0 2px}.demo-create-controls{gap:8px}.demo-create-controls select{max-width:100%;flex:1;min-width:120px}.demo-create-controls .button{font-size:11px;padding:9px 13px}.demo-lesson-create>p{font-size:9px}}

.admin-view{max-width:1320px;margin:0 auto;padding:37px 28px 55px}.admin-view .page-heading{margin-bottom:23px}.admin-view .page-heading h1{font-size:29px;margin-top:10px}.admin-view .page-heading p{font-size:13px;line-height:1.8}.admin-notice{padding:17px 21px;border:1px solid #e3e9d9;border-radius:8px;background:#f3f7ec;color:#647757;line-height:1.85}.admin-notice strong{font-size:13px;font-weight:600}.admin-notice p{font-size:12px;margin:5px 0 0;overflow-wrap:anywhere}.admin-status{font-size:12px;line-height:1.9;color:#7f8c71;margin:17px 0}.admin-status.error{color:#aa6047}.admin-nav{display:flex;gap:9px;flex-wrap:wrap;margin:19px 0 24px}.admin-nav a{border:1px solid #dce5d2;border-radius:6px;background:#fbfdf8;color:#65814f;text-decoration:none;padding:8px 13px;font-size:12px}.admin-nav a:hover{background:#edf4e5}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.admin-metric{border:1px solid #e2e8d9;background:#fffefb;border-radius:8px;padding:18px 21px;display:flex;align-items:baseline;gap:13px}.admin-metric strong{font:30px Georgia,serif;color:#536e40}.admin-metric span{font-size:12px;color:#95a186}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:22px}.admin-panel{min-width:0;scroll-margin-top:20px}.admin-panel .panel-heading{padding:20px 22px 17px}.admin-panel .panel-heading h2{font-size:16px}.admin-wide{grid-column:1/-1}.admin-form{padding:0 22px 18px;display:flex;flex-direction:column;align-items:stretch;gap:9px}.admin-form label,.admin-field-label{font-size:12px;color:#6d7e5c;line-height:1.65}.admin-form input:not([type=checkbox]),.admin-form select{width:100%;height:40px;border:1px solid #dce4d2;border-radius:5px;background:#fff;padding:0 11px;color:#526647;font:12px/1.7 inherit;min-width:0}.admin-form input::placeholder{color:#a7b19b;font-size:11px}.admin-form input:disabled,.admin-form select:disabled{background:#f6f7f1;color:#a8af9e}.admin-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-width:0}.admin-form-row>div{display:flex;flex-direction:column;gap:8px;min-width:0}.admin-help{font-size:11px;color:#98a18b;line-height:1.9;margin:3px 0 7px;overflow-wrap:anywhere}.admin-form>.button{align-self:flex-start;font-size:12px;margin-top:4px}.admin-form-message{font-size:12px;line-height:1.85;color:#8c9980;margin:3px 0 0;min-height:4px;white-space:pre-wrap;overflow-wrap:anywhere}.admin-form-message.error{color:#b26b4f}.admin-form-message.success{color:#63844d}.admin-student-options{display:flex;flex-direction:column;gap:9px;padding:12px 13px;border:1px solid #e5eadc;border-radius:5px;background:#fafcf6;max-height:218px;overflow:auto}.admin-student-options .admin-student-choice{display:flex;gap:9px;align-items:center;font-size:12px;color:#76876a;cursor:pointer;line-height:1.8}.admin-student-choice input{accent-color:#6b8752;flex:none;width:15px;height:15px;margin:0}.admin-student-choice:has(input:disabled){color:#a0aa94;cursor:default}.admin-compact-list{padding:0 22px 18px;max-height:230px;overflow:auto}.admin-compact-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #edf0e6;font-size:11px;color:#859576;overflow-wrap:anywhere}.admin-compact-row code{font:11px/1.8 Consolas,monospace;color:#a0ab92;overflow-wrap:anywhere}.admin-table-wrap{padding:0 22px 20px;overflow:auto}.admin-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.85;text-align:left}.admin-table th{padding:10px 11px;background:#f6f8f0;border-bottom:1px solid #e1e7d8;font-size:11px;font-weight:500;color:#93a182;white-space:nowrap}.admin-table td{padding:13px 11px;border-bottom:1px solid #edf0e6;color:#79896a;vertical-align:top;min-width:90px;overflow-wrap:anywhere}.admin-table td:first-child{color:#60774f;min-width:130px}.admin-empty{font-size:12px;color:#a0aa94;line-height:1.9;margin:3px 0 9px}.lesson-card .lesson-schedule{font-size:10px;color:#899b78;line-height:1.8;margin-top:7px}@media(max-width:1000px){.admin-metric{padding:16px 18px}}@media(max-width:820px){.admin-view{padding:28px 20px 40px}.admin-grid{grid-template-columns:1fr;gap:18px}.admin-wide{grid-column:auto}.admin-metrics{gap:10px}.admin-metric{padding:14px;gap:9px}.admin-metric strong{font-size:26px}.admin-metric span{font-size:11px}.admin-nav{margin-bottom:20px}.admin-nav a{font-size:11px;padding:7px 10px}}@media(max-width:560px){.admin-view{padding:23px 14px 35px}.admin-view .page-heading h1{font-size:24px}.admin-view .page-heading p{font-size:11px}.admin-metrics{grid-template-columns:1fr 1fr}.admin-panel .panel-heading{padding:18px 17px 16px}.admin-form{padding:0 17px 17px}.admin-form-row{grid-template-columns:1fr}.admin-notice{padding:14px 17px}.admin-notice p,.admin-status{font-size:11px}.admin-nav{gap:7px}.admin-nav a{padding:7px 9px;font-size:10px}.admin-compact-list{padding-left:17px;padding-right:17px}.admin-table-wrap{padding-left:17px;padding-right:17px}.admin-table{font-size:11px}.admin-table th{font-size:10px}.admin-table td{padding:11px 9px}.demo-accounts{flex-wrap:wrap}}

.admin-workspace{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:24px;align-items:start}.admin-content{min-width:0}.admin-subpages{display:block}.admin-page{outline:none;margin:0}.admin-sidebar{position:sticky;top:22px;border:1px solid #e1e8d7;border-radius:9px;background:#f9fcf4;padding:21px 14px}.admin-sidebar>.eyebrow{display:block;padding:0 9px;font-size:9px}.admin-sidebar .admin-nav{display:flex;flex-direction:column;gap:6px;margin:16px 0 0}.admin-nav button{width:100%;border:1px solid transparent;border-radius:6px;background:transparent;padding:11px 13px;color:#839672;text-align:left;font:12px/1.5 inherit}.admin-nav button:hover{background:#eef4e7}.admin-nav button.selected{background:#e5eedb;border-color:#d4e2c7;color:#466a30;font-weight:600}.admin-menu-toggle{display:none}.admin-dashboard-empty{min-height:250px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px;color:#9daa8e;text-align:center}.admin-dashboard-empty>span{font-size:38px;color:#b9c7a8}.admin-dashboard-empty p{font-size:16px;margin:14px 0 9px;letter-spacing:1px}.admin-dashboard-empty small{font-size:11px;line-height:1.8;color:#adb69f}.admin-home .admin-metrics{margin:0}.admin-subpages .admin-panel{min-width:0}.admin-student-details{display:flex;flex-direction:column;gap:10px;margin:10px 0 3px;padding:19px;border:1px solid #e2e9d8;border-radius:7px;background:#fbfdf7}.admin-student-details>h3{font-size:14px;font-weight:500;color:#617f49;margin:0 0 6px}.admin-form input,.admin-form select,.admin-form textarea{font-family:inherit;font-size:12px}.admin-form textarea{width:100%;resize:vertical;border:1px solid #dce4d2;border-radius:5px;padding:9px 11px;min-height:84px;line-height:1.8;color:#526647;background:white}.admin-form input[readonly]{color:#7d906b;background:#f3f7ed}.admin-profile-details{border-top:1px solid #e5ebde;margin-top:4px;padding-top:15px}.admin-profile-details summary{font-size:12px;color:#899d75;cursor:pointer;line-height:1.8}.admin-profile-fields{display:flex;flex-direction:column;gap:10px;padding-top:15px}.admin-form input[type=file]{height:auto;padding:10px;font-size:11px;line-height:1.9}.admin-photo-preview-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.admin-photo-preview-row img{max-width:155px;max-height:160px;object-fit:contain;border:1px solid #dce6d1;border-radius:6px;background:white;padding:4px}.admin-photo-preview-row .button{font-size:11px}.admin-profile-fields .error{color:#b16e50}@media(max-width:1000px){.admin-workspace{grid-template-columns:minmax(0,1fr) 155px;gap:18px}.admin-sidebar{padding:18px 10px}.admin-nav button{padding:10px 11px;font-size:11px}}@media(max-width:760px){.admin-workspace{display:flex;flex-direction:column;gap:16px}.admin-sidebar{display:none;position:static;order:-1;width:100%;padding:16px}.admin-menu-open .admin-sidebar{display:block}.admin-content{width:100%}.admin-menu-toggle{display:inline-flex;margin:0 0 18px;font-size:11px}.admin-sidebar .admin-nav{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.admin-dashboard-empty{min-height:230px}.admin-student-details{padding:15px}}@media(max-width:560px){.admin-student-details .admin-form-row{grid-template-columns:1fr}.admin-student-details{padding:13px;gap:9px}.admin-dashboard-empty p{font-size:14px}.admin-photo-preview-row img{max-width:125px;max-height:140px}}

.admin-dashboard{padding:0 17px 18px}.admin-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.admin-dashboard-card{padding:22px;min-width:0}.admin-dashboard-card:last-child{grid-column:1/-1}.dashboard-heading{margin:0 0 8px;font-size:19px}.dashboard-description{margin:0 0 16px}.dashboard-chart{display:block;width:100%;height:auto;font-family:inherit}.dashboard-donut-layout{display:flex;align-items:center;gap:12px}.dashboard-donut-layout>.dashboard-chart{width:52%;max-width:230px}.dashboard-legend{flex:1;min-width:100px}.dashboard-data-row{display:flex;justify-content:space-between;gap:16px;padding:6px 0;font-size:13px}.dashboard-data-list{margin:4px 0 14px}.dashboard-empty{padding:28px 10px;text-align:center;color:var(--muted,#697a70)}.dashboard-chart-tabs{display:flex;gap:6px;margin:4px 0 14px}.dashboard-chart-tab{padding:7px 14px;border:1px solid #dbe8df;border-radius:999px;background:#fff;color:#386b58;cursor:pointer}.dashboard-chart-tab[aria-pressed=true]{background:#386b58;color:white}.dashboard-chart-values{font-size:13px}.dashboard-chart-values summary{cursor:pointer;color:#386b58;margin-bottom:8px}.student-attendance-panel{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 22px;padding:16px 20px;border:1px solid #dfe7d5;border-radius:8px;background:#f7faf1}.student-attendance-panel strong{font-size:13px;color:#657d50;margin-right:13px}.student-attendance-panel p{font-size:10px;color:#91a17f;line-height:1.9;margin:8px 0 0}.student-attendance-panel>.button{font-size:11px;flex:none}.attendance-badge{display:inline-block;font-size:9px;line-height:1.7;padding:3px 7px;background:#edf1e7;border:1px solid #e0e6d8;color:#8b9a7d;border-radius:5px}.attendance-badge.present{background:#e9f3e1;color:#618047;border-color:#d5e4c9}.attendance-badge.leave{background:#f6efe2;color:#a18b62;border-color:#eadeca}.student-attendance{margin-top:8px}.teacher-attendance-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.attendance-action{font-size:9px;border:1px solid #d8e3cc;border-radius:4px;color:#6d8957;background:#f6faef;line-height:1.6;padding:3px 8px}.student-text .attendance-message{font-size:9px;line-height:1.75;color:#a08b68;margin:7px 0 0}.student-row>.student-online{align-self:flex-start;padding-top:6px}@media(max-width:1000px){.admin-dashboard-grid{grid-template-columns:1fr}.admin-dashboard-card:last-child{grid-column:auto}}@media(max-width:760px){.admin-dashboard-card{padding:18px}.student-attendance-panel{padding:14px 16px}.student-attendance-panel p{font-size:9px}.student-attendance-panel>.button{font-size:10px}.dashboard-heading{font-size:16px}}@media(max-width:560px){.student-attendance-panel{flex-direction:column;align-items:stretch;gap:12px}.student-attendance-panel>.button{align-self:flex-start}.admin-dashboard{padding:0 12px 14px}.dashboard-donut-layout{flex-wrap:wrap}.dashboard-donut-layout>.dashboard-chart{width:100%;max-width:230px;margin:auto}.dashboard-legend{width:100%;min-width:0}}

.admin-category-settings{margin:0 22px 21px;border:1px solid #e2e8d8;border-radius:7px;background:#fafcf6;padding:15px 16px}.admin-category-settings>h3{font-size:13px;font-weight:500;color:#788e64;margin:0 0 13px}.admin-category-form{display:grid;grid-template-columns:minmax(140px,1.2fr) minmax(120px,1fr) auto;align-items:end;gap:12px;padding:0}.admin-category-form>div{display:flex;flex-direction:column;gap:7px;min-width:0}.admin-category-form>.button{align-self:end;white-space:nowrap;margin:0;min-height:40px;font-size:11px}.admin-category-form>.admin-help,.admin-category-form>.admin-form-message{grid-column:1/-1;margin:0}.admin-weekly-schedule{margin:0 22px 14px;min-width:0}.admin-schedule-selection{margin:0 22px 20px;padding:12px 15px;border-left:3px solid #bad0a6;background:#f4f8ef;font-size:12px;line-height:1.9;color:#7c916b;overflow-wrap:anywhere}.admin-schedule-selection.error{border-left-color:#d3a07c;background:#fff8f1;color:#af7850}.admin-duration-help{display:flex;justify-content:space-between;align-items:flex-start;gap:13px}.admin-duration-help .admin-help{margin:0}.admin-duration-help .text-button{flex:none;font-size:11px;padding-top:2px}@media(max-width:1000px){.admin-category-form{grid-template-columns:minmax(130px,1fr) minmax(110px,1fr)}.admin-category-form>.button{justify-self:start;grid-column:1/-1}}@media(max-width:560px){.admin-category-settings{margin:0 17px 17px;padding:13px}.admin-category-form{grid-template-columns:1fr;gap:10px}.admin-category-form>.button{width:100%}.admin-weekly-schedule{margin:0 12px 12px}.admin-schedule-selection{margin:0 17px 17px;font-size:11px;padding:10px 12px}.admin-duration-help{flex-direction:column;gap:8px}.admin-duration-help .text-button{font-size:10px}}

.admin-category-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0 22px 20px}.admin-category-page-grid>.admin-category-settings{margin:0;min-width:0;padding:17px}.admin-category-page-grid .admin-form{padding:0;gap:10px}.admin-category-page-grid .admin-form>.button{font-size:11px;min-height:36px;margin-top:2px}.admin-category-page-grid .admin-help{font-size:10px;margin:1px 0 2px}.admin-category-page-grid .admin-category-settings>h3{font-size:13px;line-height:1.7;margin-bottom:13px}.admin-schedule-category-link{margin:0 22px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.admin-schedule-category-link>.text-button{font-size:11px}.admin-schedule-category-link>.admin-help{margin:0;font-size:10px}#admin-student-course-empty .text-button,#admin-class-course-empty .text-button{font-size:10px;margin-left:8px;white-space:nowrap}@media(max-width:1000px){.admin-category-page-grid{grid-template-columns:1fr;gap:15px}}@media(max-width:560px){.admin-category-page-grid{padding:0 17px 17px;gap:13px}.admin-category-page-grid>.admin-category-settings{padding:14px}.admin-schedule-category-link{margin:0 17px 16px}.admin-category-page-grid .admin-form>.button{width:100%}}
.admin-schedule-modes{display:flex;gap:6px;margin:0 22px 18px;padding:4px;width:fit-content;max-width:calc(100% - 44px);background:#edf3ee;border:1px solid var(--line,#dbe5dd);border-radius:12px}.admin-schedule-modes button{border:0;border-radius:8px;padding:10px 18px;background:transparent;color:var(--muted);font:inherit;font-size:14px;cursor:pointer}.admin-schedule-modes button[aria-pressed=true]{background:var(--green,#315d4c);color:white}.admin-schedule-modes button:disabled{opacity:.55;cursor:default}.admin-series-form{border-top:1px solid var(--line,#dbe5dd)}.admin-series-duration{margin:0;padding:12px 14px;border-radius:10px;background:#eef5ee;color:var(--green,#315d4c);font-size:14px;font-weight:600}.admin-series-weekdays{display:flex;flex-wrap:wrap;gap:9px;border:1px solid var(--line,#dbe5dd);border-radius:10px;padding:12px 14px;margin:0}.admin-series-weekdays legend{padding:0 5px;font-size:13px;font-weight:600}.admin-series-weekdays label{display:flex;align-items:center;gap:5px;padding:7px 10px;background:#f6f8f5;border-radius:7px;font-size:13px}.admin-series-weekdays input{width:16px!important;height:16px;min-height:0;margin:0;padding:0!important;accent-color:var(--green,#315d4c)}.admin-series-preview{min-width:0;border:1px solid var(--line,#dbe5dd);border-radius:12px;overflow:hidden}.admin-series-preview>p{font-size:14px;line-height:1.7;margin:0;padding:14px 16px;background:#f3f7f1}.admin-series-preview .admin-table-wrap{padding:0;max-height:440px;overflow:auto}.admin-series-preview td:last-child{min-width:220px;white-space:normal}.admin-series-form>input[type=time]{max-width:230px}#admin-single-settings{display:grid;gap:12px}#admin-single-settings[hidden]{display:none}@media(max-width:560px){.admin-schedule-modes{margin-left:17px;margin-right:17px;max-width:calc(100% - 34px)}.admin-schedule-modes button{padding:10px 13px}.admin-series-weekdays{gap:6px}.admin-series-weekdays label{padding:7px}.admin-series-form>input[type=time]{max-width:none}}
.admin-students-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:0 22px 14px}.admin-students-toolbar>div{display:flex;flex-direction:column;gap:7px;flex:1;max-width:400px}.admin-students-toolbar label{font-size:11px;color:#80936c}.admin-students-toolbar input,.admin-student-history-heading select{border:1px solid #dce4d2;border-radius:6px;background:#fff;color:#526647;padding:10px 11px;font:12px inherit;min-width:0}.admin-students-toolbar>.button{font-size:11px;flex:none}.admin-students-status,.admin-students-help{margin:0;padding:0 22px 16px;color:#8b9d77;font-size:11px;line-height:1.9;overflow-wrap:anywhere}.admin-students-status.error,#admin-student-record-status.error{color:#a76545}.admin-student-management-table td:first-child{min-width:150px;overflow-wrap:anywhere;white-space:normal}.admin-student-management-table td:nth-child(2){min-width:150px;white-space:normal}.admin-student-management-table .text-button{font-size:11px;white-space:nowrap}.admin-student-record-heading{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:2px 22px 15px}.admin-student-record-heading h3{margin:0;font-size:17px;color:#57763f;overflow-wrap:anywhere;outline:none}.admin-student-record-heading>.text-button{font-size:11px}.admin-student-record>#admin-student-record-status{margin:0;padding:0 22px 15px;font-size:12px;color:#8b9d77;line-height:1.8}.admin-student-record>#admin-student-record-retry{margin:0 22px 20px;font-size:11px}.admin-student-record-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 22px 16px}.admin-student-record-metric{display:flex;flex-direction:column;justify-content:center;gap:9px;min-height:86px;min-width:0;padding:15px 17px;background:#f5f9ef;border:1px solid #e0e9d5;border-radius:8px}.admin-student-record-metric span{font-size:11px;color:#8b9e77}.admin-student-record-metric strong{font-size:21px;font-weight:500;color:#587b40;line-height:1.5;overflow-wrap:anywhere}.admin-student-record-metric:last-child strong{font-size:13px}.admin-student-record #admin-student-record-classes{padding:0 22px 15px;margin:0}.admin-student-history-note{margin:0 22px 20px;padding:11px 14px;border-left:3px solid #c5ad7f;background:#fcf8ef;color:#a18b62;font-size:11px;line-height:1.9}.admin-student-record-section{border-top:1px solid #e5ebde;padding-top:18px;margin:3px 0 20px;min-width:0}.admin-student-record-section>h3,.admin-student-history-heading h3{margin:0 0 15px;padding:0 22px;font-size:14px;font-weight:500;color:#68864f}.admin-student-history-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-right:22px}.admin-student-history-heading label{display:flex;align-items:center;gap:8px;font-size:11px;color:#899e76}.admin-student-history-heading select{font-size:11px;padding:7px 10px}.admin-student-record-section>.admin-help{padding:0 22px;margin:2px 0 14px}.admin-student-record-section .admin-table td{white-space:normal;min-width:110px;overflow-wrap:anywhere}.admin-student-record-section .admin-table td:first-child{min-width:155px}.admin-student-record-section>summary{cursor:pointer;color:#8b9e76;font-size:12px;padding:0 22px 12px}.admin-student-record-profile{padding:0 22px}#admin-student-record-profile{padding:0 22px 10px}#admin-student-record-profile .admin-help{overflow-wrap:anywhere}.admin-student-record-photo{display:block;max-width:170px;max-height:180px;object-fit:contain;border:1px solid #e0e8d5;border-radius:6px;padding:4px;margin:12px 0;background:#fff}@media(max-width:560px){.admin-students-toolbar{padding:0 17px 14px;flex-wrap:wrap}.admin-students-toolbar>div{width:100%;max-width:none;flex:auto}.admin-students-status,.admin-students-help{padding-left:17px;padding-right:17px}.admin-student-record-summary{padding:0 17px 15px;gap:9px}.admin-student-record-metric{padding:12px;min-height:80px}.admin-student-record-metric strong{font-size:18px}.admin-student-record-heading{padding-left:17px;padding-right:17px}.admin-student-record-heading h3{font-size:15px}.admin-student-history-heading{padding-right:17px}.admin-student-record-section>h3,.admin-student-history-heading h3{padding-left:17px}.admin-student-history-heading label{margin-left:17px;margin-bottom:12px}.admin-student-history-note{margin-left:17px;margin-right:17px}.admin-student-record-section>summary{padding-left:17px;padding-right:17px}}
.admin-class-section-title{margin:0;padding:0 22px 4px;font-size:13px;font-weight:500;color:#789062}.admin-class-members-section{border-top:1px solid #e2e9d8;margin-top:12px;padding-top:4px;outline:none}.admin-class-members-section .panel-heading h3{font-size:14px;font-weight:500;margin:0;color:#698752}.admin-class-members-section:focus{box-shadow:inset 3px 0 #bad0a6}.admin-class-members-section .admin-help{line-height:1.9}.admin-compact-row .text-button{font-size:10px;white-space:nowrap;flex:none}@media(max-width:560px){.admin-class-section-title{padding-left:17px}.admin-class-members-section .panel-heading{flex-wrap:wrap;gap:8px}.admin-class-members-section .small-label{font-size:9px}}
.admin-enrollment-section{margin:0 22px 22px;border:1px solid #dce7d2;border-radius:8px;background:#fbfdf8;padding-top:16px}.admin-enrollment-section>.admin-form{padding-top:0}.admin-enrollment-section>h3{font-size:14px;color:#63854a}.admin-renewal-opening{padding:13px 14px;border:1px solid #e6dcc6;border-radius:7px;background:#fffaf0}.admin-renewal-opening>label{display:block;margin-bottom:8px}.admin-renewal-opening>.admin-help{margin:9px 0 0;line-height:1.9}#admin-renewal-unit-price{max-width:200px}#admin-student-balances-section .admin-table td{min-width:100px;white-space:normal;overflow-wrap:anywhere}@media(max-width:560px){.admin-enrollment-section{margin-left:17px;margin-right:17px}.admin-enrollment-section .admin-form{padding-left:14px;padding-right:14px}.admin-renewal-opening{padding:11px}.admin-enrollment-section>.admin-form>.button{width:100%}#admin-renewal-unit-price{max-width:none}}
.admin-teaching-intro{margin:0;padding:0 22px 18px;font-size:11px;color:#8a9d75;line-height:1.9}.admin-teaching-performance-section{border-top:1px solid #e1e9d8;margin-top:8px;padding:20px 22px 24px;min-width:0}.admin-teaching-performance-section>h3{font-size:14px;font-weight:500;color:#68864d;margin:0 0 15px}#admin-teaching-performance{min-width:0}@media(max-width:560px){.admin-teaching-intro{padding-left:17px;padding-right:17px}.admin-teaching-performance-section{padding:17px 12px}.admin-teaching-performance-section>h3{padding-left:5px}}
.admin-compensation-settings{margin:16px 0 20px;border:1px solid #dce6d3;border-radius:8px;background:#fbfdf8;overflow:hidden}.admin-compensation-settings>h3{font-size:14px;font-weight:500;color:#68854f;padding:17px 20px 0;margin:0}.admin-compensation-settings>.admin-form{padding:17px 20px}.admin-compensation-settings .admin-table-wrap{padding:0 20px 15px}.admin-compensation-settings .admin-table{font-size:11px}.admin-compensation-settings .admin-table td{white-space:normal;min-width:80px;overflow-wrap:anywhere}.admin-compensation-settings .admin-help{font-size:10px;line-height:1.9}.admin-compensation-settlement-message{font-size:11px;line-height:1.9;margin:0 0 12px!important}#admin-compensation-retry{font-size:11px;margin-bottom:15px}#admin-compensation-unit-price{max-width:260px}@media(max-width:560px){.admin-compensation-settings>h3{padding-left:14px}.admin-compensation-settings>.admin-form{padding:14px}.admin-compensation-settings .admin-table-wrap{padding-left:14px;padding-right:14px}.admin-compensation-settings .admin-form-row{grid-template-columns:1fr}#admin-compensation-unit-price{max-width:none}}

.admin-package-section{background:#f9fcf6}.admin-package-source{display:grid;grid-template-columns:minmax(0,1fr) 112px;align-items:center;gap:12px;padding:12px;border:1px solid #dfe8d6;border-radius:7px;background:#fff}.admin-package-sources{display:grid;gap:8px}.admin-package-source>label{display:flex;align-items:flex-start;gap:9px;line-height:1.8;font-size:11px;color:#6d8257}.admin-package-source input[type=checkbox]{width:16px!important;height:16px;min-height:0;margin:3px 0 0;padding:0!important;flex:none;accent-color:#547c42}.admin-package-source>input{width:100%;min-width:0;font-size:11px}.admin-package-target-fields{display:grid;gap:10px;border:1px solid #e1e9d7;background:#f4f8ee;border-radius:7px;padding:13px}.admin-package-target-fields[hidden]{display:none}.admin-package-target-fields>.admin-help{margin:0}.admin-package-preview{border:1px solid #cadcbb;border-radius:8px;background:#fff;overflow:hidden}.admin-package-preview>h4{margin:0;padding:12px 14px;font-size:12px;color:#597c43;background:#edf5e6}.admin-package-preview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:13px}.admin-package-preview-metrics>p{display:flex;flex-direction:column;gap:8px;margin:0;padding:11px;background:#f7faf2;border-radius:6px;min-width:0}.admin-package-preview-metrics span{font-size:10px;color:#859b70;line-height:1.8}.admin-package-preview-metrics strong{font-size:15px;font-weight:500;color:#587b40;overflow-wrap:anywhere}.admin-package-preview-sources,.admin-package-preview-content>.admin-help{padding:0 14px 10px}.admin-package-preview>.admin-help{padding:12px 14px}.admin-package-section textarea{resize:vertical;min-height:64px;font:12px inherit;line-height:1.8;border:1px solid #dce4d2;border-radius:6px;padding:10px;color:#526647}.admin-package-section>.admin-table-wrap{padding-bottom:15px}.admin-package-section .admin-table td{min-width:140px;line-height:1.9}@media(max-width:560px){.admin-package-source{grid-template-columns:1fr;gap:8px;padding:11px}.admin-package-source>input{max-width:180px;margin-left:25px;width:calc(100% - 25px)}.admin-package-preview-metrics{grid-template-columns:1fr;padding:10px;gap:8px}.admin-package-preview-metrics strong{font-size:14px}.admin-package-target-fields{padding:11px}}.admin-category-delete{margin:0 22px 22px;border:1px solid #dec8ab;border-radius:8px;background:#fffbf3;padding:15px 17px}.admin-category-delete>h3{margin:0 0 10px;font-size:13px;color:#9a7850;font-weight:500}.admin-category-delete .admin-help{font-size:11px;line-height:1.9;overflow-wrap:anywhere;outline:none}.admin-category-delete-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.admin-category-delete-actions>.button,.admin-category-delete-actions>.text-button{font-size:11px}.admin-category-delete .admin-form-message{font-size:11px;line-height:1.9;margin:12px 0 0}#admin-category-list .text-button{font-size:11px;white-space:nowrap}@media(max-width:560px){.admin-category-delete{margin-left:17px;margin-right:17px;padding:13px}}

.admin-direct-students-field{display:grid;gap:10px;padding:15px;border:1px solid #dce7d2;border-radius:8px;background:#f7fbf2;min-width:0}.admin-direct-students-field>h3{font-size:13px;font-weight:500;color:#63834d;margin:0}.admin-direct-students-field>.admin-help{margin:0;font-size:11px;line-height:1.9}.admin-direct-students-field .admin-student-options{max-height:240px;overflow:auto}.admin-direct-students-field .admin-student-choice{display:flex;gap:8px;align-items:center;padding:9px 11px;background:white;border:1px solid #e0e8d7;border-radius:6px;font-size:11px;line-height:1.8;cursor:pointer}.admin-direct-students-field input[type=checkbox]{width:15px!important;height:15px;min-height:0;margin:0;padding:0!important;accent-color:#5b7c45}.admin-history-request-note{font-size:11px;line-height:1.9;color:#9c754a;margin:0;overflow-wrap:anywhere}.admin-history-request-note:empty{display:none}#admin-series-class-fields{display:grid;gap:8px}#admin-series-class-fields[hidden]{display:none}@media(max-width:560px){.admin-direct-students-field{padding:12px}}

/* ========================================================================== 
   2026-10-28 · 起点课堂主题覆盖
   Direction: dense-cards + accent-ladder, seed 216075249.
   Palette: user reference, pale blue-grey ground and six chart colours; logo D.
   Scope: presentation only. Existing hidden/inert, menu state, classroom grids,
   full-viewport presentation, whiteboard geometry and code fonts remain owned
   by their original rules. No data, permission or interaction changes here.
   Desktop admin arithmetic: canvas - 210px right navigation - 24px gutter;
   the fluid content column keeps the same left/right edges as its page heading.
   ========================================================================== */

/* 1. Brand, surfaces and type ----------------------------------------------- */
:root {
  --bg: #eef3f8;
  --panel: #ffffff;
  --ink: #263243;
  --muted: #5d6b7f;
  --line: #dfe7ef;
  --green: #167ac6;
  --green-soft: #eaf3fb;
  --orange: #9a641c;
  --orange-soft: #fbf4e8;
  --red: #9f3e36;
  --shadow: none;
  --ui-raised: #f7f9fc;
  --ui-control-border: #bdccdc;
  --ui-rule: #edf1f6;
  --ui-focus: #167ac6;
  --palette-blue: #167ac6;
  --palette-teal: #3aa582;
  --palette-lime: #98ba43;
  --palette-orange: #f49b38;
  --palette-pink: #e36f8a;
  --palette-purple: #9b8bc5;
  --brand-silver: #dde7ed;
  --brand-coral: #f07874;
  --ui-radius: 12px;
  --ui-control-radius: 8px;
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--ui-font);
  font-size: 14px;
  color: var(--ink);
}

.site-header {
  height: 64px;
  padding-inline: max(32px, calc((100vw - 1448px) / 2));
  gap: 24px;
  background: var(--panel);
  border-bottom-color: var(--line);
}
.brand {
  gap: 10px;
  font-size: 20px;
  letter-spacing: 0;
  color: var(--ink);
}
.brand-mark {
  width: 40px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.brand-mark svg { display: block; width: 38px; height: 42px; }
.brand-detail {
  padding-left: 12px;
  margin-left: 12px;
  border-left-color: var(--line);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
}
.header-middle { font-size: 12px; letter-spacing: 0; color: var(--muted); }
.header-account { gap: 16px; min-width: 0; color: var(--ink); font-size: 14px; }
.environment-banner {
  min-height: 28px;
  padding: 5px 16px;
  background: #e8eff7;
  color: #4c6078;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
}
.eyebrow, .small-label { font-size: 12px; letter-spacing: 0; color: var(--muted); }
.muted { color: var(--muted); }
.site-footer { color: var(--muted); font-size: 12px; line-height: 1.6; border-top-color: var(--line); }

/* 2. Ordinary controls: visible focus and readable disabled states ----------- */
:is(.login-card, .home-view, .admin-view, .teacher-controls, .workspace-actions, .student-attendance-panel, .hoj-connection-panel) .button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--ui-control-radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: none;
}
:is(.login-card, .home-view, .admin-view, .teacher-controls, .workspace-actions, .student-attendance-panel, .hoj-connection-panel) .button-primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}
:is(.login-card, .home-view, .admin-view, .teacher-controls, .workspace-actions, .student-attendance-panel, .hoj-connection-panel) .button-primary:hover:not(:disabled) {
  background: #1266a7;
  border-color: #1266a7;
}
:is(.login-card, .home-view, .admin-view, .teacher-controls, .workspace-actions, .student-attendance-panel, .hoj-connection-panel) .button-outline {
  background: var(--panel);
  border-color: var(--ui-control-border);
  color: var(--green);
}
:is(.login-card, .home-view, .admin-view, .teacher-controls, .workspace-actions, .student-attendance-panel, .hoj-connection-panel) .button-outline:hover:not(:disabled) {
  background: var(--green-soft);
  border-color: #a7c4df;
}
:is(.site-header, .login-card, .home-view, .admin-view, .classroom-top, .editor-toolbar) .text-button {
  min-height: 36px;
  padding: 6px 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: var(--green);
}
:is(.site-header, .login-card, .home-view, .admin-view, .teacher-controls, .workspace-actions, .student-attendance-panel, .hoj-connection-panel) button:disabled:not(.week-time-slot) {
  opacity: 1;
  background: #edf1f6;
  border-color: #d8e1ed;
  color: #5f6e82;
  cursor: not-allowed;
}
:is(.login-card, .admin-view, .hoj-connection-panel) :is(input, select, textarea):disabled {
  opacity: 1;
  background: #f0f4f8;
  border-color: #d8e1ed;
  color: #5f6e82;
  -webkit-text-fill-color: #5f6e82;
}
:is(.site-header, .login-card, .home-view, .admin-view, .teacher-controls, .workspace-actions, .student-attendance-panel, .hoj-connection-panel) :is(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 3px;
  box-shadow: none;
}
:is(.login-card, .admin-view, .hoj-connection-panel) :is(input, select, textarea):focus {
  outline: 2px solid var(--ui-focus);
  outline-offset: 1px;
}

/* 3. Management shell: compact heading, quiet notice, right navigation ------- */
.admin-view { max-width: 1512px; padding: 22px 32px 40px; }
.admin-view .page-heading { align-items: center; gap: 16px; margin-bottom: 12px; }
.admin-view .page-heading h1 { margin: 4px 0; font-size: 24px; line-height: 1.4; letter-spacing: 0; font-weight: 600; }
.admin-view .page-heading p { margin: 4px 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.admin-notice {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.admin-notice strong { font-size: 12px; font-weight: 500; color: var(--ink); }
.admin-notice summary {
  min-height: 22px;
  padding: 1px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  list-style-position: inside;
}
.admin-notice summary::marker { color: var(--green); }
.admin-notice summary:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 3px; border-radius: 4px; }
.admin-notice[open] summary { margin-bottom: 6px; color: var(--ink); }
.admin-notice p { margin: 5px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.admin-status { margin: 8px 0 14px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.admin-status.error { color: var(--red); }
.admin-workspace { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; align-items: start; }
.admin-content, .admin-subpages { min-width: 0; }
.admin-sidebar {
  top: 20px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: #f7f9fc;
  box-shadow: none;
}
.admin-sidebar > .eyebrow { padding: 0 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.admin-sidebar .admin-nav { gap: 4px; margin: 12px 0 0; }
.admin-nav button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #4e6076;
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: none;
}
.admin-nav button:hover:not(:disabled) { background: #e8eff7; color: var(--ink); }
.admin-nav button.selected { background: #e4eef8; border-color: transparent; color: #155c94; font-weight: 600; box-shadow: none; }
.admin-nav button:focus-visible { outline-offset: 1px; }
.admin-view .admin-menu-toggle { min-height: 38px; margin-bottom: 14px; font-size: 14px; }

/* The home is a layout host, not a fifth card around the four real cards. */
#admin-home { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
#admin-home > .panel-heading { padding: 0 0 12px; gap: 12px; }
#admin-home > .panel-heading h2 { color: var(--muted); font-size: 14px; line-height: 1.5; font-weight: 500; }
#admin-home > #admin-dashboard { padding: 0; }
#admin-home > .admin-metrics { padding: 0; margin: 0; }

/* 4. Management forms and working sections -------------------------------- */
.admin-panel { border-color: var(--line); border-radius: var(--ui-radius); background: var(--panel); box-shadow: none; }
.admin-panel .panel-heading { padding: 20px 24px 16px; gap: 12px; }
.admin-panel .panel-heading h2 { color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 600; }
.admin-view .admin-form { padding: 0 24px 22px; gap: 9px; }
.admin-view .admin-form > label:not(:first-child) { margin-top: 5px; }
.admin-view .admin-form label, .admin-view .admin-field-label { font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--ink); }
.admin-view .admin-form-row { gap: 16px; }
.admin-view .admin-form-row > div { gap: 8px; }
.admin-view .admin-form :is(input:not([type="checkbox"]):not([type="hidden"]), select, textarea),
.admin-students-toolbar input, .admin-student-history-heading select {
  border: 1px solid var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--ui-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  min-width: 0;
}
.admin-view .admin-form :is(input:not([type="checkbox"]):not([type="hidden"]), select) { height: 40px; padding: 8px 12px; }
.admin-view .admin-form textarea { padding: 10px 12px; line-height: 1.7; }
.admin-view .admin-form input::placeholder, .admin-view .admin-form textarea::placeholder, .admin-students-toolbar input::placeholder { color: #68778a; font-size: 14px; }
.admin-view .admin-form input[readonly] { color: #496079; background: var(--ui-raised); }
.admin-view .admin-form input[type="file"] { height: auto; padding: 9px 10px; font-size: 12px; line-height: 1.7; }
.admin-view input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 10px; border: 1px solid var(--ui-control-border); border-radius: 6px; color: var(--green); background: var(--green-soft); font-family: inherit; }
.admin-view input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green); }
.admin-view .admin-form > .button, .admin-category-page-grid .admin-form > .button, .admin-category-form > .button { min-height: 38px; padding: 8px 14px; margin-top: 7px; font-size: 14px; line-height: 20px; }
.admin-view .admin-help, .admin-view .admin-empty, .admin-view .admin-history-request-note { color: var(--muted); font-size: 12px; line-height: 1.75; }
.admin-view .admin-form-message { color: var(--muted); font-size: 12px; line-height: 1.75; }
.admin-view .admin-form-message.error, .admin-view .admin-students-status.error, #admin-student-record-status.error { color: var(--red); }
.admin-view .admin-form-message.success { color: var(--green); }
.admin-view .admin-compact-list { padding-inline: 24px; }
.admin-view .admin-compact-row { min-height: 48px; padding-block: 12px; gap: 16px; color: var(--ink); font-size: 14px; line-height: 1.6; border-bottom-color: var(--ui-rule); }
.admin-view .admin-compact-row > span { overflow-wrap: anywhere; }
.admin-view .admin-compact-row code { font-size: 13px; color: var(--muted); }
.admin-view .admin-student-options { gap: 8px; }
.admin-view .admin-student-options label, .admin-direct-students-field .admin-student-choice { padding: 10px 12px; border-color: var(--line); border-radius: 8px; color: var(--ink); background: var(--panel); font-size: 14px; line-height: 1.6; }
.admin-view .admin-student-options input[type="checkbox"] { margin: 0; flex: none; }
.admin-view .admin-student-options label:has(input:checked) { border-color: #9cbfdf; background: var(--green-soft); }
.admin-view .admin-student-options label:has(input:disabled) { color: #5f7085; background: #f0f4f8; }
.admin-view .admin-student-options .admin-help { grid-column: 1 / -1; }
.admin-view .admin-student-details { padding: 16px; background: var(--ui-raised); border-color: var(--line); border-radius: 10px; }
.admin-category-page-grid { gap: 16px; padding: 0 24px 22px; }
.admin-category-page-grid > .admin-category-settings { padding: 18px; }
.admin-category-page-grid .admin-form { padding: 0; }
.admin-category-settings { border-color: var(--line); border-radius: 10px; background: var(--ui-raised); }
.admin-category-settings > h3, .admin-category-page-grid .admin-category-settings > h3 { font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.admin-class-section-title, .admin-class-members-section .panel-heading h3 { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.admin-view .admin-class-members-section { border-top-color: var(--line); }
.admin-enrollment-section, .admin-compensation-settings { border-color: var(--line); border-radius: 10px; background: var(--panel); }
.admin-view .admin-enrollment-section > .admin-form { padding-top: 0; }
.admin-compensation-settings > .admin-form { padding: 18px 20px; }
.admin-compensation-settings > h3 { font-size: 16px; color: var(--ink); font-weight: 600; }
.admin-view .admin-direct-students-field { padding: 16px; border-color: var(--line); border-radius: 10px; background: var(--ui-raised); }
.admin-direct-students-field > h3 { color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 600; }
.admin-view .admin-direct-students-field > .admin-help { font-size: 12px; color: var(--muted); }
.admin-view .admin-category-delete { border-color: #e3d0b1; border-radius: 10px; background: #fcf8ef; }
.admin-category-delete > h3 { color: #805d2c; font-size: 16px; line-height: 1.5; }
.admin-view .admin-category-delete .admin-help { color: #75592f; }
.admin-category-delete-actions > .button, .admin-category-delete-actions > .text-button, #admin-category-list .text-button { min-height: 36px; font-size: 13px; }
#admin-category-delete-submit { border-color: #be8279; color: #943e35; background: var(--panel); }
.admin-schedule-modes { border-color: var(--line); border-radius: 10px; background: #edf2f8; }
.admin-schedule-modes button { min-height: 36px; padding: 8px 15px; border-radius: 7px; color: #4c6078; font-family: var(--ui-font); font-size: 14px; line-height: 20px; }
.admin-schedule-modes button[aria-pressed="true"] { color: #155c94; background: var(--panel); box-shadow: none; }
.admin-view .admin-series-weekdays { padding: 12px; border-color: var(--line); border-radius: 10px; }
.admin-series-weekdays legend { font-size: 14px; color: var(--ink); }
.admin-series-weekdays label { padding: 8px 10px; color: var(--ink); background: var(--ui-raised); font-size: 14px; }
.admin-series-preview, .admin-view .admin-package-preview { border-color: var(--line); border-radius: 10px; }
.admin-series-preview > p, .admin-series-duration, .admin-package-preview > h4 { color: #325c80; background: var(--green-soft); font-size: 14px; line-height: 1.7; }
.admin-schedule-selection { border-left-color: #a0bfda; background: var(--green-soft); color: #486079; font-size: 12px; line-height: 1.7; }
.admin-schedule-selection.error { border-left-color: #b47d58; background: #fcf5eb; color: #80592c; }
.admin-teaching-intro, .admin-view .admin-duration-help .admin-help, .admin-view .admin-schedule-category-link > .admin-help { font-size: 12px; line-height: 1.7; color: var(--muted); }
.admin-duration-help .text-button, .admin-schedule-category-link > .text-button, #admin-student-course-empty .text-button, #admin-class-course-empty .text-button { min-height: 32px; font-size: 12px; }

/* 5. Tables: plain rules, strong identity and tabular figures ----------------- */
.admin-view .admin-table-wrap { max-width: 100%; padding: 0 24px 22px; overflow-x: auto; overscroll-behavior-x: contain; }
.admin-view .admin-table { font-size: 14px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.admin-view .admin-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 12px; font-weight: 500; line-height: 20px; letter-spacing: 0; }
.admin-view .admin-table td { padding: 12px; border-bottom: 1px solid var(--ui-rule); color: var(--ink); font-size: 14px; line-height: 1.7; }
.admin-view .admin-table td:first-child { color: var(--ink); }
.admin-view .admin-table .text-button { font-size: 13px; min-height: 36px; }
.admin-view .admin-table tbody tr:last-child td { border-bottom: 0; }
#admin-student-list :is(th, td):nth-child(n+5),
#admin-students-list :is(th, td):is(:nth-child(4), :nth-child(5)),
#admin-student-record-enrollments :is(th, td):is(:nth-child(2), :nth-child(3), :nth-child(4)),
#admin-student-record-course-balances :is(th, td):nth-child(n+2),
#admin-student-record-enrollment-balances :is(th, td):is(:nth-child(3), :nth-child(4), :nth-child(5)),
#admin-category-list :is(th, td):nth-child(3),
#admin-lesson-list :is(th, td):nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }

/* 6. Student dossiers, enrollment and package adjustment -------------------- */
.admin-students-toolbar { padding: 0 24px 14px; gap: 16px; }
.admin-students-toolbar label, .admin-student-history-heading label { color: var(--ink); font-size: 14px; line-height: 1.5; }
.admin-students-toolbar input { min-height: 40px; padding: 9px 12px; }
.admin-students-status, .admin-students-help { padding-inline: 24px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.admin-student-record-heading { padding: 0 24px 16px; gap: 16px; }
.admin-student-record-heading h3 { color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.5; }
.admin-student-record > #admin-student-record-status { padding-inline: 24px; font-size: 12px; color: var(--muted); }
.admin-student-record-summary { padding: 0 24px 16px; gap: 12px; }
.admin-student-record-metric { min-height: 94px; padding: 16px; border-color: var(--line); border-radius: 10px; background: var(--ui-raised); }
.admin-student-record-metric span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.admin-student-record-metric strong { color: var(--ink); font-size: 24px; line-height: 1.45; font-weight: 600; font-variant-numeric: tabular-nums; }
.admin-student-record-metric:last-child strong { color: var(--ink); font-size: 14px; font-weight: 500; }
.admin-student-record-section > h3, .admin-student-history-heading h3 { color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 600; }
.admin-student-record-section { margin-bottom: 20px; border-top-color: var(--line); }
.admin-student-record-section > summary { min-height: 36px; color: var(--green); font-size: 14px; line-height: 1.6; }
.admin-student-history-note { border-left-color: #b59a6a; color: #75592f; background: #fcf8ef; font-size: 12px; line-height: 1.75; }
.admin-student-history-heading select { min-height: 36px; padding: 6px 10px; }
.admin-view .admin-renewal-opening { border-color: #e3d0b1; border-radius: 8px; background: #fcf8ef; }
.admin-view .admin-package-source { padding: 12px; border-color: var(--line); border-radius: 8px; background: var(--panel); }
.admin-view .admin-package-source > label { color: var(--ink); font-size: 14px; line-height: 1.65; }
.admin-view .admin-package-target-fields { border-color: var(--line); border-radius: 8px; background: var(--ui-raised); }
.admin-view .admin-package-preview-metrics { gap: 12px; padding: 14px; }
.admin-package-preview-metrics > p { background: var(--ui-raised); border-radius: 8px; }
.admin-package-preview-metrics span { color: var(--muted); font-size: 12px; line-height: 1.65; }
.admin-package-preview-metrics strong { color: var(--ink); font-size: 18px; line-height: 1.5; font-weight: 600; font-variant-numeric: tabular-nums; }
#admin-compensation-retry { min-height: 36px; font-size: 14px; }

/* 7. Login and account connection ----------------------------------------- */
.login-layout { max-width: 1080px; padding: 48px 32px 56px; gap: 64px; }
.login-intro h1 { margin: 14px 0 18px; color: var(--ink); font-size: 24px; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
.login-intro > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.intro-sample { border-color: var(--line); border-radius: 10px; background: var(--green-soft); box-shadow: none; }
.sample-bar, .sample-caption, .intro-bottom { color: var(--muted); }
.intro-bottom { font-size: 12px; }
.login-card { padding: 28px 28px 22px; border-color: var(--line); border-radius: var(--ui-radius); background: var(--panel); box-shadow: none; }
.login-card h2 { margin: 10px 0 8px; color: var(--ink); font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.login-card > .muted { margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.login-card label { margin: 16px 0 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
.login-card input { height: 40px; padding: 8px 12px; border-color: var(--ui-control-border); border-radius: var(--ui-control-radius); color: var(--ink); background: var(--panel); font-family: var(--ui-font); font-size: 14px; }
.login-card input::placeholder { color: #68778a; font-size: 14px; }
.login-card .form-error { color: var(--red); font-size: 12px; line-height: 1.7; }
.demo-login { border-top-color: var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.demo-login strong { color: var(--ink); font-size: 12px; font-weight: 500; }
.demo-login p, #demo-account-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
.demo-accounts { gap: 8px; }
.demo-accounts button { min-height: 36px; padding: 7px 12px; border-color: var(--ui-control-border); border-radius: 8px; background: var(--ui-raised); color: var(--green); font-size: 13px; line-height: 20px; }
.hoj-connection-panel { margin-top: 20px; border-color: var(--line); background: var(--panel); border-radius: var(--ui-radius); }
.hoj-panel-top h2 { color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 600; }
.hoj-privacy, .hoj-connection-message { color: var(--muted); font-size: 12px; line-height: 1.75; }
.hoj-login-form label { color: var(--ink); font-size: 14px; }
.hoj-login-form input { height: 40px; border-color: var(--ui-control-border); border-radius: var(--ui-control-radius); color: var(--ink); font-family: var(--ui-font); font-size: 14px; }
.hoj-login-form input::placeholder { color: #68778a; }
.hoj-bound-account { border-top-color: var(--line); }
.hoj-bound-account strong { color: var(--ink); font-size: 14px; }
.hoj-bound-account span { color: var(--muted); font-size: 12px; }
.hoj-connection-message.error { color: var(--red); }

/* 8. Teacher and student working UI (no slide/canvas/editor geometry) ------- */
.home-view, .classroom-view { padding-top: 28px; }
.page-heading h1, .lesson-heading h1 { color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.page-heading p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.home-notice { margin: 18px 0 24px; padding: 14px 16px; border-color: var(--line); border-radius: 10px; background: var(--panel); }
.home-notice strong { color: var(--ink); font-size: 14px; }
.home-notice p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.lesson-card { padding: 22px; border-color: var(--line); border-radius: var(--ui-radius); box-shadow: none; }
.lesson-card-top { margin-bottom: 18px; }
.lesson-card h2 { color: var(--ink); font-size: 16px; line-height: 1.6; font-weight: 600; }
.lesson-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.lesson-card .lesson-schedule { color: var(--muted); font-size: 12px; line-height: 1.7; }
.lesson-card-bottom { border-top-color: var(--line); margin-top: 20px; padding-top: 16px; }
.status-badge, .sample-badge, .attendance-badge, .result-badge { min-height: 24px; padding: 3px 8px; border-radius: 6px; font-size: 12px; line-height: 18px; }
.status-badge { color: #506456; background: #edf2f8; }
.status-badge.active { color: #24563e; background: #e6f1e8; }
.status-badge.ended { color: #606e80; background: #eef2f6; }
.sample-badge { color: #806026; border-color: #e6d5b6; background: #fbf6eb; }
.classroom-top { margin-bottom: 18px; }
.sync-indicator { color: var(--muted); font-size: 12px; }
.lesson-heading { gap: 18px; margin-bottom: 22px; }
.lesson-meta, #lesson-meta { color: var(--muted); font-size: 12px; line-height: 1.7; }
#application-shell .panel { border-color: var(--line); box-shadow: none; }
#application-shell .panel-heading h2 { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; }
#application-shell #admin-home > .panel-heading h2 { color: var(--muted); font-size: 14px; font-weight: 500; }
.section-hint, .problem-list-hint { color: var(--muted); font-size: 12px; line-height: 1.7; }
.problem-item { border-radius: 8px; color: var(--ink); }
.problem-item h3 { font-size: 14px; line-height: 1.6; color: var(--ink); }
.problem-item p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.problem-item.selected { border-color: #c9dced; background: var(--green-soft); }
.problem-item.selected h3 { color: #155c94; }
.problem-number { color: #60748c; font-family: var(--ui-font); font-size: 14px; font-variant-numeric: tabular-nums; }
.problem-publish { min-height: 36px; padding: 6px 10px; border: 1px solid #c9d9ea; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 12px; line-height: 20px; }
.sidebar-note p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.problem-detail h3 { color: var(--ink); font-size: 16px; line-height: 1.6; }
.problem-detail h4 { color: var(--ink); font-size: 14px; line-height: 1.6; }
.problem-detail p, .problem-detail .statement { color: #465c75; font-size: 14px; line-height: 1.85; }
.sample-pair { border-color: var(--line); border-radius: 8px; }
.sample-pair label { color: var(--muted); font-size: 12px; line-height: 1.6; }
.sample-actions button { min-height: 36px; font-size: 12px; line-height: 20px; color: var(--green); border-color: #c7d8ea; }
.student-row { border-bottom-color: var(--ui-rule); gap: 12px; }
.student-avatar { color: #3c624c; background: var(--green-soft); font-size: 14px; }
.student-text strong { color: var(--ink); font-size: 14px; line-height: 1.6; font-weight: 500; }
.student-text p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.student-online { color: #486952; font-size: 12px; }
.student-online.offline { color: var(--muted); }
.student-attendance-panel { background: var(--ui-raised); border-color: var(--line); border-radius: 10px; }
.student-attendance-panel strong { color: var(--ink); font-size: 14px; }
.student-attendance-panel p, .student-text .attendance-message { color: var(--muted); font-size: 12px; line-height: 1.7; }
.attendance-badge { border-color: var(--line); color: #526a83; background: #e8eff7; }
.attendance-badge.present { color: #24563e; border-color: #c9dccf; background: #e8f2ea; }
.attendance-badge.leave { color: #7c5d26; border-color: #e6d7b9; background: #faf4e7; }
.attendance-action { min-height: 36px; padding: 6px 10px; border-color: #c7d8ea; border-radius: 7px; color: var(--green); background: var(--panel); font-size: 12px; line-height: 20px; }
.save-indicator { color: #526e59; font-size: 12px; }
.editor-toolbar { height: auto; min-height: 40px; padding: 7px 18px; gap: 12px; background: var(--ui-raised); border-color: var(--line); }
.editor-toolbar .muted { color: var(--muted); font-size: 12px; }
.execution-section { border-top-color: var(--line); }
.execution-section label { color: var(--ink); font-size: 14px; }
.workspace-actions { border-top-color: var(--line); }
.workspace-actions p { color: #766038; font-size: 12px; line-height: 1.7; }
.submission-feedback { color: #375b43; font-size: 14px; line-height: 1.75; background: var(--green-soft); }
.submission-feedback.error { color: var(--red); background: #fbefeb; }
.history-row { color: var(--ink); font-size: 14px; line-height: 1.6; border-bottom-color: var(--ui-rule); font-variant-numeric: tabular-nums; }
.history-row .history-person, .history-row time, .history-judge-meta { color: var(--muted); font-size: 12px; line-height: 1.65; }
.history-mode { color: #7c602e; font-size: 12px; }
.result-badge { color: #586c83; background: #edf2f8; }
.result-badge.success { color: #24563e; background: #e8f2ea; }
.result-badge.failure { color: var(--red); background: #fbece7; }
.run-status-badge { font-size: 12px; }
.run-status-badge.success { color: #24563e; background: #e8f2ea; border-color: #c9dccf; }
.run-status-badge.failure { color: var(--red); background: #fbece7; border-color: #e6c8bf; }
.run-status-badge.pending { color: #7c5d26; background: #faf4e7; border-color: #e6d7b9; }
.run-status-badge.neutral { color: #526a83; background: #edf2f8; border-color: var(--line); }
.empty-state { color: var(--muted); font-size: 14px; line-height: 1.75; }

/* 9. Narrow layouts retain the existing menu toggle and business ordering ---- */
@media (max-width: 1100px) {
  .admin-view { padding-inline: 24px; }
  .admin-workspace { gap: 20px; }
  .login-layout { gap: 40px; padding-top: 36px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 60px; height: auto; padding: 12px 16px; gap: 12px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand-mark { width: 34px; height: 38px; flex: none; }
  .brand-mark svg { width: 32px; height: 36px; }
  .brand-detail { margin-left: 10px; padding-left: 10px; font-size: 12px; }
  .header-account { gap: 10px; font-size: 12px; }
  #account-label { max-width: 32vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .admin-view { padding: 18px 16px 32px; }
  .admin-view .page-heading { gap: 12px; margin-bottom: 12px; }
  .admin-view .page-heading h1 { font-size: 24px; }
  .admin-view .page-heading p { font-size: 12px; }
  .admin-status { margin: 8px 0 12px; }
  .admin-notice { padding: 8px 10px; }
  .admin-workspace { gap: 16px; }
  .admin-sidebar { position: static; top: auto; padding: 12px; border-radius: 10px; }
  .admin-sidebar .admin-nav { margin-top: 8px; gap: 6px; }
  .admin-nav button { min-height: 44px; padding: 10px 12px; }
  .admin-panel .panel-heading { padding: 18px 18px 14px; }
  #admin-home > .panel-heading { padding: 0 0 10px; }
  .admin-view .admin-form { padding-inline: 18px; }
  .admin-category-page-grid { padding-inline: 18px; }
  .admin-category-page-grid .admin-form { padding: 0; }
  .admin-view .admin-table-wrap { padding-inline: 18px; }
  .admin-students-toolbar, .admin-students-status, .admin-students-help { padding-inline: 18px; }
  .admin-student-record-heading, .admin-student-record-summary, .admin-student-record > #admin-student-record-status { padding-inline: 18px; }
  .admin-student-record-heading h3 { font-size: 18px; }
  .admin-students-toolbar { flex-wrap: wrap; }
  .admin-students-toolbar > div { width: 100%; max-width: none; }
  .admin-form .admin-form-row { grid-template-columns: 1fr; }
  .admin-compact-row { flex-wrap: wrap; }
  .admin-enrollment-section { margin-inline: 18px; }
  .admin-direct-students-field .admin-student-choice { padding: 10px; }
  .home-view, .classroom-view { padding-inline: 16px; }
  .page-heading h1, .lesson-heading h1 { font-size: 24px; }
  .lesson-card { padding: 20px; }
  .login-layout { gap: 26px; padding: 32px 20px; }
  .login-card { padding: 24px; }
  .login-intro h1 { font-size: 24px; }
  .teacher-controls { flex-wrap: wrap; }
  :is(.login-card, .home-view, .admin-view, .teacher-controls, .workspace-actions, .student-attendance-panel, .hoj-connection-panel) .button { min-height: 40px; }
}
@media (max-width: 480px) {
  .admin-student-record-summary { grid-template-columns: 1fr; }
  .admin-student-record-metric { min-height: 82px; }
  .admin-student-record-metric strong { font-size: 24px; }
  .admin-student-options { grid-template-columns: 1fr; }
  .admin-category-page-grid { padding-inline: 16px; }
  .admin-view .admin-form, .admin-view .admin-table-wrap { padding-inline: 16px; }
  .admin-category-page-grid .admin-form { padding: 0; }
  .admin-view .admin-package-source { gap: 8px; }
  .admin-direct-students-field { padding: 12px; }
  .history-row { font-size: 13px; }
  .history-row time, .history-row .history-person, .history-judge-meta { font-size: 12px; }
  .environment-banner { padding-inline: 12px; font-size: 12px; }
}

/* The tablet uses the existing menu state, so forms keep their working width. */
@media (max-width: 1100px) {
  .admin-workspace { grid-template-columns: minmax(0, 1fr); }
  .admin-view .admin-menu-toggle { display: inline-flex; }
  .admin-sidebar { display: none; position: static; order: -1; width: 100%; padding: 14px; }
  .admin-menu-open .admin-sidebar { display: block; }
  .admin-sidebar .admin-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
}

/* Administrator student identity: visible contact details, separate login state. */
.admin-student-management-table .admin-student-identity { min-width: 190px; }
.admin-student-identity > strong,
.admin-student-identity > span,
.admin-student-basic-cell > span { display: block; white-space: normal; overflow-wrap: anywhere; }
.admin-student-identity > strong { margin-bottom: 5px; color: var(--ink); font-size: 14px; font-weight: 600; }
.admin-student-account-state { color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-student-management-table .admin-student-basic-cell { min-width: 205px; color: var(--ink); font-size: 13px; line-height: 1.8; }
.admin-student-contact-phone { font-variant-numeric: tabular-nums; }
.admin-student-management-table td:nth-child(3) { min-width: 160px; white-space: normal; }
.admin-student-management-table :is(th, td):nth-child(4),
.admin-student-management-table :is(th, td):nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
.admin-student-record #admin-student-record-classes { color: var(--ink); font-size: 14px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.admin-student-choice > span { line-height: 1.7; overflow-wrap: anywhere; }

/* Student record editing: separate profile and credential actions. */
.admin-students-toolbar { flex-wrap: wrap; }
.admin-students-toolbar > div { min-width: 220px; }
#admin-students-missing-phone[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.admin-student-edit-section { margin: 0 22px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.admin-student-edit-section > summary { padding: 12px 14px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.6; cursor: pointer; }
.admin-student-edit-section > summary:hover { background: var(--ui-raised, #f7f9fc); }
.admin-student-edit-section > summary:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.admin-student-edit-section[open] > summary { border-bottom: 1px solid var(--line); }
.admin-student-edit-section .admin-form { padding: 16px; }
.admin-student-edit-section .admin-help { margin-top: 0; }
.admin-student-edit-section .admin-form-message { margin-bottom: 0; overflow-wrap: anywhere; }
.admin-student-edit-section .admin-form > .button { align-self: flex-start; }
@media (max-width: 760px) {
  .admin-student-edit-section { margin-inline: 18px; }
  .admin-students-toolbar > div { min-width: 0; }
}

/* User-supplied silver/coral PNG, kept transparent and proportional. */
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-mark .brand-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 820px) {
  .brand-mark { width: 38px; height: 38px; }
}
