/* A local, dependency-free desktop shell. No external fonts or image downloads. */
:root{--ink:#252638;--muted:#858799;--green:#6d5ce7;--paper:#f6f7fb;--line:#e9eaf1;--accent:#7361e9;--nav:#191b2b;--sidebar:238px;color-scheme:light}
body{background:var(--paper);font:14px/1.65 "Segoe UI","Microsoft YaHei UI",system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}button{transition:background .16s,box-shadow .16s,transform .16s;border-radius:10px;font-weight:550;padding:10px 15px;min-height:40px}button:hover:not(:disabled){filter:brightness(1.04);box-shadow:0 4px 12px #302c6410}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #ad9eff;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:none;border-color:#a69bee;box-shadow:0 0 0 3px #7865ec12}input,select,textarea{border-color:#e3e4ed;border-radius:9px;padding:11px 12px;background:#fff}input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);vertical-align:middle;margin-right:9px}label{font-size:12px;font-weight:550;color:#77788c;letter-spacing:.1px}summary{font-size:14px}h2{font-size:23px;letter-spacing:-.5px}small,.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:650;color:#9292a6}.muted{color:var(--muted);font-size:12px}.card{border-color:var(--line);background:#fff;box-shadow:none;border-radius:16px}a{color:#6a58d7;text-underline-offset:3px}pre{background:#f6f6fa;padding:15px;border:1px solid var(--line);border-radius:10px;max-height:330px;color:#585a70;line-height:1.7}svg{width:19px;height:19px;flex-shrink:0}button:has(svg){display:inline-flex;align-items:center;justify-content:center;gap:9px}.actions{gap:8px}.subtle-button{background:transparent;color:#7b7d91;font-weight:500;box-shadow:none!important}
.shell-header{height:70px;padding:0;gap:0;border-bottom:1px solid var(--line);background:#fff;position:relative;z-index:10}.shell-brand{height:70px;flex:0 0 var(--sidebar);display:flex;align-items:center;gap:12px;padding:0 25px;background:var(--nav);color:#f8f8ff;font-size:21px;font-weight:650;letter-spacing:-.4px}.shell-brand small{display:block;font-size:9px;font-weight:400;letter-spacing:2px;line-height:1.1;color:#89899f}.brand-os{font-weight:350;color:#b6b0e8;margin-left:2px}.brand-mark{display:flex;align-items:end;gap:3px;height:25px;width:24px;transform:skewY(-13deg)}.brand-mark i{display:block;width:6px;background:#a395ff;border-radius:2px}.brand-mark i:nth-child(1){height:11px}.brand-mark i:nth-child(2){height:18px}.brand-mark i:nth-child(3){height:25px;background:#e5dfff}.shell-topbar{display:flex;align-items:center;padding:0 30px;gap:16px;min-width:0;flex:1}.shell-breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px}.shell-breadcrumb>span,.shell-breadcrumb b{color:#a3a4b5;font-weight:400}.shell-breadcrumb strong{font-weight:550}.shell-top-right{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin-left:auto;font-size:11px;color:#8a8b9d;flex:0!important}.privacy-badge{border:1px solid #e9e7f6;padding:4px 9px;border-radius:6px;color:#8d82bd;font-size:10px;white-space:nowrap}#identity{white-space:nowrap;font-size:11px}#logout{font-size:11px;min-height:30px;padding:4px 8px}#shell-menu{display:none}
body.is-authenticated{height:100dvh;overflow:hidden}body.is-authenticated #workspace{height:calc(100dvh - 70px);margin:0;padding:0;max-width:none;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);gap:0}body.is-authenticated .shell-footer{display:none}#workspace>aside{position:static;align-self:stretch;border:0;border-radius:0;background:var(--nav);padding:19px 16px 15px;display:flex;flex-direction:column;gap:0;min-height:0;overflow:hidden}.shell-nav{display:flex;flex-direction:column;gap:4px}.shell-nav button{justify-content:flex-start;padding:11px 14px;background:transparent;color:#9293aa;font-size:12px;border-radius:9px;min-height:41px}.shell-nav button svg{color:#797b98;width:18px;height:18px}.shell-nav button.active{background:#2d2949;color:#d3caff}.shell-nav button.active svg{color:#b3a2ff}.shell-nav button:hover{background:#26283d;color:#e6e2fa;box-shadow:none}#new-thread{margin:23px 4px 22px;background:#7762dc;color:#fff;min-height:42px;font-size:12px;box-shadow:0 5px 16px #0002;border:1px solid #9182e665}#new-thread svg{height:17px;width:17px}.sidebar-label{font-size:10px;letter-spacing:1px;color:#666b87;padding:0 13px 10px}#threads{display:flex;flex-direction:column;gap:5px;margin:0;min-height:0;overflow:auto;flex:1;padding:0 2px}#threads button{font-size:11px;color:#a0a1b9;background:transparent;padding:10px 12px;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-height:36px;flex-shrink:0;font-weight:400;border-radius:7px}#threads button:hover{background:#26283c;color:white;box-shadow:none}.history-empty{color:#5f6582;font-size:11px;padding:0 12px;line-height:1.9}.sidebar-bottom{margin-top:auto;padding-top:16px}.sidebar-bottom>button{width:100%;background:#222538;color:#b1b1c5;justify-content:flex-start;font-size:11px;overflow:hidden}.sidebar-bottom>button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-profile{border-top:1px solid #2d2e42;margin-top:19px;padding:17px 4px 0;display:grid;grid-template-columns:32px 1fr;column-gap:10px;align-items:center}.profile-avatar{grid-row:span 2;background:#35364c;border:1px solid #49495f;color:#c2bfdc;border-radius:10px;text-align:center;padding:4px;font-size:14px}.sidebar-profile h2{margin:0;color:#c4c4d7;font-size:11px;letter-spacing:0;font-weight:500}.sidebar-profile small{font-size:9px;letter-spacing:0;color:#626981;font-weight:400}#workspace>.content{display:block;overflow:hidden;min-width:0;min-height:0;background:radial-gradient(ellipse at 50% 3%,#ece9ff55,transparent 50%),#f8f9fc}.shell-view{display:none;height:100%;overflow:auto;padding:32px 42px;min-width:0}.shell-view.is-active{display:block}.stage-heading{margin:0 0 27px}.stage-heading h2{font-size:28px;margin:7px 0 6px;font-weight:600}.stage-heading p{margin:0}.stage-heading .eyebrow{color:#9c95be;font-size:9px}.shell-view>.card{margin:18px 0}.shell-view>.actions{margin-bottom:20px}#view-chat{padding:0;overflow:hidden}
.chat-surface{border:0;border-radius:0;padding:0 44px 12px;background:transparent;box-shadow:none;height:100%;display:flex;flex-direction:column;min-height:0;max-width:1120px;margin:0 auto}.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0 16px;flex-shrink:0}.chat-heading .eyebrow{font-size:8px;letter-spacing:1.9px;color:#a0a0b2}.chat-heading h2{font-size:18px;line-height:1.4;margin:4px 0 0;font-weight:600}.mini-tag{font-size:9px;font-weight:500;color:#9a8ec8;background:#efedf7;border:1px solid #e8e4f4;padding:3px 7px;border-radius:5px;vertical-align:middle;margin-left:6px;letter-spacing:0}#chat-scope{font-size:10px;color:#8c85a6;background:#fff;border:1px solid #e7e4f0;padding:6px 11px;min-height:32px;max-width:240px;box-shadow:0 2px 5px #20204003}#chat-scope span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#chat-scope svg{width:15px;height:15px}.chat-welcome{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:14px 0 24px;overflow:auto}.welcome-symbol{display:flex;align-items:center;justify-content:center;width:66px;height:66px;border-radius:23px;background:linear-gradient(145deg,#fff,#eeebff);border:1px solid #fff;color:#8b74db;font-size:39px;box-shadow:0 8px 30px #6955cc12;margin-bottom:22px}.chat-welcome>.eyebrow{color:#aca6c0;font-size:9px;letter-spacing:2px}.chat-welcome h2{font-weight:550;font-size:30px;letter-spacing:-.9px;margin:10px 0 12px;color:#303044}.chat-welcome>p{font-size:12px;color:#9998aa;line-height:1.9;margin:0 0 25px}.welcome-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:520px;width:100%}.welcome-cards button{display:grid;grid-template-columns:29px 1fr;grid-template-rows:auto auto;text-align:left;column-gap:9px;background:#ffffffc9;border:1px solid #e9e7f2;padding:16px 18px;border-radius:13px;color:#656174;font-size:12px;font-weight:550;box-shadow:0 4px 12px #3a285404}.welcome-cards svg{grid-row:span 2;color:#9a8bbb;width:22px;height:22px}.welcome-cards button small{font-size:10px;font-weight:400;color:#a4a0b1;letter-spacing:0;margin-top:4px}.welcome-cards button:hover{border-color:#c9bdeb;box-shadow:0 6px 20px #6d57ba0a}
#messages{flex:1;min-height:0;max-height:none;overflow:auto;padding:0 4px 20px;margin:0;scroll-behavior:smooth}#messages:not(.has-content){display:none}.message{border:0;padding:8px 0 24px;white-space:normal}.question{margin:10px 0 22px auto;padding:13px 19px;max-width:83%;width:fit-content;border:1px solid #e7e2f6;background:#ede9fa;border-radius:16px 16px 3px 16px;color:#5d507e;font-size:13px;line-height:1.8;font-weight:450;white-space:pre-wrap}.answer{background:#fff;border:1px solid #ebeaf2;border-radius:4px 17px 17px 17px;padding:23px 25px;box-shadow:0 4px 20px #312a4804;font-size:13px;line-height:1.9;color:#5d5e72}.answer>p:first-child{font-size:15px;color:#35354a;font-weight:550;padding-bottom:13px;border-bottom:1px solid #f0eef6;margin-bottom:18px}.answer strong{font-size:12px;color:#79708e;font-weight:650;margin-top:18px}.answer li{padding-left:3px}.answer li::marker{color:#ae9dd5}.answer details{padding:10px 13px;background:#f8f7fb;border:1px solid #f0edf7;border-radius:9px;margin-top:17px}.answer summary{color:#9a90ac;font-size:11px;font-weight:500}.message>a{display:block;width:fit-content;margin:10px 3px 0;font-size:10px;text-decoration:none;color:#9b91ad}.answer .muted{font-size:10px;color:#b0aabb}.source{background:#fafaff;border-left:3px solid #c1b6eb;border-radius:6px;border-top:1px solid #efedf6;border-right:1px solid #efedf6;border-bottom:1px solid #efedf6;padding:15px;font-size:12px;white-space:normal}.source>details summary{font-size:12px}.source a{font-size:11px}.source pre{font-size:11px}#older-messages{align-self:center;background:transparent;color:#9b91b9;font-size:11px;min-height:28px;padding:4px 12px;margin:4px}
#chat.shell-composer{display:flex;flex-direction:column;margin:0;background:#fff;border:1px solid #e5e2ee;border-radius:18px;box-shadow:0 5px 25px #3b2f6710;flex-shrink:0;padding:12px 16px 10px;position:relative;max-height:270px}#pulse-prompts{gap:5px;flex-wrap:nowrap;overflow:auto;margin:0 0 3px;flex-shrink:0}#pulse-prompts button{background:#f7f6fb;border:1px solid #eeecf5;color:#9690a7;border-radius:6px;padding:4px 8px;font-size:9px;min-height:25px;white-space:nowrap;flex:0 0 auto;box-shadow:none}#pulse-prompts button:hover{color:#77628f;background:#f0ebf8}#chat #question{min-height:68px;height:78px;max-height:150px;resize:none;border:0;box-shadow:none;padding:12px 2px;font-size:13px;line-height:1.8;flex-shrink:1;border-radius:0}#question::placeholder{color:#b1adbd}.composer-foot{display:flex;align-items:center;gap:8px;border-top:1px solid #f4f2f8;padding-top:9px;flex-shrink:0}.composer-foot>button{background:#f8f7fb;color:#8d829f;font-size:10px;padding:6px 9px;min-height:30px;margin:0}.composer-foot svg{width:15px;height:15px}.composer-foot .attachment-badge{background:transparent;color:#aca3b8;font-size:9px}.composer-foot .actions{margin-left:auto;gap:7px;align-items:center}.composer-foot .actions button{margin:0;font-size:10px;min-height:32px;padding:7px 13px}#send{background:#7660cc;color:#fff;border:1px solid #806adb;border-radius:8px}#send svg{width:14px;height:14px}.composer-note{font-size:9px;color:#b2acbf;text-align:center;padding:10px 0 0;margin:0;flex-shrink:0;letter-spacing:.2px}
.shell-dialog{border:1px solid #eeebf6;border-radius:20px;padding:26px;width:min(760px,calc(100vw - 30px));max-height:90dvh;overflow:auto;color:var(--ink);background:#fff;box-shadow:0 35px 120px #17132845}.shell-dialog::backdrop{background:#17152670;backdrop-filter:blur(5px)}.dialog-heading{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.dialog-heading h2{font-size:23px;margin:0 0 6px;font-weight:600}.dialog-heading p{margin:0}.dialog-close{background:#f7f6fb;color:#9993a7;font-size:24px;line-height:1;padding:5px;width:32px;min-height:32px;border:1px solid #edeaf5;border-radius:9px}.dialog-heading>div{flex:1}#scope-dialog>details{margin:0}#scope-dialog>details>summary{display:none}#scope-dialog>details>p{font-size:11px;background:#f7f5fc;color:#9b8ca9;padding:12px;border-radius:9px}#scope-fields{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}#scope-done{display:flex;margin:20px 0 0 auto}#upload-dialog>.attachment-panel{margin:14px 0;padding:0;border:0;background:none}#upload-dialog>.attachment-panel>summary{display:none}.attachment-panel{border:1px solid #e9e5f1;border-radius:13px;background:#fff;padding:18px}.attachment-panel .source{border-color:#ece7f5;border-radius:10px}.attachment-panel summary{font-size:14px}#attachment-status{color:#8b769e;font-size:12px;margin:16px 0}#attachment-files{padding:13px;background:#faf9fd;border:1px dashed #cfc6e3}#attachment-files::file-selector-button{border:0;border-radius:6px;background:#ede8f7;color:#87709e;padding:7px 11px;margin-right:12px;font:inherit;font-size:11px}#attachment-analysis-mode{background:#faf9fd}#pulse-template,#upload-scope,#upload-results{background:#f4f1fb;color:#89749f;border:1px solid #e7dff2;font-size:11px;min-height:32px}#upload-results{width:100%;margin-top:5px}#attachment-jobs{max-height:none;overflow:visible;margin:20px 0}#attachment-jobs>.source{background:#fff;border:1px solid #e9e5ef;border-left:3px solid #b3a0d2;border-radius:12px;padding:19px 22px;margin-bottom:13px}#attachment-jobs>.source>details{margin-top:12px}.library-empty{padding:45px 20px;text-align:center;background:#fff;border:1px dashed #dcd6e7;border-radius:14px;color:#b1a5be;font-size:12px}#research-panel{background:white;border:1px solid var(--line);padding:24px}#research-panel>summary,#admin-overview>details>summary{display:none}#research-panel>details{border-top:1px solid #f0edf5;padding-top:19px}#research-panel>details>summary{font-size:14px;font-weight:550;color:#796486}#research-events>details{background:#faf8fd;border:1px solid #eee8f5;padding:15px;border-radius:10px}#research-events>details>summary{font-size:12px}#research-evidence label{padding:8px;background:#f7f5fb;border-radius:6px}#view-admin .card,#view-account .card{padding:25px}#view-admin #admin-overview{margin-top:0}.user-row{font-size:12px;border-color:#f1edf5;padding:15px 0}.user-row button{background:#f0eaf8;color:#8d719e}.shell-footer{color:#b4adbf;font-size:10px;letter-spacing:.5px}#notice{position:fixed;right:25px;top:78px;z-index:2000;max-width:min(470px,calc(100vw - 40px));max-height:160px;overflow:auto;margin:0;padding:13px 18px;background:#fff;border:1px solid #e8def1;box-shadow:0 8px 35px #32204416;border-radius:12px;color:#977582;font-size:12px;white-space:pre-wrap}#notice:empty{display:none}
#auth{display:grid;grid-template-columns:.94fr 1.06fr;padding:0;max-width:940px;margin:6vh auto 3vh;overflow:hidden;border:1px solid #eae5f1;border-radius:23px;box-shadow:0 18px 80px #3b275810}.auth-art{background:radial-gradient(ellipse at 75% 40%,#53405e 0,transparent 67%),#242232;color:#f2eafa;padding:49px 39px 29px;position:relative;overflow:hidden;min-height:560px;display:flex;flex-direction:column}.auth-eyebrow{font-size:9px;color:#a396b6;letter-spacing:2px}.auth-art h2{font-size:31px;font-weight:500;line-height:1.65;letter-spacing:-.8px;margin:24px 0 18px;color:#f4edf9}.auth-art>p{font-size:12px;color:#a59aaf;line-height:2}.auth-footnote{margin-top:auto;color:#8f839b;font-size:10px;letter-spacing:1px}.auth-body{padding:46px 40px;align-self:center}.auth-body>h2{font-size:28px;margin:0 0 8px;font-weight:600}.auth-body>p{font-size:12px;color:#a79cab;margin-bottom:25px}#login{display:block}#login label{margin:17px 0;font-size:11px}#login input{margin-top:7px;height:43px}#login button{width:100%;margin:10px 0 24px;background:#8066a6;font-size:12px;height:43px;border-radius:9px}.auth-body>details{border-top:1px solid #f1ecf5;margin:0;padding:12px 0}.auth-body>details>summary{font-size:11px;color:#a391ad;font-weight:400}.auth-body details p{font-size:11px}.auth-body form:not(#login){grid-template-columns:1fr}.orbit-art{position:relative;height:195px;margin-top:12px}.orbit{border:1px solid #a78dc12b;border-radius:50%;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-30deg)}.orbit-one{width:240px;height:140px}.orbit-two{width:185px;height:185px;transform:translate(-50%,-50%) rotate(35deg)}.orbit-core{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:85px;height:85px;border-radius:26px;background:linear-gradient(140deg,#b2a1d480,#b789b117);border:1px solid #d7b8e563;box-shadow:0 0 70px #be8dcc20;display:flex;align-items:center;justify-content:center;font-size:47px;font-weight:300;color:#d7c6e6}.orbit-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:#baa4d0;box-shadow:0 0 18px #e4b3ea44}.dot-one{left:13%;top:63%}.dot-two{right:28%;top:4%;height:6px;width:6px;background:#b98fbe}.sidebar-shade{display:none}
@media(min-width:1550px){.chat-surface{max-width:1200px;padding-left:85px;padding-right:85px}.chat-welcome h2{font-size:35px}.welcome-cards{max-width:565px}}
@media(max-height:740px) and (min-width:851px){.chat-heading{padding:14px 0 10px}.welcome-symbol{height:43px;width:43px;border-radius:15px;font-size:28px;margin-bottom:12px}.chat-welcome{padding:4px 0 15px}.chat-welcome h2{font-size:25px;margin:7px 0}.chat-welcome>p{margin-bottom:15px;font-size:11px}.welcome-cards button{padding:12px 14px}.chat-welcome>.eyebrow{display:none}.chat-surface{padding-bottom:9px}#chat #question{min-height:55px;height:62px}.composer-note{padding-top:6px;font-size:8px}}
@media(max-width:1100px){:root{--sidebar:210px}.shell-brand{padding:0 20px}.shell-topbar{padding:0 22px}.chat-surface{padding-left:26px;padding-right:26px}.shell-view{padding:25px}.shell-top-right .privacy-badge{display:none}.chat-welcome h2{font-size:27px}.welcome-cards button{padding:13px}.composer-foot .attachment-badge{display:none}}
@media(max-width:850px){:root{--sidebar:215px}.shell-header{height:60px}.shell-brand{height:60px;flex-basis:190px;font-size:18px}.shell-brand small{font-size:8px}.shell-topbar{padding:0 12px;gap:8px}.shell-breadcrumb{display:none}.shell-top-right{gap:7px}.shell-top-right #identity{max-width:160px;overflow:hidden;text-overflow:ellipsis;font-size:10px}#shell-menu{display:inline-flex;background:transparent;color:#8f7f9d;padding:5px;min-height:30px;font-size:11px}body.is-authenticated #workspace{height:calc(100dvh - 60px);grid-template-columns:1fr}#workspace>aside{position:fixed;left:0;top:60px;bottom:0;width:var(--sidebar);z-index:50;transform:translateX(-100%);transition:transform .2s}.sidebar-open #workspace>aside{transform:translateX(0)}.sidebar-open .sidebar-shade{display:block;position:fixed;inset:60px 0 0 0;background:#12142566;z-index:40;border-radius:0;backdrop-filter:blur(2px)}.chat-surface{padding:0 20px 10px}.chat-heading{padding:18px 0 12px}.shell-view{padding:23px 20px}.chat-welcome h2{font-size:26px}.chat-welcome>p{font-size:11px}.welcome-cards{max-width:480px}#auth{margin:28px 20px;grid-template-columns:.8fr 1fr}.auth-art{padding:33px 26px}.auth-art h2{font-size:26px}.auth-body{padding:34px 27px}#scope-fields{grid-template-columns:1fr 1fr}.shell-dialog{padding:22px}.shell-topbar>div{flex:initial}.shell-top-right{margin-left:auto}}
@media(max-width:540px){.shell-brand{flex-basis:148px;padding:0 13px;font-size:17px;gap:9px}.shell-brand small{font-size:7px;letter-spacing:1px}.brand-mark{transform:scale(.8) skewY(-13deg);width:19px}.shell-top-right #identity{max-width:110px;font-size:9px}#shell-menu span{display:none}.shell-topbar{padding:0 8px;gap:4px}#logout{padding:4px;font-size:10px}.chat-surface{padding:0 13px 8px}.chat-heading h2{font-size:16px}.chat-heading .eyebrow{font-size:7px;letter-spacing:1px}#chat-scope{max-width:145px;font-size:9px}.chat-welcome{padding:10px 0 15px}.welcome-symbol{height:51px;width:51px;font-size:31px;border-radius:17px;margin-bottom:15px}.chat-welcome h2{font-size:23px}.chat-welcome>p{font-size:10px;margin-bottom:17px}.welcome-cards{gap:9px}.welcome-cards button{grid-template-columns:1fr;gap:7px;padding:13px;font-size:11px}.welcome-cards svg{grid-row:auto;width:20px;height:20px}.welcome-cards button small{font-size:9px;line-height:1.7}.chat-welcome>.eyebrow{font-size:8px;letter-spacing:1px}#chat.shell-composer{padding:10px 12px;border-radius:15px}#pulse-prompts button{font-size:8px;padding:4px 7px}#chat #question{font-size:12px;height:67px;min-height:58px}.composer-foot{gap:4px}.composer-foot>button{font-size:9px}.composer-foot .actions{gap:2px}.composer-foot .actions button{font-size:9px;padding:6px 9px}.composer-note{font-size:8px}.answer{padding:17px;font-size:12px}.answer>p:first-child{font-size:13px}.question{max-width:92%;font-size:12px;padding:11px 15px}#auth{display:block;margin:20px 16px}.auth-art{display:none}.auth-body{padding:34px 25px}.shell-view{padding:24px 15px}.stage-heading h2{font-size:24px}#scope-fields,.attachment-dates{grid-template-columns:1fr}.shell-dialog{padding:19px;width:calc(100vw - 20px);border-radius:16px}.dialog-heading h2{font-size:20px}.shell-dialog .actions{flex-direction:column}.shell-dialog .actions button{width:100%}.attachment-panel{padding:16px}#research-panel{padding:17px}#notice{right:10px;top:65px;max-width:calc(100vw - 20px);font-size:11px}}
/* Reset legacy form/header constraints for the unified shell. */
.shell-header{flex-wrap:nowrap}.shell-header div{flex:initial}.shell-header>.shell-brand{flex:0 0 var(--sidebar)}.shell-topbar{flex:1!important}.shell-top-right{flex-shrink:0!important}#logout{white-space:nowrap;flex-shrink:0}
.shell-view>.chat-surface{margin:0 auto}#chat.shell-composer{align-items:stretch;gap:0}.composer-foot .actions{flex-wrap:nowrap}.composer-foot #inspect{order:0}.composer-foot #send{order:1}
.shell-nav button{font-size:13px}.sidebar-profile h2{font-size:12px}#threads button{font-size:12px}.welcome-cards button{font-size:13px}.welcome-cards button small{font-size:11px}.chat-welcome>p{font-size:13px}.composer-note{font-size:10px}
.muted,.chat-welcome>p{color:#757388}.welcome-cards button small{color:#797388}#question::placeholder{color:#8c869a}#pulse-prompts button{font-size:10px;color:#766887}.composer-foot>button,.composer-foot .actions button{font-size:11px}.auth-body>p{color:#82728a}.auth-body>details>summary{color:#877090}label{font-size:13px}
@media(max-width:850px){.shell-header>.shell-brand{flex-basis:190px}}
@media(max-width:540px){.shell-header>.shell-brand{flex-basis:148px}.welcome-cards button{font-size:12px}.welcome-cards button small{font-size:10px}.chat-welcome>p{font-size:11px}.composer-note{font-size:8px}.shell-top-right{gap:2px}.shell-top-right #identity{max-width:93px}#pulse-prompts button{font-size:9px}.composer-foot>button,.composer-foot .actions button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Conversation folders keep old records intact while clearing the recent list. */
.history-tabs{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:3px;margin:0 1px 10px;padding:3px;background:#222438;border-radius:9px;flex-shrink:0}
#workspace>aside .history-tabs button{min-height:30px;padding:4px 3px;border:0;border-radius:6px;background:transparent;color:#999bb3;font-size:10px;white-space:nowrap}
#workspace>aside .history-tabs button.active{background:#3a345f;color:#f0eaff}
#threads .thread-row{display:grid;grid-template-columns:minmax(0,1fr) 27px;gap:2px;align-items:start;border-radius:8px;min-width:0}
#threads .thread-row:hover,#threads .thread-row:focus-within{background:#26283c}
#threads .thread-row .thread-open,#threads .thread-row .thread-title{display:block;min-width:0;width:100%;padding:9px 5px 9px 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;color:#b5b4c9}
#threads .thread-row .thread-title{font-size:12px;line-height:18px}
#threads .thread-row .thread-open:hover{background:transparent;box-shadow:none}
#threads .thread-menu{margin:0;min-width:0}
#threads .thread-menu summary{list-style:none;display:flex;justify-content:center;align-items:center;min-height:36px;cursor:pointer;color:#aaa5c2;font-size:19px;line-height:1;border-radius:6px}
#threads .thread-menu summary::-webkit-details-marker{display:none}
#threads .thread-menu summary:hover,#threads .thread-menu[open] summary{background:#3a3654;color:white}
#threads .thread-menu-actions{display:flex;gap:5px;grid-column:1/-1;padding:0 5px 7px}
#threads .thread-menu[open]{display:contents}
#threads .thread-menu[open] summary{grid-column:2;grid-row:1}
#threads .thread-menu[open] .thread-menu-actions{grid-row:2}
#threads .thread-menu-actions button{min-height:29px;padding:5px 9px;background:#353953;color:#e0def0;font-size:10px;flex:1;text-align:center}
#threads .thread-menu-actions button.thread-danger{background:#493447;color:#f4cfd8}
#threads .thread-page{color:#afa4da;text-align:center}
.conversational-reply{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}
/* Roomier long-form reading and direct media drop affordance. */
.chat-surface{max-width:1440px;padding-left:clamp(20px,4vw,74px);padding-right:clamp(20px,4vw,74px)}
#messages{padding-left:clamp(0px,2vw,20px);padding-right:clamp(0px,2vw,20px)}
.answer{font-size:15px;line-height:1.85;padding:26px 30px}
.question{font-size:14px;line-height:1.7;max-width:76%}
#chat.shell-composer{max-height:340px;padding:15px 20px 12px}
#chat #question{min-height:92px;height:100px;max-height:190px;font-size:15px;line-height:1.7}
#chat.file-drop{border:2px dashed #7660cc;background:#f5f1ff;box-shadow:0 0 0 8px #7660cc18}
.usage-summary{font-size:12px!important;color:#655d80!important;line-height:1.8!important;border-top:1px solid #eeeaf7;padding-top:12px;margin-top:17px;overflow-wrap:anywhere}
@media(max-width:540px){.chat-surface{padding-left:13px;padding-right:13px}.answer{font-size:13px;padding:18px}.question{max-width:92%}#chat #question{min-height:72px;height:80px;font-size:14px}}
