/* ───────────────────────────────────────────────────────────────────────────
   Homepage demo stage: the CMS modules as small working apps.
   Two worlds inside one frame: the guest side (light, the client's own site)
   and the owner side (dark, the admin). Everything derives from the tokens
   in style.css; only the in-app demo palettes are defined here.
   ─────────────────────────────────────────────────────────────────────────── */

.demo { padding-top: clamp(24px, 4vw, 48px); }
.badge-live {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--bone);
  display: inline-flex; align-items: center; gap: 7px;
}
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #6fc38a; box-shadow: 0 0 0 3px rgba(111, 195, 138, 0.25); }

.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 40px; margin-bottom: 30px; }
.demo-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5.4vw, 68px); line-height: 0.94; letter-spacing: -0.04em; margin: 0; }
.demo-head p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 440px; margin: 0; }

/* Shell: tab rail + stage */
.demo-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.demo-tabs { display: flex; flex-direction: column; gap: 6px; }
.demo-tab {
  appearance: none; text-align: left; cursor: pointer;
  display: grid; gap: 4px; padding: 14px 16px 14px 18px;
  background: transparent; border: 1px solid transparent; border-radius: 14px;
  color: var(--ink); position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.demo-tab:hover { background: rgba(255, 253, 247, 0.6); }
.demo-tab.active { background: var(--card); border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(34, 29, 20, 0.5); }
.demo-tab.active::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--accent); }
.demo-tab-side { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.demo-tab-side.owner { color: var(--faint); }
.demo-tab-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; }
.demo-tab-desc { font-size: 13px; line-height: 1.45; color: var(--muted); display: none; }
.demo-tab.active .demo-tab-desc { display: block; }

/* Stage = a browser window */
.demo-stage {
  min-width: 0; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(34, 29, 20, 0.55);
}
.demo-chrome { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; background: var(--bone); border-bottom: 1px solid var(--line-soft); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(34, 29, 20, 0.14); }
.demo-url { flex: 1; min-width: 0; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: rgba(255, 253, 247, 0.9); border: 1px solid var(--line-soft); border-radius: 8px; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tier { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--accent-text); white-space: nowrap; }
.demo-screen { position: relative; height: 640px; overflow: auto; overflow-x: hidden; background: var(--bone); scrollbar-width: thin; }
.demo-screen.is-owner { background: var(--dark); color: var(--cream); }
.demo-noscript { padding: 40px; color: var(--muted); }
.demo-panel { position: relative; animation: demo-in 0.28s ease both; min-height: 100%; }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.demo-foot { margin: 22px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.demo-foot-label { display: inline-block; margin-right: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent-text); }

/* Toast (shared) */
.dm-toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 8px); opacity: 0; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bone); font-size: 13px; font-weight: 600; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 5; }
.dm-toast.show { opacity: 1; transform: translate(-50%, 0); }
.is-owner .dm-toast { background: var(--amber); color: var(--dark); }

/* ── Guest side: the client's fake site chrome ────────────────────────── */
.gs { --gs-ink: #221d14; --gs-muted: #6e6553; --gs-line: rgba(34, 29, 20, 0.1); --gs-card: #fffdf7; --gs-accent: #a8632f;
      color: var(--gs-ink); font-family: var(--font-body); }
.gs-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; border-bottom: 1px solid var(--gs-line); font-size: 13px; color: var(--gs-muted); }
.gs-brand { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; color: var(--gs-ink); }
.gs-nav-links { display: flex; gap: 18px; }
.gs-nav-links .on { color: var(--gs-ink); font-weight: 600; }
.gs-body { padding: 22px 28px 26px; }
.gs-title { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; margin: 0 0 3px; }
.gs-sub { margin: 0 0 16px; color: var(--gs-muted); font-size: 13.5px; }

/* Booking wizard */
.bw { max-width: 560px; margin: 0 auto; }
.bw-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-height: 30px; }
.bw-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--gs-card); border: 1px solid var(--gs-line); font-size: 12.5px; cursor: pointer; }
.bw-pill b { font-weight: 700; }
.bw-pill i { font-style: normal; color: var(--gs-accent); font-family: var(--font-mono); font-size: 11px; }
.bw-card { background: var(--gs-card); border: 1px solid var(--gs-line); border-radius: 16px; padding: 20px 22px; }
.bw-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.bw-steps span { flex: 1; height: 3px; border-radius: 3px; background: rgba(34, 29, 20, 0.1); }
.bw-steps span.done { background: var(--gs-accent); }
.bw-q { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin: 0 0 12px; }
.bw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bw-opt { appearance: none; cursor: pointer; padding: 14px 6px; border-radius: 10px; border: 1px solid var(--gs-line); background: #fff; font: inherit; font-weight: 600; font-size: 15px; color: var(--gs-ink); transition: border-color 0.12s ease, background 0.12s ease; }
.bw-opt:hover { border-color: var(--gs-accent); }
.bw-opt.sel { background: var(--gs-accent); color: #fff; border-color: var(--gs-accent); }
.bw-opt:disabled { opacity: 0.35; cursor: not-allowed; }
.bw-opt small { display: block; font-weight: 400; font-size: 10.5px; opacity: 0.7; margin-top: 2px; }
.bw-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 700; }
.bw-cal-head button { appearance: none; border: 1px solid var(--gs-line); background: #fff; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font: inherit; }
.bw-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bw-cal .dow { text-align: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--gs-muted); padding: 4px 0; }
.bw-cal .bw-opt { padding: 7px 0; font-size: 13px; position: relative; }
.bw-cal .bw-opt.ev::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gs-accent); }
.bw-cal .bw-opt.sel.ev::after { background: #fff; }
.bw-note { margin: 10px 0 0; font-size: 12px; color: var(--gs-muted); }
.bw-slots { grid-template-columns: repeat(4, 1fr); }
.bw-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.bw-form label { display: grid; gap: 4px; font-size: 12px; color: var(--gs-muted); }
.bw-form label.full { grid-column: 1 / -1; }
.bw-form input, .bw-form textarea { font: inherit; font-size: 13.5px; padding: 9px 11px; border: 1px solid rgba(34, 29, 20, 0.2); border-radius: 8px; background: #fff; color: var(--gs-ink); }
.bw-form input:focus, .bw-form textarea:focus { outline: 2px solid var(--gs-accent); outline-offset: 1px; border-color: transparent; }
.bw-seg { display: flex; gap: 8px; }
.bw-seg .bw-opt { flex: 1; padding: 10px; font-size: 13.5px; }
.bw-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 10px; }
.bw-back { appearance: none; background: none; border: none; font: inherit; font-size: 13.5px; color: var(--gs-muted); cursor: pointer; padding: 8px 0; }
.bw-next { appearance: none; border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px; padding: 12px 20px; border-radius: 10px; background: var(--gs-ink); color: #f3ead8; transition: background 0.12s ease; }
.bw-next:hover { background: #3a3120; }
.bw-next:disabled { opacity: 0.4; cursor: not-allowed; }
.bw-done { text-align: center; padding: 10px 0; }
.bw-check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #dff1e3; color: #2f7a46; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.bw-done h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; }
.bw-done p { margin: 0 0 12px; color: var(--gs-muted); font-size: 14px; line-height: 1.5; }
.bw-ticket { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; padding: 8px 14px; border: 1px dashed rgba(34, 29, 20, 0.3); border-radius: 8px; margin-bottom: 18px; }
.bw-mail { text-align: left; background: #fff; border: 1px solid var(--gs-line); border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.5; margin: 0 auto 16px; max-width: 420px; }
.bw-mail .from { font-family: var(--font-mono); font-size: 11px; color: var(--gs-muted); margin-bottom: 6px; }
.bw-mail a { color: var(--gs-accent); text-decoration: underline; }

/* Menu: phone + QR tent, side by side */
.mn { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 34px; align-items: start; padding: 28px; }
.phone { width: 300px; background: #0f0d0a; border-radius: 40px; padding: 12px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.phone-screen { --pm-bg: #1c1712; --pm-ink: #f0e8d8; --pm-dim: rgba(240, 232, 216, 0.6); --pm-line: rgba(240, 232, 216, 0.1); --pm-amber: #d8a05a;
  background: var(--pm-bg); color: var(--pm-ink); border-radius: 30px; height: 552px; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; position: relative; }
.pm-top { display: flex; align-items: center; justify-content: space-between; padding: 26px 18px 10px; }
.pm-brand { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.pm-brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; color: var(--pm-dim); letter-spacing: 0.06em; margin-top: 2px; }
.pm-lang { display: inline-flex; border: 1px solid var(--pm-line); border-radius: 999px; overflow: hidden; }
.pm-lang button { appearance: none; border: none; background: none; color: var(--pm-dim); font: inherit; font-family: var(--font-mono); font-size: 10.5px; padding: 5px 9px; cursor: pointer; }
.pm-lang button.on { background: var(--pm-amber); color: #1c1712; font-weight: 700; }
.pm-nav { display: flex; gap: 6px; padding: 8px 18px 10px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--pm-line); position: sticky; top: 0; background: var(--pm-bg); z-index: 1; }
.pm-nav::-webkit-scrollbar { display: none; }
.pm-nav button { appearance: none; flex-shrink: 0; border: 1px solid var(--pm-line); background: none; color: var(--pm-dim); font: inherit; font-size: 11.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.pm-nav button.on { color: var(--pm-ink); border-color: var(--pm-amber); }
.pm-scroll { overflow: auto; flex: 1; padding: 0 18px 20px; scrollbar-width: none; }
.pm-scroll::-webkit-scrollbar { display: none; }
.pm-special { margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(216, 160, 90, 0.22), rgba(216, 160, 90, 0.08)); border: 1px solid rgba(216, 160, 90, 0.35); }
.pm-special .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; color: var(--pm-amber); }
.pm-special .n { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin: 3px 0 2px; }
.pm-special .d { color: var(--pm-dim); font-size: 11.5px; }
.pm-cat { padding-top: 16px; }
.pm-cat h4 { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pm-amber); margin: 0 0 8px; }
.pm-cat h4 small { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--pm-dim); font-size: 10.5px; margin-left: 6px; }
.pm-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--pm-line); }
.pm-item .n { font-weight: 600; font-size: 13px; }
.pm-item .p { font-family: var(--font-mono); font-size: 12px; color: var(--pm-amber); }
.pm-item .d { grid-column: 1 / -1; color: var(--pm-dim); font-size: 11.5px; line-height: 1.4; }
.pm-item .a { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 9.5px; color: rgba(240, 232, 216, 0.4); letter-spacing: 0.04em; }
.pm-home { position: absolute; left: 50%; bottom: 8px; width: 90px; height: 4px; margin-left: -45px; border-radius: 4px; background: rgba(240, 232, 216, 0.3); }

.mn-side { padding-top: 6px; }
.mn-side h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; margin: 0 0 8px; }
.mn-side p { color: var(--gs-muted); font-size: 14px; line-height: 1.55; margin: 0 0 18px; max-width: 380px; }
.qr-tent { display: inline-grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 20px 16px 16px; background: #fff; border: 1px solid var(--gs-line); border-radius: 14px; box-shadow: 0 16px 40px -28px rgba(34, 29, 20, 0.5); }
.qr-tent svg { width: 104px; height: 104px; color: var(--gs-ink); shape-rendering: crispEdges; }
.qr-tent .t1 { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.qr-tent .t2 { font-size: 12px; color: var(--gs-muted); margin-top: 3px; }
.qr-tent .t3 { font-family: var(--font-mono); font-size: 10.5px; color: var(--gs-accent); margin-top: 8px; letter-spacing: 0.04em; }
.mn-facts { display: grid; gap: 10px; margin-top: 22px; }
.mn-fact { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.45; color: var(--gs-muted); }
.mn-fact b { color: var(--gs-ink); font-weight: 600; }
.mn-fact i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; background: var(--gs-card); border: 1px solid var(--gs-line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--gs-accent); }
.mn-print { margin-top: 20px; display: inline-flex; align-items: center; gap: 12px; }
.mn-sheet { width: 44px; height: 60px; background: #fff; border: 1px solid var(--gs-line); border-radius: 3px; padding: 6px 5px; display: grid; gap: 3px; align-content: start; }
.mn-sheet i { display: block; height: 2px; background: rgba(34, 29, 20, 0.18); border-radius: 2px; }
.mn-sheet i:first-child { width: 60%; height: 3px; background: var(--gs-accent); margin-bottom: 2px; }
.mn-print span { font-size: 12.5px; color: var(--gs-muted); max-width: 200px; line-height: 1.4; }

/* Events */
.ev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ev-tabs { display: inline-flex; border: 1px solid var(--gs-line); border-radius: 999px; overflow: hidden; background: var(--gs-card); }
.ev-tabs button { appearance: none; border: none; background: none; font: inherit; font-size: 12.5px; padding: 7px 14px; cursor: pointer; color: var(--gs-muted); }
.ev-tabs button.on { background: var(--gs-ink); color: #f3ead8; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ev-grid.list { grid-template-columns: 1fr; }
.ev-card { appearance: none; text-align: left; font: inherit; cursor: pointer; display: grid; background: var(--gs-card); border: 1px solid var(--gs-line); border-radius: 14px; overflow: hidden; color: var(--gs-ink); transition: transform 0.15s ease, box-shadow 0.15s ease; padding: 0; }
.ev-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(34, 29, 20, 0.5); }
.ev-cover { height: 96px; position: relative; display: flex; align-items: flex-end; padding: 10px; color: #fff; }
.ev-cover.h1 { background: linear-gradient(135deg, #7a4a2b, #c07a45); }
.ev-cover.h2 { background: linear-gradient(135deg, #2f4a3a, #6d9a7c); }
.ev-cover.h3 { background: linear-gradient(135deg, #3b3550, #7d6fa3); }
.ev-cover.h4 { background: linear-gradient(135deg, #5a2f2f, #a85c4a); }
.ev-cover.h5 { background: linear-gradient(135deg, #2b4a5c, #5d90a8); }
.ev-cover.h6 { background: linear-gradient(135deg, #5c4a1e, #b8963f); }
.ev-date { position: absolute; top: 10px; left: 10px; background: rgba(255, 253, 247, 0.96); color: var(--gs-ink); border-radius: 8px; padding: 5px 8px; text-align: center; line-height: 1; }
.ev-date b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.ev-date small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.ev-src { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.05em; padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); }
.ev-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.ev-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gs-accent); }
.ev-name { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.015em; line-height: 1.2; }
.ev-meta { font-size: 12px; color: var(--gs-muted); }
.ev-flags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ev-flag { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--gs-line); color: var(--gs-muted); }
.ev-flag.book { border-color: rgba(168, 99, 47, 0.4); color: var(--gs-accent); font-weight: 600; }
.ev-grid.list .ev-card { grid-template-columns: 110px 1fr; }
.ev-grid.list .ev-cover { height: 100%; min-height: 86px; }
.ev-modal { position: absolute; inset: 0; background: rgba(34, 29, 20, 0.45); padding: 20px; z-index: 4; animation: demo-in 0.2s ease both; }
.ev-dialog { position: sticky; top: 40px; margin: 40px auto 0; width: min(440px, 100%); background: var(--gs-card); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
.ev-dialog .ev-cover { height: 120px; }
.ev-dialog .close { position: absolute; top: 10px; right: 10px; appearance: none; border: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 253, 247, 0.92); cursor: pointer; font-size: 16px; }
.ev-dbody { padding: 18px 20px 20px; }
.ev-dbody h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin: 4px 0 6px; }
.ev-dbody p { font-size: 13.5px; line-height: 1.55; color: var(--gs-muted); margin: 8px 0 14px; }
.ev-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-acts button { appearance: none; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 9px; border: 1px solid rgba(34, 29, 20, 0.2); background: #fff; cursor: pointer; color: var(--gs-ink); }
.ev-acts button.pri { background: var(--gs-accent); border-color: var(--gs-accent); color: #fff; }

/* ── Owner side: admin ──────────────────────────────────────────────────── */
.ad { --ad-bg: #241b12; --ad-panel: #2d241a; --ad-line: rgba(240, 232, 216, 0.1); --ad-ink: #f0e8d8; --ad-dim: rgba(240, 232, 216, 0.55); --ad-amber: #d8a05a;
      color: var(--ad-ink); min-height: 100%; display: grid; grid-template-rows: auto 1fr; font-size: 13px; }
.ad-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 18px; border-bottom: 1px solid var(--ad-line); }
.ad-brand { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: -0.01em; }
.ad-brand small { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; color: var(--ad-dim); margin-left: 8px; letter-spacing: 0.06em; }
.ad-tabs { display: inline-flex; margin-left: auto; border: 1px solid var(--ad-line); border-radius: 999px; overflow: hidden; }
.ad-tabs button { appearance: none; border: none; background: none; color: var(--ad-dim); font: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer; }
.ad-tabs button.on { background: var(--ad-amber); color: var(--ad-bg); font-weight: 700; }
.ad-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--ad-dim); }
.ad-main { display: grid; grid-template-columns: minmax(0, 1fr) 260px; min-height: 0; }
.ad-main.no-drawer { grid-template-columns: 1fr; }
.ad-content { padding: 16px 18px; min-width: 0; }
.ad-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.ad-stat { padding: 10px 12px; border-radius: 10px; background: var(--ad-panel); border: 1px solid var(--ad-line); }
.ad-stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; }
.ad-stat span { font-size: 11px; color: var(--ad-dim); }
.ad-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ad-tbl { appearance: none; font: inherit; text-align: left; cursor: pointer; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--ad-line); background: var(--ad-panel); color: var(--ad-ink); display: grid; gap: 3px; transition: border-color 0.12s ease; }
.ad-tbl:hover { border-color: rgba(216, 160, 90, 0.5); }
.ad-tbl.sel { border-color: var(--ad-amber); box-shadow: 0 0 0 1px var(--ad-amber); }
.ad-tbl.round { border-radius: 22px; }
.ad-tbl .t { font-family: var(--font-mono); font-size: 10.5px; color: var(--ad-dim); }
.ad-tbl .g { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-tbl .m { font-size: 11px; color: var(--ad-dim); }
.ad-tbl.free { background: transparent; border-style: dashed; }
.ad-tbl.free .g { color: var(--ad-dim); font-weight: 500; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.venter    { background: rgba(216, 160, 90, 0.18); color: #e6b56f; }
.st.bekreftet { background: rgba(111, 195, 138, 0.16); color: #8fd4a4; }
.st.ankommet  { background: rgba(93, 144, 168, 0.22); color: #9ccbe0; }
.st.mat       { background: rgba(125, 111, 163, 0.25); color: #c2b6e0; }
.st.regning   { background: rgba(240, 232, 216, 0.14); color: #f0e8d8; }
.st.fullfort  { background: rgba(240, 232, 216, 0.08); color: rgba(240, 232, 216, 0.55); }
.st.noshow    { background: rgba(214, 120, 110, 0.18); color: #f0a49b; }
.ad-list { display: grid; gap: 6px; }
.ad-row { appearance: none; font: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ad-line); background: var(--ad-panel); color: var(--ad-ink); }
.ad-row.sel { border-color: var(--ad-amber); }
.ad-row .time { font-family: var(--font-mono); font-size: 13px; }
.ad-row .who b { font-weight: 700; }
.ad-row .who span { color: var(--ad-dim); font-size: 12px; margin-left: 8px; }
.ad-drawer { border-left: 1px solid var(--ad-line); padding: 16px; display: flex; flex-direction: column; gap: 14px; background: rgba(0, 0, 0, 0.12); animation: demo-in 0.2s ease both; }
.ad-drawer h4 { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; margin: 0; }
.ad-drawer .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ad-dim); }
.ad-drawer .v { font-size: 13px; margin-top: 3px; }
.ad-drawer .v a { color: var(--ad-amber); }
.ad-flow { display: grid; gap: 6px; }
.ad-flow div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ad-dim); }
.ad-flow div::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ad-dim); }
.ad-flow div.done { color: var(--ad-ink); }
.ad-flow div.done::before { background: var(--ad-amber); border-color: var(--ad-amber); }
.ad-advance { appearance: none; border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 13.5px; padding: 11px 14px; border-radius: 9px; background: var(--ad-amber); color: var(--ad-bg); margin-top: auto; }
.ad-advance:disabled { opacity: 0.45; cursor: default; }
.ad-ghost { appearance: none; cursor: pointer; font: inherit; font-size: 12.5px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--ad-line); background: none; color: var(--ad-dim); }
.ad-empty { color: var(--ad-dim); font-size: 12.5px; padding: 8px 0; }
.ad-hint { color: var(--ad-dim); font-size: 12px; margin: 0 0 12px; }

/* Edit-yourself: form + live preview */
.ed { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100%; }
.ed-form { padding: 16px 18px; border-right: 1px solid var(--ad-line); display: grid; gap: 10px; align-content: start; }
.ed-form h4 { font-family: var(--font-display); font-weight: 800; font-size: 16px; margin: 0; }
.ed-form label { display: grid; gap: 5px; font-size: 11.5px; color: var(--ad-dim); }
.ed-form input, .ed-form textarea { font: inherit; font-size: 13px; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--ad-line); background: rgba(240, 232, 216, 0.06); color: var(--ad-ink); resize: vertical; }
.ed-form input:focus, .ed-form textarea:focus { outline: 2px solid var(--ad-amber); outline-offset: 1px; }
.ed-swatches { display: flex; gap: 8px; }
.ed-swatches button { appearance: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.ed-swatches button.on { border-color: var(--ad-ink); }
.ed-save { appearance: none; border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 13.5px; padding: 11px; border-radius: 9px; background: var(--ad-amber); color: var(--ad-bg); }
.ed-prev { padding: 18px; display: grid; align-content: start; gap: 10px; }
.ed-prev .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ad-dim); display: flex; align-items: center; gap: 8px; }
.ed-prev .k::after { content: ""; flex: 1; height: 1px; background: var(--ad-line); }
.ed-site { --site-accent: #a8632f; background: #f3ead8; color: #221d14; border-radius: 14px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.2); font-family: var(--font-body); }
.ed-site .nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; font-size: 11px; color: #6e6553; border-bottom: 1px solid rgba(34, 29, 20, 0.1); }
.ed-site .nav b { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #221d14; }
.ed-site .nav i { font-style: normal; background: var(--site-accent); color: #fff; padding: 5px 10px; border-radius: 999px; font-weight: 600; }
.ed-site .hero { padding: 26px 18px 22px; }
.ed-site .hero h1 { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.035em; line-height: 0.95; margin: 0 0 10px; }
.ed-site .hero h1 span { color: var(--site-accent); }
.ed-site .hero p { font-size: 12.5px; line-height: 1.5; color: #6e6553; margin: 0 0 14px; max-width: 320px; }
.ed-site .hero .cta { display: inline-block; background: #221d14; color: #f3ead8; font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 8px; }
.ed-site .hours { display: flex; gap: 18px; padding: 12px 18px 16px; border-top: 1px solid rgba(34, 29, 20, 0.1); font-size: 11.5px; color: #6e6553; }
.ed-site .hours b { display: block; font-family: var(--font-display); font-size: 15px; color: #221d14; }
.ed-note { font-size: 12px; color: var(--ad-dim); line-height: 1.5; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .demo-shell { grid-template-columns: 1fr; }
  .demo-tabs { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; margin: 0 -4px; padding-inline: 4px; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tab { flex: 0 0 auto; min-width: 150px; padding: 12px 14px; }
  .demo-tab.active::before { display: none; }
  .demo-tab.active .demo-tab-desc { display: none; }
  .demo-screen { height: 580px; }
  .mn { grid-template-columns: 1fr; justify-items: center; padding: 22px 18px; }
  .mn-side { max-width: 380px; }
  .ad-main { grid-template-columns: 1fr; }
  .ad-drawer { border-left: none; border-top: 1px solid var(--ad-line); }
  .ed { grid-template-columns: 1fr; }
  .ed-form { border-right: none; border-bottom: 1px solid var(--ad-line); }
}
@media (max-width: 560px) {
  .gs-nav-links { display: none; }
  .gs-body { padding: 18px; }
  .bw-grid, .bw-slots { grid-template-columns: repeat(3, 1fr); }
  .bw-form { grid-template-columns: 1fr; }
  .ad-stats { grid-template-columns: repeat(2, 1fr); }
  .ad-brand small { display: none; }
  .ad-tabs { margin-left: 0; }
  .ad-tabs button { padding: 6px 10px; font-size: 11.5px; }
  .ad-content, .ad-drawer, .ed-form, .ed-prev { padding: 14px; }
  .demo-tier { display: none; }
  .phone { width: 270px; }
  .phone-screen { height: 500px; }
}
