/* Demo screens. Not the product's design system, just enough to judge the flows. */
:root {
  --bg: #f4f6f8; --surface: #ffffff; --soft: #eef2f4; --ink: #17222b; --muted: #5d6b76; --line: #dde3e8;
  --accent: #1b6f6a; --accent-ink: #ffffff;
  --st-pending: #b7791f; --st-confirmed: #2563eb; --st-arrived: #7c3aed; --st-progress: #0e7490;
  --st-completed: #15803d; --st-cancelled: #9ca3af; --st-noshow: #b42318;
  --wa: #25d366; --wa-dark: #075e54; --wa-bubble-out: #d9fdd3; --wa-bubble-in: #ffffff; --wa-bg: #efeae2;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1418; --surface: #151d23; --soft: #1b262e; --ink: #e7edf1; --muted: #9aa8b3; --line: #2a3640;
    --accent: #4fb8ae; --accent-ink: #06211f;
    --wa-bubble-out: #005c4b; --wa-bubble-in: #202c33; --wa-bg: #0b141a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--surface);
          border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.topbar .brand { font-weight: 700; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.topbar nav a.on { background: var(--soft); color: var(--ink); font-weight: 600; }
.demo-flag { margin-left: auto; font-size: .75rem; background: #fff4e5; color: #8a4b00; padding: 4px 8px;
             border-radius: 6px; border: 1px solid #f5c26b; }
main { padding: 20px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 1.35rem; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 16px; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 12px; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
select, input[type="date"] { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.live { font-size: .8rem; color: var(--muted); }
.live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
                background: var(--st-completed); margin-right: 6px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.stat b { display: block; font-size: 1.5rem; }
.stat span { color: var(--muted); font-size: .8rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
         color: #fff; white-space: nowrap; }
.src { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line);
       color: var(--muted); white-space: nowrap; }
.src.whatsapp { border-color: var(--wa); color: var(--wa-dark); background: #e9fbef; }
.empty { color: var(--muted); padding: 30px; text-align: center; }
.error { color: var(--st-noshow); }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hub a { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line);
         border-radius: 14px; padding: 18px; }
.hub a:hover { border-color: var(--accent); }
.hub h2 { margin: 0 0 6px; font-size: 1.05rem; }
.hub p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { main { padding: 12px 16px; } .demo-flag { margin-left: 0; } }

/* Staff app additions (T-044) */
.topbar .who { margin-left: auto; color: var(--muted); font-size: .88rem; }
.topbar .who b { color: var(--ink); font-weight: 600; }
.link-btn { border: 0; background: none; color: var(--accent); padding: 4px 6px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.field input, .field select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 12px; width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.security-note { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 16px; font-size: .9rem; background: var(--soft); border-bottom: 1px solid var(--line); }
.security-note span { flex: 1 1 320px; }
.security-note.strong { background: color-mix(in srgb, var(--st-noshow) 10%, var(--surface)); }
.notice { border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin: 10px 0; background: var(--soft); }
.notice.err { background: color-mix(in srgb, var(--st-noshow) 12%, transparent); color: var(--st-noshow); }
.fade-in { animation: fadeIn .25s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }

/* Reception booking dialog (T-087) */
dialog.sheet { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.sheet::backdrop { background: rgba(10, 20, 28, .45); }
dialog.sheet[open] { animation: fadeIn .2s ease both; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.sheet-head h2 { margin: 0; font-size: 1.1rem; }
dialog.sheet > p.sub, dialog.sheet > section, dialog.sheet > .chips, dialog.sheet > .field { margin-left: 20px; margin-right: 20px; }
dialog.sheet > p.sub { margin-top: 14px; }
dialog.sheet section { padding: 14px 0 4px; border-bottom: 1px solid var(--line); }
.sheet-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 20px; position: sticky; bottom: 0;
  background: var(--surface); border-top: 1px solid var(--line); }
.sheet-foot .error { margin: 0; flex-basis: 100%; }
.sheet-foot .error:empty { display: none; }
.sheet-foot .spacer { flex: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.seg { display: flex; gap: 8px; margin-bottom: 14px; }
.seg label { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: .9rem; }
.seg label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.seg input { accent-color: var(--accent); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.slots .sub { grid-column: 1 / -1; margin: 0 0 8px; }
.slots button.on, .found button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.found, .elsewhere { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.found button { width: 100%; text-align: left; display: grid; padding: 8px 12px; }
.found button span { color: var(--muted); font-size: .82rem; }
.found button.on span { color: inherit; }
.found .restricted, .elsewhere li { background: var(--soft); border-radius: 10px; padding: 8px 12px; font-size: .88rem; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chips button { border-radius: 999px; font-size: .88rem; }
button.danger { background: var(--st-noshow); border-color: var(--st-noshow); color: #fff; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

/* Messaging (T-079) */
[hidden] { display: none !important; }
.tell { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.tell input { accent-color: var(--accent); }
.msgs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.msgs li { background: var(--soft); border-radius: 10px; padding: 8px 10px; font-size: .85rem; }
.msgs li header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.msgs li details { margin-top: 4px; }
.msgs li details pre { white-space: pre-wrap; font: inherit; margin: 4px 0 0; }
.msgs .st { font-weight: 600; }
.msgs .st-failed, .msgs .st-cancelled { color: var(--st-noshow); }
.msgs .err { color: var(--st-noshow); margin-top: 2px; }
.email-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin: 0 0 12px; }
.preview { background: var(--soft); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; font-size: .9rem; margin: 0 0 12px; }
.note { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface); color: var(--ink); resize: vertical; }
