*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#080d18;--bg2:#0f172a;--bg3:#1e293b;--bg4:#334155;--border:#94a3b82e;--border-solid:#334155;--text:#f1f5f9;--text2:#94a3b8;--text3:#64748b;--primary:#6366f1;--primary-hover:#4f46e5;--success:#10b981;--danger:#ef4444;--warning:#f59e0b;--radius:10px;--shadow:0 4px 24px #00000059}html.theme-light{--bg:#f7f7f5;--bg2:#fff;--bg3:#f1f1ef;--bg4:#e2e8f0;--border:#0f172a1a;--border-solid:#cbd5e1;--text:#172033;--text2:#475569;--text3:#64748b;--primary:#4f46e5;--primary-hover:#4338ca;--success:#059669;--danger:#dc2626;--shadow:0 4px 24px #1e293b1f}html.theme-light body{background:var(--bg)}body{background:var(--bg);color:var(--text);min-height:100vh;font-family:Manrope,system-ui,-apple-system,sans-serif;line-height:1.6;transition:background .25s,color .25s}a{color:var(--primary);text-decoration:none}button{cursor:pointer;border:none;font-family:inherit}input,select,textarea{font-family:inherit}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:var(--bg2)}::-webkit-scrollbar-thumb{background:var(--bg4);border-radius:3px}.auth-gate{z-index:10000;background-color:#080d18;background-image:radial-gradient(at 20% 15%,#6366f138 0,#0000 52%),radial-gradient(at 85% 85%,#10b98129 0,#0000 52%);background-position:0 0;background-repeat:repeat;background-size:auto;background-attachment:scroll;background-origin:padding-box;background-clip:border-box;justify-content:center;align-items:center;padding:24px;transition:background .3s;display:flex;position:fixed;inset:0}html.theme-light .auth-gate{background:#f7f7f5}.auth-card{background:#0f172af0;border:1px solid #94a3b833;border-radius:18px;width:min(100%,390px);padding:30px;position:relative;box-shadow:0 20px 60px #00000073}html.theme-light .auth-card{background:#fffffff5;border-color:#0f172a1a;box-shadow:0 20px 60px #1e293b29}.auth-theme-toggle{color:#f8fafc;cursor:pointer;background:#ffffff14;border:1px solid #ffffff1a;border-radius:10px;justify-content:center;align-items:center;width:38px;height:38px;transition:background .15s;display:flex;position:absolute;top:18px;right:18px}.auth-theme-toggle:hover{background:#ffffff24}html.theme-light .auth-theme-toggle{color:#334155;background:#0000000f;border-color:#00000014}html.theme-light .auth-theme-toggle:hover{background:#0000001a}.auth-card__icon-wrap{margin-bottom:14px}.auth-card__brand{color:#a5b4fc;letter-spacing:-.02em;margin-bottom:20px;font-size:1.5rem;font-weight:800}html.theme-light .auth-card__brand{color:#4f46e5}.auth-card__title{color:#f8fafc;margin-bottom:8px;font-size:1.45rem;font-weight:700;line-height:1.3}html.theme-light .auth-card__title{color:#172033}.auth-card__description{color:#94a3b8;margin-bottom:22px;font-size:.9rem;line-height:1.5}html.theme-light .auth-card__description{color:#64748b}.auth-form{flex-direction:column;gap:0;display:flex}.settings-auth-fields{flex-direction:column;gap:7px;margin-bottom:7px;display:flex}.settings-auth-field{color:#94a3b8;flex-direction:column;gap:3px;font-size:.72rem;font-weight:500;display:flex}html.theme-light .settings-auth-field{color:#64748b}.settings-auth-field input{color:#e2e8f0;width:100%;font:inherit;background:#0f172a;border:1px solid #475569;border-radius:7px;outline:none;padding:7px 8px;font-size:.85rem;transition:border-color .15s,box-shadow .15s}.settings-auth-field input:focus{border-color:#6366f1;box-shadow:0 0 0 2px #6366f133}html.theme-light .settings-auth-field input{color:#172033;background:#f8fafc;border-color:#cbd5e1}html.theme-light .settings-auth-field input::placeholder{color:#94a3b8}html.theme-light .settings-auth-field input:focus{border-color:#4f46e5;box-shadow:0 0 0 2px #4f46e52e}.settings-auth-password{position:relative}.settings-auth-password input{padding-right:36px}.settings-auth-password-toggle{color:#94a3b8;cursor:pointer;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;width:26px;height:26px;padding:0;transition:background .15s,color .15s;display:flex;position:absolute;top:50%;right:5px;transform:translateY(-50%)}.settings-auth-password-toggle:hover{color:#e2e8f0;background:#94a3b81f}html.theme-light .settings-auth-password-toggle{color:#64748b}html.theme-light .settings-auth-password-toggle:hover{color:#334155;background:#64748b1f}.settings-auth-password-toggle svg{width:16px;height:16px}.settings-auth-password-eye-off,.settings-auth-password-toggle.is-visible .settings-auth-password-eye{display:none}.settings-auth-password-toggle.is-visible .settings-auth-password-eye-off{display:block}.settings-auth-actions{gap:6px;margin-top:10px;display:flex}.settings-auth-btn{color:#fff;cursor:pointer;font:inherit;background:#6366f1;border:1px solid #6366f1;border-radius:7px;flex:1;padding:8px 10px;font-size:.82rem;font-weight:600;transition:filter .15s}.settings-auth-btn:hover:not(:disabled){filter:brightness(1.12)}.settings-auth-btn:disabled{opacity:.5;cursor:not-allowed}.settings-auth-btn--secondary{color:#cbd5e1;background:0 0;border-color:#475569}html.theme-light .settings-auth-btn:not(.settings-auth-btn--secondary){background:#171717;border-color:#171717}html.theme-light .settings-auth-btn:not(.settings-auth-btn--secondary):hover{background:#333;border-color:#333}html.theme-light .settings-auth-btn--secondary{color:#475569;background:0 0;border-color:#cbd5e1}.settings-auth-message{color:#94a3b8;min-height:1.1em;margin-top:8px;font-size:.75rem;line-height:1.35}.settings-auth-message.is-error{color:#f87171}.settings-auth-message.is-success{color:#34d399}html.theme-light .settings-auth-message{color:#64748b}html.theme-light .settings-auth-message.is-error{color:#dc2626}html.theme-light .settings-auth-message.is-success{color:#059669}.app{flex-direction:column;min-height:100vh;display:flex}nav{background:var(--bg2);border-bottom:1px solid var(--border);z-index:100;align-items:center;gap:2rem;height:56px;padding:0 1.5rem;transition:background .25s,border-color .25s;display:flex;position:sticky;top:0}nav .brand{color:var(--text);align-items:center;gap:.5rem;font-size:1.1rem;font-weight:800;display:flex}nav .brand span{color:var(--primary)}nav a{color:var(--text2);font-size:.9rem;transition:color .15s}nav a:hover,nav a.active{color:var(--text)}nav .spacer{flex:1}nav .user-info{color:var(--text2);align-items:center;gap:.75rem;font-size:.85rem;display:flex}.nav-theme-btn{border:1px solid var(--border-solid);width:34px;height:34px;color:var(--text2);cursor:pointer;background:0 0;border-radius:8px;justify-content:center;align-items:center;transition:background .15s,color .15s;display:flex}.nav-theme-btn:hover{background:var(--bg3);color:var(--text)}main{flex:1;width:100%;max-width:900px;margin:0 auto;padding:2rem 1.5rem}.card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;transition:background .25s,border-color .25s}.btn{border-radius:7px;align-items:center;gap:.4rem;padding:.5rem 1.1rem;font-size:.9rem;font-weight:600;transition:background .15s,opacity .15s,filter .15s;display:inline-flex}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-ghost{color:var(--text2);border:1px solid var(--border-solid);background:0 0}.btn-ghost:hover{background:var(--bg3);color:var(--text)}.btn-danger{background:var(--danger);color:#fff}.btn-sm{padding:.3rem .75rem;font-size:.8rem}.btn:disabled{opacity:.45;cursor:not-allowed}.badge{text-transform:uppercase;letter-spacing:.03em;border-radius:20px;padding:.15rem .55rem;font-size:.75rem;font-weight:600;display:inline-block}.badge-CH{color:#bfdbfe;background:#1d4ed8}.badge-CN{color:#a7f3d0;background:#065f46}.badge-LC{color:#ddd6fe;background:#7c3aed}.badge-MT{color:#fed7aa;background:#9a3412}.badge-RP{color:#ccfbf1;background:#0f766e}.badge-regular{background:var(--bg3);color:var(--text2)}.badge-ppl{color:#fde68a;background:#78350f}.badge-exterior{color:#93c5fd;background:#1e3a5f}.form-group{flex-direction:column;gap:.4rem;margin-bottom:1rem;display:flex}.form-group label{color:var(--text2);font-size:.85rem;font-weight:500}.form-group input,.form-group select{background:var(--bg);border:1px solid var(--border-solid);color:var(--text);border-radius:7px;outline:none;padding:.6rem .9rem;font-size:.9rem;transition:border-color .15s}.form-group input:focus,.form-group select:focus{border-color:var(--primary)}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:1rem;margin-bottom:2rem;display:grid}.stat-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);text-align:center;padding:1.1rem 1rem;transition:background .25s,border-color .25s}.stat-card .value{font-size:1.8rem;font-weight:700;line-height:1}.stat-card .label{color:var(--text3);text-transform:uppercase;letter-spacing:.05em;margin-top:.3rem;font-size:.78rem}.filters{flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:1.5rem;display:flex}.filters select{background:var(--bg2);border:1px solid var(--border-solid);color:var(--text);border-radius:7px;outline:none;padding:.4rem .7rem;font-size:.85rem;transition:background .25s,border-color .25s,color .25s}.question-list{flex-direction:column;gap:.6rem;display:flex}.question-item{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;color:inherit;align-items:center;gap:.9rem;padding:.9rem 1.1rem;text-decoration:none;transition:border-color .15s,background .15s;display:flex}.question-item:hover{border-color:var(--primary);background:var(--bg3)}.question-item.answered-correct{border-left:3px solid var(--success)}.question-item.answered-wrong{border-left:3px solid var(--danger)}.question-item .q-num{color:var(--text3);text-align:center;min-width:2rem;font-size:1.2rem;font-weight:700}.question-item .q-preview{color:var(--text2);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.88rem;overflow:hidden}.question-item .q-meta{flex-shrink:0;gap:.4rem;display:flex}.quiz-header{align-items:center;gap:1rem;margin-bottom:1.5rem;display:flex}.progress-bar{background:var(--bg3);border-radius:2px;height:4px;margin-bottom:1.5rem;overflow:hidden}.progress-bar-fill{background:var(--primary);border-radius:2px;height:100%;transition:width .3s}.question-text{white-space:pre-wrap;margin-bottom:1.5rem;font-size:1rem;line-height:1.7}.question-image{border:1px solid var(--border);border-radius:8px;max-width:100%;margin-bottom:1rem}.options{flex-direction:column;gap:.6rem;margin-bottom:1.5rem;display:flex}.option-btn{background:var(--bg2);border:1.5px solid var(--border-solid);border-radius:var(--radius);color:var(--text);text-align:left;align-items:flex-start;gap:.9rem;padding:.9rem 1.1rem;font-size:.93rem;line-height:1.5;transition:border-color .15s,background .15s;display:flex}.option-btn:hover:not(:disabled){border-color:var(--primary);background:var(--bg3)}.option-btn.selected{border-color:var(--primary);background:#6366f11f}.option-btn.correct{border-color:var(--success);background:#10b9811a}.option-btn.wrong{border-color:var(--danger);background:#ef44441a}.option-btn .letter{min-width:1.4rem;color:var(--text3);font-weight:700}.option-btn.selected .letter,.option-btn.correct .letter{color:var(--primary)}.option-btn.wrong .letter{color:var(--danger)}.quiz-actions{gap:.75rem;margin-top:1rem;display:flex}.feedback{border-radius:8px;margin-bottom:1rem;padding:.8rem 1rem;font-size:.9rem}.feedback.correct{color:var(--success);background:#10b9811f;border:1px solid #10b9814d}.feedback.wrong{color:var(--danger);background:#ef44441a;border:1px solid #ef444440}.loading{color:var(--text3);justify-content:center;align-items:center;padding:4rem;font-size:.9rem;display:flex}.empty{text-align:center;color:var(--text3);padding:3rem}h1{margin-bottom:1.5rem;font-size:1.5rem;font-weight:800}h2{margin-bottom:1rem;font-size:1.15rem;font-weight:700}@media (width<=600px){main{padding:1rem}.stats-grid{grid-template-columns:repeat(2,1fr)}nav{gap:1rem}}
