:root { --demo-height: 0px; }
body { padding-top: var(--demo-height); overflow: hidden; }
.demo-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  row-gap: .25rem;
  padding: .45rem clamp(.75rem, 2vw, 1.5rem);
  color: #23344d;
  background: #eef4fb;
  border-bottom: 1px solid #ccd8e8;
  font-size: .875rem;
  line-height: 1.5;
}
.demo-banner p { margin: 0; }
.demo-banner > div { display: flex; gap: .5rem 1rem; flex-wrap: wrap; align-items: center; }
.demo-banner a, .demo-banner button { padding: .4rem .1rem; color: #174b88; font: inherit; font-weight: 650; }
.demo-banner button { border: 0; background: transparent; cursor: pointer; text-decoration: underline; }
.demo-banner a { text-decoration: underline; text-underline-offset: .18em; }
.demo-banner :focus-visible { outline: 2px solid #174b88; outline-offset: 2px; }
.ghl-shell { min-height: calc(100dvh - var(--demo-height)); }
.ghl-main, .ghl-sidebar { height: calc(100dvh - var(--demo-height)); }
.ghl-canvas { overflow-x: hidden; }
#cf-setup-badge { display: none; }
.ghl-shell:not([data-demo-view="settings"]) #updater-host { display: none; }
#updater-host > section { padding: .3rem 1rem; }
#updater-host > section:not(:focus-within) > :is(h2, p):empty { display: none; }
#updater-host details:has(input[type="password"]) { display: none; }
#demo-notice {
  position: fixed;
  z-index: 8100;
  top: calc(var(--demo-height) + .5rem);
  right: .75rem;
  max-width: min(27rem, calc(100% - 1.5rem));
  padding: .8rem 1rem;
  border-radius: .5rem;
  background: #23344d;
  color: white;
  box-shadow: 0 4px 16px #23344d33;
  overflow-wrap: anywhere;
}
.demo-preview { width: min(40rem, calc(100% - 1.5rem)); padding: 1.25rem; border: 1px solid #ccd8e8; border-radius: .75rem; }
.demo-preview::backdrop { background: #23344d66; }
.demo-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
@media (max-width: 820px) {
  .ghl-sidebar { top: var(--demo-height); }
  .ghl-topbar .role-badge { display: none; }
  .ghl-topbar .topbar-title { overflow: hidden; text-overflow: ellipsis; }
}
