/* Preserve the original typing demo, glass, controls and conversation. */
.appwin{-webkit-text-size-adjust:100%;text-size-adjust:100%;overflow-anchor:none}
html body .hero .appwin .workspace{min-width:0;min-height:0!important;height:100%!important}
html body .hero .appwin .msgs{flex-shrink:0;min-width:0}
/* Icon, label, optional page count, status: each owns a column in every row. */
html body .hero .appwin .tk-l li{grid-template-columns:18px minmax(0,1fr) auto 16px!important;gap:8px!important;align-items:center;min-height:24px}
html body .hero .appwin .tk-l li>svg.si{grid-column:1;grid-row:1}
html body .hero .appwin .tk-l li>span{grid-column:2;grid-row:1;min-width:0}
html body .hero .appwin .tk-l li>small{grid-column:3;grid-row:1;white-space:nowrap}
html body .hero .appwin .tk-l li>:is(.sp,.tkok){grid-column:4;grid-row:1;justify-self:center;align-self:center;width:14px!important;height:14px!important;margin:0!important}
/* Reserve only visible streamed text; don't push the chat upward for hidden words. */
html body .hero .appwin .m-a .w:not(.on){display:none}
html body .hero .appwin .cmp .rw:not(.on){display:none}
html body .hero .appwin .m-a .w.on{opacity:1}
html body .hero .appwin .think3{transition:background .4s;max-width:100%}
html body .hero .appwin .think3.fold .tk-h{flex-wrap:wrap;white-space:normal!important;row-gap:4px}
html body .hero .appwin .think3.fold .tk-mdl{white-space:nowrap}
@media(max-width:760px){
 html body .hero .appwin .workspace{padding:48px 16px 14px!important}
 html body .hero .appwin .composer textarea{transform:none!important;width:100%!important;height:40px!important;min-height:40px!important;max-height:40px!important;font-size:13px!important;line-height:20px!important}
 html body .hero .appwin .tk-l li{font-size:12px!important;line-height:1.4!important}
 html body .hero .appwin .tk-l li small{font-size:10px!important}
 html body .hero .appwin .think3.fold .tk-mdl{display:none!important}
 html body .hero .appwin .m-uw{max-width:94%}
 html body .hero .appwin .m-uw .m-u{max-width:100%!important}
 html body .hero .appwin .src2-l{grid-template-columns:1fr}
 html body .hero .appwin .greet{font-size:24px!important;line-height:1.25!important}
 html body .hero .appwin table.cmp{width:100%;table-layout:fixed}
 html body .hero .appwin table.cmp :is(th,td){overflow-wrap:break-word}
}
@media(max-width:600px){
 html body .hero .hero-stage .appwin,html body .hero .appwin{height:480px!important;min-height:480px!important}
 html body .hero .hero-stage{width:100%!important;padding:6px!important}
 html body .hero .appwin .aside{display:none!important}
 html body .hero .appwin{grid-template-columns:minmax(0,1fr)!important}
}
@media(prefers-reduced-motion:reduce){html body .hero .appwin .m-a .w,html body .hero .appwin .cmp .rw{display:revert;opacity:1}}

@media(max-width:760px){
 html body .hero .appwin #prompt{transform:none!important;width:100%!important;font-size:13px!important;line-height:20px!important;height:40px!important;min-height:40px!important;max-height:40px!important}
 html body .hero .appwin .att{min-width:0;gap:6px;padding:6px;border-radius:10px}
 html body .hero .appwin .at-i{width:22px;height:26px;flex:none;font-size:7px}
 html body .hero .appwin .at-t{min-width:0}
 html body .hero .appwin .at-t b{font-size:11px;white-space:nowrap}
 html body .hero .appwin .at-t small{display:none}
 html body .hero .appwin .m-files{gap:6px}
}
html body .hero .appwin .ci:has(.w):not(:has(.w.on)){visibility:hidden}
@media(prefers-reduced-motion:reduce){html body .hero .appwin .ci{visibility:visible!important}}

/* One restrained motion language for upload, send, streaming and dictation. */
html body .hero .appwin .atts .att{animation:preview-attachment-in .36s cubic-bezier(.22,1,.36,1) both}
@keyframes preview-attachment-in{from{opacity:0;transform:translateY(6px) scale(.99)}to{opacity:1;transform:none}}
html body .hero .appwin .at-t small:has(.at-status){display:grid;animation:none}
html body .hero .appwin .at-t small>span{grid-area:1/1;transition:opacity .2s ease}
html body .hero .appwin .at-detail,html body .hero .appwin .ready .at-status{opacity:0}
html body .hero .appwin .ready .at-detail{opacity:1}
html body .hero .appwin .at-p{transition:opacity .2s ease}
html body .hero .appwin .ready .at-p{opacity:0}
html body .hero .appwin .at-p i{transition:transform .88s cubic-bezier(.22,.6,.36,1)}
html body .hero .appwin #attach.press,html body .hero .appwin .send.press{transform:scale(.95)}
html body .hero .appwin .mic{width:36px!important;flex:none;transition:background .24s ease,color .24s ease,transform .24s ease}
html body .hero .appwin .mic.press{transform:scale(.95)}
html body .hero .appwin .mic :is(.icon,.wave){grid-area:1/1;transition:opacity .22s ease,transform .3s cubic-bezier(.22,1,.36,1)}
html body .hero .appwin .mic .icon{display:block;opacity:1;transform:scale(1)}
html body .hero .appwin .mic .wave{display:flex;opacity:0;transform:scale(.85)}
html body .hero .appwin .mic.on .icon{opacity:0;transform:scale(.85)}
html body .hero .appwin .mic.on .wave{opacity:1;transform:scale(1)}
html body .hero .appwin .mic:not(.on) .wave i{animation-play-state:paused}
html body .hero .appwin .send :is(.s-arrow,.s-voice){grid-area:1/1;transition:opacity .2s ease,transform .26s cubic-bezier(.22,1,.36,1)}
html body .hero .appwin .send .s-arrow{display:block;opacity:0;transform:translateY(2px)}
html body .hero .appwin .send .s-voice{display:flex;opacity:1}
html body .hero .appwin .has .send .s-arrow{opacity:1;transform:none}
html body .hero .appwin .has .send .s-voice{opacity:0;transform:translateY(-2px)}
html body .hero .appwin .m-a .w.on{animation:preview-word-in .18s ease-out both}
html body .hero .appwin .tkok{animation:preview-word-in .24s ease-out both}
@keyframes preview-word-in{from{opacity:0}to{opacity:1}}
@media(max-width:760px){html body .hero .appwin .at-t small:has(.at-status){display:none}}
@media(prefers-reduced-motion:reduce){
 html body .hero .appwin .m-a .w.on,html body .hero .appwin .tkok,html body .hero .appwin .atts .att{animation:none}
 html body .hero .appwin :is(.mic,.send,.at-t small,.at-p) *{transition:none}
}

/* Matching text layer adds a short ink fade without changing the composer layout. */
html body .hero .appwin .prompt-field{position:relative;min-width:0}
html body .hero .appwin .typed-prompt{position:absolute;inset:0;pointer-events:none;white-space:pre-wrap;overflow-wrap:break-word;overflow:hidden;text-align:left;color:var(--w);opacity:0;visibility:hidden}
html body .hero .appwin .prompt-field.is-typing .typed-prompt{opacity:.62;visibility:visible}
html body .hero .appwin .prompt-field.is-typing textarea::placeholder{color:transparent!important}
html body .hero .appwin .prompt-letter{opacity:0;transition:opacity .12s linear}
html body .hero .appwin .prompt-letter.on{opacity:1}
@media(prefers-reduced-motion:reduce){html body .hero .appwin .prompt-letter{transition:none}}
