.homework-editor{border:1px solid var(--theme-line,#dce7d6);border-radius:15px;background:var(--theme-surface,#fbfdf9);padding:20px;min-width:0}.homework-formats legend{color:var(--theme-text,#355b41);font-size:var(--text-body);margin-bottom:13px}.homework-format-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.homework-format-grid label{position:relative;cursor:pointer;min-width:0}.homework-format-grid input{position:absolute;opacity:0;width:1px!important;height:1px}.homework-format-grid label>span{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:14px 11px;border:1px solid var(--theme-line,#dce6d7);background:var(--theme-surface,white);border-radius:10px;height:100%;transition:background .15s,border-color .15s}.homework-format-grid .icon{width:21px;height:21px;color:var(--theme-muted,#6d8668)}.homework-format-grid strong{font-size:var(--text-small);color:var(--theme-text,#466145)}.homework-format-grid small{font-size:var(--text-caption);line-height:1.4;color:var(--theme-muted,#6f8168)}.homework-format-grid input:checked+span{background:var(--theme-selected,#edf5e8);border-color:var(--theme-accent-border,#56875b);box-shadow:inset 0 0 0 1px var(--theme-accent-border,#56875b)}.homework-format-grid input:checked+span .icon{color:var(--theme-accent,#2e7048)}.homework-format-grid input:focus-visible+span{outline:3px solid var(--theme-accent-border,#4b8057);outline-offset:3px}.homework-format-grid input:disabled+span{opacity:.7;cursor:wait}.homework-mode-hint{color:var(--theme-muted,#586e50);font-size:var(--text-small);line-height:1.7;margin:15px 0}.homework-description{display:flex;flex-direction:column;gap:9px;font-size:var(--text-small);font-weight:550;color:var(--theme-text,#405d39);margin-top:15px}.homework-editor textarea{background:var(--theme-surface,white)!important;color:var(--theme-text,#354e31)!important}.homework-ocr-note,.homework-review-note{font-size:var(--text-small);line-height:1.7;margin-top:13px;color:var(--theme-muted,#6b7b64)}.homework-review-note{background:var(--theme-surface-muted,#edf4e6);color:var(--theme-text,#42633a);padding:12px 14px;border-radius:8px;border-left:3px solid var(--theme-accent-border,#7b9f68)}.homework-editor [hidden],.form-stack .writing-hints[hidden],.compose-tools [hidden]{display:none!important}.homework-editor .media-items:empty{display:none}.homework-editor .media-status:empty{display:none}.homework-photo{margin:0 0 13px;background:var(--theme-surface-muted,#f5f7f2);border:1px solid var(--line);border-radius:12px;overflow:hidden}.homework-photo img{display:block;width:100%;max-height:600px;object-fit:contain}.homework-photo figcaption{padding:10px 14px;color:var(--theme-muted,#65765b);font-size:var(--text-small);overflow-wrap:anywhere}.homework-audio{display:flex;gap:13px;align-items:flex-start;padding:18px;background:var(--theme-surface-muted,#f1f6ec);border:1px solid var(--theme-line,#dce8d4);border-radius:12px;margin-bottom:12px}.homework-audio>.icon{color:var(--theme-muted,#547e47);margin-top:3px;flex-shrink:0}.homework-audio>div{flex:1;min-width:0}.homework-audio strong{font-size:var(--text-body);display:block;overflow-wrap:anywhere}.homework-audio small{display:block;color:var(--theme-muted,#687d5c);font-size:var(--text-small);line-height:1.6;margin:6px 0 13px}.homework-audio audio{display:block;width:100%;height:46px}.media-item img{width:64px;height:58px;object-fit:cover;border-radius:6px}.homework-editor .media-item{background:var(--theme-surface,white);flex-wrap:wrap}.homework-editor .media-item audio{width:100%;max-width:100%;order:2}.homework-editor .compose-tools .button{min-height:43px}.homework-publish-note{color:var(--theme-muted,#647859);font-size:var(--text-small);line-height:1.6;margin-top:2px}
@media(max-width:600px){.homework-editor{padding:13px}.homework-format-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.homework-format-grid label>span{padding:12px}.homework-format-grid strong{font-size:var(--text-small)}.homework-format-grid small{font-size:var(--text-caption)}.homework-mode-hint{font-size:var(--text-small)}.homework-audio{padding:12px;gap:8px}.homework-audio>.icon{display:none}.homework-editor textarea{font-size:1.0667rem!important}}
