/* Chat Lite R46: full-window responsive AI workspace, isolated from other apps. */
[data-hyos-host] .hyos-native-chat{display:grid!important;grid-template-columns:clamp(205px,22%,310px) minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;min-width:0!important;min-height:0!important;height:100%!important;width:100%!important;overflow:hidden!important;background:radial-gradient(ellipse at 70% 5%,#153a544d,transparent 65%),#040916!important}
[data-hyos-host] .hyos-chat-top{grid-row:1;grid-column:1/-1;min-height:58px;padding:10px clamp(12px,2vw,24px);background:linear-gradient(95deg,#09172b,#111a30)}
[data-hyos-host] .hyos-chat-sidebar-head{grid-row:2;grid-column:1;position:relative;z-index:1;padding:14px 13px 0;align-self:start;border-right:1px solid #38dffb2b}
[data-hyos-host] .hyos-chat-threads{grid-row:2;grid-column:1;padding:105px 10px 12px;min-width:0;overflow-y:auto}
[data-hyos-host] .hyos-chat-center{grid-row:2;grid-column:2;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
[data-hyos-host] .hyos-chat-toolstrip{flex:0 0 auto;gap:9px;padding:12px clamp(12px,2vw,24px);background:#0913249c;scrollbar-width:thin}
[data-hyos-host] .hyos-chat-mode{font-weight:650;letter-spacing:.01em;transition:background .15s,border-color .15s,box-shadow .15s}
[data-hyos-host] .hyos-chat-messages{flex:1 1 0;min-height:0;min-width:0;overflow-y:auto;padding:clamp(14px,2vw,28px) clamp(14px,4vw,58px);gap:22px;scrollbar-color:#28b9db66 transparent}
[data-hyos-host] .hyos-chat-messages .hy-message{width:100%;max-width:100%}
[data-hyos-host] .hyos-chat-messages .hy-message-bubble{padding:clamp(12px,2vw,22px);border-radius:18px;background:linear-gradient(135deg,#10253bcc,#0b1528ee);box-shadow:0 10px 35px #0003}
[data-hyos-host] .hyos-chat-messages :is(h1,h2,h3){margin:.7em 0 .35em;line-height:1.3;color:#e4faff}
[data-hyos-host] .hyos-chat-messages :is(p,ul,ol,pre,table){margin:.6em 0}
[data-hyos-host] .hyos-chat-messages table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
[data-hyos-host] .hyos-chat-messages :is(td,th){border:1px solid #64cde044;padding:7px 11px}
[data-hyos-host] .hyos-chat-messages blockquote{border-left:3px solid #4ddaf3;padding:8px 15px;background:#0c294a66}
[data-hyos-host] .hyos-chat-prompt-tools{flex:0 0 auto;gap:8px;padding:10px clamp(12px,3vw,30px) 0}
[data-hyos-host] .hyos-chat-tool{min-height:35px;font-weight:650;transition:box-shadow .15s,transform .15s}
[data-hyos-host] .hyos-chat-tool:hover{box-shadow:0 0 18px #36dffc44;transform:translateY(-1px)}
[data-hyos-host] .hyos-chat-composer{flex:0 0 auto;min-height:82px;max-width:none;margin:9px clamp(12px,3vw,30px) 0;padding:10px;align-items:stretch;border-radius:20px;background:linear-gradient(125deg,#0b2439,#0b152b);box-shadow:0 0 24px #32dfff20}
[data-hyos-host] .hyos-chat-composer textarea{min-height:60px;max-height:30vh;resize:vertical;border:0;background:transparent;font-size:15px;line-height:1.5}
[data-hyos-host] .hyos-chat-composer textarea:focus{outline:0;box-shadow:none}
[data-hyos-host] .hyos-chat-actions{align-items:flex-end}
[data-hyos-host] .hyos-chat-send{min-width:64px;background:linear-gradient(125deg,#087b9b,#553baf)!important}
[data-hyos-host] .hyos-chat-foot{flex:0 0 auto;padding:8px clamp(12px,3vw,30px) 13px}
[data-hyos-host] .hyos-chat-welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;min-height:100%;text-align:center;padding:20px}
[data-hyos-host] .hyos-chat-orb{width:80px;height:80px;display:grid;place-items:center;border:1px solid #6be8ff9c;border-radius:50%;font-size:34px;background:radial-gradient(circle at 32% 25%,#4ae3fc88,#4725a266 48%,#081222 75%);box-shadow:0 0 35px #38d8f855,0 0 65px #ac49f033;animation:hyosChatBreathe 5s ease-in-out infinite}
@keyframes hyosChatBreathe{50%{box-shadow:0 0 55px #38d8f888,0 0 85px #ac49f044;transform:scale(1.045)}}
[data-hyos-host] .hyos-chat-welcome h2{margin:0;font-size:clamp(22px,3vw,35px);background:linear-gradient(100deg,#fff,#5de6ff,#bf8aff);background-clip:text;color:transparent}
[data-hyos-host] .hyos-chat-welcome p{margin:0;max-width:460px;color:#a5c5dc;font-size:13px}
[data-hyos-host] .hyos-chat-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:min(100%,580px);margin-top:14px}
[data-hyos-host] .hyos-chat-suggestion{min-width:0;text-align:left;padding:15px;border:1px solid #50d7f05e;border-radius:14px;background:linear-gradient(125deg,#102c44,#161c37);color:#dcfaff;cursor:pointer}
[data-hyos-host] .hyos-chat-suggestion:hover{border-color:#60eaff;box-shadow:0 0 18px #4bdfff33}
@media(max-width:850px){[data-hyos-host] .hyos-native-chat{grid-template-columns:minmax(0,1fr)!important}[data-hyos-host] .hyos-chat-sidebar-head,[data-hyos-host] .hyos-chat-threads{display:none!important}[data-hyos-host] .hyos-chat-center{grid-column:1;grid-row:2}[data-hyos-host] .hyos-chat-messages{padding:14px}[data-hyos-host] .hyos-chat-suggestions{grid-template-columns:1fr 1fr}}
@media(max-width:480px){[data-hyos-host] .hyos-chat-top{gap:6px;padding:8px}[data-hyos-host] .hyos-chat-top strong{font-size:16px}[data-hyos-host] .hyos-chat-state{display:none}[data-hyos-host] .hyos-chat-toolstrip{padding:7px}[data-hyos-host] .hyos-chat-composer{margin:6px 8px 0}[data-hyos-host] .hyos-chat-foot{padding:5px 8px}[data-hyos-host] .hyos-chat-suggestions{grid-template-columns:1fr}[data-hyos-host] .hyos-chat-welcome{justify-content:flex-start;padding-top:24px}}
@media(prefers-reduced-motion:reduce){[data-hyos-host] .hyos-chat-orb{animation:none}}

/* R68: Chat's owned host container is a genuine full-height grid item. */
[data-hyos-host] .os-window:has(.hyos-native-chat) .window-body{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important;min-height:0!important}
[data-hyos-host] .os-window:has(.hyos-native-chat) .window-body>[data-hyos-instance]{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-height:0!important;min-width:0!important;height:100%!important;overflow:hidden!important}
[data-hyos-host] .hyos-native-chat{flex:1 1 auto!important;height:100%!important;min-height:0!important;grid-template-columns:clamp(200px,24%,300px) minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important}
[data-hyos-host] .hyos-chat-center{display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important;min-width:0!important}
[data-hyos-host] .hyos-chat-messages{display:flex!important;flex:1 1 auto!important;min-height:80px!important;overflow-y:auto!important;overflow-x:hidden!important;align-items:stretch!important;padding:14px clamp(12px,2vw,28px)!important;gap:12px!important;scrollbar-gutter:stable}
[data-hyos-host] .hyos-chat-messages>.hy-message{flex:0 0 auto!important;display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow-wrap:anywhere}
[data-hyos-host] .hyos-chat-messages .hy-bubble{max-width:min(100%,900px)!important;min-width:0!important;background:#101f33!important;border:1px solid #68d7ff44!important;border-radius:14px!important;padding:12px 16px!important;color:#eaf7ff!important}
[data-hyos-host] .hyos-chat-messages .hy-message.user .hy-bubble{margin-left:auto!important;max-width:min(85%,720px)!important;background:#15314c!important}
[data-hyos-host] .hyos-chat-messages .hy-speaker{color:#9de9ff!important;font-size:11px!important;letter-spacing:.04em}
[data-hyos-host] .hyos-chat-messages :is(.hy-prose,.hy-user-text,.hy-bubble p,.hy-bubble li){color:#edf8ff!important;line-height:1.65!important;font-size:clamp(13px,1.1vw,15px)!important;overflow-wrap:anywhere}
[data-hyos-host] .hyos-chat-messages :is(pre,code){white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
[data-hyos-host] .hyos-chat-messages .hy-bubble pre{white-space:pre;overflow-x:auto}
[data-hyos-host] .hyos-chat-messages .hy-bubble :is(table,.hy-table-scroll){max-width:100%;overflow-x:auto}
[data-hyos-host] .hyos-chat-prompt-tools{padding-top:6px!important}
[data-hyos-host] .hyos-chat-composer{min-height:68px!important;margin-top:6px!important}
[data-hyos-host] .hyos-chat-composer textarea{min-height:48px!important}
[data-hyos-host] .hyos-chat-foot{padding-bottom:7px!important}
@container hyos-window (max-width:750px){[data-hyos-host] .hyos-native-chat{grid-template-columns:minmax(0,1fr)!important}[data-hyos-host] .hyos-chat-sidebar-head,[data-hyos-host] .hyos-chat-threads{display:none!important}[data-hyos-host] .hyos-chat-center{grid-column:1!important;grid-row:2!important}[data-hyos-host] .hyos-chat-messages{padding:12px!important}}
@media(max-width:700px){[data-hyos-host] .os-window:has(.hyos-native-chat) .window-body{overflow:hidden!important}}


/* R71 avatar sizing is scoped to Lite AI messages only, never attachments. */
[data-hyos-host] .hyos-native-chat .hy-message-head{display:flex!important;align-items:center!important;gap:8px!important;min-height:30px!important}
[data-hyos-host] .hyos-native-chat .hy-message-avatar{
 display:inline-block!important;flex:0 0 30px!important;
 width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important;
 min-width:30px!important;min-height:30px!important;object-fit:cover!important;
 border-radius:50%!important;vertical-align:middle!important;position:static!important;
 aspect-ratio:1!important;overflow:hidden!important;
}
[data-hyos-host] .hyos-chat-call-controls:not([hidden]){display:flex!important;align-items:center;gap:7px;flex-wrap:wrap;min-width:0;padding:5px 9px;border:1px solid #62d7f066;border-radius:12px;background:#0b2840b8}
[data-hyos-host] .hyos-chat-call-controls[hidden]{display:none!important}
[data-hyos-host] .hyos-chat-call-status{font-size:12px;color:#a6efff}
[data-hyos-host] .hyos-chat-call{background:linear-gradient(115deg,#0b5062,#32316f)!important}

/* R80: true window-width responsive chat, modelled after full hyChat/mobile chat. */
[data-hyos-host] .hyos-native-chat{container-type:inline-size;container-name:hychat-lite}
[data-hyos-host] .hyos-chat-center{position:relative}
[data-hyos-host] .hyos-chat-composer{position:relative}
[data-hyos-host] .hyos-chat-prompt-tools{transition:opacity .18s ease,transform .18s ease}
@container hyos-window (max-width:620px){
 [data-hyos-host] .hyos-native-chat{display:flex!important;flex-direction:column!important;height:100%!important}
 [data-hyos-host] .hyos-chat-top{display:flex!important;min-height:46px!important;padding:7px 10px!important;gap:6px!important}
 [data-hyos-host] .hyos-chat-top>div small,[data-hyos-host] .hyos-chat-state{display:none!important}
 [data-hyos-host] .hyos-chat-new{min-height:28px!important;padding:3px 8px!important;font-size:10px!important}
 [data-hyos-host] .hyos-chat-sidebar-head,[data-hyos-host] .hyos-chat-threads{display:none!important}
 [data-hyos-host] .hyos-chat-center{flex:1 1 auto!important;min-height:0!important;width:100%!important}
 [data-hyos-host] .hyos-chat-toolstrip{display:flex!important;gap:5px!important;padding:6px 8px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none}
 [data-hyos-host] .hyos-chat-mode{min-height:27px!important;padding:3px 8px!important;font-size:10px!important;white-space:nowrap}
 [data-hyos-host] .hyos-chat-messages{flex:1 1 auto!important;padding:10px 9px 124px!important;gap:10px!important;scroll-padding-bottom:130px}
 [data-hyos-host] .hyos-chat-messages .hy-bubble{padding:10px 11px!important;border-radius:13px!important}
 [data-hyos-host] .hyos-chat-messages .hy-message.user .hy-bubble{max-width:92%!important}
 [data-hyos-host] .hyos-chat-prompt-tools{position:absolute!important;left:8px!important;right:8px!important;bottom:72px!important;z-index:6!important;display:flex!important;align-items:center!important;gap:5px!important;padding:0!important;background:transparent!important;overflow-x:auto!important;scrollbar-width:none}
 [data-hyos-host] .hyos-chat-tool{flex:0 0 auto!important;min-height:28px!important;padding:3px 7px!important;font-size:10px!important}
 [data-hyos-host] .hyos-chat-tool:not(.hyos-chat-call):not(:first-child):not(:nth-child(2)){max-width:34px!important;overflow:hidden!important;white-space:nowrap!important;text-indent:-999px!important}
 [data-hyos-host] .hyos-chat-tool:not(.hyos-chat-call):not(:first-child):not(:nth-child(2))::after{content:'⋯';text-indent:0;display:block;font-size:16px}
 [data-hyos-host] .hyos-chat-call{max-width:38px!important;overflow:hidden!important;white-space:nowrap!important;text-indent:-999px!important}
 [data-hyos-host] .hyos-chat-call::after{content:'◉';text-indent:0;display:block;font-size:13px}
 [data-hyos-host] .hyos-chat-call-controls{position:absolute;left:8px;right:8px;bottom:108px;z-index:7}
 [data-hyos-host] .hyos-chat-composer{position:absolute!important;left:8px!important;right:8px!important;bottom:8px!important;z-index:5!important;margin:0!important;min-height:56px!important;padding:6px 7px!important;border-radius:18px!important;background:linear-gradient(135deg,#10263bdc,#11172eea)!important;backdrop-filter:blur(18px)!important;box-shadow:0 10px 34px #0008,0 0 0 1px #54dcf52c!important}
 [data-hyos-host] .hyos-chat-composer textarea{min-height:42px!important;max-height:96px!important;font-size:13px!important;padding:7px!important;resize:none!important}
 [data-hyos-host] .hyos-chat-actions{display:flex!important;align-items:flex-end!important}
 [data-hyos-host] .hyos-chat-send,[data-hyos-host] .hyos-chat-stop{min-width:45px!important;min-height:38px!important;padding:4px 8px!important;font-size:11px!important}
 [data-hyos-host] .hyos-chat-foot{display:none!important}
}
@container hyos-window (max-width:360px){
 [data-hyos-host] .hyos-chat-mode{padding:3px 6px!important}
 [data-hyos-host] .hyos-chat-messages{padding-left:7px!important;padding-right:7px!important}
 [data-hyos-host] .hyos-chat-prompt-tools{left:6px!important;right:6px!important}
 [data-hyos-host] .hyos-chat-composer{left:6px!important;right:6px!important;bottom:6px!important}
}

/* R104 — ChatGPT-style Lite composer + single thinking state + animated voice. */
[data-hyos-host] .os-window .hyos-chat-composer{display:grid!important;grid-template-columns:32px minmax(0,1fr) 32px 36px auto!important;align-items:end!important;gap:5px!important;min-height:44px!important;padding:5px!important;margin:5px 8px 0!important;border-radius:18px!important}
[data-hyos-host] .os-window .hyos-chat-composer textarea{grid-column:2!important;min-height:32px!important;max-height:76px!important;height:auto;padding:7px 5px!important;resize:none!important;overflow-y:hidden;line-height:1.35!important;align-self:center!important}
[data-hyos-host] .os-window .hyos-chat-compose-attach,[data-hyos-host] .os-window .hyos-chat-compose-mic,[data-hyos-host] .os-window .hyos-chat-compose-voice{position:relative!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:999px!important;font-size:15px!important;text-indent:0!important;overflow:visible!important}
[data-hyos-host] .os-window .hyos-chat-compose-attach{grid-column:1!important}
[data-hyos-host] .os-window .hyos-chat-compose-mic{grid-column:3!important}
[data-hyos-host] .os-window .hyos-chat-compose-voice{grid-column:4!important}
[data-hyos-host] .os-window .hyos-chat-actions{grid-column:5!important;display:flex!important;align-items:end!important;gap:4px!important}
[data-hyos-host] .os-window .hyos-chat-actions button{min-height:32px!important;height:32px!important;padding:4px 9px!important;border-radius:12px!important}
[data-hyos-host] .os-window .hyos-chat-prompt-tools{padding:4px 10px 0!important;min-height:0!important}
[data-hyos-host] .os-window .hyos-chat-prompt-tools>.hyos-chat-tool{display:none!important}
[data-hyos-host] .os-window .hyos-chat-context-panel{margin:0!important}
[data-hyos-host] .os-window .hyos-chat-compose-mic[data-state=listening],[data-hyos-host] .os-window .hyos-chat-compose-mic[data-state=transcribing]{box-shadow:0 0 0 4px rgba(46,211,230,.14),0 0 18px rgba(46,211,230,.38)!important;animation:hyos-voice-pulse 1.1s ease-in-out infinite!important}
[data-hyos-host] .os-window .hyos-chat-compose-voice::before,[data-hyos-host] .os-window .hyos-chat-compose-voice::after{content:"";position:absolute;inset:5px;border:1px solid currentColor;border-radius:999px;opacity:0;pointer-events:none}
[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=priming]::before,[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=connecting]::before{opacity:.7;animation:hyos-voice-ring 1.05s ease-out infinite}
[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=listening]{box-shadow:0 0 0 4px rgba(53,234,255,.13),0 0 20px rgba(53,234,255,.34)!important}
[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=listening]::before,[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=listening]::after{opacity:.75;animation:hyos-voice-ring 1.25s ease-out infinite}
[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=listening]::after{animation-delay:.42s}
[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=thinking]{animation:hyos-voice-thinking 1.4s linear infinite!important}
[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=speaking]{animation:hyos-voice-speaking .55s ease-in-out infinite alternate!important}
[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=muted]{opacity:.62!important}
[data-hyos-host] .os-window .hyos-chat-compose-voice[data-state=error]{box-shadow:0 0 0 3px rgba(255,89,89,.17)!important}
@keyframes hyos-voice-pulse{50%{transform:scale(1.07)}}
@keyframes hyos-voice-ring{0%{transform:scale(.65);opacity:.8}100%{transform:scale(1.7);opacity:0}}
@keyframes hyos-voice-thinking{to{transform:rotate(360deg)}}
@keyframes hyos-voice-speaking{from{transform:scale(.94)}to{transform:scale(1.1);box-shadow:0 0 0 5px rgba(157,109,255,.14),0 0 22px rgba(53,234,255,.30)}}
[data-hyos-host] .hy-message:has(.hy-ui-loader[data-active=true])>.hy-message-status,[data-hyos-host] .hy-message:has(.hy-ui-loader[data-active=true])>.hy-status{display:none!important}
@container hyos-lite-window (max-width:620px){[data-hyos-host] .os-window .hyos-chat-prompt-tools{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;padding:2px 6px 0!important}[data-hyos-host] .os-window .hyos-chat-composer{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;grid-template-columns:30px minmax(0,1fr) 30px 34px auto!important;margin:4px 5px 5px!important}[data-hyos-host] .os-window .hyos-chat-compose-attach,[data-hyos-host] .os-window .hyos-chat-compose-mic{width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important}[data-hyos-host] .os-window .hyos-chat-compose-voice{width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important}[data-hyos-host] .os-window .hyos-chat-composer textarea{min-height:30px!important;max-height:72px!important;font-size:12px!important}[data-hyos-host] .os-window .hyos-chat-messages{padding-bottom:8px!important}}
@container hyos-lite-window (max-width:390px){[data-hyos-host] .os-window .hyos-chat-composer{grid-template-columns:30px minmax(0,1fr) 30px 34px auto!important;gap:3px!important}[data-hyos-host] .os-window .hyos-chat-actions button{padding-inline:7px!important}}
