/* SonofChat: quiet surfaces, clear controls, restrained motion. */
:root{--bg:#fafbf8;--sidebar:#202a29;--text:#25332f;--muted:#7b8881;--border:#e1e7e0;--accent:#315e50;--accent-hover:#244b40;--sage:#edf3ed;--ease:cubic-bezier(.2,.8,.2,1)}
body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
button,a,input,textarea,select{transition:background-color .18s var(--ease),color .18s var(--ease),border-color .18s var(--ease),box-shadow .18s var(--ease),transform .18s var(--ease)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #5d9280;outline-offset:3px}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{cursor:default}
.sidebar{background:#202a29;width:270px;padding:28px 18px 17px;color:#d5dfd9}
.brand{padding:0 8px;gap:11px;letter-spacing:-.8px;font-size:23px;color:#f1f5ef}
.brand-light{color:#aabbb0}.brand img.brand-mark{width:37px;height:37px}
.new-chat{margin-top:30px;background:#e7f0e7;border-color:#e7f0e7;color:#2f4d3e;border-radius:12px;padding:13px 14px;box-shadow:0 2px 3px #0000000b}
.new-chat:hover{background:#f3f7f0;box-shadow:0 3px 12px #00000014}.new-chat kbd{color:#8a9c90;border-color:#ccd9cc;background:#f4f7f140}
.history-heading{font-size:11px;letter-spacing:.4px;text-transform:none;color:#95aa9c}.sidebar .text-button{color:#aabeb0}.sidebar .text-button:hover{color:#edf5eb}
.chat-search{background:#ffffff05;border:1px solid #ffffff10;border-radius:9px;padding:10px 12px;color:#e3ece4;font-size:12px;margin-bottom:12px}
.chat-search::placeholder{color:#82988a}.chat-search:focus{background:#ffffff09;border-color:#799780}
.chat-row{border-radius:9px;border:1px solid transparent;margin:3px 0;transition:background .18s,border-color .18s}
.chat-row:hover{background:#2c3933}.chat-row.selected{background:#34463b;border-color:#5b75614a}.chat-open{color:#becfc3;padding:11px 10px;line-height:1.45}
.chat-row.selected .chat-open{color:#f4f8ef}.chat-menu{color:#a7baad;border-radius:6px;padding:7px;font-size:20px;line-height:1}
.chat-menu:hover{background:#ffffff12;color:white}.chat-row:focus-within .chat-menu{opacity:1}.branch-badge{background:#425746;color:#c7dac7;padding:4px 5px;font-size:9px}
.empty-history{color:#8ea596}.sidebar-bottom>#admin-button{border:0;background:#ffffff06;color:#aec4b4;border-radius:9px;padding:9px}
.sidebar-bottom>#admin-button:hover{background:#ffffff0e}.budget-card{background:#29362e;border:1px solid #435749;border-radius:13px;padding:15px;transition:border-color .2s,background .2s}
.budget-card:hover{background:#2e3c32;border-color:#657e68}.budget-heading{color:#b0c5b3;font-size:11px}.budget-value{color:#eef4e9;font-size:26px}
.budget-value small,.budget-caption,.weekly-mini{color:#a4bba6}.sidebar .badge{background:#405644;color:#d8e6d1;border-radius:5px}
progress,progress::-webkit-progress-bar{background:#405544}progress::-webkit-progress-value{background:#abc9a1;transition:width .5s var(--ease)}progress::-moz-progress-bar{background:#abc9a1}
.account{border-radius:10px;padding:17px 5px 4px}.account:hover{background:#ffffff05}.account strong{color:#e4eee3}.account small,.account-arrow{color:#8fa895}.avatar{background:#405544;color:#d8e9d4;font-weight:600}
.topbar{height:78px;background:#fafbf8;border-bottom:1px solid #e8ece5;gap:22px;padding:0 30px}
.model-button{background:#fff;border-color:#e1e7de;border-radius:12px;box-shadow:0 2px 4px #21342104;padding:10px 12px;gap:9px;color:#324538;font-size:14px}
.model-button::before{width:28px;height:28px}.model-button:hover{background:#f2f6ed;border-color:#bdcfb5}.model-button-caption{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#8a9b8d;border-right:1px solid #e1e7de;padding-right:9px}
.chevron{color:#96a98e;font-size:17px}.current-chat-title{font-size:12px;color:#82907f;max-width:400px}.header-budget{border:0;background:#eef3e9;color:#5f785a;font-size:12px;padding:10px 13px;border-radius:10px}.header-budget:hover{background:#e3eddb}
.conversation{scrollbar-color:#ced9c8 transparent;overflow-anchor:none;scroll-behavior:auto}.welcome{top:38%;transform:translateY(-38%);max-width:740px;padding:0 24px;width:100%}
.welcome-logo{width:66px;height:66px;margin-bottom:19px;filter:drop-shadow(0 4px 8px #254d5110)}.welcome-brand{display:block;color:#85977c;font-size:11px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;margin-bottom:12px}
.welcome h1{font-size:42px;font-weight:600;letter-spacing:-1.7px;color:#2d4434;line-height:1.2;margin:0 0 16px}.welcome p{font-size:15px;color:#82917e;line-height:1.6;margin:0}
.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:32px;width:100%;text-align:left}
.suggestions button{display:grid;grid-template-columns:1fr auto;text-align:left;gap:7px;border:1px solid #e1e7db;background:#fff;border-radius:14px;padding:17px;min-width:0;color:#415939;box-shadow:0 2px 4px #203c1d03}
.suggestions button:hover{background:#f4f8ef;border-color:#bdceb0;box-shadow:0 5px 14px #263d1c08;transform:translateY(-2px)}
.suggestion-icon{grid-column:1/3;background:#eef4e8;border-radius:8px;width:30px;height:30px;display:grid;place-items:center;font-size:18px;color:#5a7b48;margin-bottom:3px;font-weight:400}
.suggestions strong{font-size:13px;font-weight:600;grid-column:1/3;white-space:nowrap}.suggestions small{font-size:11px;color:#90a084;font-weight:400;white-space:nowrap}.suggestion-arrow{color:#91a982;grid-column:2;grid-row:3}
.messages{max-width:880px;padding:36px 42px 42px}.message{font-size:16px;line-height:1.85;margin-bottom:36px;overflow-wrap:anywhere}
.message.user{background:#eaf0e3;border:1px solid #e2ead9;border-radius:18px 18px 6px 18px;color:#344830;padding:15px 19px;max-width:85%}
.user-text.is-collapsed{max-height:170px;overflow:hidden;mask-image:linear-gradient(#000 65%,transparent)}.expand-message{background:transparent;border:0;padding:8px 0 0;color:#668650;font-size:12px;font-weight:600;display:block}
.message-header{gap:12px;font-size:13px;margin-bottom:17px}.message-header strong{color:#4b6043;font-weight:600}.message-header .message-mark{background:transparent;width:32px;height:32px}
.message-meta{margin-top:19px;font-size:12px;gap:17px;color:#9ca58f}.message-copy,.response-usage{font-size:12px;color:#8a9b7b}.message-copy:hover,.response-usage summary:hover{color:#3f6532}
.message-actions{margin-top:8px;gap:3px}.message-actions button{font-size:12px;color:#849278;border-radius:7px;padding:7px 9px;display:inline-flex;align-items:center;gap:6px}
.message-actions button:hover{background:#e9f0e1;color:#486d37}.message-actions button:before{display:inline-block;font-size:15px;font-weight:400;line-height:1}
.message-actions [data-action="edit"]:before{content:'✎'}.message-actions [data-action="retry"]:before{content:'↻'}.message-actions [data-action="branch"]:before{content:'⑂'}.message-actions [data-action="copy"]:before{content:'⧉'}
.user .message-actions{border-top:1px solid #dbe5d2;margin-top:11px;padding-top:5px}.user .message-actions button{color:#7d916b}.user .message-actions button:hover{background:#dae7cf;color:#446735}
.usage-breakdown{background:#fff;border-color:#e0e8d9;color:#839674;border-radius:12px}.usage-totals strong{color:#4c693d}.usage-totals span{color:#84977a}
.markdown pre{border:1px solid #e0e7d9;background:#f0f4ea;border-radius:12px}.markdown :not(pre)>code{background:#ecf2e5;color:#4d6c3c;border-radius:5px}.markdown blockquote{border-color:#c3d5b4;color:#7b8d6d}.markdown a{color:#4f7b3c;text-underline-offset:3px}
.tool-log{background:#f0f5e9;border-color:#dfe8d5;color:#658253;border-radius:11px}.tool-log summary{font-size:12px}.tool-outcome{color:#8ea280}.tool-state{color:#6a8b51;background:#fff}.tool-log pre{color:#6d825a;border-color:#dfe8d5}.tool-log[open] summary::after{transform:rotate(180deg)}.tool-log summary::after{transition:transform .2s}
.composer-wrap{position:relative;max-width:880px;padding:12px 42px 23px;background:var(--bg)}
.composer{border:1px solid #dfe6d7;background:#fff;border-radius:20px;padding:19px 20px 14px;box-shadow:0 6px 25px #29482008;transition:border-color .2s,box-shadow .2s}
.composer:focus-within{border-color:#a7bf95;box-shadow:0 0 0 3px #9ebb860d,0 6px 25px #29482008}.composer textarea{color:#354b2c;min-height:48px;line-height:1.6}.composer textarea::placeholder{color:#a0ad94}.composer textarea:disabled{opacity:.7}
.composer textarea:focus-visible{outline:none}
.composer-actions{gap:8px;flex-wrap:wrap}.icon-button{color:#8fa180;border-radius:9px}.icon-button:hover{background:#edf4e5;color:#557740}.icon-button:disabled{opacity:.35}
.capability{background:#f9fbf6;border-color:#e6eddc;color:#7a9068;border-radius:9px;padding:8px 10px;font-size:12px;gap:6px}.capability:hover{background:#f0f6e8;border-color:#cddfc0}.capability[aria-pressed="true"]{background:#e8f2df;border-color:#adc899;color:#4c7335}
.capability-state{width:15px;height:9px;border-radius:9px;background:#d5dfc8;position:relative;display:block;margin-left:2px}.capability-state:before{content:'';position:absolute;width:5px;height:5px;border-radius:50%;background:#fff;top:2px;left:2px;transition:transform .2s}
.capability[aria-pressed="true"] .capability-state{background:#729755}.capability[aria-pressed="true"] .capability-state:before{transform:translateX(6px)}.capability.is-unavailable{opacity:.42;cursor:not-allowed}.capability.is-unavailable .capability-state{display:none}
.send-button{background:#315e50;color:#fff;width:40px;height:40px;border-radius:12px;box-shadow:0 2px 6px #315e5014;flex-shrink:0}.send-button:hover{background:#254d41;box-shadow:0 4px 9px #315e5020}.send-button:disabled{background:#e9eee4;color:#abb9a0;box-shadow:none;opacity:1}
.composer.is-busy{border-color:#bdd1ae}.stream-status{color:#779465;font-size:11px}.composer-note{font-size:10px;color:#a1b092;margin-top:11px}.composer-note kbd{font:inherit;color:#8da078;background:#f0f4e9;border-radius:4px;padding:2px 4px}
.jump-bottom{position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);border:1px solid #dde7d4;border-radius:99px;background:#fff;color:#61834d;box-shadow:0 3px 14px #24411d0c;padding:8px 14px;font-size:13px;display:flex;align-items:center;gap:7px;white-space:nowrap;z-index:2}.jump-bottom:hover{background:#edf4e6}.jump-bottom:active:not(:disabled){transform:translateX(-50%)}
.branch-nav{background:#f0f5e9;border-color:#e1ead8;padding:10px 30px;color:#80956e}.branch-nav select{background:#fff;border-color:#d7e3cd;color:#54753f;border-radius:9px;padding:7px 11px}
dialog{border:1px solid #dfe7d7;border-radius:19px;padding:28px;background:#fff;box-shadow:0 22px 90px #15231a26;color:#34472c;max-height:90dvh}
dialog[open]{animation:dialog-in .2s var(--ease)}dialog::backdrop{background:#17231b55;backdrop-filter:blur(3px);animation:backdrop-in .2s}
.dialog-heading h2{font-size:23px;letter-spacing:-.7px;color:#3a5130}.dialog-heading{margin-bottom:19px}.dialog-eyebrow,.muted,.fine-print{color:#8c9d7f}.muted{font-size:13px;line-height:1.65}.primary{background:#315e50;border-radius:10px;padding:12px 17px;font-weight:500}.primary:hover{background:#254d41}.secondary{background:#f3f7ed;border-color:#dbe7ce;color:#617a4b;border-radius:10px}.secondary:hover{background:#e8f0dd}.danger{color:#ad6251}
.stack input,.search-row input,.admin-user input,.admin-user select,.model-search,#edit-message-text{background:#fbfcf8;border-color:#dfe7d6;color:#4c663c;border-radius:10px}.stack input:focus,.search-row input:focus,.model-search:focus,#edit-message-text:focus{border-color:#a4be8d;background:#fff}
.models-dialog{width:min(570px,calc(100vw - 28px))}.model-search{padding:12px 14px;margin-bottom:15px}.model-option{border-radius:11px;padding:12px;gap:13px}.model-option:hover{background:#f3f7ed}.model-option.selected{background:#edf4e4;border-color:#c9dbb7}.model-initial{background:#f6f9f0;border-color:#e0e8d5;color:#7c975f;border-radius:10px;width:37px;height:37px}.model-info strong{color:#496336;font-size:14px}.model-info small{color:#8ba273;font-size:12px}.model-info em{background:#dfeacc;color:#7b935e;border-radius:5px}.model-check{color:#779c50}.model-pricing{color:#8b9d79;border-color:#e3ebd9}.model-pricing summary{color:#779362}
.admin-tabs button[aria-selected="true"]{color:#49753a;border-color:#6a974f}.admin-tabs button:hover{background:#f3f7ed}.admin-summary>div{background:#f6f9f0;border-color:#e2ead8}.admin-summary strong,.admin-user header strong{color:#4f6e3d}.admin-user{border-color:#e3ebd9}.admin-user .badge{background:#edf4e4;color:#819e65}.admin-user .admin-actions{border-color:#e8efdf}.admin-user .admin-actions input,.admin-user .admin-actions select{background:#f7faf2;border-color:#e1ead8;color:#66834e}.pricing-intro h3{color:#476534}.prices-wrap{border-color:#e3ebd9}.prices-table th{background:#f5f9ee;color:#8fa37a}.prices-table td{border-color:#e9efdf}.prices-table td strong{color:#587940}.prices-table input{background:#fafcf7;border-color:#dfe9d4;color:#527539}.prices-table input:focus{border-color:#9fbe82}.prices-table .cache-price{color:#89a16d}.pricing-footer p{color:#859e6c}.admin-summary span,.admin-user header small,.admin-user .fine-print,.admin-dialog .fine-print{color:#8b9f78}
.toast{background:#263d2c;color:#f0f5e8;border:1px solid #49683b;box-shadow:0 7px 25px #1a30181a;border-radius:12px;font-size:13px;padding:14px 19px;animation:toast-in .22s var(--ease)}.error-banner{border-color:#e6d0c4;background:#fcf2e9;color:#98664e;border-radius:10px}
.thinking{display:flex;align-items:center;gap:5px;padding:10px 0;color:#99ad83;min-height:44px}.thinking>span{width:5px;height:5px;background:#94b179;border-radius:50%;animation:thinking 1.2s ease-in-out infinite}.thinking>span:nth-child(2){animation-delay:.16s}.thinking>span:nth-child(3){animation-delay:.32s}.thinking small{font-size:12px;margin-left:7px;color:#92a67d}
.is-streaming .markdown:last-child:after{content:'';display:inline-block;vertical-align:middle;width:5px;height:15px;margin-left:5px;background:#93ad7c;border-radius:2px;animation:cursor 1s ease-in-out infinite}
.message-enter{animation:message-in .25s var(--ease)}.file-chip{background:#edf5e3;border-color:#dbe9cb;color:#749453;animation:message-in .2s}.sidebar-scrim{display:none}
@keyframes message-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes dialog-in{from{opacity:0;transform:translateY(9px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes toast-in{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@keyframes thinking{0%,80%,100%{opacity:.4;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@keyframes cursor{0%,100%{opacity:.3}50%{opacity:1}}
@media(max-width:1000px){.sidebar{width:245px}.messages{padding:28px}.composer-wrap{padding:12px 28px 22px}.topbar{padding:0 22px;gap:15px}.model-button-caption{display:none}.welcome h1{font-size:38px}.suggestions button{padding:14px}.suggestions{gap:8px}.suggestions strong{font-size:12px}.suggestions small{font-size:10px}}
@media(max-width:700px){
 .sidebar{display:flex;width:280px;z-index:12;box-shadow:10px 0 40px #182a1c20;transform:translateX(-103%);visibility:hidden;transition:transform .26s var(--ease),visibility .26s;padding-top:26px}.sidebar.open{display:flex;transform:translateX(0);visibility:visible}.sidebar-close{color:#bdd1b5}.sidebar.open~.sidebar-scrim{display:block;position:fixed;inset:0;border:0;background:#18281a55;backdrop-filter:blur(2px);z-index:11;animation:backdrop-in .2s;transform:none}
 .topbar{height:65px;padding:0 13px;gap:10px}.model-button{padding:8px 10px;font-size:12px;max-width:calc(100vw - 162px);gap:7px}.model-button::before{display:none}.header-budget{font-size:11px;padding:9px 10px;border-radius:9px}.current-chat-title{display:none}
 .welcome{top:36%;transform:translateY(-36%);padding:0 22px}.welcome-logo{width:54px;height:54px;margin-bottom:13px}.welcome-brand{font-size:10px;margin-bottom:11px}.welcome h1{font-size:34px;letter-spacing:-1.2px;margin-bottom:13px}.welcome p{font-size:13px;max-width:270px;margin:auto;line-height:1.7}
 .suggestions{display:flex;flex-wrap:wrap;justify-content:center;margin-top:24px;gap:7px}.suggestions button{display:flex;align-items:center;padding:10px 12px;gap:7px;border-radius:10px;box-shadow:none}.suggestion-icon{width:auto;height:auto;font-size:15px;background:none;margin:0;border-radius:0}.suggestions strong{font-size:11px;font-weight:500}.suggestions small,.suggestion-arrow{display:none}
 .messages{padding:24px 18px 30px}.message{font-size:15px;line-height:1.85;margin-bottom:29px}.message.user{max-width:92%;font-size:14px;padding:12px 15px}.message-header{font-size:12px;margin-bottom:15px}.message-meta{gap:12px;flex-wrap:wrap;font-size:11px}.message-copy,.response-usage{font-size:11px}.message-actions button{font-size:11px;min-height:36px;padding:7px 8px}.message-actions{gap:1px}.user .message-actions{justify-content:flex-start}.user-text.is-collapsed{max-height:140px}
 .composer-wrap{padding:10px 12px 15px}.composer{padding:15px 14px 12px;border-radius:18px}.composer textarea{font-size:16px;min-height:45px}.composer-actions{gap:5px}.capability{font-size:11px;padding:8px;gap:5px}.capability-state{width:13px}.capability[aria-pressed="true"] .capability-state:before{transform:translateX(4px)}.send-button{width:37px;height:37px;border-radius:11px}.composer-note{font-size:9px;margin-top:11px}.composer-note span:last-child{display:none}.tool-help{width:21px}.stream-status{max-width:100%;width:100%;font-size:10px}.jump-bottom{font-size:11px;padding:9px 12px}
 .branch-nav{padding:9px 14px}.branch-nav select{font-size:12px;width:100%}.branch-nav span{display:none}.admin-dialog{padding:20px}.model-list{max-height:43dvh}dialog{padding:22px;border-radius:16px}.dialog-heading h2{font-size:21px}.toast{font-size:12px;max-width:calc(100vw - 32px);width:max-content}
}
@media(max-height:650px) and (min-width:701px){.welcome-logo{width:48px;height:48px;margin-bottom:12px}.welcome-brand{margin-bottom:8px}.welcome h1{font-size:34px}.suggestions{margin-top:20px}.suggestions button{padding:12px}.suggestion-icon{display:none}.suggestions strong{grid-row:1}.suggestions small,.suggestion-arrow{grid-row:2}.welcome{top:37%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.suggestions button:hover{transform:none}.thinking>span{opacity:.7}}
.welcome p{color:#718069}.suggestions small{color:#748366}.message-copy,.response-usage{color:#738565}.message-actions button{color:#738565}.muted,.fine-print{color:#748766}.composer-note{color:#879779}

/* Model selection is next to the question it applies to. */
.composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.composer-model{box-shadow:none;border-color:transparent;background:#f3f7ed;padding:7px 10px;font-size:12px;max-width:65%;border-radius:9px}.composer-model::before{width:21px;height:21px}.composer-model .model-button-caption{font-size:9px}.composer-model:hover{background:#e9f1df;border-color:#d3e2c2}.extra-tools-button{display:flex;align-items:center;gap:7px;border:1px solid #e2ebd8;background:#fafcf7;color:#7c9566;padding:8px 10px;border-radius:9px;font-size:12px;white-space:nowrap}.extra-tools-button:hover{background:#f0f6e7}.extra-tools-button.has-tools{color:#537a3d;border-color:#bed3a7;background:#edf5e4}#extra-tools-count{font-size:10px;min-width:17px;height:17px;display:grid;place-items:center;background:#dae9cc;border-radius:5px;color:#608642}.topbar-brand{display:none}.current-chat-title{font-size:14px;color:#64775c}.topbar-right{margin-left:auto}
#extra-tools-dialog{width:min(530px,calc(100vw - 28px))}.tool-options{display:flex;flex-direction:column;gap:8px;margin:18px 0}.tool-options label{display:flex;align-items:center;gap:12px;padding:14px;background:#fafcf7;border:1px solid #e3ebd9;border-radius:12px;cursor:pointer}.tool-options label:hover{background:#f1f7e9}.tool-options label:has(input:checked){border-color:#b8d39b;background:#edf5e3}.tool-option-icon{width:34px;height:34px;border-radius:9px;background:#e9f1df;color:#799955;display:grid;place-items:center;font-size:22px;flex-shrink:0}.tool-options strong{display:block;font-size:14px;color:#55753d}.tool-options small{display:block;font-size:11px;color:#849e6d;margin-top:5px;line-height:1.5}.tool-options input{margin-left:auto;width:17px;height:17px;accent-color:#618c48;flex-shrink:0}.tool-download{display:block;margin:10px 12px;padding:11px 13px;border:1px solid #cbdcb8;border-radius:9px;background:#fff;color:#527a3b;text-decoration:none;font-size:13px;overflow-wrap:anywhere}.tool-download:hover{background:#e6f1dc}
.badge.badge-plus,.sidebar .badge.badge-plus,.admin-user .badge.badge-plus{background:linear-gradient(120deg,#f7e4a0,#e7bf60 52%,#fae8b1);border:1px solid #c89b38;color:#775118;text-shadow:0 1px #fff7d7;box-shadow:inset 0 1px #fff7d7,0 2px 6px #9f731412;font-weight:650}.badge-plus:before{content:'+';margin-right:4px;color:#8e651a;font-weight:700}
.download-details{border-top:1px solid #dfe8d5;margin-top:8px}.download-details summary{font-size:11px;color:#8c9d7d}.download-details pre{max-height:200px;overflow:auto}
@media(max-width:700px){.topbar-brand{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#657951}.topbar-brand img{width:25px;height:25px;border-radius:8px}.composer-toolbar{gap:6px;margin-bottom:12px}.composer-model{font-size:11px;max-width:60%;padding:7px 8px;gap:5px}.composer-model::before{display:block;width:20px;height:20px}.composer-model .model-button-caption{display:none}.extra-tools-button{font-size:11px;padding:8px}.tool-options label{padding:12px}.tool-options strong{font-size:13px}.tool-options small{font-size:10px}.composer-wrap{padding-top:8px}.welcome{top:32%;transform:translateY(-32%)}.welcome h1{font-size:32px}}

#upload-library{margin-bottom:17px}.error-banner{white-space:pre-line}

/* Photo attachments */
.file-chip .photo-preview{display:block;width:42px;height:42px;flex-shrink:0;margin:3px 6px 3px 0}.photo-preview img{width:100%;height:100%;object-fit:cover;border-radius:8px}.message-photos{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.message-photos .photo-preview{display:block;width:180px;height:140px;max-width:100%;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:white}.message-photos .photo-preview img{object-fit:contain}.message-photos .photo-preview:hover{opacity:.88}.file-chip{max-width:100%;overflow-wrap:anywhere}

/* Profile configuration and a single bottom composer toolbar. */
.composer{padding:18px 19px 13px}.composer textarea{min-height:68px}.composer-bottom{gap:10px}.composer-actions{gap:7px;flex-wrap:nowrap;min-width:0}.composer-model{background:transparent;border:0;max-width:220px;font-size:12px;padding:9px 8px;gap:7px;color:#44614d}.composer-model::before{display:none}.composer-model:hover{background:#eef4e9}.composer-model #selected-model{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-button{display:flex;align-items:center;gap:5px;border:0;background:transparent;border-radius:9px;color:#718665;padding:8px;font-size:12px}.upload-button svg,#camera-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.upload-button:hover{background:#edf3e6;color:#426a35}#camera-button{width:34px;height:34px;flex-shrink:0}.composer-bottom .stream-status{margin-left:auto;flex:1;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.composer-bottom .send-button{flex-shrink:0}.profile-dialog{width:min(660px,calc(100vw - 28px));padding:25px}.profile-identity{display:flex;align-items:center;gap:12px;margin:8px 0 18px;padding:17px;background:#f2f6ed;border-radius:13px}.profile-identity small{display:block;margin-top:5px;color:#829078}.profile-identity>.badge{margin-left:auto}.profile-section{border-top:1px solid #e3e9dc;margin-top:22px;padding-top:19px}.profile-section h3{font-size:16px;margin:0 0 12px;color:#425d35}.profile-controls{display:grid;grid-template-columns:1fr 1fr;gap:14px}.profile-controls label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#738365}.profile-controls select{width:100%;border-radius:9px;border:1px solid #dce5d3;background:white;padding:11px;color:#425d35}.profile-check{display:flex;align-items:center;gap:9px;font-size:13px;margin-top:18px}.profile-check input{accent-color:#638b4a}.profile-dialog .tool-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.profile-dialog .tool-options label{padding:12px}.profile-dialog .tool-options .tool-option-icon{width:28px;height:28px;font-size:19px}.profile-dialog .tool-options strong{font-size:12px}.profile-dialog .tool-options small{font-size:10px}.profile-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:19px}.profile-footer p{font-size:12px;color:#698455}.profile-logout{margin-top:15px;color:#839077}.camera-dialog{width:min(590px,calc(100vw - 28px))}.camera-stage{aspect-ratio:4/3;background:#eef3e9;border:1px solid #dce5d3;border-radius:13px;overflow:hidden;display:grid;place-items:center;text-align:center}.camera-stage video{width:100%;height:100%;object-fit:contain}.camera-stage svg{width:45px;height:45px;fill:none;stroke:#80936d;stroke-width:1.2}.camera-stage p{font-size:13px;color:#7a8c68;padding:0 20px}.camera-actions{display:flex;justify-content:center;gap:12px;margin-top:15px}body[data-text-size="small"] .user-text,body[data-text-size="small"] .markdown{font-size:14px}body[data-text-size="large"] .user-text,body[data-text-size="large"] .markdown{font-size:19px}
@media(max-width:700px){.composer{padding:14px 12px 11px}.composer textarea{min-height:56px}.composer-actions{gap:2px}.upload-button{padding:7px}.upload-button span{display:none}.composer-model{max-width:calc(100vw - 177px);font-size:11px;padding:8px 5px}.composer-model::before{display:none}.composer-bottom .stream-status{position:absolute;bottom:100%;right:8px;max-width:90%;background:#fafbf8;border-radius:6px;padding:3px 6px}.composer-bottom{position:relative}.profile-dialog{padding:20px 17px}.profile-dialog .tool-options{grid-template-columns:1fr}.profile-controls{grid-template-columns:1fr}.profile-footer{flex-wrap:wrap}.profile-footer .primary{width:100%}.profile-identity{padding:13px}.profile-identity small{font-size:11px;overflow-wrap:anywhere}}

.profile-tabs{display:flex;gap:6px;margin-top:20px;border-bottom:1px solid #e2e9da}.profile-tabs button{border:0;background:transparent;padding:12px 17px;color:#829173;font-size:13px;border-bottom:2px solid transparent}.profile-tabs button[aria-selected="true"]{color:#4e703e;border-bottom-color:#73975a;background:#f6f9f1;border-radius:8px 8px 0 0}.profile-dialog .profile-section{border:0;margin-top:0;padding-top:20px}.profile-dialog .profile-section h3{display:none}.profile-footer{position:sticky;bottom:-25px;background:white;padding:12px 0 6px;border-top:1px solid #edf0e8}.profile-logout{margin-top:6px}@media(max-width:700px){.profile-footer{bottom:-20px}}

/* Bottom bar: model on the left, attachment actions and send on the right. */
.composer{padding:17px 18px 13px;border-color:#d9e1d4;border-radius:20px}.composer:focus-within{border-color:#a9bd9d;box-shadow:0 2px 14px #294c3410}.composer textarea{min-height:64px;padding:2px 2px 10px}.composer-bottom{display:flex;position:relative;align-items:center;gap:10px;border-top:1px solid #eef1e9;padding-top:12px;margin-top:4px}.composer-bottom .composer-model{display:inline-flex;align-items:center;gap:10px;height:38px;min-width:0;max-width:280px;padding:0 13px;border:1px solid #dfe7d8;border-radius:11px;background:#f4f7f0;color:#38553f;font-size:13px;font-weight:500;line-height:1;box-shadow:none;flex:0 1 auto}.composer-bottom .composer-model:hover{background:#eaf1e4;border-color:#c4d4b8}.composer-bottom .composer-model:before{display:none}.model-chevron{width:16px;height:16px;flex-shrink:0;fill:none;stroke:#738568;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}.composer-model[aria-expanded="true"] .model-chevron{transform:rotate(180deg)}.composer-bottom .composer-actions{display:flex;align-items:center;gap:5px;margin-left:auto;flex-wrap:nowrap;flex-shrink:0}.composer-bottom .upload-button,.composer-bottom #camera-button{height:38px;border:1px solid transparent;border-radius:10px;background:transparent;color:#748269;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;line-height:1;flex-shrink:0}.composer-bottom #camera-button{width:38px;padding:0}.composer-bottom .upload-button:hover,.composer-bottom #camera-button:hover{border-color:#dfe7d8;background:#f2f6ed;color:#3f6548}.composer-bottom .upload-button svg,.composer-bottom #camera-button svg{width:20px;height:20px;stroke-width:1.65}.composer-bottom .send-button{width:38px;height:38px;border-radius:11px;margin-left:4px;background:#315e50}.composer-bottom .send-button:disabled{background:#edf1e8;color:#a4b09b}.composer-bottom .stream-status{position:absolute;bottom:calc(100% + 5px);right:2px;margin:0;max-width:80%;width:auto;background:white;color:#7a8b70;font-size:11px;line-height:1.4;padding:2px 4px;border-radius:5px;pointer-events:none}.composer-bottom .stream-status:empty{display:none}.composer-note{margin-top:10px}
@media(max-width:700px){.composer{padding:14px 12px 11px;border-radius:18px}.composer textarea{min-height:54px}.composer-bottom{gap:6px;padding-top:10px}.composer-bottom .composer-model{max-width:calc(100% - 127px);height:36px;padding:0 10px;gap:7px;font-size:12px}.composer-bottom .upload-button,.composer-bottom #camera-button{width:34px;height:36px;padding:0}.composer-bottom .upload-button span{display:none}.composer-bottom .composer-actions{gap:2px}.composer-bottom .send-button{width:36px;height:36px;margin-left:0}.composer-bottom .model-chevron{width:15px;height:15px}.composer-bottom .stream-status{max-width:95%;font-size:10px}}
@media(prefers-reduced-motion:reduce){.model-chevron{transition:none}}

.email-resend{font-size:12px;padding:9px 13px;margin-bottom:4px}#email-send-status:empty{display:none}

/* Clearer model selection and calmer, higher-contrast surfaces. */
body{color:#29372f;background:#fafbf8}
.topbar{background:#fafbf8;border-bottom-color:#e8ece5}
.welcome h1{color:#273e33;letter-spacing:-1.3px;font-weight:600}
.welcome p{color:#68796b}.welcome-brand{color:#758775}
.suggestions button{background:#fff;border:1px solid #e0e6dc;border-radius:14px;box-shadow:0 2px 5px #243e2d04;transition:transform .18s,border-color .18s,box-shadow .18s}
.suggestions button:hover{transform:translateY(-3px);border-color:#aabdac;box-shadow:0 5px 14px #243e2d09}
.composer{box-shadow:0 4px 20px #233f2b06;background:white;border-color:#d6dfd2}
.composer textarea::placeholder{color:#7e8d7d}
.composer-bottom .composer-model{background:#fff;border-color:#e0e6da;padding-left:10px;gap:8px;color:#2f4438}
#selected-model-icon{display:flex;flex-shrink:0}.composer-model .model-logo{width:19px;height:19px;object-fit:contain}
.models-dialog{width:min(670px,calc(100vw - 28px));padding:25px;max-height:calc(100dvh - 44px)}
.models-dialog .dialog-heading{margin-bottom:9px}.models-dialog>.muted{margin:0 0 18px;color:#6c7e6d;font-size:13px}
.model-search{background:#f7f9f4;padding:13px 15px;border-color:#e0e7dc;font-size:14px}
.model-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:none;overflow:visible}
.model-option{display:flex;align-items:center;min-height:74px;margin:0;padding:13px 11px;border:1px solid #e6ebe1;background:#fff;border-radius:12px;gap:11px;transition:background .16s,border-color .16s,transform .16s}
.model-option:hover{background:#f8faf5;border-color:#becfba;transform:translateY(-1px)}
.model-option.selected{background:#f2f7ee;border-color:#92b088;box-shadow:inset 0 0 0 1px #92b088}
.model-initial{display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;border:0;background:white;border-radius:9px;color:#27362f}
.model-logo{width:26px;height:26px;object-fit:contain;display:block}
.model-info{min-width:0;flex:1}.model-info strong{font-size:13px;color:#2e4235;display:flex;flex-wrap:wrap;gap:5px;line-height:1.4}
.model-info em{font-size:9px;font-weight:400;padding:2px 4px;background:#e5eddf;color:#617c56;white-space:nowrap}
.model-info small.model-cost{font-size:11px;color:#71816f;margin-top:4px;display:block}.model-check{width:12px;flex-shrink:0;font-size:14px;color:#4b7a44}
.model-status-note{margin:-3px 0 12px;color:#687a69;font-size:12px;line-height:1.4}.model-status-note.is-error{color:#aa584b}
.model-health{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px;color:#6b796a;font-size:10px;line-height:1.3}
.health-dot{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#a3aca3}.health-operational{background:#4a9b64}.health-degraded{background:#d3a044}.health-outage{background:#ca645b}.health-idle,.health-unknown{background:#a3aca3}
.model-pricing{margin-top:18px;border-color:#e4eadd}.model-pricing summary{color:#697c62;font-size:12px}
.profile-identity{background:#f6f8f2;border:1px solid #e7ecdf}.profile-dialog .fine-print{color:#6b7f63;line-height:1.6}
.email-resend{background:#edf5e7;border-color:#cedfc0;color:#47683c;font-size:13px;font-weight:500}
.verification-cta{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;padding:15px 17px;background:#f0f6e9;border:1px solid #d9e4ca;border-radius:12px;text-align:left;margin-top:15px;color:#49633b}
.verification-cta strong{display:block;font-size:14px}.verification-cta small{display:block;font-size:12px;margin-top:5px;color:#6d815d}.verification-cta:hover{background:#e7f0dd}
button:focus-visible{outline:2px solid #739967;outline-offset:3px}
@media(max-width:700px){.models-dialog{padding:20px 16px;max-height:calc(100dvh - 28px)}.model-list{grid-template-columns:1fr}.model-option{min-height:64px;padding:11px 12px}.model-info strong{font-size:14px}.model-info em{font-size:10px}.composer-bottom .composer-model{gap:6px;padding:0 8px}.composer-model .model-logo{width:17px;height:17px}.welcome h1{letter-spacing:-.8px}.suggestions button:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.suggestions button,.model-option{transition:none}.suggestions button:hover,.model-option:hover{transform:none}}

@media(min-width:701px){.models-dialog .model-option{min-height:64px;padding:10px 11px}}

.message-header .message-mark{display:grid;place-items:center;background:#fff;border:1px solid #e6ebe1;border-radius:10px;width:34px;height:34px}.message-header .message-mark img.model-logo{width:24px;height:24px;border-radius:0}

/* Subscriber-only flagship stays visible with an explicit lock. */
.model-option.locked{opacity:1;cursor:not-allowed;background:#f7f7f3;border-color:#e6e7df}.model-option.locked:hover{transform:none;background:#f7f7f3;border-color:#e6e7df}.model-option.locked .model-info strong{color:#788176}.model-option.locked .model-initial{opacity:.65}.model-option.locked .model-check{width:20px;color:#a18a49}.model-lock{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
