/* Lyche AI demo v2 — Pulso design system (Brand DNA brief, 2026-10).
 * Burgundy = signature + primary action (pairs with lavender); lime = positive results /
 * live progress; navy = text and structure; ivory = base; violet = digital
 * accent. No burgundy controls on navy (contrast): lavender there. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --burgundy: #92003F; --burgundy-ink: #6E002F; --lavender: #CFACFC; --lavender-soft: #EEE2FE;
  --lime: #C6EB36; --navy: #0F324E; --navy-2: #163F60; --ivory: #F7EDE6; --violet: #663BE8;
  --bg: var(--ivory); --surface: #FFFDFB; --surface-2: #FBF5F0; --sunk: #F1E4DA;
  --ink: var(--navy); --ink-soft: #4A6276; --ink-faint: #6A8091;
  --line: rgba(15, 50, 78, .12); --line-strong: rgba(15, 50, 78, .22);
  --accent: var(--burgundy); --accent-ink: #fff; --brand-ink: var(--burgundy); --link: var(--violet); --focus: var(--violet);
  --good: #1D7A4F; --good-bg: #E3F4EA; --warn: #8A5A00; --warn-bg: #FFF1CC; --bad: #B3261E; --bad-bg: #FCE4E2; --info: #3557C9; --info-bg: #E6ECFF;
  --bubble-me: var(--burgundy); --bubble-me-ink: #fff; --bubble-ai: #FFFFFF;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-shell: 28px; --r-card: 20px; --r-control: 12px; --r-pill: 999px;
  --shadow: 0 1px 0 rgba(15,50,78,.04), 0 14px 34px -20px rgba(15,50,78,.38);
  --shadow-pop: 0 24px 60px -24px rgba(15,50,78,.45);
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
  --side: 252px; --tabbar: 68px;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px); --safe-right: env(safe-area-inset-right, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081C2C; --surface: #0F2A40; --surface-2: #0D263A; --sunk: #0B2234; --ink: #F4E9E1; --ink-soft: #B9C6D2; --ink-faint: #93A6B6;
    --line: rgba(244,233,225,.12); --line-strong: rgba(244,233,225,.24); --accent: #C2185B; --brand-ink: var(--lavender); --link: #A98BFF; --focus: #A98BFF;
    --lavender-soft: #2B2350; --good-bg: #123B2A; --warn-bg: #3A2E0E; --bad-bg: #42171A; --info-bg: #1B2A55; --good: #7FDCA8; --warn: #F2C35B; --bad: #FF8F86; --info: #9DB4FF;
    --bubble-me: #C2185B; --bubble-ai: #143450; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081C2C; --surface: #0F2A40; --surface-2: #0D263A; --sunk: #0B2234; --ink: #F4E9E1; --ink-soft: #B9C6D2; --ink-faint: #93A6B6;
  --line: rgba(244,233,225,.12); --line-strong: rgba(244,233,225,.24); --accent: #C2185B; --brand-ink: var(--lavender); --link: #A98BFF; --focus: #A98BFF;
  --lavender-soft: #2B2350; --good-bg: #123B2A; --warn-bg: #3A2E0E; --bad-bg: #42171A; --info-bg: #1B2A55; --good: #7FDCA8; --warn: #F2C35B; --bad: #FF8F86; --info: #9DB4FF;
  --bubble-me: #C2185B; --bubble-ai: #143450; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; } .icon.lg { width: 26px; height: 26px; }
[hidden] { display: none !important; }
.muted { color: var(--ink-soft); } .faint { color: var(--ink-faint); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--sunk); color: var(--ink-soft); white-space: nowrap; }
.tag.sample { background: var(--lavender-soft); color: var(--brand-ink); }
.tag.live { background: var(--navy); color: #fff; } .tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(198,235,54,.25); }
.tag.good { background: var(--good-bg); color: var(--good); } .tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.info { background: var(--info-bg); color: var(--info); } .tag.brand { background: var(--lavender-soft); color: var(--brand-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); display: inline-block; box-shadow: 0 0 0 3px rgba(198,235,54,.28); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-control); border: 1px solid transparent; font-weight: 600; font-size: 15px; background: var(--surface); color: var(--ink); border-color: var(--line-strong); transition: transform .14s var(--ease), background .2s, box-shadow .2s; text-decoration: none; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 22px -12px rgba(146,0,63,.7); }
.btn.primary:hover { background: var(--burgundy-ink); }
.btn.soft { background: var(--lavender-soft); color: var(--brand-ink); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--sunk); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-soft); min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(15,50,78,.14); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); padding: 7px 13px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--lavender); color: var(--navy); }
.chip .n { font-weight: 700; opacity: .7; }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 16px; }
textarea.input { resize: vertical; min-height: 80px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.pad { padding: 20px; }

/* ── Entry (access + business picker) ─────────────────────────── */
.entry { min-height: 100dvh; padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left); display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(1200px 600px at 85% -10%, rgba(207,172,252,.55), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(146,0,63,.16), transparent 60%), var(--bg); }
.entry-top { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 40px); gap: 12px; }
.brandmark { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brandmark img { width: 34px; height: 34px; border-radius: 10px; }
.entry-main { display: grid; place-items: center; padding: 8px 16px 24px; }
.access { width: min(980px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin-top: 14px; max-width: 30ch; }
.hero .lichi-row { display: flex; align-items: flex-end; gap: 14px; margin-top: 26px; }
.lichi-img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(146,0,63,.25)); animation: float 5s ease-in-out infinite; }
.say { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 12px 16px; font-weight: 500; box-shadow: var(--shadow); max-width: 300px; animation: pop .5s var(--spring) both .2s; }
.access-card { padding: 28px; display: grid; gap: 16px; }
.access-card h2 { font-size: 24px; }
.powered { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.powered b { color: var(--brand-ink); }
.entry-foot { padding: 16px; text-align: center; font-size: 13px; color: var(--ink-faint); }
.err { color: var(--bad); font-size: 14px; font-weight: 600; min-height: 20px; }
.picker { width: min(1120px, 100%); display: grid; gap: 22px; }
.picker-head { display: flex; align-items: flex-end; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.team-history-entry { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:22px; border-color:var(--lime); }
.team-history-entry > div { flex:1 1 230px; min-width:0; }
.team-history-entry h3 { margin:10px 0 6px; }
.team-history-entry p { color:var(--ink-soft); font-size:14px; }
.team-history-entry > .btn { background:var(--lime); color:var(--navy); border-color:transparent; }
.picker-head h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.035em; max-width: 18ch; }
.picker-head p { color: var(--ink-soft); font-size: 18px; margin-top: 10px; max-width: 46ch; }
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.biz { text-decoration: none; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); padding: 22px; display: grid; gap: 12px; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; position: relative; overflow: hidden; color: var(--ink); }
.biz:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.biz .art { height: 200px; border-radius: 18px; position: relative; overflow: hidden; }
.biz .art .bizphoto { transition: transform .5s var(--ease); }
.biz:hover .art .bizphoto { transform: scale(1.05); }
.biz .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,50,78,.38), rgba(15,50,78,0) 55%); pointer-events: none; }
.biz .art-badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.biz .art-badge svg { width: 22px; height: 22px; stroke: #fff; }
.bizphoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bizswitch .ic, .topbar .iconbtn[data-act="switch"], .quick .ic { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .biz .art .bizphoto { transition: none; } .biz:hover .art .bizphoto { transform: none; } }
.biz h3 { font-size: 22px; }
.biz .what { color: var(--ink-soft); font-size: 15px; }
.biz .try { display: flex; gap: 6px; flex-wrap: wrap; }
.biz .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-ink); }
.steps3 { display: flex; gap: 10px; flex-wrap: wrap; }
.steps3 span { display: inline-flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px 7px 7px; font-weight: 600; font-size: 14px; }
.steps3 b { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; }

/* ── Workspace shell ───────────────────────────────────────────── */
.shell { padding: var(--safe-top) var(--safe-right) 0 var(--safe-left); display: grid; grid-template-columns: var(--side) minmax(0, 1fr); height: 100dvh; }
.side { background: var(--navy); color: #EAF0F5; display: flex; flex-direction: column; padding: 18px 14px; gap: 6px; overflow-y: auto; }
.side .brandmark { color: #fff; padding: 2px 8px 12px; }
.bizswitch { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; text-align: left; margin-bottom: 8px; }
.bizswitch .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.bizswitch .ic svg { stroke: #fff; width: 22px; height: 22px; }
.bizswitch b { display: block; font-size: 15px; line-height: 1.2; }
.bizswitch small { color: var(--lavender); font-weight: 600; font-size: 12.5px; }
.navgroup { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #9FB3C4; font-weight: 700; padding: 14px 10px 6px; }
.navlink { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 12px; color: #DCE6EE; text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.navlink:hover { background: rgba(255,255,255,.07); }
.navlink[aria-current="page"] { background: var(--lavender); color: var(--navy); }
.navlink .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--lime); color: var(--navy); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 14px; }
.side-foot .btn { white-space: normal; text-align: left; justify-content: flex-start; }
.lichi-status { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 13.5px; }
.lichi-status img { width: 40px; height: 40px; }
.lichi-status b { display: block; color: #fff; font-size: 14px; }
.side-actions { display: flex; gap: 8px; }
.demo-version { display: block; text-align: right; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
.side-foot .demo-version { color: #CFDAE4; }
.side-actions .iconbtn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.side-actions .seg { background: rgba(255,255,255,.08); }
.side-actions .seg button { color: #CFDAE4; }
.side-actions .seg button[aria-pressed="true"] { background: var(--lavender); color: var(--navy); }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); min-height: 66px; }
.topbar h1 { font-size: 22px; }
.topbar .sub { font-size: 13.5px; color: var(--ink-soft); }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.mobile-only { display: none !important; }
.view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: clip; }
.view.fixed { overflow: hidden; display: flex; flex-direction: column; }
.wrap { padding: 22px 24px 40px; max-width: 1280px; width: 100%; margin: 0 auto; }
.tabbar { display: none; }

/* Page header (Tempo Pro pattern): eyebrow + headline that summarises */
.headline { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--r-card); background: linear-gradient(120deg, var(--navy), #1A4466 70%, #3B2A6B); color: #fff; position: relative; overflow: hidden; margin-bottom: 18px; }
.headline img { width: 76px; height: 76px; flex: none; }
.headline .eyebrow { flex-wrap: wrap; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--lavender); font-weight: 700; display: flex; gap: 8px; align-items: center; }
.headline > div { min-width: 0; flex: 1; }
.headline > .actions { flex: none; }
.headline h2 { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.25; margin-top: 4px; font-weight: 600; letter-spacing: -.015em; }
.headline .actions { margin-left: auto; display: flex; gap: 8px; }
.headline .btn.soft { background: var(--lavender); color: var(--navy); }
.headline::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(207,172,252,.28), transparent 70%); pointer-events: none; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px; display: grid; gap: 6px; align-content: start; }
.kpi .k-top { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.kpi .k-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--lavender-soft); color: var(--brand-ink); }
.kpi .k-val { font: 700 clamp(22px, 2.3vw, 29px)/1.1 var(--font-display); letter-spacing: -.02em; }
.kpi .k-foot { font-size: 13px; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* Positive totals share the sales treatment in both themes. */
.kpi.hero { background: var(--lime); color: var(--navy); border-color: transparent; }
.kpi.hero .k-top, .kpi.hero .k-foot { color: var(--navy); }
.kpi.hero .k-ic { background: rgba(15,50,78,.12); color: var(--navy); }
.kpi.attn { box-shadow: inset 0 0 0 2px var(--warn), var(--shadow); }
.up { color: var(--good); font-weight: 700; } .kpi.hero .up { color: var(--navy); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.panel-card { padding: 18px; }
.panel-card h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.panel-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-card .head .tag { margin-left: auto; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 220px; padding-top: 8px; }
.bar { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: flex-end; height: 100%; min-height: 0; }
.bar .col { flex: none; width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--lavender), #B48AF5); position: relative; transform-origin: bottom; animation: grow .7s var(--ease) both; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.bar .col .ai { background: var(--lime); width: 100%; }
.bars:not(.appointments) .bar.today .col { background: var(--lime); }
.bar .v { font-size: 12.5px; font-weight: 700; }
.bar .l { font-size: 12px; color: var(--ink-soft); text-transform: capitalize; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.stars { display: flex; align-items: baseline; gap: 10px; }
.stars b { font: 700 40px/1 var(--font-display); }
.meter { height: 10px; border-radius: 6px; background: var(--sunk); overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), #49B57E); border-radius: 6px; }
.toplist { display: grid; gap: 10px; }
.toplist div { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.toplist .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.toplist .ti svg { stroke: #fff; width: 18px; height: 18px; }
.toplist span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-summary { display: flex; gap: 12px; align-items: flex-start; }
.ai-summary img { width: 48px; height: 48px; flex: none; }
.ai-summary p { font-size: 15.5px; line-height: 1.55; }
.quick { display: grid; gap: 8px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.quick a .tag { margin-left: auto; }

/* ── Chat (customer view) ─────────────────────────────────────── */
.chat-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(360px, 480px) minmax(0, 1fr); gap: 20px; padding: 20px 24px; }
.phonechat { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-radius: var(--r-shell); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; color: #fff; font-size: 15px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lichi { background: var(--lavender-soft); }
.avatar.lichi img { width: 120%; height: 120%; object-fit: contain; margin-top: 6px; }
.chat-head b { display: block; font-size: 15.5px; line-height: 1.2; }
.chat-head small { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.chat-head .right { margin-left: auto; display: flex; gap: 6px; }
.shelfstrip { display: none; gap: 8px; padding: 8px 12px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.shelfstrip::-webkit-scrollbar { display: none; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 4px; background: radial-gradient(500px 300px at 100% 0, rgba(207,172,252,.18), transparent 70%), var(--surface-2); overscroll-behavior: contain; }
.msgs > *, .timeline > * { flex-shrink: 0; }
.day-sep { align-self: center; font-size: 12px; font-weight: 700; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: var(--r-pill); margin: 4px 0 10px; }
.row { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; animation: msgIn .32s var(--ease) both; }
.row.me { justify-content: flex-end; }
.row .mini { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--lavender-soft); overflow: hidden; display: grid; place-items: center; }
.row .mini img { width: 34px; height: 34px; object-fit: contain; margin-top: 4px; }
.row .mini.ghost { visibility: hidden; }
.bubble { max-width: min(78%, 440px); padding: 9px 13px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.row.ai .bubble { background: var(--bubble-ai); border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(15,50,78,.06); }
.row.me .bubble { background: var(--bubble-me); color: var(--bubble-me-ink); border-bottom-right-radius: 6px; }
.row.human .bubble { background: var(--lavender-soft); border: 1px solid rgba(102,59,232,.25); border-bottom-left-radius: 6px; }
.bubble .who { display: block; font-size: 11.5px; font-weight: 700; color: var(--violet); margin-bottom: 2px; }
.bubble time { display: block; font-size: 11px; opacity: .6; text-align: right; margin-top: 2px; }
.row + .row.same { margin-top: -1px; }
.event { align-self: center; display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-pill); padding: 5px 12px; margin: 8px 0; max-width: 92%; text-align: center; }
.event a { font-weight: 700; color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.typing-label { font-size: 12px; color: var(--ink-soft); margin: 0 0 4px 36px; }
.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 12px 2px 50px; }
.qr { border: 1.5px solid var(--accent); color: var(--brand-ink); background: var(--surface); border-radius: var(--r-pill); padding: 7px 13px; font-size: 14px; font-weight: 600; animation: pop .35s var(--spring) both; text-align: left; }
.qr:hover { background: var(--lavender-soft); }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; border-radius: 23px; padding: 11px 16px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 16px; line-height: 1.4; }
.send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px -10px rgba(146,0,63,.8); }
.send[disabled] { opacity: .45; }
.paused-note { padding: 8px 14px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; font-weight: 600; text-align: center; }

/* in-chat cards */
.carousel { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px 36px; scroll-snap-type: x mandatory; scrollbar-width: thin; max-width: 100%; }
.pcard { flex: 0 0 168px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(15,50,78,.08); animation: pop .4s var(--spring) both; }
.pcard .pic { height: 96px; display: grid; place-items: center; position: relative; }
.pcard .pic svg { width: 46px; height: 46px; stroke: #fff; stroke-width: 1.6; }
.pcard .pic .tag { position: absolute; left: 8px; top: 8px; background: rgba(255,255,255,.92); color: var(--navy); }
.pcard .body { padding: 10px 11px 11px; display: grid; gap: 4px; flex: 1; }
.pcard b { font-size: 14px; line-height: 1.25; }
.pcard .price { font: 700 16px/1 var(--font-display); color: var(--brand-ink); }
.pcard .btn { margin-top: auto; }
.ocard { margin: 4px 0 6px 36px; max-width: min(86%, 380px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); animation: pop .45s var(--spring) both; }
.ocard .oc-head { padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: var(--lavender-soft); }
.ocard .oc-head .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--burgundy); color: #fff; display: grid; place-items: center; }
.ocard .oc-head b { font-size: 15px; display: block; }
.ocard .oc-head small { font-size: 12.5px; color: var(--ink-soft); }
.ocard .oc-body { padding: 12px 14px; display: grid; gap: 8px; font-size: 14.5px; }
.ocard .line { display: flex; justify-content: space-between; gap: 10px; }
.ocard .line.total { font-weight: 700; font-size: 16px; border-top: 1px dashed var(--line-strong); padding-top: 8px; }
.ocard .pay { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; font-size: 14px; }
.ocard .paid { color: var(--good); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.acard .big { display: flex; gap: 14px; align-items: center; }
.acard .cal { width: 58px; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid var(--line); flex: none; background: var(--surface); }
.acard .cal small { display: block; background: var(--burgundy); color: #fff; font-size: 11.5px; font-weight: 700; text-transform: uppercase; padding: 2px 0; }
.acard .cal b { display: block; font: 700 24px/1.3 var(--font-display); }

/* side panel next to chat */
.chat-side { min-height: 0; overflow-y: auto; display: grid; gap: 14px; align-content: start; padding-bottom: 8px; }
.side-title { display: flex; align-items: center; gap: 10px; }
.side-title h2 { font-size: 22px; }
.side-title .tag { margin-left: auto; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.toy { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.toy:hover { transform: translateY(-3px); }
.toy .pic { height: 108px; display: grid; place-items: center; position: relative; }
.toy .pic svg { width: 54px; height: 54px; stroke: #fff; stroke-width: 1.6; }
.toy .pic .tag { position: absolute; right: 8px; top: 8px; background: rgba(255,255,255,.92); color: var(--navy); }
.toy .pic .tag.bad { background: var(--bad); color: #fff; }
.toy .body { padding: 12px; display: grid; gap: 4px; flex: 1; }
.toy b { font-size: 15px; line-height: 1.25; }
.toy .price { font: 700 18px/1 var(--font-display); color: var(--brand-ink); margin-top: 2px; }
.toy .row2 { display: flex; gap: 6px; margin-top: 8px; }
.toy .row2 .btn { flex: 1; }
.infocards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.infocard { padding: 16px; display: grid; gap: 10px; align-content: start; }
.infocard h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.paylist { display: grid; gap: 8px; }
.payitem { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; width: 100%; color: var(--ink); }
.payitem .pi { width: 36px; height: 36px; border-radius: 10px; background: var(--lavender-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.payitem b { display: block; font-size: 14.5px; }
.payitem small { color: var(--ink-soft); font-size: 13px; }
.payitem .amt { margin-left: auto; font: 700 16px/1 var(--font-display); color: var(--brand-ink); white-space: nowrap; }
.tryme { padding: 16px; display: grid; gap: 10px; background: linear-gradient(135deg, var(--lavender-soft), var(--surface)); }
.tryme h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.tryme ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.pros { display: grid; gap: 8px; }
.pro { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.pro .avatar { width: 36px; height: 36px; font-size: 13px; }
.pro b { display: block; font-size: 14.5px; }
.pro small { color: var(--ink-soft); }
.banner-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--navy); color: #fff; text-decoration: none; animation: pop .5s var(--spring) both; }
.banner-link img { width: 44px; height: 44px; }
.banner-link b { display: block; }
.banner-link small { color: var(--lavender); }
.banner-link .btn { margin-left: auto; background: var(--lavender); color: var(--navy); border: 0; }

/* ── Call simulator ───────────────────────────────────────────── */
.call-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; padding: 20px 28px; align-items: start; overflow-y: auto; }
.phone { width: 330px; height: min(680px, calc(100dvh - 140px)); min-height: 560px; border-radius: 52px; padding: 12px; background: linear-gradient(145deg, #1E2C3A, #0A141E); box-shadow: 0 40px 80px -30px rgba(15,50,78,.6), inset 0 0 0 2px #3A4A5A, inset 0 0 0 5px #0A141E; position: relative; justify-self: center; }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #2A3A4A; }
.phone::before { left: -3px; top: 130px; height: 60px; box-shadow: 0 80px 0 #2A3A4A; }
.phone::after { right: -3px; top: 170px; height: 90px; }
.screen { width: 100%; height: 100%; border-radius: 41px; overflow: hidden; position: relative; color: #fff; display: flex; flex-direction: column; background: radial-gradient(420px 380px at 50% 18%, rgba(207,172,252,.45), transparent 60%), linear-gradient(180deg, #2A1446 0%, #3D0A2C 45%, #0F324E 100%); }
.island { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 104px; height: 30px; border-radius: 16px; background: #000; z-index: 2; display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; gap: 6px; transition: width .4s var(--ease); }
.island.on { width: 150px; justify-content: space-between; }
.island .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.island .wave { display: flex; gap: 2px; align-items: center; height: 14px; }
.island .wave i { width: 2px; background: var(--lime); border-radius: 1px; height: 4px; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; font-size: 14px; font-weight: 600; height: 44px; }
.statusbar .sig { display: flex; gap: 5px; align-items: center; }
.statusbar .sig svg { width: 17px; height: 12px; fill: #fff; stroke: none; }
.callee { text-align: center; padding: 40px 18px 0; display: grid; justify-items: center; gap: 6px; }
.callee .ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; position: relative; background: rgba(255,255,255,.1); margin-bottom: 10px; }
.callee .ring img { width: 112px; height: 112px; object-fit: contain; margin-top: 10px; }
.callee .ring::before, .callee .ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(207,172,252,.55); opacity: 0; }
.phone.speaking .callee .ring::before { animation: ripple 1.4s infinite; } .phone.speaking .callee .ring::after { animation: ripple 1.4s infinite .5s; }
.phone.listening .callee .ring { box-shadow: 0 0 0 4px rgba(198,235,54,.6); }
.callee h2 { font-size: 27px; font-weight: 600; }
.callee .num { font-size: 15px; color: #DCCDF2; }
.callee .state { font-size: 15px; color: #fff; opacity: .85; margin-top: 4px; min-height: 22px; font-variant-numeric: tabular-nums; }
.callee .voicepill { margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; border-radius: var(--r-pill); background: rgba(255,255,255,.14); padding: 6px 12px; font-size: 13px; font-weight: 600; border: 0; color: #fff; }
.callee .caption { margin: 18px 16px 0; min-height: 66px; font-size: 15px; line-height: 1.4; color: #F4ECFF; text-align: center; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.callpad { margin-top: auto; padding: 0 30px 34px; display: grid; gap: 22px; }
.callpad .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; justify-items: center; }
.cbtn { display: grid; justify-items: center; gap: 7px; background: none; border: 0; color: #fff; font-size: 12.5px; font-weight: 500; }
.cbtn span.c { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); transition: background .2s, transform .15s; }
.cbtn:active span.c { transform: scale(.94); }
.cbtn[aria-pressed="true"] span.c { background: #fff; color: var(--navy); }
.cbtn[disabled] { opacity: .45; }
.cbtn .icon { width: 26px; height: 26px; }
.bigcall { justify-self: center; width: 74px; height: 74px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; transition: transform .15s; }
.bigcall:active { transform: scale(.94); }
.bigcall.go { background: #34C759; box-shadow: 0 10px 28px -8px rgba(52,199,89,.8); animation: breathe 2.2s ease-in-out infinite; }
.bigcall.end { background: #FF3B30; box-shadow: 0 10px 28px -8px rgba(255,59,48,.8); }
.bigcall .icon { width: 32px; height: 32px; }
.bigcall.end .icon { transform: rotate(135deg); }
.homebar { width: 120px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.7); position: absolute; bottom: 8px; left: 50%; translate: -50% 0; }
.call-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.voice { border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); padding: 12px; text-align: left; display: grid; gap: 4px; color: var(--ink); position: relative; }
.voice[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(146,0,63,.14); }
.voice b { font-size: 15px; }
.voice small { color: var(--ink-soft); font-size: 12.5px; }
.voice .vi { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lavender-soft); color: var(--brand-ink); margin-bottom: 4px; }
.voice.clone { border-style: dashed; }
.transcript { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; padding-right: 4px; }
.tline { display: flex; gap: 8px; font-size: 14.5px; animation: msgIn .3s var(--ease) both; }
.tline b { flex: none; width: 64px; color: var(--ink-soft); font-size: 13px; padding-top: 1px; }
.tline.ai b { color: var(--brand-ink); }
.tline.event { color: var(--ink-soft); font-style: italic; }
.empty { padding: 26px 16px; text-align: center; color: var(--ink-soft); display: grid; gap: 8px; justify-items: center; }
.empty img { width: 84px; height: 84px; }

/* ── Panel modules ───────────────────────────────────────────── */
.inbox { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); border-top: 1px solid var(--line); }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.inbox-tools { padding: 12px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.channels { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; flex-wrap: wrap; }
.channels .ch { display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); }
.list { flex: 1; overflow-y: auto; min-height: 0; }
.citem { display: flex; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-top: 0; color: var(--ink); position: relative; }
.citem:hover { background: var(--surface-2); }
.citem[aria-current="true"] { background: var(--lavender-soft); }
.citem .avatar { width: 42px; height: 42px; position: relative; overflow: visible; }
.citem .avatar .chb { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--surface); color: #fff; }
.citem .avatar .chb svg { width: 11px; height: 11px; stroke-width: 2.4; }
.citem .mid { flex: 1; min-width: 0; display: grid; gap: 2px; }
.citem .top { display: flex; gap: 8px; align-items: baseline; }
.citem .top b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem .top time { margin-left: auto; font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.citem .last { font-size: 13.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem .tags { display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap; align-items: center; }
.citem .tag { padding: 2px 8px; font-size: 12px; }
.inbox-tools .chip { padding: 5px 11px; font-size: 13.5px; }
.citem.live { background: linear-gradient(90deg, rgba(198,235,54,.16), transparent 60%); }
.detail { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--surface-2); }
.detail-head { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.detail-head b { font-size: 16px; display: block; }
.detail-head small { color: var(--ink-soft); font-size: 13px; }
.detail-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.handoff { margin: 12px 16px 0; padding: 12px 14px; border-radius: 16px; background: var(--warn-bg); color: var(--warn); display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 14.5px; flex-wrap: wrap; }
.handoff.human { background: var(--lavender-soft); color: var(--brand-ink); }
.handoff .btn { margin-left: auto; }
.timeline { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.timeline .row.customer { justify-content: flex-start; }
.timeline .row.customer .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.timeline .row.ai, .timeline .row.human { justify-content: flex-end; }
.timeline .row.ai .bubble { background: var(--navy); color: #fff; border: 0; border-bottom-right-radius: 6px; border-bottom-left-radius: 18px; }
:root[data-theme="dark"] .timeline .row.ai .bubble { background: #1E4A70; }
.timeline .row.human .bubble { background: var(--burgundy); color: #fff; border: 0; border-bottom-right-radius: 6px; border-bottom-left-radius: 18px; }
.timeline .row.human .bubble .who, .timeline .row.ai .bubble .who { color: var(--lavender); }
.timeline .ocard { margin-left: auto; margin-right: 0; }
.no-sel { flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink-soft); padding: 30px; }
.no-sel img { width: 110px; }
.back-btn { display: none; }

/* orders */
.ord-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { flex: 1; min-width: 200px; position: relative; }
.toolbar .search .icon { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--ink-faint); }
.toolbar .search input { padding-left: 40px; }
.statuschips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.statuschips::-webkit-scrollbar { display: none; }
.otable { overflow: hidden; }
.orow { display: grid; grid-template-columns: 92px minmax(0, 1.3fr) minmax(0, 1.6fr) 120px 150px 130px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-top: 0; color: var(--ink); font-size: 14.5px; }
.orow.head { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; background: var(--surface-2); }
button.orow:hover { background: var(--surface-2); }
.orow .num { font-weight: 700; }
.orow .num small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 12px; }
.orow .cust b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orow .cust small { color: var(--ink-soft); display: flex; gap: 4px; align-items: center; }
.orow .items { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.orow .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.orow .payc small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.orow.mine { background: linear-gradient(90deg, rgba(198,235,54,.18), transparent 50%); }
.more { padding: 14px; text-align: center; }

/* drawer */
.scrim { position: fixed; inset: 0; background: rgba(8,28,44,.42); z-index: 40; animation: fade .2s both; }
.drawer { padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left); position: fixed; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); z-index: 41; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slideIn .32s var(--ease) both; }
.drawer-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.drawer-head h2 { font-size: 22px; }
.drawer-head .iconbtn { margin-left: auto; flex: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: grid; gap: 16px; align-content: start; }
.drawer-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.drawer-foot .btn { flex: 1; }
.stepper { display: flex; align-items: flex-start; }
.stepper .st { flex: 1; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-faint); text-align: center; position: relative; }
.stepper .st i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--ink-faint); font-style: normal; z-index: 1; }
.stepper .st::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 3px; background: var(--sunk); }
.stepper .st:first-child::before { display: none; }
.stepper .st.done { color: var(--ink); } .stepper .st.done i { background: var(--good); color: #fff; } .stepper .st.done::before { background: var(--good); }
.stepper .st.now { color: var(--brand-ink); } .stepper .st.now i { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(146,0,63,.16); } .stepper .st.now::before { background: var(--good); }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; gap: 12px; justify-content: space-between; font-size: 14.5px; }
.kv span { color: var(--ink-soft); }
.kv b { text-align: right; }
.section-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--ink-soft); }
.notice { padding: 12px 14px; border-radius: 14px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.notice.good { background: var(--good-bg); color: var(--good); } .notice.warn { background: var(--warn-bg); color: var(--warn); } .notice.brand { background: var(--lavender-soft); color: var(--brand-ink); }

/* agenda */
.agenda-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.datenav { display: flex; gap: 6px; align-items: center; }
.datenav b { font: 650 18px/1 var(--font-display); min-width: 210px; text-align: center; }
.agenda-tools .seg { margin-left: auto; }
.board { overflow: auto; max-height: calc(100dvh - 330px); min-height: 420px; position: relative; }
.board-grid { display: grid; position: relative; min-width: 100%; }
.board .colhead { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 8px; display: flex; gap: 8px; align-items: center; min-width: 0; }
.board .colhead .avatar { width: 32px; height: 32px; font-size: 12px; }
.board .colhead b { font-size: 13.5px; display: block; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .colhead small { font-size: 12px; color: var(--ink-soft); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .corner { position: sticky; left: 0; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); }
.board .times { position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); }
.board .times div { position: absolute; left: 0; right: 0; font-size: 12px; color: var(--ink-faint); text-align: right; padding-right: 8px; translate: 0 -8px; font-variant-numeric: tabular-nums; }
.board .col { position: relative; border-right: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); }
.board .col.off { background-color: var(--surface-2); }
.appt { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 5px 8px; font-size: 12.5px; line-height: 1.25; overflow: hidden; text-align: left; border: 0; border-left: 4px solid; display: grid; align-content: start; gap: 1px; transition: transform .15s, box-shadow .15s; color: var(--ink); }
.appt:hover { transform: scale(1.02); box-shadow: var(--shadow); z-index: 2; }
.appt b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt small { font-size: 11.5px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt .ai-mark { position: absolute; right: 5px; top: 5px; width: 16px; height: 16px; }
.appt.mine { box-shadow: 0 0 0 2px var(--lime), var(--shadow); }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--burgundy); z-index: 2; pointer-events: none; }
.nowline::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--burgundy); }
.s-agendada { background: #EFE9FF; border-color: #7B5CF0 !important; }
.s-por_confirmar { background: #FFF1CC; border-color: #D69A00 !important; }
.s-confirmada { background: #E3F4EA; border-color: #1D7A4F !important; }
.s-en_sala { background: #DDF3F8; border-color: #0E8AA8 !important; }
.s-en_atencion { background: #FBE1EC; border-color: #92003F !important; }
.s-atendida { background: #E8EDF2; border-color: #4A6276 !important; }
.s-no_asistio { background: #FCE4E2; border-color: #B3261E !important; }
.s-cancelada { background: #F1F1F1; border-color: #9AA5AF !important; text-decoration: line-through; opacity: .75; }
:root[data-theme="dark"] .appt { color: var(--navy); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { min-height: 320px; display: flex; flex-direction: column; overflow: hidden; }
.wday .wh { padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.wday .wh b { font: 650 20px/1 var(--font-display); }
.wday .wh span { font-size: 12.5px; color: var(--ink-soft); text-transform: capitalize; }
.wday.today { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.wday .wl { padding: 8px; display: grid; gap: 6px; overflow-y: auto; max-height: 520px; }
.wday .appt { position: relative; left: 0; right: 0; padding-right: 22px; }
.wday .appt b { white-space: normal; display: block; }
.wday .more-n { font-size: 12.5px; color: var(--ink-soft); text-align: center; padding: 4px; }
.alist { display: grid; }
.aitem { display: grid; grid-template-columns: 86px 6px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); background: transparent; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; color: var(--ink); }
.aitem:hover { background: var(--surface-2); }
.aitem .t { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.aitem .bar6 { width: 6px; height: 36px; border-radius: 3px; border-left: 6px solid; }
.aitem b { display: block; font-size: 15px; }
.aitem small { color: var(--ink-soft); font-size: 13px; }
.pro-pick { display: none; }
.statuslegend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.statuslegend span { display: inline-flex; gap: 6px; align-items: center; }
.statuslegend i { width: 12px; height: 12px; border-radius: 4px; border-left: 4px solid; }

/* config */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.cfg-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.cfg-section { padding: 20px; display: grid; gap: 16px; }
.cfg-section h3 { font-size: 18px; }
.cfg-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: center; }
.rules { display: grid; gap: 8px; }
.rule { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; }
.rule p { flex: 1; }
.rule .lock { color: var(--ink-faint); margin-top: 2px; }
.rule.off p { opacity: .5; text-decoration: line-through; }
.switch { position: relative; width: 44px; height: 26px; flex: none; border-radius: 13px; background: var(--line-strong); border: 0; padding: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--good); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.addrow { display: flex; gap: 8px; }
.addrow .input { flex: 1; }
.preview-chat { padding: 16px; display: grid; gap: 10px; position: sticky; top: 10px; }
.preview-chat .bubble { background: var(--bubble-ai); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; max-width: 100%; }
.rec { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 6px 0; }
.recbtn { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -12px rgba(146,0,63,.8); }
.recbtn.on { background: #FF3B30; animation: breathe 1.4s ease-in-out infinite; }
.recbtn .icon { width: 34px; height: 34px; }
.script { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 16px; line-height: 1.6; text-align: left; }
.timer { font: 700 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; text-align: left; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--burgundy); flex: none; }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(16px + var(--safe-left)); background: rgba(8,28,44,.5); animation: fade .2s both; }
.modal .box { width: min(560px, 100%); max-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom)); overflow-y: auto; padding: 24px; display: grid; gap: 16px; animation: pop .35s var(--spring) both; }
.modal .box h2 { font-size: 24px; }
.toasts { position: fixed; top: calc(16px + var(--safe-top)); left: 50%; translate: -50% 0; z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-pop); display: flex; gap: 10px; align-items: center; animation: toastIn .4s var(--spring) both; max-width: min(92vw, 520px); }
.toast a { color: var(--lime); font-weight: 700; text-decoration: none; white-space: nowrap; }
.toast .dot { flex: none; }
.loading { display: grid; place-items: center; padding: 60px; color: var(--ink-soft); gap: 10px; }
.loading img { width: 40px; animation: float 2s ease-in-out infinite; }
.loading lyche-tumble { --lyche-size: 32px; }
.chat-pending { padding: 8px 12px; }
.chat-pending lyche-tumble { --lyche-size: 22px; }
.skel { background: linear-gradient(90deg, var(--sunk), var(--surface-2), var(--sunk)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes ripple { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1240px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cfg { grid-template-columns: 1fr; }
  .preview-chat { position: static; }
}
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .side { display: none; }
  .mobile-only { display: inline-flex !important; }
  .desk-only { display: none !important; }
  .topbar { padding: 10px 14px; min-height: 58px; position: sticky; top: 0; z-index: 5; }
  .topbar h1 { font-size: 18px; }
  .topbar .sub { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; border-radius: 12px; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--brand-ink); }
  .tabbar a[aria-current="page"] .icon { background: var(--lavender-soft); border-radius: 10px; }
  .tabbar .icon { width: 44px; height: 28px; padding: 3px 11px; }
  .tabbar .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--lime); color: var(--navy); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
  .wrap { padding: 14px 14px 28px; }
  .chat-layout { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .chat-side { display: none; }
  .phonechat { border-radius: 0; border: 0; box-shadow: none; }
  .shelfstrip { display: flex; }
  .call-layout { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .call-side { display: none; }
  .phone { width: 100%; height: 100%; min-height: 0; border-radius: 0; padding: 0; box-shadow: none; background: none; }
  .phone::before, .phone::after, .island, .statusbar, .homebar { display: none; }
  .screen { border-radius: 0; }
  .call-layout { overflow: hidden; }
  .callee { padding-top: 24px; }
  .callpad { padding-bottom: 22px; }
  .headline { padding: 16px; border-radius: 18px; }
  .headline img { width: 54px; height: 54px; }
  .headline .actions { display: none; }
  .headline h2 { font-size: 16.5px; line-height: 1.3; }
  .headline .eyebrow .tag { display: none; }
  .kpis.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpis.compact .kpi.hero { grid-column: auto; }
  .kpis.compact .kpi { padding: 10px; gap: 2px; }
  .kpis.compact .k-ic { display: none; }
  .kpis.compact .k-top { font-size: 12px; line-height: 1.2; min-height: 29px; align-items: flex-start; }
  .kpis.compact .k-val { font-size: 21px; }
  .kpis.compact .kpi:nth-child(n+4) { display: none; }
  .kpis, .ord-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px; }
  .kpi.hero { grid-column: span 2; }
  .grid2 { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; border-top: 0; }
  .inbox.has-sel .inbox-list { display: none; }
  .inbox:not(.has-sel) .detail { display: none; }
  .back-btn { display: inline-grid; }
  .orow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; }
  .orow.head { display: none; }
  .orow .items, .orow .payc { display: none; }
  .orow .num { grid-column: 1; display: flex; gap: 8px; align-items: baseline; }
  .orow .num small { display: inline; }
  .orow .amt { grid-column: 2; grid-row: 1; text-align: right; }
  .orow .cust { grid-column: 1; }
  .orow .st { grid-column: 2; grid-row: 2; justify-self: end; }
  .week { grid-template-columns: 1fr; }
  .wday { min-height: 0; }
  .wday .wl { max-height: none; }
  .agenda-tools .seg { margin-left: 0; }
  .datenav b { min-width: 0; font-size: 16px; flex: 1; }
  .datenav { width: 100%; }
  #sfilter, #sites { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  #sfilter::-webkit-scrollbar, #sites::-webkit-scrollbar { display: none; }
  .agenda-tools { gap: 8px; }
  .board.picked .colhead, .board.picked .corner { display: none; }
  .toasts { left: calc(12px + var(--safe-left)); right: calc(12px + var(--safe-right)); translate: none; top: calc(10px + var(--safe-top)); }
  .toast { max-width: 100%; width: 100%; font-size: 14px; padding: 10px 14px; }
  .pro-pick { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
  .pro-pick .who { flex: 1; text-align: center; }
  .pro-pick .who b { display: block; font-size: 15px; } .pro-pick .who small { color: var(--ink-soft); font-size: 12.5px; }
  .board { max-height: none; min-height: 0; }
  .cfg-row { grid-template-columns: 1fr; gap: 6px; }
  .drawer { width: 100%; top: auto; max-height: 92dvh; border-radius: 24px 24px 0 0; animation-name: sheetIn; }
  .access { grid-template-columns: 1fr; gap: 18px; }
  .hero .lichi-row { margin-top: 16px; }
  .lichi-img { width: 88px; height: 88px; }
  .biz-grid { grid-template-columns: 1fr; gap: 10px; }
  .biz { grid-template-columns: 108px 1fr; padding: 12px; gap: 6px 14px; align-items: center; }
  .biz .art { height: 108px; grid-row: span 3; border-radius: 16px; }
  .biz .art-badge { width: 30px; height: 30px; left: 6px; bottom: 6px; border-radius: 9px; }
  .biz .art-badge svg { width: 16px; height: 16px; }
  .biz h3 { font-size: 18px; }
  .biz .what { font-size: 14px; }
  .biz .try { display: none; }
  .picker-head p { font-size: 16px; }
  .steps3 { display: none; }
  .bars { height: 150px; gap: 6px; }
}
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 420px) {
  .topbar .right .btn span { display: none; }
  .callpad .grid3 { gap: 10px; }
  .cbtn span.c { width: 60px; height: 60px; }
}

/* ── v2.1: scannable offer lists, back-to-start, call layout ─────── */
.homelink { display: flex; align-items: center; gap: 10px; margin: -4px 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--lavender); color: var(--navy); text-decoration: none; font-weight: 700; font-size: 14.5px; box-shadow: 0 8px 20px -14px rgba(207,172,252,.9); transition: transform .15s var(--ease); }
.homelink:hover { transform: translateX(-2px); }
.homelink small { display: block; font-weight: 600; font-size: 12px; opacity: .75; }
.backstart { margin-top: 4px; }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.listcard { padding: 14px 14px 8px; display: grid; gap: 6px; align-content: start; }
.listcard h3 { font-size: 15.5px; display: flex; gap: 8px; align-items: center; padding: 0 4px 4px; }
.listcard .label { padding: 8px 4px 0; }
.listcard .chips { padding: 0 4px 8px; }
.lrows { display: grid; }
.lrow { display: flex; align-items: center; gap: 11px; padding: 9px 6px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; width: 100%; border-radius: 0; font: inherit; }
.lrows .lrow:first-child { border-top: 0; }
button.lrow { cursor: pointer; border-radius: 12px; transition: background .15s; }
button.lrow:hover { background: var(--lavender-soft); }
button.lrow:hover + .lrow { border-top-color: transparent; }
.lrow .li { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--lavender-soft); color: var(--brand-ink); }
.lrow .lt { flex: 1; min-width: 0; display: grid; }
.lrow .lt b { font-size: 14.5px; line-height: 1.25; }
.lrow .lt small { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .la { font: 700 15px/1 var(--font-display); color: var(--brand-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bizcard { overflow: visible; }
.chat-side { display: flex; flex-direction: column; gap: 14px; }
.chat-side > * { flex: none; }
.bizhead { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: #fff; border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0; }
.bizhead .bi { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.18); flex: none; }
.bizhead .bi svg { stroke: #fff; }
.bizhead b { display: block; font: 650 18px/1.15 var(--font-display); }
.bizhead small { font-size: 13px; opacity: .85; }
.bizfacts { display: grid; gap: 6px; padding: 12px 16px 4px; font-size: 13.5px; color: var(--ink-soft); }
.bizfacts span { display: flex; gap: 8px; align-items: flex-start; }
.bizfacts .icon { margin-top: 2px; flex: none; }
.bizcard .pro.solo { margin: 8px 16px 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bizcard .pro.solo .tag { margin-left: auto; }
.prosgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; padding: 8px 12px 14px; }
.prosgrid .pro { padding: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.prosgrid .pro span { min-width: 0; }
.prosgrid .pro b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.prosgrid .pro small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.prosgrid .avatar { width: 32px; height: 32px; font-size: 12px; }
.chat-side > .bizcard, .chat-side > .twocol { flex: none; }
.call-heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.call-offer { display: grid; gap: 12px; }
.call-offer .twocol { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.voices { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.voice { padding: 10px 12px; }
.callee .pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.callee .pills .voicepill { margin-top: 0; }
.callconsent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; color: #EDE3FF; background: rgba(255,255,255,.1); border-radius: 12px; padding: 8px 10px; text-align: left; }
.callconsent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--lime); flex: none; }
/* The call buttons always stay inside the screen: the top shrinks, the pad never does. */
.screen > .callee { flex: 1 1 auto; min-height: 0; overflow: hidden; padding-top: 26px; display: flex; flex-direction: column; align-items: center; }
.screen > .callee > * { flex: none; }
.screen > .callee > .caption { flex: 0 1 auto; min-height: 0; }
.screen > .callpad { flex: none; padding: 10px 26px 30px; gap: 14px; }
.callee .ring { width: 108px; height: 108px; }
.callee .ring img { width: 100px; height: 100px; }
.callee .caption { min-height: 0; margin-top: 12px; }
.phone { height: min(700px, calc(100dvh - 110px)); min-height: 540px; }
@media (max-height: 820px) {
  .callee .ring { width: 84px; height: 84px; margin-bottom: 4px; }
  .callee .ring img { width: 78px; height: 78px; margin-top: 6px; }
  .callee h2 { font-size: 23px; }
  .callee .caption { -webkit-line-clamp: 2; }
  .cbtn span.c { width: 58px; height: 58px; }
  .bigcall { width: 66px; height: 66px; }
}
.modal .box.sheet { width: min(720px, 100%); }
@media (max-width: 1080px) {
  .modal { align-items: end; padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left); }
  .modal .box.sheet { border-radius: 24px 24px 0 0; max-height: min(88dvh, calc(100dvh - var(--safe-top) - var(--safe-bottom))); padding: 18px 14px 24px; }
  .modal .box.sheet .twocol { grid-template-columns: 1fr; }
  .chat-head .btn.small { min-height: 36px; padding: 0 10px; }
  .chat-layout > .chat-side { display: none; }
  .phone { height: 100%; min-height: 0; }
  .screen > .callpad { padding: 8px 22px 18px; }
}

/* ── v2.2: call page — sticky phone, steps, one voice row, tabbed info ── */
.call-layout { align-items: start; }
.call-layout > .phone { position: sticky; top: 0; }
.call-side { gap: 14px; max-width: 920px; }
.call-intro { display: flex; gap: 14px; align-items: flex-start; }
.call-intro h2 { font-size: 26px; }
.call-intro p { margin-top: 6px; font-size: 15.5px; max-width: 56ch; }
.call-intro .tag { margin-left: auto; flex: none; }
.callsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.callsteps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; line-height: 1.25; }
.callsteps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--burgundy); color: #fff; font-size: 13px; }
.voicecard, .infotabs { padding: 16px; }
.cardhead { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.cardhead h3 { font-size: 16.5px; display: flex; gap: 8px; align-items: center; }
.cardhead .tag { margin-left: auto; }
.voicecard .voices { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
.voicecard .voice { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 0; align-items: center; padding: 10px; }
.voicecard .voice .vi { grid-row: span 2; margin: 0; }
.voicecard .voice b { font-size: 14.5px; line-height: 1.2; }
.voicecard .voice small { font-size: 12px; line-height: 1.25; }
.infotabs .tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--line); margin: -4px -4px 14px; padding: 0 4px; flex-wrap: wrap; }
.infotabs .tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 650; font-size: 14.5px; color: var(--ink-soft); display: inline-flex; gap: 7px; align-items: center; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.infotabs .tabs button[aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--accent); }
.infotabs .tabs .tag { margin-left: auto; }
.infotabs .transcript { max-height: 420px; min-height: 220px; }
.toygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.toytile { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.toytile .tt { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.toytile .tt svg { stroke: #fff; }
.toytile .tn { flex: 1; min-width: 0; display: grid; }
.toytile .tn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toytile .tn small { font-size: 12px; color: var(--ink-soft); }
.toytile .tp { font: 700 14.5px/1 var(--font-display); color: var(--brand-ink); white-space: nowrap; }
.toytile.out { opacity: .6; }
.toytile.out .tn small { color: var(--bad); font-weight: 700; }
.factrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.factrow:first-child { margin-top: 0; margin-bottom: 12px; }
.factrow .label { min-width: 74px; }
.fact { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.infotabs .twocol { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.infotabs .twocol .label { display: block; padding: 0 6px 4px; }
.tips { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
@media (max-width: 1240px) { .callsteps { grid-template-columns: 1fr; } }
.call-intro .intro-tags { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.call-intro .intro-tags .tag { margin-left: 0; }
.voicecard .voices { grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); }
.voicecard .voice { align-content: center; padding: 9px 10px; min-height: 64px; }
.voicecard .voice .vi { width: 30px; height: 30px; }

/* Short phone viewports keep chat controls visible; offers remain in the header. */
@media (max-width: 1080px) and (max-height: 500px) {
  .phonechat .shelfstrip { display: none; }
  .phonechat .quick-replies { flex-wrap: nowrap; overflow-x: auto; padding-left: 12px; }
  .phonechat .quick-replies .qr { flex: none; white-space: nowrap; }
  .phonechat > .chat-head, .phonechat > .composer { flex-shrink: 0; }
}

/* Staff review reuses the Demo inbox; prospect sessions never receive its data. */
.history-notice { margin: 0; padding: 6px 16px; font-size: 11px; line-height: 1.35; color: var(--ink-soft); background: var(--surface); flex-shrink: 0; }
.history-review { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.history-summary { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.history-heading, .history-pages { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.history-metrics { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0; }
.history-metrics > div:not(.loading) { min-width: 110px; padding: 8px 12px; border-radius: var(--r-card); background: var(--lime); color: var(--navy); }
.history-metrics strong, .history-metrics span { display: block; }
.history-metrics strong { font-size: 24px; }
.history-metrics span { font-size: 11px; }
.history-caption { margin: 4px 0; font-size: 12px; line-height: 1.4; }
.history-pages { padding: 8px; font-size: 12px; }
.history-review .timeline p { overflow-wrap: anywhere; }
@media (max-width: 1080px) {
  .history-summary { padding: 6px 12px; }
  .history-summary > .history-caption { max-height: 3.8em; overflow-y: auto; }
  .history-metrics strong { font-size: 20px; }
}

/* ── DEMO-SELLS-01: the demo sells Lyche ─────────────────────────────── */
.cta-create { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 12px 26px -14px rgba(146,0,63,.8); }
.cta-create:hover { background: var(--burgundy-ink); }
.cta-create span { color: var(--lime); font-weight: 800; }
.cta-create.big { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 16px; }
.cta-create.on-dark, .side .cta-create, .journey .cta-create { background: var(--lavender); color: var(--navy); box-shadow: none; }
.cta-create.on-dark span, .side .cta-create span, .journey .cta-create span { color: var(--burgundy); }
.cta-top { background: var(--lavender-soft); color: var(--brand-ink); border-color: transparent; font-weight: 700; }
.cta-top .icon { color: var(--burgundy); }
.navcta { background: rgba(198,235,54,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(198,235,54,.45); }
.navcta .icon { color: var(--lime); }
.navcta[aria-current="page"] { background: var(--lime); color: var(--navy); box-shadow: none; }
.navcta[aria-current="page"] .icon { color: var(--navy); }
.journey { border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 12px; display: grid; gap: 10px; }
.journey:empty { display: none; }
.journey-head { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: #9FB3C4; }
.journey-head b { color: var(--lime); font-size: 13px; letter-spacing: 0; }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.journey-steps a { display: flex; gap: 9px; align-items: center; color: #DCE6EE; text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 4px 2px; border-radius: 8px; }
.journey-steps i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-style: normal; font-size: 12px; background: rgba(255,255,255,.12); }
.journey-steps li.done a { color: #9FB3C4; }
.journey-steps li.done i { background: var(--lime); color: var(--navy); }
.journey-steps li.next a { color: #fff; }
.journey-steps li.next i { background: var(--lavender); color: var(--navy); box-shadow: 0 0 0 3px rgba(207,172,252,.3); }
.journey-trial { font-size: 11.5px; color: #9FB3C4; text-align: center; margin-top: -4px; }
.journey.ready { border-color: rgba(198,235,54,.5); }
.journey.in-menu { background: var(--navy); }
.sellpop { position: fixed; z-index: 45; left: calc(var(--side) + 24px); bottom: calc(20px + var(--safe-bottom)); width: min(420px, calc(100vw - 32px)); display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 16px 16px 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); animation: toastIn .45s var(--spring) both; }
.sellpop > img { width: 64px; height: 64px; object-fit: contain; }
.sellpop .kicker, .sell-copy .kicker { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--brand-ink); }
.sellpop h3 { font-size: 18.5px; margin: 2px 0 4px; padding-right: 26px; }
.sellpop p { font-size: 14.5px; color: var(--ink-soft); }
.sellpop small { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 6px; }
.sellpop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sellpop-x { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; }
.offercard .oc-head img { width: 38px; height: 38px; object-fit: contain; }
.offercard .oc-body p { font-size: 14.5px; }
.offer-plans { display: grid; gap: 6px; }
.offer-plans div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.offer-plans div.rec { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(146,0,63,.12); }
.offer-plans span { font: 700 15px/1 var(--font-display); color: var(--brand-ink); white-space: nowrap; }
.offer-plans small { font: 600 11.5px var(--font-ui); color: var(--ink-faint); }
.offercard .trial { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--good); }
.sellstrip, .sellband { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--r-card); background: linear-gradient(110deg, var(--lavender-soft), var(--surface)); border: 1px solid var(--line); margin-bottom: 14px; }
.sellstrip img, .sellband img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.sellstrip div, .sellband div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sellstrip b, .sellband b { font-size: 15.5px; line-height: 1.3; }
.sellstrip small, .sellband small { font-size: 13px; color: var(--ink-soft); }
.sellband { margin: 6px 0 0; }
.sellpage { max-width: 1080px; display: grid; gap: 18px; }
.sell-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 30px; border-radius: var(--r-shell); background: radial-gradient(600px 300px at 90% 10%, rgba(207,172,252,.6), transparent 70%), linear-gradient(135deg, var(--surface), var(--lavender-soft)); border: 1px solid var(--line); }
.sell-copy h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; margin: 8px 0 10px; }
.sell-copy p { font-size: 17px; color: var(--ink-soft); max-width: 52ch; }
.sell-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.sell-proof { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; padding: 0; margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--good); }
.sell-proof li { display: flex; gap: 6px; align-items: center; }
.sell-lichi { width: 170px; height: 170px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(146,0,63,.25)); animation: float 5s ease-in-out infinite; }
.sell-block { display: grid; gap: 12px; }
.card.sell-block { padding: 20px; }
.sell-block h3 { font-size: 20px; }
.sell-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.sell-stats > div { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.sell-stats .si { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lavender-soft); color: var(--brand-ink); margin-bottom: 6px; }
.sell-stats b { font: 700 24px/1.1 var(--font-display); }
.sell-stats small { font-size: 13.5px; color: var(--ink-soft); }
.sell-try { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.quicktry { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.quicktry:hover { border-color: var(--accent); }
.quicktry b { display: block; font-size: 15px; }
.quicktry small { font-size: 13px; color: var(--ink-soft); }
.sell-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sell-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; }
.sell-steps .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--burgundy); color: #fff; font-size: 15px; }
.sell-steps li b { display: block; font-size: 15.5px; }
.sell-steps li small { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.sell-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { padding: 18px; display: grid; gap: 6px; align-content: start; position: relative; }
.plan.rec { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(146,0,63,.14), var(--shadow); }
.plan .tag { justify-self: start; }
.plan h4 { font: 650 19px/1.2 var(--font-display); margin: 0; }
.plan .price { font: 700 26px/1.1 var(--font-display); color: var(--brand-ink); }
.plan .price small { font: 600 13px var(--font-ui); color: var(--ink-faint); }
.plan p { font-size: 14.5px; color: var(--ink-soft); }
.sell-note { font-size: 13.5px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 2px; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 15.5px; list-style-position: outside; }
.faq details p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.sell-final { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--r-shell); background: var(--navy); color: #fff; }
.sell-final img { width: 72px; height: 72px; object-fit: contain; }
.sell-final h3 { font-size: 22px; }
.sell-final p { color: #CFDAE4; font-size: 14.5px; margin-top: 4px; }
.sell-final .cta-create { background: var(--lavender); color: var(--navy); box-shadow: none; }
.sell-final .cta-create span { color: var(--burgundy); }
.sell-mail { grid-column: 1 / -1; color: var(--lavender); font-size: 13.5px; text-align: center; }
@media (max-width: 1080px) {
  .topbar .cta-top { min-height: 36px; padding: 0 10px; }
  .sellpop { left: 12px; right: 12px; width: auto; bottom: calc(var(--tabbar) + 12px + var(--safe-bottom)); grid-template-columns: 48px 1fr; padding: 14px; }
  .sellpop > img { width: 48px; height: 48px; }
  .sellstrip, .sellband { flex-wrap: wrap; }
  .sellstrip .cta-create, .sellband .cta-create { width: 100%; }
  .sell-hero { grid-template-columns: 1fr; padding: 20px 18px; border-radius: 22px; }
  .sell-lichi { display: none; }
  .sell-cta .btn { flex: 1; }
  .sell-steps, .sell-plans { grid-template-columns: 1fr; }
  .sell-final { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sell-final .cta-create { width: 100%; }
}

/* ── DEMO-AUDIT-01: selling never blocks the demo ────────────────────── */
/* Desktop: beside Lichi's bubble, away from the chat composer and the Pay button. */
.sellpop { left: auto; right: calc(124px + var(--safe-right)); }
@media (max-width: 1080px) {
  /* Mobile: a compact card under the top bar; composer, Pay and call buttons stay free. */
  .sellpop { top: calc(66px + var(--safe-top)); bottom: auto; left: 12px; right: 12px; }
  .sellpop p { display: none; }
}
@media (max-width: 1080px) { .picker { padding-bottom: calc(96px + var(--safe-bottom)); } }

/* ── DEMO-PHOTOS-01: real-looking product and team photos ─────────────── */
.pic.photo { overflow: hidden; }
.pic.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.toy .pic.photo { height: auto; aspect-ratio: 4 / 3; }
.pcard .pic.photo { height: auto; aspect-ratio: 4 / 3; }
.toy:hover .pic.photo img { transform: scale(1.04); }
.pic.photo .tag { z-index: 1; box-shadow: 0 1px 4px rgba(15,50,78,.18); }
.thumb { position: relative; overflow: hidden; flex: none; display: inline-block; border-radius: 10px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.xs { width: 22px; height: 22px; border-radius: 6px; }
.thumb.li { width: 40px; height: 40px; border-radius: 10px; }
.thumb.tt { width: 44px; height: 44px; border-radius: 12px; }
.thumb.ti { width: 38px; height: 38px; border-radius: 10px; }
.toytile.out .thumb img, .toy:has(.tag.bad) .pic.photo img { filter: grayscale(.7); opacity: .75; }
.avatar.photo { overflow: hidden; padding: 0; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── DEMO-SIMPLE-01: fewer things, bigger promise ──────────────────────── */
/* Picker: one headline, three photographic doors, one quiet exit. */
.picker-head.simple { display: block; text-align: center; max-width: 760px; margin: 8px auto 4px; }
.picker-head.simple h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.picker-head.simple p { font-size: clamp(16px, 1.6vw, 19px); margin: 14px auto 0; max-width: 560px; opacity: .85; }
.biz-grid.simple { margin-top: 28px; gap: 18px; }
.biz-grid.simple .biz { padding: 0 0 18px; gap: 6px; overflow: hidden; }
.biz-grid.simple .biz .art { height: auto; aspect-ratio: 4 / 3; border-radius: 0; margin: 0 0 8px; }
.biz-grid.simple .biz h3, .biz-grid.simple .biz .what, .biz-grid.simple .biz .go { margin-left: 18px; margin-right: 18px; }
.biz-grid.simple .biz h3 { font-size: 21px; }
.biz-grid.simple .biz .what { font-size: 15px; line-height: 1.45; min-height: 2.9em; }
.biz-grid.simple .biz .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: var(--brand-ink); }
.picker-exit { text-align: center; margin: 26px auto 0; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; font-weight: 600; opacity: .95; }
/* Sidebar journey: a progress bar and the next step, nothing else. */
.journey.compact { gap: 8px; }
.journey-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.journey-bar i { display: block; height: 100%; background: var(--lime); border-radius: inherit; transition: width .5s var(--ease); }
.journey-next { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 13.5px; }
.journey-next .icon { stroke: var(--lime); }
/* Top bar: one call to action, burgundy, always visible. */
.topbar .cta-top { background: var(--burgundy, #92003F); color: #fff; border-color: transparent; }
.topbar .cta-top .icon { stroke: var(--lime); }
.topbar .sub[hidden] { display: none; }
/* Chat: the conversation is the hero; the data note sits quietly under the composer. */
.phonechat .history-notice { margin: 0; padding: 6px 16px 10px; font-size: 11.5px; text-align: center; border: 0; background: none; opacity: .7; }

/* ── DEMO-GLANCE-01: the whole offer on one screen, no scrolling ──────── */
.chat-side { overflow: hidden; }
.chat-side > .glance { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.ggrid { flex: 1; min-height: 0; display: grid; gap: 12px; }
.ggrid.shop { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.ggrid.team { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.ggrid.solo { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.ggrid.solo .gtile.hero { grid-row: span 2; }
.ggrid.solo .ginfo.pay { grid-column: span 2; }
.gtile { position: relative; min-height: 0; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gtile:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.gtap { all: unset; cursor: pointer; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.gtap:focus-visible { outline: 3px solid var(--focus, #663BE8); outline-offset: -3px; border-radius: 20px; }
.gphoto { flex: 1; min-height: 70px; position: relative; overflow: hidden; display: block; }
.gphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ggrid.team .gphoto img, .ggrid.solo .gphoto img { object-position: 50% 22%; }
.gtile:hover .gphoto img { transform: scale(1.05); }
.gtile.out .gphoto img { filter: grayscale(.75); opacity: .7; }
.gbadge { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 4px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.94); color: var(--navy, #0F324E); box-shadow: 0 2px 8px rgba(15,50,78,.15); }
.gbadge.bad { background: var(--bad, #B3261E); color: #fff; }
.gtext { display: grid; gap: 1px; padding: 10px 12px 12px; }
.gtext b { font: 650 15px/1.2 var(--font-display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtext small { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ggrid.shop .gtext small { font: 700 17px/1.2 var(--font-display); color: var(--brand-ink); }
.gtext em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--brand-ink); }
.gbuy { position: absolute; right: 10px; bottom: 12px; border: 0; border-radius: 99px; padding: 8px 13px; font: 700 13px/1 var(--font-body, inherit); background: var(--burgundy, #92003F); color: #fff; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(146,0,63,.6); transition: transform .2s var(--ease); }
.gbuy:hover { transform: scale(1.05); }
.ginfo { min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; text-align: left; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; font: inherit; color: var(--ink); transition: transform .25s var(--ease); overflow: hidden; }
.ginfo:hover { transform: translateY(-3px); }
.ginfo .gi { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--lavender-soft); color: var(--brand-ink); margin-bottom: 4px; }
.ginfo b { font: 650 15px/1.2 var(--font-display); }
.ginfo small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ginfo em { font-style: normal; font-weight: 700; color: var(--brand-ink); font-size: 14px; }
.ginfo.pay { background: linear-gradient(135deg, var(--navy, #0F324E), #2D3F7A); color: #fff; border-color: transparent; }
.ginfo.pay small { color: rgba(255,255,255,.78); }
.ginfo.pay em { color: var(--lime, #C6EB36); }
.ginfo.pay .gi { background: rgba(255,255,255,.14); color: var(--lime, #C6EB36); }
.gfacts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-soft); }
.gfacts span { display: inline-flex; gap: 6px; align-items: center; min-width: 0; }
.gfacts.top span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.glance .side-title { flex: none; }
@media (max-height: 760px) { .gtext { padding: 8px 10px 10px; } .gtext b { font-size: 14px; } .ggrid { gap: 10px; } .gbuy { padding: 7px 11px; } }

/* Mobile: the same offer as a slim photo strip above the conversation. */
.gstrip { display: none; }
@media (max-width: 1080px) {
  .gstrip { display: flex; gap: 8px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); flex: none; scroll-snap-type: x proximity; }
  .gstrip::-webkit-scrollbar { display: none; }
  .gchip { flex: 0 0 auto; width: 86px; display: grid; gap: 3px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); scroll-snap-align: start; }
  .gchip .gphoto { width: 86px; height: 64px; flex: none; border-radius: 14px; min-height: 0; }
  .gchip b { font-size: 12px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gchip small { font-size: 11.5px; font-weight: 700; color: var(--brand-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gchip.out .gphoto img { filter: grayscale(.75); opacity: .7; }
}

/* DEMO-GLANCE-01 refinements: name on its own line, price and buy side by side. */
.gtext .grow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.gtext .grow small { min-width: 0; }
.gbuy { position: static; flex: none; padding: 7px 12px; font-size: 12.5px; }
.gfacts.top span { display: flex; width: 100%; }
.gfacts.top i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gfacts.top .icon { flex: none; }
@media (max-width: 1080px) { .phonechat .gstrip { padding: 10px 14px; } }
.gtile { container-type: inline-size; }
.gbuy { display: inline-flex; align-items: center; gap: 5px; }
.gbuy .icon { stroke: currentColor; width: 15px; height: 15px; }
@container (max-width: 215px) { .gbuy span { display: none; } .gbuy { padding: 8px; border-radius: 50%; } }
@media (max-width: 1080px) { .phonechat .gstrip { width: 100%; box-sizing: border-box; scroll-padding-inline: 14px; } }

/* ── DEMO-GLANCE-01: the owner's panel on one screen ──────────────────── */
@media (min-width: 1081px) {
  .wrap.glance-home { height: 100%; display: flex; flex-direction: column; gap: 14px; padding-bottom: 20px; box-sizing: border-box; }
  .wrap.glance-home > * { flex: none; margin: 0; }
  .wrap.glance-home .kpis { margin: 0; }
  .wrap.glance-home > .grid2 { flex: 1; min-height: 0; }
  .wrap.glance-home > .grid2 > * { min-height: 0; overflow: hidden; }
  .wrap.glance-home > .grid2 > .panel-card { display: flex; flex-direction: column; }
  .wrap.glance-home .bars { flex: 1; min-height: 120px; height: auto; }
  .wrap.glance-home .headline { padding: 16px 20px; }
  .wrap.glance-home .headline img { width: 64px; height: 64px; }
}
@media (min-width: 1081px) and (max-height: 780px) {
  .wrap.glance-home .headline h2 { font-size: 17px; }
  .wrap.glance-home .kpi .k-foot { display: none; }
  .wrap.glance-home .toplist { gap: 6px; }
}
@media (max-width: 1080px) {
  .wrap.glance-home .headline h2 { font-size: 16px; }
  .wrap.glance-home .headline img { width: 48px; height: 48px; }
  .wrap.glance-home .kpi:not(.hero) .k-foot { display: none; }
  .wrap.glance-home .kpi .k-val { font-size: 26px; }
  .wrap.glance-home .grid2 > .panel-card:first-child { display: none; }
  .wrap.glance-home .grid2 > div > .panel-card:has(.stars) { display: none; }
}

/* ── DEMO-REPLIES-01: one clear review card before confirming ─────────── */
.ocard.review { border: 1.5px solid var(--lavender); box-shadow: 0 10px 30px -14px rgba(102,59,232,.35); }
.ocard.review .oc-head .ic { background: var(--lavender-soft); color: var(--brand-ink); }
.rv-item { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.rv-item > span { flex: 1; min-width: 0; display: grid; }
.rv-item > span b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.rv-item small { color: var(--ink-soft); font-size: 12.5px; }
.thumb.rv { width: 46px; height: 46px; border-radius: 12px; }
.ocard .line.total { font-size: 16px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ocard .line.total b { font: 700 20px/1 var(--font-display); color: var(--brand-ink); }
.rv-facts { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--sunk); font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.rv-facts span { display: flex; gap: 8px; align-items: center; }
.rv-facts .icon { flex: none; }
.rv-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.rv-actions .btn.primary { background: var(--burgundy, #92003F); }
.ocard .line b .avatar.xs { width: 22px; height: 22px; vertical-align: middle; margin-right: 4px; }

/* ── DEMO-CTA-01: one unmistakable call to action ──────────────────────── */
.topbar .cta-top { padding: 10px 16px; font-size: 14.5px; gap: 8px; box-shadow: 0 8px 22px -10px rgba(146,0,63,.7); animation: ctaGlow 3.2s ease-in-out infinite; }
.topbar .cta-top em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--lime, #C6EB36); color: var(--navy, #0F324E); margin-left: 2px; }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 8px 22px -10px rgba(146,0,63,.7); } 50% { box-shadow: 0 8px 28px -6px rgba(146,0,63,.9), 0 0 0 4px rgba(198,235,54,.25); } }
@media (prefers-reduced-motion: reduce) { .topbar .cta-top { animation: none; } }
.journey.compact .cta-create.block { width: 100%; justify-content: center; margin-top: 4px; }
.journey-ready { font-size: 14px; color: #fff; }
.journey-trial { font-size: 11.5px; color: rgba(255,255,255,.7); text-align: center; }
/* The peak moment */
.sellmoment { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(10,30,48,.55); backdrop-filter: blur(6px); animation: smIn .3s var(--ease) both; }
.sellmoment.out { opacity: 0; transition: opacity .25s; }
.sm-card { position: relative; width: min(460px, 100%); padding: 28px 28px 22px; border-radius: 28px; text-align: center; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(10,30,48,.6); animation: smPop .45s cubic-bezier(.2,1.3,.4,1) both; }
.sm-card .sm-x { position: absolute; top: 14px; right: 14px; }
.sm-lichi { width: 96px; height: 96px; margin: -74px auto 6px; display: block; filter: drop-shadow(0 10px 18px rgba(146,0,63,.35)); }
.sm-card .kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--burgundy, #92003F); background: var(--lavender-soft); padding: 5px 10px; border-radius: 99px; }
.sm-card h2 { font: 700 clamp(24px, 3.2vw, 30px)/1.12 var(--font-display); letter-spacing: -.02em; margin: 12px 0 8px; }
.sm-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.cta-create.big { padding: 16px 22px; font-size: 17px; border-radius: 16px; width: 100%; justify-content: center; }
.sm-perks { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 12px 0 4px; font-size: 13px; color: var(--ink-soft); }
.sm-perks li { display: inline-flex; gap: 5px; align-items: center; }
.sm-perks .icon { stroke: var(--good, #1D7A4F); }
.sm-more { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-size: 14px; }
.sm-more a, .sm-more button { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--brand-ink); cursor: pointer; text-decoration: none; }
.sm-more button { color: var(--ink-soft); }
@keyframes smIn { from { opacity: 0; } }
@keyframes smPop { from { opacity: 0; transform: translateY(20px) scale(.94); } }
@media (max-width: 1080px) {
  .sellmoment { place-items: end center; padding: 0; }
  .sm-card { width: 100%; border-radius: 28px 28px 0 0; padding: 26px 20px calc(20px + var(--safe-bottom)); animation-name: smUp; }
  .sm-lichi { width: 84px; height: 84px; margin-top: -66px; }
  @keyframes smUp { from { transform: translateY(100%); } }
  .topbar .cta-top { padding: 9px 13px; font-size: 14px; }
}

/* ── DEMO-CTA-LIME: every "Crear mi Lyche" button in Lyche green ───────── */
.cta-create, .cta-create.on-dark, .side .cta-create, .journey .cta-create, .sell-final .cta-create,
.topbar .cta-top { background: var(--lime); color: var(--navy); border-color: transparent; box-shadow: 0 12px 26px -14px rgba(120,150,20,.9); font-weight: 800; }
.cta-create:hover, .topbar .cta-top:hover { background: #B5DC22; color: var(--navy); }
.cta-create span, .cta-create.on-dark span, .side .cta-create span, .journey .cta-create span, .sell-final .cta-create span { color: var(--navy); }
.topbar .cta-top .icon { stroke: var(--navy); }
.topbar .cta-top em { background: var(--navy); color: var(--lime); }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 8px 22px -10px rgba(120,150,20,.8); } 50% { box-shadow: 0 8px 28px -6px rgba(120,150,20,.9), 0 0 0 4px rgba(198,235,54,.35); } }

/* DEMO-LEADS-01 · Lead gate: a personal "demo pass" that fills in as they type,
   one short form, two separate consents and one lime button. */
.lead-entry .entry-main { padding-top: 0; }
.lead-gate { width: min(980px, 100%); display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 22px; align-items: stretch; }
.lg-pass { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; border-radius: 26px; color: #F7EDE6;
  background: radial-gradient(420px 260px at 110% -10%, rgba(207,172,252,.55), transparent 60%), radial-gradient(360px 240px at -20% 110%, rgba(146,0,63,.75), transparent 62%), linear-gradient(160deg, #0F324E, #0A2236);
  box-shadow: 0 30px 60px -30px rgba(15,50,78,.75); transition: transform .5s var(--spring), box-shadow .5s var(--ease); }
.lg-pass::before, .lg-pass::after { content: ""; position: absolute; top: 58%; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); z-index: 1; }
.lg-pass::before { left: -13px; } .lg-pass::after { right: -13px; }
.lg-pass-top { display: flex; align-items: center; gap: 8px; font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); }
.lg-pass-top img { width: 22px; height: 22px; border-radius: 7px; }
.lg-pass-top b { margin-left: auto; padding: 5px 9px; border-radius: 99px; background: var(--lime); color: var(--navy); letter-spacing: .08em; font-size: 10.5px; }
.lg-lichi { width: 120px; height: 120px; object-fit: contain; align-self: center; margin: 10px 0 2px; filter: drop-shadow(0 16px 22px rgba(0,0,0,.35)); animation: lgFloat 5s ease-in-out infinite; }
.lg-hi { margin: 6px 0 0; font-size: 15px; color: var(--lavender); }
.lg-name { margin: 0; font: 800 clamp(26px, 3vw, 34px)/1.05 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; min-height: 1.05em; }
.lg-name::after { content: ""; display: block; width: 54px; height: 5px; margin-top: 10px; border-radius: 99px; background: var(--lime); }
.lg-where { margin: 2px 0 0; color: #B9C6D2; font-size: 15px; overflow-wrap: anywhere; }
.lg-bizrow { display: flex; margin-top: auto; padding-top: 22px; border-top: 2px dashed rgba(247,237,230,.22); }
.lg-biz { position: relative; width: 50px; height: 50px; border-radius: 50%; overflow: hidden; border: 3px solid #0D2A41; margin-right: -12px; flex: none; }
.lg-biz .bizphoto { width: 100%; height: 100%; object-fit: cover; }
.lg-includes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: #F7EDE6; }
.lg-includes li { display: flex; align-items: center; gap: 10px; }
.lg-includes .icon { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(198,235,54,.16); color: var(--lime); stroke-width: 3; }
.lg-bizrow { align-items: center; }
.lg-bizrow small { margin-left: 22px; font-size: 13px; color: #B9C6D2; }
.lg-form { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 3vw, 30px); border-radius: 26px; }
.lg-step { display: inline-flex; padding: 5px 11px; border-radius: 99px; background: var(--lavender-soft); color: var(--brand-ink); font: 800 11.5px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.lg-head h1 { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.04; letter-spacing: -.03em; }
.lg-head p { margin: 8px 0 2px; color: var(--ink-soft); font-size: 15.5px; max-width: 52ch; }
.lg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.lg-field { display: grid; gap: 5px; min-width: 0; }
.lg-field label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.lg-field .input, .lg-note .input { transition: border-color .2s, box-shadow .2s; }
.lg-field .input:focus, .lg-note .input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(102,59,232,.16); }
.lg-field.bad .input { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(179,38,30,.1); }
.lg-err { min-height: 0; color: var(--bad); font-size: 12.5px; font-weight: 600; }
.lg-err:empty { display: none; }
.lg-note summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--link); list-style: none; }
.lg-note summary::-webkit-details-marker { display: none; }
.lg-note[open] summary { margin-bottom: 8px; }
.lg-note textarea.input { min-height: 64px; }
.lg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lg-check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 11px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; color: var(--ink-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.lg-check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.lg-check .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-strong); display: grid; place-items: center; background: var(--surface); transition: background .2s, border-color .2s, transform .25s var(--spring); }
.lg-check .box .icon { opacity: 0; stroke-width: 3; color: var(--navy); transform: scale(.4); transition: opacity .15s, transform .25s var(--spring); }
.lg-check input:checked + .box { background: var(--lime); border-color: var(--lime); transform: scale(1.06); }
.lg-check input:checked + .box .icon { opacity: 1; transform: scale(1); }
.lg-check input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 2px; }
.lg-check:has(input:checked) { border-color: rgba(198,235,54,.8); }
.lg-check.bad { border-color: var(--bad); background: var(--bad-bg); }
.lg-check a { color: var(--link); font-weight: 700; }
.lg-check .req { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: var(--lavender-soft); color: var(--brand-ink); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.btn.lg-go { min-height: 56px; margin-top: 2px; border: 0; border-radius: 16px; background: var(--lime); color: var(--navy); font: 800 17px/1 var(--font-ui); gap: 10px; box-shadow: 0 16px 30px -16px rgba(120,150,20,.95); transition: transform .2s var(--spring), background .2s, box-shadow .2s; }
.btn.lg-go:hover { background: #B5DC22; transform: translateY(-1px); }
.btn.lg-go:active { transform: scale(.98); }
.btn.lg-go .icon { stroke-width: 2.6; transition: transform .25s var(--spring); }
.btn.lg-go:hover .icon { transform: translateX(4px); }
.btn.lg-go.busy { opacity: .75; pointer-events: none; }
.lg-fine { margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--ink-faint); text-align: center; }
.lg-staff { align-self: center; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; margin-top: -2px; border-radius: 99px; border: 1px dashed var(--line-strong); color: var(--ink-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.lg-staff:hover { color: var(--brand-ink); border-color: var(--brand-ink); }
.lead-gate.done .lg-pass { transform: translateY(-6px) rotate(-1.5deg) scale(1.02); box-shadow: 0 0 0 4px var(--lime), 0 40px 70px -30px rgba(15,50,78,.8); }
.lead-gate.done .lg-form { opacity: .6; transition: opacity .3s; }
@keyframes lgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lg-lichi { animation: none; } .lg-pass, .btn.lg-go, .lg-check .box { transition: none; } }
@media (max-width: 759px) {
  .lead-entry .entry-top { padding: 12px 16px; }
  .lead-entry .entry-main { padding: 0 12px 16px; place-items: start center; }
  .lead-gate { grid-template-columns: 1fr; gap: 12px; }
  .lg-pass { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 14px 16px; border-radius: 20px; }
  .lg-pass::before, .lg-pass::after, .lg-lichi, .lg-hi, .lg-includes, .lg-bizrow small { display: none; }
  .lg-pass-top { flex: 1 0 100%; font-size: 10.5px; }
  .lg-name { flex: 1 1 0; font-size: 22px; margin-top: 6px; }
  .lg-name::after { display: none; }
  .lg-where { flex: 1 0 100%; order: 3; margin: 0; font-size: 13px; }
  .lg-bizrow { margin: 6px 0 0; padding: 0; border: 0; order: 2; }
  .lg-biz { width: 34px; height: 34px; border-width: 2px; margin-right: -9px; }
  .lg-form { padding: 18px 16px; gap: 10px; border-radius: 20px; }
  .lg-head h1 { font-size: 26px; margin-top: 8px; }
  .lg-head p { font-size: 14.5px; }
  .lg-grid { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
  .lg-field[data-f="full_name"], .lg-field[data-f="email"] { grid-column: 1 / -1; }
  .lg-field .input { min-height: 44px; padding: 10px 12px; }
  .lg-head p { margin-top: 6px; }
  .lg-check { padding: 10px; font-size: 12.5px; }
}

/* DEMO-CALM-01 · Single-practice side panel: one calm card with air. */
.glance.calm { display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; }
.calm-card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calm-pro { display: flex; gap: 16px; align-items: center; }
.calm-photo { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--lavender-soft); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--lavender-soft); }
.calm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.calm-pro b { display: block; font: 700 21px/1.15 var(--font-display); letter-spacing: -.01em; }
.calm-pro small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 14px; }
.calm-live { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; border-radius: 99px; background: var(--good-bg); color: var(--good); font-size: 12px; font-weight: 700; }
.calm-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(29,122,79,.18); }
.calm-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-soft); }
.calm-facts li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.calm-facts .icon { flex: none; margin-top: 2px; color: var(--ink-faint); }
.calm-label { margin-top: 2px; font: 800 11.5px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.calm-list { display: grid; border-top: 1px solid var(--line); margin-top: -6px; }
.calm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; padding: 13px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.calm-row b { display: block; font-size: 15px; font-weight: 700; }
.calm-row small { display: block; font-size: 12.5px; color: var(--ink-faint); }
.calm-row em { font-style: normal; font-weight: 800; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.calm-row .icon { color: var(--ink-faint); transition: transform .2s var(--ease); }
.calm-row:hover .icon { transform: translateX(3px); color: var(--brand-ink); }
.calm-pay { display: flex; gap: 8px; align-items: flex-start; padding: 0; border: 0; background: none; text-align: left; font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer; line-height: 1.4; }
.calm-pay .icon { flex: none; margin-top: 1px; color: var(--good); }
.btn.calm-cta { min-height: 48px; border: 0; border-radius: 14px; background: var(--lavender-soft); color: var(--brand-ink); font-weight: 800; font-size: 15px; gap: 8px; }
.btn.calm-cta:hover { filter: brightness(.97); }

/* DEMO-AGENDA-01 · Clean week view and a lighter agenda page. */
.agenda-sum { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; font-size: 15px; color: var(--ink-soft); }
.agenda-sum .icon { color: var(--burgundy); flex: none; margin-top: 3px; }
.agenda-sum b { color: var(--ink); }
.week { gap: 10px; align-items: stretch; }
.wday { min-height: 0; overflow: visible; display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.wday .wh { gap: 6px; align-items: center; padding: 12px 12px 10px; border-bottom: 0; justify-content: flex-start; }
.wday .wh span { font-size: 13px; font-weight: 700; }
.wday .wh b { font: 700 20px/1 var(--font-display); }
.wday .wh em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 800; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--ink-soft); }
.wday.today { box-shadow: none; border-color: var(--burgundy); }
.wday.today .wh b { color: #fff; background: var(--burgundy); border-radius: 10px; padding: 4px 7px; margin: -4px 0; }
.wday.past { opacity: .62; }
.wday .wl { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 10px; overflow: visible; max-height: none; }
.wk-item { position: relative; flex: none; display: grid; gap: 1px; width: 100%; padding: 7px 8px 7px 11px; border: 0; border-radius: 10px; background: transparent !important; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: background .15s; }
.wk-item::before { content: ""; position: absolute; left: 2px; top: 8px; bottom: 8px; width: 0; border-left: 3px solid; border-color: inherit; border-radius: 3px; }
.wk-item:hover { background: var(--surface-2) !important; }
.wk-item.mine { box-shadow: inset 0 0 0 2px var(--lime); }
.wk-time { display: flex; align-items: baseline; gap: 3px; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.wk-time small { font-size: 10.5px; font-weight: 600; color: var(--ink-faint); }
.wk-ai { margin-left: auto; display: inline-flex; color: var(--burgundy); opacity: .55; }
.wk-ai .icon { width: 12px; height: 12px; }
.wk-item b { font-size: 13px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-item > small { font-size: 11.5px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-item.s-cancelada { opacity: .5; text-decoration: none; }
.wk-item.s-cancelada b { text-decoration: line-through; }
.wk-empty { margin: 4px 4px 0; font-size: 13px; color: var(--ink-faint); }
.wk-more { margin-top: 4px; padding: 7px; border: 1px dashed var(--line-strong); border-radius: 10px; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--link); cursor: pointer; }
.wk-more:hover { border-style: solid; }
@media (max-width: 1080px) { .wday.past { display: none; } }

/* DEMO-NEURO-01 · Subtle, honest nudges: a gentle default, peak-end recap,
   price per day and the 24/7 contrast. No fake scarcity, timers or reviews. */
.biz.biz-picked { position: relative; box-shadow: 0 0 0 2px var(--lime), var(--shadow); }
.biz-rec { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 99px; background: var(--lime); color: var(--navy); font: 800 11.5px/1 var(--font-ui); letter-spacing: .02em; box-shadow: 0 6px 14px -8px rgba(15,50,78,.6); }
.picker-recap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); }
.picker-recap[hidden] { display: none; }
.picker-recap .icon { color: var(--burgundy); vertical-align: -2px; }
.picker-recap b { color: var(--ink); }
.sell-contrast { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: 14.5px; color: var(--ink-soft); }
.sell-contrast .icon { color: var(--burgundy); flex: none; }
.plan .perday { margin: -4px 0 8px; font-size: 13px; font-weight: 700; color: var(--good); }
