:root{color:#292525;font-synthesis:none;text-rendering:optimizelegibility;--bg:#fcfbfa;--surface:#fff;--surface-soft:#f8f3f1;--sidebar:#f4f2f0;--line:#e7e1de;--line-strong:#d7ceca;--text:#292525;--muted:#746b68;--primary:#c03030;--primary-hover:#a82525;--primary-ink:#fff;--brand-pale:#fbeceb;--shadow:0 10px 28px #301e1c14;--focus:#912525;background:#fcfbfa;font-family:Inter,Noto Sans SC,Microsoft YaHei,system-ui,sans-serif}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#151414;--surface:#211e1d;--surface-soft:#2b2422;--sidebar:#1b1918;--line:#393330;--line-strong:#554a46;--text:#f7f2f0;--muted:#b9adaa;--primary:#ea645a;--primary-hover:#f27b70;--primary-ink:#241513;--brand-pale:#35211f;--shadow:0 14px 40px #00000052;--focus:#ffaaa0}@media (prefers-color-scheme:dark){html[data-theme=system]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#151414;--surface:#211e1d;--surface-soft:#2b2422;--sidebar:#1b1918;--line:#393330;--line-strong:#554a46;--text:#f7f2f0;--muted:#b9adaa;--primary:#ea645a;--primary-hover:#f27b70;--primary-ink:#241513;--brand-pale:#35211f;--shadow:0 14px 40px #00000052;--focus:#ffaaa0}}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{color:var(--text);background:var(--bg)}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}a{color:var(--primary)}.spin{flex:none;animation:1.1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.eyebrow{color:var(--primary);letter-spacing:.2em;font-size:.73rem;font-weight:800}.subtle{color:var(--muted);font-size:.82rem}.mono{overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.inline-error{color:#ae2929;background:#fff0ee;border:1px solid #efc9c4;border-radius:10px;padding:.7rem .85rem;font-size:.87rem}.inline-success{color:#20794c;background:#eaf8ef;border:1px solid #c1e9cc;border-radius:10px;padding:.7rem .85rem;font-size:.87rem}html[data-theme=dark] .inline-error{color:#ffb1a8;background:#382422;border-color:#704440}html[data-theme=dark] .inline-success{color:#99e0b6;background:#173725;border-color:#36664a}.loading-line{color:var(--muted);align-items:center;gap:.5rem;font-size:.9rem;display:flex}.empty-small{color:var(--muted);font-size:.9rem}.lychee-mark{object-fit:contain;flex:none;width:31px;height:31px;display:block}.brand-lockup{color:var(--text);letter-spacing:-.05em;white-space:nowrap;align-items:center;gap:.73rem;font-size:1.35rem;font-weight:820;display:inline-flex}.brand-lockup.compact{gap:.6rem;font-size:1.1rem}.brand-lockup.compact .lychee-mark{width:25px;height:25px}.boot-screen{min-height:100dvh;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:1rem;display:flex}.boot-screen .brand-lockup{margin-bottom:1.5rem}.auth-shell{background:var(--surface);grid-template-columns:minmax(350px,43%) minmax(0,1fr);min-height:100dvh;display:grid}.auth-art{color:#fff;background:#a92728;flex-direction:column;justify-content:space-between;padding:clamp(2rem,5vw,4rem);display:flex;position:relative;overflow:hidden}.auth-art:before{content:"";border:1px solid #ffffff2c;border-radius:50%;width:55vw;min-width:640px;height:55vw;min-height:640px;position:absolute;top:12%;left:-18vw;box-shadow:0 0 0 90px #ffffff0b,0 0 0 180px #ffffff08}.auth-art .brand-lockup{z-index:1;color:#fff;position:relative}.auth-art-center{z-index:1;max-width:520px;padding:4rem 0;position:relative}.auth-art-center h2{letter-spacing:-.07em;margin:2rem 0 .8rem;font-size:clamp(2.5rem,4.2vw,4.7rem);line-height:1.16}.auth-art-foot{z-index:1;color:#ffe8e1;letter-spacing:.24em;font-size:.73rem;position:relative}.hero-lychee{object-fit:contain;filter:drop-shadow(0 16px 12px #621b1b55);width:142px;height:142px;display:block}.auth-form-wrap{justify-content:center;align-items:center;padding:5rem 2rem;display:flex;position:relative}.auth-form-head{display:none}.auth-form{flex-direction:column;width:min(100%,440px);display:flex}.auth-form h1{letter-spacing:-.06em;margin:1rem 0 .4rem;font-size:clamp(2.25rem,4vw,3.2rem)}.auth-form>p:not(.inline-error){color:var(--muted);margin:0 0 2.3rem}.auth-form label{margin:0 0 .5rem;font-size:.9rem;font-weight:700}.auth-form input,.key-form input{border:1px solid var(--line-strong);background:var(--surface);width:100%;color:var(--text);border-radius:11px;outline:0;margin:0 0 1.3rem;padding:.82rem .95rem}.auth-form input:focus,.key-form input:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--brand-pale)}.auth-form .password-hint,.key-form .password-hint,.auth-form .field-hint{color:var(--muted);font-size:.77rem;line-height:1.5;margin:-.9rem 0 1.2rem!important}.auth-form>p.field-error,.key-form .field-error{color:#ae2929;margin:-.8rem 0 1rem;font-size:.8rem;line-height:1.45}.auth-form input[aria-invalid=true],.key-form input[aria-invalid=true]{border-color:#ae2929}html[data-theme=dark] .auth-form>p.field-error,html[data-theme=dark] .key-form .field-error{color:#ffb1a8}html[data-theme=dark] .auth-form input[aria-invalid=true],html[data-theme=dark] .key-form input[aria-invalid=true]{border-color:#ffb1a8}.primary-button{color:var(--primary-ink);background:var(--primary);border:0;border-radius:11px;justify-content:center;align-items:center;gap:.55rem;padding:.75rem 1.1rem;font-weight:760;transition:background .15s,transform .15s;display:inline-flex}.primary-button:hover:not(:disabled){background:var(--primary-hover);transform:translateY(-1px)}.login-button{width:100%;min-height:49px;margin-top:.3rem}.auth-form .auth-notice{font-size:.77rem;line-height:1.7;margin:1.7rem 0 0!important}.auth-help{color:var(--muted);margin-top:1.1rem;font-size:.8rem}.auth-help summary{cursor:pointer;width:fit-content}.auth-help p{margin:.5rem 0 0;line-height:1.6}.auth-switch{margin:.75rem auto 0}.auth-bottom{color:var(--muted);font-size:.75rem;position:absolute;bottom:1.7rem}.app-shell{background:var(--bg);grid-template-columns:267px minmax(0,1fr);height:100dvh;display:grid}.app-shell.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);flex-direction:column;min-width:0;display:flex;overflow:hidden}.sidebar-brand{justify-content:space-between;align-items:center;padding:1.35rem 1rem 1.2rem;display:flex}.sidebar-top{padding:0 .5rem}.icon-button{width:33px;height:33px;color:var(--muted);background:0 0;border:0;border-radius:9px;flex:none;justify-content:center;align-items:center;display:inline-flex}.icon-button:hover{color:var(--text);background:var(--surface-soft)}.mobile-close,.mobile-menu{display:none}.desktop-expand{margin-right:.5rem}.new-chat-button{border:1px solid var(--line);background:var(--surface);width:100%;color:var(--text);text-align:left;border-radius:11px;align-items:center;gap:.65rem;padding:.8rem .85rem;font-weight:720;display:flex;box-shadow:0 2px 5px #39202b08}.new-chat-button:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.sidebar-section-label{color:var(--muted);letter-spacing:.08em;justify-content:space-between;align-items:center;padding:1.45rem .65rem .35rem 1.2rem;font-size:.72rem;font-weight:780;display:flex}.sidebar-section-label .icon-button{width:28px;height:28px}.session-list{flex:1;min-height:0;padding:0 .5rem;overflow:auto}.session-entry{align-items:center;display:flex;position:relative}.session-entry .session-item{flex:1;min-width:0;padding-right:2.3rem}.session-more{width:27px;height:27px;position:absolute;right:.25rem}.session-actions{z-index:3;border:1px solid var(--line);background:var(--surface);min-width:120px;box-shadow:var(--shadow);border-radius:9px;padding:.3rem;display:grid;position:absolute;top:100%;right:.1rem}.session-actions button{color:var(--text);text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:.4rem;padding:.45rem .55rem;font-size:.8rem;display:flex}.session-actions button:hover{background:var(--surface-soft)}.session-actions button.danger-text{color:#ba302b}.sidebar-empty{color:var(--muted);padding:.5rem .7rem;font-size:.85rem}.session-item{text-align:left;width:100%;color:var(--text);background:0 0;border:0;border-radius:9px;margin:.15rem 0;padding:.7rem .78rem;font-size:.87rem;display:block}.session-item span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.session-item:hover:not(:disabled){background:var(--surface-soft)}.session-item.active{color:var(--primary);background:var(--brand-pale);font-weight:720}.sidebar-footer{border-top:1px solid var(--line);padding:.5rem .5rem .75rem;position:relative}.sidebar-tool{width:100%;color:var(--muted);text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:.7rem;padding:.62rem .73rem;font-size:.84rem;display:flex}.sidebar-tool:hover{color:var(--text);background:var(--surface-soft)}.profile-menu{z-index:5;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:13px;padding:.35rem;position:absolute;bottom:calc(100% + .45rem);left:.5rem;right:.5rem}.profile-menu-separator{background:var(--line);height:1px;margin:.3rem .4rem}.sidebar-account{width:100%;color:var(--text);text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:.65rem;padding:.55rem .45rem;display:flex}.sidebar-account:hover,.sidebar-account[aria-expanded=true]{background:var(--surface-soft)}.sidebar-account>span:nth-child(2){flex-direction:column;flex:1;min-width:0;font-size:.8rem;display:flex}.sidebar-account strong,.sidebar-account small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-account small{color:var(--muted)}.profile-chevron{color:var(--muted);flex:none;transition:transform .15s}.profile-chevron.open{transform:rotate(180deg)}.mini-avatar{background:var(--brand-pale);width:30px;height:30px;color:var(--primary);border-radius:10px;flex:none;justify-content:center;align-items:center;font-size:.82rem;font-weight:780;display:flex}.drawer-backdrop{display:none}.chat-area{flex-direction:column;min-width:0;height:100dvh;min-height:0;display:flex}.chat-header{border-bottom:1px solid var(--line);background:var(--bg);justify-content:space-between;align-items:center;gap:1rem;min-height:65px;padding:.75rem clamp(1rem,3vw,2.4rem);display:flex}.chat-header-left{align-items:center;min-width:0;display:flex}.chat-header-left>div{flex-direction:column;min-width:0;display:flex}.chat-header-left strong{text-overflow:ellipsis;white-space:nowrap;font-size:.94rem;overflow:hidden}.chat-header-left small{color:var(--muted);font-size:.72rem}.chat-header-actions{justify-content:flex-end;align-items:center;gap:.75rem;min-width:0;display:flex}.memory-space-badge{border:1px solid var(--line);background:var(--surface);color:var(--text);white-space:nowrap;border-radius:999px;flex:none;align-items:center;gap:.4rem;padding:.32rem .65rem;font-size:.72rem;font-weight:700;display:inline-flex}.memory-space-badge:hover{border-color:var(--primary);color:var(--primary)}.memory-space-badge small{color:var(--primary);font-size:.65rem}.session-memory-control{color:var(--muted);flex:none;align-items:center;gap:.5rem;font-size:.75rem;display:inline-flex}.session-memory-control select{border:1px solid var(--line);background:var(--surface);max-width:160px;color:var(--text);border-radius:8px;padding:.35rem}.session-memory-effective{color:var(--primary);font-size:.7rem}.chat-scroll{overscroll-behavior:contain;flex:1;min-height:0;overflow-y:auto}.chat-inner{max-width:850px;min-height:100%;margin:0 auto;padding:2rem clamp(1rem,4vw,3rem) 3rem}.chat-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1.3rem;display:flex}.chat-empty h1{letter-spacing:-.055em;margin:0;font-size:clamp(1.7rem,3vw,2.3rem)}.chat-area.empty-chat .chat-scroll{flex:0 auto;margin-top:auto;overflow:visible}.chat-area.empty-chat .chat-inner{min-height:0;padding:0 1rem}.chat-area.empty-chat .composer-dock{margin-bottom:auto;padding-top:1.7rem}.message-row{align-items:flex-start;margin:0 0 1.9rem;display:flex}.message-row.user{justify-content:flex-end}.message-author{display:none}.message-row.user .message-content{max-width:min(78%,680px)}.message-row.user .message-text{background:var(--surface-soft);border-radius:18px;padding:.65rem .95rem;line-height:1.6}.message-row.assistant .message-content{flex:1}.message-content{min-width:0}.message-text{overflow-wrap:anywhere;white-space:pre-wrap;font-size:.93rem;line-height:1.78}.message-text p{margin:.35rem 0 .8rem}.message-text p:first-child{margin-top:0}.message-text p:last-child{margin-bottom:0}.message-text pre{color:#f7e8eb;white-space:pre;background:#211b1f;border-radius:10px;max-width:100%;padding:1rem;font-size:.82rem;overflow-x:auto}.message-text code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em}.message-text :not(pre)>code{background:var(--surface-soft);border-radius:4px;padding:.1rem .28rem}.message-text blockquote{border-left:3px solid var(--primary);color:var(--muted);margin:.65rem 0;padding-left:.85rem}.message-text table{border-collapse:collapse;max-width:100%;display:block;overflow-x:auto}.message-text th,.message-text td{border:1px solid var(--line);padding:.35rem .6rem}.message-text.live{white-space:pre-wrap;color:var(--text)}.message-copy{width:28px;height:28px;color:var(--muted);background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;margin-top:.45rem;display:inline-flex}.message-copy:hover{color:var(--primary)}.message-evidence-button{color:var(--muted);background:0 0;border:0;align-items:center;gap:.35rem;margin:.3rem 0 0 .4rem;font-size:.72rem;display:inline-flex}.message-evidence-button:hover{color:var(--primary)}.evidence-box{border:1px solid var(--line);background:var(--surface-soft);max-width:660px;color:var(--muted);border-radius:11px;margin:.5rem 0;padding:.85rem 1rem;font-size:.77rem}.evidence-box>strong{color:var(--text)}.evidence-box p{margin:.4rem 0}.evidence-item{border-top:1px solid var(--line);margin-top:.5rem;padding-top:.5rem}.evidence-item span{color:var(--primary);font-weight:700}.feedback-controls{border:1px solid var(--line);background:var(--surface-soft);max-width:600px;color:var(--muted);border-radius:10px;gap:.5rem;margin:.5rem 0;padding:.7rem .9rem;font-size:.76rem;display:grid}.feedback-rating{align-items:center;gap:.35rem;display:flex}.feedback-rating button{border:1px solid var(--line);background:var(--surface);width:28px;height:28px;color:var(--muted);border-radius:7px;justify-content:center;align-items:center;display:inline-flex}.feedback-rating button[aria-pressed=true]{color:var(--primary);border-color:var(--primary)}.feedback-rating span{margin-left:.4rem}.feedback-controls label{align-items:center;gap:.4rem;display:inline-flex}.composer-dock{padding:.4rem 1rem max(.8rem, env(safe-area-inset-bottom));background:var(--bg);flex:none;position:relative}.composer-inner{max-width:800px;margin:0 auto}.composer-form{border:1px solid var(--line-strong);background:var(--surface);box-shadow:var(--shadow);border-radius:17px;align-items:flex-end;gap:.8rem;padding:.65rem .7rem .65rem 1rem;display:flex}.composer-form:focus-within{border-color:var(--primary)}.composer-form textarea{resize:vertical;min-width:0;max-height:190px;color:var(--text);background:0 0;border:0;outline:0;flex:1;padding:.43rem 0;line-height:1.55}.composer-form textarea::placeholder{color:var(--muted)}.composer-form textarea:focus-visible{outline:0}.send-button{background:var(--primary);width:36px;height:36px;color:var(--primary-ink);border:0;border-radius:11px;flex:none;justify-content:center;align-items:center;display:inline-flex}.send-button:hover:not(:disabled){background:var(--primary-hover)}.stop-button{background:var(--text);color:var(--bg)}.composer-bottom{color:var(--muted);justify-content:space-between;gap:1rem;padding:.6rem .2rem 0;font-size:.7rem;display:flex}.over-limit{color:#c03030;font-weight:750}.provider-warning,.turn-status,.composer-notice{border-radius:9px;align-items:center;gap:.5rem;margin:0 0 .5rem;padding:.52rem .7rem;font-size:.8rem;display:flex}.provider-warning{background:var(--brand-pale);color:var(--primary)}.turn-status{background:var(--surface-soft);color:var(--muted)}.turn-status span{flex:1}.composer-notice{background:var(--surface-soft);color:var(--text)}.text-action{color:var(--primary);background:0 0;border:0;padding:.2rem .3rem;font-size:.8rem;font-weight:720}.text-action:hover{text-decoration:underline}.admin-page{background:var(--bg);min-height:100dvh}.admin-header{border-bottom:1px solid var(--line);background:var(--surface);align-items:center;gap:.8rem;min-height:66px;padding:0 clamp(1rem,4vw,3rem);display:flex}.admin-heading{color:var(--primary);flex:1;align-items:center;gap:.5rem;display:inline-flex}.admin-content{max-width:1220px;margin:0 auto;padding:clamp(1.4rem,4vw,3.3rem)}.admin-intro{margin-bottom:2rem}.admin-intro h1{letter-spacing:-.05em;margin:.5rem 0 .4rem;font-size:clamp(1.7rem,3vw,2.65rem)}.admin-intro p{color:var(--muted);margin:0}.invite-card{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.invite-card h2{margin:0 0 .3rem;font-size:1rem}.invite-card p{margin:0}.one-time-secret{border:1px solid var(--line);background:var(--brand-pale);border-radius:10px;flex-direction:column;gap:.4rem;width:100%;padding:.9rem;font-size:.82rem;display:flex}.one-time-secret code{overflow-wrap:anywhere;color:var(--text);font-size:1rem}.one-time-secret small{color:var(--muted)}.one-time-secret .text-action{align-self:flex-start}.one-time-secret .invite-link-input{border:1px solid var(--line-strong);background:var(--surface);width:100%;color:var(--text);border-radius:8px;padding:.55rem .65rem;font-size:.78rem}.admin-grid{grid-template-columns:minmax(250px,390px) minmax(0,1fr);align-items:start;gap:1rem;display:grid}.admin-card{border:1px solid var(--line);background:var(--surface);border-radius:16px;min-width:0;padding:1.2rem;box-shadow:0 4px 25px #30192407}.card-heading{justify-content:space-between;align-items:baseline;gap:1rem;margin:0 0 1rem;display:flex}.card-heading h2{margin:0;font-size:1.05rem}.card-heading span{color:var(--muted);font-size:.75rem}.admin-user-list{gap:.35rem;display:grid}.admin-user{width:100%;color:var(--text);text-align:left;background:0 0;border:1px solid #0000;border-radius:10px;align-items:center;gap:.6rem;padding:.6rem;display:flex}.admin-user:hover,.admin-user.selected{background:var(--surface-soft);border-color:var(--line)}.user-main{flex-direction:column;flex:1;min-width:0;display:flex}.user-main strong,.user-main small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-main strong{font-size:.85rem}.user-main small{color:var(--muted);font-size:.72rem}.user-status{color:var(--muted);flex:none;font-size:.7rem}.user-status.ready{color:#27824f}.credential-card{min-height:350px}.select-placeholder{min-height:310px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;display:flex}.select-placeholder h2{color:var(--text);margin:.8rem 0 .2rem}.select-placeholder p{margin:0}.credential-state{border:1px solid var(--line);border-radius:11px;grid-template-columns:9rem minmax(0,1fr);gap:.75rem 1rem;padding:1rem;font-size:.84rem;display:grid}.field-label{color:var(--muted)}.key-form{flex-direction:column;margin-top:1.6rem;display:flex}.key-form label{margin-bottom:.55rem;font-size:.88rem;font-weight:760}.key-form input{margin:0}.key-form .subtle{margin:.65rem 0 1rem}.form-actions{gap:.6rem;display:flex}.secondary-button{border:1px solid var(--line-strong);background:var(--surface);color:var(--text);border-radius:10px;padding:.68rem 1rem;font-weight:700}.secondary-button:hover:not(:disabled){background:var(--surface-soft)}.danger-text{color:#ba302b}.admin-account-actions{border-top:1px solid var(--line);margin-top:1.5rem;padding-top:1rem}.admin-account-actions h3{font-size:.9rem}.admin-account-actions .one-time-secret,.admin-feedback-section{margin-top:1rem}.admin-feedback-section>.subtle{margin:0 0 1rem}.feedback-summary{color:var(--muted);flex-wrap:wrap;gap:1rem;padding:.7rem 0;font-size:.8rem;display:flex}.shared-feedback-list{gap:.65rem;margin-bottom:.8rem;display:grid}.shared-feedback-item{border:1px solid var(--line);border-radius:9px;padding:.8rem}.shared-feedback-item p{overflow-wrap:anywhere;font-size:.82rem;line-height:1.6}.account-content{gap:1rem;max-width:620px;margin:0 auto;padding:3rem 1rem;display:grid}.account-content h1{font-size:2rem}.account-content .key-form{gap:.25rem}.account-content .key-form input{margin-bottom:.8rem}.usage-card h2{margin-bottom:.55rem}.usage-disclaimer{background:var(--brand-pale);color:var(--text);border-radius:9px;margin:0 0 1rem;padding:.65rem .75rem;font-size:.82rem;line-height:1.6}.usage-amount{color:var(--primary);overflow-wrap:anywhere;margin:.6rem 0 .2rem;font-size:1.4rem;display:block}.usage-stats{flex-wrap:wrap;gap:.45rem;margin:1rem 0;display:flex}.usage-stats span{background:var(--surface-soft);border-radius:7px;padding:.35rem .5rem;font-size:.77rem}.usage-card .subtle{line-height:1.6}.usage-card a{font-size:.8rem}.brand-credit{font-weight:700}.technical-details{color:var(--muted);margin-top:.9rem;font-size:.82rem}.technical-details summary{cursor:pointer;color:var(--text);font-weight:700}.technical-details ul{margin:.6rem 0 0;padding-left:1.4rem;line-height:1.8}.account-page{background:var(--bg);grid-template-columns:254px minmax(0,1fr);min-height:100dvh;display:grid}.account-sidebar{border-right:1px solid var(--line);background:var(--sidebar);align-self:start;height:100dvh;padding:1.55rem .75rem;position:sticky;top:0;overflow-y:auto}.account-sidebar-head{justify-content:space-between;align-items:baseline;padding:.15rem .85rem 1.5rem;display:flex}.account-sidebar-head strong{font-size:1.1rem}.account-sidebar-head span{color:var(--muted);font-size:.78rem}.account-back{width:100%;color:var(--text);text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:.65rem;padding:.72rem .85rem;font-weight:650;display:flex}.account-back:hover,.account-nav-item:hover{background:var(--surface-soft)}.account-nav-group{margin-top:1.55rem}.account-nav-group>p{color:var(--muted);margin:0 0 .45rem;padding:0 .85rem;font-size:.76rem}.account-nav-item{width:100%;min-height:43px;color:var(--text);text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:.72rem;padding:.65rem .85rem;font-size:.9rem;display:flex}.account-nav-item.active{background:var(--surface);color:var(--primary);font-weight:750;box-shadow:0 1px 6px #3019240d}.account-main{min-width:0;padding:clamp(1.5rem,4vw,4rem)}.account-main-inner{max-width:860px;margin:0 auto}.account-section-head{margin:0 0 1.6rem}.account-section-head span{color:var(--muted);font-size:.78rem}.account-section-head h1{margin:.2rem 0 0;font-size:clamp(1.6rem,2.5vw,2.15rem)}.account-section-stack{gap:1rem;display:grid}.account-section-stack .admin-card h2,.account-main>.admin-card h2{margin-top:0}.account-overview p{color:var(--muted);margin:.45rem 0 0}.account-quick-link{justify-content:space-between;align-items:center;gap:1.5rem;display:flex}.account-quick-link h2{margin:0 0 .4rem}.account-quick-link p{margin:.25rem 0;line-height:1.6}.account-quick-link .secondary-button,.account-quick-link .primary-button{flex:none}.account-theme-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin-top:1.3rem;display:grid}.account-theme-options button{border:1px solid var(--line-strong);background:var(--surface);min-height:60px;color:var(--text);text-align:left;border-radius:11px;align-items:center;gap:.65rem;padding:.8rem;display:flex}.account-theme-options button:hover{background:var(--surface-soft)}.account-theme-options button.selected{border-color:var(--primary);color:var(--primary);background:var(--brand-pale);font-weight:750}.account-technical .admin-card p{color:var(--muted);margin:.6rem 0 0;line-height:1.8}.account-main .usage-card{max-width:none}.memory-page{background:var(--bg);min-height:100dvh}.memory-content{max-width:1130px;margin:0 auto;padding:clamp(2rem,5vw,4rem) clamp(1rem,4vw,3rem)}.memory-content h1{letter-spacing:-.06em;margin:.7rem 0 .65rem;font-size:clamp(2rem,4vw,3.25rem)}.memory-lead{max-width:760px;color:var(--muted);margin:0 0 1.8rem;line-height:1.8}.memory-lead code{background:var(--surface-soft);color:var(--text);border-radius:4px;padding:.1rem .3rem}.memory-empty{border:1px solid var(--line);background:var(--surface);color:var(--primary);border-radius:16px;align-items:center;gap:1rem;padding:1.25rem 1.4rem;display:flex}.memory-empty div{flex-direction:column;gap:.3rem;display:flex}.memory-empty span{color:var(--muted);font-size:.85rem}.memory-boundary{border:1px solid var(--line);background:var(--surface-soft);border-radius:16px;gap:.9rem;margin-top:1.4rem;padding:1.25rem 1.4rem;display:flex}.memory-boundary>svg{color:var(--primary);flex:none}.memory-boundary h2{margin:0 0 .35rem;font-size:.95rem}.memory-boundary p{color:var(--muted);margin:0;font-size:.85rem;line-height:1.7}.memory-settings-card{border:1px solid var(--line);background:var(--surface);border-radius:13px;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.7rem;padding:1rem 1.1rem;display:flex}.memory-settings-card h2{margin:0 0 .3rem;font-size:.95rem}.memory-settings-card p{color:var(--muted);margin:0;font-size:.78rem;line-height:1.5}.memory-settings-card .memory-current-state{color:var(--text);margin-top:.55rem;font-weight:700}.memory-settings-card button{flex:none}.memory-list-heading{justify-content:space-between;align-items:center;margin:1.7rem 0 .6rem;display:flex}.memory-list-heading h2{margin:0;font-size:1rem}.memory-list-heading button{align-items:center;gap:.3rem;display:inline-flex}.memory-source-list{gap:.65rem;display:grid}.memory-source{border:1px solid var(--line);background:var(--surface);overflow-wrap:anywhere;border-radius:13px;padding:1rem 1.1rem}.memory-source p{margin:.6rem 0;font-size:.85rem;line-height:1.6}.memory-source-meta{color:var(--muted);flex-wrap:wrap;gap:.65rem;font-size:.7rem;display:flex}.memory-original{color:var(--text)}.memory-source-actions{gap:.5rem;display:flex}.memory-correction{border-top:1px solid var(--line);gap:.65rem;margin-top:1rem;padding-top:.8rem;font-size:.82rem;display:grid}.memory-correction textarea{border:1px solid var(--line-strong);width:100%;min-height:88px;color:var(--text);background:var(--surface);border-radius:9px;padding:.6rem}.memory-correction small{color:var(--muted)}.memory-more{margin-top:1rem}@media (width<=900px){.auth-shell{grid-template-columns:38% minmax(0,1fr)}.auth-art{padding:2.4rem}.auth-art-center h2{font-size:2.6rem}}@media (width<=720px){.account-page{display:block}.account-sidebar{border-right:0;border-bottom:1px solid var(--line);height:auto;padding:.8rem .8rem .55rem;position:static;overflow:visible}.account-sidebar-head{display:none}.account-back{width:auto;margin-bottom:.5rem}.account-sidebar nav{scrollbar-width:thin;gap:.4rem;padding-bottom:.3rem;display:flex;overflow-x:auto}.account-nav-group{display:contents}.account-nav-group>p{display:none}.account-nav-item{white-space:nowrap;flex:none;width:auto;min-height:38px;padding:.5rem .7rem;font-size:.82rem}.account-nav-item svg{width:15px;height:15px}.account-main{padding:1.45rem .9rem 2rem}.account-section-head{margin-bottom:1rem}.account-theme-options{grid-template-columns:1fr}.account-quick-link{flex-direction:column;align-items:flex-start;gap:.7rem}.auth-shell{display:block}.auth-art{display:none}.auth-form-wrap{min-height:100dvh;padding:2rem 1.35rem 4rem}.auth-form-head{top:max(1.2rem, env(safe-area-inset-top));color:var(--muted);justify-content:space-between;align-items:center;font-size:.8rem;display:flex;position:absolute;left:1.3rem;right:1.3rem}.auth-form{margin-top:2.7rem}.auth-bottom{bottom:max(1.1rem, env(safe-area-inset-bottom))}.app-shell,.app-shell.sidebar-collapsed{display:block}.sidebar{z-index:20;width:min(83vw,310px);height:100dvh;box-shadow:var(--shadow);transition:transform .2s;position:fixed;top:0;bottom:0;left:0;transform:translate(-102%)}.sidebar.open{transform:translate(0)}.drawer-backdrop{z-index:19;background:#150a0d99;border:0;display:block;position:fixed;inset:0}.desktop-collapse,.desktop-expand{display:none}.mobile-close,.mobile-menu{display:inline-flex}.chat-header{flex-wrap:wrap;min-height:59px;padding:.5rem .8rem}.chat-header-actions{justify-content:space-between;width:100%}.session-memory-control{font-size:0}.session-memory-control select{max-width:120px;font-size:.7rem}.session-memory-effective{display:none}.chat-inner{padding:1.5rem .9rem 2rem}.message-row{margin-bottom:1.5rem}.message-row.user .message-content{max-width:88%}.message-text{font-size:.9rem}.composer-dock{padding:.3rem .6rem max(.6rem, env(safe-area-inset-bottom))}.composer-bottom{font-size:.63rem}.admin-header .subtle{display:none}.admin-grid{grid-template-columns:1fr}.admin-content{padding:1.3rem .8rem}.memory-content{padding:2rem .9rem}.memory-empty{align-items:flex-start}.memory-settings-card{flex-direction:column;align-items:flex-start}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
