*{box-sizing:border-box}body{color:#172033;background:#f5f7fb;min-width:320px;min-height:100vh;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.auth-shell{grid-template-columns:minmax(0,1fr) 420px;min-height:100vh;display:grid}.auth-panel{color:#fff;background:linear-gradient(#101e36cc,#101e36bd),url(https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=80) 50%/cover;flex-direction:column;justify-content:space-between;min-height:100vh;padding:52px;display:flex}.auth-panel h1{letter-spacing:0;max-width:620px;margin:0;font-size:52px;line-height:1.02}.auth-panel p{color:#ffffffd1;max-width:560px;margin:18px 0 0;font-size:18px;line-height:1.6}.brand-mark{border:1px solid #ffffff47;border-radius:999px;width:max-content;padding:8px 14px;font-weight:700}.auth-card-wrap{background:#fff;justify-content:center;align-items:center;min-height:100vh;padding:28px;display:flex}.auth-card{width:100%;max-width:360px}.eyebrow{color:#607089;text-transform:uppercase;margin:0 0 8px;font-size:13px;font-weight:700}.auth-card h2,.section-title h2,.exercise-card h3{margin:0}.auth-card h2{font-size:30px}.form{gap:16px;margin-top:28px;display:grid}.field{color:#334155;gap:7px;font-size:14px;font-weight:700;display:grid}.field input,.field select,.field textarea{color:#172033;background:#fff;border:1px solid #d9e0ec;border-radius:8px;outline:none;width:100%;padding:11px 12px;transition:border-color .12s,box-shadow .12s}.field input[type=file]{padding:9px 10px}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.primary-btn,.secondary-btn,.ghost-btn{border-radius:8px;min-height:40px;padding:0 14px;font-weight:800}.primary-btn{color:#fff;background:#2563eb}.secondary-btn{color:#1d4ed8;background:#eaf1ff}.ghost-btn{color:#2563eb;background:0 0}.danger-btn{color:#be123c;background:#fff1f2}.error-box{color:#be123c;background:#fff1f2;border:1px solid #fecdd3;border-radius:8px;padding:11px 12px;font-size:14px;font-weight:700}.success-box{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:11px 12px;font-size:14px;font-weight:700}.file-note{color:#64748b;margin-top:-8px;font-size:13px;font-weight:700}.app-shell{min-height:100vh}.topbar{z-index:2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#ffffffeb;border-bottom:1px solid #e3e8f2;position:sticky;top:0}.topbar-inner{justify-content:space-between;align-items:center;max-width:1180px;margin:0 auto;padding:18px 24px;display:flex}.topbar-actions{align-items:center;gap:10px;display:flex}.role-pill{color:#1d4ed8;text-transform:capitalize;background:#edf4ff;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:800}.main-grid{grid-template-columns:390px minmax(0,1fr);gap:24px;max-width:1180px;margin:0 auto;padding:28px 24px;display:grid}.panel,.exercise-card{background:#fff;border:1px solid #e1e7f0;border-radius:8px;box-shadow:0 10px 30px #141f320f}.panel{height:max-content;padding:20px}.section-title{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;display:flex}.section-title p{color:#64748b;margin:6px 0 0}.query-block{background:#f8fafc;border:1px solid #e8edf5;border-radius:8px;padding:14px}.row-actions{flex-wrap:wrap;gap:10px;display:flex}.exercise-list{gap:16px;display:grid}.exercise-card{overflow:hidden}.exercise-card-clickable{cursor:pointer;transition:border-color .12s,box-shadow .12s,transform .12s}.exercise-card-clickable:hover{border-color:#bfdbfe;transform:translateY(-1px);box-shadow:0 14px 34px #141f321a}.exercise-media{object-fit:contain;background:#f8fafc;width:100%;max-height:420px;display:block}.image-fallback{color:#64748b;text-align:center;background:#f8fafc;justify-content:center;align-items:center;min-height:180px;padding:24px;font-weight:700;display:flex}.exercise-body{padding:18px}.meta-row{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.count-badge{color:#475569;background:#f1f5f9;border-radius:999px;padding:6px 10px;font-size:13px;font-weight:800}.query-list{gap:10px;margin:14px 0 0;padding:0;list-style:none;display:grid}.query-list li{background:#f8fafc;border-left:3px solid #2563eb;padding:10px 12px}.hint{color:#64748b;margin-top:5px;font-size:14px;display:block}.answer-log{border-top:1px solid #e5eaf2;margin-top:14px;padding-top:14px}.result-panel{border:1px solid #0000;border-radius:10px;margin-top:14px;padding:14px}.result-panel-correct{background:#eff6ff;border-color:#bfdbfe}.result-panel-wrong{background:#fef2f2;border-color:#fecaca}.result-label{border-radius:999px;align-items:center;padding:6px 10px;font-weight:800;display:inline-flex}.result-correct{color:#1d4ed8;background:#dbeafe}.result-wrong{color:#b91c1c;background:#fee2e2}.feedback-box{margin-top:12px}.review-box{background:#f8fafc;border:1px solid #e5eaf2;border-radius:8px;margin-top:12px;padding:14px}.review-box pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border-radius:8px;margin:8px 0 14px;padding:12px}.empty-state{color:#64748b;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:8px;padding:30px}.llm-chat{background:#fbfdff;border:1px solid #e5eaf2;border-radius:12px;margin-top:16px;padding:16px}.chat-thread{flex-direction:column;gap:14px;max-height:520px;padding-right:4px;display:flex;overflow-y:auto}.chat-msg{align-items:flex-start;gap:10px;max-width:85%;display:flex}.chat-msg-ai{align-self:flex-start}.chat-msg-user{flex-direction:row-reverse;align-self:flex-end}.chat-avatar{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-size:10px;font-weight:800;display:flex}.chat-msg-ai .chat-avatar{color:#1d4ed8;background:#eaf1ff}.chat-msg-user .chat-avatar{color:#92400e;background:#fde68a}.chat-bubble{border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.5}.chat-msg-ai .chat-bubble{color:#1e293b;background:#fff;border:1px solid #e5eaf2}.chat-msg-user .chat-bubble{color:#fff;background:#2563eb}.chat-bubble-error{color:#b91c1c;background:#fee2e2;border:1px solid #fecaca}.chat-typing{color:#64748b;font-style:italic}.chat-actions{border-top:1px solid #eef2f8;flex-wrap:wrap;gap:10px;margin-top:16px;padding-top:14px;display:flex}@media (width<=900px){.auth-shell,.main-grid{grid-template-columns:1fr}.auth-panel{min-height:360px;padding:32px}.auth-panel h1{font-size:38px}}
