/* Démo interactive de la vitrine (voir demo.js). */
.demo-wrap { padding-top: 40px; padding-bottom: 72px; }
.demo-intro { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.demo-intro h1 { margin: 12px 0; font-size: clamp(30px, 5vw, 46px); }
.demo-intro p { color: var(--text); font-size: 18px; }
.demo-notice { margin: 14px auto 0; font-size: 15px; }
.demo-cta { display: flex; justify-content: center; margin-top: 28px; }

.demo-app, .demo-modal {
  --demo-ctl: rgba(255, 255, 255, 0.08);
  --demo-ctl-hover: rgba(255, 255, 255, 0.14);
  --demo-violet: #9333ea;
  color-scheme: dark;
}
.demo-app {
  position: relative;
  display: flex;
  height: 740px;
  overflow: hidden;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  scroll-margin-top: 84px;
}
.demo-app::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-border), transparent); }
:where(.demo-app, .demo-modal) button { font: inherit; cursor: pointer; }
.demo-row-item input, .demo-card input { background: var(--demo-ctl); }
.demo-file .demo-segmented { background: rgba(255, 255, 255, 0.05); }
.demo-app button:disabled, .demo-modal button:disabled { cursor: default; opacity: 0.4; }
.demo-app h2, .demo-app h3, .demo-app h4, .demo-modal h3, .demo-modal h4 { color: var(--text-h); }
.demo-app p { margin: 0; }
.demo-muted { color: var(--text); font-size: 13px; }
.demo-full { flex-basis: 100%; }

/* Barre latérale */
.demo-side { flex: none; width: 212px; box-sizing: border-box; display: flex; flex-direction: column; padding: 16px 10px; border-right: 1px solid var(--border); }
.demo-band { display: flex; align-items: center; gap: 10px; padding: 0 6px 14px; color: var(--text-h); min-width: 0; }
.demo-band strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-avatar { width: 30px; height: 30px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--code-bg); color: var(--text-h); font-weight: 600; }
.demo-side-nav { display: flex; flex-direction: column; gap: 2px; }
.demo-nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 10px; border: none; border-radius: 10px; background: none; color: var(--text); font-weight: 500; text-align: left; }
.demo-nav:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-h); }
.demo-nav-active, .demo-nav-active:hover { background: rgba(255, 255, 255, 0.12); color: var(--text-h); }
.demo-nav-icon { position: relative; display: inline-flex; }
.demo-dot { position: absolute; top: -2px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ff2fb3; }
.demo-dot-inline { position: static; display: inline-block; margin-left: 6px; }
.demo-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.demo-gauge { padding: 2px 10px 6px; font-size: 12px; }
.demo-reset { min-height: 36px; padding: 0 10px; border: none; border-radius: 10px; background: none; color: var(--text); font-size: 13px; text-align: left; text-decoration: underline; }
.demo-reset:hover { color: var(--text-h); }

/* Page */
.demo-page { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.demo-top { flex: none; display: flex; align-items: center; justify-content: flex-end; min-height: 52px; padding: 6px 14px 0; }
.demo-top-band { display: none; align-items: center; gap: 10px; min-width: 0; padding: 0; border: none; background: none; color: var(--text-h); }
.demo-top-band strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-top-tools { display: flex; align-items: center; gap: 4px; }
.demo-reset-top { display: none; }
.demo-bell { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: none; color: var(--text-h); }
.demo-bell:hover { background: var(--demo-ctl); }
.demo-bell-count { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #ff2fb3; color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.demo-bottom { display: none; }

.demo-content { flex: 1; min-width: 0; min-height: 0; display: flex; }
.demo-main { flex: 1; min-width: 0; box-sizing: border-box; padding: 4px 22px 22px; overflow-y: auto; }
.demo-head h2 { margin: 0; font-size: 26px; }
.demo-head h3 { margin: 0; font-size: 19px; }
.demo-head p { margin: 2px 0 0; }
.demo-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.demo-subtitle { margin: 0 0 10px; font-size: 16px; }

/* Commandes */
.demo-primary { min-height: 44px; padding: 0 16px; border: none; border-radius: 10px; background: var(--demo-violet); color: #fff; font-weight: 600; }
.demo-primary:hover:not(:disabled) { filter: brightness(1.08); }
.demo-primary-soft, .demo-tab-on { background: var(--demo-violet) !important; color: #fff !important; }
.demo-contrast { min-height: 44px; border: none; border-radius: 10px; background: var(--text-h); color: var(--bg); font-weight: 600; }
.demo-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: none; border-radius: 10px; background: var(--demo-ctl); color: var(--text-h); font-size: 14px; font-weight: 500; }
.demo-btn:hover { background: var(--demo-ctl-hover); }
.demo-block { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.demo-danger { color: #fca5a5 !important; }
.demo-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: none; background: none; color: var(--accent); font-size: 14px; }
.demo-link:hover { text-decoration: underline; }
.demo-link-back { min-height: 40px; margin-bottom: 4px; }
.demo-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-strip > button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: none; border-radius: 10px; background: var(--demo-ctl); color: var(--text-h); font-size: 14px; font-weight: 500; }
.demo-strip > button:hover { background: var(--demo-ctl-hover); }
.demo-strip > button.demo-primary { background: var(--demo-violet); color: #fff; font-weight: 600; min-height: 44px; }
.demo-strip > button.demo-tool, .demo-strip > button.demo-square { width: 40px; padding: 0; justify-content: center; }
.demo-tool { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 10px; background: var(--demo-ctl); color: var(--text-h); }
.demo-tool:hover:not(:disabled) { background: var(--demo-ctl-hover); }
.demo-segmented { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--code-bg); }
.demo-segmented-item { flex: 1; min-height: 36px; padding: 0 6px; border: none; border-radius: 8px; background: none; color: var(--text); font-size: 13px; font-weight: 500; }
.demo-segmented-on { background: rgba(255, 255, 255, 0.18); color: var(--text-h); }

.demo-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-toolbar .demo-search { flex: 1 1 200px; width: auto; }
.demo-search, .demo-note, .demo-app select, .demo-inline-form input, .demo-riff-form input, .demo-composer input, .demo-form input, .demo-form select, .demo-form textarea, .demo-modal input {
  min-height: 42px; box-sizing: border-box; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; background: var(--code-bg); color: var(--text-h); font: inherit;
}
.demo-form textarea { width: 100%; padding: 10px 12px; resize: vertical; }
.demo-search, .demo-note { width: 100%; }
.demo-app input:focus, .demo-app select:focus, .demo-modal input:focus, .demo-modal select:focus, .demo-modal textarea:focus { outline: none; border-color: var(--accent); }
.demo-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.demo-filter { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: none; border-radius: 8px; background: var(--code-bg); color: var(--text); font-size: 14px; font-weight: 500; }
.demo-filter-active { background: rgba(255, 255, 255, 0.2); color: var(--text-h); }
.demo-setlist-tabs { display: none; }
.demo-practice-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.demo-practice-bar > .demo-muted:first-child { flex: 1 1 220px; }

/* Listes */
.demo-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.demo-row-item { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--code-bg); }
.demo-row-item::before, .demo-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-border), transparent); }
.demo-row-item-open { border-color: var(--accent-border); }
.demo-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; box-sizing: border-box; padding: 8px 12px 8px 14px; border: none; background: none; color: var(--text); text-align: left; }
button.demo-row:hover { background: rgba(255, 255, 255, 0.05); }
.demo-row-item-open button.demo-row { background: rgba(255, 255, 255, 0.1); }
.demo-row-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 0; border: none; background: none; color: var(--text); text-align: left; }
.demo-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.demo-row-text strong { color: var(--text-h); font-size: 15px; font-weight: 600; }
.demo-flag { display: inline-flex; color: var(--accent); }
.demo-status { font-size: 13px; white-space: nowrap; }
.demo-row-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 14px 10px; color: var(--text); font-size: 13px; }
.demo-row-note svg, .demo-row-note strong { color: var(--accent); }
.demo-review { padding: 0 12px 12px; }
.demo-review-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 12px; }
.demo-review .demo-review-row { padding: 8px 0 0; }
.demo-review-row button { display: inline-flex; align-items: center; gap: 6px; }
.demo-item-tools { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.demo-empty { padding: 10px 2px; font-size: 14px; }
.demo-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--code-bg); list-style: none; }
.demo-card > strong, .demo-card-row strong { color: var(--text-h); font-size: 15px; }
.demo-card p { font-size: 13px; }
.demo-card h3 { margin: 0; font-size: 16px; }
.demo-card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.demo-card-row > div { min-width: 0; }
.demo-badge { flex: none; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.demo-badge-concert { background: rgba(252, 165, 165, 0.14); color: #fca5a5; }
.demo-badge-repetition { background: rgba(147, 197, 253, 0.14); color: #93c5fd; }
.demo-badge-autre { background: rgba(134, 239, 172, 0.14); color: #86efac; }
.demo-past { margin-top: 14px; }
.demo-past-toggle { min-height: 40px; margin-bottom: 6px; }

/* Morceau ouvert */
.demo-detail { flex: none; width: 360px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; padding: 8px 22px 22px; overflow-y: auto; border-left: 1px solid var(--border); }
.demo-back { display: none; align-self: flex-start; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: none; background: none; color: var(--accent); }
.demo-detail-head { display: flex; align-items: flex-start; gap: 10px; }
.demo-detail-head > div { flex: 1; min-width: 0; }
.demo-detail-head h3 { margin: 0; font-size: 24px; }
.demo-detail-head p { margin: 2px 0 0; font-size: 14px; }
.demo-flag-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: var(--demo-ctl); color: var(--text); }
.demo-flag-btn-on { background: var(--demo-violet); color: #fff; }
.demo-note-wrap { display: flex; flex-direction: column; gap: 6px; color: var(--accent); font-size: 13px; font-weight: 600; }
.demo-note { font-weight: 400; font-size: 15px; }
.demo-panel { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.demo-panel > .demo-btn { align-self: flex-start; }
.demo-listen { width: 100%; align-self: stretch !important; }
.demo-file { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--code-bg); }
.demo-file-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-file-head > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.demo-file strong { color: var(--text-h); font-size: 14px; overflow-wrap: anywhere; }
.demo-score-note { margin: 0; color: var(--text-h); font: 14px/1.5 var(--mono, ui-monospace, Consolas, monospace); white-space: pre-wrap; }
.demo-detail-actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Lecteur */
.demo-player { display: flex; flex-direction: column; gap: 8px; }
.demo-player-compact { flex-direction: row; align-items: center; }
.demo-player-compact .demo-wave { flex: 1; min-width: 0; }
.demo-wave { position: relative; display: block; width: 100%; height: 48px; padding: 0; border: none; background: none; color: var(--text); opacity: 0.95; }
.demo-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-wave-played { position: absolute; inset: 0; color: #c084fc; clip-path: inset(0 100% 0 0); }
.demo-wave-loop { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: rgba(192, 132, 252, 0.22); }
.demo-wave-loop[hidden] { display: none; }
.demo-player-row { display: flex; align-items: center; gap: 8px; }
.demo-player-tools { flex-wrap: wrap; }
.demo-player-tools .demo-segmented { flex: 1 1 200px; }
.demo-play { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: var(--text-h); color: var(--bg); }
.demo-skip { width: 44px; height: 40px; flex: none; border: none; border-radius: 10px; background: var(--demo-ctl); color: var(--text-h); font-size: 13px; font-weight: 600; }
.demo-time { flex: none; margin-left: auto; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Setlist */
.demo-cols { display: flex; gap: 20px; align-items: flex-start; }
.demo-col-main { flex: 2; min-width: 0; }
.demo-col-side { flex: 1; min-width: 0; }

/* Planning */
.demo-planning-tabs { margin-bottom: 16px; }
.demo-poll { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.demo-poll-option { display: flex; flex-direction: column; gap: 8px; }
.demo-poll-option > strong { color: var(--text-h); font-size: 14px; }
.demo-poll-members { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.demo-poll-members li { display: flex; justify-content: space-between; align-items: center; }
.demo-status-oui { display: inline-flex; color: #86efac; }
.demo-status-non { display: inline-flex; color: #fca5a5; }
.demo-status-peut_etre { display: inline-flex; color: #fcd34d; }
.demo-poll-picker { display: flex; gap: 6px; }
.demo-poll-picker input { flex: 1; min-width: 0; }

/* Agenda */
.demo-agenda-bar { margin-bottom: 8px; }
.demo-help { margin-bottom: 8px !important; }
.demo-month { margin: 10px 0 8px !important; color: var(--text-h); font-weight: 600; }
.demo-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.demo-weekday { padding: 2px 0 4px; font-size: 12px; text-align: center; }
.demo-day { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 74px; padding: 4px; border: 1px solid transparent; border-radius: 8px; background: var(--code-bg); color: var(--text-h); text-align: left; }
.demo-day:hover { border-color: var(--border); }
.demo-day-outside { opacity: 0.4; }
.demo-day-today { border-color: var(--accent); }
.demo-day-num { font-size: 12px; font-weight: 600; }
.demo-day-event { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11px; }
.demo-day-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-dot-type { width: 6px; height: 6px; flex: none; border-radius: 50%; }
.demo-dot-concert { background: #fca5a5; }
.demo-dot-repetition { background: #93c5fd; }
.demo-dot-autre { background: #86efac; }
.demo-day-dots { display: none; gap: 3px; }

/* Chat */
.demo-chat { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 0 22px 16px; }
.demo-channels { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; }
.demo-chat-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3px; padding: 6px 2px; overflow-y: auto; }
.demo-chat-day { align-self: center; margin: 8px 0; color: var(--text); font-size: 12px; font-weight: 600; }
.demo-msg { display: flex; flex-direction: column; align-items: flex-start; margin-top: 8px; }
.demo-msg-grouped { margin-top: 0; }
.demo-msg-me { align-items: flex-end; }
.demo-msg-name { margin: 0 0 2px 10px; color: var(--text); font-size: 12px; font-weight: 600; }
.demo-msg-line { display: flex; align-items: center; gap: 4px; max-width: 82%; }
.demo-msg-me .demo-msg-line { flex-direction: row-reverse; }
.demo-bubble { min-width: 0; padding: 7px 11px; border-radius: 16px; background: var(--code-bg); color: var(--text-h); font-size: 15px; overflow-wrap: anywhere; }
.demo-msg-me .demo-bubble { background: var(--demo-violet); color: #fff; }
.demo-bubble-time { display: block; margin-top: 1px; font-size: 11px; opacity: 0.7; text-align: right; }
.demo-bubble-img { display: block; margin: 0 0 4px; padding: 0; border: none; background: none; }
.demo-bubble-img img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; }
.demo-msg-tools { flex: none; display: flex; gap: 2px; }
.demo-msg-tool { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none; border-radius: 50%; background: none; color: var(--text); }
.demo-msg-tool:hover { background: var(--demo-ctl); color: var(--text-h); }
.demo-chips, .demo-picker { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.demo-chip { min-height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 15px; background: var(--code-bg); color: var(--text-h); font-size: 13px; }
.demo-chip-on { border-color: var(--accent); }
.demo-chat-preview { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.demo-chat-preview img { max-height: 64px; border-radius: 8px; }
.demo-composer { flex: none; display: flex; align-items: center; gap: 6px; padding-top: 8px; }
.demo-composer input { flex: 1; min-width: 0; border-radius: 21px; }
.demo-send { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: var(--demo-violet); color: #fff; }
.demo-viewer { display: block; max-width: 100%; max-height: 74vh; margin: 0 auto; border-radius: 10px; }

/* Riff Lab */
.demo-riff-form { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 18px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; }
.demo-riff-form > input { width: 100%; }
.demo-riffs { display: flex; flex-direction: column; gap: 10px; }
.demo-vote { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: none; border-radius: 20px; background: var(--demo-ctl); color: var(--text-h); font-weight: 600; }
.demo-vote-on { background: var(--demo-violet); color: #fff; }
.demo-meter { height: 6px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.demo-meter span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #9333ea, #c084fc); }
.demo-riff-foot { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.demo-comments { display: flex; flex-direction: column; gap: 8px; }
.demo-comments ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.demo-comments strong { color: var(--text-h); }
.demo-inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.demo-comments .demo-inline-form { margin-bottom: 0; }
.demo-inline-form input { flex: 1 1 200px; min-width: 0; }

/* Fenêtres */
.demo-modal { width: min(500px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); box-sizing: border-box; padding: 18px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; }
.demo-modal::backdrop { background: rgba(0, 0, 0, 0.62); }
.demo-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.demo-modal-head h3 { margin: 0; font-size: 18px; }
.demo-modal-close { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: var(--demo-ctl); color: var(--text-h); }
.demo-modal h4 { margin: 0 0 8px; font-size: 15px; }
.demo-form { display: flex; flex-direction: column; gap: 12px; }
.demo-form section { display: flex; flex-direction: column; gap: 6px; }
.demo-field { display: flex; flex-direction: column; gap: 5px; color: var(--text); font-size: 14px; }
.demo-field[hidden] { display: none; }
.demo-field input, .demo-field select, .demo-field textarea { width: 100%; }
.demo-form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-form-row .demo-field { flex: 1 1 110px; min-width: 0; }
.demo-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.demo-settings-name { display: flex; align-items: flex-end; gap: 8px; }
.demo-settings-name .demo-field { flex: 1; min-width: 0; }
.demo-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-settings-head h4 { margin: 0; }
.demo-link-list, .demo-members { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.demo-link-list li, .demo-members li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.demo-members li { color: var(--text-h); }
.demo-bell-section { margin-bottom: 12px; }
.demo-bell-row { display: block; width: 100%; min-height: 42px; margin-bottom: 4px; padding: 8px 12px; border: none; border-radius: 10px; background: var(--code-bg); color: var(--text-h); font-size: 14px; text-align: left; }
.demo-bell-row:hover { background: var(--demo-ctl-hover); }
.demo-toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 10px 16px; transform: translateX(-50%); border-radius: 10px; background: #fff; color: #16171d; font-family: var(--sans); font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }

/* Mode scène */
.demo-stage { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #000; color: #fff; font-family: var(--sans); }
.demo-stage button { font: inherit; font-weight: 600; color: #fff; cursor: pointer; border: 1px solid transparent; border-radius: 12px; background: rgba(255, 255, 255, 0.14); }
.demo-stage button:disabled { cursor: default; opacity: 0.4; }
.demo-stage-top { flex: none; display: flex; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 4px; }
.demo-stage .demo-stage-close { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; }
.demo-stage-title { flex: 1; min-width: 0; text-align: center; }
.demo-stage-title h2 { margin: 0; overflow: hidden; color: #fff; font-size: clamp(19px, 3vw, 28px); text-overflow: ellipsis; white-space: nowrap; }
.demo-stage-title p { margin: 0; overflow: hidden; font-size: 13px; opacity: 0.75; text-overflow: ellipsis; white-space: nowrap; }
.demo-stage .demo-stage-settings { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.demo-stage .demo-stage-on { background: #fff; color: #000; }
.demo-stage-panel { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.demo-stage-panel[hidden] { display: none; }
.demo-stage-panel p { margin: 0; font-size: 13px; opacity: 0.75; text-align: center; }
.demo-stage-group, .demo-stage-views { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.demo-stage-group span { font-size: 14px; opacity: 0.75; }
.demo-stage-panel button { min-width: 44px; min-height: 40px; padding: 8px 12px; border-radius: 10px; }
.demo-stage-note { flex: none; margin: 2px 12px 0; padding: 6px 10px; border-radius: 8px; background: rgba(192, 132, 252, 0.2); color: #e9d5ff; font-size: 14px; text-align: center; }
.demo-stage-note[hidden] { display: none; }
.demo-metro { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; }
.demo-metro button { min-width: 40px; min-height: 40px; padding: 4px 10px; border-radius: 10px; }
.demo-stage .demo-metro .demo-metro-start { font-size: 14px; }
.demo-metro-bpm { min-width: 66px; font-size: 14px; font-variant-numeric: tabular-nums; text-align: center; }
.demo-lamps { display: flex; gap: 5px; }
.demo-lamp { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.demo-lamp-on { background: #c084fc; }
.demo-stage-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 16px; }
.demo-stage-text { max-width: 900px; margin: 0 auto; font-family: inherit; line-height: 1.45; white-space: pre-wrap; }
.demo-stage-nav { flex: none; display: flex; gap: 8px; padding: 6px 12px calc(10px + env(safe-area-inset-bottom)); }
.demo-stage .demo-stage-nav button { flex: 1; min-width: 0; min-height: 48px; padding: 6px 4px; font-size: 15px; }
.demo-stage .demo-stage-nav .demo-stage-next { background: #fff; color: #000; }
.demo-stage .demo-stage-nav .demo-stage-running { background: rgba(255, 255, 255, 0.32); }

/* Accords en mode scène. */
.demo-sheet-line { display: block; }
.demo-sheet-pair { break-inside: avoid; }
.demo-sheet-chunk { display: inline-block; }
.demo-sheet-chord { display: block; padding-right: 0.3em; color: #c084fc; font-size: 0.82em; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.demo-sheet-roomy { width: 0; }
.demo-sheet-word { display: block; }
.demo-sheet-inline { color: #c084fc; font-weight: 700; }
.demo-transpose { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 2px 12px; }
.demo-transpose[hidden] { display: none; }
.demo-transpose span { font-size: 14px; opacity: 0.8; }
.demo-stage .demo-transpose button { min-width: 44px; min-height: 40px; padding: 4px 10px; border-radius: 10px; }
.demo-mono { font-family: ui-monospace, Menlo, Consolas, monospace !important; }

/* Caisse. */
.demo-cash-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--code-bg); }
.demo-cash-stat strong { color: var(--text-h); font-size: clamp(17px, 4vw, 22px); font-variant-numeric: tabular-nums; }
.demo-cash-main { margin-bottom: 8px; }
.demo-cash-main strong { font-size: clamp(26px, 7vw, 34px); }
.demo-cash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.demo-cash-stat strong.demo-cash-income, .demo-cash-amount.demo-cash-income { color: #86efac; }
.demo-cash-stat strong.demo-cash-expense, .demo-cash-amount.demo-cash-expense { color: #fca5a5; }
.demo-cash-upcoming { margin-bottom: 12px !important; }
.demo-cash-owed { margin-bottom: 14px; }
.demo-cash-owed h3 { margin: 0; font-size: 16px; }
.demo-cash-debt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-h); }
.demo-cash-row { align-items: center; }
.demo-cash-row > div { flex: 1; overflow-wrap: anywhere; }
.demo-cash-amount { flex: none; color: var(--text-h); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-cash-list { margin-bottom: 16px; }
.demo-cash-note { margin-top: 16px !important; }
.demo-cash-error { margin: 0; color: #fca5a5; font-size: 14px; }
.demo-cash-error[hidden] { display: none; }
.demo-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.demo-modal .demo-check input { width: 18px; height: 18px; min-height: 0; padding: 0; }

@media (max-width: 820px) {
  .demo-app { display: block; height: auto; }
  .demo-side { display: none; }
  .demo-page { display: block; }
  .demo-top { justify-content: space-between; padding: 8px 10px 4px 14px; }
  .demo-top-band { display: inline-flex; flex: 1; }
  .demo-reset-top { display: inline-block; padding: 0 4px; font-size: 12px; }
  .demo-content { display: block; }
  .demo-main { padding: 6px 14px 18px; overflow: visible; }
  .demo-status { display: none; }
  .demo-content-open .demo-main { display: none; }
  .demo-detail { width: auto; padding: 4px 14px 18px; overflow: visible; border-left: none; }
  .demo-back { display: inline-flex; }
  .demo-cols { display: block; }
  .demo-col-inactive { display: none; }
  .demo-setlist-tabs { display: flex; }
  .demo-bottom {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    background: var(--bg);
  }
  .demo-bottom-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 54px; padding: 4px 1px; border: none; background: none; color: var(--text); font-size: 10px; }
  .demo-bottom-link > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .demo-bottom-active { color: var(--text-h); font-weight: 600; }
  .demo-chat { height: calc(100vh - 204px); height: calc(100dvh - 204px); min-height: 320px; padding: 2px 12px 10px; box-sizing: border-box; }
  .demo-day { min-height: 54px; padding: 3px; }
  .demo-day-event { display: none; }
  .demo-day-dots { display: flex; margin-top: auto; }
  .demo-msg-tools { flex-direction: column; }
  .demo-app input, .demo-app select, .demo-modal input, .demo-modal select, .demo-modal textarea { font-size: 16px; }
  .demo-toolbar select { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .demo-row-static { gap: 4px; padding: 6px 8px; }
  .demo-row-static .demo-tool { width: 36px; }
  .demo-row-open { gap: 4px; }
}
