body[data-page="homework"] { background: radial-gradient(ellipse at 5% 0%, #f0eaff 0, transparent 36%), radial-gradient(ellipse at 100% 5%, #f7f4dc 0, transparent 38%), #fffaf3; min-height: 100vh; --purple: #6d59e8; --purple-dark: #5944d2; --line: #e9e3ee; --ink: #283750; }
[data-page="homework"] .site-shell { max-width: 1420px; padding: 0 40px; }
[data-page="homework"] .site-header { height: 110px; border-bottom: 1px solid #e9e3ee80; }
[data-page="homework"] .brand-mark { background: linear-gradient(140deg,#82cde9,#a6e7ad); color: white; border: 3px solid white; }
[data-page="homework"] .brand strong { font-size: 22px; }
[data-page="homework"] .brand small { letter-spacing: 1px; }
.authoring-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0 34px; }
.authoring-heading h1 { font-size: clamp(32px, 3vw, 42px); }
.authoring-intro { margin-top: 14px; color: #8b8497; font-size: 15px; }
.authoring-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.authoring-nav .button { font-size: 13px; padding: 11px 16px; }
[data-page="homework"] .manage-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; gap: 28px; }
[data-page="homework"] .card { border-radius: 30px; box-shadow: 0 12px 40px #51426405; }
[data-page="homework"] .homework-editor { padding: 36px; }
[data-page="homework"] .homework-editor .page-heading { margin: 0 0 32px; }
[data-page="homework"] .homework-editor .eyebrow { margin: 0 0 10px; color: var(--purple); }
[data-page="homework"] .homework-editor h2 { font-size: 30px; font-weight: 600; }
[data-page="homework"] .task-setup-grid { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 28px 20px; }
.subject-choices { padding: 0; margin: 0; border: 0; min-width: 0; grid-column: 1 / -1; }
.subject-choices legend { margin: 0 0 12px; padding: 0; font-size: 13px; font-weight: 650; color: #82788f; }
.subject-choice-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.subject-choice { position: relative; min-width: 0; cursor: pointer; }
.subject-choice input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; }
.subject-choice-face { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid #e7e0f0; border-radius: 16px; min-height: 76px; color: #81758e; font-size: 15px; font-weight: 700; background: #fff; }
.subject-choice-icon { display: grid; place-items: center; width: 30px; height: 32px; font-size: 13px; border-radius: 11px; background: #f3effb; color: #80738c; }
.subject-choice input:checked + .subject-choice-face { color: var(--purple); background: #f2eeff; border-color: var(--purple); }
.subject-choice input:checked + .subject-choice-face .subject-choice-icon { color: white; background: var(--purple); }
.subject-choice input:focus-visible + .subject-choice-face { outline: 3px solid #c4b2ff; outline-offset: 3px; }
[data-page="homework"] .field label { color: #82788f; }
[data-page="homework"] .field input { min-height: 62px; border: 1.5px solid #e7e0f0; border-radius: 16px; background: #fcfaff; font-size: 16px; }
[data-page="homework"] .field input::placeholder { color: #a5a0b0; }
[data-page="homework"] .form-actions { margin-top: 30px; }
[data-page="homework"] .form-actions .primary { min-height: 54px; min-width: 160px; }
[data-page="homework"] #task-form > .form-note { margin-top: 16px; }
.homework-published .section-top { margin-bottom: 8px; }
.homework-published .section-top .button { font-size: 12px; padding: 7px 13px; min-height: 38px; }
.homework-published > .form-note { margin-top: 18px; }
.homework-published .mini-row > div { min-width: 0; }
.homework-published .mini-row h3 { overflow-wrap: anywhere; }
.homework-published .mini-row .text-button { flex-shrink: 0; }
@media(max-width: 1100px) { [data-page="homework"] .site-shell { padding: 0 24px; } [data-page="homework"] .manage-layout { grid-template-columns: 1fr; } .homework-published .mini-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 30px; } }
@media(max-width: 600px) { [data-page="homework"] .site-shell { padding: 0 16px max(12px,env(safe-area-inset-bottom)); } [data-page="homework"] .site-header { height: 90px; } [data-page="homework"] .brand strong { font-size: 17px; } [data-page="homework"] .header-actions .connection { display: none; } [data-page="homework"] .back-link { display: inline; } .authoring-heading { padding: 30px 2px 24px; align-items: start; flex-direction: column; gap: 18px; } .authoring-heading .button { padding: 10px 15px; font-size: 13px; } .authoring-intro { font-size: 13px; } [data-page="homework"] .homework-editor { padding: 24px 20px; border-radius: 24px; } [data-page="homework"] .homework-editor h2 { font-size: 26px; } [data-page="homework"] .homework-editor .page-heading { margin-bottom: 24px; } [data-page="homework"] .task-setup-grid { grid-template-columns: 1fr; gap: 22px; } .subject-choice-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; } .subject-choice-face { min-height: 64px; font-size: 14px; gap: 6px; border-radius: 13px; } .subject-choice-icon { width: 27px; } .homework-published .mini-list { grid-template-columns: 1fr; } [data-page="homework"] .form-actions .button { width: 100%; } }
