.homework-workspace{max-width:1440px;margin:0 auto;color:var(--ui-text)}
.hw-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}.hw-heading p{font-size:11px;letter-spacing:.12em;color:var(--ui-muted);margin:0 0 9px}.hw-heading h1{font-size:25px;margin:0 0 8px}.hw-heading span,.hw-detail-meta{font-size:13px;color:var(--ui-muted);line-height:1.8}
.hw-summary{display:flex;gap:24px;padding:14px 0;margin-bottom:18px;border-bottom:1px solid var(--ui-line)}.hw-summary>span{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ui-muted)}.hw-summary strong{color:var(--ui-text);font-size:20px;font-variant-numeric:tabular-nums}
.hw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px}.hw-card,.hw-student,.hw-steps,.hw-submit{padding:22px}.hw-card-title,.hw-student>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.hw-card h2,.hw-student h2,.hw-steps h2,.hw-submit h2{font-size:17px;margin:0;line-height:1.6;overflow-wrap:anywhere}.hw-source{font-size:11px;color:var(--ui-primary);white-space:nowrap}.hw-description{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.85;color:var(--ui-muted);margin:14px 0}.hw-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--ui-muted)}.hw-progress{font-size:12px;color:var(--ui-muted);margin:18px 0}.hw-badge{display:inline-flex;padding:4px 9px;border-radius:5px;background:var(--ui-soft);color:var(--ui-primary);font-size:11px;white-space:nowrap}.hw-badge[data-state=returned],.hw-overdue{color:#b66b22}.hw-badge[data-state=reviewed]{color:#21816c;background:#21816c12}.hw-card>.button{margin-top:18px}.hw-card .hw-summary{gap:13px;margin:12px 0 0}.hw-card .hw-summary strong{font-size:17px}.hw-card .hw-summary>span{gap:4px;font-size:11px}
.hw-roster{display:grid;gap:16px}.hw-student>header span{font-size:11px;color:var(--ui-muted)}.hw-waiting{font-size:13px;line-height:1.8;color:var(--ui-muted);margin:20px 0 0}.hw-work-links{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.homework-workspace label,[data-hw-form=publish] label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin-bottom:16px}.homework-workspace :is(input,textarea,select),[data-hw-form=publish] :is(input,textarea,select){box-sizing:border-box;max-width:100%;padding:10px 12px;border:1px solid var(--ui-line);border-radius:7px;background:var(--ui-surface);color:var(--ui-text);font:inherit}.homework-workspace textarea,[data-hw-form=publish] textarea{width:100%;resize:vertical}.hw-student form{max-width:800px;padding-top:18px;border-top:1px solid var(--ui-line)}.hw-history{margin-top:20px;font-size:12px;color:var(--ui-muted)}.hw-history p{line-height:1.8;padding:10px 0;border-bottom:1px solid var(--ui-line)}
.hw-detail-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:20px;align-items:start}.hw-steps>article{display:flex;align-items:flex-start;gap:14px;padding:22px 0;border-bottom:1px solid var(--ui-line)}.hw-step-number{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:7px;background:var(--ui-soft);color:var(--ui-primary);font-size:13px}.hw-steps article>div{flex:1;min-width:0}.hw-steps h3{margin:0;font-size:14px}.hw-steps article p{font-size:12px;line-height:1.8;color:var(--ui-muted);white-space:pre-wrap;overflow-wrap:anywhere}.hw-steps small{font-size:11px;color:var(--ui-muted)}.hw-steps .button{flex:none}.hw-submit>p,.hw-submit fieldset>p{font-size:12px;line-height:1.8;color:var(--ui-muted)}.hw-submit fieldset{margin:20px 0;border:1px solid var(--ui-line);border-radius:8px;padding:14px}.hw-submit legend{font-size:12px;padding:0 6px}.hw-submit label.hw-pick{display:flex;flex-direction:row;align-items:center;gap:8px}.hw-feedback{background:var(--ui-soft);padding:14px;border-radius:8px;margin:16px 0;font-size:13px}.hw-feedback p{line-height:1.8;white-space:pre-wrap}.hw-empty{padding:30px}.hw-empty h2{font-size:17px}.hw-empty p{font-size:13px;color:var(--ui-muted)}
@media(max-width:800px){.hw-detail-layout{grid-template-columns:1fr}.hw-heading{align-items:flex-start;flex-direction:column;gap:14px}.hw-summary{gap:18px;flex-wrap:wrap}.hw-steps>article{flex-wrap:wrap}.hw-steps .button{margin-left:42px}.hw-card,.hw-student,.hw-steps,.hw-submit{padding:18px}}
