.teacher-homework-page{display:grid;gap:20px;color:#211247}
.teacher-homework-page>header .eyebrow{color:#4f2ca6;font-size:12px;font-weight:800;opacity:1}
.teacher-homework-page>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.teacher-homework-page>header h2{margin:4px 0 6px;font-size:32px;line-height:1.1;color:#211247}
.teacher-homework-page>header p{margin:0;color:#6b6382}
.teacher-homework-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.teacher-homework-legend span,.teacher-homework-status{display:inline-flex;align-items:center;border-radius:999px;padding:7px 10px;font-size:12px;font-style:normal;font-weight:800}
.teacher-homework-legend .is-draft,.teacher-homework-status.is-draft{background:#eee9fb;color:#6040b7}
.teacher-homework-legend .is-published,.teacher-homework-status.is-published{background:#e7f6e9;color:#24743a}
.teacher-homework-status.is-empty{background:#fff1dc;color:#a65b08}
.teacher-homework-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #ddd5ef;border-radius:16px;background:#fff;box-shadow:0 9px 28px rgba(45,24,108,.06)}
.teacher-homework-toolbar>div{display:flex;align-items:center;gap:9px}
.teacher-homework-toolbar button{min-height:40px;border:1px solid #d9d0ec;border-radius:10px;background:#fff;color:#5330bd;font:inherit;font-weight:800;padding:0 13px;cursor:pointer}
.teacher-homework-toolbar>div>button:first-child,.teacher-homework-toolbar>div>button:nth-child(3){width:40px;padding:0;font-size:26px}
.teacher-homework-toolbar label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#655d78}
.teacher-homework-toolbar select{min-width:230px;height:42px;border:1px solid #d9d0ec;border-radius:10px;background:#fff;color:#211247;padding:0 38px 0 12px;font:inherit}
.teacher-homework-layout{display:grid;min-width:0;grid-template-columns:minmax(245px,330px) minmax(0,1fr);align-items:start;gap:16px}
.teacher-homework-list{display:grid;min-width:0;gap:10px;max-height:720px;overflow:auto;padding-right:3px}
.teacher-homework-lesson{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left;border:1px solid #ded6ee;border-radius:15px;background:#fff;color:#211247;padding:16px;cursor:pointer;box-shadow:0 7px 22px rgba(45,24,108,.04)}
.teacher-homework-lesson:hover{border-color:#ad98e5;transform:translateY(-1px)}
.teacher-homework-lesson.is-selected{border:2px solid #7048e8;background:#faf8ff;box-shadow:0 9px 25px rgba(91,54,200,.12)}
.teacher-homework-lesson>span{display:grid;gap:5px;min-width:0}
.teacher-homework-lesson b{font-size:14px}
.teacher-homework-lesson small{font-size:14px;font-weight:800;color:#3e2b72}
.teacher-homework-lesson em{font-size:12px;font-style:normal;color:#746b89;white-space:normal}
.teacher-homework-editor-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.teacher-homework-form{border:1px solid #ddd5ef;border-radius:18px;background:#fff;padding:20px;box-shadow:0 10px 30px rgba(45,24,108,.06)}
.teacher-homework-form{display:grid;gap:15px}
.teacher-homework-prefill{display:grid;gap:5px;border:1px solid #e4dcf3;border-radius:13px;background:#f8f5ff;padding:14px}
.teacher-homework-prefill span{font-size:12px;color:#694bc0;font-weight:800}
.teacher-homework-prefill b{font-size:17px;color:#211247}
.teacher-homework-prefill small{font-size:13px;color:#655d78}
.teacher-homework-form>label{display:grid;gap:7px;font-size:13px;font-weight:800;color:#3d315d}
.teacher-homework-form input,.teacher-homework-form textarea{width:100%;box-sizing:border-box;border:1px solid #d7cee9;border-radius:11px;background:#fff;color:#211247;padding:11px 12px;font:inherit;resize:vertical}
.teacher-homework-form input::placeholder,.teacher-homework-form textarea::placeholder{color:#655d78;opacity:1}
.teacher-homework-form input:focus,.teacher-homework-form textarea:focus{outline:3px solid rgba(112,72,232,.14);border-color:#7048e8}
.teacher-homework-due{max-width:260px}
.teacher-homework-recipients{border:1px solid #ded6ee;border-radius:12px;background:#fcfbff;overflow:hidden}
.teacher-homework-recipients summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;cursor:pointer;color:#3d315d;font-size:13px;font-weight:800}
.teacher-homework-recipients summary b{color:#6040b7}
.teacher-homework-recipients>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 14px 14px}
.teacher-homework-recipients label{display:flex;align-items:center;gap:8px;border:1px solid #e6e0f0;border-radius:9px;background:#fff;padding:9px;font-size:13px;font-weight:700}
.teacher-homework-recipients input{width:17px;height:17px;accent-color:#7048e8}
.teacher-homework-parent-note,.teacher-homework-published-note{margin:0;border-radius:10px;padding:10px 12px;font-size:12px;color:#655d78;background:#f7f5fb}
.teacher-homework-published-note{background:#fff7e7;color:#80540e}
.teacher-homework-warning{border-radius:10px;background:#fff2e7;color:#994a12;padding:12px;font-size:13px;font-weight:700}
.teacher-homework-actions{display:grid;grid-template-columns:auto 1fr auto auto;gap:9px;align-items:center}
.teacher-homework-actions button{min-height:42px;border-radius:10px;padding:0 15px;font:inherit;font-weight:800;cursor:pointer}
.teacher-homework-actions .is-primary{border:1px solid #6940d7;background:linear-gradient(135deg,#7048e8,#5423c6);color:#fff}
.teacher-homework-actions .is-secondary{border:1px solid #8f72db;background:#fff;color:#5836ba}
.teacher-homework-actions .is-delete{border:0;background:transparent;color:#b13b4d;padding:0 8px}
.teacher-homework-actions button:disabled{opacity:.55;cursor:wait}
.teacher-homework-empty{display:grid;gap:7px;place-items:center;text-align:center;border:1px dashed #d8cfea;border-radius:16px;background:#fbfaff;color:#6d6480;padding:34px 18px}

.parent-homework-list{display:grid;gap:14px}
.parent-homework-card{border:1px solid #ebd89c;border-radius:17px;background:linear-gradient(145deg,#fff,#fffbef);padding:19px;box-shadow:0 9px 25px rgba(82,52,9,.06)}
.parent-homework-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:13px;border-bottom:1px solid #eee6d2}
.parent-homework-card>header span{display:grid;gap:5px}
.parent-homework-card>header small{color:#7d6d48}
.parent-homework-card>header b{color:#25144b;font-size:17px}
.parent-homework-card>header i{font-style:normal;border-radius:999px;background:#fff0b7;color:#755000;padding:7px 10px;font-size:11px;font-weight:800}
.parent-homework-card h3{margin:16px 0 6px;color:#241246;font-size:20px}
.parent-homework-card .parent-homework-program{margin:0;color:#7156a5;font-size:12px;font-weight:800}
.parent-homework-card .parent-homework-task{white-space:pre-wrap;margin:16px 0;color:#31244d;line-height:1.6;font-size:15px}
.parent-homework-card>footer{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-top:1px solid #eee6d2;padding-top:13px;color:#6e6380;font-size:12px}
.parent-homework-card>footer span{display:grid;gap:4px}
.parent-homework-card>footer b{color:#493271}
.parent-homework-empty{display:grid;gap:8px;place-items:center;text-align:center;min-height:220px;border:1px dashed #decf9b;border-radius:17px;background:#fffdf6;color:#776b54;padding:28px}
.parent-homework-empty>span{font-size:35px;color:#a57a05}

@media(max-width:1180px){.teacher-homework-editor-grid{grid-template-columns:1fr}.teacher-homework-layout{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:820px){.teacher-homework-page>header,.teacher-homework-toolbar{align-items:stretch;flex-direction:column}.teacher-homework-toolbar>div{flex-wrap:wrap}.teacher-homework-toolbar label,.teacher-homework-toolbar select{width:100%}.teacher-homework-layout{grid-template-columns:1fr}.teacher-homework-list{display:flex;overflow:auto;max-height:none;padding-bottom:4px}.teacher-homework-lesson{min-width:245px}.teacher-homework-recipients>div{grid-template-columns:1fr}.teacher-homework-actions{grid-template-columns:1fr 1fr}.teacher-homework-actions span{display:none}.teacher-homework-actions button{width:100%}.teacher-homework-actions .is-delete{grid-column:1/-1;order:3}.parent-homework-card>footer{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.teacher-homework-page>header h2{font-size:26px}.teacher-homework-toolbar{padding:12px}.teacher-homework-toolbar>div>b{width:100%;order:-1}.teacher-homework-form{padding:15px}.teacher-homework-actions{grid-template-columns:1fr}.teacher-homework-actions .is-delete{grid-column:auto}.parent-homework-card{padding:15px}}
.teacher-homework-layout>main{min-width:0}
.teacher-homework-form input,.teacher-homework-form textarea{font-weight:400;font-size:15px}
.teacher-homework-actions .is-primary{background:#6032c6}
.homework-create-button{align-self:center;border:1px solid #5931b9;border-radius:12px;padding:13px 18px;background:#6032c6;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.homework-help{margin:12px 0 18px;padding:12px 16px;border:1px solid #d7cee9;border-radius:12px;color:#4c3c69;background:#fff}
.homework-help summary{cursor:pointer;font-weight:600}.homework-help p{font-size:14px;line-height:1.55;margin-bottom:0}
.homework-create-panel{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px;margin:0 0 20px;border:1px solid #ab8fdc;border-radius:16px;background:#f7f3ff;color:#31204e}
.homework-create-panel label{display:grid;gap:7px;font-size:14px;font-weight:600}
.homework-create-panel select{width:100%;min-width:0;border:1px solid #a997c7;border-radius:10px;padding:11px;background:#fff;color:#211247;font:inherit;font-weight:400}
.homework-create-panel p{margin:0;grid-column:1/-1;font-size:14px}
.homework-editor-field{min-width:0;color:#3d315d;font-size:14px}.homework-editor-field>b{display:block;margin-bottom:8px}
.homework-rich-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:end;padding:10px;background:#f5f1fb;border:1px solid #bfaedb;border-bottom:0;border-radius:11px 11px 0 0}
.homework-rich-toolbar label{display:grid;gap:3px;color:#49385f;font-size:12px;font-weight:500;min-width:0}
.homework-rich-toolbar select,.homework-rich-toolbar button{min-height:34px;max-width:170px;border:1px solid #b9a6d4;border-radius:6px;background:#fff;color:#302041;padding:5px 8px;font:inherit;font-size:13px;cursor:pointer}
.homework-rich-toolbar button[aria-pressed="true"]{background:#6032c6;color:#fff;border-color:#6032c6}
.homework-rich-toolbar [data-command="bold"]{font-weight:700}.homework-rich-toolbar [data-command="italic"]{font-style:italic}.homework-rich-toolbar [data-command="underline"]{text-decoration:underline}
.homework-rich-content{min-height:190px;max-height:460px;overflow:auto;border:1px solid #bfaedb;border-radius:0 0 11px 11px;padding:14px;background:#fff;outline-offset:2px}
.homework-content,.parent-homework-card .parent-homework-task{font-family:Arial,sans-serif;font-size:16px;font-weight:400;line-height:1.6;color:#211247;overflow-wrap:anywhere;white-space:pre-wrap}
.homework-content p,.homework-content div{margin:0 0 .6em}.homework-content ul,.homework-content ol{padding-left:28px;margin:8px 0;white-space:normal}.homework-content li{white-space:pre-wrap}
.homework-rich-hint{margin:6px 0 0;font-size:12px;color:#5c4b73}
.homework-materials{display:grid;gap:10px;padding:14px;background:#fcfaff;border:1px solid #d7cee9;border-radius:12px;color:#31204e;min-width:0}
.homework-materials>p{margin:0;color:#5c4b73;font-size:13px;line-height:1.5}
.homework-file-list,.homework-downloads{list-style:none;padding:0;margin:0;display:grid;gap:7px;min-width:0}
.homework-file-list:empty{display:none}.homework-file-list li{display:flex;gap:10px;align-items:center;justify-content:space-between;min-width:0;padding:8px 10px;border:1px solid #ddd2ec;border-radius:8px;background:#fff;font-size:14px}
.homework-file-list li>span,.homework-file-list a{overflow-wrap:anywhere;min-width:0}.homework-file-list small{color:#5c4b73}
.homework-file-list button{flex-shrink:0;min-width:32px;min-height:32px;background:#fff;border:1px solid #c6b6d9;border-radius:6px;color:#8b2441;font-size:21px;cursor:pointer}
.homework-file-list .homework-file-open{border:0;font:inherit;color:#4b28a4;text-align:left;text-decoration:underline;white-space:normal;overflow-wrap:anywhere}
.homework-file-picker{position:relative;display:block;width:fit-content;max-width:100%;font-size:14px;color:#4b28a4}
.homework-file-picker input{position:absolute;opacity:0;inset:0;cursor:pointer;padding:0}
.homework-file-picker span{display:block;border:1px solid #9f83c7;border-radius:8px;padding:10px 13px;background:#fff;pointer-events:none}
.homework-file-picker:focus-within span{outline:3px solid #8055c6;outline-offset:2px}
.homework-link-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end;min-width:0}
.homework-link-fields label{display:grid;gap:5px;font-size:13px;color:#49385f;font-weight:500}
.homework-link-fields button{width:fit-content;padding:9px 12px;border:1px solid #9f83c7;border-radius:8px;background:#fff;color:#4b28a4;font:inherit;font-size:14px;cursor:pointer}
.homework-downloads button{max-width:100%;text-align:left;overflow-wrap:anywhere;min-height:40px;padding:9px 12px;border:1px solid #aa91cd;border-radius:8px;background:#fff;color:#4b28a4;font:inherit;font-size:14px;cursor:pointer}
.homework-downloads{margin:12px 0 18px}.homework-links{padding-left:22px;overflow-wrap:anywhere;font-size:15px}
.homework-links a,.homework-file-list a,.homework-content a{color:#4b28a4;text-decoration:underline}
.homework-download-error{color:#922842;font-size:13px}
.teacher-homework-form [hidden]{display:none}
@media(max-width:820px){.homework-create-button{align-self:stretch}.homework-create-panel{grid-template-columns:1fr}.homework-rich-toolbar{gap:8px}.homework-rich-toolbar select{max-width:150px}.homework-link-fields{grid-template-columns:1fr}}
.teacher-homework-header-actions{display:grid;gap:12px;justify-items:end}
.teacher-homework-guide{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 14px;border:1px solid #a48adf;border-radius:11px;background:#fff;color:#4b28a4;font:inherit;font-size:14px;font-weight:750;cursor:pointer;white-space:nowrap}
.teacher-homework-guide>span{display:grid;place-items:center;width:21px;height:21px;border:1.5px solid currentColor;border-radius:50%}
.teacher-homework-guide:hover{background:#f3eeff}
.teacher-homework-guide:focus-visible,.homework-tour-card button:focus-visible{outline:3px solid #aa8aff;outline-offset:3px}
.teacher-homework-toolbar button:disabled{opacity:.4;cursor:not-allowed}
.homework-tour-overlay{position:fixed;inset:0;z-index:12000;background:rgba(30,12,72,.32)}
.homework-tour-spotlight{position:fixed;z-index:12001;pointer-events:none;border:3px solid #bd9bff;border-radius:14px;box-sizing:border-box;box-shadow:0 0 0 3px rgba(255,255,255,.65)}
.homework-tour-card{position:fixed;z-index:12002;box-sizing:border-box;width:min(400px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:25px;border:1px solid #c8b7ed;border-radius:20px;background:#fff;color:#27124d;box-shadow:0 20px 65px rgba(27,8,62,.32);font-family:inherit}
.homework-tour-card>small{display:block;padding-right:24px;color:#6941be;font-size:12px;font-weight:800;letter-spacing:.06em}
.homework-tour-card h2{margin:12px 0 10px;padding-right:12px;font-size:23px;line-height:1.2;color:#27124d}
.homework-tour-card p{margin:0;color:#574a6b;font-size:15px;line-height:1.55}
.homework-tour-close{position:absolute;right:12px;top:10px;width:32px;height:32px;border:0;border-radius:8px;background:#f3eefb;color:#5d379f;font-size:23px;cursor:pointer}
.homework-tour-progress{display:flex;gap:6px;margin:22px 0 16px}
.homework-tour-progress i{flex:1;height:4px;border-radius:3px;background:#e9e2f7}
.homework-tour-progress i.is-current{background:#7546dc}
.homework-tour-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.homework-tour-actions button{min-height:42px;padding:9px 16px;border:1px solid #d7c9ef;border-radius:10px;background:#fff;color:#5c36a7;font:inherit;font-size:14px;font-weight:750;cursor:pointer}
.homework-tour-actions .is-primary{background:#6938d4;border-color:#6938d4;color:#fff}
@media(max-width:820px){.teacher-homework-header-actions{justify-items:start}.teacher-homework-list{max-width:100%}}
@media(max-width:520px){.homework-tour-card{padding:20px}.homework-tour-card h2{font-size:21px}}
