/* Barre et notifications communes aux démos BlackSwan (indépendantes du style de chaque application). */
:root { --demo-bar: 44px; }
.demo-short { display: none; }
.demo-bar, .demo-bar *, .demo-panel, .demo-panel *, .demo-toasts, .demo-toasts * { box-sizing: border-box; }
.demo-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--demo-bar);
  display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #0e0e10; color: #f5f5f6; border-bottom: 1px solid #2b2b30;
  font: 600 13px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.demo-badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #ffd27a; }
.demo-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #ffd27a; }
.demo-switch { display: flex; background: #202024; border-radius: 999px; padding: 3px; margin-left: auto; }
.demo-switch a { padding: 6px 12px; border-radius: 999px; color: #b8b8bf; text-decoration: none; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; }
.demo-switch a[aria-current='page'] { background: #f5f5f6; color: #0e0e10; }
.demo-actions { display: flex; align-items: center; gap: 8px; }
.demo-more { background: transparent; color: #f5f5f6; border: 1px solid #3d3d44; border-radius: 999px; padding: 6px 12px; min-height: 32px; font: inherit; cursor: pointer; white-space: nowrap; }
.demo-cta { color: #fff; background: #d93a40; border-radius: 999px; padding: 7px 14px; text-decoration: none; white-space: nowrap; }
.demo-bar :focus-visible, .demo-panel :focus-visible { outline: 2px solid #ff8f93; outline-offset: 2px; }
.demo-panel {
  position: absolute; top: calc(var(--demo-bar) + 6px); right: 12px; width: min(420px, calc(100vw - 24px));
  background: #17171a; color: #f5f5f6; border: 1px solid #3d3d44; border-radius: 16px; padding: 16px;
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / .8); font-weight: 500;
}
.demo-panel-title { margin: 0 0 8px; font-weight: 700; font-size: 14px; }
.demo-panel ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.demo-panel ol a { color: #f5f5f6; }
.demo-note { color: #b8b8bf; margin: 12px 0; line-height: 1.45; }
.demo-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-panel-actions button, .demo-panel-actions a { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid #3d3d44; background: #202024; color: #f5f5f6; font: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.demo-panel-actions .demo-cta-inline { display: none; background: #d93a40; border-color: #d93a40; }
.demo-toasts { position: fixed; z-index: 90; left: 50%; bottom: 88px; transform: translateX(-50%); display: grid; gap: 8px; width: min(520px, calc(100vw - 24px)); pointer-events: none; }
.demo-toasts p { margin: 0; background: #0e0e10; color: #fff; border: 1px solid #3d3d44; border-radius: 12px; padding: 12px 14px; font: 500 14px/1.4 system-ui, sans-serif; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .6); }
.demo-missing { max-width: 640px; margin: 0 auto; padding: 120px 20px; font-family: system-ui, sans-serif; }
.demo-missing h1 { font-size: 24px; margin: 0 0 12px; }

@media (max-width: 860px) {
  .demo-cta { display: none; }
  .demo-panel-actions .demo-cta-inline { display: inline-flex; }
}
@media (max-width: 520px) {
  .demo-bar { gap: 6px; padding: 0 8px; font-size: 11.5px; }
  .demo-long { display: none; }
  .demo-short { display: inline; }
  .demo-badge { gap: 5px; }
  .demo-switch { margin-left: auto; }
  .demo-switch a { padding: 6px 9px; }
  .demo-more { padding: 6px 10px; }
}
