/* HG_DEMO_TOP_1107: fixed demo controls above all page content, on every demo tab. */
html:root[data-hg-demo]{--hg-demo-top:calc(108px + env(safe-area-inset-top,0px));scroll-padding-top:var(--hg-demo-top);scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
html:root[data-hg-demo] body{padding-top:var(--hg-demo-top)!important;padding-bottom:calc(74px + env(safe-area-inset-bottom,0px) + var(--hg-tb-lift,0px))!important}
#sample-preview-bar{position:fixed;top:calc(8px + env(safe-area-inset-top,0px));bottom:auto;left:50%;transform:translateX(-50%);z-index:2147483000;display:flex;justify-content:space-between;align-items:center;gap:16px;box-sizing:border-box;width:min(760px,calc(100% - 24px));height:88px;padding:14px 16px;background:var(--paper,#f3eee6);font:600 18px/1.3 var(--sans,Jost,system-ui);border:1px solid var(--line,#d8cfbf);border-radius:18px;box-shadow:0 4px 15px rgba(43,38,34,.12)}
#sample-preview-bar strong{color:#b42318;font-size:18px;line-height:1.3;flex:1;min-width:0}
#sample-preview-bar a{color:inherit;border:1px solid currentColor;border-radius:999px;padding:12px 14px;text-decoration:none;font-size:15px;line-height:1.2;white-space:nowrap;flex:none}
html[data-hg-demo] .hg-explore-page .hg-cats,html[data-hg-demo] body.hg-rankmode .mood .choices.hg-catrow{top:var(--hg-demo-top)!important}
html[data-hg-demo] #hg-map-root{min-height:0}
@media(max-width:420px){#sample-preview-bar{gap:10px;padding:12px}#sample-preview-bar strong{font-size:17px}#sample-preview-bar a{font-size:14px;padding:12px}}
