:root{color-scheme:light;font-family:Avenir Next,Trebuchet MS,sans-serif;--bg-soft: #f9f7f2;--bg-strong: #eff6ff;--ink: #1f2937;--ink-soft: #475569;--panel: #fffdf8;--line: #d8dfef;--brand: #0e7490;--brand-dark: #155e75;--highlight: #f97316}*{box-sizing:border-box}body{margin:0;min-height:100vh;color:var(--ink);overflow-x:hidden;background:radial-gradient(circle at 20% 18%,#dcfce7 0%,transparent 34%),radial-gradient(circle at 85% 10%,#dbeafe 0%,transparent 28%),linear-gradient(140deg,var(--bg-soft) 0%,var(--bg-strong) 100%)}.page{min-height:100vh;padding:28px;max-width:1120px;margin:0 auto;width:100%;display:flex;flex-direction:column;gap:20px;overflow-x:hidden}@media (min-width: 981px){.page.page--desktop-full{max-width:none;margin:0}.page.page--desktop-full .welcome-main{flex:0 0 auto}}.site-header{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:nowrap;gap:12px}.site-brand{display:grid;gap:2px;min-width:0}.site-logo{margin:0;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--highlight);font-size:1.02rem}.site-tagline{margin:0;font-size:.78rem;color:var(--ink-soft);font-weight:600}.site-actions{display:flex;align-items:center;gap:12px;margin-left:auto;flex-shrink:0;align-self:flex-start;padding-top:2px}.auth-links{display:flex;align-items:center;gap:8px}.auth-btn{padding:7px 12px;border-radius:999px;font-size:.82rem;font-weight:700}.auth-btn-ghost{border:1px solid #bac8e2;background:#fff;color:var(--ink)}.auth-btn-ghost:hover{background:#f8fafc}.auth-btn-solid{border:1px solid transparent;background:var(--brand);color:#fff}.welcome-main{flex:1;display:flex;flex-direction:column;gap:24px}.home-header{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:start;align-self:center;margin-top:100px;margin-bottom:50px}.brand h1{margin:4px 0 12px;font-size:clamp(2.1rem,4.2vw,3.2rem);line-height:1.05}.kicker{margin:0;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--highlight);font-weight:700}.summary{margin:10px;max-width:580px;color:var(--ink-soft);font-size:1.05rem}.prompt-launcher{background:#ffffffe0;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 16px 32px #02061714}.prompt-launcher label{display:block;margin-bottom:8px;font-weight:700;font-size:.92rem}.prompt-launcher textarea{width:100%;resize:none;border-radius:12px;border:1px solid #c9d5ea;padding:11px 12px;font:inherit;color:var(--ink);background:#fff;min-height:104px}.prompt-launcher textarea:focus{outline:3px solid rgba(14,116,144,.16)}.prompt-launcher button{margin-top:10px;width:100%}.home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:0}.feature{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px}.feature h2{margin:0 0 8px;font-size:1.08rem}.feature p{margin:0;color:var(--ink-soft)}.site-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:12px}.site-footer p{margin:0;color:var(--ink-soft);font-size:.84rem}@media (max-width: 980px){.page{padding:24px 18px}.home-header{grid-template-columns:1fr;gap:18px;align-self:stretch}.summary{max-width:640px;font-size:1.02rem}.prompt-launcher{padding:14px}.home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 720px){.page{padding:20px 16px;gap:16px}.site-header{flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;gap:10px}.site-actions{justify-content:flex-end;align-self:flex-start;padding-top:2px}.auth-links{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:8px}.auth-links .auth-btn{display:inline-flex;align-items:center;justify-content:center}.auth-btn{padding:6px 10px;font-size:.78rem}.site-tagline{font-size:.74rem}.site-logo{font-size:.96rem}.brand h1{margin-top:0;font-size:clamp(1.9rem,7vw,2.6rem)}.summary{font-size:.98rem}.prompt-launcher{border-radius:16px;box-shadow:0 14px 28px #02061714}.prompt-launcher textarea,.prompt-launcher button,.auth-form input{font-size:16px}.site-footer{flex-direction:column;align-items:flex-start;gap:6px}}@media (max-width: 640px){.site-header{gap:10px}.auth-btn{padding:6px 9px;font-size:.76rem}.home-grid{grid-template-columns:1fr}.feature{padding:16px}}.auth-btn:focus-visible,button:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid rgba(14,116,144,.22);outline-offset:2px}.auth-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:grid;place-items:center;z-index:1000;padding:16px}.auth-modal{width:min(480px,100%);background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 40px #0f172a3d;padding:16px;overflow:hidden}.auth-modal-header{display:flex;justify-content:space-between;align-items:center;gap:12px}.auth-modal-header h2{margin:0;font-size:1.2rem}.auth-close-btn{padding:3px 9px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:var(--ink);line-height:1}.auth-close-btn:hover{background:#f8fafc}.auth-modal-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.auth-tab{border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:var(--ink)}.auth-tab.active{border-color:var(--brand);background:#e0f2fe;color:#0c4a6e}.auth-form{margin-top:14px;display:grid;gap:12px}.google-auth-btn{margin-top:14px;width:100%;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:9px 14px;background:#fff;color:#3c4043;border:1px solid #dadce0;border-radius:999px;font-family:Roboto,Helvetica Neue,Arial,sans-serif;font-size:.92rem;font-weight:500;letter-spacing:.01em;transition:box-shadow .16s ease,border-color .16s ease,background-color .16s ease}.google-auth-btn:hover{background:#fff;border-color:#c7c9cc;box-shadow:0 1px 2px #3c404333,0 1px 3px 1px #3c40431a}.google-auth-btn:focus-visible{outline:2px solid #1a73e8;outline-offset:2px}.google-auth-btn:disabled{cursor:not-allowed;opacity:.7;box-shadow:none}.google-auth-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.auth-separator{margin:12px 0 4px;text-align:center;color:#64748b;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}.auth-form label{display:grid;gap:6px;font-size:.9rem;font-weight:600;color:var(--ink)}.auth-form input{border:1px solid #cbd5e1;border-radius:10px;padding:10px 11px;font:inherit}.auth-form input:focus{outline:3px solid rgba(14,116,144,.15)}.auth-submit{margin-top:4px;width:100%}.auth-feedback{margin:0;border-radius:10px;padding:10px 12px;font-size:.88rem;line-height:1.4}.auth-feedback-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.auth-feedback-success{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534}.auth-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.auth-secondary-btn{background:#fff;color:var(--ink);border:1px solid #cbd5e1}.auth-secondary-btn:hover{background:#f8fafc}.row{display:grid;gap:6px;margin-bottom:12px}.label{font-size:.85rem;color:#525f70}code{display:inline-block;background:#f8f9fc;border:1px solid #dde4f3;border-radius:8px;padding:8px 10px;word-break:break-all}button{border:none;border-radius:11px;background:var(--brand);color:#fff;padding:10px 14px;font-weight:700;cursor:pointer}button:hover{background:var(--brand-dark)}.status{margin-top:12px;font-weight:600}.chat-page{min-height:100vh;display:grid;grid-template-columns:300px 1fr;gap:18px;padding:20px}.chat-page.sidebar-collapsed{grid-template-columns:82px 1fr}.chat-history,.chat-main{background:#fff;border:1px solid var(--line);border-radius:18px}.chat-history{padding:14px;display:flex;flex-direction:column;max-height:calc(100vh - 40px)}.chat-history.collapsed{padding:10px 8px}.sidebar-toggle{margin:0 0 10px;border:1px solid #dbe4f1;background:#f8fafc;color:#334155}.sidebar-toggle:hover{background:#e2e8f0}.history-head h2{margin:0;font-size:1.15rem}.history-head p{margin:3px 0 0;color:var(--ink-soft);font-size:.85rem}.new-chat{margin-top:12px}.history-list{margin-top:12px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding-right:2px}.history-collapsed-rail{display:flex;flex-direction:column;align-items:center;flex:1}.icon-action-btn{margin-top:6px;width:44px;height:44px;padding:0;border-radius:12px;border:1px solid #c7d2fe;background:#eef2ff;color:#1e3a8a;display:inline-flex;align-items:center;justify-content:center}.icon-action-btn:hover{background:#dbeafe}.history-item{text-align:left;background:#f8fafc;color:var(--ink);border:1px solid #e2e8f0;padding:12px;border-radius:12px;min-height:auto}.history-item-footer{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:10px}.history-item-footer small{margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.history-item-delete-icon{width:30px;height:30px;padding:6px;border-radius:10px;color:#9f1239;display:inline-block;flex:none;cursor:pointer;line-height:0}.history-item-delete-icon:hover{background:#fff1f2}.history-item-delete-icon:focus-visible{outline:2px solid #fb7185;outline-offset:2px}.history-item.active{background:#ecfeff;border-color:#67e8f9}.history-item:hover{background:#f1f5f9;border-color:#cbd5e1}.history-item.active:hover{background:#cffafe;border-color:#22d3ee}.history-item strong,.history-item span,.history-item small{display:block}.history-item span{margin-top:4px;font-weight:500;color:var(--ink-soft);font-size:.84rem}.history-item small{margin-top:6px;font-size:.74rem;color:#6b7280}.history-list::-webkit-scrollbar{width:8px}.history-list::-webkit-scrollbar-track{background:transparent}.history-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.history-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}.chat-user-panel{margin-top:12px;position:relative}.chat-user-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.collapsed-panel{margin-top:10px}.collapsed-actions{grid-template-columns:1fr}.user-name-btn{background:#e2e8f0;color:#1e293b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-name-btn:hover{background:#cbd5e1}.user-logout-btn{background:#b91c1c}.user-logout-btn:hover{background:#991b1b}.icon-user-badge,.icon-logout-btn{width:44px;height:44px;padding:0;margin:0 auto;border-radius:12px}.icon-user-badge{background:#e2e8f0;color:#1e293b}.icon-user-badge:hover{background:#cbd5e1}.icon-logout-btn{background:#b91c1c;color:#fff}.icon-logout-btn:hover{background:#991b1b}.profile-submenu{position:absolute;bottom:calc(100% + 8px);left:0;right:0;border:1px solid #dbe4f1;border-radius:12px;background:#fff;box-shadow:0 10px 24px #0f172a2e;padding:8px;display:grid;gap:6px;z-index:4}.collapsed-submenu{left:calc(100% + 8px);right:auto;bottom:0;min-width:220px}.profile-submenu-item{width:100%;padding:10px 12px;text-align:left;border:1px solid #e2e8f0;background:#fff;color:#334155;font-weight:600}.profile-submenu-item:hover:not(:disabled){background:#f8fafc;border-color:#cbd5e1}.profile-submenu-item:disabled{color:#64748b;cursor:default}.capabilities-main{width:min(920px,100%);margin:0 auto;display:grid;gap:14px}.capabilities-header{display:grid;gap:10px}.capabilities-header h1{margin:0;font-size:clamp(1.45rem,3vw,1.9rem)}.capabilities-header p{margin:4px 0 0;color:var(--ink-soft)}.capabilities-back-btn{justify-self:start;border:1px solid #cbd5e1;background:#fff;color:#0f172a}.capabilities-back-btn:hover{background:#f8fafc}.capabilities-card{background:#fff;border:1px solid #dbe4f1;border-radius:14px;padding:14px}.capabilities-list{display:grid;gap:11px}.capability-row{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#fcfdff;display:grid;gap:8px}.capability-topic{margin:0;font-size:1rem;color:#0f172a}.capability-scale{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.capability-track{width:100%;height:13px;border-radius:999px;background:#e2e8f0;overflow:hidden;border:1px solid #cbd5e1}.capability-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#0891b2,#0ea5e9)}.capability-score{min-width:42px;text-align:right;color:#0f172a;font-size:.92rem}.pricing-btn{margin-top:10px;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:10px;padding:10px 14px;font-weight:700;cursor:pointer}.pricing-btn:hover{border-color:#cbd5e1}.pricing-main{width:min(980px,100%);margin:0 auto;padding:26px 18px 40px;display:grid;gap:18px}.pricing-header{display:flex;align-items:flex-start;gap:16px}.pricing-header h1{margin:0;font-size:28px;color:#0f172a}.pricing-header p{margin:6px 0 0;color:#475569}.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.pricing-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px;box-shadow:0 1px 2px #0f172a0a}.pricing-card-current{border-color:#38bdf8;box-shadow:0 1px 2px #0ea5e91f}.pricing-card-header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #f1f5f9;margin-bottom:10px}.pricing-card h2{margin:0;font-size:18px;color:#0f172a}.pricing-price{font-weight:800;color:#0f172a}.pricing-limits{display:grid;gap:8px}.pricing-limit{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#334155}.pricing-actions{margin-top:12px;display:flex;justify-content:flex-end}.pricing-buy{background:linear-gradient(90deg,#0891b2,#0ea5e9);color:#fff;border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.pricing-buy:disabled{opacity:.6;cursor:not-allowed}.capabilities-error{margin:0;color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:10px 12px;font-weight:600}.chat-main{padding:18px;display:grid;grid-template-rows:auto 1fr auto;max-height:calc(100vh - 40px)}.chat-header{display:flex;align-items:flex-start;gap:12px}.chat-header-content{flex:1;min-width:0}.chat-drawer-toggle{display:none;width:44px;height:44px;padding:0;border-radius:12px;border:1px solid #dbe4f1;background:#f8fafc;color:#0f172a;font-size:1.25rem;font-weight:800;line-height:1;cursor:pointer}.chat-drawer-toggle:hover{background:#e2e8f0}.chat-drawer-backdrop{display:none}.chat-header h1{margin:0 0 6px;font-size:1.4rem}.chat-header p{margin:0;color:var(--ink-soft)}.messages{margin-top:14px;overflow:auto;padding-right:4px}.message{border-radius:12px;padding:12px;margin-bottom:10px;max-width:85%}.message-group{display:flex;flex-direction:column;margin-bottom:10px;max-width:85%}.message-group .message{margin-bottom:0;max-width:100%}.message-group .message.assistant{border-bottom-left-radius:0;border-bottom-right-radius:0;padding-bottom:6px}.message-group .message.assistant p{margin-bottom:8px}.message-group .message.assistant a{color:#0f766e}.message-group .message.assistant a:hover{color:#115e59}.message-group .message.status-label{background:#ecfccb;border:none;color:#0f766e;margin:0;max-width:100%;padding:0 12px 12px;text-align:left;border-top-left-radius:0;border-top-right-radius:0}.message-group .message.status-label p{display:inline-flex;align-items:center;font-size:.92rem;font-weight:650;line-height:1.15;padding:6px 10px;border-radius:999px;background:#0e74901a;border:1px solid rgba(14,116,144,.25)}.message-group .message.status-label .status-activity{display:inline-flex;align-items:center;margin-left:6px;font-weight:900;letter-spacing:1px}.message-group .message.status-label .status-activity-dot{display:inline-block;width:6px;text-align:center;opacity:.25;animation:status-dot-pulse 1.2s infinite ease-in-out}.message-group .message.status-label .status-activity-dot-2{animation-delay:.15s}.message-group .message.status-label .status-activity-dot-3{animation-delay:.3s}@keyframes status-dot-pulse{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-1px)}}.message h3{margin:0 0 6px;font-size:.9rem}.message-meta{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.message-meta h3{margin:0 0 6px}.message-time{color:var(--ink-soft);font-size:.78rem;font-weight:600;white-space:nowrap}.message p{margin:0}.message a{color:#0c4a6e;font-weight:700}.message.student{background:#dbeafe;margin-left:auto}.message.assistant{background:#ecfccb}.message.status-label{background:#f8fafc;border:1px solid #dbe4f1;color:#475569;margin:12px auto 10px 0;max-width:fit-content;padding:7px 12px;text-align:left}.empty-chat{margin:0;color:var(--ink-soft);background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:12px}.composer{margin-top:12px;display:grid;gap:10px}.composer-auth-cta{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:12px;display:grid;gap:10px}.composer-notice{margin:0;color:var(--ink-soft)}.composer-auth-actions{display:flex;gap:10px;flex-wrap:wrap}.composer textarea{width:100%;resize:vertical;min-height:100px;border-radius:12px;border:1px solid #c9d5ea;padding:11px 12px;font:inherit}.composer textarea:disabled{background:#f8fafceb;color:#0f172ab3;cursor:not-allowed}.composer textarea:focus{outline:3px solid rgba(14,116,144,.16)}.composer-actions{display:flex;justify-content:flex-end}.composer-send{min-width:160px}.subject-assist{width:100%;margin-top:8px;padding:12px 14px;border:1px solid rgba(148,163,184,.4);border-radius:14px;background:#f8fafceb}.subject-assist-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}.subject-assist-row:last-child{margin-bottom:0}.subject-assist-title{display:inline-flex;align-items:baseline;gap:10px}.subject-assist-select{align-items:center;gap:12px}.subject-assist-select .subject-assist-label{white-space:nowrap}.subject-assist-label{font-size:.92rem;color:#0f172a}.subject-assist-meta,.subject-assist-status{font-size:.85rem;color:#64748b}.subject-assist-error{font-size:.85rem;color:#b91c1c}.subject-assist select{width:100%;border-radius:12px;border:1px solid #cbd5e1;padding:10px 12px;background:#fff;font:inherit}.subject-assist-inline{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.subject-assist-sep{color:#64748be6}.subject-assist-inline-checkbox{display:inline-flex;align-items:center;gap:8px;font-size:.9rem;color:#0f172a}.subject-assist-inline-checkbox input{width:16px;height:16px}.subject-assist-inline.is-no-subject .subject-assist-inline-item{opacity:.6}.subject-assist-checkbox{display:flex;align-items:center;gap:10px;font-size:.9rem;color:#0f172a;margin-bottom:6px}.subject-assist-checkbox input{width:16px;height:16px}.subject-assist-checklist{display:flex;flex-direction:column;gap:6px;margin-top:8px}.subject-assist-checklist.is-disabled{opacity:.6}.subject-confirm-message{margin:12px 0 10px;color:var(--ink-soft);font-size:.92rem;line-height:1.45}.subject-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:10px}.btn-secondary{background:#fff;color:#0f172a;border:1px solid #cbd5e1}.btn-secondary:hover{background:#f8fafc}.practice-main{max-width:960px;margin:0 auto;display:grid;gap:14px}.practice-header h1{margin:0 0 4px}.practice-header p{margin:0 0 8px;color:var(--ink-soft)}.practice-header a{color:#0c4a6e;font-weight:700}.practice-filters,.practice-item{background:#fff;border:1px solid #dbe4f1;border-radius:12px;padding:12px}.practice-filters pre{margin:0;white-space:pre-wrap;word-break:break-word}.practice-list{display:grid;gap:10px}.practice-item h3{margin:0 0 8px}.practice-item ol{margin:0;padding-left:20px}.exam-main{--exam-font-size-xs: .875rem;--exam-font-size-sm: .9375rem;--exam-font-size-base: 1rem;--exam-font-size-lg: 1.0625rem;--exam-font-size-xl: 1.25rem;font-family:Avenir Next,Trebuchet MS,sans-serif;font-size:var(--exam-font-size-base);line-height:1.5;max-width:none;width:100%;margin:0;flex:1;height:100%;min-height:0;overflow:hidden;grid-template-rows:auto minmax(0,1fr) auto}.exam-main button,.exam-main input{font:inherit}.exam-top-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.exam-header-actions{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}.exam-live-timer{display:inline-flex;align-items:baseline;gap:6px;border:1px solid #dbeafe;background:#f8fbff;color:#1e3a8a;border-radius:10px;padding:7px 10px}.exam-live-timer span{font-size:var(--exam-font-size-xs);font-weight:600;color:#475569}.exam-live-timer strong{font-size:var(--exam-font-size-sm);font-weight:800;color:#1e3a8a;line-height:1}.exam-title-block{display:flex;align-items:center;gap:10px;min-width:0}.exam-title{margin:0;font-size:var(--exam-font-size-xl);line-height:1.25;font-weight:700;color:#0f172a}.exam-back-btn{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:10px;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}.exam-nav-drawer-toggle{display:none;border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:10px;width:38px;height:38px;padding:0;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto;font-weight:900;font-size:1.1rem;line-height:1}.exam-nav-backdrop{display:none}.exam-fullscreen-btn{border:1px solid #3b82f6;background:#eff6ff;color:#1e40af;border-radius:10px;padding:8px 10px;font-weight:700;font-size:var(--exam-font-size-sm);line-height:1.2;cursor:pointer;flex:0 0 auto}.exam-fullscreen-btn-content{display:inline-flex;align-items:center;gap:6px}.exam-fullscreen-icon{width:1em;height:1em;display:inline-flex;flex:0 0 auto}.exam-fullscreen-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.exam-body{display:grid;grid-template-columns:250px 1fr;grid-template-rows:minmax(0,1fr) auto;gap:12px;min-height:0;height:100%;overflow:hidden}.exam-body.navigator-collapsed{grid-template-columns:88px 1fr}.exam-navigator{background:#fff;border:1px solid #dbe4f1;border-radius:12px;padding:12px;display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;grid-column:1;grid-row:1 / span 2}.exam-navigator-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.exam-navigator h3{margin:0;font-size:var(--exam-font-size-xl);line-height:1.25;font-weight:700;color:#0f172a}.exam-navigator-title-icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center}.exam-navigator-title-icon svg{width:100%;height:100%;fill:currentColor}.exam-navigator-toggle{border:1px solid #dbe4f1;background:#f8fafc;color:#334155;border-radius:8px;min-width:32px;min-height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;line-height:1}.exam-navigator-toggle:hover{background:#e2e8f0}.exam-navigator-toggle:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.exam-nav-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;overflow:auto;min-height:0;align-content:start;padding-right:4px}.exam-navigator.collapsed .exam-nav-grid{grid-template-columns:1fr}.exam-nav-item{border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#0f172a;padding:8px 0;font-size:var(--exam-font-size-base);font-weight:700;line-height:1.2;cursor:pointer}.exam-nav-item.status-current{background:#dbeafe;border-color:#2563eb;color:#1e3a8a}.exam-nav-item.status-answered,.exam-nav-item.status-correct{background:#dcfce7;border-color:#16a34a;color:#166534}.exam-nav-item.status-wrong{background:#fee2e2;border-color:#dc2626;color:#991b1b}.exam-nav-item.status-marked_for_review{background:#ccfbf1;border-color:#0f766e;color:#134e4a}.exam-nav-item.status-skipped{background:#fef3c7;border-color:#d97706;color:#92400e}.exam-nav-item.status-not_viewed,.exam-nav-item.status-not_visited{background:#f8fafc;border-color:#cbd5e1;color:#334155}.exam-nav-item:disabled{opacity:1}.exam-question-panel{display:grid;grid-template-rows:minmax(0,1fr);min-height:0;overflow:hidden;grid-column:2;grid-row:1}.exam-question-scroll{overflow:auto;min-height:0;padding-right:4px}.exam-question-item h3{font-size:var(--exam-font-size-xl);line-height:1.25;font-weight:700;margin:0}.exam-question-header{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 10px}.exam-question-legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}.exam-question-legend-item{display:inline-flex;align-items:center;border:1px solid transparent;border-radius:999px;padding:3px 8px;font-size:.72rem;line-height:1;font-weight:700;white-space:nowrap}.exam-question-legend-item.correct{background:#dcfce7;border-color:#86efac;color:#166534}.exam-question-legend-item.wrong{background:#fee2e2;border-color:#fca5a5;color:#991b1b}.exam-question-legend-item.skipped{background:#fef3c7;border-color:#fcd34d;color:#92400e}.exam-question-legend-item.not_viewed,.exam-question-legend-item.not_visited{background:#f8fafc;border-color:#cbd5e1;color:#334155}.exam-rich-content{color:#111827;font-size:var(--exam-font-size-lg);line-height:1.5}.exam-rich-content p,.exam-rich-content ol,.exam-rich-content ul,.exam-rich-content table{margin:0 0 10px}.exam-rich-content p:last-child,.exam-rich-content ol:last-child,.exam-rich-content ul:last-child,.exam-rich-content table:last-child{margin-bottom:0}.exam-rich-content ol,.exam-rich-content ul{padding-left:1.5rem}.exam-rich-content li{margin-bottom:4px}.exam-rich-content strong{font-weight:700}.exam-rich-content table{width:100%;border-collapse:collapse}.exam-rich-content th,.exam-rich-content td{border:1px solid #dbe4f1;padding:6px 8px;text-align:left}.exam-question-stem{background:#f8fafc;border:1px solid #dbe4f1;border-radius:12px;padding:14px 16px;margin:0 0 12px}.exam-options-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}.exam-options-list li{margin:0;padding:0}.exam-option{display:flex;gap:12px;align-items:flex-start;color:#111827;border:1px solid #cbd5e1;border-radius:16px;background:#fff;padding:16px 18px;font-size:var(--exam-font-size-lg);line-height:1.3;font-weight:600;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.exam-option:hover{border-color:#94a3b8;background:#f8fafc}.exam-option input{position:absolute;opacity:0;pointer-events:none}.exam-option.selected{border-color:#22c55e;background:#eaf7f0}.exam-option.correct{border-color:#16a34a;background:#ecfdf3}.exam-option.incorrect{border-color:#ef4444;background:#fef2f2}.exam-option:focus-within{box-shadow:0 0 0 3px #22c55e33}.exam-option-letter{min-width:1.8rem;font-size:var(--exam-font-size-lg);font-weight:700;line-height:1;margin-top:2px;color:#0f172a}.exam-option-content{display:block;flex:1;min-width:0}.exam-option-content p,.exam-option-content ol,.exam-option-content ul{margin-bottom:6px}.exam-option-badge{display:inline-flex;align-items:center;border-radius:999px;border:1px solid transparent;padding:3px 8px;font-size:.72rem;font-weight:700;line-height:1;margin-left:auto}.exam-option-badge.correct{background:#dcfce7;border-color:#86efac;color:#166534}.exam-option-badge.incorrect{background:#fee2e2;border-color:#fca5a5;color:#991b1b}.exam-explanation-panel{margin-top:14px;border:1px solid #dbe4f1;border-radius:12px;background:#f8fafc;padding:12px 14px}.exam-explanation-panel h4{margin:0 0 8px;font-size:var(--exam-font-size-lg);line-height:1.25;font-weight:700;color:#0f172a}.exam-solution-steps{margin-top:10px}.exam-action-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px 12px;border:1px solid #dbe4f1;border-radius:12px;background:#eef2ff;margin-top:0;flex:0 0 auto;grid-column:2;grid-row:2}.exam-action-bar button{border-radius:10px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;padding:9px 11px;font-weight:700;font-size:var(--exam-font-size-sm);line-height:1.2;cursor:pointer}.exam-action-bar button:disabled{background:#f8fafc;color:#94a3b8;border-color:#cbd5e1}.exam-result-summary{width:100%;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;padding:10px}.exam-result-summary h3{margin:0 0 8px;font-size:.95rem;color:#1e3a8a}.exam-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}.exam-result-card{border:1px solid #dbeafe;border-radius:8px;background:#fff;padding:8px;display:flex;flex-direction:column;gap:3px}.exam-result-card span{color:#475569;font-size:.72rem}.exam-result-card strong{color:#0f172a;font-size:.95rem}.exam-action-bar .end-practice-btn{background:#fee2e2;border-color:#f87171;color:#991b1b}.exam-action-bar .report-question-btn{background:#ffedd5;border-color:#fb923c;color:#9a3412}.exam-page{height:100vh;max-height:100vh;overflow:hidden;padding:16px;gap:12px}@media (max-width: 980px){.exam-page{padding:10px}.chat-page{display:block;grid-template-columns:1fr}.chat-page.sidebar-collapsed{grid-template-columns:1fr}.sidebar-toggle{display:none}.chat-drawer-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.chat-drawer-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:50;border:0;padding:0;margin:0}.chat-drawer-backdrop:hover{background:#0f172a59}.chat-drawer-backdrop.is-open{opacity:1;pointer-events:auto}.chat-history.mobile-drawer{position:fixed;top:0;left:0;width:min(80vw,320px);height:100vh;max-height:100vh;transform:translate(-105%);transition:transform .2s ease;z-index:60;border-radius:0 18px 18px 0;box-shadow:0 18px 40px #0f172a38;will-change:transform}.chat-history.mobile-drawer.mobile-open{transform:translate(0)}.chat-history.collapsed{padding:14px}.chat-history,.chat-main{max-height:none}.capabilities-card{padding:12px}.capability-scale{grid-template-columns:1fr;gap:6px}.capability-score{text-align:left}.exam-body{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}.exam-body.navigator-collapsed{grid-template-columns:1fr}.exam-nav-drawer-toggle{display:inline-flex}.exam-nav-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:50;border:0;padding:0;margin:0}.exam-nav-backdrop:hover{background:#0f172a59}.exam-nav-backdrop.is-open{opacity:1;pointer-events:auto}.exam-navigator-toggle{display:none}.exam-navigator.mobile-drawer{position:fixed;top:0;left:0;width:min(80vw,var(--exam-nav-drawer-width, 320px));height:100vh;max-height:100vh;transform:translate(-105%);transition:transform .2s ease;z-index:60;border-radius:0 18px 18px 0;box-shadow:0 18px 40px #0f172a38;will-change:transform}.exam-navigator.mobile-drawer.mobile-open{transform:translate(0)}.exam-navigator.mobile-drawer .exam-nav-grid{grid-template-columns:repeat(var(--exam-nav-cols, 3),minmax(0,1fr))}.exam-navigator,.exam-question-panel{grid-column:1;grid-row:1}.exam-action-bar{grid-column:1;grid-row:2}.exam-action-bar{margin-top:10px}.exam-top-row{align-items:flex-start;flex-direction:column}.exam-header-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.exam-title{font-size:1.2rem}.exam-rich-content{font-size:var(--exam-font-size-base)}.exam-rich-content ol,.exam-rich-content ul{padding-left:1.25rem}.subject-assist{width:100%;margin-top:8px;padding:10px 12px;border:1px solid rgba(148,163,184,.4);border-radius:10px;background:#f8fafce6}.subject-assist-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:6px}.subject-assist-label{font-size:.9rem;color:#0f172a}.subject-assist-meta,.subject-assist-status{font-size:.85rem;color:#64748b}.subject-assist-error{font-size:.85rem;color:#b91c1c}}.auth-modal select,.auth-modal input,.auth-modal textarea{width:100%;max-width:100%;box-sizing:border-box}.auth-modal select{min-width:0;border-radius:12px;border:1px solid #cbd5e1;padding:10px 12px;background:#fff;font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
