
/* Applied ONLY to /chat.html?dash_embed=1; direct hyChat remains unchanged. */
html[data-dash-embed="1"]{--hy-app-height:100dvh;scrollbar-gutter:stable}
html[data-dash-embed="1"],html[data-dash-embed="1"] body{width:100%;height:100%;overflow:hidden}
html[data-dash-embed="1"] .hy-v16{height:100dvh;min-height:0;grid-template-columns:54px 210px minmax(0,1fr)}
html[data-dash-embed="1"] .hy-rail{gap:8px!important;padding:10px 5px!important}
html[data-dash-embed="1"] .hy-rail-btn{min-height:45px!important;font-size:10px!important}
html[data-dash-embed="1"] .hy-sidebar{margin:0 5px 0 0!important;min-width:0}
html[data-dash-embed="1"] .hy-sidebar-head{padding:11px 10px!important}
html[data-dash-embed="1"] .hy-sidebar-tools{margin-top:9px!important}
html[data-dash-embed="1"] .hy-main{margin:5px!important;min-width:0;min-height:0;border-radius:15px!important;grid-template-rows:auto minmax(0,1fr) auto}
html[data-dash-embed="1"] .hy-main .hy-topbar{min-height:52px!important;padding:7px 10px!important;gap:7px}
html[data-dash-embed="1"] .hy-title{min-width:0}
html[data-dash-embed="1"] .hy-title small{max-width:200px}
html[data-dash-embed="1"] .hy-thread-wrap{width:min(100%,1180px)!important;padding:15px clamp(10px,2vw,26px) 15px!important}
html[data-dash-embed="1"] .hy-composer-wrap{width:min(100%,1190px)!important;padding:5px clamp(8px,2vw,22px) 8px!important;min-width:0}
html[data-dash-embed="1"] .hy-messages{gap:14px}
html[data-dash-embed="1"] .hy-bubble{padding:12px 15px;border-radius:16px}
html[data-dash-embed="1"] .hy-prose{line-height:1.6}
html[data-dash-embed="1"] .hy-thread-viewport{min-height:0;overflow-y:auto;overscroll-behavior:contain}
html[data-dash-embed="1"] .hy-composer-tools{min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
html[data-dash-embed="1"] .hy-composer textarea{font-size:16px}
html[data-dash-embed="1"] .hy-prose :is(pre,table){max-width:100%}
html[data-dash-embed="1"] .hy-prose pre{overflow-x:auto}
html[data-dash-embed="1"] .hy-ui-table-wrap{overflow-x:auto}
@media(max-width:1150px){
 html[data-dash-embed="1"] .hy-v16{grid-template-columns:52px minmax(0,1fr)}
 html[data-dash-embed="1"] .hy-v16>.hy-sidebar{display:none!important}
 html[data-dash-embed="1"] .hy-mobile-menu{display:inline-flex!important}
}
@media(max-width:700px){
 html[data-dash-embed="1"] .hy-v16{grid-template-columns:minmax(0,1fr)}
 html[data-dash-embed="1"] .hy-rail{display:none!important}
 html[data-dash-embed="1"] .hy-main{margin:2px!important;border-radius:11px!important}
 html[data-dash-embed="1"] .hy-main .hy-topbar{min-height:48px!important;padding:5px 7px!important}
 html[data-dash-embed="1"] .hy-thread-wrap{padding:10px 9px!important}
 html[data-dash-embed="1"] .hy-composer-wrap{padding:4px 7px 6px!important}
 html[data-dash-embed="1"] .hy-composer-tools{padding:3px 0 6px!important}
 html[data-dash-embed="1"] .hy-composer-hint{display:none!important}
 html[data-dash-embed="1"] .hy-bubble{padding:11px 10px}
 html[data-dash-embed="1"] .hy-message.user .hy-bubble{max-width:94%}
 html[data-dash-embed="1"] .hy-topbar-actions{gap:2px}
 html[data-dash-embed="1"] .hy-topbar-actions .hy-btn{width:40px;min-height:40px}
 html[data-dash-embed="1"] .hy-composer textarea{min-height:36px;max-height:24dvh}
}
@media(max-height:640px){
 html[data-dash-embed="1"] .hy-composer-tools{padding-block:3px!important}
 html[data-dash-embed="1"] .hy-composer-hint{display:none!important}
 html[data-dash-embed="1"] .hy-thread-wrap{padding-top:8px!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-dash-embed="1"] *,html[data-dash-embed="1"] *::before,html[data-dash-embed="1"] *::after{scroll-behavior:auto!important}
}
