.homework-host{--hw:#3478f6;--hw-ink:#13293d;--hw-muted:#657786;--hw-line:#dce3e8;font:16px/1.55 "Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--hw-ink)}
.homework-host *{box-sizing:border-box}.hw-app{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:680px;border:1px solid #e2e5ea;border-radius:24px;overflow:hidden;background:#f5f6f8}.hw-side{padding:24px 12px;background:#fafbfc;border-right:1px solid #e2e5ea}.hw-brand{display:flex;align-items:center;gap:11px;padding:0 10px 18px}.hw-brand>b{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#2d75f3,#7057dd);color:#fff;font-size:18px}.hw-brand strong,.hw-brand small{display:block}.hw-brand small{color:#9298a2;font-size:9px;letter-spacing:.12em}.hw-nav{display:grid;gap:5px}.hw-nav>span{margin:12px 12px 1px;color:#969da7;font-size:9px;letter-spacing:.12em}.hw-nav button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:11px;background:transparent;color:#515761;text-align:left;font:inherit;cursor:pointer}.hw-nav button i{width:20px;color:#8d96a3;font-style:normal;font-weight:800;text-align:center}.hw-nav button:hover{background:#eef1f6}.hw-nav button.active{background:#e7ebf2;color:#111;font-weight:750}.hw-nav button.active i{color:#3478f6}.hw-main{min-width:0;padding:28px 32px}.hw-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-8px -4px 20px;padding:0 0 18px;border-bottom:1px solid #e0e4ea}.hw-crumb{color:#8b919b;font-size:12px}.hw-crumb span{margin:0 10px;color:#c1c6ce}.hw-crumb b{color:#30343a}.hw-top-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap;justify-content:flex-end}.hw-subject-picker{display:flex;align-items:center;gap:8px;min-height:42px;padding:4px 5px 4px 12px;border:1px solid #d7dde5;border-radius:11px;background:#fff}.hw-subject-picker span{color:#7a828d;font-size:11px;white-space:nowrap}.hw-subject-picker select{min-width:90px;padding:7px 26px 7px 7px;border:0!important;outline:0;background:transparent!important;font-weight:750}.hw-lock{min-height:42px;white-space:nowrap}.hw-lock.unlocked{color:#16864a!important;border-color:#bce5cb!important;background:#f2fbf5!important}.hw-context{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.hw-context small{color:#708196}.hw-context span{padding:7px 12px;border-radius:999px;background:#fff;color:#617386;font-size:12px}.hw-hero{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.hw-hero>div:first-child>span,.hw-card>span{color:#67717f;font-size:10px;font-weight:850;letter-spacing:.16em}.hw-hero h2{margin:4px 0 2px;font-size:30px;line-height:1.2}.hw-hero p{margin:0;color:var(--hw-muted)}.hw-actions{display:flex;align-items:end;gap:9px;flex-wrap:wrap;justify-content:flex-end}.hw-actions input,.hw-actions label{height:42px}.hw-search{width:180px}.homework-host input,.homework-host textarea,.homework-host select{border:1px solid #d5dce5;border-radius:10px;padding:10px 12px;background:#fff;color:var(--hw-ink);font:inherit}.homework-host button{border:1px solid #d3dae3;border-radius:10px;padding:9px 13px;background:#fff;color:var(--hw-ink);font:inherit;font-weight:700;cursor:pointer}.homework-host button:hover{background:#f5f8fc}.homework-host button.primary{background:var(--hw);border-color:var(--hw);color:#fff}.homework-host button.danger{color:#bf3f39;border-color:#efc8c4;background:#fff7f6}.hw-summary{display:grid;grid-template-columns:1.35fr repeat(3,1fr);gap:14px;margin-bottom:18px}.hw-summary article,.hw-card,.hw-history,.hw-table-scroll,.hw-empty{border:1px solid var(--hw-line);border-radius:18px;background:#fff;box-shadow:0 7px 22px #17283b0a}.hw-summary article{min-height:126px;padding:20px}.hw-summary article.dark{position:relative;overflow:hidden;background:#18304a;border-color:#18304a;color:#fff}.hw-summary article.dark:after{content:'✓';position:absolute;right:14px;bottom:-30px;color:#fff1;font:700 7rem/1 serif}.hw-summary span,.hw-summary small{display:block;color:#718397}.hw-summary article.dark span,.hw-summary article.dark small{color:#bdccda}.hw-summary b{display:block;margin:8px 0;font:850 29px Georgia,serif}.hw-table-scroll{width:100%;overflow:auto;scrollbar-width:thin}.hw-matrix,.hw-data-table{width:100%;min-width:680px;border-collapse:separate;border-spacing:0}.hw-matrix th,.hw-matrix td,.hw-data-table th,.hw-data-table td{height:57px;padding:10px 13px;border-bottom:1px solid #e5eaee;border-right:1px solid #e5eaee;text-align:center}.hw-matrix thead th,.hw-data-table thead th{position:sticky;top:0;z-index:2;background:#f7f9fb;color:#596a7b;font-size:12px}.hw-matrix thead th:first-child,.hw-matrix tbody th{position:sticky;left:0;z-index:3;min-width:160px;text-align:left;background:#fff}.hw-matrix thead th:first-child{z-index:4;background:#f7f9fb}.hw-matrix thead th>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.hw-matrix thead button{width:22px;height:22px;padding:0;color:#c64d46;border:0;background:#fdebe9}.hw-matrix tbody th{white-space:nowrap}.hw-matrix tbody th i{display:inline-grid;place-items:center;width:30px;height:30px;margin-right:9px;border-radius:9px;background:#edf2f6;font-style:normal;font-size:11px}.hw-cell{width:38px;height:38px;padding:0!important;border:0!important;border-radius:11px!important;font-size:17px!important;font-weight:900!important}.hw-cell.pass,.hw-cell.submitted{background:#23976e!important;color:#fff!important;box-shadow:0 5px 12px #23976e33}.hw-cell.fail,.hw-cell.missing{background:#fbe9e8!important;color:#cf5656!important}.hw-cell.blank{border:1px dashed #c7d1da!important;background:#fff!important;color:transparent!important}.hw-data-table{min-width:620px}.hw-data-table th,.hw-data-table td{text-align:left}.hw-data-table th:first-child{width:72px}.hw-data-table th:nth-child(2){width:22%}.hw-data-table td:last-child b{color:#3478f6}.hw-empty{min-height:310px;display:grid;place-items:center;align-content:center;text-align:center;padding:35px}.hw-empty>div{display:grid;place-items:center;width:58px;height:58px;margin-bottom:13px;border-radius:18px;background:#edf4ff;color:#3478f6;font-size:22px}.hw-empty b{font-size:19px}.hw-empty p{max-width:430px;margin:7px auto 0;color:#75879a}.hw-empty.compact{min-height:190px;border:0;box-shadow:none}.hw-history{overflow:hidden}.hw-history article{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:12px;padding:15px 18px;border-bottom:1px solid #e7ecef}.hw-history article:last-child{border:0}.hw-history article>i{width:8px;height:8px;margin-top:6px;border:2px solid #3478f6;border-radius:50%}.hw-history p{margin:4px 0 0;color:#718397}.hw-history time{color:#8796a4;font-size:11px}.hw-count{display:flex;align-items:center;gap:7px;color:#6b7785}.hw-count input{width:65px;text-align:center}.hw-settings{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hw-card{display:grid;align-content:start;gap:12px;padding:22px}.hw-card h3{margin:0;font-size:20px}.hw-card label{display:grid;gap:6px;font-weight:700}.hw-card .hw-radio{display:flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:500}.hw-card .hw-radio input{width:auto;margin-top:4px}.hw-card>div{display:flex;gap:8px;flex-wrap:wrap}.hw-card>strong{margin-top:15px;padding:14px;border-radius:12px;background:#f1f5f7}.hw-toast{position:fixed;right:24px;bottom:24px;z-index:30000;padding:12px 18px;border-radius:12px;background:#1d2e40;color:#fff}.hw-toast.error{background:#a73535}.hw-dialog-layer{position:fixed;inset:0;z-index:30000;display:grid;place-items:center;padding:16px;background:#10223599;backdrop-filter:blur(5px)}.hw-dialog{display:grid;gap:14px;width:min(460px,calc(100vw - 32px));padding:24px;border-radius:20px;background:#fff}.hw-dialog h3{margin:0}.hw-dialog input,.hw-dialog textarea{width:100%;resize:vertical}.hw-dialog>div{display:flex;justify-content:flex-end;gap:9px}.homework-product-panel{min-width:0;max-width:100%}
#desktopHomeworkRoot .hw-app{grid-template-columns:minmax(0,1fr);min-height:100%}#desktopHomeworkRoot .hw-side{display:none}#desktopHomeworkRoot .hw-main{min-height:100%}
@media(max-width:900px){.hw-app{grid-template-columns:1fr}.hw-side{padding:12px;border-right:0;border-bottom:1px solid #e2e5ea;overflow:hidden}.hw-brand{display:none}.hw-nav{display:flex;overflow-x:auto;touch-action:pan-x;-webkit-overflow-scrolling:touch;scrollbar-width:none}.hw-nav::-webkit-scrollbar{display:none}.hw-nav>span{display:none}.hw-nav button{flex:0 0 auto;width:auto;white-space:nowrap}.hw-main{padding:20px}.hw-summary{grid-template-columns:1fr 1fr}.hw-settings{grid-template-columns:1fr}}
@media(max-width:620px){.hw-main{padding:15px 10px}.hw-topbar,.hw-hero{align-items:flex-start;flex-direction:column}.hw-top-actions{width:100%;justify-content:flex-start}.hw-subject-picker{flex:1}.hw-subject-picker select{flex:1}.hw-lock{flex:1}.hw-context{margin-bottom:16px}.hw-hero h2{font-size:26px}.hw-actions{width:100%;justify-content:flex-start}.hw-actions .hw-search{width:100%}.hw-summary{grid-template-columns:1fr 1fr;gap:10px}.hw-summary article{min-height:105px;padding:16px}.hw-summary b{font-size:25px}.hw-table-scroll{-webkit-overflow-scrolling:touch}.hw-history article{grid-template-columns:10px 1fr}.hw-history time{grid-column:2}.hw-card{padding:18px 15px}.homework-host input,.homework-host select,.homework-host textarea,.homework-host button{font-size:16px;min-height:46px}}

/* Original homework-and-pass visual language and interaction refinements. */
.hw-main{padding:28px clamp(22px,3vw,36px) 42px}.hw-topbar{margin:-8px -4px 24px}.hw-crumb{font-size:13px}.hw-subject-picker{display:grid;grid-template-columns:auto minmax(48px,1fr);width:162px;min-height:44px;padding:4px 6px 4px 12px}.hw-subject-picker span{font-size:12px}.hw-subject-picker select{width:100%;min-width:0;padding:8px 24px 8px 8px!important;font-size:13px}.hw-lock{min-height:44px;color:#76510d!important;border-color:#f0d392!important;background:#fff7df!important;font-size:13px!important}.hw-lock.unlocked{color:#147653!important;border-color:#a8dec9!important;background:#e4f6ef!important}.hw-hero{align-items:flex-end;margin-bottom:20px}.hw-hero>div:first-child>span,.hw-card>span{color:#677b8e;font-size:11px}.hw-hero h2{margin:5px 0 4px;font-size:31px;font-weight:850;letter-spacing:-.04em}.hw-hero p{font-size:14px;line-height:1.6}.hw-actions{align-items:center}.hw-search-box{min-height:42px;display:flex;align-items:center;gap:6px;padding:0 11px;border:1px solid var(--hw-line);border-radius:11px;background:#fff}.hw-search-box span{color:var(--hw-muted);font-size:18px}.homework-host .hw-search-box input{width:145px;padding:0;border:0;outline:0;background:transparent;font-size:14px}.homework-host input:not([type=radio]),.homework-host textarea,.homework-host select{border:1px solid #cfd9df;border-radius:10px;padding:11px 12px;background:#fff;color:var(--hw-ink);font:inherit}.homework-host button{font-size:14px}.hw-summary article,.hw-card,.hw-panel,.hw-empty{border:1px solid var(--hw-line);border-radius:18px;background:#fff;box-shadow:0 7px 22px #13293d0a}.hw-summary article{min-height:126px;padding:21px}.hw-summary span,.hw-summary small{font-size:13px}.hw-summary b{font-size:31px}.hw-panel{overflow:hidden;margin-top:2px}.hw-panel-head{padding:21px 22px;border-bottom:1px solid var(--hw-line)}.hw-panel-head .hw-hero{margin:0}.hw-panel-head .hw-hero>div:first-child>span:empty{display:none}.hw-panel-head .hw-hero h2{font-size:21px;letter-spacing:-.02em}.hw-scroll-top{height:18px;overflow-x:auto;overflow-y:hidden;background:#fafbfd;border-bottom:1px solid var(--hw-line);scrollbar-width:auto}.hw-scroll-top>div{height:1px}.hw-table-scroll{width:100%;max-height:min(58vh,620px);overflow:auto;border:0;border-radius:0;box-shadow:none;scrollbar-width:auto}.hw-table-scroll.data{max-height:none}.hw-matrix th,.hw-matrix td,.hw-data-table th,.hw-data-table td{height:59px;padding:11px 14px;border-color:var(--hw-line);font-size:14px}.hw-matrix thead th,.hw-data-table thead th{top:0;background:#f7f9fa;color:#526878;font-size:13px;font-weight:800}.hw-matrix thead th:first-child,.hw-matrix tbody th{min-width:170px}.hw-matrix tbody th{font-weight:750}.hw-matrix tbody th i{width:31px;height:31px;margin-right:10px;background:#e8eff3;font-size:12px}.hw-data-table.history th:first-child{width:34%}.hw-data-table.history th:nth-child(2){width:16%}.hw-data-table.history th:nth-child(3){width:24%}.hw-status{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:13px;font-weight:800}.hw-status.pass{color:#157654;background:#e4f6ef}.hw-status.fail{color:#a94545;background:#fbe9e8}.hw-settings{gap:18px}.hw-card{gap:13px;padding:26px}.hw-card h3{font-size:21px}.hw-card p{margin:0;color:var(--hw-muted);font-size:14px;line-height:1.7}.hw-card label{gap:7px;color:#40596b;font-size:13px}.hw-card>strong{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:12px;padding:17px}.hw-card>strong span{color:var(--hw-muted);font-size:13px;font-weight:500}.hw-mode-fieldset{display:grid;gap:14px;margin:8px 0 0;padding:0;border:0}.hw-mode-fieldset label{display:flex;align-items:flex-start;gap:9px;font-size:14px;font-weight:500;line-height:1.55;cursor:pointer}.homework-host .hw-mode-fieldset input[type=radio]{appearance:auto;width:14px;height:14px;min-height:0;margin:4px 0 0;padding:0;border:0;outline:0;box-shadow:none;accent-color:#ef6f4e}.hw-password-field{position:relative;display:block}.hw-password-field input{width:100%;padding-right:46px!important}.hw-password-field button{position:absolute;top:50%;right:5px;width:37px;height:37px;min-height:0!important;padding:0;transform:translateY(-50%);border:0;background:transparent;font-size:17px}.hw-password-field button.active{background:#edf3f6}.hw-dialog{font:16px/1.55 "Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#13293d;box-shadow:0 24px 80px #08192647}.hw-dialog input,.hw-dialog textarea{padding:12px 13px;border:1px solid #cfd9df;border-radius:10px;font:inherit}.hw-dialog button{min-width:76px;min-height:42px;padding:9px 15px;border:1px solid #d3dbe3;border-radius:10px;background:#fff;color:#13293d;font:700 14px/1.2 "Microsoft YaHei",sans-serif}.hw-dialog button.primary{border-color:#3478f6;background:#3478f6;color:#fff}
@media(max-width:620px){.hw-panel-head{padding:18px}.hw-subject-picker{width:auto}.hw-scroll-top{height:20px}.hw-table-scroll{max-height:60vh}.hw-hero h2{font-size:27px}.hw-panel-head .hw-hero h2{font-size:21px}.hw-settings{grid-template-columns:1fr}.homework-host .hw-mode-fieldset input[type=radio]{min-height:0}}
.hw-old-password{display:block!important}.hw-old-password[hidden]{display:none!important}
.hw-scroll-top[hidden]{display:none!important}
.homework-host .hw-search-box input{height:auto!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;background:transparent!important;box-shadow:none!important}
.hw-top-actions{display:grid;grid-template-columns:190px 190px;align-items:stretch}.hw-term-label{grid-column:1/-1;padding:0 2px;color:#697a8c;font-size:12px;font-weight:750;text-align:right}.hw-subject-picker,.hw-lock{width:190px;height:48px;min-height:48px}.hw-lock{display:flex;align-items:center;justify-content:center;padding-left:10px!important;padding-right:10px!important}
.hw-unlock-dialog{width:min(420px,calc(100vw - 32px));gap:12px;padding:25px 25px 24px;border-radius:20px}.hw-dialog-lock{display:grid!important;place-items:center!important;width:58px;height:58px;margin:0 auto 2px;border-radius:17px;background:#fff0c6;font-size:30px}.hw-unlock-dialog h3{text-align:center;font-size:22px}.hw-unlock-dialog>label{display:grid;gap:7px;color:#40596b;font-size:13px;font-weight:750}.hw-dialog-password{position:relative}.hw-dialog-password input{width:100%;height:46px;padding-right:48px}.hw-dialog-password .hw-dialog-eye{position:absolute;top:50%;right:5px;width:38px;min-width:38px;height:36px;min-height:36px;padding:0;transform:translateY(-50%);border:0;background:transparent;color:#718397}.hw-dialog-password .hw-dialog-eye.active{background:#edf3f6}.hw-unlock-dialog .hw-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.hw-unlock-dialog .hw-dialog-actions button{min-width:88px}
@media(max-width:620px){.hw-top-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.hw-term-label{text-align:left}.hw-subject-picker,.hw-lock{width:100%}}
.hw-matrix thead th:not(:first-child){min-width:136px}.hw-matrix thead th>.hw-chapter-head{display:grid;grid-template-columns:minmax(0,1fr) 26px;align-items:center;gap:7px;width:100%;white-space:normal}.hw-matrix thead .hw-chapter-title{display:block;width:100%;min-width:0;max-width:none;height:auto;min-height:34px;padding:5px 4px;border:0;border-radius:8px;background:transparent;color:#344b60;font:inherit;font-weight:800;line-height:1.35;text-align:center;text-decoration:none;overflow-wrap:anywhere;cursor:pointer}.hw-matrix thead .hw-chapter-title:hover,.hw-matrix thead .hw-chapter-title:focus-visible{background:#eaf3ff;color:#0868cc;outline:2px solid #9fc8f4;outline-offset:1px}.hw-chapter-label{min-width:0;color:#344b60;font-weight:800;line-height:1.35;overflow-wrap:anywhere}.hw-matrix thead .hw-chapter-delete{display:grid;place-items:center;width:24px;min-width:24px;height:24px;min-height:24px;padding:0;border:0;border-radius:50%;background:#fff0ef;color:#bd4a45;font-size:14px;line-height:1}.hw-matrix thead .hw-chapter-delete:hover,.hw-matrix thead .hw-chapter-delete:focus-visible{background:#ffdeda;color:#a52925;outline:2px solid #efaaa4;outline-offset:1px}.hw-chapter-dialog{width:min(620px,calc(100vw - 32px))}.hw-chapter-dialog label{display:grid;gap:8px;color:#42526b;font-weight:700}.hw-chapter-dialog input,.hw-chapter-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:12px;padding:12px;font:inherit}.hw-chapter-dialog textarea{min-height:220px;resize:vertical;line-height:1.65}.hw-chapter-detail{width:min(900px,calc(100vw - 40px));max-height:calc(100vh - 40px)}.hw-chapter-detail h3{font-size:26px;line-height:1.35;text-align:left}.hw-dialog>.hw-chapter-content{display:block;min-height:220px;max-height:min(60vh,560px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:auto;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:14px;background:#f5f7fa;padding:24px 28px;color:#172b42;font-size:clamp(20px,2vw,27px);font-weight:600;line-height:1.75;text-align:left}.hw-chapter-content span{color:#8390a2}
.hw-chapter-head{position:relative;transition:opacity .16s ease,box-shadow .16s ease}.hw-chapter-title,.hw-chapter-label{touch-action:none;-webkit-user-select:none;user-select:none}.hw-chapter-label{display:block;padding:5px 4px;cursor:grab}.hw-chapter-head.is-dragging{opacity:.5;box-shadow:0 0 0 2px #3478f6;border-radius:9px}.hw-chapter-head.drop-before::before,.hw-chapter-head.drop-after::after{content:"";position:absolute;z-index:4;top:-7px;bottom:-7px;width:4px;border-radius:4px;background:#3478f6;box-shadow:0 0 0 2px #fff}.hw-chapter-head.drop-before::before{left:-8px}.hw-chapter-head.drop-after::after{right:-8px}.hw-chapter-dragging,.hw-chapter-dragging *{cursor:grabbing!important;-webkit-user-select:none!important;user-select:none!important}
@media(max-width:620px){.hw-chapter-detail{width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:18px}.hw-chapter-detail h3{font-size:22px}.hw-dialog>.hw-chapter-content{min-height:180px;max-height:58vh;padding:18px;font-size:19px;line-height:1.7}}

.nova-save-status{margin:0 0 10px;padding:9px 12px;border-radius:10px;background:#edf5ff;color:#275787;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.nova-save-status[hidden]{display:none}.nova-save-status.has-error{background:#fff4e5;color:#8b4d10}
