.homework-ui #main{width:100%;box-sizing:border-box}.hw-list-toolbar,.hw-reader-top,.hw-bottom,.hw-word-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.hw-list-toolbar{margin:28px 0 20px}.hw-tabs{display:flex;gap:5px}.hw-tabs button{border:0;background:transparent;padding:10px 15px;color:#7286a5;border-radius:9px;cursor:pointer}.hw-tabs .active{background:#e8efff;color:#2563eb}.hw-search{display:flex;align-items:center;gap:12px;color:#8490a6;font-size:12px}.hw-search input{max-width:360px}.hw-date{font-size:13px;color:#8192ad;font-weight:500;margin:28px 0 13px}.hw-assignment{display:flex;align-items:center;gap:14px;width:100%;padding:15px 17px;text-align:left;border:1px solid #e5eaf3;border-radius:8px;background:white;margin:9px 0;color:#253959;cursor:pointer;transition:border-color .15s,box-shadow .15s}.hw-assignment:hover{border-color:#96b4ff;box-shadow:0 5px 18px #2d5be408}.hw-file-icon{display:grid;place-items:center;background:#edf3ff;border-radius:5px;width:34px;height:38px;color:#3d78ef;font-size:30px;flex-shrink:0}.hw-card-copy{display:grid;gap:5px;min-width:0}.hw-card-copy strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.hw-card-copy>span,.hw-card-end small{font-size:11px;color:#8c9bb2}.hw-card-end{margin-left:auto;display:grid;text-align:right;gap:5px;white-space:nowrap}.hw-card-end b{margin-left:12px;color:#6283b4}.hw-status{font-size:11px;color:#6285ba}.hw-status.done{color:#38967b}.hw-muted{color:#8b9bb2;font-size:13px;line-height:1.8}.hw-reader-top{margin:2px 0 23px;color:#8797ae;font-size:12px}.hw-paper{background:#fff;border:1px solid #e0e9fa;border-radius:16px;padding:32px;overflow-wrap:anywhere}.hw-paper-title{border-bottom:1px solid #edf1f8;padding-bottom:25px;margin-bottom:30px}.hw-paper-title .eyebrow{font-size:10px;letter-spacing:2.5px;color:#7394c4}.hw-paper-title h1{font-size:28px;color:#243b60;margin:14px 0;line-height:1.5}.hw-paper-title p{font-size:13px;color:#8d9bb1}.hw-paper-title p span{display:inline-block;margin-left:20px}.hw-section{font-size:15px;line-height:1.7;margin:34px 0 20px;padding:12px 16px;background:#f3f7ff;border-radius:8px;font-weight:600}.hw-question{padding:23px 0;border-bottom:1px solid #edf1f7}.hw-prompt{display:flex;gap:9px;font-size:16px;line-height:1.95;color:#273d5e}.hw-number{min-width:22px;color:#8294b0;font-size:14px;line-height:2.4}.hw-rich{word-spacing:.02em;white-space:pre-wrap}.hw-word{font:inherit;line-height:inherit;letter-spacing:inherit;word-spacing:normal;color:inherit;display:inline;background:transparent;border:0;border-bottom:1px dotted transparent;border-radius:2px;padding:0;margin:0;cursor:pointer;text-align:inherit}.hw-word:hover,.hw-word:focus-visible{color:#2563eb;background:#edf3ff;border-bottom-color:#8fb0ff;outline:none}.hw-word:focus-visible{box-shadow:0 0 0 2px #afc8ff}.hw-answer-label{font-size:12px;color:#94a2b8;display:block;margin:14px 0 0 31px}.homework-ui .hw-input{display:block;width:100%;max-width:100%;border:1px solid #dce5f5;border-radius:9px;padding:11px 14px;margin-top:7px;background:#fafcff;font-size:16px;line-height:1.6;font-family:inherit;color:#253959;box-sizing:border-box;resize:vertical}.hw-input:focus{outline:2px solid #d5e4ff;border-color:#84acff;background:white}.homework-ui .hw-input.inline{display:inline-block;width:105px;padding:4px 7px;margin:3px 4px;border-radius:5px;border-width:0 0 1px;background:#f0f5ff;vertical-align:baseline;text-align:center}.hw-passage{font-size:16px;line-height:2.1;margin:20px 0;color:#304664}.hw-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 0 31px}.hw-option{display:flex;align-items:baseline;gap:8px;padding:12px;border:1px solid #e0e8f5;border-radius:9px;cursor:pointer;font-size:15px;line-height:1.8}.hw-option:has(input:checked){border-color:#86a9ff;background:#f0f5ff}.hw-option input{accent-color:#2563eb;width:16px;flex-shrink:0}.hw-option-key{color:#7f94b4}.hw-answer-key{margin-top:32px;padding-top:18px}.hw-answer-key>button{width:100%;display:flex;justify-content:space-between;background:#f7f9fe}.hw-answer-key #hw-key-content{padding:18px 5px;font-size:15px;line-height:1.9;color:#526d93}.hw-bottom{position:sticky;bottom:12px;background:#fff;border:1px solid #dce7fa;border-radius:14px;padding:14px 22px;margin-top:22px;box-shadow:0 8px 32px #2445790a;font-size:14px;color:#7288a8;z-index:4}.hw-bottom .button{font-size:14px;padding:10px 18px}.hw-admin{background:#f4f8ff;border:1px solid #dce8ff;border-radius:12px;padding:18px 22px;margin:0 0 22px;font-size:14px}.hw-admin summary{cursor:pointer;color:#527eb7}.hw-admin-fields{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin:18px 0}.hw-admin-fields label{display:grid;gap:8px;color:#748bac}.hw-admin .hw-check,.hw-check{display:flex;align-items:center;gap:8px;color:#7087a9;line-height:1.6}.hw-check input{width:16px}.hw-admin-actions{display:flex;gap:18px;margin-top:20px}.hw-warning,.hw-preview-note{color:#9b782b;background:#fff9e9;border-radius:10px;padding:14px;font-size:14px;line-height:1.7}.hw-preview-note{margin-bottom:20px}.hw-save-error{padding:15px 20px;background:#fff9eb;border:1px solid #e9d7a2;border-radius:10px;margin-bottom:20px;color:#856a37}.hw-save-error div{display:flex;flex-wrap:wrap;gap:8px}.hw-conflict{padding:12px;background:#f5f8fe;border-radius:8px;margin:10px 0;overflow-wrap:anywhere}.homework-ui .small{font-size:12px;padding:6px 10px;min-height:30px}.hw-error p{line-height:1.8}#hw-upload-error{color:#b56162}#hw-word-dialog{position:fixed;inset:auto;margin:0;left:var(--word-left,20px);top:var(--word-top,100px);width:360px;max-width:calc(100vw - 24px);max-height:min(420px,calc(100dvh - 32px));box-sizing:border-box;padding:0;border:1px solid #d7e5ff;border-radius:17px;box-shadow:0 16px 48px #243d6c29;color:#2e4568;overflow:auto}#hw-word-dialog::backdrop{background:#1c345318}.hw-word-top{position:sticky;top:0;background:white;padding:17px 20px;border-bottom:1px solid #edf2fa;z-index:1}.hw-word-top strong{font-size:21px}.hw-word-top button{border:0;background:#f5f8ff;color:#7690b5;width:30px;height:30px;cursor:pointer;border-radius:6px;font-size:23px}.hw-meaning{padding:12px 20px 20px;font-size:14px;line-height:1.8}.hw-meaning p{margin:10px 0}.hw-meaning section+section{border-top:1px solid #edf1f8;padding-top:16px;margin-top:18px}.hw-lemma{font-weight:600;font-size:16px}.hw-lemma small{font-size:13px;font-weight:400;color:#91a0b5;margin-left:6px}.hw-pos{display:inline-block;background:#edf4ff;color:#5680b7;padding:0 6px;border-radius:4px;font-size:12px}.hw-course-meaning{border-left:3px solid #a6c3fa;padding-left:10px}.hw-course-meaning small{display:block;color:#8c9db7}.hw-dict-source{font-size:11px;color:#9aa7bb;border-top:1px solid #edf1f8;padding-top:12px}.hw-dict-source a{color:inherit}.hw-phrases{display:flex;flex-wrap:wrap;gap:6px}.hw-phrases .hw-word{background:#edf4ff;color:#3569aa;padding:3px 8px;border-radius:5px;font-size:12px}
@media(max-width:680px){.hw-list-toolbar{align-items:flex-start;flex-wrap:wrap;margin-top:20px;gap:12px}.hw-tabs button{padding:8px 10px;font-size:13px}.hw-list-toolbar>.button{font-size:13px;padding:9px 13px}.hw-search{font-size:12px;gap:12px}.hw-assignment{padding:17px 14px;gap:12px;border-radius:13px}.hw-file-icon{width:35px;height:43px;font-size:24px}.hw-card-copy strong{font-size:14px}.hw-card-copy>span{font-size:11px}.hw-card-end small{font-size:10px}.hw-card-end b{display:none}.hw-status{font-size:11px}.hw-reader-top{font-size:12px;gap:8px;margin-bottom:16px}.hw-paper{padding:24px 18px;border-radius:15px}.hw-paper-title h1{font-size:23px}.hw-paper-title p{font-size:12px;line-height:1.8}.hw-paper-title p span{display:block;margin-left:0}.hw-section{font-size:15px;padding:10px 12px}.hw-prompt,.hw-passage{font-size:16px}.hw-question{padding:20px 0}.hw-options{grid-template-columns:1fr;margin-left:0}.hw-answer-label{margin-left:0}.hw-option{font-size:15px;padding:10px}.homework-ui .hw-input{font-size:16px}.hw-admin{padding:14px}.hw-admin-fields{grid-template-columns:1fr}.hw-bottom{padding:12px 13px;bottom:8px;font-size:12px}.hw-bottom .button{font-size:12px;padding:9px 12px}#hw-word-dialog{left:0;top:auto;bottom:0;width:100%;max-width:100%;max-height:55vh;max-height:55dvh;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}.hw-word-top{padding:16px 22px}.hw-meaning{padding:12px 22px 24px}}

.hw-search input,.hw-admin-fields input:not([type=checkbox]){border:1px solid #dce6f7;border-radius:9px;background:white;padding:10px 13px;font:inherit;color:#30496d;box-sizing:border-box;width:100%}.hw-search input:focus{outline:2px solid #dfebff;border-color:#86aafa}

.hw-search>span{white-space:nowrap;flex-shrink:0}

/* Use the same main width, hero, mascot and panel padding as vocabulary review. */
.hw-library .section-heading{margin-bottom:18px}
.hw-library-controls{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid var(--line)}
.hw-library-controls .hw-search{flex:1;justify-content:flex-end;min-width:240px}
.hw-library-controls .hw-search input{min-width:0;min-height:42px;max-width:360px;font-size:13px;border-radius:6px}
.hw-tabs button{min-height:42px;font-size:12px;white-space:nowrap}
.hw-library .section-heading>.button{min-height:36px;padding:7px 12px;font-size:12px}
.hw-library .hw-muted{font-size:11px;margin:18px 0 0}
.hw-file-icon svg{width:20px;height:20px}
.hw-card-end b{font-weight:400}
.hw-assignment:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.hw-paper-title h1{font-weight:600}
.hw-reader-top>.text-button{display:inline-flex;align-items:center;gap:8px;min-height:36px}
.hw-reader-top svg{width:17px;height:17px}
.hw-bottom{font-variant-numeric:tabular-nums}
@media(max-width:860px){.hw-library-controls{align-items:stretch}.hw-library-controls .hw-search{flex-basis:100%;justify-content:flex-start}.hw-library-controls .hw-search input{max-width:none}}
@media(max-width:680px){
 .hw-library .section-heading{gap:10px;margin-bottom:16px}.hw-library .section-title{gap:7px;font-size:14px}
 .hw-library .section-heading>.button{font-size:11px;padding:7px 9px}
 .hw-library-controls{gap:12px;padding-bottom:16px}.hw-library-controls .hw-search{min-width:0;gap:10px}
 .hw-library-controls .hw-search input{font-size:13px}.hw-tabs{width:100%;gap:4px}.hw-tabs button{flex:1;padding:8px 4px;font-size:12px}
 .hw-date{font-size:12px;margin:22px 0 10px}
 .hw-assignment{display:grid;grid-template-columns:30px minmax(0,1fr);gap:6px 10px;padding:13px 12px;border-radius:8px}
 .hw-file-icon{grid-row:1/3;align-self:start;width:30px;height:36px;border-radius:5px}.hw-file-icon svg{width:18px;height:18px}
 .hw-card-copy{gap:5px}.hw-card-copy strong{font-size:13px;line-height:1.6;font-weight:500}.hw-card-copy>span{font-size:11px;line-height:1.7}
 .hw-card-end{grid-column:2;display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0;text-align:left;white-space:normal}
 .hw-card-end small{font-size:10px;white-space:nowrap}.hw-status{font-size:10px}
 .hw-paper{padding:24px 16px;border-radius:13px}.hw-paper-title{margin-bottom:22px;padding-bottom:20px}.hw-paper-title h1{font-size:23px;margin:10px 0}
 .hw-prompt,.hw-passage{font-size:16px;line-height:2}.hw-section{font-size:14px;margin:26px 0 16px;padding:10px 12px}
 .hw-number{min-width:20px;font-size:12px;line-height:2.65}.hw-prompt{gap:8px}
 .hw-bottom{gap:10px;padding:12px;bottom:8px}.hw-bottom .button{font-size:12px;padding:9px 12px}
}
/* Continuous reading passages: justify full lines and indent each paragraph. */
.hw-paper .hw-passage{text-align:justify;text-align-last:start;text-justify:inter-word;text-indent:2em}
.hw-paper .hw-passage .hw-word,.hw-paper .hw-passage .hw-input{text-indent:0}

.hw-notebook-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid #e8eef9}.hw-notebook-actions a{font-size:13px;color:#376cce;text-decoration:none}.hw-notebook-status{flex-basis:100%;margin:0!important;font-size:13px;color:#6b7e9d}.hw-notebook-status:empty{display:none}.hw-notebook-actions button:disabled{opacity:.7;cursor:default}

/* Translation questions are answered in place; both word slots stay together. */
.hw-question-inline .hw-rich{min-width:0;flex:1;overflow-wrap:anywhere}
.hw-inline-slots{display:inline-flex;gap:6px;vertical-align:baseline;white-space:nowrap;margin:3px 4px;text-indent:0}
.hw-inline-slots .hw-input.hw-word-input{width:92px;min-width:0;max-width:none;margin:0;padding:5px 7px;height:36px;font:inherit;line-height:1.5;text-align:center;box-sizing:border-box;text-indent:0}
.hw-question-inline .hw-prompt{align-items:baseline}
.hw-question-inline .hw-number{flex-shrink:0}
@media(max-width:680px){.hw-inline-slots .hw-input.hw-word-input{width:80px;height:36px}.hw-inline-slots{margin:3px 2px}}
