body.teacher { min-height: 100vh; }
.dash { padding: 18px; display: flex; flex-direction: column; gap: 16px; max-width: 1400px; margin: 0 auto; width: 100%; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kpi b { display: block; font-size: 28px; } .kpi span { color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.hbar { display: grid; grid-template-columns: 190px 1fr 70px; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.hbar .track { height: 14px; background: var(--track); border-radius: 7px; overflow: hidden; }
.hbar .track div { height: 100%; border-radius: 7px; }
.hbar .n { color: var(--muted); text-align: right; }
.insights { margin-top: 12px; font-size: 14px; } .insights div { margin: 4px 0; } .insights div::before { content: "→ "; color: var(--accent); }
.assignlist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.assignlist label { display: flex; flex-direction: column; gap: 4px; background: var(--soft); border-radius: 12px; padding: 8px 10px; font-size: 13px; border: 1px solid transparent; }
.assignlist label.on { border-color: var(--good); }
.assignlist input[type=date] { font-size: 12px; padding: 4px 6px; }
.row.left { justify-content: flex-start; gap: 8px; align-items: center; } .row.left input { flex: 1; max-width: 520px; }
.muted { color: var(--muted); font-size: 13px; }
.scroll { overflow: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th, .tbl td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; cursor: pointer; position: sticky; top: 0; background: var(--panel); }
.tbl tbody tr:hover { background: var(--soft); cursor: pointer; }
.tbl td.c { text-align: center; }
.s1, .s2 { color: var(--bad); font-weight: 700; } .s3 { color: var(--warn); font-weight: 700; } .s4, .s5 { color: var(--good); font-weight: 700; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255,181,71,.15); color: #ffd27a; margin-right: 3px; }
.done { color: var(--good); } .started { color: var(--blue); } .late { color: var(--bad); font-weight: 700; }
.detail-head { display: flex; justify-content: space-between; align-items: center; }
.spark { background: var(--soft); border-radius: 12px; }
.attempts td { white-space: normal; max-width: 260px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } .grid2 { grid-template-columns: 1fr; } .assignlist { grid-template-columns: repeat(2, 1fr); } }

.qsummary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qsummary div { background: var(--soft); border-radius: 12px; padding: 10px; font-size: 12px; color: var(--muted); }
.qsummary b { display: block; font-size: 24px; color: var(--text); } .qsummary .hot b { color: var(--warn); }
.qtabs { display: flex; gap: 6px; margin: 14px 0 8px; } .qtabs button { font-size: 13px; padding: 5px 12px; } .qtabs button.on { background: var(--accent); color: #1a0f0a; }
.qlist { display: flex; flex-direction: column; gap: 10px; }
.qi { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.qi.open { border-color: var(--warn); }
.qi .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.qi .qq { font-size: 15px; font-weight: 700; margin: 6px 0; }
.qi .ans { font-size: 14px; margin: 4px 0; } .qi .ans b { color: var(--muted); font-weight: 600; }
.qi .tans b { color: var(--good); }
.qi .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; } .qi .acts button { font-size: 12px; padding: 5px 10px; }
.qi textarea { margin-top: 8px; }
.badge2 { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--track); } .badge2.open { background: rgba(255,181,71,.2); color: #ffd27a; }
.badge2.faq { background: rgba(60,207,145,.15); color: #9ff0c9; }
