:root{--ink:#1c2541;--muted:#718099;--line:#e6eaf2;--paper:#fff;--canvas:#f7f8fc;--blue:#5168dd;--blue-dark:#354ec7;--blue-pale:#edf0ff;--shadow:0 18px 48px rgba(39,54,108,.08)}*{box-sizing:border-box}body,html{height:100%;margin:0}body{color:var(--ink);background:var(--canvas);font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:inherit;text-decoration:none}.boot-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--muted)}.boot-logo,.brand-icon{display:grid;place-items:center;background:linear-gradient(145deg,#7d91ff,#5166d9);color:white;box-shadow:0 5px 14px rgba(69,89,201,.2)}.boot-logo{width:48px;height:48px;border-radius:17px}.brand{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:750;letter-spacing:-.03em;white-space:nowrap}.brand-icon{width:34px;height:34px;border-radius:11px;flex:none}.brand-logo{display:block;width:40px;height:40px;object-fit:contain;flex:none;border-radius:50%;background:#fff;border:1px solid rgba(41,58,143,.12);box-shadow:0 3px 10px rgba(34,50,120,.12)}.auth-page{min-height:100dvh;background:#eef2ff;position:relative;overflow:hidden}.auth-decor{position:absolute;pointer-events:none;border-radius:50%;filter:blur(3px)}.auth-decor-one{width:600px;height:600px;background:radial-gradient(circle,#d7deff,transparent 70%);right:-170px;top:-260px}.auth-decor-two{width:480px;height:480px;background:radial-gradient(circle,#e9dffe,transparent 70%);left:-230px;bottom:-230px}.auth-layout{max-width:1160px;min-height:100dvh;margin:auto;padding:38px;position:relative;display:grid;grid-template-columns:1.05fr .95fr;align-items:stretch}.auth-story{min-height:640px;padding:42px 58px;background:linear-gradient(145deg,#1d2f78,#263795 52%,#5848a3);color:white;border-radius:28px 0 0 28px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story:after,.auth-story:before{content:"";position:absolute;border:1px solid rgba(255,255,255,.11);border-radius:50%;width:560px;height:560px;right:-330px;bottom:-140px}.auth-story:after{width:350px;height:350px;right:-215px;bottom:-36px}.brand-light .brand-icon{background:rgba(255,255,255,.16);box-shadow:none}.story-content{position:relative;z-index:1;margin-top:60px}.eyebrow,.welcome-overline{font-size:12px;letter-spacing:.18em;font-weight:700;color:#b8c8ff}.story-content h1{font-size:clamp(38px,4.2vw,61px);line-height:1.23;letter-spacing:-.055em;margin:22px 0 25px;font-weight:720}.story-content h1 em{font-style:normal;color:#bdc9ff}.story-content p{max-width:350px;color:#cbd4fa;font-size:15px;line-height:1.9}.story-points{display:flex;gap:9px;margin-top:44px;flex-wrap:wrap}.story-points span{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);border-radius:100px;padding:9px 14px;color:#e2e8ff;font-size:12px}.story-footer{font-size:11px;color:#aebded;position:relative;z-index:1}.auth-panel{display:grid;place-items:center;background:#fff;border-radius:0 28px 28px 0;box-shadow:var(--shadow);padding:38px}.auth-card{width:min(100%,370px)}.mobile-brand{display:none}.auth-kicker{font-size:12px;font-weight:700;color:var(--blue)}.auth-heading h2{font-size:31px;letter-spacing:-.05em;margin:11px 0 6px}.auth-heading p{color:var(--muted);margin:0 0 27px;line-height:1.7}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#f4f6fb;border-radius:13px;padding:5px;margin-bottom:25px}.auth-tabs button{border:0;background:transparent;padding:11px;color:#8894aa;font-weight:650;border-radius:10px}.auth-tabs button.active{background:#fff;color:var(--blue);box-shadow:0 2px 7px rgba(37,51,109,.07)}.auth-form{display:flex;flex-direction:column;gap:17px}.admin-field label,.auth-form label{display:flex;flex-direction:column;gap:8px;color:#35415b;font-size:13px;font-weight:650}.admin-field input,.admin-field select,.auth-form input{height:47px;border:1px solid #dfe4ef;border-radius:11px;padding:0 14px;outline:none;background:white;color:var(--ink);transition:border-color .2s,box-shadow .2s}.admin-field input:focus,.admin-field select:focus,.auth-form input:focus,.composer textarea:focus,.feedback-form textarea:focus,.style-menu input:focus{border-color:#8c9aff;box-shadow:0 0 0 3px rgba(81,104,221,.11)}input::placeholder,textarea::placeholder{color:#9ca7bb}.banner-error,.form-error{display:flex;align-items:center;gap:9px;background:#fff3f2;color:#bd514c;border:1px solid #ffe3e0;border-radius:10px;padding:11px 13px;font-size:12px;line-height:1.5}.primary-button{background:var(--blue);color:white;border:0;border-radius:11px;font-weight:700;transition:background .2s,transform .2s}.primary-button:hover:not(:disabled){background:var(--blue-dark);transform:translateY(-1px)}.primary-button:disabled{opacity:.6}.auth-submit{height:49px;margin-top:5px;display:flex;align-items:center;justify-content:center;gap:8px}.auth-submit svg{transform:rotate(45deg)}.auth-note{color:#a1aab9;font-size:11px;line-height:1.8;text-align:center;margin:27px 0 0}.app-shell{height:100dvh;display:flex;overflow:hidden;background:#fff}.sidebar{width:264px;flex:none;background:#f8f9fd;border-right:1px solid #e8ebf2;display:flex;flex-direction:column;min-height:0}.sidebar-top{padding:27px 15px}.sidebar-brand-row{display:flex;align-items:center;gap:8px;min-width:0}.sidebar .brand{font-size:15px;gap:7px}.sidebar-subject-switch{flex:none;padding:5px 6px;border-radius:7px;background:#edf1ff;color:#5065ca;font-size:10px;font-weight:700;white-space:nowrap}.sidebar-subject-switch:focus-visible,.sidebar-subject-switch:hover{background:#dfe6ff;color:#344bbb}.new-chat-button{margin:0 15px 28px;min-height:44px;border:0;background:#e9edff;color:var(--blue-dark);border-radius:11px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;transition:background .2s}.new-chat-button:hover{background:#dce3ff}.conversation-section-label{margin:0 22px 10px;font-size:11px;font-weight:700;color:#9aa5b9;letter-spacing:.05em}.conversation-list{flex:1 1;overflow-y:auto;padding:0 10px 20px;scrollbar-width:thin}.conversation-row{display:flex;align-items:center;border-radius:10px;margin-bottom:3px}.conversation-row:hover{background:#eef1f8}.conversation-row.selected{background:#e8edff}.conversation-item{min-width:0;flex:1 1;background:transparent;border:0;border-radius:10px;display:flex;align-items:center;gap:9px;color:#68758f;text-align:left;padding:11px 0 11px 12px;min-height:43px}.conversation-row:hover .conversation-item{color:#263452}.conversation-row.selected .conversation-item{color:#3e55c3;font-weight:680}.conversation-delete{width:28px;height:28px;border:0;background:transparent;color:#abb5c6;border-radius:7px;display:grid;place-items:center;margin-right:4px;opacity:0;flex:none}.conversation-delete:focus-visible,.conversation-row:hover .conversation-delete{opacity:1}.conversation-delete:hover{color:#c15c5a;background:#fff2f1}.conversation-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1}.conversation-item small{font-size:10px;color:#a2abc0;white-space:nowrap}.empty-history{font-size:12px;color:#a7b0c2;text-align:center;margin-top:22px}.sidebar-footer{padding:10px 15px 17px;border-top:1px solid #e8ebf2}.sidebar-hint{display:flex;align-items:flex-start;gap:7px;background:#f0f3fa;border-radius:9px;padding:10px;color:#929db1;font-size:10px;line-height:1.5;margin-bottom:13px}.sidebar-hint svg{flex:none}.account-row{display:flex;align-items:center;gap:10px;padding:5px 3px}.avatar{width:34px;height:34px;border-radius:11px;background:#dce4ff;color:#3b51bb;display:grid;place-items:center;font-weight:750}.account-name{min-width:0;flex:1 1;display:flex;flex-direction:column;gap:3px}.account-name strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-name span{font-size:10px;color:#a0aabd}.account-row button,.mobile-icon-button{width:32px;height:32px;border:0;background:transparent;display:grid;place-items:center;color:#8490a7;border-radius:8px}.account-row button:hover,.mobile-icon-button:hover{background:#e9edfa;color:var(--blue)}.admin-link{display:flex;justify-content:space-between;align-items:center;padding:8px 8px 0;color:var(--blue);font-size:11px;font-weight:650}.admin-link svg{transform:rotate(45deg)}.menu-toggle,.sidebar-close{display:none}.main-panel{flex:1 1;min-width:0;min-height:0;display:flex;flex-direction:column;background:linear-gradient(#fff,#fff 73%,#fdfdff)}.topbar{height:70px;flex:none;border-bottom:1px solid #edf0f5;display:flex;align-items:center;padding:0 35px;gap:14px}.topbar-grading-link{font-size:11px;font-weight:650;color:var(--blue);padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--blue-pale);white-space:nowrap}.topbar-grading-link:hover{background:var(--line)}.student-grading-link{color:var(--blue);font-size:11px;font-weight:600;padding:7px 9px;border-radius:6px;white-space:nowrap}.student-grading-link:hover{background:var(--blue-pale)}.topbar-title{display:flex;flex-direction:column;gap:3px;min-width:0}.topbar-eyebrow{font-size:10px;color:#9aa6bd;letter-spacing:.08em}.topbar-title strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:40vw}.topbar-right{margin-left:auto}.ai-label{display:flex;align-items:center;gap:7px;color:#75819c;font-size:12px;font-weight:600}.online-dot{width:7px;height:7px;border-radius:50%;background:#51c6a3;box-shadow:0 0 0 4px #e7f8f2}.content-scroll{min-height:0;flex:1 1;overflow:auto;scrollbar-width:thin}.banner-error{max-width:820px;margin:15px auto 0}.banner-error button{margin-left:auto;border:0;background:transparent;color:#af433e;font-weight:650}.loading-conversation{display:flex;align-items:center;justify-content:center;gap:10px;color:#95a0b4;min-height:50vh}.spinner{width:19px;height:19px;border:2px solid #e0e6fb;border-top:2px solid var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}.welcome{max-width:830px;margin:0 auto;padding:clamp(45px,9vh,100px) 24px 35px;text-align:center}.welcome-icon{width:67px;height:67px;border-radius:22px;display:grid;place-items:center;margin:0 auto 28px;background:linear-gradient(145deg,#edf0ff,#e9e9ff);color:var(--blue);box-shadow:0 15px 30px rgba(83,105,206,.09)}.welcome-overline{color:#8c9dec;font-size:11px}.welcome h1{font-size:clamp(26px,3vw,38px);letter-spacing:-.06em;margin:10px 0 15px}.welcome p{color:#8995a9;font-size:13px;line-height:1.9;margin:0}.suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;text-align:left;margin-top:44px}.suggestions button{position:relative;min-height:94px;background:#fff;border:1px solid #e9edf5;border-radius:15px;text-align:left;padding:17px 17px 15px;box-shadow:0 4px 16px rgba(43,56,98,.025);display:flex;flex-direction:column;gap:8px;transition:border-color .2s,transform .2s,box-shadow .2s}.suggestions button:hover{border-color:#bfcbff;transform:translateY(-2px);box-shadow:0 8px 24px rgba(60,77,145,.07)}.suggestions button span{font-size:11px;color:#6b7fdb;font-weight:750}.suggestions button strong{font-size:13px;color:#495772;line-height:1.6;font-weight:600;padding-right:19px}.suggestions button svg{position:absolute;right:15px;bottom:16px;color:#adb8d5;transform:rotate(45deg)}.message-stack{max-width:850px;margin:auto;padding:32px 24px 30px}.message{display:flex;gap:13px;margin-bottom:28px}.message-user{justify-content:flex-end}.message-avatar{width:32px;height:32px;overflow:hidden;flex:none;display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,#6278e9,#8b83de);border-radius:11px;box-shadow:0 4px 11px rgba(78,100,205,.18)}.message-main{max-width:min(100%,690px);min-width:0}.message-user .message-main{max-width:min(100%,620px)}.message-name{color:#445273;font-size:13px;font-weight:750;margin:2px 0 9px;display:flex;align-items:center;gap:8px}.message-name span{font-size:10px;color:#9ba8c0;background:#f2f4f9;padding:3px 6px;border-radius:5px;font-weight:600}.message-bubble{padding:16px 19px;border-radius:4px 16px 16px 16px;background:#f7f8fc;color:#354158;line-height:1.8;overflow-wrap:anywhere}.message-user .message-bubble{background:#e9edff;border-radius:16px 4px 16px 16px;color:#354170}.user-text{white-space:pre-wrap;margin:0;line-height:1.75}.message-image{margin-bottom:10px}.message-images{display:flex;flex-wrap:wrap;gap:8px}.message-image img{display:block;max-width:min(100%,340px);max-height:360px;border-radius:9px;object-fit:contain;background:#fff}.image-placeholder{display:grid;place-items:center;min-width:130px;height:70px;border-radius:9px;background:#eef1f9;color:#9da9bc;font-size:11px}.markdown-body{font-size:14px;line-height:1.85;overflow-wrap:anywhere}.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3{line-height:1.5;color:#263451;margin:1.35em 0 .55em}.markdown-body h1{font-size:1.32em}.markdown-body h2{font-size:1.2em}.markdown-body h3{font-size:1.08em}.markdown-body p{margin:.55em 0}.markdown-body ol,.markdown-body ul{padding-left:1.55em;margin:.55em 0}.markdown-body li{margin:.25em 0}.markdown-body code{background:#eaedf6;border-radius:4px;padding:.13em .32em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.91em}.markdown-body pre{background:#222b44;color:#e7edff;padding:15px;border-radius:10px;overflow:auto;line-height:1.65}.markdown-body pre code{background:transparent;padding:0;color:inherit}.markdown-body blockquote{border-left:3px solid #9facf1;margin:1em 0;padding:.1em 0 .1em 1em;color:#72809b}.markdown-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:12px 0;font-size:12px}.markdown-body td,.markdown-body th{border:1px solid #dae1ee;padding:7px 10px;white-space:nowrap}.markdown-body th{background:#eef1f8}.markdown-body a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.markdown-body .katex-display{overflow:auto;padding:5px 0}.sources{margin-top:12px}.sources-title{display:flex;align-items:center;gap:7px;color:#677796;font-size:12px;font-weight:750;margin-bottom:8px}.sources-caution{font-size:11px;line-height:1.5;color:#8996aa;margin:0 0 9px}.source-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px}.source-card{display:block;width:100%;border:1px solid #e7ebf3;border-radius:10px;padding:10px 11px;background:#fff;min-width:0;text-align:left}.source-card-button{color:inherit;transition:border-color .18s,box-shadow .18s,transform .18s}.source-card-button:hover{border-color:#aab8f5;box-shadow:0 5px 17px rgba(81,104,221,.1);transform:translateY(-1px)}.source-card-button:focus-visible{outline:3px solid #96a8ff;outline-offset:2px}.source-top{display:flex;align-items:flex-start;gap:7px;color:#4c5a78;font-size:12px;line-height:1.45}.source-top strong{font-weight:680;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-number{min-width:34px;height:17px;padding:0 4px;flex:none;border-radius:5px;background:#edf0ff;color:var(--blue);display:grid;place-items:center;font-size:9px;font-weight:750}.source-meta{display:flex;gap:8px;margin:5px 0 0 41px;font-size:11px;color:#9ba6bb}.source-excerpt{margin:8px 0 0;color:#8793aa;font-size:12px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.source-open{display:flex;align-items:center;gap:5px;margin-top:9px;color:var(--blue);font-size:11px;font-weight:700}.source-open svg{transform:rotate(45deg)}.source-page-backdrop{position:fixed;inset:0;z-index:200;background:rgba(23,34,67,.62);display:flex;align-items:center;justify-content:center;padding:clamp(10px,2vw,26px)}.source-page-dialog{width:min(980px,100%);height:min(92dvh,900px);min-height:280px;display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:16px;box-shadow:0 24px 76px rgba(12,21,55,.3)}.source-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 20px 13px;border-bottom:1px solid #e9edf5}.source-page-heading{min-width:0}.source-page-heading>span{font-size:10px;font-weight:750;color:var(--blue);letter-spacing:.06em}.source-page-heading h2{font-size:16px;line-height:1.35;margin:4px 0;overflow-wrap:anywhere}.source-page-heading p{font-size:11px;color:#8390a8;margin:0}.source-page-close{width:34px;height:34px;flex:none;display:grid;place-items:center;border:0;border-radius:9px;background:#f0f3fa;color:#6b7891}.source-page-close:hover{background:#e5eaff;color:var(--blue)}.source-page-close:focus-visible,.source-page-state button:focus-visible,.source-page-toolbar button:focus-visible{outline:3px solid #96a8ff;outline-offset:2px}.source-page-toolbar{min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 20px;color:#7785a0;font-size:11px}.source-page-toolbar>div{display:flex;align-items:center;gap:7px}.source-page-toolbar button{width:27px;height:27px;border:1px solid #dfe5f3;border-radius:7px;background:#fff;color:#5264b8;font-size:17px;line-height:1}.source-page-toolbar button:hover:not(:disabled){background:#eef1ff}.source-page-toolbar button:disabled{opacity:.4;cursor:not-allowed}.source-page-toolbar output{min-width:37px;text-align:center;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;font-weight:700;color:#53627f}.source-page-viewport{min-height:0;flex:1 1;display:flex;align-items:flex-start;overflow:auto;background:#edf0f6;padding:14px;scrollbar-width:thin}.source-page-stage{flex:none;display:flex;align-items:center;justify-content:center;margin:auto}.source-page-image{display:block;width:100%;height:100%;object-fit:contain}.source-page-state{margin:auto;display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;text-align:center;color:#687793;font-size:12px;line-height:1.5}.source-page-state button{border:0;border-radius:7px;background:#e6eaff;color:var(--blue-dark);padding:7px 12px;font-weight:700}@media(max-width:600px){.source-page-backdrop{padding:0}.source-page-dialog{height:100dvh;min-height:0;border-radius:0}.source-page-header{padding:13px 15px 11px}.source-page-heading h2{font-size:14px}.source-page-toolbar{padding:6px 15px}.source-page-viewport{padding:10px}}.answer-footer{display:flex;gap:13px;color:#a9b1bf}.answer-footer,.answer-upgrade{align-items:center;font-size:11px;margin-top:10px}.answer-upgrade{display:inline-flex;gap:5px;padding:8px 11px;border:1px solid #dfe5ff;border-radius:8px;background:#f4f6ff;color:#5064bd;font-weight:700}.answer-upgrade:hover{background:#eaf0ff}.feedback-actions{display:flex;gap:3px;margin-left:auto}.feedback-actions button{width:26px;height:25px;border:0;background:transparent;color:#9ca9c0;border-radius:6px;display:grid;place-items:center}.feedback-actions button:hover{background:#edf0ff;color:var(--blue)}.feedback-thanks{margin-left:auto;color:#55aa8e;display:flex;align-items:center;gap:4px}.feedback-form{background:#f8f9fd;border:1px solid #e8ecf3;border-radius:10px;padding:13px;margin-top:9px;display:flex;flex-direction:column;gap:8px}.feedback-form label{font-size:11px;color:#5f6d86;font-weight:700}.feedback-form textarea{resize:vertical;min-height:65px;border:1px solid #dfe5f0;border-radius:7px;padding:9px;outline:0;font-size:12px;background:white}.feedback-form>div{display:flex;justify-content:flex-end;gap:7px}.feedback-form button{border:0;padding:7px 11px;border-radius:7px;background:#edf0f6;color:#72809b;font-size:11px}.feedback-form button.feedback-send{background:var(--blue);color:white}.feedback-form button:disabled{opacity:.5}.thinking-bubble{display:flex;align-items:center;gap:5px;background:#f6f7fc;color:#8b98b0;padding:15px 17px;border-radius:4px 14px 14px 14px;font-size:11px}.thinking-bubble span{width:5px;height:5px;background:#96a5dd;border-radius:50%;animation:pulse 1.2s infinite alternate}.thinking-bubble span:nth-child(2){animation-delay:.2s}.thinking-bubble span:nth-child(3){animation-delay:.4s;margin-right:6px}@keyframes pulse{to{opacity:.25;transform:translateY(-3px)}}.composer-region{flex:none;background:linear-gradient(rgba(255,255,255,.9),#fff 20%);padding:11px 25px max(13px,env(safe-area-inset-bottom));border-top:1px solid #f0f1f7}.composer-error{max-width:830px;margin:0 auto 9px}.composer,.composer-controls,.composer-note{max-width:830px;margin-left:auto;margin-right:auto}.composer-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.mode-explainer{max-width:830px;margin:-5px auto 8px;color:#8794aa;font-size:11px;line-height:1.4}.style-picker-wrap{position:relative;min-width:0}.style-trigger{display:flex;align-items:center;gap:7px;min-height:33px;max-width:260px;padding:3px 8px 3px 4px;background:white;border:1px solid #e4e9f2;border-radius:9px;color:#465478;font-size:11px;font-weight:700}.style-trigger>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.style-trigger-icon{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;background:#edf0ff;color:#5c6ee0;flex:none}.style-suffix{color:#9ba7ba;font-size:10px;font-weight:500;white-space:nowrap}.style-trigger svg:last-child{color:#a7b0c1;flex:none}.picker-backdrop{position:fixed;inset:0;border:0;background:transparent;z-index:10;cursor:default}.style-menu{position:absolute;z-index:11;left:0;bottom:41px;width:280px;max-height:min(400px,55vh);background:#fff;border:1px solid #e2e7f1;border-radius:13px;box-shadow:0 18px 50px rgba(37,48,102,.16);padding:12px}.style-menu,.style-menu-header{display:flex;flex-direction:column}.style-menu-header{gap:4px;padding:3px 4px 10px}.style-menu-header strong{font-size:12px}.style-menu-header span{color:#a0aabc;font-size:10px}.style-menu input{height:35px;border:1px solid #e1e6ef;border-radius:8px;padding:0 10px;outline:0;font-size:11px}.style-options{overflow:auto;padding-top:7px;scrollbar-width:thin}.style-options button{width:100%;border:0;background:transparent;border-radius:7px;display:flex;justify-content:space-between;align-items:center;padding:9px 10px;text-align:left;color:#56647e;font-size:11px}.style-options button.chosen,.style-options button:hover{background:#edf0ff;color:var(--blue-dark)}.style-option-name{display:inline-flex;align-items:center;gap:7px;min-width:0}.style-featured-star{color:#e8ad37;flex:none}.style-option-tag{color:#8290a8;background:#f3f5f9;border-radius:5px;padding:2px 6px;font-size:10px;white-space:nowrap;font-weight:500}.style-options button.chosen .style-option-tag{background:#e2e8ff;color:#5266be}.no-styles{padding:20px;text-align:center;color:#a0aabc;font-size:11px}.mode-switch{background:#f1f3f9;border-radius:8px;padding:3px;display:flex;flex:none}.mode-switch button{border:0;border-radius:6px;background:transparent;color:#9ba5b8;padding:7px 10px;font-size:11px;font-weight:650;white-space:nowrap}.mode-switch button.active{background:#fff;color:#5266cd;box-shadow:0 1px 5px rgba(41,54,106,.08)}.composer{border:1px solid #dce2ee;border-radius:15px;background:#fff;box-shadow:0 9px 30px rgba(45,59,123,.06);overflow:hidden}.composer:focus-within{border-color:#a6b4ef;box-shadow:0 9px 32px rgba(67,87,184,.1)}.composer textarea{width:100%;min-height:61px;max-height:180px;resize:vertical;display:block;border:0;padding:15px 17px 5px;outline:0;color:#35415a;font-size:14px;line-height:1.65;background:transparent}.composer textarea:focus{box-shadow:none}.composer-bottom{padding:5px 11px 10px 12px;display:flex;align-items:center;justify-content:space-between}.composer-tools{display:flex;align-items:center;gap:13px}.composer-tools button{border:0;background:transparent;display:flex;align-items:center;gap:7px;color:#8796b0;padding:5px;font-size:11px}.composer-tools button:hover{color:var(--blue)}.composer-tools .camera-button{display:none}.composer-shortcut{font-size:10px;color:#b9c1d0}.send-button{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:9px;background:var(--blue);color:white}.send-button:hover:not(:disabled){background:var(--blue-dark)}.send-button:disabled{background:#d7dded}.attachment{display:flex;align-items:center;gap:9px;margin:10px 12px 0;padding:6px 8px;width:min(280px,calc(100% - 24px));border-radius:9px;background:#f3f5fb}.attachments{display:flex;flex-wrap:wrap;gap:0 2px;max-height:126px;overflow-y:auto}.attachment img{width:42px;height:42px;object-fit:cover;border-radius:6px}.attachment div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1}.attachment strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.attachment span{color:#97a3b9;font-size:9px}.attachment button{border:0;background:transparent;color:#9ba6ba;padding:4px}@media(max-width:700px){.composer-tools .camera-button{display:flex}.composer-tools{gap:7px}.attachments{max-height:116px}.attachment{width:min(210px,calc(100% - 24px))}}.composer-note{margin-top:8px;margin-bottom:0;text-align:center;font-size:10px;color:#b1baca;line-height:1.5}.sidebar-scrim{display:none}@media(max-width:900px){.auth-layout{padding:22px}.auth-story{padding:34px;min-height:590px}.auth-panel{padding:24px}.sidebar{width:225px}.welcome{padding-top:60px}}@media(max-width:700px){.auth-layout{display:block;padding:0}.auth-story{display:none}.auth-panel{border-radius:0;min-height:100dvh;box-shadow:none;padding:28px 24px}.auth-card{max-width:410px}.mobile-brand{display:flex;margin-bottom:60px}.sidebar{position:fixed;left:0;top:0;bottom:0;z-index:20;width:min(290px,84vw);transform:translateX(-101%);transition:transform .25s ease;box-shadow:16px 0 40px rgba(34,44,90,.08)}.sidebar-open{transform:translateX(0)}.sidebar-scrim{position:fixed;inset:0;z-index:19;display:block;border:0;background:rgba(25,34,61,.35)}.menu-toggle,.sidebar-close{display:grid}.sidebar-top{display:flex;align-items:center;justify-content:space-between}.topbar{height:58px;padding:0 16px}.topbar-eyebrow{display:none}.topbar-title strong{max-width:58vw}.welcome{padding:48px 20px 25px}.welcome p br{display:none}.suggestions{margin-top:32px}.composer-region{padding:9px 13px max(8px,env(safe-area-inset-bottom))}.composer-note{font-size:9px}.message-stack{padding:22px 15px}.sidebar-top{gap:5px}.sidebar-brand-row{flex:1 1;flex-wrap:wrap;gap:5px}.sidebar .brand{font-size:13px}.sidebar-subject-switch{font-size:9px;padding:4px 5px}.sidebar-close{flex:none}.conversation-delete{opacity:1}}@media(max-width:500px){.suggestions{grid-template-columns:1fr;gap:8px}.suggestions button{min-height:70px;padding:12px 14px;gap:4px}.suggestions button strong{font-size:14px}.suggestions button svg{bottom:16px}.welcome-icon{width:56px;height:56px;border-radius:18px;margin-bottom:18px}.welcome h1{font-size:27px}.welcome p{font-size:13px}.message{gap:8px}.message-avatar{width:27px;height:27px;border-radius:9px}.message-bubble{padding:12px 14px}.markdown-body{font-size:14px}.source-list{grid-template-columns:1fr}.mode-switch button{padding:6px 7px;font-size:10px}.style-trigger{max-width:180px}.composer-shortcut,.style-suffix{display:none}.composer-controls{gap:5px}.composer textarea{min-height:52px;padding:11px 12px 3px}.composer-bottom{padding:4px 8px 7px}.composer-note{white-space:normal;padding:0 4px}.ai-label{font-size:10px}}.admin-page{min-height:100dvh;background:#f6f8fc}.admin-header{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1120px)/2));gap:18px}.admin-header .brand{font-size:15px}.admin-nav{display:flex;align-items:center;gap:16px}.admin-nav a,.admin-nav button{border:0;background:transparent;color:#73819b;font-size:12px;font-weight:650}.admin-nav a:hover,.admin-nav button:hover{color:var(--blue)}.admin-content{max-width:1120px;margin:auto;padding:35px 24px 70px}.admin-title{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:25px}.admin-title h1{font-size:28px;letter-spacing:-.04em;margin:0 0 7px}.admin-title p{margin:0;color:#8a97ad;font-size:12px;line-height:1.6}.admin-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:18px}.admin-card{background:#fff;border:1px solid #e8ecf3;border-radius:15px;box-shadow:0 5px 22px rgba(41,56,107,.025);padding:20px;min-width:0}.admin-card h2{font-size:15px;margin:0 0 5px}.admin-card-subtitle{color:#9aa5b7;font-size:11px;margin:0 0 18px;line-height:1.6}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.stat-card{border:1px solid #e6ebf5;border-radius:13px;background:#fff;padding:17px 18px}.stat-card span{display:block;color:#9aa6bb;font-size:11px;margin-bottom:10px}.stat-card strong{font-size:26px;letter-spacing:-.04em;color:#2e3d68}.usage-trend{margin-bottom:18px}.usage-bars{height:145px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:14px;margin-top:17px}.usage-day{min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px}.usage-day strong{font-size:10px;color:#69789b;font-weight:650}.usage-day>div{width:min(100%,52px);height:95px;display:flex;align-items:flex-end;justify-content:center;background:#f6f7fb;border-radius:6px;overflow:hidden}.usage-day>div span{display:block;width:100%;background:linear-gradient(#9aabff,#5b70df);border-radius:6px 6px 0 0}.usage-day small{font-size:9px;color:#a2aec0}.admin-field{display:flex;flex-direction:column;gap:13px}.admin-field input,.admin-field select{height:41px}.admin-field input[type=file]{height:auto;padding:9px 10px;font-size:11px}.admin-upload-modes{display:flex;gap:6px;padding:4px;margin:0 0 15px;background:#f3f5fb;border-radius:9px}.admin-upload-modes button{flex:1 1;border:0;border-radius:7px;background:transparent;color:#7685a1;padding:8px;font-size:11px;font-weight:700;cursor:pointer}.admin-upload-modes button.active{background:#fff;color:#4d62c6;box-shadow:0 1px 5px #334a8a1a}.admin-upload-modes button:disabled{cursor:default;opacity:.7}.admin-upload-hint{margin:-4px 0 0;color:#8a97ad;font-size:11px;line-height:1.5}.admin-batch-list{max-height:230px;overflow:auto;border:1px solid #e6ebf5;border-radius:9px}.admin-batch-heading,.admin-batch-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px}.admin-batch-heading{background:#f8f9fd;color:#5c6b88;font-size:10px}.admin-batch-heading button,.admin-batch-remove{border:0;background:transparent;color:#6378ce;font-size:10px;cursor:pointer;padding:0}.admin-batch-heading button:disabled,.admin-batch-remove:disabled{opacity:.5;cursor:default}.admin-batch-item{border-top:1px solid #eef1f6;font-size:11px}.admin-batch-item>div{min-width:0;flex:1 1}.admin-batch-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#42516d;font-weight:650}.admin-batch-item small{display:block;margin-top:3px;color:#99a5b7;line-height:1.4;overflow-wrap:anywhere}.admin-batch-status{flex:none;color:#8190aa;font-size:10px}.admin-batch-status.uploading{color:#5269d0}.admin-batch-status.success{color:#309875}.admin-batch-status.duplicate{color:#9b8050}.admin-batch-item:has(.admin-batch-status.error) small,.admin-batch-status.error{color:#c56761}.admin-batch-remove{flex:none;color:#8c99ad}.admin-submit{min-height:39px;padding:0 14px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;align-self:flex-start}.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;font-size:11px;min-width:480px}.admin-table th{color:#99a5b7;font-weight:700;text-align:left;border-bottom:1px solid #e9edf4;padding:10px 8px}.admin-table td{border-bottom:1px solid #f0f2f7;padding:12px 8px;color:#63728f;vertical-align:top}.admin-table td:first-child{color:#34435f;font-weight:650}.admin-table button{color:#c36160;border:0;background:transparent;font-size:11px;padding:3px}.admin-filename{color:#a1abbd;font-weight:400;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-filename,.admin-skip{font-size:10px;margin-top:4px}.admin-skip{color:#c17a4a}.admin-actions{display:flex;align-items:center;gap:9px}.admin-actions button:first-child{color:var(--blue)}.empty-admin{text-align:center;color:#a4afc0;font-size:11px;padding:25px}.admin-student-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;text-decoration:none;color:var(--ink);transition:border-color .2s,transform .2s}.admin-student-entry:hover{border-color:var(--blue);transform:translateY(-1px)}.admin-student-entry p{margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.7}.admin-student-entry>span{font-size:13px;font-weight:700;color:var(--blue);flex-shrink:0}.admin-student-content .admin-title{display:flex;align-items:center;justify-content:space-between;gap:14px}.admin-student-content .admin-nav svg{vertical-align:-2px}.admin-student-content .admin-title>.admin-secondary-button,.admin-student-page .admin-nav a,.admin-student-page .admin-nav button{white-space:nowrap;flex-shrink:0}.admin-student-page .admin-nav svg{vertical-align:-2px}.admin-student-content .admin-notice{display:flex;align-items:center;justify-content:space-between}.admin-student-content .admin-notice>button{border:0;background:transparent;color:inherit;padding:4px}.admin-secondary-button,.student-pagination button{border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);padding:9px 13px;font-size:13px;font-weight:650;min-height:38px;cursor:pointer}.admin-secondary-button:hover,.student-pagination button:hover:not(:disabled){border-color:var(--blue);color:var(--blue)}.admin-secondary-button:disabled,.student-pagination button:disabled{opacity:.5;cursor:default}.admin-student-list{margin-bottom:20px}.admin-student-content .admin-section-heading{align-items:center;flex-wrap:wrap;gap:16px}.student-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.student-filters select{background:var(--paper);color:var(--ink);min-height:38px;padding:6px 10px;font-size:13px}.student-filters select,.student-search{border:1px solid var(--line);border-radius:8px}.student-search{display:flex;align-items:center;gap:8px;padding:0 10px;color:var(--muted)}.student-search input{width:170px;min-width:0;border:0;background:transparent;color:var(--ink);font-size:14px;min-height:38px;padding:6px 0;outline:none}.student-search:focus-within{border-color:var(--blue)}.student-accounts-table{min-width:720px;font-size:13px}.student-accounts-table td{vertical-align:middle}.student-accounts-table tr.student-selected{background:var(--student-selection,#f1f3ff)}.student-accounts-table .student-name-button{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:750;color:var(--ink);padding:5px 0}.student-accounts-table .student-name-button:hover{color:var(--blue)}.student-registered{display:block;font-size:11px;color:var(--muted);margin-top:5px;font-weight:400}.student-status{display:inline-block;border-radius:6px;padding:4px 7px;font-size:12px;font-weight:650}.student-status.active{background:#e5f5ed;color:#247557}.student-status.inactive{background:#fce9e7;color:#ad5149}.student-account-actions{display:flex;align-items:center;gap:9px;white-space:nowrap}.student-accounts-table .student-account-actions button{font-size:12px;min-height:36px}.student-accounts-table .student-account-actions button:first-child{color:var(--blue);font-weight:700}.student-account-actions button:disabled{opacity:.5;cursor:default}.student-pagination{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:16px}.student-pagination>span{margin-right:auto;font-size:12px;color:var(--muted)}.admin-loading{font-size:13px;color:var(--muted);text-align:center;padding:16px}.student-detail{scroll-margin-top:20px}.student-detail .admin-card-subtitle{margin-bottom:0;font-size:12px}.student-detail-empty{display:grid;justify-items:center;gap:8px;color:var(--muted);padding:60px 15px;font-size:14px}.student-history-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:22px;margin-top:20px;align-items:start}.student-conversations{display:flex;flex-direction:column;gap:9px;max-height:calc(100vh - 160px);overflow-y:auto;overscroll-behavior:contain;padding-right:4px;position:sticky;top:20px}.student-conversation{display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);padding:12px;cursor:pointer}.student-conversation:hover{border-color:var(--blue)}.student-conversation.selected{border-color:var(--blue);background:var(--student-selection,#f1f3ff);box-shadow:inset 3px 0 var(--blue)}.student-conversation-meta{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--blue);font-weight:700}.student-conversation strong{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.student-conversation small,.student-conversation time{font-size:11px;color:var(--muted)}.student-removed-tag{padding:2px 5px;border-radius:4px;color:#956323;background:#fff0d6;font-weight:600}.student-conversation-detail{min-width:0}.student-conversation-heading{padding:0 0 16px;border-bottom:1px solid var(--line);margin-bottom:18px}.student-conversation-heading h3{font-size:17px;line-height:1.6;overflow-wrap:anywhere;margin:0 0 6px}.student-conversation-heading p{font-size:12px;color:var(--muted);line-height:1.7;margin:0}.student-record-message{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-bottom:15px;overflow-wrap:anywhere}.student-record-message.user{background:var(--student-question-bg,#f6f7fc)}.student-record-message>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}.student-record-message>header strong{font-size:13px}.student-record-message>header span{font-size:11px;color:var(--muted)}.student-record-message .markdown-body{font-size:14px;line-height:1.85}.student-record-message .sources{margin-top:18px}.student-record-message .source-card{width:100%}.student-record-message .sources-title{font-size:12px}.student-load-more{width:100%;margin:0 0 14px}.admin-question-image{display:inline-flex;flex-direction:column;align-items:flex-start;gap:7px;margin:10px 10px 0 0;border:0;background:transparent;color:var(--blue);padding:0;cursor:zoom-in;max-width:100%}.admin-question-image>span:last-child{font-size:11px}.admin-question-image-dialog{width:min(1050px,100%);max-height:92vh;background:var(--paper);color:var(--ink);border-radius:15px;overflow:hidden;box-shadow:0 20px 70px rgba(12,20,43,.28)}.admin-question-image-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}.admin-question-image-dialog h2{margin:0;font-size:16px}.admin-question-image-dialog header>div{display:flex;align-items:center;gap:12px}.admin-question-image-dialog button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:7px;padding:7px;cursor:pointer;font-size:13px}.admin-question-image-body{overflow:auto;max-height:calc(92vh - 70px);padding:16px;text-align:center}.admin-question-image-body img{max-width:100%;max-height:calc(85vh - 90px);object-fit:contain}.admin-question-image-body img.original-size{max-width:none;max-height:none}.admin-question-image-body p{font-size:14px;color:var(--muted)}[data-theme=dark]{--student-selection:#293753;--student-question-bg:#233047}[data-theme=dark] .student-status.active{background:#203e35;color:#8ed9b5}[data-theme=dark] .student-status.inactive{background:#49302f;color:#f4aaa4}[data-theme=dark] .student-removed-tag{background:#493c26;color:#ebc98f}@media(max-width:800px){.admin-student-content .table-scroll-hint{display:block;font-size:12px;color:var(--muted)}.student-history-layout{grid-template-columns:1fr}.student-conversations{position:static;max-height:270px}.student-conversation-detail{border-top:1px solid var(--line);padding-top:18px}.admin-student-entry{align-items:flex-start;flex-direction:column;gap:10px}.student-filters select,.student-search input{font-size:16px}.student-record-message{padding:14px}.student-filters{width:100%}.student-search{flex:1 1;min-width:140px}.student-search input{width:100%}.admin-student-content .admin-title{align-items:flex-start}.admin-question-image-dialog>header{padding:12px}.admin-question-image-dialog h2{font-size:14px}}.invite-codes{display:flex;flex-direction:column;gap:7px;margin-top:15px;max-height:190px;overflow:auto}.invite-codes code{background:#f2f4fa;border-radius:6px;padding:8px 10px;color:#4459bc;font-size:11px;-webkit-user-select:all;user-select:all}.admin-feedback-list{display:flex;flex-direction:column;gap:9px}.admin-feedback-item{border:1px solid #ecf0f6;border-radius:10px;padding:11px 12px}.admin-feedback-item>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.admin-feedback-item strong{font-size:11px}.admin-feedback-item span{font-size:10px;color:#a1acbd}.admin-feedback-item p{color:#65748e;font-size:11px;line-height:1.6;margin:7px 0 0;white-space:pre-wrap}.rating-good{color:#42a787}.rating-bad{color:#cc6c64}.admin-feedback-item blockquote{color:#96a1b3;font-size:10px;line-height:1.6;border-left:2px solid #d7dff1;margin:8px 0 0;padding-left:8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.admin-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-section-heading label{display:flex;align-items:center;gap:7px;color:#8290a8;font-size:11px;white-space:nowrap}.admin-feedback-filters select,.admin-section-heading select{border:1px solid #e2e7f0;border-radius:7px;background:#fff;color:#5e6d87;padding:7px 9px;font-size:11px}.admin-students{margin-bottom:18px}.student-inactive td{background:#fff8ef}.student-inactive td:last-child{color:#b56d30;font-weight:700}.admin-feedback-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.admin-export,.admin-review-button{border:1px solid #dce4f8;border-radius:7px;background:#f5f7ff;color:#5366be;padding:7px 10px;font-size:11px;font-weight:700}.admin-review-button{margin-top:10px}.admin-feedback-item small{display:block;margin-top:7px;color:#929fb1;font-size:10px}.admin-review-backdrop{position:fixed;inset:0;z-index:100;background:rgba(25,34,63,.45);display:flex;align-items:center;justify-content:center;padding:16px}.admin-review-dialog{width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:15px;padding:24px;box-shadow:0 20px 70px #19223f44}.admin-review-dialog h2{margin:0 0 8px}.admin-review-dialog p{color:#71809a;font-size:12px;line-height:1.5}.admin-review-dialog label{display:flex;flex-direction:column;gap:6px;margin:12px 0;color:#51617d;font-size:11px;font-weight:700}.admin-review-dialog select,.admin-review-dialog textarea{width:100%;border:1px solid #dfe5ef;border-radius:8px;padding:10px;color:#303f5d;font:inherit;line-height:1.5}.admin-review-dialog>div:last-child{display:flex;justify-content:flex-end;gap:10px}.admin-review-dialog>div:last-child button{border-radius:8px;padding:9px 14px}.admin-student-actions{white-space:nowrap}.admin-student-actions button,.admin-temp-password button{border:1px solid #dce4f8;border-radius:7px;background:#f5f7ff;color:#5366be;padding:7px 9px;margin-right:5px;cursor:pointer}.admin-student-actions button:disabled{opacity:.5;cursor:wait}.admin-temp-password{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;margin:12px 0;background:#f5f7ff;border:1px solid #dce4f8;border-radius:9px}.admin-temp-password code{font-size:15px;font-weight:700;-webkit-user-select:all;user-select:all}.admin-temp-password span{font-size:12px;color:#5e6d87}.password-change-screen .auth-card{width:min(440px,calc(100vw - 32px));padding:28px;text-align:left}.password-change-screen .auth-card h1{font-size:24px}.password-change-screen .auth-card p{font-size:13px;line-height:1.6}.password-change-screen .auth-form>button:last-child{background:none;border:0;color:#5e6d87;cursor:pointer}.composer-note,.composer-shortcut,.invite-usage-note,.sidebar-hint{font-size:12px;color:#586782}.source-number{font-size:12px;min-width:44px;height:22px}.invite-lookup small,.invite-usage-item small{font-size:12px;color:#586782}@media(max-width:700px){.admin-field input,.admin-field select,.auth-form input,.composer textarea,.feedback-form textarea,.invite-lookup input,.style-menu input,input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}.composer-note{font-size:12px}}.stop-generation{margin-left:12px;border:1px solid #cbd4e7;border-radius:7px;background:#fff;color:#536580;padding:5px 9px;font-size:12px;cursor:pointer}.model-alerts{margin-top:16px}.model-alerts-warning{border-color:#e8be8d;background:#fff9f1}.model-alerts>strong{display:block;margin:12px 0;color:#445273}.model-alerts ul,.model-alerts>p{font-size:12px;color:#586782}.model-alerts ul{margin:8px 0;padding-left:20px}.model-usage-days{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.model-usage-days span{padding:6px 8px;border-radius:6px;background:#f2f5fa;font-size:11px;color:#536580}.message-image-holder{display:block;max-width:100%;background:#eef1f9;border-radius:9px;overflow:hidden}.message-image-holder img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}.message-image-holder .image-placeholder{width:100%;height:100%;min-width:0;display:grid;place-items:center}.skip-link{position:fixed;left:12px;top:-60px;z-index:1000;background:#24395f;color:#fff;padding:10px 14px;border-radius:8px}.skip-link:focus{top:12px}.track-setup{gap:12px}.track-setup label{display:flex;align-items:center;gap:8px}.track-setup select{border:1px solid #dfe5ef;border-radius:8px;padding:8px 12px;background:#fff}.answer-footer>button{width:26px;height:25px;border:0;background:transparent;color:#7586a3;border-radius:6px;display:grid;place-items:center;cursor:pointer}.answer-footer>button:hover{background:#edf0ff;color:var(--blue)}.answer-footer>button:disabled{opacity:.45;cursor:default}.answer-footer{color:#586782;font-size:12px}.show-all-styles{display:block;width:100%;padding:10px;border:0;border-top:1px solid #e6ebf3;background:#fff;color:#4e64b5;font-size:12px;cursor:pointer}.load-more-conversations,.load-older-messages{display:block;width:100%;border:1px solid #dce4f8;border-radius:8px;background:#f5f7ff;color:#5366be;padding:9px 12px;font-size:12px;cursor:pointer}.load-older-messages{max-width:240px;margin:0 auto 22px}.load-more-conversations:disabled,.load-older-messages:disabled{opacity:.6;cursor:wait}.admin-notice{background:#edf1ff;border:1px solid #dfe6ff;color:#5365b9;border-radius:9px;padding:10px 12px;font-size:11px;line-height:1.6;margin:0 0 16px}.admin-alert{margin-bottom:16px}.admin-category-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:4px;margin:0 0 13px;background:#f3f5fb;border-radius:9px}.admin-category-tabs button{border:0;border-radius:7px;background:transparent;color:#74829c;padding:9px 4px;font-size:11px;font-weight:700;cursor:pointer}.admin-category-tabs button.active{background:#fff;color:#4d62c6;box-shadow:0 1px 5px #334a8a1a}.admin-category-tabs span{margin-left:4px;font-size:10px;opacity:.65}.admin-material-folders{display:flex;flex-direction:column;gap:8px}.admin-material-folder{border:1px solid #e5eaf3;border-radius:10px;overflow:hidden}.admin-material-folder-trigger{width:100%;display:flex;align-items:center;gap:9px;border:0;background:#f8f9fd;padding:11px 12px;color:#485a7d;text-align:left;cursor:pointer;font-size:12px;font-weight:700}.admin-material-folder-trigger:hover,.admin-material-folder-trigger[aria-expanded=true]{background:#f1f4fc}.admin-material-folder-trigger>span{flex:1 1}.admin-material-folder-trigger small{font-size:10px;color:#8290a9;font-weight:600}.admin-material-folder-trigger>svg:first-child{color:#687bd0}.admin-material-folder-trigger>svg:last-child{color:#8b99af;transition:transform .15s}.admin-material-folder-trigger>svg.open{transform:rotate(180deg)}.admin-material-folder-content{border-top:1px solid #e9edf5}.admin-folder-table{max-height:420px}.admin-folder-table .admin-table th{position:sticky;top:0;background:#fff;z-index:1}.invite-usage{margin-top:20px;padding-top:17px;border-top:1px solid #ebeff6}.invite-usage h3{font-size:12px;color:#3c4b68;margin:0 0 10px}.invite-usage-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.invite-usage-stats span{background:#f6f8fd;border-radius:7px;padding:8px 5px;text-align:center;color:#8795aa;font-size:10px;white-space:nowrap}.invite-usage-stats strong{color:#4c5fb5;font-size:13px}.invite-usage-filters{display:flex;gap:5px;margin:12px 0 8px}.invite-usage-filters button{border:1px solid #e3e8f2;background:#fff;color:#7887a1;border-radius:6px;padding:6px 10px;font-size:10px;cursor:pointer}.invite-usage-filters button.active{background:#edf1ff;border-color:#cfd8f8;color:#4c61bd}.invite-usage-list{max-height:285px;overflow:auto;border:1px solid #e8ecf3;border-radius:8px}.invite-usage-item{padding:9px 10px;border-bottom:1px solid #eef1f6}.invite-usage-item:last-child{border-bottom:0}.invite-usage-item>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.invite-usage-item code{font-size:11px;color:#485b83;overflow-wrap:anywhere}.invite-usage-item span{font-size:10px;white-space:nowrap}.invite-usage-item span.used{color:#6c7a93}.invite-usage-item span.unused{color:#318d70}.invite-usage-item small{display:block;color:#9aa6b8;font-size:10px;margin-top:4px}.invite-usage-note{font-size:10px;line-height:1.5;color:#9ba7b8;margin:9px 0 0}.invite-usage-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.invite-usage-heading button{border:0;background:transparent;color:#5269c5;font-size:10px;cursor:pointer;padding:0 0 10px}.invite-usage-heading button:disabled{opacity:.5;cursor:default}.invite-lookup{margin-top:12px}.invite-lookup label{display:block;font-size:10px;font-weight:700;color:#64738e;margin-bottom:6px}.invite-lookup>div{display:flex;gap:6px}.invite-lookup input{min-width:0;flex:1 1;border:1px solid #e2e7f0;border-radius:7px;padding:8px 9px;color:#41516f;font-size:11px}.invite-lookup button{border:0;border-radius:7px;background:#edf1ff;color:#4c61bd;padding:0 11px;font-size:10px;font-weight:700;cursor:pointer}.invite-lookup button:disabled{opacity:.5;cursor:default}.invite-lookup small{display:block;margin-top:7px;color:#5e6e89;font-size:10px}.subject-home{min-height:100dvh;background:linear-gradient(160deg,#f5f7ff,#fff 60%,#f3fbff)}.subject-home-header{height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1160px;margin:auto;padding:0 24px}.subject-home-header>div:last-child{display:flex;align-items:center;gap:16px;color:#697993;font-size:12px}.subject-home-header a,.subject-home-header button{color:#5268c5;font-weight:700}.subject-home-header button{display:flex;align-items:center;gap:5px;border:0;background:transparent;cursor:pointer}.subject-home-main{max-width:1060px;margin:auto;padding:36px 24px 70px}.subject-home-intro{text-align:center;position:relative;margin-bottom:30px}.subject-home-intro span{color:#6479d7;font-weight:750;font-size:12px;letter-spacing:.08em}.subject-home-intro h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em;margin:9px 0}.subject-home-intro p{color:#7c8aa3;font-size:14px;line-height:1.7;margin:0}.subject-home-mascot{height:90px;width:auto;object-fit:contain;margin:auto auto 6px}.subject-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.subject-card{position:relative;min-height:205px;padding:22px 20px;border:1px solid #e6eaf4;border-radius:18px;background:#fff;box-shadow:0 12px 34px #2537690b;color:#26365c;transition:transform .2s,box-shadow .2s}.subject-card:hover{transform:translateY(-3px);box-shadow:0 16px 40px #25376918}.subject-card-kicker{display:block;color:#7488cc;font-size:11px;font-weight:700;margin-bottom:17px}.subject-card strong{display:block;font-size:27px;margin-bottom:6px}.subject-card p{font-size:12px;line-height:1.6;color:#7c8ba3;min-height:39px}.subject-card small{font-size:11px;color:#9da9ba}.subject-card>svg{position:absolute;right:18px;bottom:19px;color:#6176d5;transform:rotate(45deg)}.subject-card-math{background:linear-gradient(150deg,#fff,#f5f8ff)}.subject-card-english{background:linear-gradient(150deg,#fff,#f8f7ff)}.subject-card-politics{background:linear-gradient(150deg,#fff,#fff8f5)}.subject-profile{margin-top:22px;padding:20px;border:1px solid #e7ebf3;border-radius:16px;background:#fff;display:flex;align-items:end;gap:14px;flex-wrap:wrap}.subject-profile>div{flex:1 1;min-width:220px}.subject-profile h2{font-size:16px;margin:0 0 5px}.subject-profile p{font-size:11px;color:#8a98ad;line-height:1.6;margin:0}.subject-profile label{display:flex;flex-direction:column;gap:6px;color:#61708d;font-size:11px;font-weight:700}.subject-profile select{height:38px;min-width:105px;border:1px solid #dde4f0;border-radius:8px;background:#fff;padding:0 8px;color:#3c4c69}.subject-profile>button{height:38px;border:0;border-radius:8px;background:#5b6fd0;color:white;padding:0 15px;font-size:11px;font-weight:700;cursor:pointer}.subject-profile-error{width:100%;color:#c45e59!important}.topbar-eyebrow a{color:#6478cc;text-decoration:underline;text-underline-offset:2px}.subject-card-locked{opacity:.65;cursor:default}.subject-card-locked:hover{transform:none;box-shadow:0 12px 34px #2537690b}@media(max-width:850px){.subject-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.subject-home-header{padding:0 17px}.subject-home-header .brand span{font-size:13px}.subject-home-header>div:last-child>span{display:none}.subject-home-main{padding:24px 17px 50px}.subject-cards{gap:10px}.subject-card{min-height:180px;padding:18px 15px}.subject-card strong{font-size:23px}.subject-card p{font-size:11px}.subject-profile{align-items:stretch}.subject-profile>div{min-width:100%}.subject-profile label{flex:1 1}}@media(max-width:800px){.admin-grid{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-header{padding:0 20px}.admin-content{padding:24px 17px 60px}}@media(max-width:480px){.admin-nav{gap:9px}.admin-header .brand span{display:none}.admin-title h1{font-size:23px}.admin-card{padding:16px}.stat-card{padding:14px}.stat-card strong{font-size:23px}}.mascot-art{display:block;position:relative;pointer-events:none}.mascot-art img{object-fit:contain}.mascot-art .mascot-still{display:none}.mascot-guide .mascot-motion{animation:mascot-guide-sway 1.24s ease-in-out infinite}.mascot-thinking .mascot-motion{animation:mascot-writing-nod 1.24s ease-in-out infinite}@keyframes mascot-guide-sway{0%,to{transform:rotate(-2deg) translateX(-2px)}50%{transform:rotate(2deg) translateX(2px)}}@keyframes mascot-writing-nod{0%,to{transform:translateY(0)}50%{transform:translateY(2px)}}@media(prefers-reduced-motion:reduce){.mascot-art .mascot-motion{display:none;animation:none}.mascot-art .mascot-still{display:block}}.auth-story{justify-content:flex-start}.story-content{z-index:2;margin-top:68px}.story-points{max-width:280px}.story-footer{margin-top:auto;z-index:2}.story-mascot{position:absolute;z-index:1;width:235px;height:260px;right:8px;bottom:30px;filter:drop-shadow(0 18px 24px rgba(7,15,65,.18))}.auth-mobile-mascot,.topbar-brand-logo{display:none}.welcome-mascot{width:118px;height:118px;margin:0 auto 16px;border-radius:35px;background:radial-gradient(circle at 50% 60%,#e8edff 0,#f6f7ff 69%,transparent 71%);filter:drop-shadow(0 12px 16px rgba(76,96,197,.11))}.welcome-mascot img{padding:5px}.thinking-mascot{width:72px;height:72px;flex:none;margin-top:-11px}.welcome{padding-top:clamp(24px,4vh,50px)}.welcome-mascot{width:104px;height:104px;margin-bottom:10px}.suggestions{margin-top:24px}@media(min-width:1150px){.suggestions{grid-template-columns:repeat(4,minmax(0,1fr))}.suggestions button{min-height:114px;padding:13px 13px 18px;gap:6px}.suggestions button strong{font-size:12px;line-height:1.5;padding-right:0}.suggestions button svg{right:11px;bottom:9px}}@media(max-width:900px){.story-mascot{display:none}.auth-heading{position:relative;padding-right:102px;min-height:94px}.auth-mobile-mascot{display:block;position:absolute;width:100px;height:100px;right:0;top:-17px}}@media(max-width:700px){.topbar-brand-logo{display:block;width:29px;height:29px;border-radius:50%;background:#fff;flex:none;border:1px solid #e4e8f2}.welcome{padding-top:20px}.welcome-mascot{width:82px;height:82px;margin-bottom:8px;border-radius:26px}.suggestions{margin-top:18px}.suggestions button{min-height:82px}.thinking-mascot{width:60px;height:60px}}@media(max-width:500px){.auth-heading{padding-right:100px}.auth-mobile-mascot{width:96px;height:96px;top:-13px}.welcome-mascot{width:76px;height:76px;margin-bottom:7px}.thinking-mascot{width:52px;height:52px;margin-top:-6px}}.theme-toggle{display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);box-shadow:0 5px 20px rgba(19,31,64,.16);font-size:12px;font-weight:700}.theme-toggle:focus-visible{outline:3px solid var(--blue);outline-offset:2px}@media(max-width:700px){.theme-toggle{padding:8px}.theme-toggle span{display:none}}:root[data-theme=dark]{color-scheme:dark;--ink:#e8edf8;--muted:#aebbd0;--line:#34435b;--paper:#1c2637;--canvas:#111a29;--blue:#a5b5ff;--blue-dark:#c0cbff;--blue-pale:#283657;--shadow:0 18px 48px rgba(0,0,0,.3)}[data-theme=dark] body{background:var(--canvas);color:var(--ink)}[data-theme=dark] .auth-page{background:#101827}[data-theme=dark] .admin-card,[data-theme=dark] .admin-header,[data-theme=dark] .admin-review-dialog,[data-theme=dark] .app-shell,[data-theme=dark] .auth-panel,[data-theme=dark] .source-page-dialog,[data-theme=dark] .stat-card,[data-theme=dark] .subject-card,[data-theme=dark] .subject-profile{background:var(--paper);color:var(--ink);border-color:var(--line)}[data-theme=dark] .admin-page,[data-theme=dark] .sidebar{background:#182233;border-color:var(--line)}[data-theme=dark] .main-panel{background:linear-gradient(#172132,#192437)}[data-theme=dark] .subject-home{background:linear-gradient(155deg,#131e32,#192337 65%,#152b39)}[data-theme=dark] .subject-card-english,[data-theme=dark] .subject-card-math,[data-theme=dark] .subject-card-politics{background:linear-gradient(150deg,#202c41,#1a2538)}[data-theme=dark] .admin-material-folder-content,[data-theme=dark] .sidebar-footer,[data-theme=dark] .source-page-header,[data-theme=dark] .topbar{border-color:var(--line)}[data-theme=dark] .composer-region{background:linear-gradient(rgba(23,33,50,.92),#172132 25%);border-color:var(--line)}[data-theme=dark] .admin-category-tabs button.active,[data-theme=dark] .admin-folder-table .admin-table th,[data-theme=dark] .admin-upload-modes button.active,[data-theme=dark] .auth-tabs button.active,[data-theme=dark] .composer,[data-theme=dark] .feedback-form,[data-theme=dark] .mode-switch button.active,[data-theme=dark] .source-card,[data-theme=dark] .style-menu,[data-theme=dark] .style-trigger,[data-theme=dark] .suggestions button{background:#202d41;color:var(--ink);border-color:var(--line)}[data-theme=dark] .admin-batch-heading,[data-theme=dark] .admin-material-folder-trigger,[data-theme=dark] .message-bubble,[data-theme=dark] .sidebar-hint,[data-theme=dark] .thinking-bubble{background:#233047;color:#e2e9f6}[data-theme=dark] .admin-category-tabs,[data-theme=dark] .admin-upload-modes,[data-theme=dark] .auth-tabs,[data-theme=dark] .conversation-row.selected,[data-theme=dark] .message-user .message-bubble,[data-theme=dark] .mode-switch{background:#29385b;color:#eef2ff}[data-theme=dark] .admin-material-folder-trigger:hover,[data-theme=dark] .conversation-row:hover,[data-theme=dark] .style-options button.chosen,[data-theme=dark] .style-options button:hover{background:#29374d}[data-theme=dark] .admin-batch-item strong,[data-theme=dark] .admin-table td:first-child,[data-theme=dark] .invite-usage h3,[data-theme=dark] .markdown-body h1,[data-theme=dark] .markdown-body h2,[data-theme=dark] .markdown-body h3,[data-theme=dark] .message-name,[data-theme=dark] .model-alerts>strong,[data-theme=dark] .source-top,[data-theme=dark] .stat-card strong,[data-theme=dark] .subject-card,[data-theme=dark] .suggestions button strong{color:var(--ink)}[data-theme=dark] .admin-card-subtitle,[data-theme=dark] .admin-table td,[data-theme=dark] .admin-table th,[data-theme=dark] .admin-title p,[data-theme=dark] .composer-note,[data-theme=dark] .conversation-item,[data-theme=dark] .mode-explainer,[data-theme=dark] .model-alerts ul,[data-theme=dark] .model-alerts>p,[data-theme=dark] .sidebar-hint,[data-theme=dark] .source-excerpt,[data-theme=dark] .source-meta,[data-theme=dark] .subject-card p,[data-theme=dark] .subject-home-intro p,[data-theme=dark] .subject-profile p,[data-theme=dark] .welcome p{color:#b7c4d8}[data-theme=dark] .admin-field input,[data-theme=dark] .admin-field select,[data-theme=dark] .auth-form input,[data-theme=dark] .feedback-form textarea,[data-theme=dark] .style-menu input,[data-theme=dark] .subject-profile select,[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#172235;color:var(--ink);border-color:#40506b}[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#98a8c1}[data-theme=dark] .composer textarea{background:transparent;color:var(--ink)}[data-theme=dark] .admin-field label,[data-theme=dark] .admin-review-dialog label,[data-theme=dark] .auth-form label,[data-theme=dark] .feedback-form label,[data-theme=dark] .subject-profile label{color:#c4d1e4}[data-theme=dark] .image-placeholder,[data-theme=dark] .message-image-holder,[data-theme=dark] .source-page-viewport{background:#121c2b}[data-theme=dark] .admin-batch-item,[data-theme=dark] .admin-batch-list,[data-theme=dark] .admin-feedback-item,[data-theme=dark] .admin-material-folder,[data-theme=dark] .admin-table td,[data-theme=dark] .admin-table th,[data-theme=dark] .invite-usage-item,[data-theme=dark] .invite-usage-list,[data-theme=dark] .source-card,[data-theme=dark] .suggestions button{border-color:var(--line)}[data-theme=dark] .admin-notice,[data-theme=dark] .admin-temp-password,[data-theme=dark] .attachment,[data-theme=dark] .invite-codes code,[data-theme=dark] .invite-usage-stats span,[data-theme=dark] .message-name span,[data-theme=dark] .model-usage-days span,[data-theme=dark] .sidebar-subject-switch,[data-theme=dark] .style-option-tag{background:#293958;color:#c3d0ff}[data-theme=dark] .admin-export,[data-theme=dark] .admin-review-button,[data-theme=dark] .admin-student-actions button,[data-theme=dark] .admin-temp-password button,[data-theme=dark] .load-more-conversations,[data-theme=dark] .load-older-messages,[data-theme=dark] .show-all-styles,[data-theme=dark] .source-page-close,[data-theme=dark] .source-page-toolbar button,[data-theme=dark] .stop-generation{background:#273650;color:#cad6ff;border-color:#425675}[data-theme=dark] .markdown-body code{background:#35435b;color:#edf2ff}[data-theme=dark] .markdown-body pre{background:#0d1522}[data-theme=dark] .markdown-body th{background:#29384e}[data-theme=dark] .markdown-body td,[data-theme=dark] .markdown-body th{border-color:#50617a}[data-theme=dark] .student-inactive td{background:#332b28}.delete-backdrop{position:fixed;inset:0;z-index:210;display:grid;place-items:center;padding:16px;background:rgba(16,26,45,.55)}.slides-subfolders{display:flex;flex-direction:column;gap:8px;padding:12px}.delete-dialog{width:min(420px,100%);padding:24px;border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 20px 70px rgba(12,20,43,.28)}.delete-dialog h2{margin:0 0 10px;font-size:18px}.delete-dialog p{margin:0 0 22px;color:var(--muted);line-height:1.7}.delete-dialog>div{display:flex;justify-content:flex-end;gap:9px}.delete-dialog button{border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);padding:9px 16px}.delete-dialog .delete-confirm{border-color:#bd514c;background:#bd514c;color:#fff}.delete-undo{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));z-index:220;transform:translateX(-50%);display:flex;align-items:center;gap:16px;max-width:calc(100vw - 32px);padding:10px 13px;border-radius:9px;background:#263247;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.2);font-size:12px}.delete-undo span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.delete-undo button{flex:none;border:0;background:none;color:#cad5ff;font-weight:750}.message-avatar img{display:block;width:100%;height:100%;object-fit:cover}