/* Stable geometry: the first token must not change the whole message column. */
html #sk-v39-root .sk39-msg.ai{width:100%!important;max-width:100%!important;contain:layout style;}
html #sk-v39-root .sk39-msg.ai .sk39-msg-body{width:min(100%,880px)!important;max-width:calc(100% - 48px)!important;min-width:0!important;}
html #sk-v39-root .sk39-msg.ai .sk39-bubble,html #sk-v39-root .sk39-msg.ai .sk39-bubble.shadow-only{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;transition:none!important;animation:none!important;}
html #sk-v39-root .sk39-msg.ai .sk239-answer{overflow-wrap:anywhere;min-width:0;}
html #sk-v39-root .sk39-compose-web-toggle{position:relative!important;min-width:46px!important;min-height:40px!important;padding:5px 10px 12px!important;}
html #sk-v39-root .sk39-compose-web-toggle .sk244-search-state{display:block!important;position:absolute!important;right:3px!important;bottom:2px!important;font:700 8px/1.2 system-ui!important;letter-spacing:.02em;color:var(--chat-muted)!important;opacity:1!important;}
html #sk-v39-root .sk39-compose-web-toggle.on .sk244-search-state{color:var(--chat-accent)!important;}
html #sk-v39-root [data-quota-reset]{font-size:10px;color:var(--chat-muted);white-space:nowrap;font-variant-numeric:tabular-nums;}
html #sk-v39-root .sk239-thinking{max-width:100%!important;box-sizing:border-box!important;}
@media(max-width:600px){html #sk-v39-root .sk39-msg.ai .sk39-msg-body{max-width:100%!important;width:100%!important}}

/* 245: a compact status capsule consistent with both themes. */
html #sk-v39-root .sk39-compose-web-toggle{min-width:58px!important;padding:6px 28px 6px 9px!important;border-radius:12px!important;}
html #sk-v39-root .sk39-compose-web-toggle .sk244-search-state{right:4px!important;bottom:4px!important;padding:3px 4px!important;border:1px solid var(--chat-border)!important;border-radius:5px!important;background:var(--chat-code)!important;font-size:8px!important;line-height:1!important;color:var(--chat-muted)!important;}
html #sk-v39-root .sk39-compose-web-toggle.on .sk244-search-state{background:var(--chat-hover)!important;border-color:var(--chat-accent)!important;color:var(--chat-accent)!important;}
html #sk-v39-root .sk245-reasoning-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:13px;color:var(--chat-muted);max-height:380px;overflow:auto;scrollbar-gutter:stable;}

/* 246: label and countdown above a single full-width meter. */
html #sk-v39-root .sk39-msg-counter{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;column-gap:14px!important;row-gap:5px!important;min-width:164px!important;}
html #sk-v39-root .sk39-msg-counter [data-quota-label]{grid-column:1;grid-row:1;text-align:left;}
html #sk-v39-root .sk39-msg-counter [data-quota-reset]{grid-column:2;grid-row:1;text-align:right;justify-self:end;font-variant-numeric:tabular-nums;}
html #sk-v39-root .sk39-msg-counter [data-quota-reset]:empty{display:none;}
html #sk-v39-root .sk39-msg-counter progress{grid-column:1/-1;grid-row:2;width:100%!important;}
@media(max-width:480px){html #sk-v39-root .sk39-msg-counter{min-width:126px!important;column-gap:8px!important;}}
