*{box-sizing:border-box}html,body{width:100%;min-width:320px;height:100%;margin:0}body{overflow:hidden;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;transition:background var(--motion),color var(--motion)}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}.hidden{display:none!important}.ambient{position:fixed;inset:0;pointer-events:none;background:radial-gradient(ellipse at 62% 24%,rgba(105,89,193,.11),transparent 38%),radial-gradient(ellipse at 8% 92%,rgba(52,116,137,.06),transparent 34%);z-index:-1}.app-shell{display:flex;height:100dvh;max-width:1920px;margin:auto}.sidebar{width:var(--sidebar);flex:none;border-right:1px solid var(--line);background:color-mix(in srgb,var(--surface) 62%,transparent);display:flex;flex-direction:column;padding:23px 14px 12px;z-index:5}.brand,.auth-brand{display:flex;align-items:center;gap:11px;font-weight:750;letter-spacing:.18em;font-size:14px;padding:0 10px}.brand-mark{display:grid;place-items:center;width:31px;height:31px}.brand-mark svg{width:31px;fill:none;stroke:var(--accent);stroke-width:1.3;stroke-linejoin:round}.brand-mark svg path:nth-child(n+2){fill:var(--accent);stroke:none}.new-chat{margin:30px 2px 27px;height:42px;background:var(--accent-wash);border:1px solid rgba(169,155,255,.18);border-radius:12px;display:flex;align-items:center;gap:10px;text-align:left;padding:0 12px;font-size:12px;font-weight:600;color:var(--text);transition:background var(--motion),transform var(--motion)}.new-chat:hover{background:rgba(169,155,255,.16);transform:translateY(-1px)}.new-chat>span{font-size:18px;color:var(--accent)}kbd{margin-left:auto;color:var(--subtle);font-size:9px;border:1px solid var(--line-strong);border-radius:5px;padding:2px 5px}.nav-label{font-size:9px;font-weight:700;letter-spacing:.14em;color:var(--subtle);padding:0 11px}.side-nav{display:grid;gap:4px;margin-top:10px}.nav-item{height:39px;border:0;background:transparent;color:var(--muted);border-radius:9px;display:flex;align-items:center;gap:12px;padding:0 11px;text-align:left;font-size:12px;transition:background var(--motion),color var(--motion)}.nav-item svg,.topbar svg,.icon-button svg,.mobile-item svg,.conversation-heading svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.nav-item.active,.nav-item:hover{background:var(--surface-2);color:var(--text)}.nav-item.active svg{color:var(--accent)}.soon{margin-left:auto;font-size:8px;color:var(--subtle);border:1px solid var(--line);border-radius:20px;padding:1px 6px}.history-head{margin-top:30px;display:flex;align-items:center;justify-content:space-between}.icon-button{width:34px;height:34px;display:grid;place-items:center;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted);transition:all var(--motion)}.icon-button:hover{background:var(--surface-2);border-color:var(--line);color:var(--text)}.icon-button svg{width:16px;height:16px}.icon-button.tiny{width:27px;height:27px}.icon-button.tiny svg{width:14px}.history-list{overflow:auto;margin:7px -4px 0;padding:0 4px;flex:1}.history-row{display:flex;align-items:center;width:100%;border:0;background:transparent;color:var(--muted);text-align:left;border-radius:8px;padding:8px 9px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all var(--motion)}.history-row:hover,.history-row.active{background:var(--surface-2);color:var(--text)}.history-empty{padding:10px;color:var(--subtle);font-size:10px;line-height:1.6}.search-input{width:100%;border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:8px 10px;margin-top:6px;font-size:11px}.sidebar-bottom{border-top:1px solid var(--line);padding-top:10px}.profile-link{width:100%;height:50px}.avatar{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(140deg,#7263c2,#39445f);color:#fff;font-size:11px;font-weight:650;flex:none}.profile-copy{display:grid;gap:1px}.profile-copy strong{font-size:11px;color:var(--text);font-weight:580}.profile-copy small{font-size:9px;color:var(--subtle)}.more-icon{margin-left:auto;width:16px!important;height:16px!important}.main-panel{min-width:0;flex:1;position:relative;display:flex;flex-direction:column}.topbar{height:var(--topbar);flex:none;display:flex;align-items:center;padding:0 35px;border-bottom:1px solid var(--line);justify-content:space-between}.workspace-select{display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--muted);padding:7px 9px;font-size:11px;border-radius:8px}.workspace-select:hover{background:var(--surface-2);color:var(--text)}.workspace-select svg{width:13px;height:13px}.workspace-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}.top-actions{display:flex;align-items:center;gap:14px}.connection{display:flex;align-items:center;gap:6px;color:var(--subtle);font-size:10px}.connection i,.home-footer i{width:6px;height:6px;border-radius:50%;background:var(--success);box-shadow:0 0 8px color-mix(in srgb,var(--success) 40%,transparent)}.menu-toggle{display:none}.view{min-height:0;flex:1;overflow:auto;position:relative;display:flex;flex-direction:column}.welcome{width:min(100% - 36px,800px);margin:auto;padding:38px 0 22px;animation:rise .55s cubic-bezier(.2,.7,.25,1) both}.welcome-kicker{display:flex;align-items:center;justify-content:center;gap:11px;color:var(--subtle);font-size:9px;letter-spacing:.18em;font-weight:600}.kicker-line{width:22px;height:1px;background:var(--line-strong)}.hero-mark{width:56px;height:56px;margin:26px auto 16px;display:grid;place-items:center;filter:drop-shadow(0 8px 20px rgba(131,112,239,.18))}.hero-mark svg{width:54px;fill:none;stroke:var(--accent);stroke-width:1.15;stroke-linejoin:round}.hero-mark svg path:nth-child(n+2){fill:var(--accent);stroke:none}.welcome h1{text-align:center;font-size:clamp(30px,4.2vw,43px);letter-spacing:-.045em;line-height:1.12;font-weight:560;margin:0}.welcome h1 span{color:var(--muted)}.hero-copy{text-align:center;color:var(--muted);font-size:13px;margin:12px 0 28px}.composer-wrap{max-width:640px;margin:0 auto}.composer{border:1px solid var(--line-strong);background:color-mix(in srgb,var(--surface) 93%,transparent);border-radius:18px;padding:14px 13px 10px;box-shadow:0 8px 30px rgba(0,0,0,.08);transition:border-color var(--motion),box-shadow var(--motion),background var(--motion)}.composer:focus-within{border-color:color-mix(in srgb,var(--accent) 58%,var(--line));box-shadow:0 10px 34px rgba(0,0,0,.1),0 0 0 3px var(--accent-wash)}.composer textarea{display:block;width:100%;resize:none;border:0;outline:0;background:transparent;min-height:42px;max-height:180px;padding:5px 6px;color:var(--text);font-size:13px;line-height:1.6}.composer textarea::placeholder{color:var(--subtle)}.composer textarea:focus-visible{outline:0}.composer-bottom{display:flex;align-items:center;justify-content:space-between;min-height:35px;padding:3px 0 0 6px}.composer-hint{font-size:9px;color:var(--subtle)}.sparkle{color:var(--accent);font-size:12px;margin-right:5px}.send-button{width:32px;height:32px;border:0;border-radius:10px;background:var(--accent-strong);color:#fff;display:grid;place-items:center;transition:transform var(--motion),filter var(--motion),opacity var(--motion)}.send-button:hover{transform:translateY(-1px);filter:brightness(1.12)}.send-button:disabled{opacity:.5;cursor:default}.send-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.suggestions{max-width:640px;margin:13px auto 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.suggestion{min-width:0;display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border:1px solid var(--line);border-radius:12px;padding:10px 11px;transition:all var(--motion)}.suggestion:hover{background:var(--surface);border-color:var(--line-strong);transform:translateY(-1px)}.suggestion-icon{width:29px;height:29px;flex:none;display:grid;place-items:center;border-radius:9px;background:var(--surface-2);color:var(--accent);font-size:15px}.suggestion-icon.write{color:var(--cyan)}.suggestion-icon.plan{color:#dda9bd}.suggestion-icon.learn{color:#91c7ac}.suggestion>span:nth-child(2){display:grid;gap:1px;min-width:0}.suggestion strong{font-size:10px;font-weight:590}.suggestion small{font-size:9px;color:var(--subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.suggestion-arrow{font-size:11px;color:var(--subtle);margin-left:auto;opacity:0;transition:opacity var(--motion)}.suggestion:hover .suggestion-arrow{opacity:1}.home-footer{max-width:640px;margin:27px auto 0;border-top:1px solid var(--line);padding-top:12px;display:flex;align-items:center;justify-content:space-between;color:var(--subtle);font-size:8px;letter-spacing:.04em}.home-footer span:first-child{display:flex;align-items:center;gap:7px}.home-footer i{width:5px;height:5px}.conversation{width:min(100%,900px);height:100%;margin:0 auto;display:flex;flex-direction:column;position:relative;padding:0 28px}.conversation-heading{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px;flex:none}.conversation-heading>div{flex:1;min-width:0}.conversation-heading h2{font-size:13px;font-weight:580;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eyebrow{color:var(--subtle);font-size:8px;letter-spacing:.15em}.back-home{display:none}.message-list{overflow:auto;flex:1;padding:25px 12px 20px;scroll-behavior:smooth;overscroll-behavior:contain}.message-row{display:flex;gap:11px;max-width:730px;margin:0 auto 23px;animation:rise .25s ease both}.message-row.user{justify-content:flex-end}.message-avatar{width:27px;height:27px;flex:none;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;color:var(--accent);font-size:10px}.message-content{min-width:0;max-width:min(82%,680px);font-size:13px;line-height:1.75;color:var(--text);overflow-wrap:anywhere}.message-row.user .message-content{background:var(--surface-2);padding:9px 13px;border-radius:14px 14px 4px 14px}.message-row.assistant .message-content{padding:1px 0}.message-content pre{max-width:100%;overflow:auto;background:var(--surface-2);border:1px solid var(--line);border-radius:11px;padding:14px;font-size:11px;line-height:1.6}.message-content code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.91em}.message-content :not(pre)>code{background:var(--surface-2);padding:2px 5px;border-radius:4px}.message-content p{margin:0 0 11px}.message-content p:last-child{margin-bottom:0}.message-content ul,.message-content ol{padding-left:20px}.message-actions{display:flex;gap:5px;margin-top:5px}.message-actions button{background:transparent;border:0;color:var(--subtle);font-size:9px;padding:4px 7px}.message-actions button:hover{color:var(--text)}.conversation-compose{padding:12px 0 max(15px,var(--safe-b));flex:none;background:linear-gradient(180deg,transparent,var(--bg) 22%)}.conversation-compose .composer-wrap{max-width:720px}.conversation-compose .composer{padding-top:10px}.scroll-bottom{position:absolute;bottom:107px;right:38px;border:1px solid var(--line-strong);background:var(--surface);border-radius:50%;width:32px;height:32px;box-shadow:var(--shadow)}.auth-layer{position:fixed;inset:0;z-index:20;background:rgba(4,6,10,.56);backdrop-filter:blur(8px);display:grid;place-items:center;padding:20px}.auth-card{position:relative;background:var(--surface);border:1px solid var(--line-strong);box-shadow:var(--shadow);border-radius:22px;padding:32px;width:min(100%,405px);animation:rise .25s ease}.auth-back{background:none;border:0;color:var(--muted);font-size:11px;padding:0;margin-bottom:27px}.auth-brand{padding:0;font-size:11px;margin-bottom:22px}.auth-brand .brand-mark{width:25px}.auth-brand .brand-mark svg{width:25px}.auth-card h2{font-size:24px;letter-spacing:-.04em;font-weight:560;margin:0}.auth-card>p{color:var(--muted);font-size:12px;margin:5px 0 24px}.field-label{display:block;color:var(--muted);font-size:10px;margin:14px 0 6px}.auth-input{width:100%;height:42px;background:var(--bg);border:1px solid var(--line-strong);border-radius:9px;padding:0 12px;font-size:12px}.auth-input::placeholder{color:var(--subtle)}.password-wrap{position:relative}.password-wrap .auth-input{padding-right:60px}.password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:0;color:var(--muted);font-size:10px}.auth-submit{width:100%;height:43px;border:0;border-radius:10px;background:var(--accent-strong);color:#fff;font-size:12px;font-weight:600;margin-top:20px}.auth-submit span{float:right;margin-right:8px}.auth-error{color:var(--danger)!important;font-size:11px!important;margin:9px 0 -6px!important}.auth-switch{text-align:center;font-size:10px!important;margin:18px 0 0!important}.auth-switch button{background:none;border:0;color:var(--accent);font-size:10px;padding:0}.auth-privacy{text-align:center;font-size:9px!important;color:var(--subtle)!important;border-top:1px solid var(--line);padding-top:15px;margin:21px 0 0!important}.mobile-nav{display:none}.toast-region{position:fixed;bottom:20px;right:20px;z-index:30;display:grid;gap:8px}.toast{padding:11px 14px;border:1px solid var(--line-strong);border-radius:11px;background:var(--surface-3);box-shadow:var(--shadow);font-size:11px;animation:rise .2s ease}.toast.error{border-color:color-mix(in srgb,var(--danger) 40%,var(--line))}.offline-banner{color:var(--danger)}@keyframes rise{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1440px){.welcome{transform:translateY(-10px)}}@media(max-width:760px){body{overflow:hidden}.sidebar{position:fixed;left:0;top:0;bottom:0;width:min(82vw,290px);padding-top:max(21px,env(safe-area-inset-top));transform:translateX(-102%);transition:transform 230ms ease;background:var(--surface);box-shadow:var(--shadow)}.sidebar.open{transform:translateX(0)}.main-panel{width:100%}.topbar{height:58px;padding:0 14px}.menu-toggle{display:grid}.workspace-select{margin-right:auto;margin-left:7px}.connection{display:none}.view{padding-bottom:calc(65px + var(--safe-b))}.welcome{width:min(100% - 34px,560px);padding:35px 0 16px}.hero-mark{margin-top:24px}.welcome h1{font-size:clamp(29px,8vw,36px)}.hero-copy{font-size:12px;margin-bottom:25px}.suggestions{gap:7px}.suggestion{padding:9px 8px;gap:8px}.suggestion-icon{width:26px;height:26px}.suggestion strong{font-size:9px}.suggestion small{font-size:8px}.home-footer{font-size:7px;margin-top:21px}.conversation{padding:0 14px}.conversation-heading{height:60px}.back-home{display:grid}.message-list{padding:20px 4px}.message-content{font-size:12px}.conversation-compose{position:sticky;bottom:0;padding-bottom:max(10px,var(--safe-b))}.mobile-nav{position:fixed;display:flex;bottom:0;left:0;right:0;height:calc(61px + var(--safe-b));padding:5px 9px var(--safe-b);justify-content:space-around;align-items:center;border-top:1px solid var(--line);background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(16px);z-index:4}.mobile-item{height:48px;min-width:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;color:var(--subtle);font-size:8px}.mobile-item.active{color:var(--accent)}.mobile-item svg{width:18px;height:18px}.avatar.mini{width:20px;height:20px;font-size:8px}.toast-region{left:12px;right:12px;bottom:calc(72px + var(--safe-b))}.toast{text-align:center}.auth-card{padding:25px}.scroll-bottom{right:20px;bottom:100px}}@media(max-width:380px){.welcome{width:calc(100% - 26px);padding-top:23px}.welcome-kicker{font-size:8px;gap:7px}.kicker-line{width:15px}.welcome h1{font-size:28px}.hero-copy{font-size:11px}.suggestion{gap:6px;padding:8px 6px}.suggestion-icon{width:24px;height:24px}.suggestion small{font-size:7px}.home-footer span:last-child{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Account preferences */
.profile-dialog{width:min(410px,calc(100% - 28px));padding:24px;border:1px solid var(--line-strong);border-radius:19px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.profile-dialog::backdrop{background:rgba(4,6,10,.56);backdrop-filter:blur(8px)}.profile-dialog-head{display:flex;align-items:center;justify-content:space-between}.profile-dialog-head h2{margin:3px 0 0;font-size:20px;font-weight:560;letter-spacing:-.04em}.settings-profile{display:flex;align-items:center;gap:10px;margin:20px 0;padding:13px;border:1px solid var(--line);border-radius:12px}.settings-profile>span:last-child,.settings-line>span:first-child{display:grid;gap:2px}.settings-profile strong,.settings-line strong{font-size:11px;font-weight:600}.settings-profile small,.settings-line small{font-size:10px;color:var(--muted)}.settings-line{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 2px}.settings-badge{color:var(--success);font-size:9px}.settings-note{font-size:10px;color:var(--muted);line-height:1.6;margin:15px 0}.profile-dialog-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:14px;color:var(--subtle);font-size:9px}.logout-button{border:1px solid var(--line-strong);background:var(--surface-2);color:var(--text);border-radius:8px;padding:7px 12px;font-size:10px}
/* Projects */
.projects-view{max-width:1050px}.project-create-form{margin-bottom:28px}.project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.project-card{display:flex;flex-direction:column;align-items:stretch;min-height:160px}.project-card-counts{color:var(--subtle);font-size:10px;margin-top:auto;padding:8px 0}.project-card .knowledge-cancel{align-self:flex-start}.project-detail{margin:22px 0 32px;padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--surface-2)}.project-detail-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid var(--line)}.project-detail-head h2{margin:8px 0;font-size:clamp(22px,4vw,32px);letter-spacing:-.04em}.project-detail-head p{max-width:640px;color:var(--muted);font-size:12px;line-height:1.7}.project-plan-button{flex:none;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface-3);color:var(--text);padding:10px 13px;font-size:11px}.project-plan-button:disabled{opacity:.5}.project-info-section{margin:18px 0}.project-info-section h3{font-size:13px;margin:0 0 9px}.project-info-section ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}.project-info-section li{padding:10px 12px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:11px}.project-item-form{margin-top:20px}.project-item-form select{max-width:180px}.project-plan-dialog{width:min(640px,calc(100% - 28px));max-height:min(82vh,760px);overflow:auto;padding:24px;border:1px solid var(--line-strong);border-radius:18px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.project-plan-dialog::backdrop{background:rgba(4,6,10,.62);backdrop-filter:blur(8px)}.project-plan-dialog h2{margin:8px 0 12px;font-size:23px;letter-spacing:-.04em}.project-plan-dialog p{color:var(--muted);font-size:12px;line-height:1.7}.project-plan-milestone{padding:12px 0;border-top:1px solid var(--line)}.project-plan-milestone h3{font-size:13px;margin:0}.project-plan-milestone ul{padding-left:20px;color:var(--muted);font-size:11px;line-height:1.8}.project-estimate-note{font-size:10px!important}.project-plan-dialog .knowledge-dialog-actions{position:sticky;bottom:-24px;margin:12px -24px -24px;padding:14px 24px;background:var(--surface);border-top:1px solid var(--line)}
@media(max-width:760px){.project-list{grid-template-columns:1fr}.project-detail{padding:15px}.project-detail-head{display:block}.project-plan-button{margin-top:8px}.project-plan-dialog{padding:20px}}
