/* The demo screens (demo.html). Builds on app.css. */
body.demo { min-height: 100vh; }
.demo-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ocean-deep); position: sticky; top: 0; z-index: 5; }
.demo-top img { width: 54px; height: auto; flex-shrink: 0; }
.demo-where { flex: 1; min-width: 0; }
.demo-where b, .demo-where small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-where b { font: 600 18px/1.2 'Playfair Display', Georgia, serif; }
.demo-where small { color: var(--muted); font-size: 14px; }
.demo-band { margin: 0; padding: 6px 16px; background: var(--gold); color: var(--night); font-size: 13px; font-weight: 600; text-align: center; }
.demo-main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
body[data-view="guest"] .demo-main, body[data-view="choose"] .demo-main { max-width: 560px; }
.demo-main:focus { outline: none; }

.demo-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.demo-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.demo-person, .demo-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 56px; padding: 10px 12px; background: var(--night); border: 1px solid var(--ocean); border-radius: 10px; font-weight: 400; }
.demo-person b, .demo-item b { font-weight: 600; overflow-wrap: anywhere; }
.demo-person span, .demo-item span { color: var(--muted); font-size: 14px; }
.demo-person[aria-pressed="true"], .demo-item[aria-pressed="true"] { border-color: var(--gold); background: var(--ocean); }
.demo-person:disabled { opacity: 0.45; cursor: not-allowed; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
#d-send .primary { margin-top: 4px; }

.demo-gift { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; background: var(--night); border-radius: 10px; }
.demo-gift + .demo-gift { margin-top: 8px; }
.demo-msg { margin: 6px 0 0; font-style: italic; color: var(--mist); }
.demo-acts { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.demo-acts button { flex: 1 1 140px; }
.demo-steps { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.demo-steps time { color: var(--mist); margin-right: 4px; }
.demo-switch { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
.demo-switch input { width: 22px; height: 22px; min-height: 0; }

.demo-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.demo-bed { font-size: 22px; font-weight: 600; color: var(--gold-light); }
.demo-kpis .card { gap: 4px; }
.demo-flash { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); }

/* Staff page: the demo list */
.demo-list { display: flex; flex-direction: column; gap: 16px; }
.demo-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: start; }
.demo-card .qr { width: 140px; height: 140px; padding: 8px; }
.demo-links { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 900px) { .demo-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .grid.cols-4.demo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .demo-kpis .card { padding: 12px 14px; }
  .demo-kpis .stat { font-size: 24px; }
  .demo-card { grid-template-columns: minmax(0, 1fr); }
  .demo-card .qr { justify-self: center; }
}
