/* Myrvo AI — look and feel. Brand colours are at the top; change them here. */
:root {
  --brand: #2a2766;        /* deep indigo */
  --brand-ink: #ffffff;
  --accent: #e8962e;       /* marigold */
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #efebe3;
  --ink: #1d1b3a;
  --muted: #6b6880;
  --line: #e2ddd2;
  --danger: #b3261e;
  --user-bg: #2a2766;
  --user-ink: #ffffff;
  --logo-ink: #2a2766;
  --logo-bar: #e8962e;
  --logo-badge: #a76c21;
  --tint: #ecebf7;         /* icon tiles */
  --warm: #fbeedc;         /* Today and Coming soon */
  --warm-ink: #8a5717;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9d98ee;
    --brand-ink: #14122b;
    --accent: #f0a94b;
    --bg: #121124;
    --surface: #1c1a33;
    --surface-2: #262443;
    --ink: #ecebf5;
    --muted: #a19fb8;
    --line: #322f52;
    --danger: #f2b8b5;
    --user-bg: #3d3994;
    --user-ink: #ffffff;
    --logo-ink: #ffffff;
    --logo-badge: #f0a94b;
    --tint: #262443;
    --warm: #3a2c17;
    --warm-ink: #f0a94b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: calc(env(safe-area-inset-top) + 8px) 8px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand { flex: 1; display: flex; align-items: center; padding-left: 6px; }
.wordmark { display: block; width: auto; height: 32px; overflow: visible; fill: none; stroke: none; }
.wm-letters { stroke: var(--logo-ink); }
.wm-bar { stroke: var(--logo-bar); }
.wm-badge { stroke: var(--logo-badge); }
.wm-tm { stroke: var(--logo-ink); }
.icon-btn {
  width: 44px; height: 44px;
  border: 0; background: transparent;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--ink);
}
.icon-btn:active { background: var(--surface-2); }
.icon-btn.small { width: 36px; height: 36px; color: var(--muted); }
.icon-btn.small svg { width: 18px; height: 18px; }

/* Thread */
.thread { flex: 1; overflow-y: auto; padding: 16px 16px 8px; overscroll-behavior: contain; }
.welcome { padding: 12px 0 8px; }
.welcome h1 { font-size: 24px; line-height: 1.25; margin: 4px 0 6px; letter-spacing: -0.015em; }
.welcome p { color: var(--muted); margin: 0 0 18px; }
/* Features of the complete app that are paused or not built yet */
.soon-tag { font-size: 12.5px; font-weight: 700; color: var(--warm-ink); }
.soon-pill { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; }
.soon-about { margin: 0 0 14px; font-size: 16px; line-height: 1.5; }
.soon-done { margin: 0 0 10px; font-weight: 600; color: var(--brand); }
/* Price check under a reply */
/* Pro: pay once or renew every year */
.btn-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.pro-how-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.pro-how-opt { display: grid; gap: 2px; text-align: left; padding: 10px 12px; min-height: 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pro-how-opt b { font-size: 15px; }
.pro-how-opt span { font-size: 13px; color: var(--muted); }
.pro-how-opt.on { border: 2px solid var(--brand); padding: 9px 11px; }
/* How to use Mhare */
.guide-steps { margin: 4px 14px 10px 30px; padding: 0; display: grid; gap: 6px; color: var(--ink); line-height: 1.45; }
.guide-try { margin: 0 14px 14px; }
/* UPI payment QR */
.upi-preview { display: flex; justify-content: center; margin: 4px 0 12px; }
.upi-preview img { width: 100%; max-width: 320px; max-height: 44vh; object-fit: contain; border-radius: 16px; border: 1px solid var(--line); }
.upi-missing { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink); width: 100%; }
.upi-fields { display: grid; gap: 10px; margin: 0 0 12px; }
.upi-fields label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.upi-fields input { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 44px; }
.btn-col { display: grid; gap: 8px; }
.btn-col .primary, .btn-col .secondary { width: 100%; }
.check-warn { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--accent); background: var(--surface-2); color: var(--ink); font-size: 14px; line-height: 1.4; }

.msg { display: flex; flex-direction: column; margin: 10px 0 14px; }
.msg.user { align-items: flex-end; }
.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.msg.user .bubble {
  background: var(--user-bg);
  color: var(--user-ink);
  border-bottom-right-radius: 6px;
  white-space: pre-wrap;
}
.msg.assistant .bubble {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  max-width: 100%;
}
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 4px 0 8px; padding-left: 22px; }
.bubble li { margin: 2px 0; }

.actions { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.actions button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13.5px;
  color: var(--ink);
  min-height: 36px;
}
.actions button svg { width: 16px; height: 16px; }
.actions button.quiet { color: var(--muted); }

/* 3 versions of a message: one card each */
.msg.assistant .bubble.has-versions { background: none; border: 0; padding: 0; max-width: 100%; }
.ver-intro { margin-bottom: 8px; }
.ver-hint { font-size: 13px; color: var(--muted); margin: 0 0 6px 2px; }
.ver {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}
.ver + .ver { margin-top: 8px; }
.ver:first-of-type { border-top-left-radius: 6px; }
.ver-tag {
  display: flex; align-items: center; gap: 7px;
  margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted);
}
.ver-num {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #1d1b3a; font-size: 12px; letter-spacing: 0;
}
.ver-text p { margin: 0 0 6px; }
.ver-text p:last-child { margin-bottom: 0; }
.ver-actions { margin-top: 8px; }
.ver .ver-actions > :first-child { border-color: var(--brand); color: var(--brand); font-weight: 600; }

.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: 0.4; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }

/* Composer */
.composer-wrap { padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px); background: var(--bg); }
.notice {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--surface-2);
}
.notice[data-kind="error"] { color: var(--danger); }
.composer {
  display: flex; align-items: flex-end; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 5px;
}
.composer:focus-within { border-color: var(--brand); }
.composer textarea {
  flex: 1;
  border: 0; outline: 0; resize: none;
  background: transparent;
  padding: 10px 6px 10px 12px;
  max-height: 160px;
  line-height: 1.4;
}
.mic.on { color: var(--accent); background: var(--surface-2); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); } }
.send {
  width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center;
}
.send.stop { background: var(--ink); color: var(--bg); }
.fineprint { text-align: center; color: var(--muted); font-size: 12px; margin: 6px 0 0; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 0.35); z-index: 10; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: min(320px, 86vw);
  background: var(--bg);
  z-index: 11;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
  border-right: 1px solid var(--line);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; }
.drawer-head h2 { font-size: 18px; margin: 0; }
.history { list-style: none; margin: 0; padding: 0 8px; overflow-y: auto; flex: 1; }
.history li { display: flex; align-items: center; border-radius: 12px; }
.history li.active { background: var(--surface-2); }
.history li.empty { color: var(--muted); padding: 12px 8px; }
.history-open {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  text-align: left;
  padding: 10px 8px;
  display: flex; flex-direction: column;
}
.history-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-date { font-size: 12px; color: var(--muted); }
.drawer-note { font-size: 12px; color: var(--muted); padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px); margin: 0; }

/* Bottom sheet */
.sheet {
  position: fixed; inset: 0; z-index: 20;
  background: rgb(0 0 0 / 0.35);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet-card {
  width: 100%; max-width: 560px;
  max-height: calc(100dvh - 16px); overflow-y: auto;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  padding: 8px 16px calc(env(safe-area-inset-bottom) + 20px);
  animation: up 0.2s ease;
}
@keyframes up { from { transform: translateY(30px); opacity: 0.5; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 18px; margin: 8px 0; }
.label { font-size: 13px; color: var(--muted); margin: 8px 0 6px; }
.intro { color: var(--muted); margin: 0 0 12px; font-size: 15px; }
.lang-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.lang-pick button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  font-weight: 500;
}
.lang-pick button.on { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.lang-pick.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lang-grid button { min-height: 42px; padding: 0 4px; font-size: 15px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 4px; }
.sheet-list { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--line); }
.sheet-list a, .sheet-list button {
  text-align: left;
  padding: 14px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  color: var(--ink);
}
.sheet-list .danger { color: var(--danger); }
.fine { color: var(--muted); font-size: 12px; text-align: center; margin: 16px 0 0; }

.report { display: flex; flex-direction: column; gap: 8px; }
.radio {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.radio input { width: 18px; height: 18px; accent-color: var(--brand); }
.report textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
  resize: vertical;
}

.primary {
  min-height: 50px;
  border: 0; border-radius: 14px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 600; font-size: 16px;
  margin-top: 6px;
}
.primary:disabled { opacity: 0.4; }

/* Onboarding */
.onboard {
  position: fixed; inset: 0; z-index: 30;
  background: var(--bg);
  overflow-y: auto;
  display: flex; justify-content: center;
}
.onboard-card {
  width: 100%; max-width: 480px;
  padding: calc(env(safe-area-inset-top) + 32px) 20px calc(env(safe-area-inset-bottom) + 24px);
  display: flex; flex-direction: column; gap: 14px;
}
.onboard-mark { width: 64px; height: 64px; border-radius: 18px; }
.onboard h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.onboard-title .wordmark { height: 56px; }
.promise { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.promise li {
  padding: 10px 12px 10px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  font-size: 15px;
}
.promise li::before {
  content: "";
  position: absolute; left: 14px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.agree input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.invite {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px;
  border: 1px solid var(--brand);
  border-radius: 14px;
  background: var(--surface);
}
.invite label { font-weight: 600; }
.invite p { margin: 0; color: var(--muted); font-size: 14px; }
.invite input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.invite input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.invite .invite-error { color: var(--danger); }
.notice .notice-btn {
  margin-left: 8px;
  border: 1px solid currentColor;
  background: transparent;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 13.5px;
  color: var(--ink);
}
.onboard-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 4px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px);
  transform: translateX(-50%);
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 16px;
  font-size: 14px; line-height: 1.4; z-index: 40; text-align: center;
  width: max-content; max-width: min(420px, calc(100vw - 32px));
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- v1.3: business profile, saved messages, read aloud ---------- */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left-width: 1px;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 16px;
}
.profile-card-title { margin: 0 0 2px; font-weight: 600; color: var(--ink); }
.profile-card-text { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.profile-card-actions { display: flex; align-items: center; gap: 12px; }
.primary.small { min-height: 44px; padding: 0 18px; margin: 0; font-size: 15px; }
.link-btn {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  padding: 0 8px;
}
.link-btn.danger { color: var(--danger); }
.profile-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 36px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

.tabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.history-preview {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions button.icon { width: 36px; padding: 0; justify-content: center; }
.actions button.on { border-color: var(--brand); color: var(--brand); background: var(--surface-2); }
.actions button.danger { color: var(--danger); }
.saved-title { overflow-wrap: anywhere; padding-right: 8px; }
.saved-text { max-width: 100%; background: var(--surface); border: 1px solid var(--line); margin: 4px 0 4px; }
.sheet-actions { margin-top: 12px; }

/* ---------- v1.6: photos/PDFs, account, Pro ---------- */
.composer .icon-btn.attach { width: 40px; }
.composer .icon-btn.mic { width: 40px; }
.file-chip {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px;
  padding: 6px 6px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 14px;
}
.file-chip img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.file-chip span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-icon { width: 28px; height: 28px; color: var(--brand); flex: none; }
.msg-file { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.msg-file img { max-width: 180px; max-height: 180px; border-radius: 12px; display: block; }
.msg-file .file-icon { color: currentColor; }
.msg.user .msg-file span { font-size: 14px; opacity: 0.9; }

.sheet-list .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.account-box { display: flex; flex-direction: column; gap: 12px; }
.account-who { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.account-who b { display: block; }
.account-who span { color: var(--muted); font-size: 14px; }
.gsi-wrap { min-height: 44px; display: flex; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row button, .secondary {
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font-weight: 500;
}
.secondary.danger, .btn-row .danger { color: var(--danger); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.plan { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plan b { display: block; font-size: 16px; margin-bottom: 4px; }
.plan span { font-size: 14px; color: var(--muted); }
.plan.pro { border-color: var(--brand); border-width: 2px; }
.plan-status { margin: 0 0 10px; font-weight: 600; }
.fine-left { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* Pro: pick a monthly or a yearly pass */
.pro-picks { display: grid; gap: 8px; margin: 4px 0 12px; }
.pro-pick {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.pro-pick.on { border: 2px solid var(--brand); padding: 11px 13px; }
.pro-pick-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); }
.pro-pick.on .pro-pick-dot { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 0 5px, transparent 6px); }
.pro-pick-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pro-pick-body b { font-size: 16px; }
.pro-pick-body > span, .pro-pick-price span { font-size: 13.5px; color: var(--muted); }
.pro-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--accent); color: #1d1b3a; font-size: 12px; font-style: normal; font-weight: 700; vertical-align: 2px; }
.pro-pick-price { flex: none; display: grid; text-align: right; }
.pro-pick-price b { font-size: 18px; font-variant-numeric: tabular-nums; }

.warn-box { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin: 0 0 12px; }
.sheet-actions-col { display: flex; flex-direction: column; gap: 8px; }

.sheet-card > .primary, .sheet-actions-col .primary { width: 100%; }

/* Questions & answers */
.faq { display: grid; gap: 8px; margin: 4px 0 8px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 12px 40px 12px 14px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 14px; top: 10px; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 14px; }
.faq details p { margin: 0; padding: 0 14px 14px; color: var(--ink); }

/* Tap-to-answer steps */
.steps-dots { display: flex; gap: 6px; margin: 2px 0 10px; }
.steps-dots i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.steps-dots i.done { background: var(--brand); opacity: 0.45; }
.steps-dots i.on { background: var(--brand); }
.steps-body { animation: step-in 0.18s ease; }
.steps-body.from-left { animation-name: step-back; }
@keyframes step-in { from { transform: translateX(14px); opacity: 0; } }
@keyframes step-back { from { transform: translateX(-14px); opacity: 0; } }
.steps-count { margin: 0; font-size: 13px; color: var(--muted); }
.steps-q { margin: 2px 0 12px; font-size: 20px; line-height: 1.3; color: var(--ink); }
.steps-opts { display: grid; gap: 8px; }
.step-opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink);
  font-size: 16px; font-weight: 500; text-align: left;
}
.step-opt-n {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700;
}
.step-opt.on { border-color: var(--brand); background: var(--surface-2); }
.step-opt.on .step-opt-n { background: var(--brand); color: var(--brand-ink); }
.step-opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.steps-own { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.steps-own input, .steps-text {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface);
}
.steps-text { width: 100%; resize: vertical; min-height: 96px; }
.steps-own input:focus, .steps-text:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.steps-need { margin: 10px 0 0; color: var(--danger); font-size: 14px; }
.steps-nav { display: flex; gap: 8px; margin-top: 16px; }
.steps-nav .primary { flex: 1; margin: 0; }
.steps-nav .secondary { min-height: 50px; padding: 0 18px; }
.steps-nav .primary[aria-disabled="true"] { opacity: 0.45; }
.steps-myself { display: block; margin: 6px auto 0; }
.steps-more-field { margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) { .steps-body { animation: none; } }

/* Send on WhatsApp */
.send-preview {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
  color: var(--muted); font-size: 14px; white-space: pre-wrap; max-height: 5.6em; overflow: hidden;
}
.send-choose {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--brand); color: var(--ink); text-decoration: none; background: var(--surface);
}
.send-choose b { color: var(--brand); }
.send-choose span { font-size: 13px; color: var(--muted); }
.send-or { margin-top: 16px; }
.send-recent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.send-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px;
}
.send-clear { min-height: 40px; font-size: 13px; }
.send-row { display: flex; gap: 8px; }
.send-row input { flex: 1; min-width: 0; }
.send-row .secondary { flex: none; }
.send-bad { margin: 8px 0 0; color: var(--danger); font-size: 14px; }
a.primary.send-go {
  display: flex; align-items: center; justify-content: center; margin-top: 12px; text-decoration: none; text-align: center; padding: 0 12px;
}
a.primary.send-go[aria-disabled="true"] { opacity: 0.45; }
.send-choose:focus-visible, .send-chip:focus-visible, a.primary.send-go:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Shared into the app / paste */
.steps-note { white-space: pre-wrap; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 14px; }
.steps-paste { display: block; margin: 4px 0 0 auto; min-height: 40px; color: var(--brand); font-weight: 600; }
.send-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 4px 0 12px; border-radius: 14px; background: var(--surface-2); }
.send-tabs button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.send-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.send-tabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.send-share { width: 100%; }
.send-copy { width: 100%; margin-top: 8px; }

/* Posters */
.poster-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 24px 0; }
.poster-preview { display: flex; justify-content: center; background: var(--surface-2); border-radius: 16px; padding: 10px; }
.poster-preview img { display: block; max-width: 100%; max-height: 52dvh; border-radius: 8px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.12); }
.poster-tip { text-align: center; }
.poster-share { width: 100%; margin-top: 4px; }
.poster-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.poster-actions .primary { margin: 0; min-height: 48px; }
.poster-need { margin: 12px 0; padding: 12px; border-radius: 14px; border: 1px dashed var(--accent); background: var(--surface); display: grid; gap: 8px; }
.poster-need p { margin: 0; font-size: 14px; color: var(--ink); }
.poster-sizes button { font-size: 14px; }
.poster-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 15px; color: var(--ink); }
.poster-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--brand); }
.poster-photo { margin-top: 10px; }
.poster-edit { margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; background: var(--surface); }
.poster-edit summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.poster-edit .field { margin-bottom: 10px; }
.poster-caption { margin-top: 8px; }
.steps-photo-ok { margin: 10px 0 0; color: var(--brand); font-weight: 600; }

/* Fewer taps */
.steps-repeat { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--brand); }
.steps-repeat p { margin: 0; display: grid; gap: 2px; }
.steps-repeat b { color: var(--brand); }
.steps-repeat span { color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.steps-repeat .primary { margin: 0; min-height: 46px; }
.steps-more-toggle { display: block; margin: 8px 0 0; padding: 0; color: var(--brand); font-weight: 600; }
.steps-more-field { margin-top: 10px; }
a.primary.send-again { display: flex; align-items: center; justify-content: center; margin: 0 0 10px; text-decoration: none; text-align: center; padding: 0 12px; }
/* Quick replies on the home screen */
.quick { margin: 0 0 16px; }
.quick-title { font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.quick-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.quick-row::-webkit-scrollbar { display: none; }
.quick-row button {
  flex: none; max-width: 70vw; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.quick-row button::before { content: '⚡ '; }

/* WhatsApp Business auto-replies */
.ar-guide { margin: 0 0 14px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; background: var(--surface); }
.ar-guide summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.ar-guide summary::-webkit-details-marker { display: none; }
.ar-guide summary::after { content: '+'; margin-left: auto; padding-left: 12px; font-size: 22px; font-weight: 400; color: var(--muted); }
.ar-guide[open] summary::after { content: '−'; }
.ar-guide ol { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.ar-guide li + li { margin-top: 6px; }
.ar-block { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.ar-block h3 { margin: 0; font-size: 16px; }
.ar-block .hint { margin: 2px 0 8px; }
.ar-text {
  width: 100%; box-sizing: border-box; min-height: 64px; resize: vertical; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.4;
}
.ar-text:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.ar-copy { margin: 6px 0 4px; min-height: 40px; padding: 0 16px; }
.ar-quick { margin: 0 0 10px; }
.ar-key { margin: 6px 0 4px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ar-key b { font-family: ui-monospace, Menlo, monospace; color: var(--brand); }
.ar-key span { color: var(--muted); }
.ar-savequick { width: 100%; margin: 6px 0 4px; }
.ar-normal { margin-top: 12px; }
.ar-again { display: block; margin: 8px auto 4px; }

/* Today: follow-ups, the next festival, today's idea */
.today { margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.today-title { font-size: 13px; color: var(--muted); margin: 0; font-weight: 600; }
.today-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.today-follow, .today-pro, .today-new { border-color: var(--brand); }
.today-icon { font-size: 22px; line-height: 1.2; }
.today-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.today-body b { font-size: 15px; padding-right: 28px; }
.today-body span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.today-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.today-actions button { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.today-x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; font-size: 20px; color: var(--muted); }

/* Send: remind me to follow up */
.send-follow { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.send-follow-q { font-size: 14px; color: var(--muted); }
.send-follow-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.send-follow-opts button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; }
.send-follow-opts button.on { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }

/* ---------- 2.2: every screen fits the phone with no scrolling ----------
   The home screen: one Today line and 6 groups. Groups, Today, Settings, Q&A and forms are screens of their own
   ("pages"); small choices are popups over them. Only chats, long replies, Q&A answers and legal pages scroll. */
.thread.home { display: flex; flex-direction: column; padding: 12px 16px 10px; }
.thread.home .welcome { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 0; }
.welcome .home-hello { font-size: 21px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.welcome .home-ask { margin: -8px 0 0; font-size: 15px; }
.welcome .today, .welcome .quick { margin: 0; }
.groups { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(48px, 1fr); gap: 10px; }
.group {
  container-type: size; min-width: 0; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-align: left; color: var(--ink);
}
.group-in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 6px; padding: 12px 14px; }
/* Less room (quick replies, a notice, a small phone): icon beside the words, then the words only */
@container (max-height: 112px) {
  .group-in { flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; padding: 8px 12px; }
  .group-in .group-icon { width: 40px; height: 40px; flex: none; font-size: 21px; }
  .group-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@container (max-height: 64px) { .group-text span { display: none; } }
.group:active { transform: scale(0.98); }
.group:focus-visible, .row:focus-visible, .today-line:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.group-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; font-size: 24px; }
.group-text { display: flex; flex-direction: column; min-width: 0; }
.group-text b { font-size: 18px; line-height: 1.2; }
.group-text span { font-size: 13px; line-height: 1.3; color: var(--muted); }
@media (min-width: 640px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.today-line {
  width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: left; color: var(--ink);
}
.today-line-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--warm); display: grid; place-items: center; font-size: 22px; }
.today-line-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.today-line-text small { font-size: 12.5px; font-weight: 700; color: var(--warm-ink); }
.today-line-text b { font-size: 15.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.today-line-more { flex: none; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--tint); border-radius: 999px; padding: 2px 10px; }
.row-chev { width: 18px; height: 18px; flex: none; color: var(--muted); }

/* Pages: a screen of its own, the full height of the phone */
.sheet.page { background: var(--bg); align-items: stretch; }
.sheet.page .sheet-card {
  max-width: 760px; height: 100%; max-height: none; border-radius: 0; animation: none; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 4px) 16px calc(env(safe-area-inset-bottom) + 12px);
}
.sheet.pop { z-index: 25; }
.sheet-head h2 { flex: 1; min-width: 0; }
.sheet-head .up { margin-left: -10px; }
.page-foot { margin-top: auto; padding-top: 10px; }

/* Rows: one line of a screen */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 7px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: left; color: var(--ink); text-decoration: none; font: inherit;
}
.row:active { background: var(--surface-2); }
.row-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--tint); display: grid; place-items: center; font-size: 21px; }
.row-icon:empty { display: none; }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-text b { font-size: 16px; font-weight: 600; line-height: 1.25; }
.row-text span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.row-right { flex: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.row.danger .row-text b { color: var(--danger); }
.rows-label { margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.rows-label.soon-label { color: var(--warm-ink); }
.row-wrap.soon { display: flex; align-items: center; gap: 4px; padding-right: 8px; border: 1px dashed var(--muted); border-radius: 14px; }
.row-wrap.soon .row { border: 0; background: transparent; flex: 1; min-width: 0; padding-right: 4px; color: var(--ink); }
.row-wrap.soon .row-icon { background: var(--warm); }
.tell { flex: none; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--brand); background: var(--surface); color: var(--brand); font-size: 14px; font-weight: 600; }
.tell.on { background: var(--brand); color: var(--brand-ink); }

/* Today: all cards on a screen of their own */
.today-all { margin: 0; gap: 10px; }
.today-all .today-title { display: none; }
.today-page { margin-top: auto; }

/* Q&A by topic */
.faq-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 12px; }
.faq-topics button { min-height: 44px; padding: 2px 8px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.faq-topics button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.faq-list { gap: 6px; }
.faq-list .row { min-height: 48px; padding: 6px 12px; }
.faq-list .row-text b { font-size: 15px; font-weight: 600; }
.answer-q { margin: 4px 0 10px; font-size: 18px; line-height: 1.35; }
.type-rows { white-space: normal; margin: 10px 0; }
.type-rows .row { background: var(--bg); }
.type-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.type-chips button { min-height: 40px; padding: 4px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; line-height: 1.2; text-align: left; display: flex; align-items: center; gap: 6px; }
.answer { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; white-space: pre-line; font-size: 16px; line-height: 1.55; }

/* Forms in short steps */
.step-bar { display: flex; gap: 6px; margin: 2px 0 6px; }
.step-bar i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.step-bar i.on { background: var(--brand); }
.intro-short { font-size: 13.5px; line-height: 1.4; margin-bottom: 10px; }
.form-fill { flex: 1; min-height: 0; }
.form-end { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.form-end .primary { margin: 0; width: 100%; }
.btn-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn-pair .primary, .btn-pair .secondary { margin: 0; width: 100%; min-height: 50px; }

/* First open, in 2 steps: language (and invite code), then the promises and the 18+ tick */
.onboard-card { gap: 12px; padding-top: calc(env(safe-area-inset-top) + 20px); }
.onboard-brand { display: flex; align-items: center; gap: 12px; }
.onboard-brand .onboard-mark { width: 48px; height: 48px; border-radius: 14px; }
.onboard-title .wordmark { height: 40px; }
/* (2.4) How to say the name, under the logo on the welcome screen */
.onboard-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.onboard-say { margin: 0; font-size: 15px; line-height: 1.3; color: var(--muted); }
.onboard-step { display: flex; flex-direction: column; gap: 12px; }
.onboard-h { margin: 0; font-size: 20px; line-height: 1.3; }
.onboard .promise { gap: 6px; }
.onboard .promise li { padding: 0 0 0 18px; background: none; border: 0; border-radius: 0; font-size: 14px; line-height: 1.4; }
.onboard .promise li::before { left: 2px; top: 7px; }
.onboard .primary { margin: 0; width: 100%; }
.guide-one { margin: 8px 0 12px 22px; gap: 10px; font-size: 16px; }
.pro-chosen { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 4px 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pro-chosen-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pro-chosen-text small { font-size: 13px; color: var(--muted); }
.pro-chosen-text b { font-size: 16px; }
.pay-points { margin: 4px 0 6px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.pop-actions { margin-top: 12px; }
.saved-text { max-height: 40dvh; overflow-y: auto; }
.send-type { width: 100%; margin-top: 4px; }
.send-back { display: block; margin: 6px auto 0; }
.sheet.page .poster-preview { flex: 1; min-height: 0; align-items: center; padding: 8px; }
.sheet.page .poster-preview img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.poster-opts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 10px 0 8px; }
.poster-opts button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 4px 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.15; }
.poster-opts button span { font-size: 19px; }
.poster-need-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; padding: 6px 12px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; }
.poster-share-hint { margin: 4px 0 0; font-size: 12.5px; line-height: 1.35; }
.poster-pop .lang-pick { margin-top: 4px; }
.poster-words { gap: 8px; }
.pop-done { width: 100%; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar-quick-label { margin-top: 12px; }
.ar-quick-hint { margin: 0 0 6px; }
.ar-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ar-chip { display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; color: var(--ink); min-width: 0; }
.ar-chip b { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--brand); }
.ar-chip span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-links { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ar-links .link-btn { min-height: 44px; font-size: 14px; }
.ar-steps { margin: 4px 0 8px; padding-left: 20px; font-size: 14.5px; line-height: 1.5; display: grid; gap: 6px; }
.ar-text { width: 100%; }
.sheet.page .upi-preview { flex: 1; min-height: 0; margin: 4px 0 8px; align-items: center; }
.sheet.page .upi-preview img { max-height: 100%; height: auto; width: auto; max-width: 100%; }
.upi-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.4; }
.upi-actions { gap: 8px; }

/* ---------- Connected features (WhatsApp Business number, reply bot, Instagram & Facebook, Google Maps posts) ---------- */
.connect-points { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.connect-points li::marker { color: var(--accent); }
.connect-who { margin: 4px 0 12px; font-weight: 600; color: var(--brand); overflow-wrap: anywhere; }
.connect-off { display: block; margin: auto auto 0; padding-top: 12px; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 12.5px; font-weight: 700; }
.row-right .badge { margin-right: 6px; }
.wa-list { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
.wa-list .row-right { font-weight: 500; font-size: 12.5px; display: inline-flex; align-items: center; }
.wa-thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 8px; }
.wa-msg { max-width: 84%; padding: 8px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; align-self: flex-start; }
.wa-msg span { white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.wa-msg small { font-size: 11.5px; color: var(--muted); }
.wa-msg.wa-out, .wa-msg.wa-bot { align-self: flex-end; background: var(--tint); border-color: transparent; }
.wa-msg.wa-bot { border: 1px dashed var(--brand); }
.wa-msg.wa-fail { align-self: flex-end; border-color: var(--danger); }
.wa-msg.wa-fail small { color: var(--danger); }
.wa-window { margin: 0 0 8px; }
.bot-facts { min-height: 96px; }
.bot-a { min-height: 24px; margin-top: 10px; }
.bot-answer { margin: 4px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--ink); white-space: pre-line; }
.post-targets { display: grid; gap: 2px; }
.post-targets .poster-check { margin: 6px 0; }
.connect-choose.may-scroll { max-height: 52dvh; overflow-y: auto; }
a.secondary.send-again { display: flex; align-items: center; justify-content: center; margin: 0 0 10px; min-height: 46px; text-decoration: none; text-align: center; padding: 0 12px; }
.send-direct { width: 100%; margin: 0 0 10px; }

/* Short bullets instead of long sentences (My business, Bill / receipt) */
.profile-how, .bill-how { margin: 0 0 10px; padding-left: 22px; display: grid; gap: 3px; font-size: 16px; line-height: 1.35; color: var(--ink); }
.bills-title { margin: 2px 0 6px; font-size: 17px; font-weight: 700; }
.bills-row { min-height: 52px; }
.gst-pick button, .gst-rates button { min-height: 44px; padding: 0 6px; font-size: 15px; }

/* Bill / receipt: the new-bill screen */
.bill-text textarea { min-height: 0; font-size: 17px; line-height: 1.4; }
.bill-add-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.bill-add-row .secondary { margin: 0; min-height: 48px; font-size: 15.5px; }
.bill-photo-chip { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 4px 4px 4px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 600; }
.bill-photo-chip img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.bill-photo-chip span { flex: 1; min-width: 0; }
.bill-paid-label { margin: 12px 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.bill-paid button { min-height: 48px; font-size: 16px; }
.bill-foot { display: flex; flex-direction: column; gap: 2px; }
.bill-foot .primary { margin: 0; width: 100%; min-height: 52px; font-size: 17px; }
.bill-foot .link-btn { min-height: 44px; font-size: 15.5px; }

/* Bill / receipt: the bill */
.bill-preview { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 8px; border: 0; border-radius: 16px; background: var(--surface-2); }
.bill-preview img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: 0 2px 10px rgb(0 0 0 / 0.12); }
.bill-warn { margin-top: 8px; }
.bill-total { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 4px 0; font-size: 15px; color: var(--muted); }
.bill-total b { font-size: 24px; color: var(--ink); }
.poster-opts.bill-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.poster-opts.bill-opts button { font-size: 14.5px; }
.bill-send { width: 100%; margin: 0; min-height: 50px; font-size: 17px; }
.bill-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.bill-actions .secondary { margin: 0; min-height: 46px; padding: 0 4px; font-size: 15px; }
.bill-zoom { max-height: calc(100dvh - 180px); overflow-y: auto; border-radius: 12px; background: var(--surface-2); }
.bill-zoom img { display: block; width: 100%; height: auto; }
.bill-items { max-height: calc(100dvh - 200px); overflow-y: auto; display: grid; gap: 8px; padding: 2px; }
.bill-item { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bill-item.bi-check { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.bi-top { display: flex; align-items: center; gap: 6px; }
.bi-n { flex: none; width: 22px; text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.bill-item input, .bill-item select { width: 100%; min-width: 0; min-height: 42px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; }
.bi-top input { flex: 1; }
.bi-top select { flex: none; width: 74px; }
.bi-del { flex: none; width: 38px; height: 42px; border: 0; background: none; color: var(--muted); font-size: 18px; }
.bi-nums { display: grid; grid-template-columns: 0.9fr 0.9fr 1.2fr 1.3fr; gap: 6px; align-items: end; }
.bi-nums.bi-mrp { grid-template-columns: 0.8fr 0.8fr 1fr 1fr 1.2fr; }
.bi-nums label { display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.bi-amt { padding-bottom: 10px; text-align: right; font-size: 16px; white-space: nowrap; }
.bill-items-end { margin-top: 10px; }
.bill-designs { display: grid; grid-template-columns: 1fr; gap: 8px; }
.bill-designs button { min-height: 52px; font-size: 16px; }
.bill-details { gap: 10px; }
.bill-details .label { margin: 0 0 6px; }
.bill-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bill-row2 small { font-weight: 400; }
.bill-row2 > .field { min-width: 0; }
.bill-row2 input { width: 100%; min-width: 0; }
.sheet.page .bill-text { flex: 1 1 auto; min-height: 0; }
.sheet.page .bill-text textarea { flex: 1; min-height: 116px; resize: none; }
/* (2.4) "Or write your own": bigger, easier to see */
.steps-own { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.steps-own input { min-height: 50px; font-size: 17px; }
/* (2.4) Coming soon: what you'll need to link it */
.soon-need-h { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.soon-need { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; font-size: 15.5px; line-height: 1.35; }
/* (2.4) The empty chat list says what it is for */
.history li.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.empty-how { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
.empty-how li { padding: 0; border: 0; }
.invite a { color: var(--brand); font-weight: 600; }
.history li.empty { display: block; }
.history .empty-how li { display: list-item; border-radius: 0; }
.today-why { margin-top: auto; align-self: center; font-size: 15px; }
.today-page + .today-why { margin-top: 4px; }
