@layer base, ui;
@layer base{*{box-sizing:border-box}[hidden]{display:none!important}:root{--ink:#201e25;--muted:#67636d;--surface:#fff;--rail:#f6f5f8;--line:#e9e5ee;--hover:#eeebf2;--accent:#4d3a79;--accentt:#f0eaf8;--btn:#2f2544;--shadow:0 2px 12px #2715400d;font:15px/1.56 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light}body{margin:0;color:var(--ink);background:var(--surface)}button,textarea,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.52}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:#50367d}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.66;stroke-linecap:round;stroke-linejoin:round;flex:none}.symbols{position:absolute;width:0;height:0;pointer-events:none}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(100%);white-space:nowrap}.skip:focus{position:fixed;top:8px;left:8px;z-index:12;background:white;padding:8px}.muted{color:var(--muted);font-size:.87rem}.strong,.primary{background:var(--btn);color:#fff;border:1px solid var(--btn)}h1,h2,h3{line-height:1.14}}
@layer ui{.shell{height:100vh;height:100dvh;min-height:0;display:grid;grid-template-columns:256px minmax(0,1fr);overflow:hidden}.shell.closed{grid-template-columns:minmax(0,1fr)}.shell.closed #rail{display:none}#rail{background:var(--rail);padding:12px 11px 9px;border-right:1px solid var(--line);min-height:0;display:flex;flex-direction:column;gap:3px}.rail-top{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:1px 2px 11px}.appmark,.icon-btn,.nav-action,.project-row>button,.chat-row button,#account-menu,#profile-pop button,.nav-search,.note-button,#suggestions button{border:0;background:none;text-align:left;display:flex;align-items:center;gap:9px;border-radius:9px;padding:8px}.appmark{font-weight:700;letter-spacing:.055em}.monogram,.avatar{width:28px;height:28px;display:grid;place-items:center;flex:none;font-family:Georgia,serif;font-size:18px;background:var(--accentt);color:var(--accent);border-radius:8px}.avatar{border-radius:50%;font-family:inherit;font-size:.77rem;font-weight:760}.icon-btn{justify-content:center;width:34px;height:34px;flex:none;padding:5px}.icon-btn:hover,.appmark:hover,.nav-action:hover,.project-row>button:hover,.chat-row button:hover,#account-menu:hover,#profile-pop button:hover,.note-button:hover,#suggestions button:hover{background:var(--hover)}.nav-action{font-weight:640}.nav-search{cursor:text;margin:2px 0 8px}.nav-search input{padding:0;width:100%;min-width:0;border:0;background:none}.nav-search input::placeholder{color:var(--ink)}.nav-scroll{flex:1;overflow:auto;min-height:0;padding-right:2px}.nav-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);padding:3px 8px}.nav-label h2{font-size:.76rem;letter-spacing:.02em;font-weight:675;margin:4px 0}.nav-label .icon-btn{width:24px;height:24px}.nav-label .icon-btn svg{width:15px;height:15px}.project-row>button,.chat-row>button:first-child{font-size:.9rem;width:100%;color:var(--ink);min-width:0;padding:6px 8px;white-space:nowrap}.project-row svg{width:17px;height:17px;color:#686171}.label{overflow:hidden;text-overflow:ellipsis}.project-row.on>button:first-child,.chat-row.on{background:#eae4f2}.project-row{border:1px solid transparent;border-radius:10px}.project-row.over{background:var(--accentt);border-color:var(--accent);outline:1px solid var(--accent)}.project-children{padding:1px 0 2px 15px}.project-children .empty-nav{font-size:.76rem;padding:5px 7px;color:var(--muted)}.chat-row{display:flex;align-items:center;gap:2px;border-radius:9px;min-width:0;cursor:grab}.chat-row:active{cursor:grabbing}.chat-row>button:first-child{flex:1}.chat-move{padding:4px!important;width:29px;justify-content:center;flex:none;color:var(--muted)}.chat-move svg{width:15px;height:15px}.chat-row:not(:hover):not(:focus-within):not(.on) .chat-move{opacity:.72}.empty-nav{font-size:.82rem;padding:6px 8px;color:var(--muted)}.rail-bottom{position:relative}.rail-bottom #account-menu{width:100%;gap:9px}.rail-bottom #account-menu>span:nth-child(2){flex:1;text-align:left}.rail-bottom strong,.rail-bottom small{display:block;line-height:1.38}.rail-bottom strong{font-size:.87rem}.rail-bottom small{color:var(--muted);font-size:.72rem}.rail-bottom svg{width:14px;height:14px}#profile-pop{position:absolute;bottom:53px;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);width:100%;padding:5px;z-index:5}#profile-pop button{width:100%}#main{display:flex;flex-direction:column;min-width:0;height:100%;min-height:0}.topbar{height:54px;flex:none;display:flex;align-items:center;gap:8px;padding:7px 15px}.head-title{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px;overflow:hidden}.head-title strong,.head-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.head-title strong{font-weight:630}.head-title span{font-size:.82rem;color:var(--muted)}#new-mobile,#rail-open{display:none}.closed #rail-open{display:grid}#viewport{overflow:auto;flex:1;min-height:0;outline-offset:-2px;margin:0}.column{max-width:792px;padding:0 25px;margin:0 auto}.column#conversation{min-height:100%;display:flex;flex-direction:column;justify-content:flex-start}#empty{margin:auto;text-align:center;padding:24px 0 32px}#empty h1{font-weight:625;font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:-.04em;margin:8px 0 12px}#empty p{margin:0 0 20px;color:var(--muted)}.spark{display:inline-grid;place-items:center;background:var(--accentt);color:var(--accent);width:41px;height:41px;border-radius:12px;font-size:1.35rem}#suggestions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}#suggestions button{border:1px solid var(--line);font-size:.82rem}.composer-zone{padding:4px 0 4px;flex:none;background:var(--surface)}#composer{border:1px solid #dcd7e6;box-shadow:var(--shadow);border-radius:25px;padding:8px 9px 8px 12px}#body{width:100%;resize:none;display:block;min-height:43px;max-height:160px;border:0;background:transparent;padding:10px 6px 5px;line-height:1.4;outline:none}#body:focus{outline:none}#composer:focus-within{border-color:#ab9abf}.compose-tools{display:flex;align-items:center;gap:8px;padding:4px 1px 0}.mode select{font-size:.79rem;border:1px solid var(--line);border-radius:14px;background:var(--rail);padding:5px 7px;font-weight:600}.footnote{font-size:.72rem;color:var(--muted);text-align:center;margin:8px 0 max(3px,env(safe-area-inset-bottom))}#mode-hint{flex:1;font-size:.76rem;color:var(--muted)}.note-button{padding:5px 7px;font-size:.78rem;flex:none}.send{display:grid;place-items:center;border:0;width:35px;height:35px;flex:none;background:var(--btn);color:#fff;border-radius:50%;padding:0}.send:hover{background:var(--accent)}#notice:not(:empty){font-size:.79rem;color:var(--muted);padding:2px 7px 6px}#notice.issue{color:#87371e}#log{display:flex;flex-direction:column;gap:22px;padding:19px 0 25px}.msg{overflow-wrap:anywhere;max-width:100%}.msg.human{align-self:flex-end;max-width:min(88%,640px);background:#f2eff5;border-radius:19px;padding:9px 15px}.msg:not(.human){align-self:flex-start;width:100%}.msg p{white-space:pre-wrap;margin:4px 0 0}.by{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:.73rem;color:var(--muted)}.by strong{color:var(--ink);font-weight:680}.tag{border-radius:9px;padding:0 6px;background:var(--accentt);color:#543b7b}#history-more{align-self:center;margin-top:8px;font-size:.81rem}dialog{border:1px solid var(--line);box-shadow:var(--shadow);border-radius:17px;padding:20px;background:var(--surface);color:var(--ink);max-height:85dvh;width:min(475px,calc(100% - 30px));overflow:auto}dialog#tools{width:min(680px,calc(100% - 30px))}dialog::backdrop{background:#20182b4d}dialog h2{margin:0 0 10px;font-size:1.22rem}dialog p{margin:10px 0;font-size:.89rem}dialog label{font-weight:650;display:block;margin:8px 0}dialog label>* , .filters>*{display:block;width:100%;margin-top:4px;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fcfbfd}dialog button,#history-more{padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:var(--rail)}dialog button.strong{background:var(--btn);color:white}.modal-buttons,.tool-head,.filters{display:flex;gap:7px;align-items:center}.tool-head{justify-content:space-between}.tool-head h2{margin:0}.modal-buttons{justify-content:flex-end;margin-top:10px}.source-card,.qitem{padding:12px 0;border-bottom:1px solid var(--line)}.source-card h3{margin:0}.source-card p,.qitem p{margin:5px 0}.qitem .btn-link{border:0;padding:4px 0;text-decoration:underline;background:none;color:var(--accent)}#scrim{display:none}.sign{max-width:670px;margin:auto;padding:30px 20px}.sign .branding{display:flex;align-items:center;gap:8px;font-weight:700;letter-spacing:.08em;font-size:.81rem}.sign .branding span{background:var(--accentt);color:var(--accent);padding:6px 9px;border-radius:7px}.sign h1{font-size:2.7rem;letter-spacing:-.04em}.sign .intro{color:var(--muted)}.loginbox{border:1px solid var(--line);border-radius:13px;padding:14px;margin:12px 0;max-width:490px}.loginbox h2{margin:0 0 5px}.loginbox label{display:block;font-size:.84rem}.loginbox input{display:block;width:100%;background:#fcfbfd;border:1px solid var(--line);border-radius:7px;padding:7px;margin:4px 0}.sign button{padding:7px 10px;border-radius:7px}.sign .privacy,.sign p{color:var(--muted);font-size:.89rem}.sign details{margin-top:10px}.sign .issue{color:#87371e}.footer{font-size:.85rem}
@media(max-width:720px){.shell,.shell.closed{grid-template-columns:minmax(0,1fr)}#rail,.shell.closed #rail{display:none}.shell.drawer #rail{display:flex;position:fixed;inset:0 auto 0 0;width:min(86vw,290px);z-index:8;box-shadow:10px 0 26px #27154224}.shell.drawer #scrim{display:block;position:fixed;inset:0;z-index:7;background:#1d142346;border:0}#rail-open,#new-mobile,.closed #rail-open{display:grid}.topbar{padding:7px 9px;height:48px}.column{padding:0 12px}.head-title span{display:none}#mode-hint{visibility:hidden;max-width:0;overflow:hidden}#composer{border-radius:21px}.compose-tools .note-button{margin-left:auto}.footnote{font-size:.67rem}.chat-row .chat-move{opacity:1!important}.mode select{font-size:.82rem}.msg.human{max-width:92%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}}

.edge-open{display:inline-block;padding:8px 12px;border-radius:9px;text-decoration:none}.sign #domain-login-status:not(:empty){color:#473573;font-weight:600}
