*{box-sizing:border-box}#ultimate-root{--bg:#fff;--side:#f7f8fa;--panel:#fff;--line:#e9ebf0;--text:#242934;--muted:#7c8290;--soft:#a4a9b4;--accent:#6d73bf;--accent-soft:#efeffb;--input:#f9fafc;--shadow:0 8px 32px #252a4012;color:var(--text);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.6;height:100dvh;width:100%;overflow:hidden;font-weight:400;-webkit-font-smoothing:antialiased;letter-spacing:.015em}
#ultimate-root[data-theme=dark]{--bg:#1c1e25;--side:#17191f;--panel:#23262e;--line:#343742;--text:#e6e7ef;--muted:#a0a5b7;--soft:#777d90;--accent:#b0aff4;--accent-soft:#30304a;--input:#292c35;--shadow:0 8px 32px #0003}
button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;letter-spacing:inherit}button{background:none;border:0}button:disabled{opacity:.48;cursor:not-allowed}a{color:inherit;text-decoration:none}input,textarea,select{border:1px solid var(--line);background:var(--panel);border-radius:11px;padding:11px 13px;width:100%;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus,select:focus{border-color:#a8a9d9;box-shadow:0 0 0 3px #a8a9d91a}textarea{resize:vertical;line-height:1.75}input[type=checkbox]{width:16px;height:16px;accent-color:#7775bd;flex-shrink:0;padding:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #9292cc;outline-offset:3px;border-radius:8px}::selection{background:#dce1ff;color:#252d49}h1,h2,h3,h4,p{margin:0}h1,h2,h3{font-weight:550}h1{letter-spacing:-.055em}h2{font-size:17px;letter-spacing:-.015em}h3{font-size:15px}small{font-size:14px}pre,code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;letter-spacing:0}pre{white-space:pre-wrap;overflow-wrap:anywhere}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;border-radius:11px;font-size:15px;font-weight:500;transition:background .16s,transform .16s;white-space:nowrap;line-height:1.5}.button:hover:not(:disabled){transform:translateY(-1px)}.primary{background:#292e3b;color:#fff;box-shadow:0 3px 8px #252a3d10}.primary:hover:not(:disabled){background:#444a60}.secondary{background:var(--panel);border:1px solid var(--line)}.secondary:hover{background:var(--input)}.quiet{color:var(--muted)}.quiet:hover{color:var(--text);background:var(--input)}.danger{color:#b45e64}.danger-fill{background:#ba6066;color:#fff}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;color:var(--muted);padding:6px}.icon-button:hover{background:var(--accent-soft);color:var(--text)}.muted{color:var(--muted);font-size:15px}.badge{font-size:13px;color:var(--muted);background:var(--input);border:1px solid var(--line);padding:3px 8px;border-radius:6px;white-space:nowrap}.eyebrow{font-size:12px;font-weight:550;letter-spacing:.19em;color:var(--muted)}
.app-shell{display:flex;height:100dvh;overflow:hidden}.sidebar{width:250px;min-width:250px;background:var(--side);border-right:1px solid var(--line);padding:24px 18px 14px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:15px;height:48px;margin:0 9px 26px;width:fit-content}.brand img{width:111px;height:48px;object-fit:contain}.brand-divider{height:22px;width:1px;background:#dadde5}.brand-ai{font-size:20px;font-weight:500;color:#73779a;letter-spacing:-.05em}.new-chat{border:1px solid #e0e3ed;background:var(--panel);box-shadow:0 2px 4px #252a4010;width:100%;justify-content:flex-start;padding:12px 15px;margin-bottom:20px;font-size:15px}.new-chat .icon{color:var(--accent);margin-right:6px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.nav-item{display:flex;gap:12px;align-items:center;padding:11px 13px;border-radius:9px;color:#737b89;text-align:left;width:100%;font-size:15px}.nav-item .icon{width:18px;height:18px}.nav-item:hover{background:#e8eaf24d;color:var(--text)}.nav-item.active{background:var(--accent-soft);color:#6a6b9c;font-weight:500}.nav-item i{width:4px;height:4px;border-radius:50%;background:var(--accent);margin-left:auto}.history-head{display:flex;align-items:center;justify-content:space-between;padding:0 9px 0 13px;margin-top:28px;color:var(--soft);font-size:12px;letter-spacing:.08em}.history-head .icon{width:15px;height:15px}.sidebar-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;margin:8px 3px 12px;padding:0 10px;color:var(--soft)}.sidebar-search .icon{width:14px;height:14px}.sidebar-search input{background:transparent;border:0;padding:7px 0;font-size:13px;box-shadow:none}.sidebar-search input::placeholder{color:var(--soft)}.history-list{flex:1;min-height:50px;overflow:auto}.history-empty{font-size:13px;color:var(--soft);padding:18px 13px}.history-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 12px;border-radius:8px;color:var(--muted);font-size:14px}.history-item .icon{width:14px;height:14px;opacity:.7}.history-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item:hover,.history-item.selected{background:var(--panel);color:var(--text)}.sidebar-bottom{margin-top:auto}.admin-nav{border-top:1px solid var(--line);padding:11px 0}.admin-nav .nav-item{font-size:14px;padding:8px 12px}.account{display:flex;align-items:center;gap:10px;width:100%;border-top:1px solid var(--line);padding:17px 7px 2px;text-align:left}.avatar{width:33px;height:33px;background:linear-gradient(135deg,#dfe4f4,#e9e3f2);border:1px solid #d6daed;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#6e708d;font-size:14px}.account>span:nth-child(2){flex:1;min-width:0}.account strong{display:block;font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account small{display:block;color:var(--soft);font-size:12px;margin-top:1px}.account>.icon{width:16px;height:16px;color:var(--soft)}.workspace{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden}.topbar{height:74px;min-height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid var(--line);gap:10px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:13px}.model-picker{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:500;padding:8px 0}.model-picker>.icon:first-child{width:18px;height:18px;color:var(--accent)}.model-picker>.icon:last-child{width:13px;height:13px;color:var(--muted)}.source-pill{font-size:12px;letter-spacing:.03em;padding:3px 7px;border:1px solid var(--line);border-radius:5px;color:var(--soft)}.home-link{color:var(--soft);font-size:13px;display:flex;align-items:center;gap:7px;margin-left:10px}.home-link:hover{color:var(--text)}.home-link .icon{width:12px;height:12px}.pill{display:flex;align-items:center;gap:7px;padding:6px 10px;border-radius:7px;color:var(--muted);font-size:13px}.pill .icon{width:14px;height:14px}.pill:hover,.pill.selected{background:var(--accent-soft);color:var(--accent)}.page-title{font-size:16px;font-weight:500}.mobile-menu,.sidebar-shade{display:none}
#page{flex:1;min-height:0}.chat-page{display:flex;flex-direction:column}.chat-scroll{flex:1;overflow-y:auto;scroll-behavior:smooth;min-height:0}.welcome{max-width:800px;margin:0 auto;min-height:100%;padding:50px 30px 35px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.hero-mark{position:relative;width:65px;height:65px;border-radius:22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f6f6fd,#e9edff 50%,#f0eaf8);box-shadow:inset 0 1px 2px #fff,0 12px 38px #b9b8d734;margin-bottom:30px;transform:rotate(-7deg)}.hero-mark:before{content:"";position:absolute;inset:6px;border:1px solid #fff9;border-radius:17px}.hero-mark .icon{width:34px;height:34px;stroke-width:1.1;color:#8385b9;transform:rotate(7deg)}.welcome .eyebrow{font-size:12px;letter-spacing:.21em;color:#9b9eaf}.welcome h1{font-size:43px;line-height:1.5;font-weight:450;margin:15px 0 12px;color:var(--text);letter-spacing:-.06em}.welcome h1 span{color:#898ba9}.welcome>p{font-size:15px;color:var(--muted);line-height:1.9}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%;margin-top:38px;max-width:700px}.suggestion{text-align:left;border:1px solid var(--line);border-radius:14px;padding:18px 17px 15px;background:var(--panel);position:relative;transition:box-shadow .2s,transform .2s,border-color .2s}.suggestion:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#d9dcec}.suggestion>.icon:first-child{color:#989bb0;width:19px;height:19px;margin-bottom:12px}.suggestion strong{display:block;font-size:14px;font-weight:500;margin-bottom:5px}.suggestion span{display:block;font-size:12px;color:var(--soft);white-space:nowrap}.suggestion>.icon:last-child{position:absolute;right:12px;top:20px;width:12px;height:12px;color:#b9bdc9}.composer-wrap{width:100%;max-width:880px;margin:0 auto;padding:10px 35px 0}.composer{background:var(--panel);border:1px solid #dfe2eb;border-radius:20px;box-shadow:0 6px 24px #31395107,0 1px 3px #31395104;padding:15px 18px 12px;transition:border-color .2s,box-shadow .2s}.composer:focus-within{border-color:#b8bbd9;box-shadow:0 8px 30px #a2a9d815}.composer textarea{resize:none;border:0;box-shadow:none;padding:3px 2px;background:transparent;font-size:16px;min-height:52px;max-height:180px;line-height:1.7}.composer textarea::placeholder{color:#a7aabb}.composer-tools{display:flex;align-items:center;justify-content:space-between;margin-top:7px}.composer-tools>div{display:flex;align-items:center;gap:14px}.context-toggle{display:flex;align-items:center;gap:6px;color:var(--soft);font-size:12px;padding:5px 6px;border-radius:6px}.context-toggle .icon{width:14px;height:14px}.context-toggle.on{color:#8b8ca4}.context-toggle:hover{background:var(--accent-soft)}.composer-hint{font-size:12px;color:var(--soft)}.send-button{width:33px;height:33px;border-radius:10px;background:#2a3040;color:#fff;display:flex;align-items:center;justify-content:center}.send-button:hover{background:#5f638a}.send-button .icon{width:18px;height:18px}.composer-disclaimer{font-size:12px;color:var(--soft);text-align:center;margin:11px 0 9px}.composer-disclaimer span{margin-left:16px;font-size:12px}.setup-banner{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);padding:0 7px 12px}.setup-banner>.icon{width:14px;height:14px;color:#9a9bb6}.setup-banner button{display:flex;align-items:center;gap:4px;color:#777baf;margin-left:auto;font-size:12px}.setup-banner button .icon{width:11px;height:11px}.site-footer{min-height:29px;display:flex;justify-content:center;align-items:center;gap:15px;flex-wrap:wrap;color:#aaaeba;font-size:12px;padding:4px 10px 9px;letter-spacing:0}.site-footer a{display:inline-flex;align-items:center;gap:3px}.site-footer a:hover{color:var(--text)}.site-footer img{width:11px;height:11px}.login-welcome{height:100%;padding:35px}.login-welcome h1{font-size:40px;margin-bottom:20px}.login-welcome .login-button{margin-top:28px}.login-welcome .quiet{font-size:13px;margin-top:5px}.login-note{color:var(--soft);font-size:12px;margin-top:28px}
.messages{max-width:880px;margin:0 auto;padding:30px 35px}.message{margin-bottom:28px}.user-message{display:flex;justify-content:flex-end;padding-left:60px}.user-bubble{max-width:88%;background:var(--side);border:1px solid var(--line);padding:13px 18px;border-radius:17px 17px 5px 17px;font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85}.assistant-message{display:flex;gap:14px}.assistant-avatar{width:29px;height:29px;min-width:29px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(135deg,#f7f6ff,#e5e9f8);color:#8b8cbd;display:flex;align-items:center;justify-content:center;margin-top:3px}.assistant-avatar .icon{width:18px;height:18px}.answer-body{min-width:0;flex:1}.answer-label{font-size:13px;font-weight:500;color:var(--muted);display:flex;align-items:center;gap:8px;margin:5px 0 11px}.live-dot{width:5px;height:5px;background:#9f9acb;border-radius:50%;animation:breathe 1.5s infinite}.thinking{background:var(--input);border:1px solid var(--line);border-radius:10px;margin-bottom:17px;font-size:13px}summary::-webkit-details-marker{display:none}.thinking-content{white-space:pre-wrap;max-height:230px;overflow:auto;color:var(--muted);padding:4px 13px 12px;font-size:14px;line-height:1.8}.markdown{font-size:16px;line-height:1.95;overflow-wrap:anywhere}.markdown p{margin:10px 0}.markdown h1{font-size:25px;margin:20px 0 10px}.markdown h2{font-size:20px;margin:20px 0 10px}.markdown h3{font-size:16px;margin:17px 0 7px}.markdown ul,.markdown ol{padding-left:24px}.markdown li{margin:6px 0}.markdown pre{background:#222633;color:#e2e4ef;padding:18px;border-radius:11px;overflow-x:auto;white-space:pre;margin:16px 0;font-size:14px;line-height:1.8}.markdown :not(pre)>code{background:var(--accent-soft);color:var(--accent);padding:2px 5px;border-radius:4px;font-size:14px}.markdown a{color:#797fbd;text-decoration:underline;text-underline-offset:3px}.markdown blockquote{border-left:3px solid #d5d5e9;padding-left:17px;color:var(--muted);margin:14px 0}.markdown table{border-collapse:collapse;font-size:14px;max-width:100%;display:block;overflow:auto}.markdown th,.markdown td{border:1px solid var(--line);padding:8px 12px}.markdown th{background:var(--side)}.is-streaming{white-space:pre-wrap}.is-streaming:after{content:'▍';font-size:14px;color:#8f8bb8;animation:breathe .8s infinite}.answer-actions{display:flex;align-items:center;gap:2px;margin-top:10px}.answer-actions .icon-button{width:28px;height:28px}.answer-actions .icon{width:14px;height:14px}.answer-actions>span{font-size:12px;color:var(--soft);margin-left:8px}.context-details{margin-top:9px;font-size:13px;color:var(--muted)}.context-details>div{margin-top:10px;border:1px solid var(--line);border-radius:12px;padding:15px;background:var(--input);color:var(--muted)}.trace-stats{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.trace-stats span{padding:3px 7px;border-radius:5px;border:1px solid var(--line);font-size:12px}.trace-label{font-size:12px;font-weight:550;margin:14px 0 7px;color:var(--text)}.context-details pre{font-size:13px;max-height:350px;overflow:auto;line-height:1.8}.context-details details{margin-top:13px}.context-details details summary{cursor:pointer}.inline-note{font-size:13px;color:var(--muted);padding:10px;background:var(--input);border-radius:7px;margin:8px 0}.inline-note.error{background:#ba606611;color:#b9676d}
.content-page{overflow:auto}.content-inner{max-width:1080px;margin:0 auto;padding:42px 48px 55px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:30px}.page-heading h1{font-size:31px;line-height:1.45;margin:8px 0 10px;font-weight:500}.page-heading p{font-size:14px;color:var(--muted);max-width:660px}.heading-actions{display:flex;gap:10px;flex-shrink:0}.heading-actions .button{font-size:13px}.panel{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:25px 27px;margin-bottom:20px}.section-heading{display:flex;align-items:center;gap:13px;margin-bottom:21px}.section-heading h2{font-size:15px;margin:0 0 4px}.section-heading p{font-size:13px;color:var(--muted)}.section-heading>.badge{margin-left:auto}.section-icon{width:36px;height:36px;border-radius:11px;display:flex;align-items:center;justify-content:center}.section-icon .icon{width:18px;height:18px}.lavender{background:#f1eefb;color:#9990bd}.blue{background:#eef2fa;color:#8da1c4}.peach{background:#fcf1ed;color:#c39a88}.sage{background:#edf4f1;color:#88ac9a}.template-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.chip{font-size:13px;border:1px solid var(--line);border-radius:7px;padding:6px 11px;background:var(--panel);color:var(--muted)}.chip:hover,.chip.active{background:var(--accent-soft);border-color:#d8d8ee;color:var(--accent)}.prompt-editor{background:var(--input);font-size:15px;line-height:1.9}.field-hint{font-size:12px;color:var(--soft);line-height:1.8;margin-top:8px}.toggle-row{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);cursor:pointer;position:relative}.toggle-row:last-child{border:0;padding-bottom:2px}.toggle-row:first-of-type{padding-top:2px}.toggle-row strong{font-weight:500;font-size:14px;display:block}.toggle-row small{font-size:12px;color:var(--muted);display:block;margin-top:4px;line-height:1.8}.toggle-row input{position:absolute;right:0;opacity:0;width:36px;height:24px;z-index:1;cursor:pointer}.toggle-row i{width:34px;height:20px;min-width:34px;border-radius:20px;background:#dfe2e9;position:relative;transition:background .2s}.toggle-row i:before{content:'';position:absolute;left:3px;top:3px;width:14px;height:14px;background:white;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .2s}.toggle-row input:checked+i{background:#9291c7}.toggle-row input:checked+i:before{transform:translateX(14px)}.toggle-row input:focus-visible+i{outline:2px solid var(--accent);outline-offset:3px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}.field{display:flex;flex-direction:column;gap:8px;font-size:14px;margin-bottom:15px;text-align:left;min-width:0}.field>span{font-size:13px;color:var(--text);font-weight:500}.field input,.field select,.field textarea{font-size:14px}.field small{font-size:12px;line-height:1.7;color:var(--soft)}.panel .form-grid{margin-top:14px}.panel-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:18px;padding-top:20px}.panel-bottom>span{font-size:12px;color:var(--muted)}.panel-bottom .button{font-size:13px}.save-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:28px}.save-bar>span{font-size:13px;color:var(--soft)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:14px;margin:0 0 27px;padding:21px 0;background:var(--panel)}.metrics>div{padding:0 24px;border-right:1px solid var(--line)}.metrics>div:last-child{border:0}.metrics span{font-size:12px;color:var(--muted);display:block}.metrics strong{font-size:27px;font-weight:450;letter-spacing:-.035em;display:block;margin-top:8px}.metrics strong small{font-size:14px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:26px 0 15px}.section-title h2{font-size:16px}.section-title>span{font-size:12px;color:var(--soft)}.model-tags{display:flex;flex-wrap:wrap;gap:9px}.pool-panel{background:linear-gradient(135deg,var(--panel),var(--input))}.empty-state{text-align:center;border:1px dashed var(--line);padding:40px 25px;border-radius:14px;margin:18px 0 28px}.empty-state>.icon{width:29px;height:29px;color:#acaec5;stroke-width:1.25;margin-bottom:14px}.empty-state h3{font-size:15px;font-weight:450;margin-bottom:8px}.empty-state p{font-size:13px;color:var(--muted);line-height:1.9;max-width:440px;margin:0 auto}.empty-state .button{margin-top:20px;font-size:13px}.provider-card{border:1px solid var(--line);border-radius:14px;background:var(--panel);margin-bottom:20px;overflow:hidden}.provider-top{padding:20px;display:flex;align-items:center;gap:12px}.provider-logo{width:36px;height:36px;min-width:36px;border-radius:10px;background:var(--accent-soft);color:#8d8fb9;display:flex;align-items:center;justify-content:center}.provider-logo>.icon{width:19px;height:19px}.provider-top>div{flex:1;min-width:0}.provider-top h3{font-size:15px;margin-bottom:4px}.provider-top p{font-size:12px;color:var(--soft);overflow-wrap:anywhere}.provider-top p span{margin:0 6px}.status-tag{display:flex;align-items:center;gap:3px;background:#edf5f0;color:#7da58d;padding:3px 6px;border-radius:5px;font-size:12px;white-space:nowrap}.status-tag>.icon{width:11px;height:11px}.provider-models{margin:0 20px 15px;border-top:1px solid var(--line)}.provider-models>div{display:flex;align-items:center;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}.provider-models>div:last-child{border:0}.provider-models>div>div{flex:1;min-width:0}.provider-models strong{font-size:14px;font-weight:500;display:block}.provider-models code{display:block;font-size:12px;color:var(--soft);margin-top:3px;overflow-wrap:anywhere}.provider-models span,.provider-models small{font-size:12px;color:var(--muted)}.provider-footer{padding:10px 20px;border-top:1px solid var(--line);background:var(--input);font-size:12px;color:var(--soft);display:flex;align-items:center;gap:5px}.provider-footer>.icon{width:12px;height:12px}.provider-footer>span{margin-left:auto}.audit-list>div{display:flex;justify-content:space-between;gap:20px;font-size:13px;padding:12px 0;border-bottom:1px solid var(--line)}.audit-list>div:last-child{border:0}.audit-list small{color:var(--soft);white-space:nowrap;font-size:12px}.audit-list>.muted{padding-top:15px}.memory-summary{display:flex;align-items:center;gap:20px;background:linear-gradient(120deg,var(--input),var(--accent-soft));border:1px solid var(--line);border-radius:16px;padding:26px;margin:0 0 23px}.memory-orb{width:48px;height:48px;min-width:48px;border:1px solid #e1def2;background:#ffffff60;border-radius:16px;display:flex;align-items:center;justify-content:center;color:#9b95bd}.memory-orb .icon{width:24px;height:24px;stroke-width:1.3}.memory-summary strong{font-size:25px;font-weight:450;letter-spacing:-.04em}.memory-summary strong>span{font-size:14px;color:var(--muted);margin-left:6px}.memory-summary p{font-size:12px;color:var(--muted);margin-top:5px;max-width:460px}.storage{min-width:130px;margin-left:auto;text-align:right}.storage>span{font-size:13px;color:var(--muted)}.storage>div{height:4px;background:#d9ddea;border-radius:4px;margin:10px 0 6px;overflow:hidden}.storage i{height:100%;background:#a7a3d3;display:block;min-width:2px}.storage small{font-size:12px;color:var(--soft)}.memory-toolbar{display:flex;align-items:center;gap:13px;margin-bottom:20px}.memory-toolbar>.search-field{flex:1;max-width:370px}.memory-toolbar>.button{font-size:13px}.memory-toolbar>span{color:var(--soft);font-size:12px;margin-left:auto}.search-field{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:var(--panel)}.search-field>.icon{width:15px;height:15px;color:var(--soft)}.search-field input{border:0;background:transparent;box-shadow:none;padding:10px 0;font-size:14px}.memory-card{border:1px solid var(--line);border-radius:13px;display:flex;gap:15px;padding:19px 20px;background:var(--panel);margin-bottom:12px}.memory-select{padding-top:3px}.memory-card-main{min-width:0;flex:1}.memory-meta{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--soft);margin-bottom:8px}.memory-meta>span{background:var(--input);border:1px solid var(--line);padding:1px 6px;border-radius:4px}.memory-meta>time{margin-left:auto}.memory-card-main>p{font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.memory-sources{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.memory-sources button{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px;text-align:left}.memory-sources .icon{width:11px;height:11px}.memory-actions{display:flex;align-items:flex-start}.memory-actions .icon-button{width:25px;height:25px;padding:5px}.memory-actions .icon{width:14px;height:14px}.memory-help{margin-top:28px}.memory-help h2{font-size:16px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:25px 0}.steps span{display:block;color:#b3b0d0;font-size:13px;letter-spacing:.1em;margin-bottom:7px}.steps strong{font-size:14px;font-weight:500}.steps p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:6px}.table-wrap{overflow:auto}.data-table{border-collapse:collapse;width:100%;font-size:14px}.data-table th{text-align:left;font-size:12px;font-weight:500;color:var(--muted);border-bottom:1px solid var(--line);padding:10px}.data-table td{padding:13px 10px;border-bottom:1px solid var(--line)}.data-table tr:last-child td{border:0}
.modal-host:empty{display:none}.modal-shade{position:fixed;inset:0;background:#242a4040;backdrop-filter:blur(6px);z-index:100;display:flex;justify-content:center;align-items:center;padding:30px}.modal{background:var(--panel);width:520px;max-height:90dvh;border:1px solid var(--line);border-radius:19px;box-shadow:0 24px 90px #1c253333;display:flex;flex-direction:column;animation:appear .2s ease}.modal.wide{width:730px}.modal-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 25px;border-bottom:1px solid var(--line);flex-shrink:0}.modal-heading h2{font-size:16px;font-weight:550}.modal-body{padding:24px 25px;overflow:auto}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:23px}.modal-actions .button{font-size:14px}.confirm-description{font-size:15px;color:var(--muted);line-height:1.9}.segmented{display:flex;background:var(--input);border:1px solid var(--line);border-radius:10px;padding:3px;gap:3px;margin-bottom:17px}.segmented button{flex:1;border-radius:7px;padding:8px;font-size:14px;color:var(--muted)}.segmented button.active{background:var(--panel);color:var(--text);box-shadow:0 1px 4px #0001}.picker-models{margin-top:15px;max-height:52dvh;overflow:auto}.picker-model{width:100%;display:flex;align-items:center;gap:10px;padding:11px 9px;text-align:left;border-radius:10px}.picker-model:hover,.picker-model.selected{background:var(--accent-soft)}.picker-model>span:nth-child(2){flex:1;min-width:0}.picker-model strong{font-weight:500;font-size:14px;display:block}.picker-model code{font-size:12px;color:var(--soft);display:block;overflow-wrap:anywhere;margin-top:3px}.picker-model small{font-size:12px;color:var(--muted);white-space:nowrap}.picker-model>.icon{width:15px;height:15px;color:var(--accent)}.picker-group{font-size:12px;color:var(--soft);padding:15px 9px 7px}.provider-discover{display:flex;align-items:center;gap:15px;margin:18px 0}.provider-discover .button{font-size:13px}.provider-discover>span{font-size:12px;color:var(--soft)}.provider-error{font-size:13px;color:#b96a70;line-height:1.9;white-space:pre-wrap}.provider-error:empty{display:none}.provider-error:not(:empty){padding:12px;border-radius:8px;background:#b96a700a;border:1px solid #b96a7020;margin:10px 0}.model-selection-head{display:flex;justify-content:space-between;align-items:center;padding-top:14px;border-top:1px solid var(--line);margin-top:18px}.model-selection-head h3{font-size:14px}.model-selection-head .button{font-size:13px}.form-grid.compact{gap:12px;margin:10px 0 13px;grid-template-columns:1.6fr 1fr}.compact select{font-size:13px}.discover-list{max-height:270px;overflow:auto;border:1px solid var(--line);border-radius:10px}.discover-empty{font-size:13px;color:var(--soft);padding:27px;text-align:center}.discovered-model{display:flex;align-items:center;border-bottom:1px solid var(--line);padding:11px 12px;gap:8px}.discovered-model:last-child{border:0}.discovered-model>label{display:flex;align-items:center;gap:11px;flex:1;cursor:pointer;min-width:0}.discovered-model label>span:nth-child(2){flex:1;min-width:0}.discovered-model strong{font-size:13px;font-weight:500;display:block;overflow-wrap:anywhere}.discovered-model code{font-size:12px;display:block;color:var(--soft);overflow-wrap:anywhere}.discovered-model .badge{font-size:12px}.discovered-model .icon-button{width:26px;height:26px}.discovered-model .icon{width:13px;height:13px}.check-line{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:var(--muted);line-height:1.9;margin-top:20px;cursor:pointer}.check-line input{margin-top:3px}.test-progress{font-size:12px;color:var(--muted);margin-right:auto}.sub-modal{position:fixed;inset:0;background:#1e233454;backdrop-filter:blur(3px);z-index:110;display:flex;align-items:center;justify-content:center;padding:30px}.sub-modal>div{width:430px;max-height:90dvh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:17px;padding:26px;box-shadow:var(--shadow)}.sub-modal h3{margin-bottom:20px}.modal-divider{height:1px;background:var(--line);margin:25px 0 18px}.dialog-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.dialog-buttons .button{font-size:12px;padding:10px 8px}.toast{position:fixed;bottom:33px;left:50%;transform:translateX(-50%);background:#303643;color:#f8f8fb;box-shadow:0 7px 28px #30364330;border:1px solid #ffffff10;max-width:85vw;z-index:150;padding:11px 20px;border-radius:11px;font-size:14px;animation:appear .2s;line-height:1.7}.toast.error{background:#865258}.initial-loading{height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:17px;color:var(--muted);font-size:15px}.page-loading{height:55dvh;display:flex;align-items:center;justify-content:center}.loader{width:22px;height:22px;border:2px solid #e1e3ee;border-top-color:#a2a1c8;border-radius:50%;display:inline-block;animation:spin .8s linear infinite}
.code-inner{max-width:1380px;padding-left:32px;padding-right:32px}.architecture{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:13px;margin:25px 0;overflow:hidden}.architecture>button{text-align:left;padding:17px 14px;border-right:1px solid var(--line);position:relative;transition:background .2s}.architecture>button:hover{background:var(--input)}.architecture>button:last-child{border:0}.architecture>button>span{display:block;font-size:12px;color:#aaa7c8;margin-bottom:8px}.architecture strong{font-size:13px;font-weight:500}.architecture p{font-size:12px;color:var(--muted);line-height:1.8;margin-top:6px}.architecture .icon{position:absolute;top:19px;right:10px;width:11px;height:11px;color:var(--soft)}.code-workbench{height:580px;display:flex;background:#20232d;border:1px solid #323747;border-radius:13px;overflow:hidden;box-shadow:0 12px 35px #28314210;color:#c3c8d7;font-family:"SFMono-Regular",Consolas,monospace}.code-explorer{width:200px;flex-shrink:0;background:#1c1f28;border-right:1px solid #323644;padding:0 8px;overflow:auto}.code-explorer>div{font-size:12px;letter-spacing:.08em;padding:17px 10px 18px;color:#949aae;line-height:1.8}.code-explorer>div>span{display:block;font-size:12px;margin-top:10px;color:#b9bed0}.code-explorer button{width:100%;display:flex;align-items:center;gap:7px;padding:8px 9px;text-align:left;font-size:12px;color:#a5aec3;border-radius:5px}.code-explorer button .icon{width:12px;height:12px;color:#a395c6}.code-explorer button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.code-explorer button:hover,.code-explorer button.active{background:#2b3040;color:#e4e7f3}.code-main{display:flex;flex-direction:column;min-width:0;flex:1}.code-tab{height:43px;min-height:43px;background:#1c1f28;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #303444}.code-tab>span{height:100%;padding:0 18px;display:flex;align-items:center;gap:9px;border-top:2px solid #9290bd;background:#20232d;border-right:1px solid #303444}.code-tab b{font-weight:400;font-size:13px}.code-tab .icon{width:13px;height:13px}.code-tab .button{font-size:12px;color:#9fa5b8}.code-breadcrumb{font-size:12px;color:#818ba4;padding:10px 18px}.code-content{overflow:auto;flex:1;font-size:13px;line-height:1.9;padding:0 16px 15px 4px}.code-content pre{white-space:pre;margin:0;line-height:1.9;font-size:13px;background:transparent!important}.source-highlight{background:transparent!important}.source-highlight .linenos{color:#515d79;user-select:none;padding-right:18px}.source-highlight .normal{background:transparent!important;color:#697592!important}.source-highlight .hll{background:#333b52}.source-highlight .c,.source-highlight .c1,.source-highlight .sd{color:#74858a!important;font-style:normal!important}.source-highlight .k,.source-highlight .kn,.source-highlight .kd,.source-highlight .ow{color:#b99cd9!important;font-weight:normal!important}.source-highlight .s,.source-highlight .s1,.source-highlight .s2{color:#bdd2a7!important}.source-highlight .nf,.source-highlight .nc{color:#b9c9e0!important}.source-highlight .nb{color:#d7b59e!important}.source-highlight .o,.source-highlight .p,.source-highlight .n{color:#c4cad9!important}.source-highlight .mi{color:#b4c9af!important}.code-status{display:flex;justify-content:space-between;font-size:12px;padding:5px 13px;background:#343950;color:#bbc0d6;min-height:26px}.code-content table{border-spacing:0;width:100%}.code-content td{padding:0;vertical-align:top}.code-content .linenos{width:36px}
@keyframes spin{to{transform:rotate(360deg)}}@keyframes breathe{50%{opacity:.3}}@keyframes appear{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:#adb3c443;border-radius:5px}::-webkit-scrollbar-track{background:transparent}
@media(min-height:920px){.welcome{padding-bottom:75px}.welcome h1{font-size:49px}.suggestions{margin-top:47px}.hero-mark{margin-bottom:37px}.composer-wrap{padding-bottom:15px}}
@media(max-width:1100px){.sidebar{width:220px;min-width:220px;padding-left:14px;padding-right:14px}.topbar{padding:0 24px}.content-inner{padding:34px 28px}.welcome h1{font-size:36px}.suggestion{padding:15px 12px}.suggestion span{font-size:12px}.memory-summary{gap:14px;padding:20px}.memory-summary p{max-width:290px}.architecture{grid-template-columns:repeat(3,1fr)}.architecture button:nth-child(3){border:0}.architecture button:nth-child(-n+3){border-bottom:1px solid var(--line)}.code-explorer{width:170px}.metrics>div{padding:0 17px}.home-link{display:none}}
@media(max-width:800px){.sidebar{width:200px;min-width:200px;padding:18px 11px 12px}.brand{gap:10px;margin-bottom:18px}.brand img{width:100px}.brand-ai{font-size:18px}.topbar{height:62px;min-height:62px;padding:0 20px}.topbar-left,.topbar-right{gap:6px}.model-picker{font-size:14px;gap:6px}.model-picker>span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-pill{display:none}.pill{font-size:12px;padding:5px}.welcome{padding:25px 22px}.welcome h1{font-size:32px}.hero-mark{width:53px;height:53px;border-radius:17px;margin-bottom:21px}.hero-mark:before{border-radius:13px}.hero-mark .icon{width:27px;height:27px}.welcome .eyebrow{font-size:12px}.welcome>p{font-size:13px}.suggestions{gap:8px;margin-top:25px}.suggestion{padding:13px 9px}.suggestion strong{font-size:12px}.suggestion span{display:none}.suggestion>.icon:first-child{margin-bottom:7px;width:17px}.suggestion>.icon:last-child{display:none}.composer-wrap{padding-left:22px;padding-right:22px}.composer-disclaimer span{display:none}.site-footer{gap:7px;font-size:12px}.site-footer>span{display:none}.content-inner{padding:27px 22px}.page-heading{align-items:flex-start}.page-heading h1{font-size:25px}.page-heading p{font-size:13px}.heading-actions .button{padding:8px 11px;font-size:12px}.panel{padding:21px}.form-grid{gap:10px 17px}.memory-summary{flex-wrap:wrap}.memory-summary>div:nth-child(2){flex:1}.storage{width:100%;margin-top:0;text-align:left}.storage>div{margin:7px 0}.storage small{display:none}.memory-toolbar>span{display:none}.memory-actions{flex-direction:column}.metrics{grid-template-columns:1fr 1fr;gap:15px 0}.metrics>div:nth-child(2){border:0}.provider-top{padding:16px;gap:9px;flex-wrap:wrap}.status-tag{display:none}.provider-footer>span{font-size:12px}.provider-models>div{gap:10px}.provider-models small{display:none}.steps{gap:15px}.code-explorer{width:130px}.code-explorer button{font-size:12px;padding-left:4px;gap:3px}.architecture{grid-template-columns:1fr}.architecture button{border-right:0;border-bottom:1px solid var(--line)!important;padding:12px 17px}.architecture button:last-child{border-bottom:0!important}.architecture button>span{display:inline;margin-right:12px}.architecture p{display:none}.code-workbench{height:540px}}
@media(max-width:600px){.sidebar{position:absolute;left:0;top:0;height:100%;width:250px;transform:translateX(-100%);transition:transform .2s;box-shadow:10px 0 50px #20263c15}.menu-open .sidebar{transform:translateX(0)}.menu-open .sidebar-shade{display:block;position:absolute;inset:0;background:#1e25334d;z-index:19;backdrop-filter:blur(2px)}.mobile-menu{display:inline-flex}.workspace{width:100%}.topbar{padding:0 14px;height:59px;min-height:59px}.model-picker span{max-width:150px;font-size:14px}.model-picker>.icon:first-child{display:none}.pill{gap:5px;font-size:12px}.topbar-right{margin-left:auto}.welcome{padding:20px 22px 25px;justify-content:center}.welcome h1{font-size:34px;margin-top:12px}.welcome .eyebrow{font-size:12px;letter-spacing:.16em}.welcome>p{font-size:13px}.hero-mark{margin-bottom:20px}.suggestions{gap:8px;margin-top:25px}.suggestion{padding:15px 11px}.suggestion strong{font-size:12px}.suggestion>.icon:first-child{margin-bottom:10px}.composer-wrap{padding:4px 17px 0}.composer{padding:12px 13px 9px;border-radius:17px}.composer textarea{font-size:15px;min-height:44px}.composer-tools{margin-top:4px}.send-button{width:31px;height:31px}.setup-banner{font-size:12px;padding-bottom:10px;gap:5px}.setup-banner button{font-size:12px}.composer-disclaimer{font-size:12px;margin:9px 0 5px}.site-footer{min-height:29px;padding:3px 9px 8px;gap:9px;font-size:12px}.site-footer img{width:9px;height:9px}.content-inner{padding:26px 18px 35px}.page-heading{display:block;margin-bottom:23px}.page-heading h1{font-size:27px}.page-heading p{font-size:13px;line-height:1.8}.heading-actions{margin-top:18px}.heading-actions .button{font-size:13px;padding:9px 13px}.panel{padding:19px 17px;border-radius:13px}.section-heading{gap:11px}.section-heading h2{font-size:16px}.section-heading p{font-size:12px;line-height:1.8}.form-grid{grid-template-columns:1fr;gap:0}.form-grid.compact{grid-template-columns:1.3fr 1fr;gap:9px}.toggle-row{gap:12px}.toggle-row small{font-size:12px}.field input,.field select,.field textarea,.prompt-editor{font-size:15px}.panel-bottom{align-items:flex-start;flex-direction:column;gap:12px}.save-bar>span{font-size:12px}.save-bar>.button{font-size:13px;padding:10px 13px}.memory-toolbar .button{padding:10px;font-size:12px}.memory-summary{padding:20px 17px}.memory-summary p{font-size:12px}.memory-card{padding:16px 13px;gap:10px}.memory-card-main p{font-size:14px}.steps{grid-template-columns:1fr;gap:18px;margin:20px 0}.steps>div{display:grid;grid-template-columns:23px 1fr;gap:0 8px}.steps span{grid-row:1/3;margin-top:1px}.steps p{grid-column:2;margin-top:4px}.provider-top p{font-size:12px}.provider-top>.icon-button{width:27px}.provider-logo{width:32px;height:32px;min-width:32px}.provider-footer{flex-wrap:wrap;font-size:12px;padding:10px 15px}.provider-footer>span{width:100%;margin-left:17px}.provider-models{margin:0 15px 10px}.provider-models>div>span{font-size:12px}.modal-shade{padding:12px;align-items:center}.modal{border-radius:16px;max-height:94dvh;width:100%}.modal-heading{padding:16px 18px}.modal-heading h2{font-size:15px}.modal-body{padding:18px}.modal-actions{margin-top:19px}.modal-actions .button{font-size:13px}.provider-discover{flex-direction:column;align-items:flex-start;gap:9px}.discover-list{max-height:220px}.discovered-model .badge{display:none}.test-progress{font-size:12px;max-width:150px}.sub-modal{padding:20px}.sub-modal>div{padding:21px;max-height:90dvh}.sub-modal .form-grid{grid-template-columns:1fr 1fr;gap:12px}.picker-model small{display:none}.messages{padding:23px 17px}.assistant-message{gap:9px}.assistant-avatar{width:25px;height:25px;min-width:25px;border-radius:8px}.assistant-avatar .icon{width:16px}.user-message{padding-left:35px}.user-bubble{font-size:15px;padding:11px 15px}.markdown{font-size:15px}.thinking-content{font-size:13px}.trace-stats{gap:5px}.trace-stats span{font-size:12px}.answer-label{font-size:12px}.code-inner{padding:24px 14px}.code-workbench{height:520px}.code-explorer{width:117px}.code-explorer>div{font-size:12px;padding-left:5px}.code-explorer>div>span{font-size:12px}.code-explorer button{font-size:12px;padding:7px 3px}.code-explorer button .icon{width:10px}.code-content pre{font-size:12px}.code-tab>span{padding:0 10px}.code-tab b{font-size:12px}.code-tab>.button{padding:6px;font-size:12px}.code-breadcrumb{font-size:12px;padding:8px 10px}.code-status{font-size:12px}.login-welcome h1{font-size:36px}.login-welcome .eyebrow{font-size:12px}.toast{font-size:13px;bottom:30px;width:max-content;max-width:90vw}.empty-state{padding:33px 20px}.empty-state p{font-size:13px}}
@media(max-height:700px) and (min-width:601px){.welcome{padding-top:22px;padding-bottom:22px}.hero-mark{width:43px;height:43px;border-radius:15px;margin-bottom:17px}.hero-mark:before{border-radius:11px}.hero-mark .icon{width:24px;height:24px}.welcome h1{font-size:32px;margin:9px 0}.suggestions{margin-top:22px}.suggestion{padding:13px 15px}.suggestion>.icon:first-child{margin-bottom:7px}.topbar{height:62px;min-height:62px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Final readability pass: retain whitespace while giving utility text room to breathe. */
#ultimate-root{--soft:#858c9b;--muted:#727a89}
.nav-item{font-size:16px}.admin-nav .nav-item{font-size:15px}.account strong{font-size:15px}.account small{font-size:13px}
.history-head{font-size:13px}.history-empty,.sidebar-search input{font-size:14px}.history-item{font-size:15px}
.welcome>p{font-size:16px}.suggestion strong{font-size:16px}.suggestion span{font-size:13px}
.composer-disclaimer,.composer-disclaimer span{font-size:12px}.context-toggle{font-size:13px}.setup-banner,.setup-banner button{font-size:13px}
.site-footer{font-size:12px;color:#858c9b;min-height:33px}.page-heading p{font-size:15px}.field>span{font-size:14px}.field small,.field-hint{font-size:13px}
.section-heading p,.toggle-row small{font-size:14px}.toggle-row strong{font-size:15px}.memory-summary p{font-size:13px}.empty-state p{font-size:14px}
@media(max-width:800px){.suggestion strong{font-size:14px}.welcome>p{font-size:14px}.page-heading p{font-size:14px}}
@media(max-width:600px){.site-footer{font-size:12px;gap:8px}.welcome>p{font-size:14px}.suggestion strong{font-size:13px}.setup-banner,.setup-banner button{font-size:12px}.composer-disclaimer{font-size:12px}.field small,.field-hint{font-size:13px}.section-heading p,.toggle-row small{font-size:13px}}
.architecture strong{font-size:15px}.architecture p{font-size:13px}.architecture>button>span{font-size:12px}.code-content pre{font-size:14px}.source-highlight .nn{color:#a8bedf!important}.source-highlight .nt{color:#a9cbb5!important}
@media(max-width:600px){.code-content pre{font-size:12px}.architecture strong{font-size:14px}}
.code-pages{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 16px}.code-pages>span{font-size:13px;color:var(--muted);margin-right:4px}.code-pages>button{padding:6px 10px;border:1px solid var(--line);border-radius:7px;font-size:13px;color:var(--muted)}.code-pages>button:hover{background:var(--accent-soft);color:var(--accent)}.code-focus{background:#7775ba40!important;outline:1px solid #9993ca50}
/* Keep the original brand artwork legible in dark mode. */

#ultimate-root[data-theme=dark] .nav-item{color:var(--muted)}
#ultimate-root[data-theme=dark] .nav-item.active{color:var(--accent)}
#ultimate-root[data-theme=dark] .new-chat{border-color:var(--line)}
/* v1.1: clearer hierarchy, compact navigation and anchored controls. */
#ultimate-root{font-size:16px}.sidebar{width:274px;min-width:274px;transition:width .2s,min-width .2s}.brand{gap:14px;margin-bottom:25px}.brand-ai{font-size:34px;font-weight:600;letter-spacing:-.04em}.brand img{width:130px;height:52px;padding:0;background:none;border-radius:0}.brand .logo-dark{display:none}#ultimate-root[data-theme=dark] .logo-light{display:none}#ultimate-root[data-theme=dark] .brand .logo-dark{display:block}.brand-divider{height:29px}.sidebar-controls{display:flex;justify-content:space-between;padding:10px 9px;border-top:1px solid var(--line)}.sidebar-controls .icon-button{width:36px;height:36px}.nav-item{font-size:16px;padding:12px}.new-chat{font-size:15px;min-height:46px}.account strong{font-size:15px}.account small{font-size:12px}.history-item{font-size:14px;padding-right:35px}.history-row{position:relative}.history-more{position:absolute;right:3px;top:6px;width:28px;height:28px;opacity:0}.history-row:hover .history-more,.history-row:focus-within .history-more{opacity:1}.history-popover{position:fixed;z-index:130;width:184px;padding:7px;background:var(--panel);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:12px}.history-popover .button{width:100%;justify-content:flex-start;padding:10px 12px;font-size:14px}.collapsed .sidebar{width:78px;min-width:78px;padding:22px 12px 14px}.collapsed .brand{margin:0 0 24px;width:100%;justify-content:center}.collapsed .brand img,.collapsed .brand-divider,.collapsed .sidebar .nav-item span,.collapsed .sidebar .nav-item i,.collapsed .new-chat span,.collapsed .history-head,.collapsed .sidebar-search,.collapsed .history-list,.collapsed .account>span:nth-child(2),.collapsed .account>.icon{display:none!important}.collapsed .new-chat,.collapsed .nav-item{justify-content:center;padding:12px}.collapsed .new-chat .icon{margin:0}.collapsed .brand-ai{font-size:28px}.collapsed .sidebar-controls{flex-direction:column;gap:8px;align-items:center;padding:10px 0}.collapsed .account{justify-content:center;padding-left:0;padding-right:0}.topbar{padding:0 32px;z-index:25}.pill,.home-link{font-size:15px}.pill{padding:9px 12px}.pill.selected{background:#dedbec;color:#524577;font-weight:600}#ultimate-root[data-theme=dark] .pill.selected{background:#49415f;color:#f0eaff}.home-link .icon{width:15px;height:15px}.topbar-right{gap:12px}.model-picker{font-size:17px}.model-anchor{position:relative}.model-menu{position:absolute;left:0;top:calc(100% + 16px);width:400px;max-width:calc(100vw - 34px);border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:14px;box-shadow:0 12px 50px #151b3426;z-index:80}.model-menu .picker-models{max-height:340px;overflow:auto}.model-menu .search-field{margin:12px 0}.model-menu .picker-model{padding:5px 8px;min-height:38px;gap:9px}.model-menu .picker-model strong{font-size:14px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-menu .picker-model .provider-logo{width:26px;height:26px;min-width:26px;border-radius:7px}.model-menu .picker-model .provider-logo .icon{width:16px;height:16px}.model-menu .picker-group{padding:9px 8px 5px}.model-menu .picker-model>small{display:none}.model-menu .empty-state{padding:25px 10px}.picker-footer{border-top:1px solid var(--line);margin-top:9px;padding-top:8px;display:flex;flex-direction:column}.picker-footer .button{justify-content:flex-start;font-size:14px}.welcome h1{font-size:58px;letter-spacing:-.035em;margin:10px 0 12px}.welcome .suggestions{margin-top:40px}.suggestion{min-width:0}.suggestion strong{font-size:17px}.suggestion span{font-size:13px;line-height:1.65;min-height:42px;display:block}.suggestions{width:min(750px,100%)}.composer{border-width:1px}.composer textarea{font-size:17px}.context-toggle{border-radius:8px;padding:7px 10px;color:var(--muted);font-size:13px}.context-toggle.on{background:#efecfb;color:#675c96}.temporary-composer{background:#e5e3ef!important;border-color:#aaa2c5!important;box-shadow:0 6px 24px #76639418}.temporary-composer textarea{background:transparent}.temporary-composer .context-toggle.on{background:#d3cee8}#ultimate-root[data-theme=dark] .temporary-composer{background:#343044!important;border-color:#79708c!important}#ultimate-root[data-theme=dark] .context-toggle.on{background:#403951;color:#e0d5ff}.composer-tools>div{display:flex;align-items:center;gap:8px}.composer-disclaimer{font-size:12px}.site-footer{font-size:11px;flex-wrap:wrap;min-height:38px;gap:10px;padding:6px 16px}.site-footer>span{display:inline}.site-footer img{width:12px;height:12px}.back-settings{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;padding:6px 0}.back-settings .icon{transform:rotate(180deg);width:16px}.back-settings+.page-title{border-left:1px solid var(--line);padding-left:17px;margin-left:7px}.page-heading h1{font-size:32px}.panel h2{font-size:20px}.panel{padding:28px;margin-bottom:24px}.section-heading .button{margin-left:auto}.field>span{font-size:15px}.field input,.field textarea,.field select{font-size:15px;padding:11px 13px}.field small,.field-hint{font-size:13px;line-height:1.7}.toggle-row strong{font-size:16px}.toggle-row small{font-size:13px}.settings-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:26px}.settings-entry-grid button{display:flex;align-items:center;gap:17px;border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:22px;text-align:left}.settings-entry-grid button>span{flex:1}.settings-entry-grid strong{display:block;font-size:17px;font-weight:550}.settings-entry-grid small{display:block;font-size:13px;color:var(--muted);margin-top:6px}.settings-entry-grid .icon{color:var(--accent)}.current-prompt{background:var(--accent-soft);border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin-bottom:19px}.current-prompt>span{color:var(--muted);font-size:13px;margin-right:14px}.current-prompt>strong{font-size:15px}.current-prompt p{font-size:14px;line-height:1.8;margin:10px 0 0;white-space:pre-wrap;max-height:130px;overflow:auto}.template-chips{margin-bottom:17px}.template-manager article{display:flex;border-bottom:1px solid var(--line);padding:15px 0;gap:12px}.template-use{flex:1;text-align:left;min-width:0}.template-use strong{display:block;font-size:16px}.template-use span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:13px;margin-top:8px}.template-use small{color:var(--accent);display:block;margin-top:8px}.template-manager article>div{display:flex;gap:5px}.budget-help,.model-capacity{border:1px solid var(--line);border-radius:10px;margin:18px 0;padding:14px 16px;font-size:14px}.budget-help summary,.model-capacity summary{cursor:pointer;color:var(--text)}.budget-help p{color:var(--muted);line-height:1.85;margin:12px 0 0}.budget-help pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.model-capacity summary{display:flex;justify-content:space-between;gap:10px}.model-capacity summary span{font-size:12px;color:var(--muted)}.model-capacity .form-grid{margin-top:18px}.custom-select{position:relative;min-width:0}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--input);font-size:14px;min-height:45px;text-align:left}.select-trigger .icon{width:16px}.select-options{display:none;position:absolute;top:calc(100% + 5px);left:0;right:0;background:var(--panel);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:10px;padding:5px;z-index:120}.custom-select.open .select-options{display:block}.select-options button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:11px 10px;font-size:14px;border-radius:7px}.select-options button:hover{background:var(--accent-soft)}.select-options .icon{width:15px}.sub-modal>div{max-height:90dvh;overflow:auto;width:min(580px,95vw)}.access-section{margin:22px 0}.access-section h3{font-size:16px;margin-bottom:12px}.access-people{margin-top:15px}.access-people[hidden]{display:none}.selected-users{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.selected-users>span{display:flex;align-items:center;gap:8px;background:var(--accent-soft);border-radius:8px;padding:6px 9px;font-size:13px}.selected-users button .icon{width:14px;height:14px}.user-results{max-height:240px;overflow:auto;margin-top:10px}.user-option{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:11px;border-radius:8px}.user-option:hover{background:var(--accent-soft)}.user-option strong,.user-option small{display:block}.user-option strong{font-size:14px}.user-option small{font-size:12px;color:var(--muted);margin-top:4px}.user-option>.icon{width:17px}.user-pagination{display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--muted);gap:12px;margin-top:10px}.provider-models{overflow-wrap:anywhere}.provider-models .chip{font-size:12px;white-space:nowrap}.plugin-grid{display:grid;gap:18px}.plugin-card{margin:0}.plugin-title{display:flex;align-items:center;gap:15px}.plugin-title>div{flex:1;min-width:0}.plugin-title h2{margin:0;font-size:19px}.plugin-title p{font-size:13px;overflow-wrap:anywhere;color:var(--muted);margin:7px 0 0}.plugin-counts{display:flex;gap:15px;margin:22px 0;font-size:14px;color:var(--muted)}.plugin-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mini-toggle{display:flex;align-items:center;gap:8px;margin-right:auto;font-size:14px}.plugin-detail{margin-top:24px;scroll-margin-top:20px}.plugin-detail .search-field{margin:18px 0}.plugin-catalog-list article{display:flex;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding:18px 0}.plugin-catalog-list article>div{flex:1;min-width:0}.plugin-catalog-list p{font-size:13px;color:var(--muted);line-height:1.6;margin:6px 0;white-space:pre-wrap}.plugin-catalog-list code{font-size:12px;overflow-wrap:anywhere}.plugin-result{white-space:pre-wrap;overflow-wrap:anywhere;max-height:48vh;overflow:auto;background:var(--input);padding:18px;border-radius:10px;font-size:14px;line-height:1.8}.plugin-result-name{font-size:14px;overflow-wrap:anywhere}.plugin-error{color:#ba4453;white-space:pre-wrap;font-size:14px}.attachment-list{display:flex;gap:8px;flex-wrap:wrap;padding:5px 4px 12px}.attachment-list>span{display:flex;align-items:center;gap:7px;max-width:100%;background:var(--accent-soft);padding:7px 10px;border-radius:8px;font-size:12px;overflow-wrap:anywhere}.attachment-list .icon{width:14px;height:14px}.code-content{overflow-x:hidden}.code-content .source-highlight{max-width:100%;overflow:hidden}.code-content .source-highlight pre{white-space:pre-wrap!important;overflow-wrap:anywhere;word-break:break-word;font-size:13px;line-height:1.75;padding:18px 18px 18px 56px;counter-reset:source}.code-content span[id^="source-line-"]{position:relative;counter-increment:source}.code-content span[id^="source-line-"]::before{content:counter(source);position:absolute;right:calc(100% + 17px);color:#7c8193;font-size:11px;white-space:nowrap}.code-main{min-width:0}.code-explorer{width:224px;min-width:224px}.code-workbench{height:600px}.code-inner{max-width:1500px}.code-pages{flex-wrap:wrap}.architecture p{font-size:13px}.architecture strong{font-size:16px}
@media(max-width:1000px){.sidebar{width:230px;min-width:230px}.brand img{width:112px}.brand-ai{font-size:30px}.topbar{padding:0 22px}.topbar-right{gap:7px}.provider-models>div{flex-wrap:wrap}.suggestion{padding:16px 12px}.suggestion span{font-size:12px}.suggestion strong{font-size:15px}.code-explorer{width:180px;min-width:180px}}
@media(max-width:640px){.sidebar,.collapsed .sidebar{width:260px;min-width:260px;padding:23px 18px 14px}.collapsed .sidebar .brand img,.collapsed .sidebar .brand-divider,.collapsed .sidebar .nav-item span,.collapsed .new-chat span,.collapsed .history-head,.collapsed .sidebar-search,.collapsed .history-list,.collapsed .account>span:nth-child(2),.collapsed .account>.icon{display:revert!important}.collapsed .brand .logo-dark{display:none!important}#ultimate-root[data-theme=dark] .collapsed .brand .logo-light{display:none!important}#ultimate-root[data-theme=dark] .collapsed .brand .logo-dark{display:block!important}.collapsed .brand{margin:0 9px 26px;justify-content:flex-start}.collapsed .nav-item,.collapsed .new-chat{justify-content:flex-start}.collapsed .sidebar-controls{flex-direction:row}.collapsed .account{justify-content:flex-start}.collapse-control{display:none}.history-more{opacity:1}.topbar{padding:0 14px;min-height:68px;height:68px}.topbar-left{min-width:0;gap:5px}.topbar-right{gap:6px}.pill,.home-link{font-size:12px}.pill{padding:8px 6px}.home-link .icon{display:none}.model-picker{font-size:14px;padding:6px;gap:4px}.model-picker>span{max-width:115px}.model-picker>.icon:first-child{display:none}.model-menu{position:fixed;top:67px;left:12px;right:12px;width:auto;max-width:none}.welcome h1{font-size:42px}.welcome .suggestions{margin-top:30px}.suggestions{gap:8px}.suggestion{padding:14px 10px}.suggestion strong{font-size:13px}.suggestion span{display:block;font-size:11px;line-height:1.6;min-height:54px}.hero-mark{margin-bottom:10px}.composer-wrap{padding-left:15px;padding-right:15px}.composer textarea{font-size:16px}.context-toggle{font-size:12px}.site-footer{font-size:9px;gap:4px 9px;padding:5px 10px;min-height:41px}.site-footer>span{display:block;width:100%;text-align:center}.site-footer img{width:10px;height:10px}.settings-entry-grid{gap:10px}.settings-entry-grid button{padding:15px 12px;gap:8px}.settings-entry-grid button>.icon:last-child{display:none}.settings-entry-grid strong{font-size:15px}.settings-entry-grid small{font-size:11px}.panel{padding:20px}.section-heading h2{font-size:18px}.section-heading .button{font-size:12px;padding:7px}.page-heading h1{font-size:27px}.heading-actions .button{font-size:12px}.back-settings{font-size:13px}.back-settings+.page-title{display:none}.custom-select .select-trigger{font-size:13px}.plugin-controls .button{font-size:12px}.plugin-catalog-list article{flex-direction:column;align-items:stretch}.code-explorer{width:122px;min-width:122px}.code-explorer button{font-size:10px}.code-content .source-highlight pre{font-size:11px;padding-left:40px}.code-workbench{height:500px}.template-manager article>div{flex-direction:column}.current-prompt p{font-size:13px}}
.suggestion span{white-space:normal;overflow-wrap:anywhere}.site-footer{font-size:12px}
@media(max-width:640px){.suggestion strong{font-size:14px}.suggestion span{font-size:12px;min-height:58px}.home-link{display:inline-flex;font-size:13px;white-space:nowrap}.pill{font-size:13px}.model-picker>span{max-width:100px}.site-footer{font-size:10px}.settings-entry-grid small{font-size:12px}.code-content .source-highlight pre{font-size:12px}.code-explorer button{font-size:11px}}
/* v1.2: calm motion and a compact conversation surface. */
@keyframes page-arrive{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes menu-arrive{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
#page{animation:page-arrive .18s ease-out}.button,.icon-button,.nav-item,.history-item,.suggestion,.pill,.chip,.context-toggle{transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .12s ease}.button:active,.icon-button:active,.suggestion:active{transform:scale(.98)}.model-menu,.history-popover,.select-options{animation:menu-arrive .14s ease-out}.modal{animation:page-arrive .18s ease-out}.drawer-close{display:none}
.sidebar{width:244px;min-width:244px;padding:20px 14px 12px}.brand{gap:12px;margin-bottom:19px}.brand img{width:106px;height:42px}.brand-ai{font-size:32px}.brand-divider{height:25px}.nav-item{font-size:14px;padding:9px 11px}.admin-nav .nav-item{font-size:13px}.new-chat{font-size:14px;min-height:40px;padding:10px 12px}.history-head{font-size:12px;margin-top:17px}.sidebar-search input{font-size:12px}.history-item{font-size:13px;padding-top:9px;padding-bottom:9px}.history-empty{font-size:12px}.history-more{top:3px}.sidebar-controls{padding:5px 7px}.sidebar-controls .icon-button{width:30px;height:30px}.account{padding:10px 7px}.account strong{font-size:13px}.account small{font-size:11px}.account .avatar{width:31px;height:31px;font-size:13px}.topbar{height:60px;min-height:60px;padding:0 27px}.model-picker{font-size:15px}.pill,.home-link{font-size:13px}.pill{padding:7px 10px}.source-pill{font-size:10px}.welcome{padding:25px 24px}.welcome h1{font-size:40px;margin:9px 0}.hero-mark{width:43px;height:43px;margin-bottom:8px}.hero-mark .icon{width:24px;height:24px}.welcome .suggestions{margin-top:27px;width:min(670px,100%);gap:12px}.suggestion{padding:17px 15px;min-height:114px}.suggestion>.icon:first-child{width:19px;height:19px;margin-bottom:11px}.suggestion strong{font-size:14px;margin-bottom:7px}.suggestion span{font-size:12px;line-height:1.6;min-height:38px}.messages{max-width:990px;padding:22px 30px}.message{margin-bottom:26px}.user-bubble{font-size:15px;line-height:1.75;padding:11px 15px}.markdown{font-size:15px;line-height:1.75}.markdown p{margin:0 0 13px}.markdown li{margin-bottom:4px}.markdown pre{font-size:13px;line-height:1.65}.answer-label{font-size:12px}.thinking-content{font-size:12px;line-height:1.7}.thinking{margin-bottom:12px}.assistant-avatar{width:27px;height:27px}.assistant-message{gap:12px}.context-details{font-size:12px}.answer-actions{margin-top:8px}.composer-wrap{max-width:990px;padding:8px 30px 0}.composer{padding:12px 14px 9px;border-radius:18px}.composer textarea{font-size:15px;line-height:1.6;min-height:28px;max-height:150px;padding:3px 2px}.composer-tools{margin-top:6px}.context-toggle{font-size:12px;padding:6px 8px}.composer-tools .icon-button{width:29px;height:29px}.send-button{width:31px;height:31px}.send-button .icon{width:18px;height:18px}.composer-disclaimer{font-size:10px;margin:6px 0 3px;line-height:1.4}.site-footer{min-height:27px;padding:4px 12px;font-size:10px;gap:9px}.site-footer img{width:11px;height:11px}.architecture{grid-template-columns:repeat(3,minmax(0,1fr))}
.guest-shell{display:flex;flex-direction:column;height:100dvh;min-height:0;background:var(--bg)}.guest-header{height:82px;flex-shrink:0;padding:22px 32px}.guest-header .brand{margin:0}.guest-shell #page{min-height:0;flex:1;overflow:auto}.login-welcome{height:100%;min-height:350px;justify-content:center}.login-welcome h1{font-size:46px}.login-welcome .login-button{margin-top:29px}.guest-shell .site-footer{padding-bottom:12px}.picker-footer[hidden]{display:none}.admin-usage-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:19px 0}.admin-usage-controls .field{flex:1;min-width:125px;margin:0}.admin-usage-controls .field input{font-size:13px;padding:9px}.usage-person{text-align:left;font-size:14px;color:var(--accent)}.usage-person small{display:block;font-size:10px;color:var(--muted);max-width:160px;overflow:hidden;text-overflow:ellipsis}.usage-summary{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:13px;color:var(--muted);margin:14px 0}.usage-summary strong{color:var(--text);font-size:17px;margin-left:7px}.usage-footnote{font-size:12px;color:var(--muted);line-height:1.7}.catalog-toolbar{display:flex;align-items:center;gap:12px;margin:20px 0}.catalog-toolbar .search-field{flex:1}.plugin-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.directory-card{padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;min-width:0}.directory-card h3{font-size:17px;margin:0 0 8px}.directory-card p{color:var(--muted);font-size:13px;line-height:1.7;flex:1;margin:0 0 18px}.directory-card footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.directory-card footer small{font-size:11px;color:var(--muted)}.directory-card .button{font-size:13px;padding:8px 12px}.directory-status{font-size:12px;color:var(--muted);margin:15px 0;line-height:1.7}.plugin-tabs{width:max-content;max-width:100%;margin:0 0 24px}.plugin-detail{margin-top:18px}.oauth-destination{padding:15px;background:var(--accent-soft);border-radius:10px;font-size:14px;overflow-wrap:anywhere;line-height:1.8}.oauth-destination small{display:block;color:var(--muted)}.plugin-token[hidden],.oauth-options[hidden]{display:none}.plugin-card .plugin-controls .button{font-size:13px}.query-fields .field{margin-top:15px}
@media(max-width:1100px) and (min-width:721px){.sidebar{width:224px;min-width:224px}.brand{gap:9px}.brand img{width:98px;height:40px}.topbar{padding:0 20px}.welcome{padding:20px}.messages,.composer-wrap{padding-left:24px;padding-right:24px}}
@media(max-width:720px){.sidebar,.collapsed .sidebar{position:fixed;top:0;bottom:0;left:0;height:100dvh;width:min(270px,85vw);min-width:0;max-width:85vw;padding:14px 14px max(10px,env(safe-area-inset-bottom));z-index:70;transform:translateX(-100%);transition:transform .18s ease-out;overflow:auto}.menu-open .sidebar{transform:translateX(0)}.sidebar-shade{position:fixed;inset:0;z-index:60;background:#10121d4d;backdrop-filter:none}.menu-open .sidebar-shade{display:block}.mobile-menu{display:flex}.drawer-close{display:flex;position:absolute;right:10px;top:20px;width:29px;height:29px}.brand-row{position:relative;flex-shrink:0}.drawer-close{top:4px;right:0}.brand,.collapsed .brand{margin:0 0 14px;justify-content:flex-start;width:auto;gap:10px}.brand img,.collapsed .brand img{width:98px;height:38px}.brand-ai,.collapsed .brand-ai{font-size:31px}.collapsed .sidebar .brand img,.collapsed .sidebar .brand-divider,.collapsed .sidebar .nav-item span,.collapsed .new-chat span,.collapsed .history-head,.collapsed .sidebar-search,.collapsed .history-list,.collapsed .account>span:nth-child(2),.collapsed .account>.icon{display:revert!important}.collapsed .brand .logo-dark{display:none!important}#ultimate-root[data-theme=dark] .collapsed .brand .logo-light{display:none!important}#ultimate-root[data-theme=dark] .collapsed .brand .logo-dark{display:block!important}.collapsed .nav-item,.collapsed .new-chat{justify-content:flex-start;padding:9px 11px}.sidebar-controls,.collapsed .sidebar-controls{flex-direction:row;padding:4px 6px;gap:0}.collapsed .account{justify-content:flex-start;padding:8px 7px}.collapse-control{display:none!important}.sidebar nav{margin-top:8px}.new-chat{min-height:38px}.nav-item{font-size:13px;padding:8px 10px}.history-head{margin-top:13px;margin-bottom:6px}.history-list{min-height:100px;flex:1;overflow:auto}.history-more{opacity:1}.admin-nav{padding-top:8px}.admin-nav .nav-item{font-size:12px;padding:8px 10px}.sidebar-bottom{flex-shrink:0}.account{padding:8px 7px}.topbar{height:52px;min-height:52px;padding:0 10px;z-index:25}.topbar-left{gap:3px;min-width:0}.topbar-right{gap:4px;flex-shrink:0}.topbar .mobile-menu{width:28px;height:30px}.pill,.home-link{font-size:12px}.pill{padding:7px 6px;gap:4px}.pill .icon{width:14px;height:14px}.home-link{display:inline-flex;white-space:nowrap}.home-link .icon{display:none}.source-pill{display:none}.model-picker{font-size:13px;gap:4px;padding:5px}.model-picker>span{max-width:100px}.model-picker>.icon:first-child{display:none}.model-menu{position:fixed;top:53px;left:10px;right:10px;width:auto;max-width:none;padding:12px}.model-menu .picker-models{max-height:45dvh}.welcome{padding:16px 14px;justify-content:center}.welcome h1{font-size:31px;margin:7px 0}.hero-mark{width:35px;height:35px;margin-bottom:4px}.hero-mark .icon{width:21px;height:21px}.welcome .suggestions{margin-top:22px;gap:8px}.suggestion{min-height:104px;padding:12px 10px}.suggestion>.icon:first-child{width:17px;height:17px;margin-bottom:8px}.suggestion strong{font-size:12px;margin-bottom:5px}.suggestion span{font-size:11px;min-height:35px;line-height:1.55;display:block}.suggestion>.icon:last-child{display:none}.messages{padding:18px 14px}.assistant-message{gap:9px}.assistant-avatar{width:23px;height:23px}.assistant-avatar .icon{width:15px;height:15px}.message{margin-bottom:22px}.markdown,.user-bubble{font-size:14px;line-height:1.75}.user-bubble{padding:9px 12px;max-width:92%}.thinking-content{font-size:12px}.composer-wrap{padding:5px 12px 0}.composer{padding:9px 11px 7px;border-radius:15px}.composer textarea{font-size:15px;line-height:1.5;min-height:27px;max-height:110px;padding:2px}.composer-tools{margin-top:4px}.context-toggle{font-size:11px;padding:5px 7px}.context-toggle .icon{width:14px;height:14px}.composer-tools>div{gap:4px}.composer-disclaimer{font-size:9px;line-height:1.3;margin:4px 0 1px}.site-footer{min-height:32px;font-size:9px;gap:2px 7px;padding:3px 6px}.site-footer>span{width:100%;text-align:center}.site-footer img{width:9px;height:9px}.guest-header{height:68px;padding:18px 21px}.guest-header .brand{margin:0}.login-welcome h1{font-size:37px}.guest-shell .site-footer{padding-bottom:10px}.plugin-directory{grid-template-columns:1fr}.directory-card{padding:19px}.architecture{grid-template-columns:1fr}.catalog-toolbar{gap:8px}.catalog-toolbar .button{font-size:12px;padding:9px}.admin-usage-controls{gap:8px}.admin-usage-controls .field{min-width:115px}.usage-summary{gap:7px 16px}}
@media(max-width:370px){.model-picker>span{max-width:75px}.pill>span{max-width:66px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar{padding:0 6px}.home-link{font-size:11px}.suggestion{padding:10px 8px}.welcome .suggestions{gap:6px}.suggestion span{font-size:10px}.sidebar,.collapsed .sidebar{width:250px}.brand img{width:92px}}
@media(max-height:550px) and (max-width:720px){.sidebar,.collapsed .sidebar{padding-top:9px}.brand,.collapsed .brand{margin-bottom:8px}.sidebar .brand img{height:30px;width:80px}.brand-ai{font-size:27px}.sidebar nav{margin-top:5px}.sidebar .nav-item{padding:6px 9px}.sidebar .history-head{margin-top:7px}.sidebar-search{margin-bottom:6px}.history-list{min-height:90px}.sidebar .account small{display:none}.sidebar .account{padding:5px 7px}.sidebar-controls,.collapsed .sidebar-controls{padding:1px 5px}.welcome{padding-top:10px;padding-bottom:10px}.welcome .suggestions{margin-top:15px}.hero-mark{display:none}}
@media(prefers-reduced-motion:reduce){#ultimate-root *,#ultimate-root *::before,#ultimate-root *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:720px){.menu-open .workspace{filter:none;pointer-events:none}.brand,.collapsed .brand{height:40px;margin-bottom:10px}.sidebar .new-chat{margin-bottom:8px;padding:8px 11px;min-height:38px;line-height:1.5}.sidebar nav{margin-top:6px;gap:2px}.sidebar .nav-item{line-height:1.5;padding:7px 10px}.sidebar .history-head{margin:10px 0 3px;height:28px;min-height:28px}.history-head .icon-button{height:28px}.sidebar-search{margin:5px 3px 7px}.sidebar-search input{padding:6px 0;line-height:1.5}.sidebar .admin-nav{padding:6px 0}.sidebar .admin-nav .nav-item{font-size:12px;padding:7px 10px;line-height:1.4}.sidebar .account{padding:7px;line-height:1.5}.sidebar .sidebar-controls{padding:3px 5px}.sidebar .account small{font-size:10px}.sidebar .account strong{font-size:12px}}

@media(max-width:720px){.menu-open .sidebar-shade{position:fixed;z-index:60;backdrop-filter:none}}

#ultimate-root[data-theme=dark]{color-scheme:dark}

.app-shell,.guest-shell{height:var(--app-height,100dvh)}
@media(max-width:720px){.sidebar,.collapsed .sidebar{height:var(--app-height,100dvh)}}
@supports(-webkit-touch-callout:none){@media(max-width:720px){.composer textarea,.field input,.field textarea,.sidebar-search input,.search-field input{font-size:16px}}}
/* v1.3: quiet guest composition, compact branding, and in-chat sources. */
.brand img{width:90px;height:36px}.brand{gap:11px}.brand-divider{height:25px}
.guest-shell{background:#f8f9fc;position:relative;isolation:isolate}.guest-header{position:absolute;inset:0 0 auto;z-index:3;height:92px;padding:28px 40px}.guest-header .brand{margin:0}.guest-shell #page{display:flex;min-height:0;overflow:auto}.guest-intro{position:relative;display:grid;grid-template-columns:53% 47%;min-height:480px;flex:1;overflow:hidden}.guest-aura{position:relative;align-self:stretch;background:radial-gradient(ellipse at 10% 86%,#9288cfad 0%,transparent 54%),radial-gradient(ellipse at 70% 45%,#a4d2d8c7 0%,transparent 53%),radial-gradient(ellipse at 5% 12%,#b1c2eda3 0%,transparent 59%),linear-gradient(122deg,#c0c9e9 1%,#d6e4ee 40%,#e9edf5 76%,#f8f9fc);mask-image:linear-gradient(90deg,#000 75%,transparent);overflow:hidden}.guest-aura:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 68% 51%,#fcfeffb0 0,transparent 33%)}.aura-orbit{position:absolute;border:1px solid #ffffff78;border-radius:50%;width:630px;height:630px;left:-285px;top:50%;transform:translateY(-50%);box-shadow:0 0 60px #ffffff17,inset 0 0 42px #f9ffff19}.orbit-two{width:830px;height:830px;left:-358px}.orbit-three{width:1070px;height:1070px;left:-455px;border-color:#ffffff35}.guest-copy{align-self:center;position:relative;z-index:1;margin-left:-20px;padding:80px 60px 70px 30px;max-width:555px}.guest-auth-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:#eeedf7;color:#777099;margin-bottom:28px;transition:background .18s,transform .18s}.guest-auth-mark:hover{background:#e0ddee;transform:translateY(-2px)}.guest-auth-mark:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.guest-auth-mark .icon{width:25px;height:25px}.guest-copy h1{font-size:52px;font-weight:600;line-height:1.2;letter-spacing:-.055em;margin:0 0 26px;color:#242837}.guest-copy>p{font-size:18px;line-height:1.95;font-weight:400;color:#737986;letter-spacing:.035em;margin:0;max-width:400px;text-wrap:pretty}.guest-shell .site-footer{position:relative;background:#f8f9fc;flex-shrink:0;padding:13px 20px;font-size:10px}
#ultimate-root[data-theme=dark] .guest-shell,#ultimate-root[data-theme=dark] .guest-shell .site-footer{background:#181b25}#ultimate-root[data-theme=dark] .guest-aura{background:radial-gradient(ellipse at 10% 86%,#474164 0%,transparent 56%),radial-gradient(ellipse at 58% 42%,#345363 0%,transparent 52%),linear-gradient(122deg,#282d4a,#202c3d 55%,#181b25)}#ultimate-root[data-theme=dark] .aura-orbit{border-color:#ffffff13;box-shadow:none}#ultimate-root[data-theme=dark] .guest-aura:after{opacity:.09}#ultimate-root[data-theme=dark] .guest-copy h1{color:#f3f1fa}#ultimate-root[data-theme=dark] .guest-copy>p{color:#a6abb9}#ultimate-root[data-theme=dark] .guest-auth-mark{background:#302d41;color:#b6add8}
.plugin-tabs{display:inline-flex!important;flex-wrap:nowrap!important;width:auto!important;align-items:center}.plugin-tabs button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;white-space:nowrap;flex:0 0 auto!important;min-width:0}.plugin-count{font-size:11px;line-height:18px;min-width:18px;border-radius:5px;background:var(--accent-soft);color:var(--accent);padding:0 4px}.directory-title{display:flex;align-items:center;gap:13px;margin-bottom:13px}.directory-title h3{margin:0;line-height:1.3}.plugin-brand{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;background:#fff;border:1px solid #efedf2;border-radius:12px}.plugin-brand img{width:31px;height:31px;object-fit:contain}.directory-title+.directory-card p{margin-top:0}
.composer,.composer-tools,.chat-plugin-anchor{overflow:visible}.chat-plugin-anchor{position:relative}.chat-plugin-trigger.active{background:var(--accent-soft);color:var(--accent);border-radius:9px}.chat-plugin-menu{position:absolute;bottom:calc(100% + 12px);left:0;width:330px;background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px #151b3422;padding:14px;z-index:45;animation:page-arrive .16s ease-out}.chat-plugin-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.chat-plugin-heading>strong{font-size:14px;font-weight:600}.chat-plugin-heading>.button{padding:5px 8px;font-size:12px;color:var(--accent)}.chat-plugin-options{max-height:200px;overflow:auto}.chat-plugin-options>label{display:flex;align-items:center;gap:12px;padding:11px 7px;border-radius:9px;cursor:pointer}.chat-plugin-options>label:hover{background:var(--accent-soft)}.chat-plugin-options>label>span{flex:1;min-width:0}.chat-plugin-options strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.chat-plugin-options small{display:block;font-size:11px;margin-top:3px;color:var(--muted)}.chat-plugin-options input{width:16px;height:16px;flex-shrink:0;accent-color:var(--accent)}.chat-plugin-note,.chat-plugin-empty{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 4px 1px}.chat-plugin-note{padding-top:10px;border-top:1px solid var(--line)}.selected-plugins{display:flex;flex-wrap:wrap;gap:6px}.selected-plugins:empty{display:none}.selected-plugins>span{display:flex;align-items:center;gap:5px;font-size:11px;background:var(--accent-soft);color:var(--accent);padding:5px 7px;border-radius:7px;margin-bottom:9px}.selected-plugins .icon{width:13px;height:13px}.selected-plugins button{display:flex;padding:0}.plugin-reads{border:1px solid var(--line);border-radius:10px;margin:10px 0 15px;font-size:12px;overflow:hidden}.plugin-reads>summary{display:flex;align-items:center;gap:7px;cursor:pointer;padding:9px 11px;color:var(--muted);list-style:none}.plugin-reads>summary .icon{width:14px;height:14px}.plugin-reads>summary .icon:last-child{margin-left:auto}.plugin-reads>div{padding:0 12px 9px}.plugin-reads .plugin-read{margin:7px 0;display:flex;flex-direction:column;gap:4px}.plugin-reads .plugin-read>strong{font-weight:500}.plugin-reads .plugin-read>span,.plugin-reads .plugin-read>code{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.plugin-reads pre{white-space:pre-wrap;font-size:11px;padding:7px;background:var(--accent-soft);margin:4px 0}.context-details .plugin-reads{display:none}
@media(max-width:1000px) and (min-width:721px){.guest-copy{padding-right:36px}.guest-copy h1{font-size:46px}.guest-copy>p{font-size:17px}}
@media(max-width:720px){.brand img,.collapsed .brand img{width:82px;height:33px}.brand-ai,.collapsed .brand-ai{font-size:31px}.guest-header{height:78px;padding:22px 25px}.guest-intro{display:block;min-height:520px}.guest-aura{position:absolute;inset:0 0 28%;mask-image:linear-gradient(145deg,#000 25%,#000a 55%,transparent 83%);background:radial-gradient(ellipse at 3% 25%,#ada8d6 0%,transparent 53%),radial-gradient(ellipse at 60% 40%,#afd4dc 0%,transparent 49%),linear-gradient(125deg,#c1cbed 0%,#e6edf5 60%,#f8f9fc)}.aura-orbit{width:470px;height:470px;left:-260px;top:18%}.orbit-two{width:650px;height:650px;left:-320px}.orbit-three{width:830px;height:830px;left:-370px}.guest-copy{position:absolute;right:0;bottom:9%;width:min(83%,400px);max-width:none;margin:0;padding:0 27px 0 18px}.guest-auth-mark{width:40px;height:40px;border-radius:13px;margin-bottom:22px}.guest-copy h1{font-size:40px;margin-bottom:23px}.guest-copy>p{font-size:16px;line-height:1.95;letter-spacing:.025em}.guest-shell .site-footer{font-size:9px;padding:7px 7px 12px;gap:4px 7px}.chat-plugin-menu{position:fixed;left:14px;right:14px;bottom:145px;width:auto;max-height:calc(var(--app-height,100dvh) - 210px);overflow:auto}.chat-plugin-options{max-height:160px}.plugin-tabs button{font-size:13px;padding:9px 14px}.directory-title{gap:11px}.plugin-brand{width:40px;height:40px;flex-basis:40px}.plugin-brand img{width:28px;height:28px}}
@media(max-height:640px) and (max-width:720px){.guest-intro{min-height:420px}.guest-copy{bottom:7%;width:83%}.guest-copy h1{font-size:35px;margin-bottom:17px}.guest-copy>p{font-size:15px}.guest-auth-mark{margin-bottom:16px}.chat-plugin-menu{bottom:124px;max-height:calc(var(--app-height,100dvh) - 180px)}}
@media(max-height:430px) and (min-width:480px){.guest-intro{min-height:350px}.guest-copy{width:50%;bottom:12%;padding-right:25px}.guest-copy h1{font-size:32px;margin-bottom:14px}.guest-auth-mark{margin-bottom:10px}.guest-copy>p{font-size:14px}.guest-aura{inset:0 36% 0 0;mask-image:linear-gradient(90deg,#000,transparent)}}
@media(prefers-reduced-motion:reduce){.chat-plugin-menu{animation:none}.guest-auth-mark{transition:none}}

.auxiliary-usage{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px;color:var(--muted);margin:0 0 12px}.directory-card>p{margin-top:0}
/* v1.4: persistent shell, focused administration, reconnectable chats. */
.admin-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.admin-hub-card{display:flex;align-items:flex-start;flex-direction:column;text-align:left;padding:27px;border:1px solid var(--line);border-radius:20px;background:var(--panel);min-width:0;transition:background-color .16s ease,border-color .16s ease,transform .16s ease}.admin-hub-card:hover{border-color:var(--accent);transform:translateY(-2px)}.admin-hub-card h2{font-size:18px;font-weight:600;margin:20px 0 14px}.admin-hub-card>strong{font-size:30px;letter-spacing:-.03em;font-weight:600}.admin-hub-card>strong small{font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0}.admin-hub-card p{font-size:13px;color:var(--muted);margin:9px 0 24px;line-height:1.7}.hub-link{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--accent);margin-top:auto}.hub-link .icon{width:14px;height:14px}.admin-hub-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:42px 1fr auto;column-gap:17px;align-items:center}.admin-hub-card:last-child h2{margin:0}.admin-hub-card:last-child>strong{grid-column:3;grid-row:1/3;font-size:25px}.admin-hub-card:last-child p{grid-column:2;margin:0}.admin-hub-card:last-child .hub-link{grid-column:2;margin-top:10px}.usage-detail-meta{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;color:var(--muted);font-size:13px;margin-bottom:24px}.usage-detail-meta strong{font-weight:500;color:var(--text)}.history-generating{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--accent);margin-right:3px}.chat-plugin-options>label>.plugin-brand{flex:0 0 29px;width:29px;height:29px;border-radius:7px}.chat-plugin-options .plugin-brand img{width:21px;height:21px}.brand img{animation:none;transition:none}
@media(max-width:720px){.admin-hub-grid{grid-template-columns:1fr;gap:12px}.admin-hub-card{padding:22px}.admin-hub-card h2{margin:15px 0 10px;font-size:17px}.admin-hub-card>strong{font-size:26px}.admin-hub-card:last-child{grid-template-columns:33px 1fr auto;gap:8px 12px}.admin-hub-card:last-child>strong{font-size:22px}.admin-hub-card:last-child>strong small{display:block;margin-top:5px}.topbar:has(.back-settings) .page-title{display:none}}
@media(prefers-reduced-motion:reduce){.admin-hub-card{transition:none}.admin-hub-card:hover{transform:none}}
/* v1.5: quiet web controls and a chronological release journal. */
.web-toggle.active{color:var(--accent);background:var(--accent-soft);border-radius:9px}.web-sources{margin:10px 0 16px;border:1px solid var(--line);border-radius:11px;font-size:12px;overflow:hidden}.web-query{font-size:12px;color:var(--muted);margin:0;padding:0 12px 8px}.web-sources>div{padding:0 12px 10px}.web-sources a{display:grid;grid-template-columns:20px 1fr 15px;align-items:center;gap:3px 7px;padding:8px 0;color:var(--text);text-decoration:none}.web-sources a>span{grid-row:1/3;font-size:11px;color:var(--accent)}.web-sources a>strong{font-size:12px;font-weight:500;overflow-wrap:anywhere}.web-sources a>small{grid-column:2;color:var(--muted);font-size:10px}.web-sources a>.icon{grid-column:3;grid-row:1/3;width:12px;height:12px}.web-sources a:hover>strong{color:var(--accent)}.search-service-line{display:flex;align-items:center;justify-content:space-between;margin:12px 0 20px;font-size:14px}.search-service-line a{display:flex;gap:5px;align-items:center;color:var(--accent);font-size:13px}.search-service-line .icon{width:14px;height:14px}.release-history{margin-top:42px;padding-top:30px;border-top:1px solid var(--line)}.release-history .section-title{margin-bottom:22px}.release-timeline{border-left:1px solid var(--line);margin-left:7px;padding-left:23px}.release-entry{position:relative;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:19px}.release-entry::before{content:'';position:absolute;left:-28px;top:13px;width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px var(--bg)}.release-entry>summary{display:flex;align-items:center;gap:13px;padding:5px 0;cursor:pointer;list-style:none}.release-version{font-size:13px;min-width:54px;color:var(--accent);font-variant-numeric:tabular-nums}.release-entry>summary>strong{font-size:16px;font-weight:500}.release-state{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap}.release-entry>summary>.icon{width:14px;height:14px}.release-entry[open]>summary>.icon{transform:rotate(180deg)}.release-entry p{font-size:13px;color:var(--muted);line-height:1.8;margin:12px 0}.release-entry ul{font-size:14px;line-height:1.85;padding-left:18px;margin:12px 0 16px}.release-entry li{padding-left:4px;margin-bottom:8px}.release-entry .release-note{font-size:12px}.context-details .web-sources{display:none}
@media(max-width:720px){.release-history{margin-top:28px;padding-top:24px}.release-timeline{padding-left:18px}.release-entry::before{left:-23px}.release-entry>summary{gap:8px;flex-wrap:wrap}.release-entry>summary>strong{font-size:14px;flex:1}.release-state{font-size:10px}.release-entry ul{font-size:13px}.release-version{font-size:12px;min-width:44px}}
.web-toggle-wrap{position:relative;display:inline-flex}.web-toggle:disabled{opacity:.34;cursor:not-allowed}.web-toggle-wrap::after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);width:max-content;max-width:260px;padding:8px 11px;border-radius:9px;background:var(--text);color:var(--bg);font-size:11px;line-height:1.6;pointer-events:none;opacity:0;transition:opacity .12s;z-index:50}.web-toggle-wrap:hover::after,.web-toggle-wrap:focus::after{opacity:1}.search-entry{width:100%;height:100px;border:0;background:white}

@media (pointer:coarse){.model-menu .picker-model{min-height:44px}}

/* v1.8.7: one viewport, one scrolling conversation; the composer never scrolls the page. */
#ultimate-root{position:fixed;top:0;left:0;right:0;height:var(--app-height,100dvh);transform:translateY(var(--app-offset-top,0px));overscroll-behavior:none}
.app-shell,.guest-shell{height:100%;min-height:0}
.workspace{min-height:0}
.composer-wrap,.site-footer{flex-shrink:0}
.chat-scroll,.content-page,.sidebar,.composer textarea{overscroll-behavior-y:contain}
.composer textarea{display:block;overflow-y:auto;scroll-behavior:auto}
.modal,.sub-modal>div{max-height:min(90dvh,calc(var(--app-height,100dvh) - 60px))}
.sidebar-footer{display:none}
@media(max-width:720px){
  .composer textarea{font-size:16px;max-height:min(110px,calc(var(--app-height,100dvh) * .3))}
  .composer-wrap{padding-bottom:max(5px,env(safe-area-inset-bottom))}
  .workspace>.site-footer{display:none}
  .sidebar .sidebar-footer{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:0;margin:7px 3px 0;padding:8px 3px 0;border-top:1px solid var(--line);font-size:10px;line-height:1.6}
  .sidebar-footer>span{display:block;width:auto;text-align:left}
  .sidebar-footer img{width:10px;height:10px}
}

/* v1.8.8: compact disclosures beside the model and answer actions. */
.answer-model{min-width:0;overflow-wrap:anywhere}
.answer-label .message-panel-toggle{width:26px;height:26px;flex-shrink:0;margin:-3px 0}
.answer-label .message-panel-toggle .icon{width:14px;height:14px}
.message-panel-toggle[aria-expanded=true]{background:var(--accent-soft);color:var(--accent)}
.message-panel-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.thinking[hidden],.context-details[hidden]{display:none!important}
.thinking-content{padding:11px 13px}
.context-details{margin-top:8px}
.context-details>div{margin-top:0}

/* v1.8.9: search results share the compact message toolbar. */
.web-sources[hidden]{display:none!important}
.web-sources>.web-source-heading{padding:10px 12px 6px;color:var(--muted);font-size:12px}

/* Search configuration only; existing screens retain their layout. */
.search-settings .checkbox-row{display:flex;align-items:flex-start;gap:10px;line-height:1.65;margin:18px 0}
.search-settings .checkbox-row input{flex:0 0 auto;width:17px;height:17px;margin-top:5px;accent-color:var(--accent)}
.search-settings .panel-bottom>div{display:flex;gap:8px;flex-wrap:wrap}
.search-settings .panel-bottom a{display:inline-flex;align-items:center;gap:6px}
.search-settings .section-heading p{margin-bottom:0}

/* Compact conversation tools; search expands only on request. */
.sidebar .history-head{margin:7px 0 3px;padding:0 3px;height:30px;min-height:30px;flex-shrink:0}
.history-head .icon-button{width:30px;height:30px;border-radius:8px}
.history-head .icon-button.active{color:var(--accent);background:var(--accent-soft)}
.history-search-panel{flex-shrink:0}
.history-search-panel[hidden]{display:none!important}
@media(max-width:720px){.collapsed .sidebar .history-head{display:flex!important}.collapsed .sidebar .sidebar-search{display:flex!important}}
@media(min-width:721px){.collapsed .history-search-panel{display:none!important}}

/* Context indicator lives beside send, without widening the mobile composer. */
.composer-tools .composer-submit{display:flex;align-items:center;gap:9px;flex-shrink:0}
.context-meter-anchor{position:relative;display:flex;align-items:center}
.context-meter{position:relative;width:32px;height:32px;flex-shrink:0;padding:0;border:0;background:transparent;color:var(--accent);cursor:pointer;border-radius:50%}
.context-meter svg{width:32px;height:32px;transform:rotate(-90deg);fill:none;stroke-width:2.5}
.context-meter .meter-track{stroke:var(--line)}
.context-meter .meter-value{stroke:currentColor;stroke-linecap:round;transition:stroke-dasharray .2s ease}
.context-meter>span{position:absolute;inset:0;display:grid;place-items:center;font-size:9px;font-variant-numeric:tabular-nums;color:var(--muted)}
.context-meter.near-full{color:#b67b29}.context-meter.organizing .meter-track{stroke:var(--accent-soft)}
.context-meter-panel{position:absolute;z-index:30;right:0;bottom:42px;width:238px;max-width:calc(100vw - 40px);padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--shadow);color:var(--text);font-size:12px;line-height:1.65}
.context-meter-panel strong{font-size:13px}.context-meter-panel p{margin:5px 0 0;color:var(--muted)}
@media(max-width:720px){.composer-tools .composer-submit{gap:5px}.context-meter,.context-meter svg{width:29px;height:29px}}
@media(prefers-reduced-motion:reduce){.context-meter .meter-value{transition:none}}

.upload-list{display:flex;gap:8px;flex-wrap:wrap}.upload-list:empty{display:none}
.upload-chip{display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--line);background:var(--panel);border-radius:12px;max-width:100%;min-width:180px;margin-bottom:8px}
.upload-chip>img{width:36px;height:36px;object-fit:cover;border-radius:7px}.upload-chip>.icon{width:25px;height:25px;color:var(--accent);flex-shrink:0}
.upload-chip>div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.upload-chip strong{font-size:12px;font-weight:500;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-chip span{font-size:11px;color:var(--muted);max-width:240px}.upload-chip .icon-button{width:25px;height:25px}.upload-chip.error{border-color:#bd7272}
.composer.file-dragging{outline:2px solid var(--accent);outline-offset:3px;background:var(--accent-soft)}
.message-files{display:flex;flex-direction:column;gap:7px;margin-top:10px}.message-files>div{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:9px 11px}.message-files>div>.icon{width:20px;height:20px;flex-shrink:0}.message-files span{min-width:0;overflow-wrap:anywhere}.message-files a{color:inherit;text-decoration:none}.message-files small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.message-files .icon-button{margin-left:auto;flex-shrink:0;width:26px;height:26px}
@media(max-width:360px){.composer-tools .context-toggle{gap:4px;padding-left:4px;padding-right:4px}.composer-tools>div{gap:2px}.composer-tools .composer-submit{gap:3px}}

.upload-list{max-height:170px;overflow:auto}
@media(max-width:720px){.upload-list{flex-wrap:nowrap;max-height:100px;overflow-x:auto}.upload-chip{flex:0 0 225px}.upload-chip span{overflow-wrap:anywhere}}
@media(max-width:380px){.composer-tools .context-toggle span{display:none}.composer-tools .context-toggle{width:30px;height:30px;justify-content:center;padding:0}}

.math-formula{color:inherit}.math-display{display:block;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:5px 0;white-space:normal}.math-inline{white-space:normal}.markdown .katex,.thinking-content .katex{font-size:1.08em}.markdown .katex-display{margin:.65em 0}.math-formula .katex-html{white-space:nowrap}.thinking-content p{margin:.5em 0}.message-time{font-size:11px;font-weight:400;line-height:1.5;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}.answer-label .message-time{margin-left:auto}.user-bubble>.message-time{display:block;text-align:right;margin-top:5px}.upload-chip span:empty{display:none}

.markdown.is-streaming,.thinking-content.rich-content{white-space:normal}.answer-label .answer-model{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.answer-label .message-time{flex-shrink:0}

/* Commerce uses the existing plugin directory and connection card system. */
.plugin-brand img.brand-luckin{object-fit:cover;object-position:left}.plugin-connected-status{display:inline-flex;align-items:center;gap:8px;margin-right:auto;font-size:14px}.plugin-connected-status i{width:7px;height:7px;border-radius:50%;background:#389b74}.chat-plugin-service{display:flex;align-items:center;gap:10px;width:100%;padding:11px 8px;text-align:left;border-radius:9px;color:var(--text)}.chat-plugin-service:hover{background:var(--accent-soft)}.chat-plugin-service>span:nth-child(2){flex:1;min-width:0}.chat-plugin-service strong,.chat-plugin-service small{display:block}.chat-plugin-service strong{font-size:13px;font-weight:500}.chat-plugin-service small{font-size:11px;color:var(--muted);margin-top:4px}.chat-plugin-service>.plugin-brand{flex:0 0 29px;width:29px;height:29px;border-radius:7px}.chat-plugin-service>.icon{width:16px;height:16px;color:var(--muted)}
/* Transaction choices live in chat; only credentials use account settings. */
.coffee-tabs[hidden],.mcd-tabs[hidden]{display:none}.commerce-card{max-width:650px;width:100%;box-sizing:border-box;margin:18px 0;border:1px solid var(--line);border-radius:17px;padding:19px;background:var(--panel);font-size:13px;line-height:1.6}.commerce-card>header{display:flex;align-items:center;gap:10px;margin-bottom:17px}.commerce-card>header>img{width:29px;height:29px;object-fit:contain;border-radius:7px;background:#fff}.commerce-card>header>img.brand-luckin{object-fit:cover;object-position:left}.commerce-card>header>strong{font-size:15px;font-weight:600}.commerce-card>header>span{margin-left:auto;color:var(--muted);font-size:11px}.commerce-card p{margin:8px 0;line-height:1.7}.commerce-card .button{font-size:12px;padding:8px 12px;min-height:35px}.commerce-card-past{display:flex;align-items:center;gap:15px;padding:10px 15px;background:transparent;color:var(--muted)}.commerce-card-past small{font-size:11px;margin-left:auto}.commerce-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:330px;overflow:auto;margin:14px 0}.commerce-option{display:flex;flex-direction:column;text-align:left;padding:13px;border:1px solid var(--line);border-radius:12px;gap:5px;min-width:0;background:transparent;color:var(--text);transition:background-color .15s,border-color .15s}.commerce-option:hover{background:var(--accent-soft);border-color:var(--accent)}.commerce-option strong{font-size:13px;font-weight:500}.commerce-option span,.commerce-option small{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.commerce-option>img{height:85px;max-width:100%;object-fit:contain;align-self:center;margin-bottom:6px;border-radius:9px}.commerce-selected-shop{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--line)}.commerce-selected-shop>span{display:grid;gap:3px}.commerce-selected-shop small,.commerce-hint{font-size:12px;color:var(--muted)}.commerce-product-focus{display:flex;justify-content:space-between;gap:12px;margin:17px 0}.commerce-product-focus>span{font-size:12px;color:var(--muted)}.commerce-spec{margin:13px 0}.commerce-spec>span{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}.commerce-spec>div{display:flex;flex-wrap:wrap;gap:6px}.commerce-choice{border:1px solid var(--line);border-radius:20px;padding:6px 12px;font-size:12px;color:var(--text)}.commerce-choice.selected{background:var(--accent-soft);border-color:var(--accent)}.commerce-card-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0}.commerce-card select,.commerce-card input{font:inherit;color:var(--text);background:var(--input);border:1px solid var(--line);border-radius:8px;padding:7px 9px;max-width:100%}.commerce-quantity{min-width:65px;margin-left:6px}.commerce-cart{margin:17px 0}.commerce-cart h3{font-size:14px}.commerce-cart>div{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 0;border-bottom:1px solid var(--line)}.commerce-cart>div>span{display:grid;gap:3px}.commerce-cart small{color:var(--muted);font-size:11px}.commerce-quote{border-radius:13px;padding:15px;background:var(--accent-soft);margin-top:16px}.commerce-quote>div:first-child{display:flex;align-items:center;justify-content:space-between}.commerce-quote>div>strong{font-size:23px;font-weight:600}.commerce-quote>small{font-size:11px;color:var(--muted)}.commerce-quote>.primary{width:100%;margin-top:13px}.commerce-quote-items{font-size:12px;margin-top:10px}.commerce-order{padding:14px 0;border-top:1px solid var(--line);margin-top:12px}.commerce-order-title{display:flex;justify-content:space-between}.commerce-order p{font-size:12px;color:var(--muted)}.commerce-pay-qr{display:block;width:160px;height:160px;object-fit:contain;background:white;border-radius:10px;margin:15px auto}.commerce-pickup{display:flex;align-items:center;gap:14px;margin:15px 0;color:var(--muted)}.commerce-pickup strong{font-size:28px;color:var(--text);letter-spacing:2px}.commerce-order-id{display:block;overflow-wrap:anywhere;color:var(--muted);font-size:11px}.commerce-order-history{margin-top:17px}.commerce-order-history summary{cursor:pointer;color:var(--muted);font-size:12px}.commerce-card-notice:empty{display:none}.commerce-card-notice{margin-top:12px;font-size:12px}.commerce-recover{display:grid;gap:10px;margin:14px 0}.commerce-recover label{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.commerce-card button:disabled{opacity:.45;cursor:default}@media(max-width:600px){.commerce-card{padding:14px;border-radius:13px}.commerce-options{gap:7px}.commerce-option{padding:10px}.commerce-selected-shop strong{font-size:12px}.commerce-selected-shop .button{white-space:nowrap}.commerce-card input{font-size:16px}}@media(prefers-reduced-motion:reduce){.commerce-card *{transition:none!important}}

/* Preserve the active conversation position; avoid animated resets on rerender. */
.chat-scroll{scroll-behavior:auto}.commerce-card{overflow-anchor:none}.commerce-option>img{width:100%;height:85px;flex:none}.commerce-search{display:flex;align-items:end;gap:8px;margin:16px 0}.commerce-search label{display:grid;gap:6px;flex:1;min-width:0}.commerce-search label>span{font-size:12px;color:var(--muted)}.commerce-search input{width:100%;box-sizing:border-box}.commerce-order-error{color:var(--danger,#b74d53)!important}.commerce-card[aria-busy=true]{opacity:.75}.commerce-card[aria-busy=true]:after{content:'正在更新…';display:block;font-size:12px;color:var(--muted);margin-top:10px}

/* Conversation ordering: one focused step, with quiet secondary controls. */
.commerce-card{max-width:610px;padding:20px 22px;border-radius:20px;background:var(--panel);box-shadow:0 3px 16px #00000003;font-size:13px}
.commerce-card>header{margin-bottom:18px;gap:9px}.commerce-card>header>img{width:25px;height:25px;border-radius:6px}.commerce-card>header>strong{font-size:14px}.commerce-card>header>span{font-size:12px}
.commerce-card .button{border-radius:10px;font-size:12px;min-height:32px;padding:6px 11px}.commerce-card .button.secondary{background:transparent;box-shadow:none;border-color:transparent;color:var(--muted)}.commerce-card .button.secondary:hover{color:var(--text);background:var(--accent-soft)}
.commerce-selected-shop{padding-bottom:14px}.commerce-selected-shop strong{font-size:13px;font-weight:550}.commerce-selected-shop small{font-size:11px;line-height:1.5}.commerce-selected-shop .button{flex-shrink:0}
.commerce-search{margin:15px 0 9px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:3px;background:var(--input)}.commerce-search input{border:0;background:transparent;padding:7px 10px;outline:none}.commerce-search:focus-within{border-color:var(--accent)}.commerce-search .button svg{width:16px;height:16px}.commerce-search .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.commerce-categories{display:flex;gap:3px;overflow-x:auto;padding:0 0 6px;scrollbar-width:none}.commerce-categories .button{white-space:nowrap;padding:5px 9px;min-height:29px;font-size:12px}
.commerce-options{gap:8px;max-height:360px;margin:9px 0 12px;overscroll-behavior:contain}.commerce-option{border:1px solid transparent;border-radius:12px;padding:12px;background:var(--input)}.commerce-option:hover{border-color:var(--line);background:var(--accent-soft)}.commerce-option strong{font-size:13px;line-height:1.5;font-weight:500}.commerce-products .commerce-option{display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:3px;align-content:center;min-height:80px}.commerce-products .commerce-option>img{grid-row:1/3;width:52px;height:56px;object-fit:contain;margin:0}.commerce-products .commerce-option>strong{align-self:end}.commerce-products .commerce-option>span{align-self:start;color:var(--muted);font-size:12px}.commerce-products .commerce-option:not(:has(img)){grid-template-columns:1fr}.commerce-products .commerce-option:not(:has(img))>strong{grid-column:1}
.commerce-browse-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.commerce-browse-footer>span{font-size:11px;color:var(--muted);margin-right:auto}
.commerce-product-focus{align-items:center;margin:20px 0}.commerce-product-focus>img{height:64px;width:64px;object-fit:contain;border-radius:12px}.commerce-product-focus>div{display:grid;gap:4px;flex:1}.commerce-product-focus strong{font-size:16px;font-weight:550;line-height:1.5}.commerce-product-focus>div>span{color:var(--muted);font-size:12px}.commerce-spec{margin:18px 0}.commerce-spec>span{font-size:12px}.commerce-choice{border-radius:9px;border-color:var(--line);padding:7px 13px;font-size:13px;min-height:34px}.commerce-choice.selected{border-color:transparent;background:var(--accent-soft);color:var(--accent)}.commerce-add{justify-content:space-between;padding-top:15px;margin-top:20px;border-top:1px solid var(--line)}.commerce-add .primary{min-width:130px}
.commerce-section-title{display:flex!important;align-items:center;justify-content:space-between;border-bottom:0!important;padding-top:0!important}.commerce-section-title>strong{font-size:13px;font-weight:550}.commerce-cart{margin:17px 0}.commerce-cart>div>span>strong{font-size:13px;font-weight:500}.commerce-cart small{font-size:12px}.commerce-quote{background:transparent;border-top:1px solid var(--line);border-radius:0;padding:16px 0 0;margin-top:10px}.commerce-quote>div>strong{font-size:25px;font-weight:550;letter-spacing:-.6px}.commerce-quote>small{font-size:12px}.commerce-quote>.primary{min-height:40px}.commerce-check-pending{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;font-size:12px;color:var(--muted)}
.commerce-order-history{border-top:1px solid var(--line);padding-top:13px;margin-top:18px}.commerce-order-history summary{display:flex;align-items:center;justify-content:space-between;list-style:none;font-size:12px}.commerce-order-history summary::-webkit-details-marker{display:none}.commerce-order-history summary>span:last-child{display:flex;align-items:center;gap:6px;font-size:11px}.commerce-order-history summary svg{width:13px;height:13px;transition:transform .15s}.commerce-order-history[open] summary svg{transform:rotate(180deg)}.commerce-order-history .commerce-order{padding:15px 0;margin-top:14px}.commerce-order p{line-height:1.6}.commerce-card-past{padding:9px 14px;margin:12px 0;background:transparent;box-shadow:none}.commerce-card[aria-busy=true]{opacity:.72}.commerce-card[aria-busy=true]:after{display:none}
@media(max-width:600px){.commerce-card{padding:16px;border-radius:17px}.commerce-products .commerce-option{grid-template-columns:40px minmax(0,1fr);padding:9px;column-gap:7px;min-height:75px}.commerce-products .commerce-option>img{width:40px;height:48px}.commerce-product-focus strong{font-size:15px}.commerce-check-pending{align-items:flex-start;flex-direction:column}.commerce-card .commerce-search input{font-size:16px}}

.commerce-count{display:inline-flex;align-items:center;gap:8px}.commerce-count .button{padding:3px 9px;min-height:28px}.commerce-count small,.commerce-choice small{opacity:.7;font-size:inherit}.commerce-count b{min-width:1em;text-align:center}

.commerce-eta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 0;font-size:13px}.commerce-eta>span{color:var(--muted);white-space:nowrap}.commerce-eta strong{font-weight:550;text-align:right;line-height:1.55}
/* Order center shares the site's quiet surfaces and compact navigation. */
.order-center{max-width:980px}.order-overview{display:flex;align-items:center;gap:36px;padding:24px 28px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(115deg,var(--accent-soft),var(--panel) 75%);margin-bottom:24px}.order-overview-icon{width:48px;height:48px;display:grid;place-items:center;background:var(--panel);border:1px solid var(--line);border-radius:14px;color:var(--accent)}.order-overview-icon .icon{width:24px;height:24px}.order-overview>div{display:flex;align-items:baseline;gap:10px}.order-overview strong{font-size:28px;font-weight:550;font-variant-numeric:tabular-nums}.order-overview>div>span{font-size:13px;color:var(--muted)}.order-filters{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}.order-tabs{display:flex;padding:4px;background:var(--input);border-radius:11px;gap:3px}.order-tabs button{padding:7px 16px;font-size:14px;border-radius:8px;color:var(--muted)}.order-tabs button.selected{background:var(--panel);color:var(--text);box-shadow:0 1px 5px #0000000a}.order-merchants{display:flex;gap:7px}.order-merchants .chip{font-size:13px;padding:6px 11px}.order-list{display:grid;gap:12px}.order-entry{border:1px solid var(--line);border-radius:16px;background:var(--panel);overflow:hidden;transition:border-color .16s}.order-entry.expanded{border-color:var(--accent)}.order-summary{display:flex;align-items:flex-start;gap:16px;text-align:left;width:100%;padding:22px}.order-summary:hover{background:var(--input)}.order-summary .plugin-brand{flex-shrink:0;margin-top:2px}.order-summary-main{min-width:0;flex:1;display:grid;gap:5px}.order-brand-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.order-brand-line>strong{font-size:16px;font-weight:550}.order-status{font-size:12px;padding:2px 8px;border-radius:6px;background:var(--input);color:var(--muted)}.order-status.active{background:var(--accent-soft);color:var(--accent)}.order-shop{font-size:13px;color:var(--muted)}.order-items{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.order-summary time{font-size:12px;color:var(--soft);margin-top:4px;font-variant-numeric:tabular-nums}.order-summary-end{display:flex;align-items:center;gap:16px}.order-summary-end b{font-size:17px;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}.order-summary-end>.icon{width:15px;color:var(--muted);transition:transform .16s}.order-entry.expanded .order-summary-end>.icon{transform:rotate(180deg)}.order-detail{padding:0 22px 22px}.order-detail .commerce-order{border:0;border-top:1px solid var(--line);border-radius:0;margin:0;padding:20px 0 0;background:transparent}.order-detail .commerce-order>p{overflow-wrap:anywhere}.order-detail .commerce-pay-qr{max-width:190px}.order-detail .commerce-card-tools{display:flex;flex-wrap:wrap;gap:8px}.order-notice{font-size:14px;color:var(--muted)}.order-notice:not(:empty){padding:14px;margin-top:14px;border-radius:10px;background:var(--input)}.order-pagination{display:flex;align-items:center;justify-content:center;gap:22px;margin-top:24px;font-size:13px;color:var(--muted)}
@media(max-width:720px){.order-overview{padding:18px;gap:20px}.order-overview>div{display:grid;gap:0}.order-overview strong{font-size:24px}.order-summary{padding:16px;gap:12px}.order-summary .plugin-brand{width:32px;height:32px}.order-summary .plugin-brand img{width:28px;height:28px}.order-summary-end{flex-direction:column;gap:12px;align-items:flex-end}.order-summary-end b{font-size:15px}.order-brand-line{gap:6px}.order-brand-line>strong{font-size:15px}.order-detail{padding:0 16px 16px}.order-filters{align-items:stretch}.order-tabs{justify-content:center}.order-items{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.order-detail .commerce-eta{align-items:flex-start;gap:12px}}
@media(prefers-reduced-motion:reduce){.order-entry,.order-summary-end>.icon{transition:none}}
/* Compact model rows: connection nickname above, brand and model on one line. */
.model-menu .picker-group{padding:10px 8px 4px;font-size:12px;color:var(--muted);font-weight:500}.model-menu .picker-group:first-child{padding-top:2px}.model-menu .picker-model{min-height:37px;padding:6px 8px;gap:9px}.model-brand-logo{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;color:var(--text)}.model-brand-logo img,.model-brand-mono{width:20px;height:20px;display:block;object-fit:contain}.model-brand-mono{background:currentColor;-webkit-mask:var(--model-brand-url) center/contain no-repeat;mask:var(--model-brand-url) center/contain no-repeat}.model-brand-logo>.icon{width:18px;height:18px;color:var(--muted)}.model-menu .picker-model-line{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.model-brand-tag{display:block;flex:0 1 auto;max-width:108px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:5px;padding:2px 6px;background:var(--input);color:var(--muted);font-size:12px;line-height:1.5}.model-menu .picker-model-line strong{flex:1;min-width:0;font-weight:500}.model-menu .picker-model.selected .model-brand-tag{background:var(--panel);color:var(--accent)}
@media(pointer:coarse){.model-menu .picker-model{min-height:44px}}
@media(max-width:380px){.model-brand-tag{max-width:82px}.model-menu .picker-model-line{gap:6px}.model-menu .picker-model{gap:7px}}
/* Only successfully rendered TeX fences get these source controls. */
.math-fence{margin:12px 0;min-width:0}.math-fence-tools{display:flex;align-items:flex-start;gap:12px;color:var(--muted);font-size:12px;line-height:1.6}.math-fence-source{flex:1;min-width:0}.math-fence-source>summary{cursor:pointer;width:fit-content;padding:3px 0}.math-fence-source>pre{margin:8px 0 0;max-width:100%;overflow:auto}.math-source-copy{flex-shrink:0;padding:3px 0;font-size:12px;line-height:1.6;color:var(--muted)}.math-source-copy:hover,.math-fence-source>summary:hover{color:var(--accent)}.math-source-copy:focus-visible,.math-fence-source>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
