/* homework-admin.css : 선생님 과제 내기·채점 화면, 2026-11-12 */
.hwa-body { background: #f4f5ff; color: #1e1b4b; margin: 0; }
.hwa-topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid #dfe3f5; backdrop-filter: blur(6px); }
.hwa-topbar h1 { margin: 0; font-size: 22px; }
.hwa-home { font-weight: 800; color: #4338ca; text-decoration: none; padding: 8px 12px; border: 2px solid #c7d2fe; border-radius: 12px; background: #fff; }
.hwa-sp, .hw-sp { flex: 1; }
.hwa-main { max-width: 1320px; margin: 0 auto; padding: 16px 18px 120px; }
.hwa-main input, .hwa-main textarea, .hwa-main select, .hwa-main button { scroll-margin: 90px 0 150px; }
body.hwa-bulk-on .hwa-main { padding-bottom: 200px; }
.hwa-gate { max-width: 520px; margin: 30px auto; } .hwa-gate input { font: inherit; padding: 8px 10px; border: 2px solid #c7d2fe; border-radius: 10px; }
.hwa-empty { text-align: center; color: #6b7280; }
.hwa-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.hwa-task { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.hwa-task-head { display: flex; align-items: center; gap: 8px; } .hwa-task-head h3 { margin: 0; font-size: 20px; word-break: keep-all; }
.hwa-prompt { margin: 0; color: #4b5563; font-size: 16px; }
.hwa-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: #4b5563; }
.hwa-todo { color: #b91c1c; font-weight: 800; }
.hwa-task-btns { display: flex; gap: 8px; margin-top: auto; }
.hwa-tag { font-size: 13px; font-weight: 800; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.hwa-tag.green { background: #dcfce7; color: #166534; } .hwa-tag.red { background: #fee2e2; color: #991b1b; } .hwa-tag.gray { background: #e5e7eb; color: #374151; }
.hwa-tag.blue { background: #dbeafe; color: #1e40af; } .hwa-tag.purple { background: #ede9fe; color: #5b21b6; } .hwa-tag.amber { background: #fef3c7; color: #92400e; }
.hwa-form { max-width: 860px; margin: 0 auto; } .hwa-form h2 { margin-top: 0; }
.hwa-f { display: block; margin: 0 0 12px; font-weight: 800; font-size: 15px; color: #3730a3; }
.hwa-f input, .hwa-f textarea, .hwa-f select { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; font: inherit; font-size: 17px; font-weight: 400; color: #111827; padding: 9px 12px; border: 2px solid #c7d2fe; border-radius: 10px; background: #fff; }
.hwa-f textarea { resize: vertical; line-height: 1.6; }
.hwa-check { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.hwa-bans { border: 2px solid #e0e7ff; border-radius: 12px; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hwa-bans legend { padding: 0 6px; }
.hwa-ban { font-weight: 600; color: #1f2937; display: inline-flex; gap: 4px; align-items: center; font-size: 16px; }
.hwa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hwa-form-btns { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.hwa-del { color: #b91c1c; border-color: #fecaca; }
.hwa-board-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; } .hwa-board-head h2 { margin: 0; font-size: 22px; word-break: keep-all; }
.hwa-q summary { cursor: pointer; font-weight: 800; color: #4338ca; } .hwa-q p { margin: 8px 0; }
.hwa-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; }
.hwa-filter select { font: inherit; padding: 6px 8px; border: 2px solid #c7d2fe; border-radius: 10px; }
.hwa-filter .hwa-check { margin: 0; }
.hwa-sum b { color: #4338ca; }
.hwa-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 12px; }
.hwa-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hwa-card.hwa-none, .hwa-card.hwa-draft { background: #fafafa; }
.hwa-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.hwa-card-head small { color: #6b7280; margin-left: auto; }
.hwa-pick { width: 20px; height: 20px; }
.hwa-nick { color: #4b5563; }
.hwa-answer { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; font-size: 17px; line-height: 1.7; max-height: 260px; overflow: auto; white-space: normal; word-break: keep-all; }
.hwa-none { margin: 0; color: #6b7280; font-size: 15px; }
.hwa-score { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hwa-lv { display: inline-flex; border: 2px solid #c7d2fe; border-radius: 10px; overflow: hidden; }
.hwa-lv button { font: inherit; font-weight: 800; font-size: 16px; padding: 6px 12px; border: 0; background: #fff; color: #3730a3; cursor: pointer; min-width: 46px; }
.hwa-lv button + button { border-left: 1px solid #e0e7ff; }
.hwa-lv button.on { background: #4f46e5; color: #fff; }
.hwa-pts { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; } .hwa-pts input { width: 72px; font: inherit; padding: 6px 8px; border: 2px solid #c7d2fe; border-radius: 10px; }
.hwa-cm { flex: 1 1 100%; font: inherit; font-size: 16px; padding: 8px 10px; border: 2px solid #c7d2fe; border-radius: 10px; resize: vertical; box-sizing: border-box; }
.hwa-card-btns { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.hwa-card-btns .hw-pri, .hwa-card-btns .hw-ghost { font-size: 15px; padding: 8px 12px; min-height: 40px; }
.hwa-bulk { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; max-width: calc(100vw - 180px); background: #1e1b4b; color: #fff; border-radius: 16px; box-shadow: 0 12px 32px rgba(30, 27, 75, .35); }
.hwa-bulk select, .hwa-bulk input { font: inherit; padding: 7px 9px; border-radius: 10px; border: 0; } .hwa-bulk input[data-b=score] { width: 76px; } .hwa-bulk input[data-b=comment] { width: 220px; }
@media (max-width: 1150px) { .hwa-bulk input[data-b=comment] { width: 150px; } .hwa-bulk .hw-pri, .hwa-bulk .hw-ghost { padding: 8px 10px; font-size: 15px; min-height: 40px; } }
.hwa-bulk .hw-ghost { background: transparent; color: #fff; border-color: #6366f1; } .hwa-bulk .hw-pri { background: #f59e0b; color: #1e1b4b; }
@media (max-width: 900px) { .hwa-tasks, .hwa-cards { grid-template-columns: 1fr; } .hwa-row { grid-template-columns: 1fr; } .hwa-bulk { width: auto; max-width: calc(100vw - 24px); left: 12px; transform: none; right: 12px; } }
