:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;color:#0f172a;background:#f1f5f9}*{box-sizing:border-box}body{margin:0;background:#f1f5f9;color:#0f172a}h1,h2,h3,p{margin:0}.muted{color:#475569}.status{border-radius:.5rem;padding:.75rem;font-size:.95rem}.status.success{background:#ecfdf5;color:#047857}.status.error{background:#fef2f2;color:#b91c1c}button,.link-button{border:none;border-radius:.5rem;background:#2563eb;color:#fff;font-weight:600;padding:.65rem 1rem;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}button:disabled{cursor:not-allowed;opacity:.6}button.secondary{background:#334155}input,select,textarea{width:100%;margin-top:.35rem;padding:.6rem .75rem;border:1px solid #cbd5e1;border-radius:.5rem;background:#fff;color:#0f172a}label{display:block;font-size:.95rem;color:#334155}.auth-layout{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1rem}.auth-card{width:min(100%,34rem);background:#fff;border-radius:.9rem;box-shadow:0 10px 30px #0f172a1a;padding:1.25rem;display:grid;gap:1rem}.tab-row{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.tab{background:#e2e8f0;color:#334155}.tab.active{background:#2563eb;color:#fff}.form-stack{display:grid;gap:.8rem}.split-grid{display:grid;grid-template-columns:1fr;gap:.8rem}.dashboard-layout,.assistant-layout{min-height:100vh}.dashboard-header,.assistant-header{background:#0f172a;color:#fff;padding:1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.dashboard-header .muted,.assistant-header .muted{color:#cbd5e1}.action-row{display:flex;gap:.5rem;flex-wrap:wrap}.section-heading{display:grid;gap:.35rem}.subject-nav{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.15rem;-webkit-overflow-scrolling:touch}.subject-chip,.limit-chip{border:1px solid #cbd5e1;border-radius:999px;background:#e2e8f0;color:#334155;font-size:.9rem;padding:.45rem .9rem;white-space:nowrap}.subject-chip.active,.limit-chip.active{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}.dashboard-main,.assistant-main{width:min(100%,70rem);margin:0 auto;padding:1rem;display:grid;gap:1rem}.panel{background:#fff;border-radius:.8rem;box-shadow:0 8px 24px #0f172a14;padding:1rem;display:grid;gap:.9rem}.panel.subtle{background:#f8fafc;border:1px solid #e2e8f0;box-shadow:none}.quiz-config{display:grid;gap:.75rem}.quiz-config .muted{display:block;margin-top:.35rem;font-size:.85rem}.limit-quick-actions,.class-nav,.subject-nav{display:flex;gap:.5rem;flex-wrap:wrap}.class-chip,.subject-chip,.limit-chip{border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a}.class-chip.active,.subject-chip.active,.limit-chip.active{border-color:#2563eb;background:#2563eb;color:#fff}.quiz-form{display:grid;gap:.85rem}.quiz-meta{display:grid;gap:.3rem}.quiz-submit-bar{position:sticky;bottom:0;background:#fff;border:1px solid #dbeafe;border-radius:.7rem;padding:.75rem;display:grid;gap:.6rem;box-shadow:0 -8px 20px #0f172a14}.quiz-submit-bar button{width:100%}.question-card{border:1px solid #e2e8f0;border-radius:.7rem;padding:.75rem}.question-card legend{padding:0 .25rem;font-weight:600}.option-list{display:grid;gap:.6rem}.option-label{display:flex;align-items:center;gap:.45rem;padding:.65rem .7rem;border:1px solid #dbeafe;border-radius:.6rem;background:#f8fafc}.option-label.selected{border-color:#60a5fa;background:#eff6ff}.option-list input{width:auto;margin:0}.result-panel{gap:.75rem}.result-transition{border:1px solid #bfdbfe;background:linear-gradient(180deg,#eff6ff,#fff 120px)}.result-transition-header{display:grid;gap:.35rem;border-left:4px solid #2563eb;padding:.2rem 0 .2rem .75rem}.result-transition-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#1d4ed8;font-weight:700}.result-feedback-list{display:grid;gap:.75rem}.review-card{display:grid;gap:.6rem}.review-card h4{font-size:1rem}.option-review-list{display:grid;gap:.5rem}.option-review-item{border:1px solid #cbd5e1;border-radius:.6rem;padding:.6rem .7rem;display:grid;gap:.45rem}.option-review-item.correct{border-color:#22c55e;background:#f0fdf4}.option-review-item.selected-wrong{border-color:#fb923c;background:#fff7ed}.feedback-tag-row{display:flex;gap:.45rem;flex-wrap:wrap}.feedback-tag{display:inline-flex;align-items:center;border-radius:999px;padding:.2rem .6rem;font-size:.75rem;font-weight:600}.feedback-tag.selected{background:#ffedd5;color:#9a3412}.feedback-tag.correct{background:#dcfce7;color:#166534}.score{font-weight:700}.chat-history{min-height:50vh;max-height:62vh;overflow-y:auto;padding-right:.25rem;display:grid;gap:.75rem}.chat-message{max-width:min(100%,34rem);border-radius:.7rem;padding:.75rem;border:1px solid #dbeafe}.chat-message.assistant{justify-self:start;background:#eff6ff}.chat-message.user{justify-self:end;background:#e2e8f0;border-color:#cbd5e1}.chat-form{display:grid;grid-template-columns:1fr auto;gap:.65rem;align-items:center}.chat-form input{margin-top:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (min-width: 768px){.split-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-config{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.quiz-config button[type=submit]{grid-column:1 / -1}.quiz-meta{grid-template-columns:1fr auto;align-items:center}.quiz-submit-bar{position:static;grid-template-columns:1fr auto;align-items:center}.quiz-submit-bar button{width:auto;min-width:10rem}.quiz-config button{align-self:end}}@media (max-width: 767px){.dashboard-header,.assistant-header{flex-direction:column;align-items:flex-start}.action-row{width:100%}.action-row .link-button,.action-row button{flex:1}}
