/* Retailr AI setup wizard — views/onboarding/setup.php. Tokens and sizes follow
   "Retailr mobile app redesign/Retailr Web AI Onboarding.dc.html". */
:root {
  --bg: #F5F5FA; --sf: #FFFFFF; --sf2: #F4F3F9; --ink: #15131F; --mut: #5E5B70; --line: #E6E4EE;
  --pri: #7C3AED; --priS: #F3EEFF; --priInk: #5B21B6; --pink: #EC4899;
  --ok: #13804A; --okS: #E3F4EA; --bad: #C62E3B; --badS: #FCE9EA; --warn: #8F5400; --warnS: #FFF1D6;
  --grad: linear-gradient(90deg, #EC4899, #7C3AED); --grad2: linear-gradient(135deg, #EC4899, #7C3AED);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--pri); text-decoration: none; }
a:hover { color: var(--priInk); }
button, input { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
.ob-noscript { padding: 40px; text-align: center; }
.ob-hidden { display: none !important; }

@keyframes ob-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes ob-pop { from { opacity: 0; transform: translateY(8px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes ob-dot { 0%, 80%, 100% { opacity: .2 } 40% { opacity: 1 } }
@keyframes ob-spin { to { transform: rotate(360deg) } }
@keyframes ob-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,.35) } 50% { box-shadow: 0 0 0 10px rgba(124,58,237,0) } }
@keyframes ob-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
/* goal-card art */
@keyframes vis2 { 0%, 30% { opacity: 0 } 35%, 63% { opacity: 1 } 68%, 100% { opacity: 0 } }
@keyframes vis3 { 0%, 63% { opacity: 0 } 68%, 95% { opacity: 1 } 100% { opacity: 0 } }
@keyframes prog { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes flow { to { stroke-dashoffset: -12 } }
@keyframes blinkA { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
@keyframes swap { 0%, 45% { opacity: 0 } 52%, 93% { opacity: 1 } 100% { opacity: 0 } }
@keyframes row { 0%, 30% { transform: translateY(0) } 34%, 63% { transform: translateY(7px) } 67%, 96% { transform: translateY(14px) } 100% { transform: translateY(0) } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) } 50% { opacity: 1; transform: scale(1) } }
@keyframes lift { 0%, 20% { transform: translateY(0) } 38%, 72% { transform: translateY(-9px) } 90%, 100% { transform: translateY(0) } }
@keyframes show { 0%, 30% { opacity: 0 } 40%, 72% { opacity: 1 } 84%, 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- shared bits ---------- */
.ob-spark { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--grad2); color: #fff; flex: none; }
.ob-spin { width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: ob-spin .7s linear infinite; flex: none; }
.ob-btn { height: 46px; padding: 0 22px; border-radius: 12px; border: none; background: var(--grad); color: #fff; font-size: 14.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; transition: opacity .15s; }
.ob-btn:disabled, .ob-btn.is-off { opacity: .45; }
.ob-btn-ghost { height: 46px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px; }
.ob-btn-solid { background: var(--pri); }
.ob-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ob-err { font-size: 12.5px; font-weight: 600; color: var(--bad); line-height: 1.4; }
.ob-note { font-size: 12.5px; color: var(--mut); line-height: 1.45; }
.ob-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ob-field > span { font-size: 12.5px; font-weight: 700; color: var(--mut); }
.ob-input { height: 44px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; font-size: 14.5px; color: var(--ink); outline: none; background: #fff; width: 100%; }
.ob-input:focus { border-color: #C4B5FD; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.ob-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 14px; animation: ob-pop .3s ease; background: #fff; }
.ob-pill { height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; flex: none; white-space: nowrap; }
.ob-banner { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.ob-banner.ok { background: var(--okS); color: var(--ok); }
.ob-banner.mut { background: var(--sf2); color: var(--mut); }
.ob-banner.warn { background: var(--warnS); color: var(--warn); }
.ob-banner.bad { background: var(--badS); color: var(--bad); }
.ob-live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: ob-pulse 1.6s infinite; margin-right: 8px; }

/* ---------- top bar ---------- */
.ob-top { flex: none; height: 72px; padding: 0 32px; display: flex; align-items: center; gap: 24px; background: #fff; border-bottom: 1px solid var(--line); }
.ob-top img { height: 26px; width: auto; }
.ob-top .ob-exit { flex: none; font-size: 14px; font-weight: 600; color: var(--mut); }
.ob-top .ob-spacer { flex: 1; }
.ob-top .ob-spacer-m { display: none; }
.ob-chips { flex: 1; display: flex; justify-content: safe center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ob-chips::-webkit-scrollbar { display: none; }
.ob-chip { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; color: var(--mut); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ob-chip b { width: 22px; height: 22px; border-radius: 50%; background: var(--sf2); color: var(--mut); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ob-chip.is-cur { background: var(--priS); color: var(--ink); }
.ob-chip.is-cur b { background: var(--pri); color: #fff; }
.ob-chip.is-done { color: var(--ink); }
.ob-chip.is-done b { background: var(--ok); color: #fff; }
.ob-change { flex: none; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 600; }

/* ---------- setup ---------- */
.ob-setup { height: 100vh; display: flex; flex-direction: column; }
.ob-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(380px, 520px) minmax(0, 1fr); }
.ob-chat { min-height: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); }
.ob-chat-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ob-chat-head .ob-spark { width: 38px; height: 38px; }
.ob-chat-head .t { font-size: 15.5px; font-weight: 800; }
.ob-chat-head .s { font-size: 12.5px; color: var(--mut); font-weight: 600; }
.ob-online { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ok); margin-left: auto; }
.ob-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.ob-log { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 22px 12px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.ob-u { align-self: flex-end; max-width: 80%; background: var(--pri); color: #fff; padding: 10px 15px; border-radius: 18px 18px 6px 18px; font-size: 14.5px; line-height: 1.45; animation: ob-pop .25s ease; overflow-wrap: anywhere; }
.ob-ai { display: flex; gap: 10px; align-items: flex-start; }
.ob-ai > .ob-spark { width: 28px; height: 28px; }
.ob-ai > .ob-spark.is-blank { visibility: hidden; }
.ob-ai-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ob-ai-text { font-size: 15px; line-height: 1.55; text-wrap: pretty; overflow-wrap: anywhere; }
.ob-ai-text a { font-weight: 700; }
.ob-typing { display: flex; gap: 10px; align-items: center; }
.ob-typing > .ob-spark { width: 28px; height: 28px; }
.ob-typing .dots { display: flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--sf2); }
.ob-typing .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mut); animation: ob-dot 1.2s infinite; }
.ob-typing .dots i:nth-child(2) { animation-delay: .2s; }
.ob-typing .dots i:nth-child(3) { animation-delay: .4s; }
.ob-compose { flex: none; padding: 8px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.ob-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ob-quick::-webkit-scrollbar { display: none; }
.ob-quick button { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.ob-inputbar { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 4px 4px 4px 16px; border-radius: 26px; background: var(--sf2); border: 1px solid var(--line); }
.ob-inputbar input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 14.5px; color: var(--ink); }
.ob-send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; background: #E6E4EE; color: var(--mut); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.ob-send.is-on { background: var(--pri); color: #fff; }

/* "Back to <step>" after a side question */
.ob-backto { padding-left: 38px; }
.ob-backto button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #D9C8FB; background: var(--priS); color: var(--priInk); font-size: 12.5px; font-weight: 700; }
.ob-backto button:hover { border-color: var(--pri); }

/* widgets */
.ob-w { display: flex; flex-direction: column; gap: 10px; animation: ob-pop .3s ease; }
.ob-w.is-done { pointer-events: none; }
.ob-w.is-done .ob-opt:not(.is-on) { opacity: .5; }
.ob-optchips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-optchip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.ob-optchip:hover { border-color: #C4B5FD; }
.ob-optchip.is-on { border-color: var(--pri); background: var(--priS); }
.ob-optcards { display: grid; gap: 10px; }
.ob-opt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  box-shadow: 0 1px 2px rgba(20,18,40,.04); color: var(--ink); text-align: left; transition: border-color .15s, box-shadow .15s; }
.ob-opt:hover { border-color: #C4B5FD; }
.ob-opt.is-on { border-color: var(--pri); background: var(--priS); box-shadow: 0 0 0 3px rgba(124,58,237,.14); }
.ob-opt-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--priS); color: var(--pri); display: flex; align-items: center; justify-content: center; }
.ob-opt.is-on .ob-opt-ic { background: var(--pri); color: #fff; }
.ob-opt-img { display: block; width: 100%; height: 96px; border-radius: 11px; background: var(--sf2) center/cover no-repeat; }
.ob-perks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ob-perks span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ok); }
.ob-perks i { width: 18px; height: 18px; border-radius: 50%; background: var(--okS); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; }
.ob-opt-art { width: 100%; height: 76px; border-radius: 11px; display: flex; align-items: center; justify-content: center; }
.ob-opt-t { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 800; }
.ob-opt-tag { height: 20px; padding: 0 7px; border-radius: 999px; background: var(--priS); color: var(--priInk); font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; }
.ob-opt-d { font-size: 12.5px; color: var(--mut); line-height: 1.4; margin-top: 3px; }
.ob-opt-ck { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: #fff; color: #fff; display: flex; align-items: center; justify-content: center; }
.ob-opt.is-on .ob-opt-ck { border-color: var(--pri); background: var(--pri); }
.ob-opt-ck svg { opacity: 0; }
.ob-opt.is-on .ob-opt-ck svg { opacity: 1; }
.ob-zonesmini { position: relative; width: 100%; border-radius: 8px; background: #15131F; padding: 4px; }
.ob-zonesmini > div { position: relative; width: 100%; height: 100%; }
.ob-zonesmini span { position: absolute; padding: 2px; }
.ob-zonesmini span i { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 4px; background: #7C3AED; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; }
.ob-zonesmini span:nth-child(2) i { background: #5B21B6; }
.ob-zonesmini span:nth-child(3) i { background: #9F67F5; }

.ob-steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ob-steps3 div { padding: 10px; border-radius: 12px; background: var(--sf2); font-size: 12.5px; line-height: 1.4; }
.ob-steps3 strong { display: block; font-size: 13px; }
.ob-code { height: 58px; border-radius: 12px; border: 1.5px solid transparent; background: var(--sf2); text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 26px; font-weight: 700; letter-spacing: .3em; color: var(--ink); outline: none; text-transform: uppercase; width: 100%; }
.ob-code.is-bad { border-color: var(--bad); }
.ob-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-seg { display: flex; gap: 6px; }
.ob-seg button { flex: 1; height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.ob-seg button.is-on { border-color: var(--pri); background: var(--priS); color: var(--priInk); }

.ob-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; border-radius: 16px; border: 2px dashed #C4B5FD; background: var(--priS); color: var(--ink); text-align: center; width: 100%; }
.ob-drop.is-over { border-color: var(--pri); background: #E9DDFB; }
.ob-drop .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--pri); color: #fff; display: flex; align-items: center; justify-content: center; }
.ob-drop strong { font-size: 15px; }
.ob-drop small { font-size: 12.5px; color: var(--mut); }
.ob-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ob-tile { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--sf2) center/cover no-repeat; animation: ob-pop .25s ease; }
.ob-tile .cover { position: absolute; inset: 0; background: rgba(11,10,16,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 6px; }
.ob-tile .bar { width: 70%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.ob-tile .bar i { display: block; height: 100%; background: #fff; width: 0; transition: width .2s; }
.ob-tile .cover.is-bad { background: rgba(198,46,59,.82); }
.ob-tile .ok { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.ob-tile .nm { position: absolute; left: 6px; right: 6px; bottom: 5px; color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ob-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.ob-cats button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.ob-cats button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ob-lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 60px; }
.ob-libit { display: flex; flex-direction: column; gap: 5px; border: none; padding: 0; background: none; color: var(--ink); text-align: left; }
.ob-libit .th { position: relative; display: block; width: 100%; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: #2F3A4A center/cover no-repeat; }
.ob-libit.is-on .th { box-shadow: 0 0 0 3px var(--pri); }
.ob-libit .ck { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); color: #fff; display: flex; align-items: center; justify-content: center; }
.ob-libit.is-on .ck { background: var(--pri); }
.ob-libit .ck svg { opacity: 0; }
.ob-libit.is-on .ck svg { opacity: 1; }
.ob-libit .vid { position: absolute; left: 6px; bottom: 6px; height: 18px; padding: 0 6px; border-radius: 5px; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; }
.ob-libit .nm { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-lib-more { font-size: 12.5px; font-weight: 700; color: var(--pri); background: none; border: none; padding: 0; align-self: flex-start; }
.ob-skel { aspect-ratio: 16/10; border-radius: 10px; background: var(--sf2); animation: ob-pulse 1.4s infinite; }

.ob-design-in { display: flex; gap: 8px; }
.ob-design-in .ob-input { height: 46px; font-size: 14px; }
.ob-design-in button { flex: none; height: 46px; padding: 0 16px; border-radius: 10px; border: none; background: var(--pri); color: #fff; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ob-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-ex button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.ob-variants { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-variants button { padding: 0; border: none; border-radius: 10px; overflow: hidden; background: none; line-height: 0; animation: ob-pop .3s ease; }
.ob-variants button.is-on { box-shadow: 0 0 0 3px var(--pink); }
.ob-variants canvas { width: 100%; height: auto; display: block; }

.ob-scheds { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-scheds button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }
.ob-scheds button.is-on { border-color: var(--pri); background: var(--priS); color: var(--priInk); }
.ob-label { font-size: 13px; font-weight: 700; color: var(--mut); }

.ob-brand { display: flex; gap: 12px; align-items: center; }
.ob-brand .lg { flex: none; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ob-brand .t { font-size: 15px; font-weight: 800; }
.ob-brand .s { font-size: 12.5px; color: var(--mut); }
.ob-perm { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.ob-perm i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--okS); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.ob-stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ob-stats3 div { padding: 10px 12px; border-radius: 12px; background: var(--sf2); }
.ob-stats3 b { display: block; font-size: 20px; font-weight: 800; }
.ob-stats3 span { font-size: 11.5px; color: var(--mut); font-weight: 600; }

.ob-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-modes button { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-align: left; }
.ob-modes button.is-on { border-color: var(--pri); background: var(--priS); }
.ob-modes b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; flex-wrap: wrap; }
.ob-modes span { font-size: 12.5px; color: var(--mut); line-height: 1.4; }
.ob-counter-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }

.ob-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.ob-days button { height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ob-days button.is-on, .ob-times button.is-on { border-color: var(--pri); background: var(--priS); }
.ob-days small { font-size: 12px; font-weight: 600; color: var(--mut); }
.ob-days b { font-size: 14px; font-weight: 800; }
.ob-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ob-times button { height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }

.ob-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; animation: ob-pop .3s ease; }
.ob-contact a { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.ob-contact a:hover { border-color: #C4B5FD; color: var(--ink); }
.ob-contact .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ob-contact b { font-size: 13.5px; font-weight: 800; }
.ob-contact small { font-size: 12px; color: var(--mut); }

.ob-sum { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); animation: ob-pop .35s ease; background: #fff; }
.ob-sum-h { padding: 16px; background: var(--grad); color: #fff; }
.ob-sum-h b { display: block; font-size: 17px; font-weight: 800; }
.ob-sum-h span { font-size: 13px; opacity: .9; }
.ob-sum-b { padding: 6px 16px 16px; display: flex; flex-direction: column; }
.ob-rcpt { display: flex; gap: 10px; align-items: center; min-height: 40px; font-size: 14px; font-weight: 600; line-height: 1.35; padding: 6px 0; }
.ob-rcpt + .ob-rcpt { border-top: 1px solid var(--line); }
.ob-rcpt i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.ob-rcpt.is-todo i { background: var(--warnS); color: var(--warn); font-style: normal; font-size: 12px; font-weight: 800; }
.ob-sum-b .ob-btn { align-self: stretch; justify-content: center; margin-top: 10px; height: 48px; font-size: 15px; }

/* ---------- intro (sign-up chat): full width, no preview ---------- */
.ob-setup.is-intro .ob-main { grid-template-columns: minmax(0, 1fr); }
.ob-setup.is-intro .ob-pv, .ob-setup.is-intro .ob-pvtoggle { display: none !important; }
.ob-setup.is-intro .ob-chat { border-right: none; background: var(--bg); }
.ob-setup.is-intro .ob-chat-head { display: none; }
.ob-setup.is-intro .ob-log { padding-left: max(22px, calc((100% - 780px) / 2)); padding-right: max(22px, calc((100% - 780px) / 2)); }
.ob-setup.is-intro .ob-compose { padding-left: max(18px, calc((100% - 780px) / 2)); padding-right: max(18px, calc((100% - 780px) / 2)); }
.ob-setup.is-intro .ob-inputbar { background: #fff; }
.ob-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 26px 0 14px; animation: ob-fade .4s ease; }
.ob-hero .ob-spark { width: 56px; height: 56px; border-radius: 18px; animation: ob-glow 2.4s ease-in-out infinite; }
.ob-hero h1 { margin: 0; font-family: 'Inter Tight', Inter, sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.ob-hero > div { font-size: 15px; color: var(--mut); }
.ob-hero .ob-hero-alt { font-size: 13.5px; }
.ob-hero .ob-hero-alt a { font-weight: 700; }
.ob-setup:not(.is-intro) .ob-hero { display: none; }
.ob-ask { display: flex; gap: 8px; }
.ob-ask-in { flex: 1; min-width: 0; height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 0 14px; font-size: 15.5px; color: var(--ink); outline: none; }
.ob-ask-in:focus { border-color: #C4B5FD; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.ob-ask-in.is-bad { border-color: var(--bad); }
.ob-ask .ob-btn { height: 50px; padding: 0 20px; }
.ob-linkbtn { align-self: flex-start; height: 32px; padding: 0 2px; border: none; background: none; color: var(--mut); font-size: 13px; font-weight: 600; }
.ob-place { max-width: 520px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(20,18,40,.06); animation: ob-pop .3s ease; }
.ob-place-top { height: 100px; display: flex; align-items: center; justify-content: center; }
.ob-place-b { padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.ob-place-g { align-self: flex-start; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--sf2); font-size: 12px; font-weight: 700; }
.ob-place-n { font-size: 17px; font-weight: 800; }
.ob-place-r { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.ob-place-r .st { color: #F59E0B; letter-spacing: 1px; }
.ob-place-r .cat { color: var(--mut); font-weight: 500; }
.ob-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ob-feats.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ob-feat { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-align: left; transition: all .15s; }
.ob-feat.is-on { border-color: #C4B5FD; background: #FCFAFF; box-shadow: 0 6px 18px rgba(124,58,237,.10); }
.ob-feat-h { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ob-feat-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--sf2); color: var(--mut); display: flex; align-items: center; justify-content: center; }
.ob-feat.is-on .ob-feat-ic { background: var(--priS); color: var(--pri); }
.ob-feat-ic.is-ai, .ob-feat.is-on .ob-feat-ic.is-ai { background: var(--grad2); color: #fff; }
.ob-feat.is-on .ob-opt-ck { border-color: var(--pri); background: var(--pri); }
.ob-feat.is-on .ob-opt-ck svg { opacity: 1; }
.ob-feat b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.ob-feat .d { display: block; font-size: 12.5px; color: var(--mut); line-height: 1.45; margin-top: 4px; }
.ob-feat-v { display: inline-flex; align-self: flex-start; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--sf2); color: var(--mut); font-size: 11.5px; font-weight: 800; }
.ob-feat.is-on .ob-feat-v { background: var(--okS); color: var(--ok); }
.ob-opt-label { font-style: normal; font-weight: 600; color: var(--mut); opacity: .8; margin-left: 4px; }
/* intl-tel-input inside the account card */
.ob-field .iti { width: 100%; }
.ob-field .iti input.ob-input { width: 100%; }
.ob-field .iti__country-list { z-index: 20; max-width: 360px; white-space: normal; font-size: 14px; }
.ob-input-lg { height: 48px; border-radius: 12px; border-width: 1.5px; font-size: 15px; }
.ob-pw { display: flex; align-items: center; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: 0 4px 0 14px; }
.ob-pw:focus-within { border-color: #C4B5FD; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.ob-pw input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 15px; color: var(--ink); }
.ob-pw-btn { flex: none; height: 40px; padding: 0 10px; border: none; background: none; color: var(--pri); font-size: 13px; font-weight: 700; }

/* restaurant: Google switches, QR, loyalty */
.ob-switches { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ob-switch { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: none; background: #fff; text-align: left; color: var(--ink); }
.ob-switch + .ob-switch { border-top: 1px solid var(--line); }
.ob-switch > span { flex: 1; min-width: 0; }
.ob-switch b { display: block; font-size: 14px; font-weight: 700; }
.ob-switch > span > span { display: block; font-size: 12.5px; color: var(--mut); }
.ob-switch i { flex: none; width: 40px; height: 24px; border-radius: 999px; background: #D6D3E0; position: relative; transition: background .15s; }
.ob-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ob-switch.is-on i { background: var(--pri); }
.ob-switch.is-on i::after { transform: translateX(16px); }
.ob-qr { width: 160px; height: 160px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; align-self: flex-start; }
.ob-loyalty { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ob-lrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 14px; font-size: 14px; }
.ob-lrow + .ob-lrow { border-top: 1px solid var(--line); }
.ob-lrow > span:first-child { color: var(--mut); font-weight: 600; }
.ob-lrow b { font-size: 15px; font-weight: 800; }
.ob-stepper { display: flex; align-items: center; gap: 10px; }
.ob-stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1; }

/* ---------- preview ---------- */
.ob-pv { min-height: 0; overflow-y: auto; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 18px; }
.ob-pv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ob-pv-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--mut); }
.ob-pv-t { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.ob-pv-st { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; flex: none; background: var(--sf2); color: var(--mut); }
.ob-pv-st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ob-pv-st.is-live { background: var(--okS); color: var(--ok); }
.ob-pv-st.is-live::before { animation: ob-pulse 1.6s infinite; }
.ob-pv-st.is-conn { background: var(--warnS); color: var(--warn); }
.ob-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ob-tvwrap { max-width: 720px; width: 100%; align-self: center; }
.ob-tvwrap.is-portrait { max-width: 300px; }
.ob-tv { border-radius: 14px; background: #0B0A10; padding: 8px; box-shadow: 0 20px 40px rgba(20,18,40,.18); }
.ob-screen { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #1C1A26; }
.ob-tvwrap.is-portrait .ob-screen { aspect-ratio: 9/16; }
.ob-stand { width: 90px; height: 8px; margin: 0 auto; background: #0B0A10; border-radius: 0 0 6px 6px; }
.ob-zone { position: absolute; }
.ob-zone + .ob-zone { box-shadow: inset 2px 0 0 #0B0A10; }
.ob-tvwrap.is-portrait .ob-zone + .ob-zone { box-shadow: inset 0 2px 0 #0B0A10; }
.ob-zimg { position: absolute; inset: 0; background: #2F3A4A center/cover no-repeat; animation: ob-fade .6s; }
.ob-zimg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)); }
.ob-zimg span { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 1; font-family: 'Inter Tight', Inter, sans-serif; font-size: clamp(14px, 2vw, 24px); font-weight: 800; color: #fff; line-height: 1.05; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ob-zempty { position: absolute; inset: 10px; border-radius: 8px; border: 2px dashed rgba(255,255,255,.22); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: rgba(255,255,255,.7); text-align: center; padding: 8px; }
.ob-zempty b { font-size: 13px; }
.ob-zempty span { font-size: 11.5px; opacity: .8; }
.ob-zqueue { position: absolute; inset: 0; background: #1C1530; color: #fff; padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ob-zqueue small { font-size: 10px; font-weight: 800; letter-spacing: .1em; opacity: .7; }
.ob-zqueue .r { display: flex; justify-content: space-between; align-items: baseline; border-radius: 7px; padding: 6px 9px; background: rgba(255,255,255,.1); gap: 6px; }
.ob-zqueue .r.is-now { background: #7C3AED; }
.ob-zqueue .r b { font-family: 'Inter Tight', Inter, sans-serif; font-size: clamp(13px, 1.6vw, 20px); font-weight: 800; }
.ob-zqueue .r span { font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-tvname { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; z-index: 2; max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-facts { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.ob-pv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.ob-ck-head { display: flex; justify-content: space-between; align-items: baseline; }
.ob-ck-head b { font-size: 16px; font-weight: 800; }
.ob-ck-head span { font-size: 13px; font-weight: 700; color: var(--pri); }
.ob-ck-bar { height: 6px; border-radius: 3px; background: var(--sf2); overflow: hidden; }
.ob-ck-bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width .5s; }
.ob-ck { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.ob-ck > i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--mut); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; font-style: normal; }
.ob-ck.is-cur > i { border-color: var(--pri); background: var(--priS); color: var(--pri); }
.ob-ck.is-done > i { border-color: var(--ok); background: var(--ok); color: #fff; }
.ob-ck.is-skip > i { border-color: var(--line); background: var(--sf2); color: var(--mut); }
.ob-ck b { display: block; font-size: 14px; font-weight: 700; }
.ob-ck span { display: block; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.ob-ck.is-cur span { color: var(--pri); }
.ob-ck.is-done span { color: var(--ok); }
.ob-side-t { font-size: 16px; font-weight: 800; }
.ob-side-r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--sf2); animation: ob-pop .3s ease; }
.ob-side-r > i { flex: none; width: 36px; height: 36px; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 800; font-style: normal; display: flex; align-items: center; justify-content: center; }
.ob-side-r > div { flex: 1; min-width: 0; }
.ob-side-r b { display: block; font-size: 14px; font-weight: 700; }
.ob-side-r span { display: block; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-pvtoggle { display: none; }

.ob-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; background: #15131F; color: #fff; border-radius: 12px; padding: 12px 18px;
  font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: ob-pop .2s ease; max-width: calc(100vw - 32px); }
.ob-boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--mut); font-weight: 600; }
.ob-boot .ob-spin { color: var(--pri); width: 22px; height: 22px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .ob-top { padding: 0 20px; gap: 14px; }
  .ob-chip { padding: 0 6px; }
  .ob-chip em { display: none; }
  .ob-chip.is-cur em { display: inline; font-style: normal; }
  .ob-pv { padding: 22px 20px 32px; }
}
@media (max-width: 900px) {
  .ob-setup { height: auto; min-height: 100vh; }
  .ob-main { display: flex; flex-direction: column; }
  .ob-chat { border-right: none; height: calc(100vh - 64px); height: calc(100dvh - 64px); }
  .ob-top { height: 64px; }
  .ob-top img { height: 22px; }
  .ob-chips { display: none; }
  .ob-top .ob-spacer-m { display: block; }
  .ob-pv { display: none; }
  .ob-pv.is-open { display: flex; position: fixed; inset: 64px 0 0; z-index: 40; background: var(--bg); }
  .ob-pvtoggle { display: inline-flex; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; align-items: center; }
  .ob-hero h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .ob-top { padding: 0 16px; gap: 10px; }
  .ob-top img { height: 18px; }
  .ob-setup .ob-change { display: none; }
  .ob-ask { flex-direction: column; }
  .ob-feats, .ob-feats.is-2col { grid-template-columns: 1fr; }
  .ob-pvtoggle, .ob-top .ob-exit { white-space: nowrap; font-size: 13px; }
  .ob-log { padding: 16px 16px 10px; }
  .ob-compose { padding: 8px 12px 12px; }
  .ob-chat-head { padding: 12px 16px; }
  .ob-steps3, .ob-contact, .ob-stats3 { grid-template-columns: 1fr; }
  .ob-grid2, .ob-modes, .ob-variants { grid-template-columns: 1fr; }
  .ob-optcards { grid-template-columns: 1fr 1fr !important; }
  .ob-lib, .ob-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ob-times { grid-template-columns: repeat(2, 1fr); }
  .ob-code { font-size: 22px; letter-spacing: .2em; }
}
