*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #080d18;--bg2: #0f172a;--bg3: #1e293b;--bg4: #334155;--border: rgba(148, 163, 184, .18);--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 rgba(0,0,0,.35)}html.theme-light{--bg: #f7f7f5;--bg2: #ffffff;--bg3: #f1f1ef;--bg4: #e2e8f0;--border: rgba(15, 23, 42, .1);--border-solid: #cbd5e1;--text: #172033;--text2: #475569;--text3: #64748b;--primary: #4f46e5;--primary-hover: #4338ca;--success: #059669;--danger: #dc2626;--shadow: 0 4px 24px rgba(30, 41, 59, .12)}html.theme-light body{background:var(--bg)}body{font-family:Manrope,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;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{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;background:#080d18;background-image:radial-gradient(at 20% 15%,rgba(99,102,241,.22) 0,transparent 52%),radial-gradient(at 85% 85%,rgba(16,185,129,.16) 0,transparent 52%);transition:background .3s}html.theme-light .auth-gate{background:#f7f7f5;background-image:none}.auth-card{position:relative;width:min(100%,390px);padding:30px;border:1px solid rgba(148,163,184,.2);border-radius:18px;background:#0f172af0;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{position:absolute;top:18px;right:18px;width:38px;height:38px;border-radius:10px;background:#ffffff14;color:#f8fafc;border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}.auth-theme-toggle:hover{background:#ffffff24}html.theme-light .auth-theme-toggle{background:#0000000f;color:#334155;border-color:#00000014}html.theme-light .auth-theme-toggle:hover{background:#0000001a}.auth-card__icon-wrap{margin-bottom:14px}.auth-card__brand{color:#a5b4fc;font-size:1.5rem;font-weight:800;margin-bottom:20px;letter-spacing:-.02em}html.theme-light .auth-card__brand{color:#4f46e5}.auth-card__title{color:#f8fafc;font-size:1.45rem;font-weight:700;margin-bottom:8px;line-height:1.3}html.theme-light .auth-card__title{color:#172033}.auth-card__description{color:#94a3b8;font-size:.9rem;margin-bottom:22px;line-height:1.5}html.theme-light .auth-card__description{color:#64748b}.auth-form{display:flex;flex-direction:column;gap:0}.settings-auth-fields{display:flex;flex-direction:column;gap:7px;margin-bottom:7px}.settings-auth-field{display:flex;flex-direction:column;gap:3px;color:#94a3b8;font-size:.72rem;font-weight:500}html.theme-light .settings-auth-field{color:#64748b}.settings-auth-field input{width:100%;padding:7px 8px;border:1px solid #475569;border-radius:7px;background:#0f172a;color:#e2e8f0;font:inherit;font-size:.85rem;outline:none;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{background:#f8fafc;border-color:#cbd5e1;color:#172033}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{position:absolute;top:50%;right:5px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;border:0;border-radius:5px;background:transparent;color:#94a3b8;cursor:pointer;transition:background .15s,color .15s}.settings-auth-password-toggle:hover{background:#94a3b81f;color:#e2e8f0}html.theme-light .settings-auth-password-toggle{color:#64748b}html.theme-light .settings-auth-password-toggle:hover{background:#64748b1f;color:#334155}.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{display:flex;gap:6px;margin-top:10px}.settings-auth-btn{flex:1;border:1px solid #6366f1;border-radius:7px;padding:8px 10px;background:#6366f1;color:#fff;cursor:pointer;font:inherit;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{background:transparent;color:#cbd5e1;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{background:transparent;color:#475569;border-color:#cbd5e1}.settings-auth-message{min-height:1.1em;margin-top:8px;color:#94a3b8;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{min-height:100vh;display:flex;flex-direction:column}nav{background:var(--bg2);border-bottom:1px solid var(--border);padding:0 1.5rem;display:flex;align-items:center;gap:2rem;height:56px;position:sticky;top:0;z-index:100;transition:background .25s,border-color .25s}nav .brand{font-weight:800;font-size:1.1rem;color:var(--text);display:flex;align-items:center;gap:.5rem}nav .brand span{color:var(--text)}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{font-size:.85rem;color:var(--text2);display:flex;align-items:center;gap:.75rem}.nav-theme-btn{width:34px;height:34px;border-radius:8px;background:transparent;border:1px solid var(--border-solid);color:var(--text2);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s}.nav-theme-btn:hover{background:var(--bg3);color:var(--text)}main{flex:1;padding:2rem 1.5rem;max-width:900px;margin:0 auto;width:100%}.card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;transition:background .25s,border-color .25s}.btn{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1.1rem;border-radius:7px;font-size:.9rem;font-weight:600;transition:background .15s,opacity .15s,filter .15s}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-ghost{background:transparent;color:var(--text2);border:1px solid var(--border-solid)}.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{display:inline-block;padding:.15rem .55rem;border-radius:20px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.badge-CH{background:#1d4ed8;color:#bfdbfe}.badge-CN{background:#065f46;color:#a7f3d0}.badge-LC{background:#7c3aed;color:#ddd6fe}.badge-MT{background:#9a3412;color:#fed7aa}.badge-RP{background:#0f766e;color:#ccfbf1}.badge-regular{background:var(--bg3);color:var(--text2)}.badge-ppl{background:#78350f;color:#fde68a}.badge-exterior{background:#1e3a5f;color:#93c5fd}.form-group{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem}.form-group label{font-size:.85rem;font-weight:500;color:var(--text2)}.form-group input,.form-group select{background:var(--bg);border:1px solid var(--border-solid);color:var(--text);padding:.6rem .9rem;border-radius:7px;font-size:.9rem;outline:none;transition:border-color .15s}.form-group input:focus,.form-group select:focus{border-color:var(--primary)}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:1rem;margin-bottom:2rem}.stat-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem 1rem;text-align:center;transition:background .25s,border-color .25s}.stat-card .value{font-size:1.8rem;font-weight:700;line-height:1}.stat-card .label{font-size:.78rem;color:var(--text3);margin-top:.3rem;text-transform:uppercase;letter-spacing:.05em}.filters{display:flex;flex-wrap:nowrap;gap:.6rem;margin-bottom:1.5rem;align-items:flex-end}.filters select{background:var(--bg2);border:1px solid var(--border-solid);color:var(--text);padding:.4rem .5rem;border-radius:7px;font-size:.82rem;outline:none;width:100%;min-width:0;text-overflow:ellipsis;cursor:pointer;height:36px;transition:background .25s,border-color .25s,color .25s}.multi-select-box,.filter-card{position:relative;display:flex;flex-direction:column;flex:1 1 0;min-width:0}.multi-select-title,.filter-card-title{font-size:.72rem;font-weight:800;color:#000;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.3rem;display:block;-webkit-user-select:none;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}html.theme-light .multi-select-title,html.theme-light .filter-card-title{color:#000}html:not(.theme-light) .multi-select-title,html:not(.theme-light) .filter-card-title{color:#fff}.multi-select-trigger{background:var(--bg2);border:1px solid var(--border-solid);color:var(--text);padding:.4rem .5rem;border-radius:7px;font-size:.82rem;height:36px;display:flex;align-items:center;gap:.4rem;cursor:pointer;white-space:nowrap;font-family:inherit;transition:background .2s,border-color .2s,box-shadow .2s,color .2s;-webkit-user-select:none;user-select:none;width:100%;min-width:0;box-sizing:border-box}.multi-select-trigger:hover{background:var(--bg3);border-color:var(--border-solid)}.multi-select-box.has-selection .multi-select-trigger{border-color:var(--primary);background:var(--bg3);font-weight:600}.multi-select-box.is-open .multi-select-trigger{border-color:var(--primary);box-shadow:0 0 0 2px #6366f133}.multi-select-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.multi-select-clear-btn{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--bg4);color:var(--text2);font-size:13px;line-height:1;margin-left:2px;cursor:pointer;transition:background .15s,color .15s}.multi-select-clear-btn:hover{background:var(--danger);color:#fff}.multi-select-arrow{font-size:.75rem;color:var(--text3);transition:transform .2s ease;pointer-events:none}.multi-select-box.is-open .multi-select-arrow{transform:rotate(180deg)}.multi-select-dropdown{position:absolute;top:calc(100% + 5px);left:0;min-width:240px;max-width:340px;background:var(--bg2);border:1px solid var(--border-solid);border-radius:8px;box-shadow:0 10px 30px #00000059;z-index:250;overflow:hidden;display:flex;flex-direction:column}.multi-select-search-wrap{padding:.5rem;border-bottom:1px solid var(--border);background:var(--bg2)}.multi-select-search-input{width:100%;padding:.35rem .6rem;border-radius:5px;background:var(--bg3);border:1px solid var(--border-solid);color:var(--text);font-size:.82rem;outline:none;font-family:inherit}.multi-select-search-input:focus{border-color:var(--primary)}.multi-select-actions{display:flex;align-items:center;justify-content:space-between;padding:.35rem .6rem;background:var(--bg);border-bottom:1px solid var(--border);font-size:.75rem}.multi-select-action-btn{background:none;border:none;color:var(--primary);font-size:.78rem;font-weight:600;cursor:pointer;padding:2px 4px;border-radius:3px;font-family:inherit}.multi-select-action-btn:hover:not(:disabled){text-decoration:underline}.multi-select-action-btn:disabled{color:var(--text3);cursor:not-allowed;opacity:.6}.multi-select-count{color:var(--text3);font-size:.74rem}.multi-select-list{max-height:250px;overflow-y:auto;padding:.3rem 0}.multi-select-item{display:flex;align-items:center;gap:.6rem;padding:.42rem .75rem;font-size:.83rem;color:var(--text);cursor:pointer;transition:background .12s;-webkit-user-select:none;user-select:none}.multi-select-item:hover{background:var(--bg3)}.multi-select-item.is-checked{background:#6366f124}.multi-select-checkbox{cursor:pointer;accent-color:var(--primary);width:14px;height:14px;flex-shrink:0}.multi-select-item-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multi-select-empty{padding:.8rem;text-align:center;color:var(--text3);font-size:.82rem}.question-list{display:flex;flex-direction:column;gap:.6rem}.question-item{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1.1rem;display:flex;align-items:center;gap:.9rem;cursor:pointer;transition:border-color .15s,background .15s;text-decoration:none;color:inherit}.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{font-size:1.2rem;font-weight:700;color:var(--text3);min-width:2rem;text-align:center}.question-item .q-preview{flex:1;font-size:.88rem;color:var(--text2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.question-item .q-meta{display:flex;gap:.4rem;flex-shrink:0}.quiz-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.progress-bar{height:4px;background:var(--bg3);border-radius:2px;margin-bottom:1.5rem;overflow:hidden}.progress-bar-fill{height:100%;background:var(--primary);border-radius:2px;transition:width .3s}.question-text{font-size:1rem;line-height:1.7;margin-bottom:1.5rem;white-space:pre-wrap}.question-image{max-width:100%;border-radius:8px;margin-bottom:1rem;border:1px solid var(--border)}.options{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.5rem}.option-btn{display:flex;align-items:flex-start;gap:.9rem;padding:.9rem 1.1rem;background:var(--bg2);border:1.5px solid var(--border-solid);border-radius:var(--radius);color:var(--text);font-size:.93rem;text-align:left;transition:border-color .15s,background .15s;line-height:1.5}.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{font-weight:700;min-width:1.4rem;color:var(--text3)}.option-btn.selected .letter,.option-btn.correct .letter{color:var(--primary)}.option-btn.wrong .letter{color:var(--danger)}.quiz-actions{display:flex;gap:.75rem;margin-top:1rem}.feedback{padding:.8rem 1rem;border-radius:8px;font-size:.9rem;margin-bottom:1rem}.feedback.correct{background:#10b9811f;color:var(--success);border:1px solid rgba(16,185,129,.3)}.feedback.wrong{background:#ef44441a;color:var(--danger);border:1px solid rgba(239,68,68,.25)}.loading{display:flex;justify-content:center;align-items:center;padding:4rem;color:var(--text3);font-size:.9rem}.empty{text-align:center;padding:3rem;color:var(--text3)}h1{font-size:1.5rem;margin-bottom:1.5rem;font-weight:800}h2{font-size:1.15rem;margin-bottom:1rem;font-weight:700}@media(max-width:600px){main{padding:1rem}.stats-grid{grid-template-columns:repeat(2,1fr)}nav{gap:1rem}}
