:root{color-scheme:dark;--bg:#080d13;--panel:#0c121beF;--surface:#141b25;--soft:#111823c9;--text:#f5ecd9;--muted:#b4afaa;--line:#bc8c4840;--accent:#d3b983;--accent-soft:#e4b76712;--accent-text:#dfcda8;--gold:#b69a66;--pale:#e7d7b4;--field:#111923;--danger:#e99b91;--shadow:0 18px 70px #0005;--focus:#ffe2a2}
:root[data-theme=light]{color-scheme:light;--bg:#f2ede3;--panel:#fbf7eff2;--surface:#fffaf1;--soft:#faf4e9ed;--text:#30271d;--muted:#716653;--line:#9c72344a;--accent:#805316;--accent-soft:#c39a501a;--accent-text:#78501e;--gold:#956526;--pale:#795018;--field:#fffbf5;--danger:#a3453b;--shadow:0 18px 70px #35251515;--focus:#81551d}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{background:var(--bg);color:var(--text);font:14px/1.5 "Segoe UI",Arial,sans-serif}button,input,textarea,select{font:inherit}button{color:inherit;cursor:pointer;border:0;background:none}button:disabled{cursor:not-allowed;opacity:.45}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent;outline-offset:5px}button:focus-visible,a:focus-visible{outline:2px solid var(--focus)}input,textarea,select{outline-color:var(--focus)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}a{color:inherit}::selection{background:#ecc27e;color:#16130e}.icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-definitions{position:absolute;height:0;width:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cosmic-backdrop{position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 50% 46%,#060b1255,#060b1205 65%),url('/assets/cosmos-atlas-clear.png?v=1') center/cover,#080d13}.cosmic-backdrop::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0509107a,transparent 38%,#05091020)}:root[data-theme=light] .cosmic-backdrop{opacity:.17}
.app-shell{position:relative;z-index:1;height:100dvh;min-height:480px}.main-panel{display:flex;flex-direction:column;height:100%;position:relative;min-width:0}.topbar{height:88px;flex-shrink:0;padding:19px 29px;display:flex;align-items:center;justify-content:space-between;position:relative;gap:15px}.header-start,.header-right{display:flex;align-items:center;gap:15px}.round-button{width:49px;height:49px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d8a75ec2;color:var(--pale);background:var(--panel);box-shadow:inset 0 0 14px #e4b96405;transition:border-color .18s,background .18s,box-shadow .18s}.round-button:hover{border-color:var(--accent);background:var(--surface);box-shadow:0 0 18px #e4b96422}.round-button .icon{width:25px;height:25px}#menu-button .icon{width:27px;height:27px}.mode-badge{font-size:10px;letter-spacing:.4px;color:var(--muted);display:inline-flex;gap:7px;align-items:center}.mode-badge::before{content:'';width:5px;height:5px;background:var(--gold);border-radius:50%;box-shadow:0 0 10px #e4b96466}.mode-badge.live::before{background:#97b99a}.header-quota{font-size:10px;letter-spacing:.5px;color:var(--accent-text);border-left:1px solid var(--line);padding-left:12px}.compact-brand{font:30px/1 Georgia,serif;display:flex;align-items:center;gap:9px;color:var(--accent-text);position:absolute;left:50%;transform:translateX(-50%);opacity:0;pointer-events:none}.compact-brand .icon{width:21px;height:21px}body.has-messages .compact-brand{opacity:1;pointer-events:auto}
.scroll-area{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#97713d55 transparent;display:flex;flex-direction:column}.welcome{width:100%;max-width:1160px;margin:auto;text-align:center;padding:0 30px 17px}.wordmark{position:relative;color:var(--pale);margin-bottom:18px}.wordmark h1{font:400 clamp(68px,8.3vw,112px)/1 Georgia,"Times New Roman",serif;letter-spacing:-5px;color:#f5d59e;background:linear-gradient(180deg,#fffbe5 10%,#f4dca7 55%,#df9a49 95%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:500;color:var(--accent-text)}.wordmark .eyebrow{font-size:12px;letter-spacing:6px;margin:19px 0 0;display:flex;align-items:center;justify-content:center;gap:20px}.wordmark .eyebrow::before,.wordmark .eyebrow::after{content:'';height:1px;width:48px;background:linear-gradient(90deg,transparent,#dba75c)}.wordmark .eyebrow::after{transform:rotate(180deg)}
.companion-picker{display:grid;grid-template-columns:1fr .9fr 1fr;gap:45px;max-width:910px;margin:0 auto;align-items:end}.companion-card{display:flex;flex-direction:column;align-items:center;padding:0 0 6px;min-width:0;outline-offset:9px;border-radius:25px;color:#f6dfaf}.portrait-shell{display:block;width:clamp(165px,27vh,280px);max-width:100%;aspect-ratio:1;border-radius:50%;overflow:hidden;border:1px solid #dfad67b3;background:#070d14;box-shadow:0 0 25px #0003;transition:box-shadow .2s,border-color .2s}.portrait-shell img{display:block;width:100%;height:100%;object-fit:cover}.companion-label{display:flex;justify-content:center;align-items:center;gap:15px;position:relative;z-index:1;background:linear-gradient(180deg,#0d131a,#070b11);border:1px solid #dba35e;border-top-color:#f5dfa3;border-radius:50px;width:84%;max-width:242px;height:57px;margin-top:-17px;color:#f8e6b9;font:400 32px/1 Georgia,serif;box-shadow:0 4px 12px #0008;transition:box-shadow .2s,border-color .2s}.companion-label .icon{width:28px;height:28px}.companion-card:hover .companion-label,.companion-card.active .companion-label{border-color:#fff1c4;box-shadow:0 0 4px #fff4c7,0 0 11px #ffc374b3,0 0 24px #db88326b,inset 0 0 16px #cf8c2220}.companion-card:hover .portrait-shell,.companion-card.active .portrait-shell{border-color:#fff0b9;box-shadow:0 0 28px #e6aa4e30}.core-orb{display:block;position:relative;width:clamp(155px,25vh,258px);aspect-ratio:1;margin:14px auto 10px;flex-shrink:0}.core-orb>svg{display:block;width:100%;height:100%;overflow:visible}.kurus-card .companion-label{width:100%;max-width:250px;margin-top:-17px}
.composer-area{width:100%;max-width:880px;padding:0 24px;margin:0 auto;flex-shrink:0}.composer{display:flex;align-items:center;gap:14px;border:1.3px solid #d1a263;border-top-color:#f1d197;border-radius:36px;padding:10px 14px 10px 25px;background:linear-gradient(110deg,#1c222bc9,#10171fe8);box-shadow:0 0 0 3px #0003,inset 0 0 15px #b6782b06;transition:border-color .2s,box-shadow .2s}.composer:focus-within{border-color:#ffe2a4;box-shadow:0 0 16px #e3a24e21,inset 0 0 15px #b6782b08}.composer textarea{display:block;flex:1;min-width:0;width:100%;min-height:30px;max-height:160px;background:none;color:#f2eadb;border:0;padding:3px 0;resize:none;font-size:17px;line-height:1.5}.composer textarea:focus{outline:none}.composer textarea::placeholder{color:#bcbab6;opacity:1}#send-button{width:41px;height:41px;flex-shrink:0;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#ffedba;transition:background .15s,opacity .15s}#send-button:hover:not(:disabled){background:#f5c47b21}#send-button .icon{width:29px;height:29px}#send-button.is-sending .icon{opacity:.5}.composer-caption{display:flex;justify-content:space-between;gap:15px;font-size:9px;color:var(--muted);padding:10px 15px 0}.settings-footer{display:flex;justify-content:center;flex-shrink:0;padding:18px 0 22px}.footer-settings{display:flex;align-items:center;gap:8px;min-height:42px;padding:8px 18px;color:var(--accent-text);font-size:12px;border:1px solid transparent;border-radius:24px;background:#080d1366}.footer-settings:hover{background:var(--surface);border-color:var(--line)}.footer-settings>.icon{width:20px;height:20px}.sidebar{position:fixed;inset:0 auto 0 0;z-index:60;width:330px;max-width:calc(100vw - 36px);background:var(--panel);backdrop-filter:blur(28px);border-right:1px solid var(--line);box-shadow:24px 0 80px #0006;display:flex;flex-direction:column;padding:25px 23px 17px;transform:translateX(-105%);transition:transform .22s ease}.sidebar.open{transform:translateX(0)}.sidebar-shade{position:fixed;inset:0;z-index:59;background:#02050bb3;backdrop-filter:blur(4px)}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--accent-text);font:30px/1 Georgia,serif}.brand>.icon{width:32px;height:32px}.brand small{display:block;font:7px/1 "Segoe UI",sans-serif;letter-spacing:2px;margin-top:7px}.icon-button{width:35px;height:35px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);padding:8px}.icon-button:hover{background:var(--accent-soft);color:var(--accent-text)}.icon-button .icon{width:20px;height:20px}.new-chat{display:flex;align-items:center;gap:10px;width:100%;color:var(--accent-text);background:linear-gradient(100deg,#e3b05d1f,#e3b05d08);border:1px solid #b98b4a88;border-radius:10px;padding:12px;font-size:12px;margin-bottom:27px}.new-chat>.icon{width:20px;height:20px}.new-chat>span{margin-left:auto}.section-label{font-size:9px;letter-spacing:2px;font-weight:500;color:var(--muted)}.assistants{margin:10px -5px 26px;display:grid;gap:5px}.assistant-tab{display:flex;align-items:center;gap:12px;padding:10px;text-align:left;border:1px solid transparent;border-radius:10px}.assistant-tab b{display:block;font-size:13px;font-weight:500}.assistant-tab small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.assistant-tab:hover,.assistant-tab.active{background:var(--accent-soft);border-color:var(--line)}.active-dot{width:5px;height:5px;border-radius:50%;background:var(--gold);margin-left:auto;opacity:0}.active .active-dot{opacity:1}.avatar{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;color:var(--accent-text);display:flex;align-items:center;justify-content:center;font:23px/1 Georgia,serif;background:var(--surface);flex-shrink:0}.avatar.atlas,.avatar.aria{color:transparent;background-position:center;background-size:cover}.avatar.atlas{background-image:url('/assets/atlas.png?v=3')}.avatar.aria{background-image:url('/assets/aria.png?v=3')}.avatar.you{font:11px/1 "Segoe UI",sans-serif}.history-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.history-heading>span:last-child{font-size:10px;color:var(--muted)}
.search-box{display:flex;align-items:center;gap:8px;padding:8px 11px;background:var(--soft);border:1px solid var(--line);border-radius:8px;margin-bottom:18px}.search-box .icon{width:16px;height:16px;color:var(--muted)}.search-box input{width:100%;min-width:0;background:none!important;color:var(--text);border:0!important;font-size:12px;padding:0!important;margin:0!important}.search-box:focus-within{border-color:var(--gold)}.search-box input:focus{outline:none}.chat-list{flex:1;overflow-y:auto;min-height:20px;scrollbar-width:thin}.empty-history{font-size:12px;color:var(--muted);padding:15px 5px}.history-label{font-size:8px;letter-spacing:1.7px;color:var(--muted);margin:12px 8px 6px}.history-label:first-child{margin-top:0}.chat-row{width:100%;padding:10px 8px;border-radius:7px;display:flex;align-items:center;gap:9px;color:var(--muted);text-align:left;font-size:12px}.chat-row:hover,.chat-row.selected{background:var(--accent-soft);color:var(--accent-text)}.chat-row>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-icon{color:var(--gold);font-size:16px}.sidebar-bottom{padding-top:16px}.quota-card{border:1px solid var(--line);background:var(--soft);padding:14px;border-radius:10px;margin-bottom:13px}.quota-card>div{display:flex;justify-content:space-between;align-items:center;font-size:11px}.quota-card b{color:var(--accent-text);font-weight:500}.quota-card small{color:var(--muted);font-size:9px}progress{display:block;width:100%;height:3px;margin:11px 0 8px;border:0;border-radius:3px;overflow:hidden;background:var(--line);accent-color:var(--gold)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:linear-gradient(90deg,#a77634,#f2ce8b)}progress::-moz-progress-bar{background:var(--gold)}.account-button{width:100%;display:flex;align-items:center;gap:12px;padding:7px 5px;text-align:left}.account-button>span:nth-child(2){min-width:0}.account-button b{display:block;font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;max-width:180px}.account-button small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.account-button>.icon{margin-left:auto;width:18px;height:18px;color:var(--muted)}.user-avatar{width:35px;height:35px;border:1px solid var(--line);border-radius:50%;color:var(--accent-text);display:flex;justify-content:center;align-items:center;flex-shrink:0;font-size:12px}
.conversation-bar{width:min(100% - 48px,900px);margin:0 auto;display:flex;align-items:center;gap:13px;padding:9px 0 16px;border-bottom:1px solid var(--line);flex-shrink:0}.chat-heading{display:flex;align-items:center;gap:13px;min-width:0}.chat-assistant{font:22px/1 Georgia,serif;color:var(--accent-text)}.chat-heading>span:last-child{color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:400px}#chat-actions{display:flex;gap:5px;margin-left:auto}.text-button{color:var(--muted);font-size:11px;padding:7px 9px;border-radius:6px}.text-button:hover{color:var(--accent-text);background:var(--accent-soft)}#companion-hint{font-size:9px;color:var(--muted)}.messages{max-width:900px;width:100%;margin:0 auto;padding:28px 15px 35px}.messages:empty{display:none}.message{display:flex;gap:14px;margin-bottom:28px}.message-body{flex:1;min-width:0}.message-heading{display:flex;align-items:center;gap:11px;margin:5px 0 10px}.message-heading b{font-size:12px;font-weight:600;color:var(--accent-text)}.message-heading time{font-size:9px;color:var(--muted)}.message-text{font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.message.user .message-text{background:var(--soft);border:1px solid var(--line);padding:14px 18px;border-radius:0 14px 14px 14px}.message.assistant .message-text{padding:3px 0}.message-actions{display:flex;gap:5px;margin-top:10px}.message-action{display:inline-flex;gap:6px;align-items:center;color:var(--muted);font-size:10px;padding:6px 8px;border-radius:6px;min-height:30px}.message-action>.icon{width:14px;height:14px}.message-action:hover,.message-action[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-text)}.pending-message,.failed-message{font-size:10px;color:var(--muted);margin-top:8px}.failed-message{color:var(--danger)}.typing{font-size:12px;color:var(--muted);padding-left:50px}.memory-indicator{font-size:10px;color:var(--muted);padding:0 18px 9px}.inline-error{color:var(--danger);font-size:12px;padding:10px 13px;border-radius:8px;border:1px solid color-mix(in srgb,var(--danger) 25%,transparent);background:color-mix(in srgb,var(--danger) 7%,transparent);margin-bottom:12px}.muted{color:var(--muted);font-size:12px;line-height:1.8}.small{font-size:10px}.danger-text{color:var(--danger)!important}
dialog{color:var(--text);background:var(--surface);border:1px solid #b0874b70;padding:0;border-radius:18px;box-shadow:0 30px 120px #0009;max-height:90dvh;scrollbar-width:thin}dialog::backdrop{background:#02060dc9;backdrop-filter:blur(10px)}.auth-dialog{width:900px;max-width:calc(100vw - 40px);overflow-y:auto}.auth-dialog[open]{display:grid;grid-template-columns:1fr 1fr}.auth-dismiss{position:absolute;right:12px;top:12px;z-index:2}.auth-art{display:flex;flex-direction:column;justify-content:space-between;min-height:630px;padding:35px 32px;color:#f8dfa9;background:linear-gradient(#070c1433,#070c1477),url('/assets/cosmos-atlas-clear.png?v=1') 30% center/auto 100%;border-right:1px solid var(--line);overflow:hidden}.auth-art .brand{color:#f6dfae}.auth-art>div:last-child{position:relative;z-index:1}.auth-art p{font:35px/1.22 Georgia,serif;letter-spacing:-.6px;margin-bottom:19px}.auth-art>div:last-child>span{font-size:7px;letter-spacing:2px;color:#bead8e}.auth-constellation{position:relative;height:240px;width:100%;margin:7px 0}.auth-orbit{border:1px solid #dba34c5c;width:255px;height:175px;border-radius:50%;position:absolute;top:45px;left:50%;transform:translateX(-50%) rotate(-30deg);box-shadow:0 0 25px #c47f2a0d}.orbit-two{transform:translateX(-50%) rotate(35deg)}.auth-star{position:absolute;width:80px;height:80px;left:calc(50% - 40px);top:88px;color:#ffdfa1;fill:currentColor;filter:drop-shadow(0 0 22px #efa44999)}.auth-portrait{position:absolute;width:88px;height:88px;border-radius:50%;border:1px solid #e2aa63;background-position:center;background-size:cover}.atlas-mini{left:4%;top:37px;background-image:url('/assets/atlas.png?v=3')}.aria-mini{right:0;bottom:0;background-image:url('/assets/aria.png?v=3')}.auth-content{padding:51px 41px 33px}.auth-content h2{font:38px/1.12 Georgia,serif;letter-spacing:-.7px;color:var(--accent-text);margin:15px 0 14px;white-space:pre-line}.auth-content>.muted{font-size:12px;margin-bottom:27px}.auth-content label{margin-bottom:16px}label{display:block;font-size:12px;font-weight:500}label input:not([type=checkbox]),label textarea,label select{display:block;width:100%;border:1px solid var(--line);background:var(--field);color:var(--text);border-radius:8px;font-size:13px;padding:12px 13px;margin-top:8px}input::placeholder,textarea::placeholder{color:var(--muted)}label input:focus,label textarea:focus,label select:focus{border-color:var(--gold)}.primary-button{border:1px solid #e1bb79;background:linear-gradient(110deg,#f0d49c,#c99550);color:#20170d;border-radius:8px;padding:12px 17px;min-height:44px;font-size:12px;font-weight:650;box-shadow:0 4px 15px #d69a3d0a}.primary-button:hover{background:linear-gradient(110deg,#ffe7b7,#d8a25b)}#auth-submit{width:100%;display:flex;justify-content:space-between;align-items:center;margin-top:5px}.auth-divider{height:0;border-top:1px solid var(--line);text-align:center;margin:28px 0 23px}.auth-divider span{position:relative;top:-10px;padding:0 12px;font-size:9px;color:var(--muted);background:var(--surface)}.google-button{width:100%;min-height:42px;display:flex;align-items:center;justify-content:center;gap:11px;color:var(--text);border:1px solid var(--line);border-radius:8px;font-size:12px}.google-button b{font-size:16px}#google-note{display:block;text-align:center;font-size:9px;margin-top:8px}.auth-switch{text-align:center;font-size:11px;color:var(--muted);margin-top:23px}.link-button{font-size:11px;color:var(--accent-text);font-weight:500;text-decoration:underline;text-underline-offset:4px;padding:3px}.auth-footer{color:var(--muted);text-align:center;font-size:9px;margin-top:22px}
.settings-dialog{width:700px;max-width:calc(100vw - 30px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:27px 28px 23px;border-bottom:1px solid var(--line);background:linear-gradient(110deg,#cd974512,transparent)}.dialog-heading h2{font:29px/1.15 Georgia,serif;color:var(--accent-text);margin-top:9px}.settings-body{padding:0 28px 23px}.setting-section{padding:23px 0;border-bottom:1px solid var(--line)}h3{font-size:13px;font-weight:600;color:var(--accent-text);margin-bottom:11px}.preference-grid{display:grid;grid-template-columns:1fr 1fr;gap:21px}.preference-grid small{display:block;font-size:10px;font-weight:400;line-height:1.6;color:var(--muted);margin-top:8px}.memory-editor{border:1px solid var(--line);background:var(--soft);border-radius:11px;padding:16px;margin-top:17px}.memory-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.memory-heading b{font:22px/1 Georgia,serif;color:var(--accent-text)}.toggle-label{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted)}input[type=checkbox]{accent-color:#cba15d;width:16px;height:16px}.memory-editor>label{font-size:11px;color:var(--muted)}.memory-editor textarea{resize:vertical;min-height:90px;max-height:230px}.memory-editor>.link-button{font-size:10px;margin-top:9px}.setting-section>.small{margin-top:15px}.data-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.secondary-button{border:1px solid var(--line);border-radius:8px;padding:10px 13px;color:var(--text);background:var(--soft);font-size:11px;min-height:39px}.secondary-button:hover{background:var(--accent-soft);border-color:var(--gold)}.settings-status{font-size:11px;color:var(--accent-text);min-height:28px;padding-top:16px}.action-dialog{width:460px;max-width:calc(100vw - 30px)}.action-dialog .dialog-heading{padding:19px 23px 21px}.action-dialog .dialog-heading h2{font-size:26px;margin-top:0}.action-dialog form>p,.action-dialog form>label{margin:19px 23px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:7px 23px 24px}.danger-button{background:#a64e42;border-color:#d58b79;color:#fff4ed}.danger-button:hover{background:#b55c4e}.updates-dialog{width:460px;max-width:calc(100vw - 30px)}.updates-body{padding:30px;text-align:center}.allowance-star{color:var(--accent-text);width:46px;height:46px;margin-bottom:20px;filter:drop-shadow(0 0 18px #df9e4933)}.allowance-count{font:25px/1.3 Georgia,serif;color:var(--accent-text);margin-bottom:13px}.updates-body>.small{margin:17px 0 24px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--surface);color:var(--accent-text);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:13px 21px;font-size:12px;max-width:calc(100vw - 30px);z-index:1000}
:root[data-theme=light] .wordmark h1{background:linear-gradient(#876329,#4e3515);-webkit-background-clip:text;background-clip:text}:root[data-theme=light] .composer{background:linear-gradient(110deg,#fffaf2f2,#f3eadcf2)}:root[data-theme=light] .composer textarea{color:#403122}:root[data-theme=light] .composer textarea::placeholder{color:#867661}:root[data-theme=light] #send-button{color:#835519}

.avatar.kurus{position:relative;background:#020408;color:transparent;border:2px solid #e2b779;box-shadow:0 0 10px #d89a3d26}.avatar.kurus::after{content:"";position:absolute;width:130%;height:27%;border:1px solid #f2d498;border-radius:50%;transform:rotate(-18deg);pointer-events:none}
body.has-messages .messages{background:var(--panel);border:1px solid var(--line);border-radius:18px;margin-top:20px;margin-bottom:20px;width:calc(100% - 48px)}body.has-messages .settings-footer{padding:9px 0 12px}
.welcome{padding-top:12px;padding-bottom:34px}.wordmark{margin-bottom:30px}.companion-card{padding-bottom:0;touch-action:manipulation}.auth-star{stroke:currentColor;stroke-width:1.6;fill:none}.footer-settings{backdrop-filter:blur(12px)}:root[data-theme=light] .footer-settings{background:#fffaf1ba}
@media(min-width:1600px){
.topbar{height:100px;padding:25px 34px}.round-button{width:57px;height:57px}.round-button .icon{width:29px;height:29px}.welcome{max-width:1280px;padding-bottom:30px}.wordmark h1{font-size:128px}.wordmark .eyebrow{font-size:14px}.companion-picker{max-width:1050px;gap:60px}.portrait-shell{width:min(31vh,310px)}.core-orb{width:min(29vh,280px);margin-top:16px;margin-bottom:13px}.companion-label{max-width:265px;height:62px;font-size:37px}.kurus-card .companion-label{max-width:265px}.composer-area{max-width:940px}.composer{min-height:74px}.composer textarea{font-size:20px}.settings-footer{padding:20px 0 26px}
}
@media(max-height:800px) and (min-width:761px){
.topbar{height:73px;padding:13px 24px}.round-button{height:44px;width:44px}.wordmark h1{font-size:84px}.wordmark .eyebrow{margin-top:13px;font-size:10px;letter-spacing:4px}.wordmark{margin-bottom:23px}.portrait-shell{width:min(27vh,210px)}.core-orb{width:min(27vh,218px);margin-top:10px;margin-bottom:3px}.companion-label{height:48px;font-size:29px;max-width:210px}.welcome{padding-bottom:23px}.composer{min-height:61px}.composer textarea{font-size:16px}.settings-footer{padding:12px 0 14px}.auth-art{min-height:570px}.auth-content{padding-top:37px;padding-bottom:25px}.auth-content h2{font-size:34px}
}
@media(max-width:1000px){
.companion-picker{gap:22px;max-width:780px}.companion-label{font-size:29px;height:50px}.portrait-shell{max-width:210px}.core-orb{max-width:215px}.chat-heading>span:last-child{max-width:250px}
}
@media(max-width:760px){
.app-shell{min-height:430px}.topbar{height:74px;padding:14px 18px}.round-button{width:42px;height:42px}.round-button .icon{width:22px;height:22px}.header-right,.header-start{gap:9px}.mode-badge{font-size:8px;gap:5px}.header-quota{font-size:9px;padding-left:8px}.compact-brand{font-size:25px}.compact-brand .icon{width:22px;height:22px}.theme-button{display:none}
.welcome{padding:15px 19px 30px}.wordmark{margin-bottom:35px}.wordmark h1{font-size:86px;letter-spacing:-3px}.wordmark .eyebrow{font-size:9px;letter-spacing:3.2px;gap:13px;margin-top:16px}.wordmark .eyebrow::before,.wordmark .eyebrow::after{width:24px}.companion-picker{gap:14px;width:100%;max-width:650px;grid-template-columns:1fr .9fr 1fr}.portrait-shell{min-width:0;width:100%;max-width:177px}.core-orb{width:100%;max-width:170px;margin:10px auto 8px}.companion-label{font-size:25px;gap:8px;height:44px;width:96%;max-width:165px;margin-top:-8px}.companion-label .icon{width:18px;height:18px}.kurus-card .companion-label{max-width:165px;margin-top:-8px}
.composer-area{padding:0 17px}.composer{padding:8px 9px 8px 20px;border-radius:32px;gap:9px;min-height:61px}.composer textarea{font-size:16px}#send-button{width:39px;height:39px}#send-button .icon{width:26px;height:26px}.composer-caption{font-size:8px;padding:9px 6px 0;gap:15px}.composer-caption>span:last-child{text-align:right;max-width:48%}.settings-footer{padding:16px 0 18px}
.sidebar{width:320px;padding:23px 20px 16px}.conversation-bar{width:calc(100% - 34px);padding-top:4px;padding-bottom:14px;gap:8px}.chat-heading{gap:9px}.chat-heading>span:last-child{max-width:195px;font-size:10px}.chat-assistant{font-size:21px}.text-button{padding:7px 5px;font-size:10px}#companion-hint{display:none}.messages{padding:22px 17px 27px}body.has-messages .messages{width:calc(100% - 24px);margin-top:12px;margin-bottom:12px}.message{gap:10px}.message>.avatar{width:29px;height:29px;font-size:19px}.message-text{font-size:13px}.message.user .message-text{padding:12px 14px}.memory-indicator{font-size:9px;padding-left:8px}
.auth-dialog{max-width:calc(100vw - 32px);max-height:93dvh;width:450px}.auth-dialog[open]{display:block}.auth-art{display:none}.auth-content{padding:40px 32px 31px}.auth-content::before{content:"";display:block;width:44px;height:44px;border-radius:50%;border:2px solid #f3d29a;background:#020408;box-shadow:0 0 3px #ffe7b6,0 0 19px #dca65455;margin:0 auto 24px}.auth-content>.eyebrow{display:block;text-align:center;font-size:9px}.auth-content h2{text-align:center;font-size:37px;margin-top:16px}.auth-content>.muted{text-align:center;font-size:11px;margin-bottom:28px}.auth-footer{font-size:8px}
.dialog-heading{padding:23px 21px 21px}.dialog-heading h2{font-size:26px}.settings-body{padding:0 21px 22px}.preference-grid{gap:13px}.preference-grid>label{font-size:10px}.preference-grid small{font-size:9px}label select{font-size:12px;padding:12px 9px}.memory-heading b{font-size:22px}.toggle-label{font-size:9px}.updates-body{padding:28px 23px}.action-dialog .dialog-heading h2{font-size:25px}.toast{bottom:20px;width:max-content;font-size:11px}
}
@media(max-width:420px){
.topbar{padding:13px 14px}.mode-badge{font-size:7px}.header-start,.header-right{gap:7px}.round-button{width:39px;height:39px}.welcome{padding-left:15px;padding-right:15px;padding-bottom:22px}.wordmark{margin-bottom:31px}.wordmark h1{font-size:74px}.wordmark .eyebrow{letter-spacing:2.4px;font-size:8px}.companion-picker{gap:10px}.companion-label{height:37px;font-size:21px;gap:6px}.companion-label .icon{width:15px;height:15px}.core-orb{margin-top:7px;margin-bottom:6px}.composer-caption{font-size:7px}.settings-footer{padding:12px 0}.footer-settings{font-size:11px;min-height:38px}.compact-brand{font-size:23px}.chat-heading>span:last-child{max-width:123px}body.has-messages .compact-brand{display:none}
}
@media(max-height:680px) and (max-width:760px){
.topbar{height:62px}.welcome{padding-top:12px;padding-bottom:21px}.wordmark h1{font-size:60px}.wordmark .eyebrow{margin-top:10px}.wordmark{margin-bottom:21px}.companion-picker{max-width:380px}.settings-footer{padding:9px 0 11px}.auth-content{padding-top:30px}.auth-content::before{display:none}.auth-content h2{font-size:32px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.chat-heading>.avatar{width:35px;height:35px;margin-right:3px}body.has-messages .messages{background:color-mix(in srgb,var(--panel) 87%,transparent)}@media(max-width:420px){.chat-heading>.avatar{width:28px;height:28px;margin-right:0}.chat-heading>span:last-child{max-width:95px}}


/* Restrained champagne line art and a photographic black-hole galaxy. */
.cosmic-backdrop{filter:brightness(.78) saturate(.72)}
.round-button{border-color:#c3a46c80;background:#0b111bc9;box-shadow:none}
.round-button:hover{border-color:#dbc698;background:var(--surface);box-shadow:0 0 13px #c8a56914}
.wordmark h1{background:linear-gradient(180deg,#f1e5c7,#d5bb8a 72%,#b99359);-webkit-background-clip:text;background-clip:text}
.wordmark .eyebrow{color:#c5b28c}
.portrait-shell{border-color:#b79b6766;box-shadow:0 8px 28px #0002}
.companion-label{border-color:#ac8c5570;border-top-color:#d8c49a99;color:#e8d8b4;background:linear-gradient(#10151bcc,#070b10ed);box-shadow:0 4px 13px #0004}
.companion-card:hover .companion-label,.companion-card.active .companion-label{border-color:#d9c197;box-shadow:0 0 12px #bf935635,inset 0 0 14px #b38b4510}
.companion-card:hover .portrait-shell,.companion-card.active .portrait-shell{border-color:#dac59b9c;box-shadow:0 0 19px #b69a6618}
.core-orb.galaxy-orb{width:clamp(180px,27vh,270px);margin:5px auto 2px;max-width:100%;border:0;border-radius:50%;background:none;box-shadow:none}
.galaxy-orb>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;mask-image:radial-gradient(circle,#000 60%,#000b 74%,transparent 99%);-webkit-mask-image:radial-gradient(circle,#000 60%,#000b 74%,transparent 99%)}
.composer{border-color:#b69a66a8;border-top-color:#dac49cbb;box-shadow:0 0 0 3px #0002}
.composer:focus-within{border-color:#e1c89b;box-shadow:0 0 14px #bd955526}
.avatar.kurus{border-color:#c6a976;box-shadow:none;background:#020408 url('/favicon.svg?v=galaxy-3#galaxy') center/cover}
.avatar.kurus::after{content:none}
:root[data-theme=light] .round-button{background:#fffaf1db;border-color:#9d7c4780}
:root[data-theme=light] .wordmark h1{background:linear-gradient(#876329,#4e3515);-webkit-background-clip:text;background-clip:text}
:root[data-theme=light] .wordmark .eyebrow{color:var(--accent-text)}
@media(min-width:1600px){.core-orb.galaxy-orb{width:min(31vh,310px);margin-top:2px;margin-bottom:0}}
@media(max-height:800px) and (min-width:761px){.core-orb.galaxy-orb{width:min(29vh,230px);margin-top:0;margin-bottom:0}}
@media(max-width:760px){.core-orb.galaxy-orb{width:100%;max-width:192px;margin:0 auto 2px}.companion-picker{grid-template-columns:1fr 1fr 1fr;gap:12px}}
@media(max-width:420px){.core-orb.galaxy-orb{margin-top:0;margin-bottom:0}.companion-picker{gap:8px}}




/* The original gold light trails return across the whole page. */
.cosmic-backdrop{filter:none;background:radial-gradient(ellipse at 50% 46%,#05091018,transparent 70%),url('/assets/cosmos-atlas-clear.png?v=1') center/cover,#080d13}
.cosmic-backdrop::after{background:linear-gradient(0deg,#05091033,transparent 32%,#05091012)}
.portrait-shell{border-color:#d9bb8180;box-shadow:0 0 18px #e9ad4e24,0 0 44px #dc9b3512}
.auth-art{background:linear-gradient(#070c141a,#070c1444),url('/assets/cosmos-atlas-clear.png?v=1') 30% center/auto 100%}
:root[data-theme=light] .cosmic-backdrop{opacity:.25}
:root[data-theme=light] .portrait-shell{box-shadow:0 0 24px #b27f301c}

@media(max-width:1000px){.cosmic-backdrop{background-size:100% 100%,100% 100%}}


.atlas-card,.avatar.atlas,.atlas-mini{--portrait-zoom:1.23}
.aria-card,.avatar.aria,.aria-mini{--portrait-zoom:1.15}
.portrait-shell img,.avatar>img,.auth-portrait>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(var(--portrait-zoom,1));transform-origin:center}
.avatar,.auth-portrait{overflow:hidden}
.avatar.atlas,.avatar.aria,.avatar.kurus,.atlas-mini,.aria-mini{background-image:none}
#sidebar .assistant-tab>.avatar{width:46px;height:46px;border-width:1px}
#sidebar .assistant-tab{gap:14px}

/* Balance the edited artwork's overall glow without mirroring its organic paths. */
.cosmic-backdrop::after{background:linear-gradient(0deg,#05091033,transparent 32%,#05091012)}

/* Comfortable text and controls in the conversation view. */
.message-text{font-size:16px;line-height:1.75}
.message-heading b{font-size:13px}.message-heading time{font-size:11px}
.message{margin-bottom:30px}.message-actions{gap:8px}
.message-action{font-size:11px;min-height:36px;padding:8px 10px}
.pending-message,.failed-message,.typing{font-size:12px}
.composer-caption{font-size:10px;line-height:1.5}
body.has-messages .messages{background:var(--panel);padding:26px}
@media(max-width:760px){body.has-messages .messages{padding:20px 16px}.message-action{min-height:44px}.composer-caption{font-size:9px}.message{gap:12px}}

/* Hosted beta controls and policy documents. */
.check-line{display:flex;align-items:flex-start;gap:12px;margin:20px 0;line-height:1.5}.check-line input{width:18px;min-width:18px;height:18px;margin-top:3px}.recovery-link{margin-top:16px}.data-actions a{text-decoration:none}.policy-page{display:block;overflow:auto;min-height:100vh;height:auto;background:#080d13;color:#f5ecd9;font:16px/1.75 system-ui}.policy-content{max-width:760px;margin:auto;padding:48px 24px}.policy-content h1,.policy-content h2,.policy-content a{color:#dfcda8}.policy-content h1{font:42px Georgia}.policy-content h2{font-size:20px;margin-top:30px}.policy-content small{color:#b4afaa}

/* Account entry and the selected initial-in-a-gold-ring identity. */
.sign-in-button{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:10px 19px;border:1px solid #c5a16a99;border-radius:26px;background:var(--panel);color:var(--accent-text);font-size:12px;font-weight:600;white-space:nowrap}
.sign-in-button>.icon{width:17px;height:17px}.sign-in-button:hover{border-color:var(--accent);background:var(--surface)}
.profile-button{font:24px/1 Georgia,serif;letter-spacing:0;border-width:1px;background:radial-gradient(circle at 35% 25%,#35404d,#111b28 72%);color:#ead3a5}
.user-avatar{font:18px/1 Georgia,serif;border-color:#b49a6d99;background:var(--accent-soft)}
.auth-dialog{width:920px}.auth-art{min-height:650px}.auth-content{padding:42px 38px 29px}.auth-content h2{font-size:39px;margin:18px 0 12px}.auth-content>.muted{margin-bottom:21px}
.auth-tabs{display:flex;padding:4px;gap:4px;border:1px solid var(--line);background:var(--field);border-radius:11px;margin:0 0 23px}
.auth-tab{flex:1;min-height:39px;font-size:12px;border-radius:7px;color:var(--muted);border:1px solid transparent}
.auth-tab.active{color:var(--accent-text);border-color:var(--line);background:var(--surface);box-shadow:0 2px 8px #0001}
.password-field{display:block;position:relative}.password-field input{padding-right:49px!important}.password-toggle{position:absolute;right:5px;top:4px;display:grid;place-items:center;width:38px;height:37px;border-radius:7px;color:var(--muted)}.password-toggle:hover{background:var(--accent-soft);color:var(--accent-text)}.password-toggle>.icon{width:19px;height:19px}
.password-hint{margin:-5px 0 16px}.auth-galaxy{position:absolute;left:calc(50% - 66px);top:63px;width:132px;height:132px;border-radius:50%;overflow:hidden;box-shadow:0 0 28px #e5b76e30}.auth-galaxy img{display:block;width:100%;height:100%;object-fit:cover}
.auth-orbit{width:260px;height:185px;top:38px}.auth-switch{margin-top:20px}.auth-footer{line-height:1.6}.google-button{min-height:45px}#auth-submit{min-height:47px}#auth-submit>.icon{width:18px;height:18px}
/* Moonlit silver: a separate cosmic artwork and a complete matching interface. */
:root[data-theme=light]{--bg:#b9cce0;--panel:#e5eef8f5;--surface:#f0f5fb;--soft:#dce7f2ed;--text:#233246;--muted:#465970;--line:#8c704b66;--accent:#705022;--accent-soft:#9d7c4020;--accent-text:#5d411c;--gold:#876432;--pale:#e7d0a2;--field:#f8fbff;--danger:#9a383e;--shadow:0 18px 70px #182e4b33;--focus:#6b491b}
:root[data-theme=light] .cosmic-backdrop{opacity:1;filter:none;background:radial-gradient(ellipse at 50% 46%,#ecf5ff0d,transparent 70%),url('/assets/cosmos-moonlit.png?v=1') center/cover,#9db7d0}
:root[data-theme=light] .cosmic-backdrop::after{background:linear-gradient(0deg,#17345418,transparent 38%,#e5f0ff0a)}
:root[data-theme=light] .wordmark h1{background:linear-gradient(180deg,#38220d,#6b471b 64%,#51310e);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 1px 2px #f0f6ffad)}
:root[data-theme=light] .wordmark .eyebrow{color:#352b20;text-shadow:0 1px 5px #dbeeffb3}
:root[data-theme=light] .round-button,:root[data-theme=light] .sign-in-button{color:#f2d6a3;background:#24374bdc;border-color:#d9b779b3}
:root[data-theme=light] .round-button:hover,:root[data-theme=light] .sign-in-button:hover{background:#354d66;border-color:#f2dba9}
:root[data-theme=light] .mode-badge,:root[data-theme=light] .header-quota{color:#243348;text-shadow:0 1px 3px #e7f3ffc9}
:root[data-theme=light] .companion-label{background:linear-gradient(#f0f6fce8,#d0dfefeb);color:#4d3214;border-color:#9a793f99;box-shadow:0 6px 17px #223f5c21,inset 0 1px 0 #ffffffc9}
:root[data-theme=light] .companion-card.active .companion-label,:root[data-theme=light] .companion-card:hover .companion-label{border-color:#926622;box-shadow:0 0 17px #dfbb7055,inset 0 1px 0 #fff}
:root[data-theme=light] .portrait-shell{border-color:#c49c53b3;box-shadow:0 7px 24px #142f4c2e,0 0 19px #e4bd6a40}
:root[data-theme=light] .composer{background:linear-gradient(110deg,#213247ed,#314961ed);border-color:#d9b779;box-shadow:0 7px 26px #233a5530,inset 0 1px 0 #d7e6ff1c}
:root[data-theme=light] .composer textarea{color:#f2f6fc}:root[data-theme=light] .composer textarea::placeholder{color:#d9e3ef}:root[data-theme=light] #send-button{color:#f6dda9}
:root[data-theme=light] .composer-caption{color:#2d4059;background:#e4eff9c9;border-radius:7px;padding:5px 10px;margin-top:7px}
:root[data-theme=light] .footer-settings{color:#26364c;background:#e3eef9c9;border-color:#a3b7ce8c}:root[data-theme=light] .footer-settings:hover{background:#eff6fd}
:root[data-theme=light] dialog{box-shadow:0 30px 100px #0e213e66}:root[data-theme=light] dialog::backdrop{background:#1a304879}
:root[data-theme=light] .sidebar-shade{background:#13294488}
:root[data-theme=light] .auth-art{color:#233247;background:linear-gradient(#c4dbee10,#314e7233),url('/assets/cosmos-moonlit.png?v=1') 30% center/auto 100%}
:root[data-theme=light] .auth-art .brand{color:#473116}:root[data-theme=light] .auth-art>div:last-child>span{color:#25394e}:root[data-theme=light] .auth-art p{text-shadow:0 1px 12px #eef7ffb3}
:root[data-theme=light] .auth-orbit{border-color:#98774766}:root[data-theme=light] .auth-galaxy{box-shadow:0 0 28px #eacb8e66}
@media(max-width:760px){.sign-in-button{min-height:42px;padding:9px 15px}.profile-button{font-size:22px}.auth-dialog{width:450px}.auth-content{padding:38px 29px 28px}.auth-content h2{font-size:35px}.auth-content::before{content:none}.auth-tabs{margin-bottom:23px}.auth-content>.eyebrow{text-align:left}.auth-content h2,.auth-content>.muted{text-align:left}.auth-content>.eyebrow{font-size:9px}.header-start{gap:8px}.header-right{gap:8px}}
@media(max-width:420px){.header-right{gap:7px}.sign-in-button{padding:9px 12px;font-size:11px;gap:7px}.sign-in-button>.icon{width:14px}.auth-content{padding:35px 25px 26px}.auth-content h2{font-size:32px}}

/* Dedicated moonlit assets retain rich gold and the original galaxy structure. */
:root[data-theme=light] .portrait-shell,
:root[data-theme=light] .avatar.atlas,
:root[data-theme=light] .avatar.aria,
:root[data-theme=light] .auth-portrait,
:root[data-theme=light] .galaxy-orb,
:root[data-theme=light] .avatar.kurus,
:root[data-theme=light] .auth-galaxy{background:#6485a7;isolation:isolate}
:root[data-theme=light] .portrait-shell>img,
:root[data-theme=light] .avatar>img,
:root[data-theme=light] .auth-portrait>img,
:root[data-theme=light] .galaxy-orb>img,
:root[data-theme=light] .auth-galaxy>img{mix-blend-mode:normal;filter:none}
:root[data-theme=light] .galaxy-orb{background:transparent}
:root[data-theme=light] .galaxy-orb::after,
:root[data-theme=light] .avatar.kurus::after,
:root[data-theme=light] .auth-galaxy::after{content:none}
.auth-password-row{margin-bottom:16px}.auth-password-row>label{margin-bottom:0}
.password-field>input{display:block;width:100%;border:1px solid var(--line);background:var(--field);color:var(--text);border-radius:8px;font-size:13px;padding:12px 49px 12px 13px;margin-top:8px}
.password-field>input:focus{border-color:var(--gold)}
@media(max-width:760px){.theme-button{display:inline-flex}.compact-brand{display:none}.mode-badge{display:none}.header-quota{padding-left:0;border:0}}

/* Consistent conversation surfaces, readable text, and comfortable controls. */
:root{--reading-panel:#0d1623f7;--reading-text:#eeeef2;--reading-muted:#b9c2d0}
:root[data-theme=light]{--reading-panel:#ecf3fbfa;--reading-text:#1d3048;--reading-muted:#435973}
body.has-messages .messages{background:var(--reading-panel);color:var(--reading-text);border:1px solid var(--line);border-radius:18px;padding:30px 32px 8px;margin:20px auto 26px;box-shadow:0 12px 40px #00000014}
.message{margin-bottom:34px;gap:16px}.message-text{font-size:16px;line-height:1.8;tab-size:4}.message-heading{margin:4px 0 12px}.message-heading time,.message-action{color:var(--reading-muted)}.message.user .message-text{background:var(--accent-soft);border-radius:14px;padding:15px 18px}.message.assistant .message-text{padding-right:8px}.message-body{max-width:72ch}.message-action,.text-button,.icon-button{min-height:44px;min-width:44px}.message-action{font-size:12px}.message-action>.icon{width:16px;height:16px}.message-heading b{font-size:13px}.message-heading time{font-size:12px}
.streaming-reply .message-heading{font-size:12px;color:var(--reading-muted)}.streaming-reply .message-text::after{content:' ▍';color:var(--gold)}
.conversation-bar{flex-wrap:wrap}.chat-heading{flex:1;min-width:0}.chat-heading>span:last-child{max-width:32vw}#chat-actions{flex-wrap:wrap;gap:2px}#companion-hint{font-size:11px}
.header-quota{min-height:44px;font-size:12px;border-radius:7px}.quota-low{font-weight:700;text-decoration:underline;text-underline-offset:5px}.quota-card small{display:block;font-size:11px;line-height:1.6}.quota-reset{margin-top:4px}.allowance-warning{font-size:12px;line-height:1.6;color:var(--accent-text);background:var(--panel);padding:9px 14px;border:1px solid var(--line);border-radius:10px;margin-bottom:10px}.allowance-reset{font-size:14px;color:var(--accent-text);margin:16px 0 8px}.memory-indicator{min-height:38px;font-size:12px;border-radius:10px;padding:7px 12px;margin-bottom:7px;background:var(--panel);color:var(--accent-text);border:1px solid var(--line);text-align:left}
.memory-editor{border:1px solid var(--line);border-radius:13px;padding:18px;margin:15px 0;background:var(--field)}.memory-editor.memory-enabled{border-color:var(--gold)}.memory-heading{gap:14px;flex-wrap:wrap}.memory-heading b{font-size:25px}.memory-summary{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0 5px}.memory-count{display:block;font-size:11px;color:var(--muted);margin-bottom:10px}.memory-editor textarea{font-size:14px;line-height:1.6}.memory-editor .link-button{min-height:44px}.toggle-label{min-height:44px;font-size:12px}.setting-section h3{font-size:16px}.settings-body .muted{font-size:13px;line-height:1.7}.settings-body .small{font-size:12px}.preference-grid>label{font-size:13px}.preference-grid small{font-size:11px}.data-actions{gap:10px}.data-actions button,.data-actions a{min-height:44px}.settings-status{position:sticky;bottom:0;background:var(--surface);padding:10px 0;font-size:12px}
.guide-dialog{width:740px;max-width:calc(100vw - 32px)}.guide-body{padding:0 28px 28px}.guide-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.guide-options button{text-align:left;padding:20px 17px;border:1px solid var(--line);border-radius:13px;background:var(--field);transition:border-color .18s}.guide-options button:hover{border-color:var(--gold);background:var(--accent-soft)}.guide-options b{display:block;font:28px Georgia;color:var(--accent-text);margin-bottom:12px}.guide-options span{display:block;font-size:14px;line-height:1.6}.guide-options small{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:13px}.guide-body>.primary-button{margin-top:22px;width:100%}.guide-body>.small{font-size:12px}#report-description{min-height:130px;width:100%;resize:vertical;background:var(--field);color:var(--text);padding:12px;border:1px solid var(--line);border-radius:8px;margin:8px 0 14px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:3px}dialog{scroll-padding:20px}dialog:focus{outline:none}.scroll-area{scroll-padding-block:20px;overscroll-behavior:contain}.auth-tab,.password-toggle,.link-button{min-height:44px}.password-toggle{top:3px;height:42px;width:42px}.password-field>input{min-height:49px}.toast{max-width:calc(100vw - 32px);font-size:13px;line-height:1.5}
@media(max-width:760px){
.app-shell{min-height:0}.topbar{padding-top:max(12px,env(safe-area-inset-top));height:76px}.round-button{width:44px;height:44px}.header-start,.header-right{gap:8px}.header-quota{font-size:11px;padding:0 4px}.composer-area{padding:0 14px}.composer{padding:10px 10px 10px 18px;gap:8px}.composer textarea{font-size:16px;max-height:140px}#send-button{width:44px;height:44px}.settings-footer{padding:7px 0 max(9px,env(safe-area-inset-bottom))}.footer-settings{min-height:44px}.composer-caption{flex-wrap:wrap;gap:3px 12px;padding:7px 5px 0;font-size:10px}.conversation-bar{width:calc(100% - 28px);padding-bottom:7px;gap:3px}.chat-heading{flex-basis:100%}.chat-heading>span:last-child{max-width:calc(100vw - 145px)}#chat-actions{margin-left:0;width:100%;justify-content:flex-end}.text-button{font-size:12px;padding:8px 10px}body.has-messages .messages{width:calc(100% - 24px);margin:12px auto 18px;padding:20px 14px 1px;border-radius:13px}.message{gap:10px;margin-bottom:26px}.message>.avatar{width:28px;height:28px}.message-text{font-size:16px;line-height:1.75}.message.user .message-text{padding:12px}.message-heading{gap:8px}.message-heading time{font-size:11px}.message-actions{gap:5px}.settings-body{padding:0 20px 18px}.setting-section{padding-top:20px}.preference-grid{grid-template-columns:1fr}.memory-editor{padding:14px}.memory-heading{gap:6px}.guide-options{grid-template-columns:1fr;gap:9px;margin:18px 0}.guide-options button{padding:16px}.guide-options b{font-size:24px;margin-bottom:6px}.guide-options small{margin-top:7px}.guide-body{padding:0 20px 22px}.guide-dialog h2{font-size:29px}.sidebar{padding:18px 18px max(14px,env(safe-area-inset-bottom));overflow-y:auto}.sidebar-heading{margin-bottom:16px}.new-chat{margin-bottom:18px}.assistants{margin-bottom:18px}.sidebar-bottom{padding-top:12px}.quota-card{padding:12px}.sidebar .chat-list{min-height:90px;flex:1 0 90px}.auth-content{padding:35px 25px 26px}.auth-content .muted,.auth-content label{font-size:13px}.auth-content .small,.auth-footer{font-size:12px}.auth-content input{font-size:16px}.auth-tabs{margin-bottom:18px}.data-actions{display:grid;grid-template-columns:1fr 1fr}.data-actions>*{width:100%;font-size:12px}.memory-indicator{font-size:12px;min-height:44px}.allowance-warning{font-size:11px}
}
@media(max-width:360px){.topbar{padding-inline:10px}.header-start,.header-right{gap:4px}.round-button{width:42px;height:44px}.header-quota{font-size:10px}.sign-in-button{padding:9px 10px}.data-actions{grid-template-columns:1fr}.companion-label{font-size:20px}}
@media(max-height:560px) and (max-width:760px){.topbar{height:60px}.welcome{padding-top:8px}.wordmark{margin-bottom:16px}.wordmark h1{font-size:56px}.wordmark .eyebrow{margin-top:8px}.companion-picker{max-width:310px}.composer-caption #context-note{display:none}}
@media(prefers-reduced-motion:reduce){.streaming-reply .message-text::after{content:''}}

body.has-messages .topbar{background:var(--reading-panel);border-bottom:1px solid var(--line)}
body.has-messages .conversation-bar{background:var(--reading-panel);border:1px solid var(--line);border-radius:12px;padding:8px 14px;margin-top:12px;box-shadow:0 4px 18px #0000000a}
body.has-messages #conversation-title{color:var(--reading-muted)}
body[data-assistant=atlas] #conversation-title,body[data-assistant=aria] #conversation-title{display:none}
@media(max-width:760px){body.has-messages .conversation-bar{padding:6px 10px;margin-top:8px}}

.header-quota{background:var(--panel);color:var(--accent-text)!important;border:1px solid var(--line);padding-inline:10px;text-shadow:none!important}.mode-badge{background:var(--panel);color:var(--accent-text)!important;border:1px solid var(--line);padding:7px 10px;border-radius:20px;text-shadow:none!important}@media(max-width:760px){.header-quota{padding-inline:7px}.mode-badge{display:none}}

/* Chat refinement: one workspace, clear hierarchy, and natural message flow. */
.sr-only{top:0;left:0}
body:not(.policy-page){height:100dvh;overflow:hidden}
.chat-stage{display:flex;flex-direction:column;position:relative;flex:1;min-height:0;width:100%;margin:0 auto}
body.has-messages .topbar{height:72px;background:linear-gradient(180deg,var(--panel),transparent);border:0}
body.has-messages .chat-stage{width:calc(100% - 48px);max-width:960px;margin:6px auto 0;border:1px solid #bda16e55;border-radius:22px;background:linear-gradient(145deg,#0c1522f5,#121f2ff5);box-shadow:0 20px 70px #0004;overflow:hidden}
body.has-messages .conversation-bar{width:100%;padding:14px 23px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;flex-wrap:nowrap;gap:14px;position:relative;z-index:5}
.chat-heading{min-width:0;gap:12px;flex:1}
.conversation-identity{display:flex;flex-direction:column;gap:4px;min-width:0}
.conversation-identity .chat-assistant{font-size:23px;line-height:1.15}
.conversation-identity #conversation-title{font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;color:var(--reading-muted)}
.conversation-identity #companion-hint{font-size:11px;color:var(--reading-muted)}
.thread-tools{display:flex;gap:8px;align-items:center;flex-shrink:0}
.thread-new-chat{display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 12px;border:1px solid var(--line);border-radius:11px;color:var(--accent-text);font-size:12px;background:var(--accent-soft)}
.thread-new-chat .icon{width:17px;height:17px}.thread-new-chat:hover{background:var(--surface)}
.conversation-options{position:relative}.conversation-options summary{list-style:none;width:44px;height:44px;display:grid;place-items:center;cursor:pointer;border:1px solid var(--line);border-radius:11px;color:var(--accent-text);background:var(--accent-soft)}
.conversation-options summary::-webkit-details-marker{display:none}.conversation-options summary:hover,.conversation-options[open] summary{background:var(--surface)}
.conversation-options summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
#chat-actions.conversation-menu{position:absolute;top:calc(100% + 9px);right:0;width:205px;padding:6px;display:grid;gap:2px;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:13px;box-shadow:0 12px 40px #0005;z-index:10}
#chat-actions.conversation-menu .text-button{width:100%;text-align:left;min-height:44px;font-size:13px;padding:10px 14px;border-radius:8px}
#chat-actions.conversation-menu #delete-chat{border-top:1px solid var(--line);border-radius:0 0 8px 8px;margin-top:4px}
body.has-messages .scroll-area{scrollbar-gutter:stable;scrollbar-width:thin;scroll-padding:24px}
body.has-messages .messages{width:100%;max-width:860px;flex:none;margin:0 auto;padding:26px 28px 8px;border:0;border-radius:0;box-shadow:none;background:none;color:var(--reading-text)}
.message{gap:12px;margin-bottom:23px}.message-body{max-width:72ch}
.message-heading{margin:2px 0 8px;min-height:19px;gap:10px}.message-heading b{font-size:12px;letter-spacing:.15px}.message-heading time{font-size:10px;color:var(--reading-muted)}
.message-text{font-size:16px;line-height:1.7;letter-spacing:.05px}
.message.assistant>.avatar{width:31px;height:31px;margin-top:1px}
.message.assistant .message-body{flex:1}.message.assistant .message-text{padding:0 0 0 0}
.message.user{justify-content:flex-end;padding-left:40px;margin-bottom:27px}
.message.user>.avatar{display:none}.message.user .message-body{flex:0 1 auto;max-width:84%}
.message.user .message-heading{justify-content:flex-end}
.message.user .message-text{padding:12px 16px;border-radius:16px 16px 4px 16px;background:#cba66a16;border:1px solid #c9a66d40}
.message-actions{margin-top:10px;gap:3px}.message-action{min-height:36px;min-width:36px;font-size:11px;padding:7px 8px}.message-action>.icon{width:15px;height:15px}
body.has-messages .composer-area{width:100%;max-width:none;padding:14px 24px 16px;border-top:1px solid var(--line);background:linear-gradient(180deg,#111c2b00,#0c152299)}
body.has-messages .composer{background:#0a121d99;border:1px solid #bda16e88;box-shadow:none;border-radius:18px;padding:10px 10px 10px 18px;gap:10px}
body.has-messages .composer:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px var(--accent-soft)}
body.has-messages .composer textarea{font-size:16px;line-height:1.5}
body.has-messages #send-button{width:42px;height:42px;border:1px solid var(--line);border-radius:12px;background:var(--accent-soft)}
body.has-messages #send-button>.icon{width:23px;height:23px}
body.has-messages .composer-caption{padding:8px 2px 0;font-size:10px;gap:6px 15px;line-height:1.5;color:var(--reading-muted);background:none;border-radius:0;margin:0;flex-wrap:wrap}
body.has-messages #save-status::before{content:'';display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--gold);vertical-align:middle;margin-right:6px}
body.has-messages .settings-footer{padding:4px 0 max(5px,env(safe-area-inset-bottom))}
body.has-messages .footer-settings{min-height:36px;padding:6px 15px;font-size:11px;background:none}
body.has-messages .footer-settings>.icon{width:17px;height:17px}
body.has-messages .memory-indicator{font-size:11px;padding:6px 10px;min-height:32px;margin-bottom:9px;background:var(--accent-soft)}
.jump-latest{position:absolute;bottom:calc(var(--composer-height,120px) + 13px);left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:7px;min-height:42px;padding:9px 15px;border:1px solid var(--gold);background:var(--surface);box-shadow:0 4px 18px #0003;color:var(--accent-text);border-radius:24px;font-size:12px;white-space:nowrap}
.jump-latest .icon{width:16px;height:16px}.messages:focus-visible{outline:2px solid var(--focus);outline-offset:-5px}
:root[data-theme=light] body.has-messages .chat-stage{background:linear-gradient(145deg,#e0ebf8f5,#cbdceeF7);border-color:#9e7e4859;box-shadow:0 20px 70px #12325624}
:root[data-theme=light] .message.user .message-text{background:#b2c9e34d;border-color:#7893b05e}
:root[data-theme=light] body.has-messages .composer-area{background:linear-gradient(180deg,#dce8f600,#d2e2f38c)}
:root[data-theme=light] body.has-messages .composer{background:#edf5ffb3;border-color:#92703d88}
:root[data-theme=light] body.has-messages .composer textarea{color:#1d3048}:root[data-theme=light] body.has-messages .composer textarea::placeholder{color:#4d637c}
:root[data-theme=light] body.has-messages #send-button{color:#62471f;background:#bea06a20}
@media(max-width:760px){
body.has-messages .topbar{height:66px;padding:10px 14px}
body.has-messages .chat-stage{width:calc(100% - 20px);margin-top:0;border-radius:17px}
body.has-messages .conversation-bar{padding:10px 13px;gap:9px;flex-wrap:nowrap}
.chat-heading{flex-basis:auto;gap:9px}.chat-heading>.avatar{width:31px;height:31px}
.conversation-identity .chat-assistant{font-size:21px}.conversation-identity #conversation-title{font-size:11px;max-width:none}
.thread-new-chat{min-height:44px;min-width:44px;padding:9px}.thread-new-chat>span{display:none}.thread-new-chat .icon{width:19px;height:19px}
.conversation-options summary{width:44px;height:44px}.thread-tools{gap:6px}
body.has-messages .messages{width:100%;padding:19px 16px 3px;margin:0}
.message{gap:9px;margin-bottom:22px}.message.user{padding-left:15px;margin-bottom:24px}
.message.user .message-body{max-width:92%}.message-text{font-size:16px;line-height:1.7}
.message.assistant>.avatar{width:27px;height:27px}.message-heading{gap:8px}.message-heading b{font-size:12px}
.message-action{min-height:44px;min-width:44px;padding:8px}.message-actions{gap:1px}
body.has-messages .composer-area{padding:11px 12px 12px}
body.has-messages .composer{padding:9px 8px 9px 13px;border-radius:16px}
body.has-messages #send-button{width:44px;height:44px}
body.has-messages .composer-caption{font-size:9px;gap:2px 8px;padding-top:7px}
body.has-messages .memory-indicator{min-height:38px}
body.has-messages .settings-footer{padding:3px 0 max(4px,env(safe-area-inset-bottom))}
body.has-messages .footer-settings{min-height:36px}
}
@media(max-width:380px){body.has-messages .messages{padding-inline:12px}.conversation-identity .chat-assistant{font-size:19px}.message.user{padding-left:0}.thread-tools{gap:4px}body.has-messages .composer-caption #context-note{max-width:140px}}

:root[data-theme=light] body.has-messages .composer-caption{background:none;border-radius:0;margin:0;padding:8px 2px 0;color:var(--reading-muted)}

/* Voice notes: explicit recording, local review, and authenticated playback. */
.mic-button{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:1px solid var(--line);border-radius:12px;color:var(--accent-text);background:var(--accent-soft)}
.mic-button>.icon{width:21px;height:21px}.mic-button:hover,.mic-button[aria-expanded=true]{background:var(--surface);border-color:var(--gold)}
:root[data-theme=light] .mic-button{color:#f0d29c;background:#24374b;border-color:#c1a16a88}
:root[data-theme=light] body.has-messages .mic-button{color:#62471f;background:#bea06a20}
.voice-panel{text-align:left;padding:13px 15px;margin-bottom:12px;background:var(--surface);border:1px solid var(--line);border-radius:15px;color:var(--text)}
.voice-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.voice-panel-heading>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.voice-panel-heading b{font-size:14px;color:var(--accent-text)}
.voice-panel-heading>.icon-button{width:36px;height:36px;min-width:36px;min-height:36px;padding:8px}
.voice-timer{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.voice-record-dot{width:8px;height:8px;border-radius:50%;background:#e27f73;box-shadow:0 0 0 4px #e27f7318;animation:voice-pulse 1.5s ease-in-out infinite}
.voice-status{font-size:12px;line-height:1.5;margin:4px 0 10px;color:var(--muted)}.voice-privacy{font-size:10px;line-height:1.6;color:var(--muted);margin:9px 0 0}
.voice-controls{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.voice-controls>.secondary-button{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:9px 13px;font-size:12px}.voice-controls .icon{width:17px;height:17px}
.voice-stop{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 45%,transparent)}.voice-controls .link-button{font-size:12px}.voice-send-hint{font-size:11px;color:var(--accent-text)}
.voice-panel audio{display:block;width:100%;height:38px;margin:9px 0 12px;color-scheme:inherit}.voice-panel .inline-error{margin-top:9px;font-size:12px}
.voice-panel[data-phase=recording]{border-color:#d68f77aa}
.voice-note{min-width:210px;max-width:100%}.voice-note-heading{display:flex;align-items:center;gap:7px;color:var(--accent-text);font-size:12px;margin-bottom:10px}.voice-note-heading>.icon{width:16px;height:16px}
.voice-note audio{display:block;max-width:100%;width:300px;height:39px;color-scheme:inherit}
.voice-transcript{font-size:13px;line-height:1.7;margin-top:9px;max-width:52ch}.voice-transcript summary{cursor:pointer;color:var(--muted);min-height:30px;padding:5px 0;font-size:11px}.voice-transcript p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0}
.voice-audio-download{display:inline-block;color:var(--muted);font-size:11px;text-decoration:none;padding:6px 0;margin-top:2px;min-height:30px}.voice-audio-download:hover{text-decoration:underline}
.voice-no-transcript{font-size:11px;color:var(--muted);margin-top:8px}
@keyframes voice-pulse{50%{opacity:.45}}
@media(max-width:760px){.mic-button{width:44px;height:44px}.voice-panel{padding:10px 12px;border-radius:12px}.voice-panel-heading>.icon-button{min-height:44px;min-width:44px}.voice-controls>.secondary-button{min-height:44px}.voice-privacy{font-size:10px}.voice-note{min-width:0;width:min(290px,100%)}.voice-note audio{width:100%;min-width:170px}.voice-transcript summary,.voice-audio-download{min-height:44px;display:flex;align-items:center}.composer{gap:8px}.composer textarea{font-size:16px}.voice-panel #voice-preview{height:40px}}
@media(prefers-reduced-motion:reduce){.voice-record-dot{animation:none}}

/* Optional public web lookup stays beside the message tools in both themes. */
.web-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 2px 10px;color:var(--muted);font-size:12px}
.web-controls label{display:flex;align-items:center;gap:8px;white-space:nowrap;color:var(--text);font-weight:600}
.web-controls select{font:inherit;min-height:36px;width:auto;padding:5px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text)}
.web-controls>span{flex:1;min-width:180px;font-size:11px;line-height:1.5}
.web-source-link{color:var(--gold);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-width:600px){.web-controls{gap:7px;margin-bottom:8px}.web-controls select{min-height:44px}.web-controls>span{font-size:10px}}

.message-web-sources{white-space:normal;margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:12px;line-height:1.6}.message-web-sources summary{cursor:pointer;color:var(--accent-text);min-height:28px}.message-web-sources ol{margin:8px 0 0;padding-left:22px}.message-web-sources li{margin:6px 0;padding-left:3px}

/* Reading tools stay quiet until needed. */
.goal-card,.chat-find{flex-shrink:0;border-bottom:1px solid var(--line);background:var(--panel);color:var(--text)}
.goal-card>summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:11px 22px;font-size:12px;min-height:44px;list-style:none}
.goal-card>summary>span:first-child{font-weight:700;color:var(--accent-text)}#goal-summary{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}#goal-save-indicator{font-size:10px;color:var(--muted)}
.goal-card[open]>summary{border-bottom:1px solid var(--line)}.goal-form{padding:15px 22px;display:grid;grid-template-columns:1fr 1fr;gap:12px;max-height:36vh;overflow:auto;text-align:left}
.goal-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}.goal-form label:first-child{grid-column:1/-1}.goal-form textarea{width:100%;resize:vertical;min-height:54px;max-height:150px;padding:10px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:9px;font:inherit;line-height:1.5}
.goal-form .toggle-label{grid-column:1/-1;flex-direction:row;align-items:center;color:var(--text)}.goal-form p{font-size:11px;color:var(--muted);margin:0;align-self:center}.goal-form .secondary-button{justify-self:end;font-size:12px;padding:8px 14px;min-height:36px}
.chat-find{display:flex;align-items:center;gap:7px;padding:8px 18px}.chat-find input{min-width:0;flex:1;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:9px;padding:9px 12px;font:inherit;font-size:13px}.chat-find>span{font-size:11px;white-space:nowrap;color:var(--muted)}.chat-find button{border:1px solid var(--line);background:var(--surface);color:var(--accent-text);border-radius:8px;min-width:34px;min-height:36px}
mark{color:var(--text);background:color-mix(in srgb,var(--gold) 28%,transparent);border-radius:2px}.current-hit{background:color-mix(in srgb,var(--gold) 65%,var(--surface));outline:2px solid var(--gold);outline-offset:2px}.message:focus{outline:none}.message:focus-visible{outline:1px solid var(--gold);outline-offset:5px;border-radius:8px}
.search-message{display:flex;flex-direction:column;gap:7px;width:100%;padding:12px;margin-bottom:5px;text-align:left;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text)}.search-message:hover,.search-message:focus-visible{background:var(--accent-soft);border-color:var(--line)}.search-message b{font-size:12px;line-height:1.5}.search-message span{font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.quote-preview{margin-bottom:11px;padding:10px 13px;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:11px;background:var(--surface);text-align:left}.quote-preview>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.quote-preview b{font-size:12px;color:var(--accent-text)}.quote-preview .icon-button{width:32px;height:32px;min-width:32px;min-height:32px}.quote-preview blockquote{margin:4px 0 7px;font-size:12px;color:var(--muted);line-height:1.6;max-height:72px;overflow:auto;white-space:pre-wrap}.quote-preview small{font-size:10px;color:var(--muted)}
.message-quote{margin:0 0 8px;border-left:2px solid var(--gold);padding:7px 12px;max-height:180px;overflow:auto;background:var(--accent-soft);border-radius:0 9px 9px 0}.message-quote p{font-size:12px;line-height:1.6;white-space:pre-wrap;color:var(--muted);margin:0}.message-quote button{font-size:11px;min-height:32px}
.selection-tools{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:30;display:flex;gap:5px;padding:6px;border:1px solid var(--gold);border-radius:14px;background:var(--surface);box-shadow:0 6px 28px #0005}.selection-tools button{min-height:40px;padding:8px 13px;border:0;border-radius:9px;background:var(--accent-soft);color:var(--accent-text);font-size:12px;white-space:nowrap}
.message.assistant .message-text{white-space:normal;overflow-wrap:anywhere}.message-text>p{white-space:pre-wrap;margin:0 0 13px}.message-text>:last-child{margin-bottom:0}.message-text h2,.message-text h3,.message-text h4,.message-text h5{font-family:inherit;font-weight:650;line-height:1.45;color:var(--text);margin:24px 0 10px;letter-spacing:0}.message-text h2{font-size:1.18em}.message-text h3{font-size:1.08em}.message-text h4,.message-text h5{font-size:1em}.message-text>:first-child{margin-top:0}.message-text ul,.message-text ol{margin:8px 0 16px;padding-left:25px}.message-text li{padding-left:3px;margin:6px 0}.message-text a{color:var(--accent-text);text-underline-offset:3px;overflow-wrap:anywhere}.message-text blockquote{border-left:2px solid var(--gold);padding:4px 14px;margin:16px 0;color:var(--muted);white-space:pre-wrap}.message-text code{font-family:Consolas,monospace;font-size:.88em;background:var(--accent-soft);padding:2px 5px;border-radius:4px}
.reply-code{max-width:100%;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:16px 0;background:var(--surface)}.reply-code-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.reply-code-bar button{border:1px solid var(--line);border-radius:7px;color:var(--accent-text);background:var(--accent-soft);padding:6px 10px;font-size:11px;min-height:32px}.reply-code pre{margin:0;overflow:auto;max-height:450px;padding:16px;white-space:pre;line-height:1.6;tab-size:2}.reply-code pre code{background:none;padding:0;border-radius:0;white-space:pre;overflow-wrap:normal;font-size:13px}
.reply-table{max-width:100%;overflow:auto;margin:16px 0;border:1px solid var(--line);border-radius:10px}.reply-table table{border-collapse:collapse;min-width:100%;font-size:13px;line-height:1.6}.reply-table th,.reply-table td{text-align:left;padding:10px 13px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);min-width:110px}.reply-table th{background:var(--accent-soft);font-weight:650}.reply-table tr:last-child td{border-bottom:0}.reply-table tr>:last-child{border-right:0}.message-body{min-width:0}.streaming-reply .message-text{white-space:pre-wrap!important}
#chat-preferences{display:grid;gap:15px;margin-top:18px}#chat-preferences label{display:flex;flex-direction:column;gap:7px;font-size:13px}#chat-preferences small{font-size:11px;color:var(--muted);line-height:1.5}
body[data-reply-stage] .chat-heading>.avatar{animation:cosmic-breath 2.8s ease-in-out infinite}body[data-reply-stage] #save-status::before{animation:cosmic-breath 2.8s ease-in-out infinite}.reply-arrival{animation:reply-arrive .32s ease-out both}
@keyframes cosmic-breath{50%{box-shadow:0 0 14px color-mix(in srgb,var(--gold) 22%,transparent)}}@keyframes reply-arrive{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
html[data-motion=off] *,html[data-motion=off] *::before,html[data-motion=off] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){.goal-card>summary{padding:9px 13px;gap:8px}.goal-form{padding:12px 13px;grid-template-columns:1fr;max-height:32vh}.goal-form label:first-child,.goal-form .toggle-label{grid-column:auto}#goal-save-indicator{display:none}.goal-form .secondary-button{min-height:44px}.goal-form textarea{font-size:16px}.chat-find{padding:6px 10px;gap:5px}.chat-find button{min-width:40px;min-height:44px}.chat-find input{font-size:16px;min-height:44px}.chat-find>span{font-size:10px}.reply-code-bar button{min-height:44px}.selection-tools{bottom:12px;max-width:calc(100vw - 20px)}.selection-tools button{min-height:44px;padding:8px 11px}.quote-preview .icon-button{min-height:44px;min-width:44px}.reply-table th,.reply-table td{padding:8px 10px}.message-quote button{min-height:44px}.web-controls>span{flex-basis:100%}}

.sidebar.is-searching .assistants,.sidebar.is-searching .companion-section-label{display:none}.sidebar.is-searching .chat-list{min-height:140px}.sidebar.is-searching{overflow-y:auto}.sidebar.is-searching .sidebar-bottom{flex-shrink:0}
@media(max-height:800px){.sidebar.is-searching .sidebar-heading{margin-bottom:18px}.sidebar.is-searching .new-chat{margin-bottom:18px}}

.goal-form{grid-template-columns:1.2fr 1fr 1fr}.goal-form label:first-child{grid-column:auto}.goal-form textarea{height:72px;min-height:54px}.goal-form .goal-sharing{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;gap:9px;color:var(--text);min-height:30px}.goal-sharing input{width:17px;height:17px;min-height:0;flex:none;margin:0}.goal-actions{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:11px;color:var(--muted)}.goal-actions .secondary-button{flex:none}
@media(max-width:760px){.goal-form{grid-template-columns:1fr}.goal-form .goal-sharing,.goal-actions{grid-column:auto}.goal-sharing input{width:20px;height:20px}.goal-form .goal-sharing{min-height:44px}.goal-actions{align-items:flex-start;line-height:1.6}}

/* Sources are large native links, with a separate copy action. */
.message-web-sources{font-size:13px}.message-web-sources>summary{min-height:44px;display:list-item;padding:10px 0;font-weight:600}.message-web-sources .source-list{list-style:none;padding:0;margin:6px 0 0;display:grid;gap:8px}.message-web-sources .source-item{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:stretch;margin:0;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--accent-soft);overflow:hidden}
.message-text a.source-card{display:grid;grid-template-columns:25px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:66px;padding:11px 12px;color:var(--text);text-decoration:none;overflow-wrap:anywhere}.source-description{min-width:0;display:grid;gap:4px}.source-description b{font-size:13px;line-height:1.5;font-weight:600}.source-domain{font-size:11px;line-height:1.5;color:var(--muted)}.source-number{display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--line);border-radius:50%;color:var(--accent-text);font-size:11px}.source-arrow{font-size:20px;color:var(--accent-text)}.source-card:hover{background:var(--surface)}.source-card:focus-visible{outline-offset:-3px;border-radius:10px}.source-copy{align-self:stretch;min-height:44px;border-left:1px solid var(--line);background:transparent;color:var(--accent-text);font-size:22px}.source-copy:hover{background:var(--surface)}.source-copy:focus-visible{outline-offset:-4px}
.message-text a.citation-link{display:inline-flex;align-items:center;justify-content:center;min-width:28px;min-height:27px;margin:0 2px;padding:1px 5px;border:1px solid var(--line);border-radius:6px;background:var(--accent-soft);color:var(--accent-text);font-size:12px;font-weight:600;text-decoration:none;vertical-align:baseline}.citation-link:hover{border-color:var(--gold)}
.app-notices{width:calc(100% - 48px);max-width:960px;margin:0 auto;flex-shrink:0}.app-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 9px;padding:11px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:0 3px 14px #0002;font-size:12px}.app-notice>div{display:grid;gap:3px}.app-notice b{color:var(--accent-text);font-size:12px}.app-notice span{line-height:1.6;color:var(--muted)}.app-notice button{min-height:40px;flex:none;padding:8px 13px;border:1px solid var(--gold);background:var(--accent-soft);color:var(--accent-text);border-radius:8px;font-size:12px}.connection-notice{border-color:var(--gold)}
@media(max-width:760px){.app-notices{width:calc(100% - 20px)}.app-notice{padding:9px 12px;gap:10px;font-size:11px}.app-notice button{min-height:44px;padding:8px 10px}.message-text a.source-card{min-height:76px;padding:11px 10px;gap:8px}.source-description b{font-size:13px}.message-web-sources .source-item{grid-template-columns:minmax(0,1fr) 44px}.source-domain{font-size:11px}.message-text a.citation-link{min-width:36px;min-height:36px}}

/* Project and Saved Star tools inherit both cosmic themes. */
.workspace-launchers{display:grid;gap:7px;margin:12px 14px}.workspace-launchers .secondary-button{width:100%}.workspace-launchers .link-button{text-align:center;font-size:12px}
.workspace-dialog{width:min(760px,calc(100vw - 24px));max-height:88dvh;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:22px;color:var(--text);background:var(--panel);box-shadow:0 24px 90px #0006}
.workspace-dialog .dialog-heading{padding:24px 26px 14px}.workspace-dialog h2{font-size:28px;margin:0}.workspace-tabs{display:flex;gap:6px;padding:0 24px 12px;border-bottom:1px solid var(--line)}.workspace-tab{background:transparent;color:var(--muted);border:1px solid transparent;border-radius:20px;padding:9px 14px;cursor:pointer}.workspace-tab[aria-pressed=true]{color:var(--text);border-color:var(--gold);background:var(--accent-soft)}
.workspace-body{padding:8px 26px 24px;overflow:auto;max-height:65dvh;overscroll-behavior:contain;display:grid;gap:14px}.workspace-body>p{margin:8px 0}.workspace-body label{display:grid;gap:8px;color:var(--text);font-size:13px}.workspace-body input:not([type=checkbox]),.workspace-body textarea,.workspace-body select{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:12px;color:var(--text);background:var(--field);font:inherit}.workspace-body textarea{resize:vertical;line-height:1.5}.workspace-form{display:grid;gap:15px}.workspace-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.workspace-row>div{min-width:0}.workspace-row b,.workspace-row p{overflow-wrap:anywhere;white-space:pre-wrap}.workspace-row p{margin:6px 0 0}.workspace-row button{flex:none}.workspace-actions{display:flex;flex-wrap:wrap;gap:8px}.workspace-body .check-line{display:flex;align-items:center;gap:10px;padding:8px}.workspace-status,.workspace-dialog>.inline-error{margin:0;padding:0 26px 12px}.workspace-status:empty,.workspace-dialog>.inline-error:empty{display:none}.star-content,.handoff-passage{padding:16px;border:1px solid var(--line);border-radius:14px;max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.star-content{white-space:normal}.handoff-passage{margin:0}.project-context{font-size:11px;color:var(--gold);padding:0 8px 7px}.private-workflow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;font-size:11px;border:1px solid var(--line);border-radius:12px;margin-bottom:8px}.private-web{opacity:.55}.message-quote small{display:block;margin-bottom:6px}.selection-tools{max-width:calc(100vw - 24px);flex-wrap:wrap}.workspace-body .secondary-button,.workspace-body .primary-button{justify-self:start}
@media(max-width:560px){.workspace-dialog .dialog-heading{padding:18px}.workspace-dialog h2{font-size:24px}.workspace-body{padding:6px 18px 20px;max-height:67dvh}.workspace-tabs{padding-left:12px;padding-right:12px}.workspace-row{align-items:flex-start;gap:10px}.workspace-row button{padding:8px;font-size:11px}.workspace-tabs button{font-size:12px;padding:9px 10px}.private-workflow{align-items:flex-start;flex-direction:column}.message-actions{flex-wrap:wrap}}

/* Compact companion navigation keeps chats and account controls reachable. */
.sidebar{overflow-y:auto}.sidebar>*{flex-shrink:0}.sidebar-heading{margin-bottom:18px}.new-chat{margin-bottom:18px}.assistants{grid-template-columns:repeat(3,minmax(0,1fr));margin:9px 0 14px;gap:5px}#sidebar .assistant-tab{flex-direction:column;align-items:center;gap:5px;padding:9px 2px;text-align:center}#sidebar .assistant-tab>.avatar{width:36px;height:36px}.assistant-tab .active-dot{display:none}.workspace-launchers{margin:0 0 14px;gap:4px}.workspace-launchers .link-button{min-height:32px}.history-heading{margin-bottom:8px}.search-box{margin-bottom:12px}.sidebar .chat-list{min-height:100px;flex:1 0 100px}.sidebar-bottom{padding-top:10px}.quota-card{padding:11px;margin-bottom:8px}.reply-code pre,.reply-code code{direction:ltr;text-align:left;unicode-bidi:embed}

/* The welcome artwork drifts gently; choices remain interactive throughout. */
.cosmic-backdrop{inset:0;transform:none;transform-origin:50% 50%}
.cosmic-backdrop::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:.16;background:radial-gradient(ellipse at 24% 48%,#d5a45424,transparent 44%),radial-gradient(ellipse at 76% 48%,#d5a45424,transparent 44%)}
:root[data-theme=light] .cosmic-backdrop::before{background:radial-gradient(ellipse at 24% 48%,#e7f3ff35,transparent 44%),radial-gradient(ellipse at 76% 48%,#e7f3ff35,transparent 44%)}
html:is([data-motion=subtle],[data-motion=cinematic]) .cosmic-backdrop{animation:welcome-drift 32s ease-in-out infinite;will-change:transform}
html:is([data-motion=subtle],[data-motion=cinematic]) .cosmic-backdrop::before{animation:welcome-light 18s ease-in-out infinite}
html:is([data-motion=subtle],[data-motion=cinematic]) body:not(.has-messages) .wordmark{animation:welcome-reveal .9s ease-out both}
html:is([data-motion=subtle],[data-motion=cinematic]) body:not(.has-messages) .companion-picker{animation:welcome-reveal 1.2s ease-out both}
body.has-messages .cosmic-backdrop,body.has-messages .cosmic-backdrop::before,html[data-page-visible=hidden] .cosmic-backdrop,html[data-page-visible=hidden] .cosmic-backdrop::before{animation-play-state:paused}
@keyframes welcome-drift{0%,100%{transform:translate3d(-.45%,.2%,0) scale(1.015)}50%{transform:translate3d(.45%,-.35%,0) scale(1.035)}}
@keyframes welcome-light{0%,100%{opacity:.12}50%{opacity:.38}}
@keyframes welcome-reveal{from{opacity:.72;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}

/* A stationary gold rim with two independently flowing cloud textures. */
.nebula-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;transition:opacity 1.2s ease}
.cosmic-backdrop.cloud-ready{inset:0;transform:none!important;animation:none!important;will-change:auto}
.cosmic-backdrop.cloud-ready::before{display:none}
.cosmic-backdrop.cloud-ready .nebula-canvas{opacity:1}

/* Plain companion names, with a clearer hierarchy for Kurus. */
.kurus-name{font-size:1.15em;font-weight:600;letter-spacing:.015em;line-height:1;color:#f3dfa9;text-shadow:0 0 14px #d8ab6526}
:root[data-theme=light] .kurus-name{color:#54330e;text-shadow:0 1px 0 #ffffffb3}
.assistant-tab[data-assistant=kurus] b{font-weight:650;color:var(--accent-text)}

/* Results keep the conversation and saved output in one workspace. */
.workspace-layout{display:flex;gap:16px;flex:1;min-height:0;min-width:0;padding-bottom:12px}.workspace-layout>.chat-stage{min-width:0}.workspace-layout.with-result{padding-inline:18px}.workspace-layout.with-result>.chat-stage{width:auto;max-width:none;margin-inline:0;flex:1}.result-panel{width:40%;max-width:620px;min-width:320px;overflow:auto;flex-shrink:0;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface);display:flex;flex-direction:column;gap:15px;color:var(--text)}.result-panel[hidden]{display:none}.result-heading{display:flex;align-items:center;justify-content:space-between}.result-heading h2{font:25px Georgia,serif;margin:0}.result-panel label{display:flex;flex-direction:column;gap:9px;font-size:12px;color:var(--muted)}.result-panel textarea,.result-panel input,.studio-body textarea,.studio-body input:not([type=checkbox]),.studio-body select{width:100%;border:1px solid var(--line);background:var(--field);color:var(--text);border-radius:10px;padding:12px;font:inherit;line-height:1.6}.result-panel textarea{resize:vertical;min-height:220px}.result-panel input{font-weight:600}.result-actions{display:flex;flex-wrap:wrap;gap:8px}.result-actions button{font-size:11px;padding:8px 11px}.result-status{font-size:11px;min-height:16px;margin:0;color:var(--muted)}.result-tasks{display:grid;gap:12px}.result-tasks progress{width:100%;accent-color:var(--gold)}.plan-task{padding:10px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.plan-task label{flex-direction:row;align-items:flex-start;font-size:13px;line-height:1.5;color:var(--text)}.plan-task input{width:16px;accent-color:var(--gold)}.plan-task .link-button{text-align:start;font-size:11px;margin-inline-start:25px}.version-row{display:flex;align-items:center;gap:12px;padding:12px 0;font-size:12px}.studio-dialog{width:min(1120px,calc(100% - 32px));max-height:90dvh;border:1px solid var(--line);border-radius:22px;padding:26px;background:var(--surface);color:var(--text)}.studio-dialog .dialog-heading{padding:0 0 18px}.studio-body{display:flex;flex-direction:column;gap:18px;min-width:0}.studio-body label{display:flex;flex-direction:column;gap:8px;color:var(--muted);font-size:12px}.studio-body .check-line{flex-direction:row;align-items:center}.studio-body .check-line input{width:16px;accent-color:var(--gold)}.studio-body blockquote{white-space:pre-wrap;margin:0;padding:14px 18px;border-inline-start:2px solid var(--gold);background:var(--panel);border-radius:8px}.studio-body details p{white-space:pre-wrap}.studio-body>.secondary-button{align-self:flex-start}.studio-launchers{display:flex;flex-wrap:wrap;gap:8px 14px;padding:10px 0 15px}.studio-launchers .link-button{font-size:11px}.comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.comparison-card{border:1px solid var(--line);border-radius:15px;padding:18px;min-width:0;background:var(--panel)}.comparison-card h3{font:24px Georgia,serif;margin:0 0 10px;color:var(--accent-text)}.comparison-answer{font-size:13px;line-height:1.7;overflow-wrap:anywhere;max-height:45dvh;overflow:auto}.comparison-answer pre{white-space:pre-wrap}.comparison-card>.secondary-button{margin-top:14px;font-size:11px}.comparison-cost{color:var(--accent-text);font-size:13px}.temporary-messages{max-height:40dvh;overflow:auto;display:flex;flex-direction:column;gap:15px}.temporary-message{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel);line-height:1.65}.temporary-message b{color:var(--accent-text);font-size:12px}.temporary-message>div{margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}.undo-notice{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:12px 18px;margin:0 20px 8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:12px}.undo-notice[hidden]{display:none}.workspace-tabs{flex-wrap:wrap}.auth-language{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 34px;font-size:11px;color:var(--muted)}.auth-language select{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:6px}.studio-body .workspace-row{flex-wrap:wrap}.studio-body .workspace-row>div{flex:1;min-width:140px}.result-versions summary{font-size:12px;color:var(--accent-text);cursor:pointer}
:root[dir=rtl] .sidebar{left:auto;right:0;transform:translateX(100%)}:root[dir=rtl] body.sidebar-open .sidebar{transform:translateX(0)}:root[dir=rtl] .message-heading,:root[dir=rtl] .message-actions{direction:rtl}:root[dir=rtl] .message-text pre,:root[dir=rtl] code{direction:ltr;text-align:left}:root[dir=rtl] .message-text{unicode-bidi:plaintext}:root[dir=rtl] .header-quota{border-left:0;border-right:1px solid var(--line);padding-left:0;padding-right:12px}:root[dir=rtl] #message-input{text-align:start}:root[dir=rtl] .app-shell{font-family:Tahoma,'Segoe UI',sans-serif}:root[dir=rtl] .chat-list .chat-row{text-align:right}
@media(max-width:1000px){.comparison-grid{grid-template-columns:1fr}.comparison-answer{max-height:none}.comparison-card{padding:16px}.workspace-layout.with-result>.chat-stage{display:none}.result-panel{width:100%;max-width:none;min-width:0}.workspace-layout.with-result{padding-inline:12px}.studio-dialog{padding:20px}.studio-body>.workspace-tabs{gap:5px}}
@media(max-width:600px){.workspace-layout{padding-bottom:0}.result-panel{border-radius:15px;padding:17px}.studio-dialog{width:calc(100% - 18px);max-height:94dvh;padding:17px}.studio-body{gap:14px}.studio-body .workspace-row{gap:8px}.auth-language{padding-inline:20px}}

:root[dir=rtl] .sidebar.open{transform:translateX(0)}:root[dir=rtl] .sidebar{border-right:0;border-left:1px solid var(--line)}.result-heading{position:sticky;top:-22px;background:var(--surface);padding-block:10px;z-index:1}

.studio-dialog>.inline-error:empty{display:none}#quota-text,#header-quota,#chat-count{direction:ltr;unicode-bidi:isolate}.studio-dialog .dialog-heading{background:transparent}.result-panel progress{direction:ltr}

.confirm-dialog{z-index:1000;padding:28px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:20px;max-width:480px}.confirm-dialog h2{margin:0 0 15px}.confirm-dialog p{line-height:1.7}.confirm-dialog .dialog-actions{margin-top:22px}

.result-heading{top:0}

.message-actions{flex-wrap:wrap;gap:8px 12px}.message-action{white-space:nowrap;flex-shrink:0}

.reply-select-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding:0 10px 9px;color:var(--muted);font-size:11px}
.reply-select-toolbar>label{display:inline-flex;align-items:center;gap:9px;font-size:11px;font-weight:500;margin:0}
.reply-select-toolbar select{width:auto;min-width:136px;max-width:210px;min-height:34px;margin:0;padding:6px 28px 6px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font:12px/1.4 'Segoe UI',Tahoma,sans-serif;unicode-bidi:isolate}
.reply-select-toolbar select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.reply-select-toolbar select:disabled{opacity:.65;cursor:wait}
.reply-language-status{font-size:10px;line-height:1.5}.reply-language-status:empty{display:none}
.interface-language-help{display:block;margin:4px 0 14px;color:var(--muted);font-size:11px;line-height:1.6}
.interface-language-help[hidden]{display:none}.preference-grid .interface-language-help{margin:6px 0 0}
:root[dir=rtl] .reply-select-toolbar select{padding-inline:10px 28px}
@media(max-width:600px){.reply-select-toolbar{padding-inline:5px;padding-bottom:6px;gap:4px 10px}.reply-select-toolbar>label{font-size:11px;gap:7px}.reply-select-toolbar select{min-height:40px;min-width:126px;max-width:180px}.reply-language-status{font-size:10px}}


/* Keep language, reply depth and Web together so the welcome cards retain room. */
.composer-preferences{display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px;margin:0 3px 10px}.composer-preferences>.reply-select-toolbar{padding:0;flex:0 0 auto}.composer-preferences>.web-controls{flex:1;margin:0;min-width:0}.composer-preferences .reply-select-toolbar select{min-width:118px}.welcome{flex-shrink:0}
@media(max-width:600px){.composer-preferences{gap:7px 12px;margin-inline:2px}.composer-preferences>.reply-select-toolbar{padding:0}.composer-preferences .reply-select-toolbar select{min-width:114px;max-width:155px}.composer-preferences>.web-controls{flex:1 1 115px}}
