/* The static demo's banner and note (docs/DEMO_DEPLOY.md). */
:root { --demo-bar: 32px; }
.demo-banner {
  position: sticky; top: 0; z-index: 50;
  height: var(--demo-bar); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 0 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  background: var(--app-notice, #FBF5E6); color: var(--app-notice-text, #5C4410);
  border-bottom: 1px solid var(--app-notice-line, #E6D3A3);
  font: 500 13px/1.3 "IBM Plex Sans", system-ui, sans-serif;
}
.demo-banner a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.demo-banner span { overflow: hidden; text-overflow: ellipsis; }
.ws { min-height: calc(100vh - var(--demo-bar)); }
.rail { top: var(--demo-bar); height: calc(100vh - var(--demo-bar)); }
.demo-note {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  max-width: calc(100vw - 32px); box-sizing: border-box;
  padding: 10px 16px; border-radius: 6px;
  background: var(--navy, #0F1A2B); color: var(--paper-on-navy, #F5F2EB);
  font: 500 14px/1.4 "IBM Plex Sans", system-ui, sans-serif;
  box-shadow: 0 4px 16px rgba(15, 26, 43, 0.25);
}
.demo-note[hidden] { display: none; }
@media (max-width: 959px) {
  .demo-banner { position: static; height: auto; min-height: var(--demo-bar); padding: 6px 16px; white-space: normal; flex-wrap: wrap; text-align: center; }
  .rail { top: auto; height: auto; }
}

/* Rules the app writes for its forms, for the blocks the demo's forms became. */
.panel-foot [data-demo-form]{flex-direction:column;gap:10px;display:flex}
.sup-code [data-demo-form]+[data-demo-form]{margin-top:12px}
.q-edit [data-demo-form]{flex-direction:column;gap:8px;margin-top:8px;display:flex}
.q-export [data-demo-form]+.q-upload-title{margin-top:20px}
.q-export [data-demo-form] .muted{margin:8px 0 0}
.ws-row-actions [data-demo-form]{align-items:center;gap:6px;display:flex}
