/* OWNIT pest-demo kit · shared components (engine: core.js, booking.js, assistant.js, tour.js)
   The demo's own stylesheet defines the palette (historic names: --forest = brand, --forest-d / --deep = its darks,
   --lime = accent, --lime-ink = text on the accent, --mint = brand tint), --font/--font-d, corners (--k, --rb, --r,
   --r-lg), --sh/--sh-lg, --ease, --ink/--ink-2/--muted/--line/--line-2, --red/--amber, then styles its own sections. */
[hidden] { display: none !important; }

/* Material Symbols (Google Fonts icon font) */
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 1.2em; line-height: 1; display: inline-block; width: 1em; overflow: hidden;
  vertical-align: -.2em; white-space: nowrap; letter-spacing: normal; text-transform: none; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 1, 'wght' 500, 'opsz' 24; -webkit-font-smoothing: antialiased; flex: none; }


/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 48px; padding: 0 22px; border-radius: var(--rb); font-weight: 700; font-size: .95rem;
  text-decoration: none; white-space: nowrap; transition: transform .16s var(--ease), background .2s ease, box-shadow .25s ease, color .2s ease; }
.btn:active { transform: scale(.97); }
.btn .ms { font-size: 1.15rem; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--lime) 90%, transparent), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-lime:hover { background: color-mix(in srgb, var(--lime) 82%, #ffffff); box-shadow: 0 14px 32px -12px color-mix(in srgb, var(--lime) 100%, transparent); }
.btn-forest { background: var(--forest); color: #fff; box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--forest) 90%, transparent); }
.btn-forest:hover { background: var(--forest-l); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--forest-d) 30%, transparent); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.2); }


.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none; display: inline-block; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(61,220,132,.5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* the slim bar that follows you down the page */
.minibar { position: fixed; top: 12px; left: 50%; z-index: 50; display: flex; align-items: center; gap: 18px; width: min(1180px, calc(100% - 24px)); padding: 8px 8px 8px 16px; border-radius: calc(20px * var(--k));
  background: rgba(255,255,255,.9); border: 1px solid var(--line-2); box-shadow: var(--sh); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transform: translate(-50%, -140%); transition: transform .45s var(--ease); }
.minibar.show { transform: translate(-50%, 0); }
.minibar .brand { color: var(--forest-d); }
.minibar .brand-mark { width: 34px; height: 34px; border-radius: calc(10px * var(--k)); }
.minibar .brand-name { font-size: 1.05rem; }
.minibar nav { display: flex; gap: 2px; margin: 0 auto; }
.minibar nav a { padding: 8px 12px; border-radius: calc(10px * var(--k)); font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.minibar nav a:hover { background: var(--mint); }
.minibar .btn { height: 42px; }

/* ============================================================ BOOKING */
.bk-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.bk-wrap[hidden] { display: none; }
.bk-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--deep) 58%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.bk { position: relative; display: flex; flex-direction: column; width: min(740px, 100%); height: min(820px, calc(100dvh - 32px)); border-radius: calc(26px * var(--k)); background: #fff; box-shadow: 0 50px 120px -30px rgba(0,0,0,.55); overflow: hidden; animation: pop .32s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.bk-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px 24px; }
.bk-head > div { flex: 1; min-width: 0; }
.bk-head b { display: block; font-size: 1.15rem; font-weight: 800; }
.bk-head small { color: var(--muted); font-size: .85rem; }
.bk-hold { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: var(--rb); background: #fff4dc; color: #8a5300; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.bk-x { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); }
.bk-x:hover { background: var(--mint-2); }
.bk-bar { height: 4px; background: var(--mint); }
.bk-bar i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--forest), var(--lime-d)); border-radius: 0 4px 4px 0; transition: width .45s var(--ease); }
.bk-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 26px; }
.bk-body h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; }
.bk-body .hint { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.bk-step { animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: #fff; }
.bk-foot .btn[disabled] { opacity: .45; pointer-events: none; }
.bk-foot .btn.is-off { opacity: .5; box-shadow: none; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: calc(16px * var(--k)); border: 1.5px solid var(--line); background: #fff; text-align: left; font-weight: 700; font-size: .92rem; line-height: 1.25;
  transition: border-color .2s ease, background .2s ease, transform .16s var(--ease); }
.opt:active { transform: scale(.98); }
.opt img { width: 40px; height: 40px; border-radius: calc(12px * var(--k)); object-fit: cover; flex: none; }
.opt .ms { width: 40px; height: 40px; border-radius: calc(12px * var(--k)); display: grid; place-items: center; background: var(--mint); color: var(--forest); flex: none; overflow: visible; }
.opt small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.opt[aria-pressed="true"] { border-color: var(--forest); background: var(--mint); }
.opt[aria-pressed="true"]::after { content: "check"; font-family: 'Material Symbols Rounded'; position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: var(--forest); color: #fff; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.seg button { padding: 12px 10px; border-radius: calc(14px * var(--k)); border: 1.5px solid var(--line); font-weight: 700; font-size: .88rem; text-align: center; transition: border-color .2s ease, background .2s ease; }
.seg button small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }
.seg button[aria-pressed="true"] { border-color: var(--forest); background: var(--mint); }
.seg button[data-v="emergency"][aria-pressed="true"] { border-color: var(--red); background: #fff1f1; }
.fld { display: grid; gap: 6px; margin-bottom: 14px; }
.fld label { font-size: .85rem; font-weight: 700; }
.fld input, .fld select, .fld textarea { width: 100%; height: 50px; padding: 0 14px; border-radius: calc(14px * var(--k)); border: 1.5px solid var(--line); background: #fff; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.fld textarea { height: 86px; padding: 12px 14px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 45%, transparent); }
.fld .err { color: var(--red); font-size: .8rem; font-weight: 600; min-height: 1em; }
.fld input[aria-invalid="true"] { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sect-l { font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 20px 0 10px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: thin; }
.day { flex: none; width: 74px; padding: 10px 6px; border-radius: calc(16px * var(--k)); border: 1.5px solid var(--line); text-align: center; transition: border-color .2s ease, background .2s ease; }
.day small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.day b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.day em { display: block; font-style: normal; font-size: .7rem; color: var(--forest); font-weight: 700; }
.day[aria-pressed="true"] { border-color: var(--forest); background: var(--forest-d); color: #fff; }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] em { color: var(--lime); }
.day[disabled] { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot-b { height: 46px; border-radius: calc(12px * var(--k)); border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; transition: border-color .2s ease, background .2s ease; }
.slot-b:hover:not([disabled]) { border-color: var(--forest); }
.slot-b[aria-pressed="true"] { background: var(--lime); border-color: var(--lime-d); color: var(--forest-d); }
.slot-b[disabled] { color: #b6bfba; text-decoration: line-through; background: #f7f8f6; cursor: not-allowed; }
.fast { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: calc(16px * var(--k)); background: var(--mint); text-align: left; margin-bottom: 6px; }
.fast .ms { width: 40px; height: 40px; border-radius: calc(12px * var(--k)); display: grid; place-items: center; background: var(--lime); color: var(--forest-d); overflow: visible; }
.fast b { display: block; }
.fast small { color: var(--muted); }
.check-l { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.check-l input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); }
.sum { border-radius: calc(18px * var(--k)); border: 1px solid var(--line); overflow: hidden; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.sum-row:last-child { border-bottom: 0; }
.sum-row span { color: var(--muted); }
.sum-row b { text-align: right; }
.sum-row button { color: var(--forest); font-weight: 700; font-size: .82rem; text-decoration: underline; margin-left: 8px; }
.est { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 16px 18px; border-radius: calc(18px * var(--k)); background: var(--forest-d); color: #fff; }
.est b { font-size: 1.5rem; color: var(--lime); }
.est small { display: block; color: rgba(255,255,255,.7); font-size: .8rem; }
.done { text-align: center; padding-top: 6px; }
.done-check { width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest-d); animation: popin .6s var(--ease); box-shadow: 0 0 0 10px color-mix(in srgb, var(--lime) 25%, transparent); }
.done-check .ms { font-size: 3rem; }
@keyframes popin { from { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } }
.done h3 { font-size: 1.6rem; }
.done .ref { display: inline-block; margin: 8px 0 18px; padding: 5px 12px; border-radius: var(--rb); background: var(--mint); font-weight: 800; font-size: .86rem; letter-spacing: .04em; }
.auto { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 8px; text-align: left; max-width: 460px; }
.auto li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: calc(14px * var(--k)); border: 1px solid var(--line-2); font-size: .9rem; opacity: .45; transition: opacity .3s ease, border-color .3s ease, background .3s ease; }
.auto li .st { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--muted); flex: none; }
.auto li .st .ms { font-size: 1.05rem; }
.auto li b { display: block; }
.auto li small { color: var(--muted); }
.auto li.run { opacity: 1; }
.auto li.run .st { background: transparent; border: 2.5px solid var(--line); border-top-color: var(--forest); animation: spin .8s linear infinite; }
.auto li.run .st .ms { display: none; }
.auto li.ok { opacity: 1; border-color: color-mix(in srgb, var(--lime-d) 60%, transparent); background: var(--mint); }
.auto li.ok .st { background: var(--forest); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* ============================================================ CHAT (talking website) */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 16px; border-radius: var(--rb); background: var(--forest-d); color: #fff; font-weight: 800;
  box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--deep) 70%, transparent); transition: transform .2s var(--ease), opacity .2s ease; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .ms { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest-d); overflow: visible; }
.chat-fab-dot { position: absolute; top: 10px; left: 42px; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; border: 2px solid var(--forest-d); }
body.chat-on .chat-fab { opacity: 0; pointer-events: none; }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; width: min(392px, calc(100vw - 24px)); height: min(640px, calc(100dvh - 36px)); border-radius: calc(26px * var(--k)); background: #fff; box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); overflow: hidden; animation: pop .3s var(--ease); }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 14px; background: var(--forest-d); color: #fff; }
.chat-head > div { flex: 1; min-width: 0; }
.chat-head b { display: block; font-size: .98rem; }
.chat-head small { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; color: rgba(255,255,255,.7); }
.chat-ava { width: 40px; height: 40px; border-radius: calc(14px * var(--k)); display: grid; place-items: center; background: var(--lime); color: var(--forest-d); }
.chat-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .2s ease; }
.chat-ic:hover { background: rgba(255,255,255,.2); }
.chat-ic[aria-pressed="true"] { background: var(--lime); color: var(--forest-d); }
.chat-thread { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--page), #fff 30%); }
.msg { max-width: 86%; padding: 11px 14px; border-radius: calc(18px * var(--k)); font-size: .92rem; line-height: 1.5; animation: msgIn .3s var(--ease); white-space: pre-line; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg.u { align-self: flex-end; background: var(--forest-d); color: #fff; border-bottom-right-radius: 6px; }
.msg.b { align-self: flex-start; background: var(--mint); border-bottom-left-radius: 6px; }
.msg.b.speaking { box-shadow: 0 0 0 2px var(--lime-d); }
.msg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg-acts button { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: calc(12px * var(--k)); background: var(--forest); color: #fff; font-weight: 700; font-size: .82rem; }
.msg-acts button.alt { background: #fff; color: var(--forest-d); border: 1px solid var(--line); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--forest); opacity: .4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; border-top: 1px solid var(--line-2); }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; padding: 8px 12px; border-radius: var(--rb); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; background: #fff; }
.chat-chips button:hover { border-color: var(--forest); }
.chat-form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: var(--rb); border: 1.5px solid var(--line); background: var(--page); font-size: .95rem; }
.chat-form input:focus { outline: 0; border-color: var(--forest); background: #fff; }
.chat-mic, .chat-send { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.chat-mic { background: var(--mint); color: var(--forest); }
.chat-mic.rec { background: var(--red); color: #fff; animation: recPulse 1.2s ease-in-out infinite; }
@keyframes recPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 50% { box-shadow: 0 0 0 8px rgba(229,72,77,0); } }
.chat-send { background: var(--forest-d); color: var(--lime); }
.chat-foot { padding: 0 12px 10px; text-align: center; font-size: .7rem; color: var(--muted); }

/* ============================================================ LIVE SYSTEM VIEW + TOUR */
.hud { position: fixed; left: 18px; bottom: 18px; z-index: 65; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: calc(100vw - 36px); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-fab { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px; border-radius: var(--rb); color: #fff; font-weight: 700; font-size: .88rem;
  background: color-mix(in srgb, var(--deep) 92%, transparent); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 36px -14px rgba(0,0,0,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud-fab b { min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--rb); display: grid; place-items: center; background: var(--lime); color: var(--forest-d); font-size: .82rem; }
.hud-fab.bump b { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.hud-panel { width: min(360px, calc(100vw - 36px)); max-height: min(560px, calc(100dvh - 120px)); display: flex; flex-direction: column; padding: 16px; border-radius: calc(22px * var(--k)); color: #fff;
  background: color-mix(in srgb, var(--deep) 96%, transparent); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: pop .3s var(--ease); }
.hud-panel[hidden] { display: none; }
.hud-panel header { display: flex; align-items: center; justify-content: space-between; }
.hud-panel header b { display: inline-flex; align-items: center; gap: 8px; }
.hud-panel header b .ms { color: var(--lime); }
.hud-panel header button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.hud-sub { font-size: .8rem; color: rgba(255,255,255,.6); margin: 6px 0 12px; }
.hud-feed { list-style: none; margin: 0 0 12px; padding: 0; overflow-y: auto; flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.hud-feed li { display: flex; gap: 10px; padding: 10px; border-radius: calc(14px * var(--k)); background: rgba(255,255,255,.05); font-size: .84rem; line-height: 1.4; animation: msgIn .35s var(--ease); }
.hud-feed li .ms { width: 30px; height: 30px; border-radius: calc(10px * var(--k)); display: grid; place-items: center; background: color-mix(in srgb, var(--lime) 16%, transparent); color: var(--lime); font-size: 1.05rem; overflow: visible; }
.hud-feed li small { display: block; color: rgba(255,255,255,.5); font-size: .74rem; }
.hud-feed .empty { justify-content: center; color: rgba(255,255,255,.55); background: transparent; text-align: center; }
.hud-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hud-stats div { padding: 10px; border-radius: calc(14px * var(--k)); background: rgba(255,255,255,.06); text-align: center; }
.hud-stats b { display: block; font-size: 1.3rem; color: var(--lime); }
.hud-stats small { font-size: .72rem; color: rgba(255,255,255,.6); }
.hud-toasts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 340px; padding: 10px 14px 10px 10px; border-radius: calc(16px * var(--k)); color: #fff; font-size: .84rem; line-height: 1.35;
  background: color-mix(in srgb, var(--deep) 94%, transparent); border: 1px solid color-mix(in srgb, var(--lime) 25%, transparent); box-shadow: 0 16px 36px -14px rgba(0,0,0,.5); animation: toastIn .4s var(--ease); }
.toast .ms { width: 30px; height: 30px; border-radius: calc(10px * var(--k)); display: grid; place-items: center; background: var(--lime); color: var(--forest-d); font-size: 1.05rem; overflow: visible; }
.toast small { display: block; color: rgba(255,255,255,.55); font-size: .72rem; }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-16px); } }

.tour { position: fixed; inset: 0; z-index: 90; }
.tour[hidden] { display: none; }
.tour-spot { position: fixed; border-radius: calc(20px * var(--k)); pointer-events: none; box-shadow: 0 0 0 9999px color-mix(in srgb, var(--deep) 66%, transparent), 0 0 0 3px var(--lime), 0 0 30px 6px color-mix(in srgb, var(--lime) 40%, transparent);
  transition: top .5s var(--ease), left .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.tour-card { position: fixed; z-index: 91; width: min(360px, calc(100vw - 24px)); padding: 18px; border-radius: calc(20px * var(--k)); background: #fff; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5);
  transition: top .5s var(--ease), left .5s var(--ease); }
.tour-card small { display: inline-block; padding: 3px 9px; border-radius: var(--rb); background: var(--mint); color: var(--forest); font-weight: 800; font-size: .74rem; }
.tour-card b { display: block; font-size: 1.08rem; margin: 10px 0 6px; }
.tour-card p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.tour-btns { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.tour-btns > span { display: flex; gap: 8px; }
.tour-skip { color: var(--muted); font-size: .85rem; font-weight: 600; }
.tour-invite { position: fixed; left: 18px; bottom: 78px; z-index: 66; display: flex; align-items: center; gap: 12px; width: min(420px, calc(100vw - 36px)); padding: 14px 14px 14px 16px; border-radius: calc(20px * var(--k)); background: #fff; box-shadow: 0 30px 70px -24px rgba(0,0,0,.45); animation: pop .4s var(--ease); }
.tour-invite[hidden] { display: none; }
.tour-invite > .ms { width: 42px; height: 42px; border-radius: calc(14px * var(--k)); display: grid; place-items: center; background: var(--forest-d); color: var(--lime); overflow: visible; }
.tour-invite > span:nth-child(2) { flex: 1; font-size: .86rem; line-height: 1.35; }
.tour-invite b { display: block; }
.tour-invite small { color: var(--muted); }
.tour-invite-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }

/* footer card that opens the Brand Kit (Customize this site) */
.bk-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 40px; padding: 18px 20px; border-radius: var(--r); background: color-mix(in srgb, var(--lime) 10%, transparent); border: 1px solid color-mix(in srgb, var(--lime) 30%, transparent); }
.bk-cta > .ms { width: 44px; height: 44px; border-radius: calc(14px * var(--k)); display: grid; place-items: center; background: var(--lime); color: var(--lime-ink); font-size: 1.4rem; overflow: visible; }
.bk-cta > span:nth-child(2) { flex: 1; min-width: 220px; }
.bk-cta b { display: block; color: #fff; font-size: 1rem; }
.bk-cta small { display: block; color: rgba(255,255,255,.7); font-size: .88rem; margin-top: 2px; }

@media (max-width: 1100px) {
  .minibar nav { display: none; }
}
@media (max-width: 760px) {
  .slots { grid-template-columns: repeat(3, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .bk-wrap { padding: 0; place-items: end stretch; }
  .bk { width: 100%; height: calc(100dvh - 24px); border-radius: 24px 24px 0 0; }
  .chat { right: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .chat-fab { right: 12px; bottom: 12px; height: 54px; padding: 0 18px 0 12px; }
  .hud { left: 12px; bottom: 12px; }
  .hud-fab span { display: none; }
  .hud-fab { padding: 0 6px 0 12px; height: 54px; }
  .tour-invite { left: 12px; bottom: 76px; }
  .toast { max-width: calc(100vw - 100px); }
  .minibar { top: 8px; padding: 6px 6px 6px 12px; }
  .minibar .btn { height: 40px; padding: 0 14px; font-size: .86rem; }
}
