.floating-actions { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 8; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.demo-tab { display: flex; align-items: center; gap: .7rem; writing-mode: vertical-rl; padding: 1.2rem .8rem; border: 1px solid #102f39; border-right: 0; border-radius: 10px 0 0 10px; background: var(--mint); color: var(--night-deep); font-weight: 750; font-size: .9rem; text-decoration: none; box-shadow: -3px 4px 20px #0002; }
.demo-tab:hover { background: #9cf2e8; }
.demo-tab svg { width: 21px; height: 21px; flex: 0 0 auto; }
.hero-demo-note { margin-top: 1rem; color: #b4cad2; font-size: .86rem; }
.demo-dialog { width: min(1280px, calc(100vw - 40px)); height: calc(100dvh - 40px); max-width: none; max-height: none; padding: 0; margin: auto; border: 1px solid #537882; background: #0a2029; color: #e8f3f5; box-shadow: 0 24px 100px #0008; }
.demo-dialog[open] { display: flex; flex-direction: column; }
.demo-dialog::backdrop { background: #03151ee6; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 20px; border-bottom: 1px solid #35515b; }
.demo-heading h2 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.demo-close { flex-shrink: 0; min-height: 44px; padding: 8px 14px; border: 1px solid #5d7985; background: #244550; color: #f4fbfd; font: inherit; cursor: pointer; }
.demo-close:hover { background: #365f6c; }
.demo-frame { flex: 1; min-height: 0; }
.demo-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding: 10px 20px; border-top: 1px solid #35515b; font-size: .78rem; color: #b1c9d1; }
.demo-footer p { margin: 0; }
.demo-footer a { color: #8fe3d9; }
body.demo-open { overflow: hidden; }
@media (max-width: 760px), (max-height: 760px) {
  .floating-actions { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; transform: none; max-width: calc(100vw - 32px); gap: 8px; }
  .demo-tab { writing-mode: horizontal-tb; max-width: 100%; border: 1px solid #102f39; border-radius: 28px; padding: .75rem 1rem; min-height: 48px; }
  .site-footer { padding-bottom: 210px; }
}
@media (max-width: 760px) {
  .demo-dialog { width: 100%; height: 100dvh; border: 0; }
  .demo-heading { padding: 8px 12px; }
  .demo-heading h2 { font-size: 1rem; }
  .demo-footer { padding: 8px 12px; }
}
@media print { .floating-actions, .demo-dialog { display: none !important; } }
