/* ==========================================================================
   STUDIO NAFAY CONCIERGE — OWNER-ONLY PREVIEW V2 (DEMO)
   All widget styles are scoped to #sn-concierge-v3-preview.
   Palette: #FFFFFF / #FCFCFC canvas, #E7E7E7 borders, #121212 text,
   #737373 secondary. No purple, no gold UI, no gradients.
   Fonts: Playfair Display variable (headings, 400–900) + Inter variable
   (body/controls). NOT Jost, NOT a condensed serif.
   Layout: bounded flex column — header fixed, transcript scrolls alone,
   composer fixed at the bottom. No absolute heights from stale layout
   viewport values; visualViewport handling lives in JS.
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: #FCFCFC;
  color: #121212;
  -webkit-font-smoothing: antialiased;
}
/* Lock page scroll while the widget panel is open (preview page only) */
body.sn-widget-open { overflow: hidden; }

/* ---------- Demo shell (owner chrome, NOT part of the widget) ---------- */
#sn-demo-shell {
  position: sticky; top: 0; z-index: 900;
  background: #121212; color: #fff;
  font-size: 12px; line-height: 1.4;
}
#sn-demo-shell .sn-demo-bar {
  max-width: 1440px; margin: 0 auto; padding: 8px 16px;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
#sn-demo-shell .sn-demo-badge { font-weight: 700; letter-spacing: .08em; font-size: 11px; color: #ffd9d9; }
#sn-demo-shell .sn-demo-title { font-weight: 600; letter-spacing: .04em; }
#sn-demo-shell .sn-demo-market { display: flex; align-items: center; gap: 6px; color: #bdbdbd; }
#sn-demo-shell .sn-demo-market select {
  font: inherit; background: #2a2a2a; color: #fff; border: 1px solid #4a4a4a;
  border-radius: 6px; padding: 4px 6px; cursor: pointer;
}
#sn-demo-shell .sn-demo-note { color: #8f8f8f; }
#sn-demo-shell .sn-demo-nav {
  max-width: 1440px; margin: 0 auto; padding: 0 16px 8px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
#sn-demo-shell .sn-demo-nav button {
  font: inherit; cursor: pointer;
  background: #2a2a2a; color: #fff; border: 1px solid #4a4a4a;
  border-radius: 6px; padding: 4px 10px;
}
#sn-demo-shell .sn-demo-nav button:hover { background: #3a3a3a; }
#sn-demo-shell .sn-demo-nav button.sn-active { background: #fff; color: #121212; border-color: #fff; }
#sn-demo-shell .sn-demo-specialist { color: #bdbdbd; margin-left: 8px; }
#sn-demo-shell .sn-demo-note2 { color: #8f8f8f; }

/* ---------- Simulated storefront backdrop (preview context only) ---------- */
.sn-storefront { max-width: 1100px; margin: 0 auto; padding: 28px 24px 120px; }
.sn-sf-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid #E7E7E7; padding-bottom: 14px;
}
.sn-sf-wordmark { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; letter-spacing: .28em; }
.sn-sf-nav { font-size: 13px; color: #737373; }
.sn-sf-hero { padding: 72px 0 40px; max-width: 640px; }
.sn-sf-kicker { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #737373; margin: 0 0 14px; }
.sn-sf-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 44px; line-height: 1.08; margin: 0 0 16px; }
.sn-sf-sub { font-size: 15px; line-height: 1.5; color: #737373; margin: 0 0 22px; }
.sn-sf-cta {
  display: inline-block; background: #121212; color: #fff;
  font-size: 13px; font-weight: 600; padding: 12px 22px; border-radius: 2px;
}
.sn-sf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sn-sf-card { border: 1px solid #E7E7E7; background: #fff; padding: 14px; }
.sn-sf-card i { display: block; height: 120px; background: #F2F2F2; margin-bottom: 10px; }
.sn-sf-card span { display: block; font-size: 13px; }
.sn-sf-card b { font-size: 13px; }
.sn-sf-foot { margin-top: 48px; font-size: 12px; color: #737373; }
@media (max-width: 640px) {
  .sn-sf-title { font-size: 30px; }
  .sn-sf-grid { grid-template-columns: 1fr 1fr; }
  .sn-sf-nav { display: none; }
  #sn-demo-shell .sn-demo-note { display: none; }
}

/* ==========================================================================
   WIDGET — everything below is scoped to #sn-concierge-v3-preview
   ========================================================================== */
#sn-concierge-v3-preview {
  --sn-bg: #FFFFFF;
  --sn-bg-soft: #FCFCFC;
  --sn-border: #E7E7E7;
  --sn-text: #121212;
  --sn-muted: #737373;
  --sn-bubble-ai: #F5F5F5;
  --sn-bubble-user: #EFEFEF;
  --sn-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sn-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--sn-sans);
  color: var(--sn-text);
  -webkit-font-smoothing: antialiased;
}
#sn-concierge-v3-preview button { font-family: var(--sn-sans); }
#sn-concierge-v3-preview [hidden] { display: none !important; }
#sn-concierge-v3-preview .sn-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Launcher: small circular black icon, thin white chat outline ---------- */
#sn-concierge-v3-preview .sn-launcher {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  background: #121212; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(18, 18, 18, .28);
  z-index: 1000; padding: 0;
}
#sn-concierge-v3-preview .sn-launcher svg { width: 26px; height: 26px; }
#sn-concierge-v3-preview .sn-launcher:hover { background: #000; }
#sn-concierge-v3-preview .sn-launcher:focus-visible { outline: 2px solid #121212; outline-offset: 3px; }
#sn-concierge-v3-preview[data-state="closed"] .sn-launcher { display: flex; }
#sn-concierge-v3-preview:not([data-state="closed"]) .sn-launcher { display: none; }

/* ---------- Panel shell: bounded flex column ---------- */
#sn-concierge-v3-preview .sn-panel {
  position: fixed; z-index: 1000;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 380px; max-width: calc(100vw - 24px);
  height: 680px; max-height: calc(100dvh - 110px);
  background: var(--sn-bg);
  border: 1px solid var(--sn-border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(18, 18, 18, .18);
  display: none; flex-direction: column; overflow: hidden;
  overscroll-behavior: contain;
}
#sn-concierge-v3-preview:not([data-state="closed"]) .sn-panel { display: flex; }
#sn-concierge-v3-preview .sn-demo-tag {
  position: absolute; top: 10px; right: 48px; z-index: 5;
  font-size: 9px; font-weight: 600; letter-spacing: .12em;
  color: var(--sn-muted); border: 1px solid var(--sn-border);
  border-radius: 999px; padding: 2px 7px; background: var(--sn-bg);
}
#sn-concierge-v3-preview .sn-demo-inline { font-size: 11px; color: var(--sn-muted); font-weight: 400; }
/* In specialist mode the header avatar occupies the tag's spot — the tag
   hides there; the demo label moves into the "Connected" system line. */
#sn-concierge-v3-preview[data-mode="specialist"] .sn-demo-tag { display: none; }

/* ---------- Panel header ---------- */
#sn-concierge-v3-preview .sn-panel-head {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--sn-border);
  background: var(--sn-bg);
}
#sn-concierge-v3-preview .sn-head-btn {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; color: var(--sn-text);
  border-radius: 50%; padding: 0;
}
#sn-concierge-v3-preview .sn-head-btn svg { width: 18px; height: 18px; }
#sn-concierge-v3-preview .sn-head-btn:hover { background: #F2F2F2; }
#sn-concierge-v3-preview .sn-head-menu {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center; color: var(--sn-text);
}
#sn-concierge-v3-preview .sn-head-menu svg { width: 19px; height: 19px; }
#sn-concierge-v3-preview .sn-head-titles {
  flex: 1 1 auto; text-align: center; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
#sn-concierge-v3-preview .sn-head-wordmark {
  font-family: var(--sn-serif); font-weight: 600; font-size: 15px; letter-spacing: .24em; line-height: 1.1;
}
#sn-concierge-v3-preview .sn-head-sub { font-size: 11px; color: var(--sn-muted); letter-spacing: .04em; }
#sn-concierge-v3-preview .sn-head-avatar {
  position: relative; flex: 0 0 32px; width: 32px; height: 32px;
}
#sn-concierge-v3-preview .sn-head-avatar img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block;
  border: 1px solid var(--sn-border);
}
/* No status dot on the header avatar: availability is never faked.
   The "Connected" system line (real assignment only) is the one place
   a green dot appears, matching reference 04. */
/* Avatar in the header ONLY for the assigned specialist (never in AI mode) */
#sn-concierge-v3-preview[data-mode="specialist"] .sn-head-avatar { display: block; }
#sn-concierge-v3-preview:not([data-mode="specialist"]) .sn-head-avatar { display: none; }
/* Back chevron only inside chat views; hamburger only on welcome/queue */
#sn-concierge-v3-preview .sn-back { display: none; }
#sn-concierge-v3-preview[data-view="chat"] .sn-back { display: flex; }
#sn-concierge-v3-preview[data-view="chat"] .sn-head-menu { display: none; }

/* ---------- Views ---------- */
#sn-concierge-v3-preview .sn-view { display: none; min-height: 0; }
#sn-concierge-v3-preview[data-view="welcome"] .sn-view-welcome { display: flex; }
#sn-concierge-v3-preview[data-view="chat"] .sn-view-chat { display: flex; }
#sn-concierge-v3-preview[data-view="queue"] .sn-view-queue { display: flex; }
#sn-concierge-v3-preview .sn-view-welcome {
  flex: 1 1 auto; flex-direction: column; overflow-y: auto;
  overscroll-behavior: contain;
}
#sn-concierge-v3-preview .sn-view-welcome > *,
#sn-concierge-v3-preview .sn-view-queue > * { flex-shrink: 0; }

/* ---------- Welcome hero: huge high-contrast fashion serif + TIGHT
   handle/hardware close-up at the right edge (ref 01).
   FIX 2026-11-29 (V01): the asset is now a 270x375 re-crop of the SAME
   approved black-Birkin photo — handles + gold hardware + flap only, no
   base, no full bag body (original backed up as
   birkin-black-handle-crop-ORIG.jpg in fix-design/). The bag container is
   narrowed (36% desktop / 40% mobile / 34% <=380px / 32% <=340px) and the
   title/italic max-widths are sized from MEASURED Playfair text widths
   (probe 29 Nov: "Studio Nafay" 34px=196.7px, italic line 13px=200.4px,
   14px=215.8px), so the title box and the 1-line italic box both clear
   the hero box (clearance >= 0) at every width. object-position 0% 0%
   keeps the left-anchored window on the handle + lock at every width. */
#sn-concierge-v3-preview .sn-hero {
  position: relative; padding: 24px 20px 10px; overflow: hidden;
  background: var(--sn-bg); min-height: 240px;
}
#sn-concierge-v3-preview .sn-hero-bag {
  position: absolute; right: 0; top: 0; height: 100%;
  width: 36%; overflow: hidden; pointer-events: none;
}
#sn-concierge-v3-preview .sn-hero-bag img {
  width: 100%; height: 100%; object-fit: cover; object-position: 0% 0%;
  display: block;
}
#sn-concierge-v3-preview .sn-hero-rule {
  position: relative; z-index: 1;
  display: block; width: 34px; height: 1px; background: var(--sn-text); margin: 2px 0 14px;
}
#sn-concierge-v3-preview .sn-hero-title {
  position: relative; z-index: 1;
  font-family: var(--sn-serif); font-weight: 600;
  font-size: 36px; line-height: 1.05; margin: 0 0 12px;
  max-width: 62%; letter-spacing: -0.01em;
}
#sn-concierge-v3-preview .sn-hero-italic {
  position: relative; z-index: 1;
  font-family: var(--sn-serif); font-style: italic; font-weight: 500;
  font-size: 13.5px; line-height: 1.3; margin: 0 0 10px; max-width: 62%;
  white-space: nowrap;
}
#sn-concierge-v3-preview .sn-hero-copy {
  position: relative; z-index: 1;
  font-size: 14px; line-height: 1.5; color: var(--sn-muted);
  margin: 0; max-width: 56%;
}
#sn-concierge-v3-preview .sn-divider { height: 1px; background: var(--sn-border); margin: 14px 20px 0; }

/* ---------- Action rows ---------- */
#sn-concierge-v3-preview .sn-actions { padding: 14px 20px 6px; display: flex; flex-direction: column; gap: 10px; }
#sn-concierge-v3-preview .sn-action {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 10px 12px;
  background: var(--sn-bg); border: 1px solid var(--sn-border); border-radius: 10px;
  cursor: pointer; text-align: left; color: var(--sn-text);
}
#sn-concierge-v3-preview .sn-action:hover { border-color: var(--sn-text); }
#sn-concierge-v3-preview .sn-action-ic { flex: 0 0 22px; width: 22px; height: 22px; color: var(--sn-text); }
#sn-concierge-v3-preview .sn-action-ic svg { width: 22px; height: 22px; }
#sn-concierge-v3-preview .sn-action-label { flex: 1 1 auto; font-size: 14px; font-weight: 500; }
#sn-concierge-v3-preview .sn-action-chev { flex: 0 0 16px; width: 16px; height: 16px; color: var(--sn-muted); }
#sn-concierge-v3-preview .sn-action-chev svg { width: 16px; height: 16px; }

/* ---------- CTA buttons: rectangular / slightly rounded, never capsules ---------- */
#sn-concierge-v3-preview .sn-ctas { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
#sn-concierge-v3-preview .sn-btn {
  width: 100%; min-height: 48px; border-radius: 8px; cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 12px 16px;
}
#sn-concierge-v3-preview .sn-btn-primary { background: #121212; color: #fff; border: 1px solid #121212; }
#sn-concierge-v3-preview .sn-btn-primary:hover { background: #000; }
#sn-concierge-v3-preview .sn-btn-outline { background: #fff; color: var(--sn-text); border: 1px solid var(--sn-text); }
#sn-concierge-v3-preview .sn-btn-outline:hover { background: #F5F5F5; }

/* ---------- Chat view ---------- */
#sn-concierge-v3-preview .sn-view-chat { flex: 1 1 auto; flex-direction: column; min-height: 0; }
#sn-concierge-v3-preview .sn-messages {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px;
}
#sn-concierge-v3-preview .sn-msg { max-width: 82%; font-size: 14px; line-height: 1.5; flex-shrink: 0; }
#sn-concierge-v3-preview .sn-msg-ai {
  align-self: flex-start; background: var(--sn-bubble-ai); color: var(--sn-text);
  border: 1px solid var(--sn-border); border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
}
#sn-concierge-v3-preview .sn-msg-user {
  align-self: flex-end; background: var(--sn-bubble-user); color: var(--sn-text);
  border-radius: 14px 14px 4px 14px; padding: 10px 12px;
}
/* Specialist message row: small circular avatar at left + name label + bubble.
   AI Advisor messages NEVER get this row. */
#sn-concierge-v3-preview .sn-msg-row {
  display: flex; gap: 8px; align-items: flex-end;
  align-self: flex-start; max-width: 92%; flex-shrink: 0;
}
#sn-concierge-v3-preview .sn-msg-row .sn-msg { flex: 1 1 auto; min-width: 0; max-width: none; }
#sn-concierge-v3-preview .sn-msg-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#sn-concierge-v3-preview .sn-msg-name { font-size: 11px; font-weight: 600; color: var(--sn-muted); letter-spacing: .02em; }
#sn-concierge-v3-preview .sn-msg-avatar {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; display: block; margin-bottom: 2px;
  border: 1px solid var(--sn-border);
}
/* Typing indicator: avatar + three-dot bubble (specialist only) */
#sn-concierge-v3-preview .sn-typing-bubble {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--sn-bubble-ai); border: 1px solid var(--sn-border);
  border-radius: 14px 14px 14px 4px; padding: 12px 14px;
}
#sn-concierge-v3-preview .sn-dots { display: inline-flex; gap: 3px; align-items: center; }
#sn-concierge-v3-preview .sn-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--sn-muted);
  animation: sn-blink 1.2s infinite;
}
#sn-concierge-v3-preview .sn-dots i:nth-child(2) { animation-delay: .2s; }
#sn-concierge-v3-preview .sn-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes sn-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
/* System line (centred, muted) — e.g. "Connected to your specialist" */
#sn-concierge-v3-preview .sn-sys {
  align-self: center; text-align: center; max-width: 92%;
  font-size: 11.5px; line-height: 1.45; color: var(--sn-muted);
  background: var(--sn-bg-soft); border: 1px solid var(--sn-border);
  border-radius: 8px; padding: 7px 10px; flex-shrink: 0;
}
#sn-concierge-v3-preview .sn-sys .sn-green-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #1F9D55; margin-right: 5px; vertical-align: 1px;
}
/* Suggestion chips: small outlined pills (the one place pills are allowed) */
#sn-concierge-v3-preview .sn-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; flex-shrink: 0; }
#sn-concierge-v3-preview .sn-chip {
  font-size: 12.5px; font-weight: 500; color: var(--sn-text);
  background: #fff; border: 1px solid var(--sn-text); border-radius: 999px;
  padding: 7px 12px; cursor: pointer; min-height: 32px;
}
#sn-concierge-v3-preview .sn-chip:hover { background: #F5F5F5; }

/* ---------- Product card: compact HORIZONTAL only ----------
   Square thumbnail left; 2-line truncated serif title; tier/color line;
   bold localized price; slim black View & Buy button. */
#sn-concierge-v3-preview .sn-card {
  align-self: stretch; width: 100%;
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--sn-border); border-radius: 12px;
  padding: 10px; flex-shrink: 0;
}
#sn-concierge-v3-preview .sn-card-img {
  flex: 0 0 88px; width: 88px; height: 88px; border-radius: 8px;
  overflow: hidden; background: #fff; border: 1px solid var(--sn-border);
}
#sn-concierge-v3-preview .sn-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
/* Neutral premium placeholder when the exact product image fails to
   load (CDN 403 etc.) — a plain light panel with a small bag outline,
   never a different handbag, never a broken-image icon or alt spill. */
#sn-concierge-v3-preview .sn-card-img.sn-img-broken {
  background-color: #F5F5F5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BDBDBD' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
}
#sn-concierge-v3-preview .sn-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
#sn-concierge-v3-preview .sn-card-name {
  font-family: var(--sn-serif); font-weight: 600; font-size: 15px; line-height: 1.3;
  margin: 0 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
#sn-concierge-v3-preview .sn-card-tier { font-size: 12px; color: var(--sn-muted); margin: 0 0 4px; }
#sn-concierge-v3-preview .sn-card-price { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
#sn-concierge-v3-preview .sn-card-btn {
  align-self: stretch; min-height: 34px; border-radius: 6px; cursor: pointer;
  background: #121212; color: #fff; border: 1px solid #121212;
  font-size: 13px; font-weight: 600; padding: 7px 12px;
}
#sn-concierge-v3-preview .sn-card-btn:hover { background: #000; }

/* ---------- Connecting strip (inline, compact three-dot status) ---------- */
#sn-concierge-v3-preview .sn-connecting {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  margin: 0 16px 8px; padding: 9px 12px;
  background: var(--sn-bg-soft); border: 1px solid var(--sn-border); border-radius: 8px;
  font-size: 13px; color: var(--sn-text);
}

/* ---------- Queue view ---------- */
#sn-concierge-v3-preview .sn-view-queue { flex: 1 1 auto; flex-direction: column; overflow-y: auto; }
#sn-concierge-v3-preview .sn-queue {
  padding: 34px 24px 20px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
#sn-concierge-v3-preview .sn-queue-ic { width: 56px; height: 56px; color: var(--sn-text); margin-bottom: 16px; }
#sn-concierge-v3-preview .sn-queue-ic svg { width: 56px; height: 56px; }
/* Queue: serif heading per reference 03; tabular-numeric countdown;
   the bar DECREASES (full -> empty) as the deadline approaches. */
#sn-concierge-v3-preview .sn-queue-title {
  font-family: var(--sn-serif); font-weight: 600; font-size: 28px; line-height: 1.25;
  letter-spacing: .01em; margin: 0 0 12px;
}
#sn-concierge-v3-preview .sn-queue-line { font-size: 14px; line-height: 1.5; margin: 0 0 4px; }
/* Live countdown: Inter, tabular numerals, updates every second */
#sn-concierge-v3-preview .sn-queue-timer {
  font-family: var(--sn-sans); font-size: 40px; font-weight: 600; line-height: 1.2;
  font-variant-numeric: tabular-nums; letter-spacing: 0; margin: 6px 0 2px;
}
/* Demo-only queue label: visible whenever the queue numbers are
   simulated (owner-only demo mode). Real queue states never show it. */
#sn-concierge-v3-preview .sn-queue-demo {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  color: var(--sn-muted); border: 1px solid var(--sn-border);
  border-radius: 999px; padding: 3px 9px; margin-bottom: 14px;
}
#sn-concierge-v3-preview .sn-muted { color: var(--sn-muted); }
#sn-concierge-v3-preview .sn-progress {
  width: 100%; height: 4px; background: #EFEFEF; border-radius: 999px;
  margin: 18px 0 14px; overflow: hidden;
}
#sn-concierge-v3-preview .sn-progress i { display: block; height: 100%; background: #121212; border-radius: 999px; }
#sn-concierge-v3-preview .sn-queue-note { font-size: 13px; line-height: 1.5; color: var(--sn-muted); margin: 0 0 20px; }
#sn-concierge-v3-preview .sn-queue .sn-btn { margin-bottom: 10px; }

/* ---------- Composer: rounded input + black circular send (per reference 02) ---------- */
#sn-concierge-v3-preview .sn-composer {
  flex: 0 0 auto; display: flex; gap: 8px; align-items: center;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--sn-border); background: var(--sn-bg);
}
#sn-concierge-v3-preview[data-view="welcome"] .sn-composer,
#sn-concierge-v3-preview[data-view="queue"] .sn-composer { display: none; }
#sn-concierge-v3-preview .sn-composer-box { flex: 1 1 auto; min-width: 0; }
#sn-concierge-v3-preview .sn-input {
  width: 100%; height: 44px; border: 1px solid var(--sn-border); border-radius: 22px;
  padding: 0 14px; font: inherit; font-size: 14px; color: var(--sn-text);
  background: var(--sn-bg-soft); outline: none;
}
#sn-concierge-v3-preview .sn-input:focus { border-color: var(--sn-text); background: #fff; }
#sn-concierge-v3-preview .sn-send {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: #121212; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
#sn-concierge-v3-preview .sn-send svg { width: 19px; height: 19px; }
#sn-concierge-v3-preview .sn-send:hover { background: #000; }

/* ---------- Toast ---------- */
#sn-concierge-v3-preview .sn-toast {
  position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%);
  background: #121212; color: #fff; font-size: 12.5px; padding: 8px 14px;
  border-radius: 999px; white-space: nowrap; margin: 0; z-index: 6;
  box-shadow: 0 6px 18px rgba(18, 18, 18, .25);
}

/* ---------- Small screens: panel goes full-viewport ---------- */
@media (max-width: 520px) {
  #sn-concierge-v3-preview .sn-panel {
    right: 0; left: 0; top: 0; bottom: 0;
    width: auto; max-width: none; height: 100vh; height: 100dvh; max-height: 100dvh;
    border: none; border-radius: 0; box-shadow: none;
  }
  #sn-concierge-v3-preview .sn-launcher { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  /* V01 FIX: hero bag 40% (was 50%) so the 34px title box (58% = 203px
     at 390, text 196.7px) clears it; italic 14px / 58% stays 1 line at
     448 (text 215.8px in a 236.6px box). */
  #sn-concierge-v3-preview .sn-hero-bag { width: 40%; }
  #sn-concierge-v3-preview .sn-hero-title { font-size: 34px; max-width: 58%; }
  #sn-concierge-v3-preview .sn-hero-italic { font-size: 14px; max-width: 58%; }
  #sn-concierge-v3-preview .sn-queue-title { font-size: 26px; }
}
@media (max-width: 420px) {
  /* V01 FIX: at 390 the 14px italic (215.8px) does not fit the 214px
     clear of the 40% hero bag — 13px (200.4px) does, in a 58% box. */
  #sn-concierge-v3-preview .sn-hero-italic { font-size: 13px; }
}
/* V01 FIX (consolidated — the old duplicated @380/@340 blocks are gone):
   <=380px the hero bag narrows to 34% so the title + 1-line italic boxes
   clear it; <=340px it narrows to 32% and the italic drops to 12.5px
   (192.7px text in a 68% box) so it still fits on one line at 320. */
@media (max-width: 380px) {
  /* Narrow phones: the header is too crowded for the DEMO tag next to the
     wordmark — float it above the composer/toast zone instead. */
  #sn-concierge-v3-preview .sn-demo-tag { top: auto; bottom: 118px; right: 12px; }
  #sn-concierge-v3-preview .sn-hero { padding: 20px 16px 8px; min-height: 230px; }
  #sn-concierge-v3-preview .sn-hero-bag { width: 34%; }
  #sn-concierge-v3-preview .sn-hero-title { font-size: 31px; line-height: 1.06; max-width: 56%; }
  #sn-concierge-v3-preview .sn-hero-italic { font-size: 13px; max-width: 62%; }
  #sn-concierge-v3-preview .sn-hero-copy { font-size: 13px; line-height: 1.5; max-width: 52%; }
  #sn-concierge-v3-preview .sn-actions { padding: 12px 16px 6px; }
  #sn-concierge-v3-preview .sn-ctas { padding: 8px 16px 16px; }
  #sn-concierge-v3-preview .sn-queue-title { font-size: 25px; }
  #sn-concierge-v3-preview .sn-queue-timer { font-size: 34px; }
}
@media (max-width: 340px) {
  #sn-concierge-v3-preview .sn-hero-title { font-size: 28px; max-width: 58%; }
  #sn-concierge-v3-preview .sn-hero-bag { width: 32%; }
  #sn-concierge-v3-preview .sn-hero-italic { font-size: 12.5px; max-width: 68%; }
}

/* ============ V5 STAGING INTEGRATION: tier selector, buy link,
   leave-a-message form, owner status panel ============ */
#sn-concierge-v3-preview .sn-tiers { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
#sn-concierge-v3-preview .sn-tier-btn { appearance: none; width: 100%; text-align: left; background: #fff; border: 1px solid #111; color: #111; font-family: var(--sn-sans); font-size: 14px; line-height: 1.4; padding: 11px 14px; border-radius: 0; cursor: pointer; }
#sn-concierge-v3-preview .sn-tier-btn:hover, #sn-concierge-v3-preview .sn-tier-btn:focus-visible { background: #111; color: #fff; outline: none; }
#sn-concierge-v3-preview .sn-buy-link { word-break: break-all; color: #111; text-decoration: underline; }
#sn-concierge-v3-preview .sn-leave-form { background: #f6f5f3; border: 1px solid #e5e5e5; padding: 12px; margin: 6px 0 12px; display: flex; flex-direction: column; gap: 8px; }
#sn-concierge-v3-preview .sn-leave-title { margin: 0; font-size: 13px; font-weight: 600; color: #111; }
#sn-concierge-v3-preview .sn-leave-input { width: 100%; box-sizing: border-box; border: 1px solid #c9c9c9; background: #fff; color: #111; font-family: var(--sn-sans); font-size: 14px; padding: 10px 12px; border-radius: 0; }
#sn-concierge-v3-preview .sn-leave-send { appearance: none; background: #111; color: #fff; border: 1px solid #111; font-family: var(--sn-sans); font-size: 14px; padding: 10px 14px; cursor: pointer; }
#sn-demo-shell .sn-owner-status { margin: 8px 0 0; padding: 10px 12px; background: #fffbe6; border: 1px solid #e8d98a; font-size: 13px; line-height: 1.5; color: #3a3300; }
#sn-demo-shell .sn-owner-status summary { cursor: pointer; font-weight: 600; }
#sn-demo-shell .sn-owner-status ul { margin: 8px 0 0; padding-left: 18px; }
#sn-demo-shell .sn-owner-status code { font-size: 12px; background: #f0ead0; padding: 1px 4px; }

/* Legacy v1.0.5/Elena launcher — hidden wherever the Concierge widget is present.
   Concierge CSS only loads when the Concierge widget is deployed, so deleting the
   Concierge files (rollback) restores the legacy launcher automatically.
   Targets the legacy widget root (#sn-sc-widget), its legacy id, and the launcher
   button itself, so the hide works even if one selector changes. Verified live:
   the legacy launcher is <button class="sn-sc-bubble"> inside #sn-sc-widget. */
#sn-sc-widget, #sn-personal-shopper, .sn-sc-bubble { display: none !important; }
