/* Nilara WebChat — interface do paciente */
:root {
  --brand: #3b3e34;
  --accent: #6f7d1c;
  --bg: #f1f2ec;
  --surface: #ffffff;
  --surface-2: #f6f7f2;
  --text: #1c1e18;
  --muted: #6c6f63;
  --line: rgba(28, 30, 24, .08);
  --in: #ffffff;
  --out: color-mix(in srgb, var(--accent) 14%, #ffffff);
  --out-text: #1c1e18;
  --chip: color-mix(in srgb, var(--accent) 9%, #ffffff);
  --chip-line: color-mix(in srgb, var(--accent) 28%, transparent);
  --ok: #16a34a;
  --danger: #e11d48;
  --shadow: 0 1px 1.5px rgba(28, 30, 24, .08), 0 1px 0 rgba(28, 30, 24, .02);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121310;
    --surface: #1c1d19;
    --surface-2: #24261f;
    --text: #ecede6;
    --muted: #94978a;
    --line: rgba(255, 255, 255, .08);
    --in: #24261f;
    --out: color-mix(in srgb, var(--accent) 38%, #151612);
    --out-text: #f4f5ef;
    --chip: color-mix(in srgb, var(--accent) 16%, #1c1d19);
    --chip-line: color-mix(in srgb, var(--accent) 45%, transparent);
    --shadow: 0 1px 1.5px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 92%, #000) 0%, color-mix(in srgb, var(--brand) 70%, var(--accent)) 100%);
  display: flex; align-items: center; justify-content: center; gap: 56px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- Fundo decorativo (desktop) ---------- */
.backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 18s ease-in-out infinite; }
.b1 { width: 460px; height: 460px; background: var(--accent); top: -120px; left: -80px; }
.b2 { width: 380px; height: 380px; background: #a8b43c; bottom: -140px; right: 8%; animation-delay: -6s; opacity: .25; }
.b3 { width: 300px; height: 300px; background: #d03030; top: 40%; left: 35%; animation-delay: -12s; opacity: .18; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }

.side-info { position: relative; color: #fff; max-width: 360px; }
.side-brand { display: flex; align-items: center; gap: 12px; font-size: 15px; opacity: .95; }
.side-brand img { height: 44px; border-radius: 12px; background: #fff; padding: 4px; }
.side-mark { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-weight: 800; font-size: 20px; backdrop-filter: blur(6px); }
.side-info h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; margin: 28px 0 24px; font-weight: 800; }
.side-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.side-info li { display: flex; gap: 12px; align-items: center; font-size: 15px; opacity: .92; }
.side-info li span { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; }

/* ---------- App ---------- */
.app {
  position: relative; z-index: 1;
  width: 440px; height: min(860px, calc(100dvh - 48px));
  background: var(--bg);
  border-radius: 28px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
  display: flex; flex-direction: column; overflow: hidden;
}
@media (max-width: 900px) { .side-info { display: none; } }
@media (max-width: 560px) {
  body { background: var(--bg); }
  .backdrop { display: none; }
  .app { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}
body.is-embed { background: transparent; }
body.is-embed .backdrop, body.is-embed .side-info { display: none; }
body.is-embed .app { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }

/* ---------- Topo ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 16px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
  color: #fff; position: relative; z-index: 3;
  box-shadow: 0 4px 18px -8px rgba(0, 0, 0, .4);
}
.avatar { position: relative; width: 44px; height: 44px; flex: none; }
.avatar > span, .avatar > img { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-weight: 800; font-size: 18px; object-fit: cover; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.avatar > img { background: #fff; }
.presence { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2.5px var(--brand); }
.avatar.agent > span { background: #fff; color: var(--brand); }
.who { flex: 1; min-width: 0; line-height: 1.25; }
.who strong { display: flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verified svg { width: 16px; height: 16px; fill: #8a9a2a; stroke: none; vertical-align: -2px; }
.verified svg path + path { fill: none; }
.who small { font-size: 12.5px; opacity: .85; display: block; transition: opacity .2s; }
.who small.typing { color: #a7f3d0; opacity: 1; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.22); }

/* ---------- Telas de estado ---------- */
.screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 28px; gap: 10px; background: var(--surface); }
.screen h1 { font-size: 22px; margin: 8px 0 0; letter-spacing: -.01em; }
.screen p { color: var(--muted); margin: 0; line-height: 1.55; max-width: 340px; font-size: 15px; }
.screen p strong { color: var(--text); }
.pulse-logo { width: 78px; height: 78px; border-radius: 26px; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); animation: pulse 1.6s ease-in-out infinite; margin-bottom: 8px; }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { transform: scale(1.04); box-shadow: 0 0 0 18px transparent; } }
.state-icon { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); margin-bottom: 6px; }
.state-icon svg { width: 40px; height: 40px; stroke-width: 1.6; }
.state-icon.warn { background: #fff4e5; color: #f59e0b; }
.state-icon.danger { background: #ffe4e8; color: var(--danger); }
@media (prefers-color-scheme: dark) { .state-icon.warn { background: #3a2a10; } .state-icon.danger { background: #3a1520; } }
.state-actions { display: grid; gap: 10px; margin-top: 18px; width: 100%; max-width: 320px; }

.btn-primary { border: 0; border-radius: 14px; padding: 14px 20px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; width: 100%; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .15s, filter .2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-primary.sm { padding: 9px 14px; font-size: 13.5px; width: auto; border-radius: 12px; }
.btn-primary.wa { background: #25d366; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-link { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 10px; }
.btn-link:disabled { color: var(--muted); }

.otp-step { width: 100%; max-width: 340px; margin-top: 18px; display: grid; gap: 12px; }
.otp-boxes { display: flex; gap: 8px; justify-content: center; }
.otp-boxes input { width: 46px; height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); text-align: center; font-size: 22px; font-weight: 700; outline: none; transition: border-color .2s, box-shadow .2s; font-family: inherit; }
.otp-boxes input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.otp-boxes.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.otp-error { color: var(--danger); font-size: 13.5px; min-height: 18px; }

/* ---------- Chat ---------- */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.messages {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
  scroll-behavior: smooth;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%237a8699' stroke-opacity='.16' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14v12M14 20h12'/%3E%3Cpath d='M78 22c-3-4-10-3-10 3 0 5 10 10 10 10s10-5 10-10c0-6-7-7-10-3z'/%3E%3Ccircle cx='96' cy='84' r='6'/%3E%3Cpath d='M30 80l6 6 10-12'/%3E%3Cpath d='M58 100h14M65 93v14'/%3E%3Ccircle cx='56' cy='52' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px;
}

@media (prefers-color-scheme: dark) { .messages {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%237a8699' stroke-opacity='.07' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 14v12M14 20h12'/%3E%3Cpath d='M78 22c-3-4-10-3-10 3 0 5 10 10 10 10s10-5 10-10c0-6-7-7-10-3z'/%3E%3Ccircle cx='96' cy='84' r='6'/%3E%3Cpath d='M30 80l6 6 10-12'/%3E%3Cpath d='M58 100h14M65 93v14'/%3E%3Ccircle cx='56' cy='52' r='6'/%3E%3C/g%3E%3C/svg%3E");
} }

.day-sep { align-self: center; margin: 10px 0 8px; padding: 5px 12px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; box-shadow: var(--shadow); text-transform: uppercase; letter-spacing: .04em; }
.sys { align-self: center; margin: 8px 0; padding: 6px 12px; border-radius: 10px; font-size: 12.5px; color: var(--muted); background: color-mix(in srgb, var(--surface) 85%, transparent); box-shadow: var(--shadow); max-width: 88%; text-align: center; backdrop-filter: blur(4px); }
.sys.secure { background: color-mix(in srgb, #fde68a 55%, var(--surface)); color: color-mix(in srgb, #92400e 80%, var(--text)); }
@media (prefers-color-scheme: dark) { .sys.secure { background: #3a3218; color: #fcd34d; } }

.row { display: flex; flex-direction: column; max-width: 84%; animation: pop .28s cubic-bezier(.2, .9, .3, 1.2) both; }
.row.in { align-self: flex-start; }
.row.wide { max-width: 100%; width: 100%; }
.row.wide .bubble { align-self: flex-start; max-width: 84%; }
.row.out { align-self: flex-end; align-items: flex-end; }
.row.first { margin-top: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

.bubble { position: relative; padding: 8px 12px 6px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 15px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.in .bubble { background: var(--in); border-top-left-radius: 6px; }
.out .bubble { background: var(--out); color: var(--out-text); border-top-right-radius: 6px; }
.row:not(.first).in .bubble { border-top-left-radius: var(--radius); border-bottom-left-radius: 6px; }
.row:not(.first).out .bubble { border-top-right-radius: var(--radius); border-bottom-right-radius: 6px; }
.row.first.in .bubble::before, .row.first.out .bubble::before { content: ''; position: absolute; top: 0; width: 10px; height: 12px; }
.row.first.in .bubble::before { left: -6px; background: var(--in); clip-path: polygon(100% 0, 0 0, 100% 100%); border-top-left-radius: 3px; }
.row.first.out .bubble::before { right: -6px; background: var(--out); clip-path: polygon(0 0, 100% 0, 0 100%); border-top-right-radius: 3px; }
.bubble a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.bubble b { font-weight: 700; }
.author { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 2px; display: block; }
.meta { float: right; margin: 6px -4px -2px 10px; font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; line-height: 1; user-select: none; }
.out .meta { color: color-mix(in srgb, var(--out-text) 55%, transparent); }
.ticks svg { width: 16px; height: 11px; stroke-width: 1.6; }
.ticks.read { color: #6f7d1c; }

/* Opções (respostas rápidas) */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 4px; max-width: 100%; }
.chips.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip { border: 1.5px solid var(--chip-line); background: var(--chip); color: var(--text); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; line-height: 1.2; transition: transform .15s, background .2s, border-color .2s; text-align: center; }
.chips.grid .chip { border-radius: 14px; padding: 11px 10px; }
.chip:hover { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--accent); }
.chip:active { transform: scale(.96); }
.chip.picked { background: var(--accent); color: #fff; border-color: var(--accent); }
.chips.used .chip:not(.picked) { opacity: .45; pointer-events: none; }
.chips.used .chip.picked { pointer-events: none; }
.chip-search { width: 100%; grid-column: 1 / -1; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; outline: none; }
.chip-search:focus { border-color: var(--accent); }

/* Dias */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 6px; margin: 2px -2px 0; scroll-snap-type: x mandatory; max-width: 100%; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; scroll-snap-align: start; width: 66px; border: 1.5px solid var(--chip-line); background: var(--surface); border-radius: 16px; padding: 10px 0 9px; display: grid; gap: 1px; justify-items: center; color: var(--text); transition: transform .15s, background .2s; box-shadow: var(--shadow); }
.day small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day strong { font-size: 22px; font-weight: 800; line-height: 1.15; }
.day em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.day:hover { border-color: var(--accent); }
.day.picked { background: var(--accent); border-color: var(--accent); color: #fff; }
.day.picked small, .day.picked em { color: rgba(255,255,255,.85); }
.used .day:not(.picked) { opacity: .45; pointer-events: none; }

/* Horários por profissional */
.slots { display: grid; gap: 10px; margin-top: 8px; width: 100%; }
.pro { background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.pro-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.pro-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--brand)); font-size: 14px; }
.pro-head strong { display: block; font-size: 14.5px; }
.pro-head small { color: var(--muted); font-size: 12px; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.time { border: 1.5px solid var(--chip-line); background: var(--chip); color: var(--text); border-radius: 10px; padding: 8px 0; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.time:hover { border-color: var(--accent); }
.time.picked { background: var(--accent); color: #fff; border-color: var(--accent); }
.used .time:not(.picked) { opacity: .4; pointer-events: none; }
.slots-wrap { max-width: 100%; width: 320px; }

/* Card de agendamento */
.appt { width: 290px; max-width: 100%; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px -14px rgba(28, 30, 24, .35), var(--shadow); margin-top: 2px; }
.appt-head { padding: 14px 16px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: #fff; display: flex; align-items: center; gap: 10px; }
.appt.success .appt-head { background: linear-gradient(135deg, #5b6914, #8a9a2a); }
.appt-head .ic { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.appt-head strong { font-size: 15.5px; display: block; }
.appt-head small { opacity: .85; font-size: 12px; }
.appt-body { padding: 12px 16px 14px; display: grid; gap: 9px; font-size: 14px; }
.appt-body div { display: flex; gap: 10px; align-items: flex-start; }
.appt-body svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
.appt-body .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--muted); }
.appt-foot { padding: 0 16px 14px; }
.appt-foot a { display: flex; justify-content: center; gap: 8px; align-items: center; text-decoration: none; font-weight: 700; font-size: 13.5px; color: var(--accent); border: 1.5px solid var(--chip-line); border-radius: 12px; padding: 9px; }
.appt-foot svg { width: 18px; height: 18px; }

/* Digitando */
.typing-row .bubble { padding: 12px 14px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .5; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: .9; } }

/* Composer */
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.field { flex: 1; position: relative; }
.field input { width: 100%; border: 0; outline: none; background: var(--surface); color: var(--text); border-radius: 24px; padding: 13px 18px; font: inherit; font-size: 16px; box-shadow: var(--shadow); transition: box-shadow .2s; }
.field input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow); }
.field input:disabled { opacity: .7; }
.field input::placeholder { color: var(--muted); }
.hint { position: absolute; left: 18px; top: -20px; font-size: 11.5px; color: var(--muted); font-weight: 600; pointer-events: none; }
.send { width: 48px; height: 48px; border-radius: 50%; border: 0; flex: none; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 80%, transparent); transition: transform .15s, opacity .2s; }
.send svg { fill: currentColor; stroke: none; width: 21px; height: 21px; margin-left: 3px; }
.send:active { transform: scale(.92); }
.send:disabled { opacity: .45; }
.composer.locked .field input { background: transparent; box-shadow: none; text-align: center; }

.closed-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); font-weight: 600; }

.scroll-down { position: absolute; right: 14px; bottom: 80px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface); color: var(--muted); box-shadow: 0 4px 14px rgba(0,0,0,.18); display: grid; place-items: center; z-index: 2; }
.scroll-down b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ok); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }

/* Sheet */
.sheet { position: fixed; inset: 0; background: rgba(14, 15, 12, .45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.sheet-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 26px 26px 0 0; padding: 12px 22px max(22px, env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes up { from { transform: translateY(100%); } }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet-card h3 { margin: 0 0 12px; font-size: 18px; }
.sheet-list { margin: 0 0 18px; padding: 0 0 0 18px; display: grid; gap: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.sheet-list b { color: var(--text); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Marca / ícones SVG ---------- */
.side-logo { display: inline-flex; background: #fff; border-radius: 20px; padding: 14px 20px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); }
.side-logo img { height: 92px; width: auto; display: block; }
.side-info li span svg { width: 19px; height: 19px; stroke: #fff; }
.side-powered { margin-top: 34px; display: flex; align-items: center; gap: 8px; font-size: 12px; opacity: .6; font-weight: 600; letter-spacing: .02em; }
.side-powered img { height: 21px; filter: brightness(0) invert(1); }
.avatar .bot-av, .avatar .agent-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.avatar .bot-av { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); }
.avatar .bot-av svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 1.7; }
.avatar .agent-av { background: #fff; color: var(--brand); font-weight: 800; font-size: 16px; }
.loading-logo { background: #fff; border-radius: 22px; padding: 14px 20px; box-shadow: 0 12px 30px -16px rgba(28,30,24,.35); margin-bottom: 14px; animation: breathe 2s ease-in-out infinite; }
.loading-logo img { height: 70px; display: block; }
@keyframes breathe { 50% { transform: scale(1.03); } }
.loader { width: 26px; height: 26px; border: 3px solid color-mix(in srgb, var(--accent) 20%, transparent); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheet-card h3 { display: flex; align-items: center; gap: 8px; }
.sheet-card h3 svg { color: var(--accent); }
.sheet-powered { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 16px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sheet-powered img { height: 15px; }
@media (prefers-color-scheme: dark) { .sheet-powered img { filter: brightness(0) invert(.85); } }
.sys svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.chip svg { width: 16px; height: 16px; flex: none; color: var(--accent); stroke-width: 2; }
.chip.picked svg { color: #fff; }

/* ---------- App (PWA) e notificações ---------- */
.icon-btn { position: relative; }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 2px var(--brand); }
.topbar { gap: 8px; }
.app-banner { display: flex; align-items: center; gap: 10px; margin: 0 10px 6px; padding: 9px 10px 9px 12px; border-radius: 16px; background: var(--surface); box-shadow: 0 6px 20px -10px rgba(28,30,24,.35), var(--shadow); animation: pop .3s ease both; }
.ab-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex: none; }
.ab-ic svg { width: 19px; height: 19px; }
.ab-text { flex: 1; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ab-x { border: 0; background: none; color: var(--muted); padding: 4px; display: grid; }
.ab-x svg { width: 18px; height: 18px; }
.app-sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.app-sheet-head img { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); flex: none; }
.app-sheet-head h3 { margin: 0 0 3px; font-size: 18px; }
.app-sheet-head p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.perks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.perks svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.steps { list-style: none; margin: 0 0 12px; padding: 14px; display: grid; gap: 12px; background: var(--surface-2); border-radius: 16px; }
.steps li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.4; }
.steps li > b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.steps .k { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); vertical-align: middle; margin: 0 2px; color: #6f7d1c; }
.steps .k svg { width: 17px; height: 17px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.sheet-actions { display: grid; gap: 8px; }
.sheet-actions .btn-primary svg { width: 19px; height: 19px; }
.sheet-actions .btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.sheet-actions .btn-link svg { width: 18px; height: 18px; }
@media (display-mode: standalone) { .app { border-radius: 0; } }

/* =========================================================
   App: botão de instalar, abas e telas
   ========================================================= */
.install-pill { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; flex: none; }
.install-pill svg { width: 18px; height: 18px; }
.install-pill.icon-only { width: 40px; padding: 0; justify-content: center; border-radius: 12px; }
.install-pill.attn { background: #fff; color: var(--brand); box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pillPulse 2.2s ease-out infinite; }
.install-pill.attn svg { animation: ring 2.2s ease-in-out infinite; transform-origin: 50% 10%; }
.install-pill .dot { position: absolute; top: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 2px var(--brand); }
@keyframes pillPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(14deg); } 72% { transform: rotate(-12deg); } 79% { transform: rotate(8deg); } 86% { transform: rotate(-4deg); } }
@media (max-width: 340px) { .install-pill:not(.icon-only) span { display: none; } .install-pill:not(.icon-only) { width: 40px; padding: 0; justify-content: center; } }

.tab-screen { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding-bottom: 18px; -webkit-overflow-scrolling: touch; }
.tabbar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px max(8px, env(safe-area-inset-bottom)); position: relative; z-index: 4; }
.tabbar button { border: 0; background: none; color: var(--muted); display: grid; justify-items: center; gap: 3px; padding: 6px 0 2px; font-size: 11px; font-weight: 700; position: relative; border-radius: 12px; }
.tabbar button svg { width: 24px; height: 24px; stroke-width: 1.8; transition: transform .2s; }
.tabbar button.on { color: var(--accent); }
.tabbar button.on svg { transform: translateY(-1px); stroke-width: 2.1; }
.tabbar button.on::before { content: ''; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tab-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 10.5px; display: grid; place-items: center; }
.app.has-tabs .composer { padding-bottom: 10px; }
.app.has-tabs .closed-bar { padding-bottom: 12px; }

/* Início */
.hero { position: relative; padding: 22px 20px 64px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 60%), linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 190px; height: 190px; border-radius: 50%; border: 28px solid rgba(255,255,255,.06); }
.hero-logo { display: inline-flex; background: #fff; border-radius: 16px; padding: 8px 12px; margin-bottom: 16px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.hero-logo img { height: 42px; display: block; }
.hero h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.hero p { margin: 4px 0 0; opacity: .85; font-size: 15px; }
.home-body { padding: 0 14px; margin-top: -44px; position: relative; display: grid; gap: 14px; }
.sec-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 4px -4px; display: flex; align-items: center; gap: 8px; }
.hero + .home-body > .sec-title:first-child { color: rgba(255,255,255,.85); }

.appt-tile { background: var(--surface); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: 62px 1fr; gap: 12px; box-shadow: 0 10px 30px -18px rgba(28,30,24,.45), var(--shadow); }
.appt-tile + .appt-tile { margin-top: 10px; }
.at-date { border-radius: 16px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); display: grid; place-items: center; align-content: center; padding: 8px 0; text-align: center; }
.appt-tile.big .at-date { background: linear-gradient(160deg, var(--accent), var(--brand)); color: #fff; }
.at-date small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.at-date b { font-size: 26px; line-height: 1.05; font-weight: 800; }
.at-info { display: grid; gap: 2px; min-width: 0; align-content: start; }
.at-kicker { font-size: 12px; font-weight: 800; color: var(--accent); }
.at-info strong { font-size: 16.5px; }
.at-info span { font-size: 13.5px; }
.at-info .muted { color: var(--muted); }
.at-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.at-actions .btn-primary { flex: 1 1 100%; }
.at-actions .btn-primary svg, .at-btn svg { width: 17px; height: 17px; }
.at-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--chip-line); background: var(--chip); color: var(--text); border-radius: 12px; padding: 9px 10px; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; }
.chip-ok, .chip-warn, .chip-muted { justify-self: start; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin-top: 5px; letter-spacing: 0; text-transform: none; }
.chip-ok { background: #dcfce7; color: #15803d; }
.chip-ok svg { width: 13px; height: 13px; }
.chip-warn { background: #ffedd5; color: #c2410c; }
.chip-muted { background: var(--surface-2); color: var(--muted); }
@media (prefers-color-scheme: dark) { .chip-ok { background: #0f2a1b; color: #4ade80; } .chip-warn { background: #3a2410; color: #fb923c; } }

.empty-next { background: var(--surface); border-radius: 20px; padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px -18px rgba(28,30,24,.45), var(--shadow); }
.empty-next > span { width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); display: grid; place-items: center; flex: none; }
.empty-next > div { flex: 1; display: grid; gap: 2px; }
.empty-next small { color: var(--muted); }

.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa-grid > * { border: 0; background: var(--surface); border-radius: 18px; padding: 14px 6px 12px; display: grid; justify-items: center; gap: 8px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text); text-decoration: none; text-align: center; line-height: 1.25; box-shadow: var(--shadow); transition: transform .15s; }
.qa-grid > *:active { transform: scale(.96); }
.qa-grid span { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); }
.qa-grid span svg { width: 23px; height: 23px; }

.promo { border: 0; width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; color: #fff; font: inherit; background: linear-gradient(120deg, #6f7d1c, #3b3e34); box-shadow: 0 12px 26px -14px rgba(59,62,52,.7); }
.promo-ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.promo-ic svg { width: 22px; height: 22px; animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
.promo > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.promo small { opacity: .9; }
.promo > svg { width: 20px; height: 20px; }

.hours-strip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; }
.hours-strip > svg { width: 20px; height: 20px; color: var(--muted); }
.hours-strip.open > svg { color: #16a34a; }
.hours-strip.open b { color: #16a34a; }
.hours-strip > span { flex: 1; }
.hours-strip button { border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; font-size: 13px; }
.notices { display: grid; gap: 8px; }
.notice { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.notice > svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.notice div { display: grid; gap: 2px; font-size: 13.5px; }
.notice small { color: var(--muted); font-size: 11.5px; }

/* Consultas e Contato */
.page-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 16px 6px; }
.page-hd h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.page-hd .btn-primary svg { width: 17px; height: 17px; }
.tab-screen > .sec-title, .tab-screen > .appt-tile, .tab-screen > .empty-next, .tab-screen > .past, .tab-screen > .c-list, .tab-screen > .hours-tb, .tab-screen > .faq { margin-left: 14px; margin-right: 14px; }
.tab-screen > .sec-title { margin-top: 18px; margin-bottom: 8px; }
.past { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.past-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.past-row:first-child { border-top: 0; }
.pr-date { width: 44px; text-align: center; color: var(--muted); display: grid; }
.pr-date b { font-size: 18px; color: var(--text); }
.pr-date small { font-size: 11px; text-transform: uppercase; }
.past-row > div:nth-child(2) { flex: 1; display: grid; font-size: 13.5px; }
.past-row .chip-muted { margin: 0; }
.c-list { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; margin-top: 10px; }
.c-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; }
.c-row:first-child { border-top: 0; }
.c-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); flex: none; }
.c-ic svg { width: 21px; height: 21px; }
.c-tx { flex: 1; display: grid; gap: 1px; min-width: 0; }
.c-tx small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.c-row > svg:last-child { width: 18px; height: 18px; color: var(--muted); }
.hours-tb { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.hours-tb div { display: flex; justify-content: space-between; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.hours-tb div:first-child { border-top: 0; }
.hours-tb .today { background: color-mix(in srgb, var(--accent) 8%, transparent); font-weight: 700; }
.hours-tb .today span::after { content: ' · hoje'; color: var(--accent); font-size: 12px; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; font-weight: 700; font-size: 14px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; flex: none; }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq p { margin: 0; padding: 0 14px 14px; color: var(--muted); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.skel { padding: 20px 16px; display: grid; gap: 12px; }
.skel i { height: 90px; border-radius: 18px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Tela de instalação */
.install-gate { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; overflow-y: auto; color: #fff; animation: fade .25s; }
.ig-bg { position: absolute; inset: 0; background: radial-gradient(90% 60% at 80% 0%, color-mix(in srgb, var(--accent) 80%, transparent), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(236,72,153,.35), transparent 60%), linear-gradient(170deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.ig-inner { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: max(34px, env(safe-area-inset-top)) 22px 26px; }
.ig-icon { position: relative; width: 104px; height: 104px; margin-bottom: 16px; animation: floaty 3s ease-in-out infinite; }
.ig-icon img { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); position: relative; z-index: 1; }
.ig-ring { position: absolute; inset: -10px; border-radius: 34px; border: 2px solid rgba(255,255,255,.35); animation: ringOut 2s ease-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }
@keyframes ringOut { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.ig-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.15); padding: 4px 10px; border-radius: 999px; }
.install-gate h1 { font-size: 27px; margin: 12px 0 6px; letter-spacing: -.02em; line-height: 1.15; }
.ig-sub { margin: 0 0 18px; opacity: .88; font-size: 15px; line-height: 1.5; max-width: 340px; }
.ig-perks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; width: 100%; max-width: 360px; text-align: left; }
.ig-perks li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; font-weight: 600; }
.ig-perks span { width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.ig-perks svg { width: 19px; height: 19px; }
.ig-steps { width: 100%; max-width: 380px; }
.ig-list { list-style: none; margin: 0; padding: 14px; display: grid; gap: 12px; border-radius: 18px; background: rgba(255,255,255,.96); color: #1c1e18; text-align: left; box-shadow: 0 18px 40px -20px rgba(0,0,0,.5); }
.ig-list li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.4; }
.ig-list li > b { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.ig-list small { color: #6c6f63; }
.ig-list .k { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #f2f3ed; vertical-align: middle; color: #6f7d1c; }
.ig-list .k svg { width: 17px; height: 17px; }
.ig-warn { display: flex; gap: 12px; text-align: left; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.14); }
.ig-warn svg { width: 24px; height: 24px; flex: none; }
.ig-warn div { display: grid; gap: 3px; font-size: 14px; }
.ig-actions { width: 100%; max-width: 380px; display: grid; gap: 10px; margin-top: 16px; }
.ig-actions .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 12px 26px -10px rgba(0,0,0,.45); }
.ig-actions .btn-primary svg { width: 20px; height: 20px; }
.ig-big { padding: 17px 20px; font-size: 16.5px; animation: pillPulse 2.2s ease-out infinite; }
.ig-skip { border: 0; background: none; color: rgba(255,255,255,.75); font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px; text-decoration: underline; text-underline-offset: 3px; }
.ig-skip.strong { color: #fff; text-decoration: none; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px; padding: 11px; }
.ig-note { font-size: 13px; opacity: .85; margin: 0; line-height: 1.5; }
.ig-arrow { position: sticky; bottom: 8px; align-self: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); animation: bounce 1.4s ease-in-out infinite; z-index: 2; margin-bottom: max(8px, env(safe-area-inset-bottom)); }
.ig-arrow svg { width: 24px; height: 24px; stroke-width: 2.4; }
@keyframes bounce { 50% { transform: translateY(8px); } }

/* Celular e app instalado: ocupa exatamente a tela (evita a sobra embaixo no iPhone) */
@media (max-width: 560px) {
  .app { position: fixed; inset: 0; width: auto; height: auto; }
}
@media (display-mode: standalone) {
  body { background: var(--bg); }
  .backdrop, .side-info { display: none; }
  .app { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; }
}

/* iPhone (app instalado): altura física da tela, calculada no chat.php */
html.ios-app, html.ios-app body { background: var(--surface); height: var(--app-h, 100%); overflow: hidden; }
html.ios-app .app { position: fixed; top: 0; left: 0; right: 0; bottom: auto; width: auto; height: var(--app-h, 100%); border-radius: 0; box-shadow: none; }
html.ios-app .backdrop, html.ios-app .side-info { display: none; }

/* ---------- Histórico de conversas ---------- */
.hist { flex: 1; overflow-y: auto; padding: 18px 14px 20px; background: var(--bg); }
.hist-hd { background: var(--surface); border-radius: 22px; padding: 22px 18px 16px; text-align: center; box-shadow: 0 10px 30px -18px rgba(28,30,24,.4), var(--shadow); display: grid; justify-items: center; gap: 6px; }
.hh-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #dcfce7; color: #16a34a; margin-bottom: 4px; }
.hh-ic svg { width: 28px; height: 28px; stroke-width: 2.2; }
.hist-hd h2 { margin: 0; font-size: 20px; }
.hist-hd p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 300px; }
.hh-new { width: 100%; padding: 15px; font-size: 15.5px; }
.hh-new svg { width: 20px; height: 20px; }
.hh-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 4px; }
.hh-quick button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--chip-line); background: var(--chip); color: var(--text); border-radius: 12px; padding: 10px 6px; font: inherit; font-size: 13px; font-weight: 700; }
.hh-quick svg { width: 17px; height: 17px; color: var(--accent); }
.hist > .sec-title { margin: 22px 4px 10px; }
.conv-list { display: grid; gap: 8px; }
.conv-card { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 13px 12px 13px 14px; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); font: inherit; text-align: left; box-shadow: var(--shadow); transition: transform .15s; }
.conv-card:active { transform: scale(.98); }
.cc-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); flex: none; }
.cc-ic.appt { background: #dcfce7; color: #16a34a; }
.cc-ic.open { background: #ffedd5; color: #ea580c; }
.cc-ic svg { width: 20px; height: 20px; }
.cc-tx { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cc-top { display: flex; gap: 8px; align-items: baseline; }
.cc-top b { flex: 1; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-top time { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cc-tx small { color: var(--muted); font-size: 12.5px; }
.cc-tx em { font-style: normal; font-weight: 700; }
.cc-tx em.ok { color: #16a34a; }
.cc-tx em.no { color: #ea580c; }
.cc-last { font-size: 13px; color: var(--text); opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-chev { width: 18px; height: 18px; color: var(--muted); align-self: center; flex: none; }
.hist-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 16px; }
.hist-link { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow); }
.hist-link svg { width: 15px; height: 15px; }

.conv-view { position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; background: var(--bg); animation: slideIn .25s cubic-bezier(.2,.9,.3,1); }
@keyframes slideIn { from { transform: translateX(30%); opacity: 0; } }
.cv-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--line); }
.cv-back { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); display: grid; place-items: center; flex: none; }
.cv-head div { display: grid; min-width: 0; }
.cv-head strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-head small { color: var(--muted); font-size: 12.5px; }
.cv-body { flex: 1; overflow-y: auto; padding: 14px 12px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 2px; }
.cv-body > .conv-list { display: grid; }
.ro-note { align-self: center; display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); background: var(--surface); padding: 5px 12px; border-radius: 10px; margin-bottom: 8px; box-shadow: var(--shadow); }
.ro-note svg { width: 14px; height: 14px; }
.ro-opts { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 2px; }
.ro-opts span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--chip-line); color: var(--muted); }
.cv-body .row { animation: none; }
.menu-list { display: grid; gap: 4px; }
.menu-item { display: flex; gap: 14px; align-items: center; width: 100%; padding: 12px 8px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; border-radius: 14px; }
.menu-item:active { background: var(--surface-2); }
.menu-item > span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); flex: none; }
.menu-item > span svg { width: 21px; height: 21px; }
.menu-item div { display: grid; gap: 1px; }
.menu-item b { font-size: 15px; }
.menu-item small { color: var(--muted); font-size: 12.5px; }
.menu-item.danger > span { background: #fee2e2; color: #dc2626; }
.menu-item.danger b { color: #dc2626; }
@media (prefers-color-scheme: dark) { .menu-item.danger > span { background: #3a1520; } .menu-item.danger b { color: #f87171; } }
.menu-cancel { margin-top: 6px; width: 100%; padding: 13px; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; }
.login-form { width: 100%; max-width: 340px; display: grid; gap: 12px; margin-top: 16px; text-align: left; }
.login-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.login-form input { width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 16px; outline: none; }
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.state-actions .btn-primary svg, .state-actions .btn-link svg { width: 19px; height: 19px; }
.state-actions .btn-link, #loginAlt .btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }

/* ---------- Central de avisos por categoria ---------- */
.sec-link { margin-left: auto; border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.chip-new { background: #ef4444; color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; letter-spacing: 0; text-transform: none; }
.notice { position: relative; display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); border-left: 3px solid var(--c, var(--accent)); }
.notice > svg { display: none; }
.n-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); }
.n-ic svg { width: 20px; height: 20px; }
.notice > div { display: grid; gap: 2px; font-size: 13.5px; min-width: 0; flex: 1; }
.notice b { font-size: 14.5px; }
.n-cat { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--c, var(--accent)); }
.n-cat time { color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; }
.notice.unread::after { content: ''; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.notice.unread .n-cat time { margin-right: 14px; }
.n-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.n-filters { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.n-filters::-webkit-scrollbar { display: none; }
.n-filters button { flex: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 700; }
.n-filters button.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #fff; }
.n-prefs { width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow); flex: none; }
.n-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 50px 24px; color: var(--muted); }
.n-empty span { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: color-mix(in srgb, #86a028 16%, transparent); color: #86a028; margin-bottom: 6px; }
.n-empty span svg { width: 30px; height: 30px; }
.n-empty b { color: var(--text); font-size: 16px; }
.prefs { display: grid; gap: 8px; margin-bottom: 14px; }
.pref { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.pref > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pref b { font-size: 14.5px; }
.pref small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.pref.locked { opacity: .8; }
.pref .switch { position: relative; width: 46px; height: 28px; flex: none; }
.pref .switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1; }
.pref .switch i { position: absolute; inset: 0; border-radius: 28px; background: var(--line); transition: background .2s; }
.pref .switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.pref .switch input:checked + i { background: var(--c, var(--accent)); }
.pref .switch input:checked + i::after { transform: translateX(18px); }
.avatar .brand-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); display: block; }
@media (prefers-color-scheme: dark) {
  .n-ic, .n-cat { color: color-mix(in srgb, var(--c, var(--accent)) 55%, #fff); }
  .n-ic { background: color-mix(in srgb, var(--c, var(--accent)) 28%, transparent); }
  .notice, .pref { border-left-color: color-mix(in srgb, var(--c, var(--accent)) 70%, #fff); }
}

/* Agenda real: observações do profissional e listas longas de horários */
.pro-tag { display: inline-block; margin: 2px 0 8px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.pro-note { margin: 0 0 10px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.time.more { border-style: dashed; color: var(--accent); font-weight: 700; grid-column: 1 / -1; }
.time[hidden] { display: none; }

.times.walkin { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.time.period { display: grid; gap: 2px; padding: 10px 12px; text-align: left; height: auto; }
.time.period b { font-size: 14.5px; }
.time.period small { font-size: 11.5px; font-weight: 500; opacity: .75; }

.time.pick { padding: 11px 14px; font-weight: 700; width: 100%; }
/* Confirmar presença: verde forte, com pulso, para chamar a atenção */
.btn-confirm { background: linear-gradient(135deg, #16a34a, #22c55e) !important; color: #fff !important; box-shadow: 0 10px 22px -8px rgba(22, 163, 74, .75) !important; font-size: 15.5px; padding: 13px 16px; animation: confirmPulse 2s ease-out infinite; }
@keyframes confirmPulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55), 0 10px 22px -8px rgba(22, 163, 74, .75); } 70%, 100% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0), 0 10px 22px -8px rgba(22, 163, 74, .75); } }
@media (prefers-reduced-motion: reduce) { .btn-confirm { animation: none; } }

/* cartão "nenhuma consulta" da tela inicial: o cartão inteiro é o botão (sem repetir "Agendar") */
.empty-next.as-link { width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer; }
.empty-next.as-link .chev { width: 10px; height: 10px; border-right: 2.5px solid var(--accent); border-top: 2.5px solid var(--accent); transform: rotate(45deg); margin: 0 6px 0 auto; flex: none; }

/* dia que ainda conta como retorno */
.day.ret { border-color: #86c79a; position: relative; }
.day.ret i { display: block; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #16a34a; margin-top: 2px; }

/* aviso de atenção dentro da conversa */
.warn-note { display: flex; gap: 9px; align-items: flex-start; max-width: 340px; margin: 6px 0 8px; padding: 10px 12px; border-radius: 12px; background: #fff7db; border: 1px solid #f2cf66; color: #6b4a00; font-size: 13.5px; line-height: 1.4; font-weight: 600; }
.warn-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: #c98a00; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.at-btn.danger { color: #c81e3a; border-color: #f3c2cb; background: #fff5f6; flex: 0 1 auto; }

/* Privacidade (LGPD) */
.legal-note { max-width: 340px; margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.legal-note a, .sheet-card .note a { color: var(--accent); font-weight: 600; }
.pv { display: grid; gap: 12px; padding: 4px 2px 12px; }
.pv .c-list { margin-top: 0; }
.pv .c-row[disabled] { opacity: .55; }
.pv-data { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 4px 14px; }
.pv-data div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pv-data div:first-child { border-top: 0; }
.pv-data span { color: var(--muted); flex: none; }
.pv-data b { text-align: right; overflow-wrap: anywhere; }
.pv-req { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; display: grid; gap: 2px; border-left: 4px solid var(--line); }
.pv-req.open { border-left-color: #e0a100; }
.pv-req span, .pv-req small { color: var(--muted); font-size: 13px; }
.pv-warn { background: #fff7db; border: 1px solid #f2cf66; color: #5c4300; border-radius: 16px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.pv-warn ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.pv-form { max-width: none; margin-top: 0; }
.pv-form textarea { width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; outline: 0; resize: vertical; }
.pv-form label small { font-weight: 500; }
.btn-primary.danger { background: #dc2626; box-shadow: 0 8px 20px -8px rgba(220, 38, 38, .7); }
.pv-done { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 24px 12px; }
.pv-done svg { width: 54px; height: 54px; fill: none; stroke: #16a34a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-done h3 { margin: 6px 0 0; font-size: 19px; }
.pv-done p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pv-done > b { font-size: 22px; letter-spacing: .04em; margin-bottom: 8px; }
.pv-done .btn-primary { margin-top: 14px; }

/* Cabeçalho: logomarca da clínica no lugar do ícone genérico */
.avatar .bot-av { background: #fff; overflow: hidden; }
.avatar .bot-av img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
/* Telas de estado (link vencido, app sem vínculo): botões */
.state-icon.brand { background: #fff; box-shadow: 0 10px 28px -14px rgba(28, 30, 24, .45), inset 0 0 0 1px var(--line); overflow: hidden; }
.state-icon.brand img { width: 100%; height: 100%; object-fit: cover; }
.state-actions { gap: 12px; margin-top: 22px; max-width: 340px; }
.state-actions .btn-primary, .btn-outline { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 18px; border-radius: 16px; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.state-actions .btn-primary svg, .btn-outline svg { width: 21px; height: 21px; flex: none; }
.btn-outline { width: 100%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); transition: border-color .15s, background .15s; }
.btn-outline:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--surface-2); }
.btn-outline:active { transform: scale(.98); }
.btn-outline.wa svg { color: #1faa59; }

/* Chamada para salvar a consulta na agenda do celular (alertas antes da consulta) */
.cal-cta { margin: 2px 14px 14px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent); display: grid; gap: 10px; }
.cal-cta-h { display: flex; gap: 11px; align-items: flex-start; }
.cal-cta-h b { display: block; font-size: 15px; color: var(--text); }
.cal-cta-h small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.cal-cta-h small b { display: inline; font-size: inherit; color: var(--text); }
.cal-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; animation: cal-ring 2.4s ease-in-out 1s 2; }
.cal-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes cal-ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: rotate(0); } }
.cal-btn { display: flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; background: var(--accent); color: #fff; font-weight: 800; font-size: 15px; padding: 13px; border-radius: 12px; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.cal-btn svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-btn:active { transform: scale(.98); }
.cal-btn.done { background: var(--ok); }
.cal-alt { text-align: center; font-size: 12.5px; color: var(--muted); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .cal-ic { animation: none; } }

/* Aviso de que a confirmação na agenda da clínica está em andamento */
.sys.wait { display: inline-flex; align-items: center; gap: 8px; }
.spin-sm { width: 13px; height: 13px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--muted) 35%, transparent); border-top-color: var(--accent); animation: spin-sm .8s linear infinite; flex: none; }
@keyframes spin-sm { to { transform: rotate(360deg); } }

/* Detalhe da consulta (folha que sobe de baixo) */
.ad-sheet { z-index: 60; }
.ad-card { max-height: 92vh; overflow-y: auto; display: grid; gap: 14px; }
.ad-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ad-head small { color: var(--accent); font-weight: 700; font-size: 13px; }
.ad-head h3 { margin: 2px 0 0; font-size: 21px; }
.ad-rows { display: grid; gap: 12px; padding: 4px 0; }
.ad-row { display: flex; gap: 12px; align-items: flex-start; }
.ad-row > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ad-row b { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.ad-row small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.ad-card .cal-cta { margin: 0; }
.ad-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-actions .btn-primary { grid-column: 1 / -1; }
.ad-btn { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1.5px solid var(--chip-line); background: var(--chip); color: var(--text); border-radius: 12px; padding: 12px 10px; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.ad-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ad-btn:first-child:last-child, .ad-actions > :only-child { grid-column: 1 / -1; }
.ad-btn.danger { grid-column: 1 / -1; color: #e11d48; background: color-mix(in srgb, #e11d48 7%, var(--surface)); border-color: color-mix(in srgb, #e11d48 30%, transparent); }
.ad-close { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; padding: 6px; cursor: pointer; }
.at-details { flex: 1 1 100%; color: var(--accent); }
.at-details svg { margin-left: auto; }

/* =========================================================================
   Fluxo de agendamento por etapas (28/10/2026)
   Uma pergunta por vez, botões grandes, progresso discreto, Voltar e correção.
   ========================================================================= */
:root {
  --step-ink: color-mix(in srgb, var(--accent) 78%, var(--text));
  --opt-bg: var(--surface);
  --opt-line: color-mix(in srgb, var(--accent) 22%, var(--line));
  --opt-ic: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --note-bg: #fff7db; --note-line: #f2cf66; --note-ink: #6b4a00; --note-ic: #c98a00;
  --good-bg: #e7f7ee; --good-ink: #166534; --bad-bg: #fdecef; --bad-ink: #9f1239;
}
@media (prefers-color-scheme: dark) {
  :root {
    --step-ink: color-mix(in srgb, var(--accent) 55%, #ffffff);
    --opt-bg: var(--surface-2);
    --opt-line: color-mix(in srgb, var(--accent) 30%, transparent);
    --opt-ic: color-mix(in srgb, var(--accent) 22%, var(--surface-2));
    --note-bg: #33290f; --note-line: #6b5419; --note-ink: #fbd56b; --note-ic: #f5b83d;
    --good-bg: #12301f; --good-ink: #86efac; --bad-bg: #3a1620; --bad-ink: #fda4af;
  }
}
.warn-note { background: var(--note-bg); border-color: var(--note-line); color: var(--note-ink); white-space: pre-line; }
.warn-note svg { stroke: var(--note-ic); }

/* opções do fluxo: botões largos, fáceis de tocar, com ícone em círculo */
.row:has(> .chips.step):not(.wide) { width: 100%; max-width: min(100%, 440px); }
.chips.step { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; width: 100%; }
.chips.step .chip { justify-content: flex-start; text-align: left; gap: 12px; min-height: 54px; padding: 10px 16px 10px 10px; border-radius: 16px;
  background: var(--opt-bg); border: 1.5px solid var(--opt-line); font-size: 15.5px; font-weight: 650; box-shadow: var(--shadow); }
.chips.step .chip > svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--opt-ic); color: var(--step-ink); stroke-width: 2.1; flex: none; }
.chips.step .chip:not(:has(> svg)) { padding-left: 16px; }
.chips.step .chip:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--opt-bg)); transform: translateY(-1px); }
.chips.step .chip:active { transform: scale(.985); }
.chips.step .chip.picked { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips.step .chip.picked > svg { background: rgba(255, 255, 255, .18); color: #fff; }
.chips.step.used .chip:not(.picked) { opacity: .4; }
.chip-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chip-hint { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--muted); }
.chip.picked .chip-hint { color: rgba(255, 255, 255, .85); }

/* lista longa (especialidades, convênios): grade que se ajusta à largura, com busca no topo */
.chips.step.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chips.step.grid .chip { min-height: 50px; padding: 10px 12px; font-size: 14.5px; }
.chips.step.grid .chip.has-hint { grid-column: span 2; }
@media (max-width: 360px) { .chips.step.grid { grid-template-columns: 1fr 1fr; } .chips.step.grid .chip { font-size: 14px; padding: 9px 10px; } }
.chip-search-wrap { position: relative; grid-column: 1 / -1; width: 100%; }
.chip-search-wrap > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; stroke-width: 2.2; }
.chips .chip-search { min-height: 50px; padding: 12px 14px 12px 42px; font-size: 16px; border-radius: 14px; border: 1.5px solid var(--opt-line); background: var(--surface); box-shadow: var(--shadow); }
.chips .chip-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.chip-empty { grid-column: 1 / -1; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: 14px; line-height: 1.45; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* links menores (Dúvidas, Falar com a equipe, Trocar especialidade) */
.chip-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 4px 4px 0; }
.chip-link { border: 0; background: none; padding: 8px 2px; font: inherit; font-size: 14px; font-weight: 650; color: var(--step-ink); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.chip-link:hover { text-decoration-color: currentColor; }
.chip-link.picked { color: var(--text); }
.chips.used .chip-link { opacity: .4; pointer-events: none; }

/* barra da etapa: Voltar · progresso · respostas */
.stepbar { background: var(--bg); border-top: 1px solid var(--line); padding: 8px 10px 0; }
.stepbar:not([hidden]) + .composer { border-top: 0; padding-top: 6px; }
.sb-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.sb-gap { width: 1px; }
.sb-back, .sb-more { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 0 12px 0 8px; border-radius: 999px; border: 1.5px solid var(--opt-line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, background .15s; }
.sb-more { padding: 0 8px 0 12px; color: var(--step-ink); }
.sb-back svg, .sb-more svg { width: 18px; height: 18px; stroke-width: 2.4; }
.sb-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.sb-back:hover, .sb-more:hover { border-color: var(--accent); }
.sb-prog { display: grid; gap: 5px; min-width: 0; }
.sb-txt { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.sb-txt b { color: var(--text); font-weight: 700; }
.sb-track { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 22%, transparent); overflow: hidden; }
.sb-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .45s cubic-bezier(.2, .9, .3, 1); }
.sb-trail { display: grid; gap: 6px; margin-top: 8px; max-height: 38vh; overflow-y: auto; padding: 2px 0 4px; }
.sb-item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l e" "v e"; align-items: center; column-gap: 10px; text-align: left; border: 1px solid var(--line);
  background: var(--surface); border-radius: 12px; padding: 8px 12px; font: inherit; color: var(--text); cursor: pointer; }
.sb-item small { grid-area: l; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.sb-item span { grid-area: v; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-item em { grid-area: e; font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent); }
.sb-item:hover { border-color: var(--accent); }
@media (max-width: 400px) { .sb-row { gap: 8px; } .sb-back, .sb-more { font-size: 12.5px; } .sb-back { padding: 0 10px 0 6px; } .sb-more { padding: 0 6px 0 10px; } .sb-txt { font-size: 12px; } }
@media (max-width: 300px) { .sb-back span { display: none; } .sb-back { padding: 0 8px; } }

/* campo de data: digitação com máscara e, ao lado, o calendário do aparelho */
.date-pick { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--opt-ic); color: var(--step-ink); cursor: pointer; }
.date-pick svg { width: 19px; height: 19px; stroke-width: 2.1; }
.field:has(.date-pick:not([hidden])) #msgInput { padding-right: 52px; }
.date-pick-input { position: absolute; right: 18px; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }

/* avisos curtos (sucesso / erro) no tema claro e escuro */
.sys.toast.good { background: var(--good-bg); color: var(--good-ink); }
.sys.toast.bad { background: var(--bad-bg); color: var(--bad-ink); }

/* consulta de outra pessoa */
.at-patient { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--step-ink); }
.at-patient svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }

/* confirmar identidade antes de ver as consultas */
.lock-card { display: grid; gap: 12px; margin: 4px 0 16px; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.lc-h { display: flex; gap: 12px; align-items: flex-start; }
.lc-h b { display: block; font-size: 16px; }
.lc-h small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.lc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--opt-ic); color: var(--step-ink); flex: none; }
.lc-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lock-card label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.lock-card input { min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); padding: 12px 14px; font: inherit; font-size: 16px; outline: none; }
.lock-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.lc-err { margin: 0; min-height: 1px; color: var(--bad-ink); font-size: 13.5px; font-weight: 600; }
.lc-err:empty { display: none; }

/* primeiro acesso: o que pedimos, para quê e o aceite por finalidade */
.pv-card { max-height: 92vh; overflow-y: auto; }
.pv-lead { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.pv-lead b { color: var(--text); }
.pv-list { display: grid; gap: 8px; margin: 0 0 14px; }
.pv-item { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid transparent; cursor: pointer; transition: border-color .15s; }
.pv-item:not(.req):hover { border-color: var(--opt-line); }
.pv-item input { position: absolute; opacity: 0; pointer-events: none; }
.pv-box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--opt-line); background: var(--surface); display: grid; place-items: center; margin-top: 1px; transition: background .15s, border-color .15s; }
.pv-box svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pv-item input:checked + .pv-box { background: var(--accent); border-color: var(--accent); }
.pv-item input:checked + .pv-box svg { opacity: 1; }
.pv-item input:focus-visible + .pv-box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.pv-tx b { display: block; font-size: 14.5px; }
.pv-tx small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.pv-tx i { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--step-ink); background: var(--opt-ic); }
.pv-card .btn-link { width: 100%; margin-top: 4px; }
.pv-alt { display: grid; gap: 8px; margin: 0 0 12px; }

/* Cores da marca da clínica nos botões do fluxo (logotipo: verde-oliva e vermelho; painel: petróleo).
   Cada botão tem o tom do que ele faz: seguir/confirmar (verde), consultar (petróleo), alterar ou outra pessoa (âmbar),
   falar com a equipe (verde-água), cancelar (vermelho). Nas listas longas os tons se alternam. */
:root {
  --t-green: #6f7d1c; --t-petrol: #3b3e34; --t-amber: #b3600c; --t-teal: #5b6a14; --t-red: #b42626;
  --step-ink: var(--t-petrol);
  --opt-line: color-mix(in srgb, var(--t-petrol) 16%, var(--line));
  --opt-ic: color-mix(in srgb, var(--t-green) 14%, var(--surface));
}
@media (prefers-color-scheme: dark) {
  :root {
    --t-green: #b9c75a; --t-petrol: #d3d6c8; --t-amber: #f0a24a; --t-teal: #c5d36a; --t-red: #f07a7a;
    --opt-line: color-mix(in srgb, #d3d6c8 22%, transparent);
    --opt-ic: color-mix(in srgb, #b9c75a 18%, var(--surface-2));
  }
}
.chips.step .chip { --tone: var(--t-petrol); --solid: #3b3e34; border-color: color-mix(in srgb, var(--tone) 26%, var(--line)); }
.chips.step .chip[data-tone="green"] { --tone: var(--t-green); --solid: #6f7d1c; }
.chips.step .chip[data-tone="petrol"] { --tone: var(--t-petrol); --solid: #3b3e34; }
.chips.step .chip[data-tone="amber"] { --tone: var(--t-amber); --solid: #b3600c; }
.chips.step .chip[data-tone="teal"] { --tone: var(--t-teal); --solid: #5b6a14; }
.chips.step .chip[data-tone="red"] { --tone: var(--t-red); --solid: #b42626; }
.chips.step .chip > svg { background: color-mix(in srgb, var(--tone) 15%, var(--opt-bg)); color: var(--tone); }
.chips.step .chip:hover { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 7%, var(--opt-bg)); }
.chips.step .chip.picked { background: var(--solid); border-color: var(--solid); color: #fff; }
.chips.step .chip.picked > svg { background: rgba(255, 255, 255, .2); color: #fff; }
/* listas longas: um filete na cor do tom, sem pesar */
.chips.step.grid .chip { border-left: 4px solid var(--tone); }
.chips.step.grid .chip.picked { border-left-color: var(--solid); }

.chip-link { color: var(--t-petrol); }
.chips .chip-search:focus { border-color: var(--t-petrol); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-petrol) 16%, transparent); }
.link-btn { color: var(--t-petrol); }
.sb-track i { background: linear-gradient(90deg, #a8b43c, #3b3e34); }
@media (prefers-color-scheme: dark) { .sb-track i { background: linear-gradient(90deg, #b9c75a, #d3d6c8); } }
.sb-back:hover, .sb-more:hover, .sb-item:hover { border-color: var(--t-petrol); }
.sb-item em { color: var(--t-amber); }
.date-pick { background: color-mix(in srgb, var(--t-green) 15%, var(--surface)); color: var(--t-green); }
.pv-item input:checked + .pv-box { background: #6f7d1c; border-color: #6f7d1c; }
.pv-tx i { color: var(--t-green); background: color-mix(in srgb, var(--t-green) 14%, var(--surface)); }
.lc-ic { color: var(--t-petrol); background: color-mix(in srgb, var(--t-petrol) 12%, var(--surface)); }
.lock-card input:focus { border-color: var(--t-petrol); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-petrol) 14%, transparent); }
.at-patient { color: var(--t-amber); }
.stepbar:not([hidden]) + .composer .hint { display: none; }
.chat:has(.stepbar:not([hidden])) .scroll-down { bottom: 136px; }
@media (max-width: 400px) { .sb-txt .sb-w { display: none; } }

/* ---------- Passo a passo: uma etapa por tela, sem o histórico da conversa ---------- */
#scrChat.wiz .messages, #scrChat.wiz #composer, #scrChat.wiz .stepbar, #scrChat.wiz .scroll-down, #scrChat.wiz .app-banner { display: none !important; }
.wizard { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); padding: 18px 16px max(24px, env(safe-area-inset-bottom)); }
.wz-card { width: 100%; max-width: 560px; margin: 0 auto; display: grid; gap: 14px; align-content: start; }
@media (min-width: 640px) { .wizard { padding-top: 28px; } .wz-card { background: var(--surface); border-radius: 26px; padding: 26px 28px 28px; box-shadow: 0 1px 2px rgba(28, 30, 24, .06), 0 12px 32px -18px rgba(28, 30, 24, .25); border: 1px solid var(--line); } }
.wz-top { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.wz-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 1.5px solid var(--opt-line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wz-back svg { width: 19px; height: 19px; stroke-width: 2.4; }
.wz-back:hover { border-color: var(--t-petrol); }
.wz-count { font-size: 13px; font-weight: 600; color: var(--muted); }
.wz-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.wz-steps i { height: 5px; border-radius: 5px; background: color-mix(in srgb, var(--muted) 20%, transparent); transition: background .3s; }
.wz-steps i.done { background: #a8b43c; }
.wz-steps i.on { background: var(--t-petrol); }
@media (prefers-color-scheme: dark) { .wz-steps i.done { background: #b9c75a; } }
.wz-kicker { margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t-green); }
.wz-lead { display: grid; gap: 10px; }
.wz-lead:empty { display: none; }
.wz-say { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; white-space: pre-line; }
.wz-lead .appt { margin: 0; max-width: none; }
.wz-q { margin: -6px 0 2px; font-size: 22px; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; color: var(--text); white-space: pre-line; }
.wz-q b { font-weight: 800; }
@media (max-width: 380px) { .wz-q { font-size: 20px; } }
.wz-body { display: grid; gap: 12px; }
.wz-body .warn-note, .wz-lead .warn-note { max-width: none; margin: 0; }
.wz-body .chips.step { margin: 0; }
.wz-body .days, .wz-body .slots { margin: 0; }
.wz-form { display: grid; gap: 12px; }
.wz-field { position: relative; }
.wz-input { width: 100%; min-height: 58px; border-radius: 16px; border: 1.5px solid var(--opt-line); background: var(--surface); color: var(--text); padding: 14px 18px; font: inherit; font-size: 18px; font-weight: 600; outline: none; box-shadow: var(--shadow); }
@media (min-width: 640px) { .wz-input { background: var(--surface-2); box-shadow: none; } }
.wz-input::placeholder { color: var(--muted); font-weight: 500; }
.wz-input:focus { border-color: var(--t-petrol); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-petrol) 16%, transparent); }
.wz-field:has(.wz-cal) .wz-input { padding-right: 60px; }
.wz-cal { right: 9px; width: 42px; height: 42px; }
.wz-next { min-height: 54px; border-radius: 16px; font-size: 16px; background: var(--t-petrol); box-shadow: none; }
@media (prefers-color-scheme: dark) { .wz-next { background: #3b3e34; } }
.wz-next svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.wz-load { display: none; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.wizard.busy .wz-load { display: flex; }
.wizard.busy .wz-body { opacity: .45; pointer-events: none; transition: opacity .2s; }
.wz-trail { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.wz-trail summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--t-petrol); min-height: 40px; }
.wz-trail summary::-webkit-details-marker { display: none; }
.wz-trail summary b { min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 12px; background: color-mix(in srgb, var(--t-petrol) 12%, var(--surface)); }
.wz-trail summary svg { width: 18px; height: 18px; margin-left: auto; transition: transform .2s; }
.wz-trail[open] summary svg { transform: rotate(180deg); }
.wz-trail > div { display: grid; gap: 6px; margin-top: 6px; }
.wz-card > .sys.toast { margin: 0; justify-self: stretch; max-width: none; }
.wz-q.long { font-size: 18px; font-weight: 650; line-height: 1.45; }
.chips.step.grid .chip > svg { display: none; } .chips.step.grid .chip { padding-left: 14px; }
.wz-sub { margin: -8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; white-space: pre-line; }
.wz-sub b { color: var(--text); }
/* dias em grade no passo a passo (em vez da faixa que rola de lado) */
.wz-body .days { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; overflow: visible; padding: 0; scroll-snap-type: none; }
.wz-body .day { width: auto; }
.day.more-days { color: var(--t-petrol); border-style: dashed; } .day.more-days em { font-style: normal; font-size: 11px; font-weight: 700; }
.wz-lead .appt { width: 100%; }
/* ação principal da etapa (Confirmar agendamento): botão cheio, na cor verde da marca */
.chips.step .chip[data-opt="confirm"] { background: var(--solid); border-color: var(--solid); color: #fff; }
.chips.step .chip[data-opt="confirm"] > svg { background: rgba(255, 255, 255, .2); color: #fff; }
.chips.step .chip[data-opt="confirm"]:hover { filter: brightness(1.06); background: var(--solid); }

/* Painel de início (depois de identificar a pessoa) */
.wz-card.dash { gap: 18px; }
.dash-hi { display: flex; align-items: center; gap: 14px; }
.dash-logo { width: 56px; height: 56px; border-radius: 18px; overflow: hidden; flex: none; box-shadow: var(--shadow); background: #fff; }
.dash-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-hi h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.dash-hi p { margin: 3px 0 0; color: var(--muted); font-size: 15px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-tile { --tone: var(--t-petrol); --solid: #3b3e34; position: relative; display: grid; gap: 12px; align-content: start; text-align: left; min-height: 128px; padding: 16px; border-radius: 20px;
  border: 1.5px solid color-mix(in srgb, var(--tone) 22%, var(--line)); background: var(--opt-bg); color: var(--text); font: inherit; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, background .15s; }
.dash-tile[data-tone="green"] { --tone: var(--t-green); --solid: #6f7d1c; }
.dash-tile[data-tone="teal"] { --tone: var(--t-teal); --solid: #5b6a14; }
.dash-tile[data-tone="amber"] { --tone: var(--t-amber); --solid: #b3600c; }
.dash-tile:hover { border-color: var(--tone); transform: translateY(-1px); }
.dash-tile:active { transform: scale(.98); }
.dt-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 15%, var(--opt-bg)); color: var(--tone); }
.dt-ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dt-tx b { display: block; font-size: 15.5px; line-height: 1.3; }
.dt-tx small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.dt-go { position: absolute; right: 14px; top: 18px; width: 18px; height: 18px; fill: none; stroke: color-mix(in srgb, var(--tone) 70%, var(--muted)); stroke-width: 2.4; }
.dash-tile.main { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto 1fr; align-items: center; padding: 20px 44px 20px 18px; background: var(--solid); border-color: var(--solid); color: #fff; }
.dash-tile.main .dt-ic { width: 52px; height: 52px; background: rgba(255, 255, 255, .18); color: #fff; }
.dash-tile.main .dt-tx b { font-size: 18px; }
.dash-tile.main .dt-tx small { color: rgba(255, 255, 255, .85); font-size: 14px; }
.dash-tile.main .dt-go { stroke: #fff; top: 50%; transform: translateY(-50%); }
.dash-links { justify-content: center; padding-top: 0; }
.wizard.busy .dash-grid { opacity: .45; pointer-events: none; }

/* bandeirinha do convênio */
.cv-badge { --bc: #3b3e34; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bc); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.cv-badge.part { background: color-mix(in srgb, var(--t-green) 16%, var(--opt-bg)); color: var(--t-green); box-shadow: none; }
.cv-badge.part svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.chips.step.grid .chip.has-badge { border-left-width: 1.5px; padding-left: 10px; gap: 10px; }
.chip.picked .cv-badge { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.dash-tile.wide { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto 1fr; align-items: center; padding: 16px 44px 16px 16px; }
.dash-tile.wide .dt-go { top: 50%; transform: translateY(-50%); }
.dash-tile:not(.main):not(.wide) { min-height: 118px; }
.cv-badge.logo { background: #fff; padding: 3px; box-shadow: 0 0 0 1px var(--line); } .cv-badge.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.tab-screen > .lock-card, .tab-screen > .profile-cta { margin: 4px 16px 16px; width: auto; }

/* listas em grade: cartões limpos, sem filete lateral; o escolhido fica cheio em petróleo */
.chips.step.grid .chip, .chips.step.grid .chip.picked { border-left: 1.5px solid var(--opt-line); }
.chips.step.grid .chip { border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(28, 30, 24, .05); padding: 12px 14px; justify-content: flex-start; font-weight: 600; }
.chips.step.grid .chip:hover { border-color: color-mix(in srgb, var(--t-petrol) 45%, var(--line)); background: color-mix(in srgb, var(--t-petrol) 4%, var(--surface)); transform: none; }
.chips.step.grid .chip.picked { background: #3b3e34; border-color: #3b3e34; color: #fff; }
@media (prefers-color-scheme: dark) { .chips.step.grid .chip { background: var(--surface-2); border-color: rgba(255, 255, 255, .08); } }
/* parentesco: ícone pequeno em círculo, na cor do tom */
.chips.step.grid .chip[data-opt^="rel:"] > svg { display: block; width: 30px; height: 30px; padding: 6px; }
.chips.step.grid .chip[data-opt^="rel:"] { gap: 10px; padding: 10px 12px; }

/* =========================================================================
   Visual translúcido (estilo macOS), sem degradês — 28/10/2026, pedido do José.
   Superfícies de vidro: fundo semitransparente + desfoque do que está atrás.
   ========================================================================= */
:root { --glass: color-mix(in srgb, var(--surface) 72%, transparent); --glass-line: color-mix(in srgb, var(--text) 9%, transparent); --tint: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root { --glass: color-mix(in srgb, var(--surface) 70%, transparent); --tint: color-mix(in srgb, var(--brand) 32%, var(--surface)); } }

/* computador: "papel de parede" com manchas suaves da marca e a janela do app em vidro */
body { background: #26281f; }
.b1 { background: #a8b43c; opacity: .34; }
.b2 { background: #8a9a2a; opacity: .45; }
.b3 { background: #cc3030; opacity: .12; }
.app { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(170%) blur(30px); backdrop-filter: saturate(170%) blur(30px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12); }
@media (max-width: 560px) { body { background: var(--bg); } .app { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; } }
body.is-embed { background: transparent; }

/* topo: barra de vidro clara, texto escuro */
.topbar { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: var(--text); box-shadow: none; border-bottom: 1px solid var(--glass-line); }
.who small { opacity: .65; }
.who small.typing { color: var(--t-green); opacity: 1; }
.icon-btn { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); }
.icon-btn:hover { background: color-mix(in srgb, var(--text) 11%, transparent); }
.icon-btn .dot { box-shadow: 0 0 0 2px var(--surface); }
.avatar > span { background: var(--tint); color: var(--brand); box-shadow: inset 0 0 0 1px var(--glass-line); }
@media (prefers-color-scheme: dark) { .avatar > span { color: #dfe3cf; } }
.install-pill { background: color-mix(in srgb, var(--t-green) 13%, var(--surface)); color: var(--t-green); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-green) 28%, transparent); }

/* Início: painel em vidro tingido, texto escuro */
.hero { color: var(--text); background: var(--tint); border-bottom: 1px solid var(--glass-line); }
.hero::after { border-color: color-mix(in srgb, var(--brand) 9%, transparent); }
.hero p { opacity: .7; }
.hero + .home-body > .sec-title:first-child { color: var(--muted); }
.home-body .appt-tile, .home-body .empty-next { background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-line); }

/* faixa "Instale o app": vidro tingido de verde */
.promo { background: color-mix(in srgb, var(--t-green) 11%, var(--surface)); color: var(--text); box-shadow: none; border: 1px solid color-mix(in srgb, var(--t-green) 24%, var(--line)); }
.promo-ic { background: color-mix(in srgb, var(--t-green) 18%, var(--surface)); color: var(--t-green); }
.promo small { color: var(--muted); opacity: 1; }
.promo > svg { color: var(--t-green); }

/* cartões de consulta e médicos: tons translúcidos no lugar dos degradês */
.appt-head { background: var(--tint); color: var(--text); border-bottom: 1px solid var(--glass-line); }
.appt-head small { color: var(--muted); opacity: 1; }
.appt-head .ic { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); }
.appt.success .appt-head { background: color-mix(in srgb, var(--t-green) 14%, var(--surface)); }
.appt.success .appt-head .ic { background: color-mix(in srgb, var(--t-green) 20%, var(--surface)); color: var(--t-green); }
.appt-tile.big .at-date { background: var(--tint); color: var(--brand); }
@media (prefers-color-scheme: dark) { .appt-head .ic, .appt-tile.big .at-date { color: #dfe3cf; } }
.pro-av { background: var(--tint); color: var(--brand); }
@media (prefers-color-scheme: dark) { .pro-av { color: #dfe3cf; } }
.pulse-logo { background: var(--tint); color: var(--brand); }
.btn-confirm { background: #6f7d1c !important; box-shadow: none !important; }

/* tela de instalação: petróleo liso com manchas suaves (sem degradê colorido) */
.ig-bg { background: #26281f; }
/* botão Instalar em destaque: verde da marca, cheio (sem o branco pulsante sobre o vidro) */
.install-pill.attn { background: #6f7d1c; color: #fff; box-shadow: none; animation: none; }
.install-pill .dot { box-shadow: 0 0 0 2px var(--surface); }
/* tema escuro: ícones da tela Início mais claros (o petróleo e o verde ficam escuros demais sobre o fundo) */
@media (prefers-color-scheme: dark) {
  .qa-grid span { color: color-mix(in srgb, var(--c) 55%, #ffffff); background: color-mix(in srgb, var(--c) 26%, transparent); }
  .qa-grid > * { background: var(--glass); border: 1px solid var(--glass-line); }
}
.who strong.fit-sm { font-size: 14.5px; letter-spacing: -.01em; } .who strong.fit-xs { font-size: 13.5px; letter-spacing: -.015em; }

/* faixa "Instale o app": brilho de vidro passando, onda no ícone e seta que chama o toque */
.promo { position: relative; overflow: hidden; isolation: isolate; transition: transform .2s, border-color .2s, box-shadow .2s; }
.promo::before { content: ''; position: absolute; inset: -40% auto -40% -60%; width: 45%; z-index: -1; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: promoShine 4.5s ease-in-out 1.2s infinite; }
@media (prefers-color-scheme: dark) { .promo::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); } }
@keyframes promoShine { 0% { left: -60%; } 38%, 100% { left: 130%; } }
.promo-ic { position: relative; }
.promo-ic::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 color-mix(in srgb, var(--t-green) 45%, transparent); animation: promoWave 2.4s ease-out infinite; }
@keyframes promoWave { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--t-green) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
.promo > svg:last-child { animation: promoNudge 1.8s ease-in-out infinite; }
@keyframes promoNudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(4px); } }
.promo:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--t-green) 45%, var(--line)); box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--t-green) 70%, transparent); }
.promo:active { transform: scale(.985); }
.home-body .promo { animation: promoIn .5s cubic-bezier(.2, .9, .3, 1.1) .15s both; }
@keyframes promoIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .promo::before, .promo-ic::after, .promo > svg:last-child, .promo-ic svg, .home-body .promo { animation: none; } }

/* Fale com a equipe (formulário que vira demanda) */
.tf-sheet { z-index: 60; }
.tf-card { max-height: 92vh; overflow-y: auto; display: block; }
.tf-main { display: grid; gap: 14px; }
.tf-card h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; }
.tf-card h3 svg { color: var(--t-petrol); }
.tf-card .pv-lead { margin: -4px 0 0; }
.tf-field { display: grid; gap: 8px; }
.tf-label { font-size: 13.5px; font-weight: 700; color: var(--text); }
.tf-label small { color: var(--muted); font-weight: 500; }
.tf-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-opts button { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600; min-height: 42px; transition: border-color .15s, background .15s; }
.tf-opts button:hover { border-color: color-mix(in srgb, var(--t-petrol) 45%, var(--line)); }
.tf-opts button.on { background: #3b3e34; border-color: #3b3e34; color: #fff; }
.tf-opts.pref { display: grid; grid-template-columns: repeat(3, 1fr); }
.tf-opts.pref button { border-radius: 14px; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; }
.tf-opts.pref button svg { width: 22px; height: 22px; }
.tf-opts.pref button.on { background: #6f7d1c; border-color: #6f7d1c; }
.tf-card textarea, .tf-card input[name=phone] { width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; outline: none; resize: vertical; }
.tf-card textarea:focus, .tf-card input[name=phone]:focus { border-color: var(--t-petrol); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-petrol) 14%, transparent); }
.tf-count { justify-self: end; margin-top: -4px; font-size: 12px; color: var(--muted); }
.tf-files { display: grid; gap: 6px; }
.tf-files:empty { display: none; }
.tf-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tf-file > svg { width: 20px; height: 20px; color: var(--t-petrol); flex: none; }
.tf-file span { flex: 1; min-width: 0; display: grid; }
.tf-file b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-file small { font-size: 12px; color: var(--muted); }
.tf-file button { border: 0; background: none; color: var(--muted); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.tf-file button:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.tf-add { justify-self: start; display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed color-mix(in srgb, var(--t-petrol) 40%, var(--line)); background: none; color: var(--t-petrol); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.tf-add svg { width: 18px; height: 18px; }
.tf-card .btn-link { width: 100%; }
.tf-done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 10px 0 4px; }
.tf-done h3 { justify-content: center; }
.tf-ok { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--t-green) 15%, var(--surface)); color: var(--t-green); }
.tf-ok svg { width: 30px; height: 30px; stroke-width: 2.4; }
.tf-two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
@media (max-width: 400px) { .tf-two { grid-template-columns: 1fr; } }
.tf-card input[name=name], .tf-card input[name=birth] { width: 100%; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 14px; padding: 12px 14px; font: inherit; font-size: 16px; outline: none; }
.tf-card input[name=name]:focus, .tf-card input[name=birth]:focus { border-color: var(--t-petrol); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-petrol) 14%, transparent); }

/* opção escolhida nas mensagens anteriores: tom suave da cor, com borda e ícone cheio (sem bloco de cor pesado) */
.chips.step .chip.picked { background: color-mix(in srgb, var(--tone) 13%, var(--opt-bg)); border-color: color-mix(in srgb, var(--tone) 55%, transparent); color: var(--text); }
.chips.step .chip.picked > svg { background: var(--solid); color: #fff; }
.chips.step .chip.picked .chip-hint { color: var(--muted); }
.chips.step.grid .chip.picked { background: color-mix(in srgb, #3b3e34 12%, var(--surface)); border-color: color-mix(in srgb, #3b3e34 50%, transparent); color: var(--text); }
@media (prefers-color-scheme: dark) { .chips.step .chip.picked > svg { background: color-mix(in srgb, var(--tone) 70%, #000); } }
.chips.step:not(.grid) .chip:not(.picked) { background: color-mix(in srgb, var(--tone) 5%, var(--opt-bg)); border-color: color-mix(in srgb, var(--tone) 30%, var(--line)); }
.chips.step:not(.grid) .chip:not(.picked):hover { background: color-mix(in srgb, var(--tone) 10%, var(--opt-bg)); border-color: var(--tone); }

/* Início: acabamento (data, atalhos em vidro, status do horário) */
.hero-date { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-green); margin-bottom: 6px; }
.hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; }
.qa-grid { gap: 10px; }
.qa-grid > * { border-radius: 20px; padding: 16px 8px 14px; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: -.005em; line-height: 1.25; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 2px rgba(28, 30, 24, .04); transition: transform .18s, border-color .18s, box-shadow .18s; text-decoration: none; }
.qa-grid > *:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c, #3b3e34) 35%, var(--glass-line)); box-shadow: 0 10px 22px -16px color-mix(in srgb, var(--c, #3b3e34) 80%, transparent); }
.qa-grid > *:active { transform: scale(.97); }
.qa-grid span { width: 50px; height: 50px; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent); }
.qa-grid span svg { width: 24px; height: 24px; stroke-width: 1.9; }
@media (prefers-color-scheme: dark) {
  .qa-grid span { background: color-mix(in srgb, var(--c) 30%, #151612); color: color-mix(in srgb, var(--c) 38%, #ffffff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
}
.hours-strip { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: none; }
.hs-dot { width: 10px; height: 10px; border-radius: 50%; background: #cc3030; flex: none; margin: 0 4px; box-shadow: 0 0 0 4px color-mix(in srgb, #cc3030 18%, transparent); }
.hours-strip.open .hs-dot { background: #6f7d1c; box-shadow: 0 0 0 4px color-mix(in srgb, #6f7d1c 22%, transparent); animation: hsPulse 2s ease-in-out infinite; }
.hours-strip.open b { color: var(--t-green); }
.hours-strip button { color: var(--t-green); }
@keyframes hsPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #6f7d1c 8%, transparent); } }
@media (prefers-reduced-motion: reduce) { .hours-strip.open .hs-dot { animation: none; } }
.tabbar svg { stroke-width: 1.9; }

/* Passo a passo: opções em cartões brancos, ícone em quadrado na cor, explicação curta e seta */
.wz-body .chips.step:not(.grid) { gap: 10px; }
.wz-body .chips.step:not(.grid) .chip:not([data-opt="confirm"]) { position: relative; min-height: 70px; padding: 12px 46px 12px 12px; gap: 14px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(28, 30, 24, .05), 0 8px 18px -14px rgba(28, 30, 24, .3); font-size: 16px; font-weight: 700; color: var(--text); }
.wz-body .chips.step:not(.grid) .chip:not([data-opt="confirm"]) > svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: color-mix(in srgb, var(--tone) 12%, var(--surface)); color: var(--tone); stroke-width: 1.9; }
.wz-body .chips.step:not(.grid) .chip:not([data-opt="confirm"])::after { content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); color: color-mix(in srgb, var(--tone) 60%, var(--muted)); transition: transform .18s; }
.wz-body .chips.step:not(.grid) .chip:not([data-opt="confirm"]):hover { border-color: color-mix(in srgb, var(--tone) 50%, var(--line)); background: var(--surface); transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(28, 30, 24, .05), 0 12px 24px -16px color-mix(in srgb, var(--tone) 70%, transparent); }
.wz-body .chips.step:not(.grid) .chip:not([data-opt="confirm"]):hover::after { transform: translateX(3px) rotate(45deg); }
.wz-body .chips.step:not(.grid) .chip .chip-hint { font-size: 13.5px; font-weight: 500; }
@media (prefers-color-scheme: dark) {
  .wz-body .chips.step:not(.grid) .chip:not([data-opt="confirm"]) { background: var(--surface-2); border-color: rgba(255, 255, 255, .07); box-shadow: none; }
  .wz-body .chips.step:not(.grid) .chip:not([data-opt="confirm"]) > svg { background: color-mix(in srgb, var(--tone) 22%, var(--surface-2)); }
}
/* rodapé do passo a passo: Voltar e Encerrar */
.wz-top { justify-content: flex-end; min-height: 20px; }
.wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.wz-quit { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wz-quit svg { width: 18px; height: 18px; stroke-width: 2.2; }
.wz-quit:hover { color: var(--t-red); border-color: color-mix(in srgb, var(--t-red) 30%, transparent); }
.wz-next svg { width: 20px; height: 20px; stroke-width: 2.4; }

/* Confirmar agendamento: verde cheio sempre (acima do fundo tingido dos outros botões) */
.chips.step .chip[data-opt="confirm"], .chips.step:not(.grid) .chip[data-opt="confirm"]:not(.picked) { background: #6f7d1c; border-color: #6f7d1c; color: #fff; }
.chips.step .chip[data-opt="confirm"] > svg { background: rgba(255, 255, 255, .2); color: #fff; }
.chips.step .chip[data-opt="confirm"]:hover { background: #5f6b16; border-color: #5f6b16; }
/* valor combinado em destaque */
.price-tag { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-tag b { font-size: 17px; color: var(--t-green); }
.ad-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--t-green) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--t-green) 28%, transparent); }
.ad-price span { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.ad-price b { font-size: 20px; font-weight: 800; color: var(--t-green); }
/* tela de sucesso depois de agendar */
.done-card .appt { margin: 0; }
.done-card .wz-q { margin-top: 4px; font-size: 18px; }

/* Consulta confirmada: topo verde forte da marca, protocolo em etiqueta, lembrete leve com o botão em destaque */
.appt.success { border: 1px solid color-mix(in srgb, #6f7d1c 30%, var(--line)); box-shadow: 0 16px 36px -20px rgba(91, 105, 20, .55); }
.appt.success .appt-head { background: #6f7d1c; color: #fff; border-bottom: 0; padding: 16px 18px; gap: 12px; }
.appt.success .appt-head strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.appt.success .appt-head small { color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 600; }
.appt.success .appt-head .ic { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #6f7d1c; box-shadow: 0 0 0 5px rgba(255, 255, 255, .18); animation: okPop .5s cubic-bezier(.2, .9, .3, 1.4) both; }
.appt.success .appt-head .ic svg { width: 24px; height: 24px; stroke-width: 2.8; }
@keyframes okPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.appt.success .appt-body { padding: 14px 18px 16px; gap: 11px; font-size: 14.5px; }
.appt.success .appt-body svg { color: #6f7d1c; }
.appt-body .code { font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; letter-spacing: .02em; }
.appt.success .cal-cta { background: var(--surface); border: 1px solid var(--line); margin: 0 14px 14px; }
.appt.success .cal-ic { background: color-mix(in srgb, #6f7d1c 14%, var(--surface)); color: #6f7d1c; }
.appt.success .cal-btn { background: #6f7d1c; box-shadow: 0 10px 20px -12px rgba(91, 105, 20, .8); }
.appt.success .cal-btn:hover { background: #5f6b16; }
@media (prefers-color-scheme: dark) {
  .appt.success .appt-head { background: #5b6914; }
  .appt.success .appt-head .ic { color: #5b6914; }
  .appt.success .cal-ic { color: #b9c75a; }
  .appt.success .appt-body svg { color: #b9c75a; }
}
@media (prefers-reduced-motion: reduce) { .appt.success .appt-head .ic { animation: none; } }

/* abas: sem o contorno do navegador ao tocar; o anel só aparece navegando pelo teclado */
.tabbar button:focus { outline: none; }
.tabbar button:focus-visible { outline: none; background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Voltar e Encerrar: sem caixa; o ícone num quadradinho tingido, como os atalhos do Início. Encerrar em vermelho. */
.wz-foot .wz-back, .wz-foot .wz-quit { min-height: 44px; border: 0; background: none; border-radius: 12px; padding: 4px 10px 4px 4px; gap: 10px; font-size: 14.5px; font-weight: 700; transition: background .15s; }
.wz-foot .wz-back svg, .wz-foot .wz-quit svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; stroke-width: 2.4; box-sizing: border-box; transition: transform .15s; }
.wz-foot .wz-back { color: var(--text); }
.wz-foot .wz-back svg { background: color-mix(in srgb, var(--t-petrol) 12%, var(--surface)); color: var(--t-petrol); }
.wz-foot .wz-quit { color: var(--t-red); flex-direction: row-reverse; padding: 4px 4px 4px 10px; }
.wz-foot .wz-quit svg { background: color-mix(in srgb, var(--t-red) 11%, var(--surface)); color: var(--t-red); }
.wz-foot .wz-back:hover, .wz-foot .wz-quit:hover { background: color-mix(in srgb, var(--text) 5%, transparent); border: 0; }
.wz-foot .wz-back:hover svg { transform: translateX(-2px); }
.wz-foot .wz-quit:hover svg { transform: rotate(90deg); }
.wz-foot .wz-back:active, .wz-foot .wz-quit:active { transform: scale(.97); }
@media (prefers-color-scheme: dark) {
  .wz-foot .wz-back svg { background: color-mix(in srgb, var(--t-petrol) 34%, var(--surface)); color: #dcdfd2; }
  .wz-foot .wz-quit { color: #ff9a9a; }
  .wz-foot .wz-quit svg { background: color-mix(in srgb, var(--t-red) 28%, var(--surface)); color: #ffb0b0; }
}

/* espera no passo a passo: faixa fixa embaixo, com o que está sendo buscado e um aviso se demorar */
.wizard .wz-load { position: sticky; bottom: 12px; z-index: 5; margin: 14px auto 0; width: fit-content; max-width: 100%;
  display: none; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  border: 1px solid var(--line); box-shadow: 0 14px 34px -16px rgba(28, 30, 24, .5); color: var(--text); }
.wizard.busy .wz-load { display: flex; animation: wlIn .25s cubic-bezier(.2, .9, .3, 1.2) both; }
.wz-load .spin-sm { width: 22px; height: 22px; border-width: 2.5px; flex: none; border-color: color-mix(in srgb, var(--t-petrol) 22%, transparent); border-top-color: var(--t-petrol); }
.wz-load .wl-tx { display: grid; gap: 2px; min-width: 0; }
.wz-load .wl-tx b { font-size: 14.5px; font-weight: 700; }
.wz-load .wl-tx small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.wz-load .wl-tx small:empty { display: none; }
.wizard.busy .wz-body { opacity: .5; filter: saturate(.7); }
@keyframes wlIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) { .wz-load .spin-sm { border-color: rgba(220, 223, 210, .22); border-top-color: #dcdfd2; } }
@media (prefers-reduced-motion: reduce) { .wizard.busy .wz-load { animation: none; } }

/* cartão "preparando" ao abrir o agendamento pelo Início: esqueleto da etapa, sem mostrar a conversa antiga */
.wz-pending .sk { border-radius: 12px; background: linear-gradient(90deg, var(--surface-2, rgba(127,127,127,.12)) 0%, color-mix(in srgb, var(--text) 9%, transparent) 50%, var(--surface-2, rgba(127,127,127,.12)) 100%); background-size: 200% 100%; animation: skMove 1.2s ease-in-out infinite; }
.wz-pending .sk-q { height: 26px; width: 78%; margin: 6px 0 10px; }
.wz-pending .sk-s { height: 14px; width: 55%; margin-bottom: 18px; }
.wz-pending .sk-b { height: 64px; margin-bottom: 10px; border-radius: 16px; }
.wz-pending .wz-steps { margin-bottom: 14px; }
@keyframes skMove { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .wz-pending .sk { animation: none; } }

/* passo a passo ocupa a tela toda: o cartão estica até embaixo e o rodapé (Voltar / Encerrar) fica no fim, perto do polegar */
.wizard:not([hidden]) { display: flex; flex-direction: column; }
.wizard > .wz-card { flex: 1 0 auto; display: flex; flex-direction: column; }
.wizard > .wz-card > .wz-foot { margin-top: auto; }
.wizard > .wz-card > .wz-body { margin-bottom: 18px; }

/* ---------- Cartão de resposta (suas consultas, nada encontrado, cadastro em dia): painel de vidro ---------- */
.wizard:has(.info-card) {
  background:
    radial-gradient(420px 320px at 8% 4%, color-mix(in srgb, #a8b43c 22%, transparent), transparent 70%),
    radial-gradient(460px 380px at 100% 46%, color-mix(in srgb, #3b3e34 22%, transparent), transparent 70%),
    radial-gradient(380px 300px at 20% 100%, color-mix(in srgb, #5b6a14 16%, transparent), transparent 70%),
    var(--bg);
}
.info-card { gap: 14px; background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
.ic-sheet { position: relative; overflow: hidden; border-radius: 28px; padding: 26px 20px 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(28, 30, 24, .05), 0 24px 50px -26px rgba(28, 30, 24, .45);
  animation: icRise .45s cubic-bezier(.2, .9, .3, 1.1) both; }
/* brilho suave no alto do painel, atrás do ícone */
.ic-sheet::before { content: ''; position: absolute; inset: -40% -20% auto; height: 260px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, #3b3e34 22%, transparent), transparent), radial-gradient(160px 120px at 70% 60%, color-mix(in srgb, #a8b43c 26%, transparent), transparent);
  filter: blur(10px); opacity: .9; }
.ic-sheet > * { position: relative; }
.ic-hero { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ic-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(145deg, #565a4c, #26281f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 22px -10px rgba(38, 40, 31, .8); }
.ic-badge svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-pill { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t-green, #6f7d1c); }
  color: var(--t-petrol); background: color-mix(in srgb, var(--t-petrol) 11%, transparent); border: 1px solid color-mix(in srgb, var(--t-petrol) 18%, transparent); }
.ic-text .wz-q { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.ic-text .wz-sub { margin: 0 0 16px; color: var(--muted); line-height: 1.5; font-size: 15px; }
.info-card .wz-lead { display: grid; gap: 10px; margin-bottom: 12px; }
.info-card .wz-body { margin: 0 !important; }
/* ações agrupadas dentro do painel, como uma lista do macOS: a principal em destaque, as outras em linhas */
#wizard .ic-sheet .chips.step { display: grid; grid-template-columns: 1fr; gap: 0; margin: 4px -20px -14px; padding: 0; border-top: 1px solid var(--line); width: auto; max-width: none; }
#wizard .ic-sheet .chips.step .chip { width: 100%; max-width: none; }
#wizard .ic-sheet .chips.step .chip { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-height: 58px; padding: 10px 20px; border-top: 1px solid var(--line); }
#wizard .ic-sheet .chips.step .chip:first-child { border-top: 0; }
#wizard .ic-sheet .chips.step .chip:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
#wizard .ic-sheet .chips.step .chip[data-opt="agendar"] { margin: 12px 14px; width: calc(100% - 28px); border-radius: 16px; background: linear-gradient(180deg, #7f8e22, #6f7d1c); color: #fff; border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 24px -14px rgba(91, 105, 20, .9); }
#wizard .ic-sheet .chips.step .chip[data-opt="agendar"] > svg { background: rgba(255, 255, 255, .2); color: #fff; }
#wizard .ic-sheet .chips.step .chip[data-opt="agendar"] + .chip { border-top: 1px solid var(--line); }
#wizard .ic-sheet .chips.step .chip[data-opt="agendar"] .chev, #wizard .ic-sheet .chips.step .chip[data-opt="agendar"] i { color: #fff; }
/* quadro de aviso / dica */
.ic-tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 20px;
  background: color-mix(in srgb, #a8b43c 13%, color-mix(in srgb, var(--surface) 70%, transparent));
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid color-mix(in srgb, #a8b43c 30%, transparent); animation: icRise .45s cubic-bezier(.2, .9, .3, 1.1) .08s both; }
.ic-tip > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, #6f7d1c 18%, var(--surface)); color: #6f7d1c; }
.ic-tip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-tip p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); opacity: .85; }
/* vazio: painel no meio da tela, ícone grande */
.info-card.is-empty { justify-content: center; }
.info-card.is-empty .ic-sheet { margin-top: auto; text-align: center; padding-top: 34px; }
.info-card.is-empty .ic-tip { margin-bottom: auto; }
.info-card.is-empty .ic-hero { flex-direction: column; gap: 14px; margin-bottom: 18px; }
.info-card.is-empty .ic-badge { width: 84px; height: 84px; border-radius: 26px; animation: icPop .55s cubic-bezier(.2, .9, .3, 1.35) .05s both; }
.info-card.is-empty .ic-badge svg { width: 40px; height: 40px; stroke-width: 1.8; }
.info-card.is-empty .ic-text { max-width: 330px; margin: 0 auto; }
.info-card.is-empty .chips.step .chip { text-align: left; }
@keyframes icPop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes icRise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-color-scheme: dark) {
  .ic-sheet { background: color-mix(in srgb, var(--surface) 62%, transparent); border-color: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 50px -26px rgba(0, 0, 0, .7); }
  .ic-pill { color: #c5d36a; }
  .ic-tip > span { color: #c5d36a; background: rgba(168, 180, 60, .18); }
  .wizard:has(.info-card) { background:
    radial-gradient(420px 320px at 8% 4%, rgba(168, 180, 60, .16), transparent 70%),
    radial-gradient(460px 380px at 100% 46%, rgba(110, 120, 40, .26), transparent 70%),
    radial-gradient(380px 300px at 20% 100%, rgba(91, 106, 20, .18), transparent 70%), var(--bg); }
}
@media (prefers-reduced-motion: reduce) { .ic-sheet, .ic-tip, .info-card.is-empty .ic-badge { animation: none; } }

/* ---------- Falar com a equipe: página do app (sem janela por cima) ---------- */
.tf-page { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 30; display: flex; flex-direction: column; background: var(--bg); animation: tfIn .28s cubic-bezier(.2, .9, .3, 1) both; }
.tf-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; min-height: 58px; padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px); border-bottom: 1px solid var(--line); }
.tf-top b { font-size: 16px; font-weight: 800; }
.tf-back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--t-petrol); font: inherit; font-size: 15px; font-weight: 700; padding: 8px 8px 8px 2px; border-radius: 10px; cursor: pointer; }
.tf-back svg { width: 22px; height: 22px; stroke-width: 2.4; }
.tf-back:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.tf-page .tf-card { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: none; padding: 18px 16px 0; background: none; border-radius: 0; box-shadow: none; }
.tf-page .tf-main { gap: 18px; max-width: 560px; margin: 0 auto; }
.tf-intro { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: color-mix(in srgb, var(--t-teal, #5b6a14) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--t-teal, #5b6a14) 20%, var(--line)); }
.tf-intro p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.tf-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #7f8e22, #5b6a14); }
.tf-ic svg { width: 22px; height: 22px; }
/* assunto: quadros em duas colunas (sem pílula) */
.tf-page .tf-opts[data-g="subject"] { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tf-page .tf-opts button { border-radius: 12px; text-align: left; padding: 11px 12px; line-height: 1.3; background: var(--surface); }
.tf-page .tf-opts.pref button { text-align: center; }
.tf-page .tf-opts button.on { box-shadow: 0 8px 18px -12px rgba(38, 40, 31, .8); }
/* Enviar sempre à mão, preso embaixo da página */
.tf-send { position: sticky; bottom: 0; margin: 4px -16px 0; padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent)); }
.tf-send .btn-primary { width: 100%; min-height: 54px; border-radius: 16px; font-size: 16px; background: #3b3e34; }
.tf-page .tf-done { padding: 40px 0 24px; }
.tf-page .tf-done .btn-primary { width: 100%; max-width: 360px; min-height: 52px; border-radius: 16px; }
@keyframes tfIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tf-page { animation: none; } }
@media (max-width: 340px) { .tf-page .tf-opts[data-g="subject"] { grid-template-columns: 1fr; } }
.tf-page .tf-opts.pref { background: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.tf-page .tf-opts.pref button { min-height: 72px; }
.tf-page .tf-opts button.on { background: #3b3e34; border-color: #3b3e34; color: #fff; }
.tf-page .tf-opts.pref button.on { background: #6f7d1c; border-color: #6f7d1c; color: #fff; }

/* ---------- Marca d'água da clínica (logo em tom único, assets/img/marca-dagua*.png) ---------- */
:root { --wm: url("../img/marca-dagua.png"); }
@media (prefers-color-scheme: dark) { :root { --wm: url("../img/marca-dagua-escuro.png"); } }
/* assinatura no fim de cada tela do app */
.tab-screen::after { content: ''; display: block; width: 150px; height: 90px; margin: 34px auto 10px; background: var(--wm) no-repeat center / contain; opacity: .16; }
/* fundo das etapas e respostas: logo grande e bem clara, atrás do conteúdo */
.wizard { position: relative; isolation: isolate; }
.wizard::before { content: ''; position: absolute; left: 50%; bottom: 96px; width: min(70%, 300px); aspect-ratio: 567 / 339; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: var(--wm) no-repeat center / contain; opacity: .06; }
/* canto dos painéis de vidro */
.ic-sheet::after { content: ''; position: absolute; right: -36px; bottom: -22px; width: 190px; aspect-ratio: 567 / 339; pointer-events: none; z-index: 0;
  background: var(--wm) no-repeat center / contain; opacity: .07; transform: rotate(-8deg); }
.ic-sheet > * { z-index: 1; }
.tab-screen, .wizard { background: transparent; }
.wizard:has(.info-card) { background:
    radial-gradient(420px 320px at 8% 4%, color-mix(in srgb, #a8b43c 18%, transparent), transparent 70%),
    radial-gradient(460px 380px at 100% 46%, color-mix(in srgb, #3b3e34 18%, transparent), transparent 70%); }
@media (prefers-color-scheme: dark) { .wizard:has(.info-card) { background:
    radial-gradient(420px 320px at 8% 4%, rgba(168, 180, 60, .14), transparent 70%),
    radial-gradient(460px 380px at 100% 46%, rgba(110, 120, 40, .22), transparent 70%); } }
#tabAgenda { background:
    radial-gradient(380px 260px at 100% 0%, color-mix(in srgb, #3b3e34 12%, transparent), transparent 70%),
    radial-gradient(360px 280px at 0% 70%, color-mix(in srgb, #a8b43c 12%, transparent), transparent 70%); }

/* ---------- Consultas: vazio no painel de vidro, cadastro sem ícone duplicado ---------- */
.tab-screen > .ag-empty { margin: 8px 16px 16px; text-align: center; padding: 30px 18px 10px; }
.ag-empty .ic-hero { flex-direction: column; gap: 14px; margin-bottom: 16px; }
.ag-empty .ic-badge { width: 78px; height: 78px; border-radius: 24px; animation: icPop .55s cubic-bezier(.2, .9, .3, 1.35) both; }
.ag-empty .ic-badge svg { width: 38px; height: 38px; stroke-width: 1.8; }
.ag-empty .ic-text { max-width: 320px; margin: 0 auto; }
.ag-cta, .ag-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-align: left; }
.ag-cta { min-height: 56px; margin: 6px 0 10px; padding: 0 16px; border-radius: 16px; color: #fff; background: linear-gradient(180deg, #7f8e22, #6f7d1c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 12px 24px -14px rgba(91, 105, 20, .9); }
.ag-row { min-height: 54px; margin: 0 -18px; width: calc(100% + 36px); padding: 0 20px; background: none; color: var(--text); border-top: 1px solid var(--line); }
.ag-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.ag-cta span, .ag-row span { flex: 1; }
.ag-cta svg, .ag-row svg { width: 22px; height: 22px; flex: none; }
.ag-row > svg:first-child { color: var(--t-teal, #5b6a14); }
.ag-cta:active, .ag-row:active { transform: scale(.98); }
.tab-screen > .profile-cta { background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px);
  border: 1px solid color-mix(in srgb, var(--t-green) 26%, var(--line)); border-radius: 20px; }
.profile-cta .promo-ic { background: linear-gradient(145deg, #8a9a2a, #6f7d1c); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.profile-cta .promo-ic::after, .profile-cta .promo-ic svg { animation: none; box-shadow: none; }
.profile-cta::before { display: none; }

/* ---------- Aparência (menu …): Automático, Claro, Escuro ---------- */
.th-head { display: grid; gap: 4px; padding: 4px 4px 14px; }
.th-head b { font-size: 18px; font-weight: 800; }
.th-head small { font-size: 14px; color: var(--muted); line-height: 1.4; }
.th-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.th-opt { display: grid; justify-items: center; gap: 6px; padding: 10px 8px 12px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.th-opt:hover { border-color: color-mix(in srgb, var(--t-petrol) 40%, var(--line)); }
.th-opt:active { transform: scale(.97); }
.th-opt.on { border-color: #6f7d1c; box-shadow: 0 0 0 3px color-mix(in srgb, #6f7d1c 22%, transparent); }
.th-opt > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--t-petrol); margin-top: 2px; }
.th-opt.on > svg { color: #6f7d1c; }
.th-opt b { font-size: 14px; font-weight: 800; }
.th-opt small { font-size: 12px; color: var(--muted); line-height: 1.2; text-align: center; }
/* miniatura do app em cada tema */
.th-prev { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--line); display: grid; align-content: start; gap: 5px; padding: 9px 8px; }
.th-prev i { display: block; height: 7px; border-radius: 4px; }
.th-prev i:first-child { width: 70%; background: #6f7d1c; }
.th-prev i:last-child { width: 100%; height: 16px; border-radius: 6px; }
.th-light { background: #f1f2ec; } .th-light i:last-child { background: #fff; box-shadow: 0 1px 2px rgba(28, 30, 24, .12); }
.th-dark { background: #121310; } .th-dark i:first-child { background: #8a9a2a; } .th-dark i:last-child { background: #24261f; }
.th-auto { background: linear-gradient(90deg, #f1f2ec 50%, #121310 50%); }
.th-auto i:last-child { background: linear-gradient(90deg, #fff 50%, #24261f 50%); }
.th-auto i:first-child { background: linear-gradient(90deg, #6f7d1c 50%, #8a9a2a 50%); }
@media (max-width: 340px) { .th-grid { gap: 6px; } .th-opt small { display: none; } }

/* ---------- Falar com a equipe em etapas ---------- */
.tf-top .tf-count-step { justify-self: end; font-size: 13px; font-weight: 700; color: var(--muted); }
.tf-prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 16px 0; }
.tf-prog i { height: 4px; border-radius: 4px; background: var(--line); transition: background .25s; }
.tf-prog i.done { background: #a8b43c; } .tf-prog i.on { background: #3b3e34; }
@media (prefers-color-scheme: dark) { .tf-prog i.on { background: #dcdfd2; } }
.tf-page .tf-body { gap: 14px; padding-bottom: 8px; animation: tfStep .28s ease-out both; }
@keyframes tfStep { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tf-q h2 { margin: 4px 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.tf-q p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
/* respostas já dadas, em balões (tocar para corrigir) */
.tf-trail { display: grid; gap: 6px; justify-items: end; }
.tf-bub { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; max-width: 88%; text-align: left; border: 0; cursor: pointer; font: inherit;
  padding: 9px 12px 9px 14px; border-radius: 18px 18px 6px 18px; color: #fff; background: linear-gradient(160deg, #565a4c, #3b3e34); box-shadow: 0 8px 18px -12px rgba(38, 40, 31, .8); }
.tf-bub small { grid-column: 1; font-size: 11.5px; font-weight: 700; opacity: .8; letter-spacing: .02em; }
.tf-bub span { grid-column: 1; font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.tf-bub em { grid-column: 2; grid-row: 1 / 3; align-self: center; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .18); }
.tf-bub em svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
/* assuntos em lista com ícone colorido */
.tf-list { display: grid; gap: 8px; }
.tf-item { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 14px 10px 10px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.tf-item:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.tf-item:active { transform: scale(.98); }
.tf-item.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.tf-ii { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.tf-ii svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tf-it { flex: 1; display: grid; gap: 2px; min-width: 0; }
.tf-it b { font-size: 15px; font-weight: 700; } .tf-it small { font-size: 13px; color: var(--muted); }
.tf-item > svg:last-child { width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; }
@media (prefers-color-scheme: dark) { .tf-ii { color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 28%, var(--surface)); } }
/* mensagem como num chat: campo grande e a barra de anexo logo embaixo */
.tf-compose { border-radius: 20px; border: 1.5px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tf-compose:focus-within { border-color: var(--t-petrol); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-petrol) 14%, transparent); }
.tf-compose textarea { display: block; width: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; padding: 14px 16px 6px; resize: none; outline: none; min-height: 130px; }
.tf-compose .tf-files { padding: 0 12px; }
.tf-compose .tf-files:not(:empty) { padding-bottom: 8px; }
.tf-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 8px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.tf-attach { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 8px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--t-petrol) 10%, var(--surface)); color: var(--t-petrol); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tf-attach svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.tf-attach:disabled { opacity: .45; cursor: default; }
@media (prefers-color-scheme: dark) { .tf-attach { color: #dcdfd2; background: rgba(220, 223, 210, .12); } }
.tf-bar .tf-count { margin: 0; }
.tf-hint { margin: -4px 2px 0; font-size: 12.5px; color: var(--muted); }
.tf-thumb { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--t-petrol) 10%, var(--surface)); color: var(--t-petrol); }
.tf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tf-thumb svg { width: 20px; height: 20px; }
/* retorno */
.tf-pref { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tf-pr { display: grid; justify-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.tf-pr span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, #6f7d1c 12%, var(--surface)); color: #6f7d1c; margin-bottom: 4px; }
.tf-pr span svg { width: 21px; height: 21px; }
.tf-pr b { font-size: 14px; } .tf-pr small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.tf-pr.on { border-color: #6f7d1c; box-shadow: 0 0 0 3px color-mix(in srgb, #6f7d1c 20%, transparent); }
.tf-pr.on span { background: #6f7d1c; color: #fff; }
.tf-page input[name=phone], .tf-id input { width: 100%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 16px; outline: none; }
.tf-page input[name=phone]:focus, .tf-id input:focus { border-color: var(--t-petrol); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t-petrol) 14%, transparent); }
.tf-id { display: grid; gap: 8px; }
/* enviado */
.tf-ok-sheet { text-align: center; padding-top: 30px; margin-top: 10px; }
.tf-ok-sheet .ic-hero { flex-direction: column; gap: 12px; }
.ic-badge.ok { background: linear-gradient(145deg, #8a9a2a, #6f7d1c); width: 78px; height: 78px; border-radius: 24px; animation: icPop .55s cubic-bezier(.2, .9, .3, 1.35) both; }
.ic-badge.ok svg { width: 38px; height: 38px; stroke-width: 2.4; }
.tf-proto { display: grid; gap: 2px; margin: 4px auto 14px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--t-petrol) 8%, transparent); max-width: 260px; }
.tf-proto small { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tf-proto b { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.tf-send .btn-primary svg { width: 20px; height: 20px; }
.tf-watch { display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 0 0 14px; padding: 14px; border-radius: 18px;
  background: color-mix(in srgb, #a8b43c 14%, var(--surface)); border: 1px solid color-mix(in srgb, #a8b43c 32%, transparent); }
.tf-watch > svg { width: 22px; height: 22px; flex: none; color: #6f7d1c; margin-top: 1px; }
.tf-watch p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text); }
@media (prefers-color-scheme: dark) { .tf-watch > svg { color: #c5d36a; } }
.tf-watch p b { white-space: nowrap; }

/* ---------- Meus pedidos ---------- */
.req-count { font-size: 12px; font-weight: 700; color: #6f7d1c; text-transform: none; letter-spacing: 0; margin-left: 6px; }
@media (prefers-color-scheme: dark) { .req-count { color: #c5d36a; } }
.req-mini { display: grid; gap: 8px; margin: 0 14px; }
.req-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.req-row:active { transform: scale(.98); }
.req-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.req-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .req-ic { color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 28%, var(--surface)); } }
.req-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.req-tx b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-tx small { font-size: 12.5px; color: var(--muted); }
/* situação: ponto colorido + texto (sem pílula) */
.req-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; flex: none; }
.req-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.req-st.wait { color: #b3600c; } .req-st.doing { color: #6f7d1c; } .req-st.ok { color: #4d5716; } .req-st.end { color: var(--muted); }
.req-st.doing i { animation: reqPulse 1.6s ease-in-out infinite; }
@keyframes reqPulse { 50% { opacity: .35; } }
@media (prefers-color-scheme: dark) { .req-st.wait { color: #f0a24a; } .req-st.doing, .req-st.ok { color: #c5d36a; } }
.req-page .tf-body { gap: 12px; }
.req-card { border-radius: 22px; padding: 16px; background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: saturate(170%) blur(20px); backdrop-filter: saturate(170%) blur(20px);
  border: 1px solid var(--line); box-shadow: 0 14px 30px -24px rgba(28, 30, 24, .6); display: grid; gap: 12px; scroll-margin-top: 12px; }
.req-card.hi { border-color: #a8b43c; box-shadow: 0 0 0 3px color-mix(in srgb, #a8b43c 24%, transparent), 0 14px 30px -24px rgba(28, 30, 24, .6); }
.req-card header { display: flex; align-items: center; gap: 12px; }
.req-card header > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.req-card header b { font-size: 16px; font-weight: 800; }
.req-card header small { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
/* linha do tempo: enviado, em atendimento, respondido */
.req-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.req-steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.req-steps li i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); position: relative; z-index: 1; }
.req-steps li::before { content: ''; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.req-steps li:first-child::before { display: none; }
.req-steps li.done, .req-steps li.on { color: var(--text); }
.req-steps li.done i { background: #a8b43c; border-color: #a8b43c; }
.req-steps li.done::before, .req-steps li.on::before { background: #a8b43c; }
.req-steps li.on i { border-color: #6f7d1c; box-shadow: 0 0 0 4px color-mix(in srgb, #6f7d1c 20%, transparent); }
.req-msg, .req-reply { border-radius: 16px; padding: 12px 14px; }
.req-msg { background: color-mix(in srgb, var(--text) 4%, transparent); }
.req-reply { background: color-mix(in srgb, #a8b43c 14%, var(--surface)); border: 1px solid color-mix(in srgb, #a8b43c 30%, transparent); }
.req-msg small, .req-reply small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.req-msg p, .req-reply p { margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.req-wait, .req-meta { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.req-page .req-new { margin: 4px 0 0; width: 100%; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.req-page .ag-empty { margin-top: 10px; }
.req-row .req-tx { gap: 3px; }
.req-row .req-st { font-size: 13px; }
.req-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }

/* Meus pedidos: cor por tipo (--c) e por situação, em vez de tudo verde */
.req-card { border-top: 4px solid var(--c); }
.req-card.hi { border-color: var(--c); border-top-width: 4px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 14px 30px -24px rgba(28, 30, 24, .6); }
.req-card .req-steps li.done i { background: var(--c); border-color: var(--c); }
.req-card .req-steps li.done::before, .req-card .req-steps li.on::before { background: var(--c); }
.req-card .req-steps li.on i { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.req-card .req-reply { background: color-mix(in srgb, var(--c) 10%, var(--surface)); border-color: color-mix(in srgb, var(--c) 32%, transparent); }
.req-card .req-reply small { color: var(--c); }
@media (prefers-color-scheme: dark) {
  .req-card .req-reply small { color: color-mix(in srgb, var(--c) 45%, #fff); }
  .req-card.k-privacidade { --c: #a3a698 !important; }
}
/* situação: aguardando âmbar, em atendimento oliva, concluída na cor do tipo, encerrada cinza */
.req-st.wait { color: #b3600c; } .req-st.doing { color: #6f7d1c; } .req-st.ok { color: var(--c, #4d5716); } .req-st.end { color: var(--muted); }
@media (prefers-color-scheme: dark) { .req-st.wait { color: #f0a24a; } .req-st.doing { color: #c5d36a; } .req-st.ok { color: color-mix(in srgb, var(--c, #8a9a2a) 50%, #fff); } }
.req-card header > div { gap: 4px; } .req-card header .req-st { font-size: 13px; }

/* sino de avisos no topo (os avisos saíram do Início) */
.bell-btn { margin-right: 6px; }
.bell-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell-n { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #d03030; color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }
/* aba Equipe: mensagem para a equipe e Meus pedidos no alto */
.tab-screen > .eq-new { margin: 4px 16px 6px; width: auto; }
#tabContact .req-mini { margin: 0 16px; }
.tabbar .tab-badge#reqBadge { background: #c0651a; }

/* Assistente: menu num painel limpo; "Ver a conversa" abre o histórico e o campo de escrever */
.info-card.as-menu .ic-sheet { margin-top: auto; }
.info-card.as-menu .as-hist { margin: 12px 0 auto; width: 100%; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 15px; }
.info-card.as-menu .as-hist > svg:first-child { color: var(--muted); }
#wizard .ic-sheet .chips.step .chip[data-opt="agendar"] .chip-hint, #wizard .ic-sheet .chips.step .chip[data-opt="agendar"] small { color: rgba(255,255,255,.85); }
.as-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px -6px 2px; }
.as-link { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.as-link > span { grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--surface)); }
.as-link > span svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.as-link b { font-size: 14px; font-weight: 700; line-height: 1.2; } .as-link small { grid-column: 2; font-size: 12px; color: var(--muted); line-height: 1.2; }
.as-link > svg:last-child { grid-column: 3; grid-row: 1 / 3; width: 16px; height: 16px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; }
@media (prefers-color-scheme: dark) { .as-link > span { color: color-mix(in srgb, var(--c) 45%, #fff); background: color-mix(in srgb, var(--c) 28%, var(--surface)); } }
@media (max-width: 350px) { .as-more { grid-template-columns: 1fr; } }
/* atalhos como linhas da mesma lista do menu */
.as-more { grid-template-columns: 1fr; gap: 0; margin: 0 -20px -14px; border-top: 1px solid var(--line); }
.as-link { border: 0; border-radius: 0; background: transparent; min-height: 58px; padding: 10px 20px; border-top: 1px solid var(--line); column-gap: 12px; }
.as-link:first-child { border-top: 0; }
.as-link:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.as-link > span { width: 40px; height: 40px; border-radius: 12px; }
.as-link b { font-size: 16px; } .as-link small { font-size: 12.5px; }
#wizard .ic-sheet .as-more + * { margin-top: 0; }
.info-card.as-menu .ic-sheet { padding-top: 22px; }
.info-card.as-menu .ic-badge { width: 64px; height: 64px; border-radius: 20px; }
.info-card.as-menu .ic-badge svg { width: 30px; height: 30px; }
.info-card.as-menu .ic-hero { gap: 10px; margin-bottom: 10px; }
.info-card.as-menu .ic-text .wz-sub { margin-bottom: 12px; }
#wizard .info-card.as-menu .ic-sheet .chips.step { margin-bottom: 0; }

/* Particular em destaque na escolha do convênio: linha inteira, verde suave e um brilho que passa de tempos em tempos */
.chips .chip.feat { grid-column: 1 / -1; position: relative; overflow: hidden; isolation: isolate; min-height: 66px;
  border-color: color-mix(in srgb, #6f7d1c 55%, transparent) !important; background: linear-gradient(120deg, color-mix(in srgb, #a8b43c 22%, var(--surface)), color-mix(in srgb, #6f7d1c 10%, var(--surface))) !important;
  box-shadow: 0 10px 24px -16px rgba(91, 105, 20, .85); animation: featIn .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.chips .chip.feat::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: featShine 3.6s ease-in-out 1s infinite; }
.chips .chip.feat .chip-tx > span { font-weight: 800; font-size: 16.5px; }
.chips .chip.feat .chip-hint { color: #5b6a14; font-weight: 600; }
.chips .chip.feat .cv-badge, .chips .chip.feat > svg { background: #6f7d1c !important; color: #fff !important; }
@keyframes featShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes featIn { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-color-scheme: dark) {
  .chips .chip.feat { background: linear-gradient(120deg, rgba(168, 180, 60, .26), rgba(111, 125, 28, .14)) !important; }
  .chips .chip.feat::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%); }
  .chips .chip.feat .chip-hint { color: #c5d36a; }
}
@media (prefers-reduced-motion: reduce) { .chips .chip.feat, .chips .chip.feat::after { animation: none; } }

/* convênio em dois passos: Particular (destaque) ou Convênio */
.plan-pick { display: grid; gap: 10px; }
.pp-choose { display: grid; gap: 10px; }
.pp-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 16px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .15s, border-color .15s; }
.pp-opt:active { transform: scale(.98); }
.pp-opt > span:not(.pp-badges) { flex: 1; display: grid; gap: 3px; }
.pp-opt b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pp-opt small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.pp-opt > svg:first-child { width: 48px; height: 48px; padding: 12px; border-radius: 15px; box-sizing: border-box; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.pp-opt > svg:last-child { width: 20px; height: 20px; flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2.2; }
.pp-part { border-color: color-mix(in srgb, #6f7d1c 55%, transparent); background: linear-gradient(120deg, color-mix(in srgb, #a8b43c 24%, var(--surface)), color-mix(in srgb, #6f7d1c 10%, var(--surface)));
  box-shadow: 0 12px 26px -16px rgba(91, 105, 20, .9); animation: featIn .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.pp-part > svg:first-child { background: #6f7d1c; color: #fff; }
.pp-part small { color: #5b6a14; font-weight: 600; }
.pp-part::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: featShine 3.6s ease-in-out 1s infinite; }
.pp-conv:hover { border-color: color-mix(in srgb, #3b3e34 35%, var(--line)); }
.pp-badges { display: flex; flex: none; width: 48px; height: 48px; position: relative; }
.pp-badges .cv-badge { position: absolute; width: 28px; height: 28px; font-size: 10px; border-radius: 9px; box-shadow: 0 0 0 2px var(--surface); }
.pp-badges .cv-badge:nth-child(1) { left: 0; top: 0; } .pp-badges .cv-badge:nth-child(2) { right: 0; top: 0; }
.pp-badges .cv-badge:nth-child(3) { left: 0; bottom: 0; } .pp-badges .cv-badge:nth-child(4) { right: 0; bottom: 0; }
.pp-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; padding: 4px 2px; cursor: pointer; }
.pp-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
@media (prefers-color-scheme: dark) {
  .pp-part { background: linear-gradient(120deg, rgba(168, 180, 60, .26), rgba(111, 125, 28, .14)); }
  .pp-part::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%); }
  .pp-part small { color: #c5d36a; }
}
@media (prefers-reduced-motion: reduce) { .pp-part, .pp-part::after { animation: none; } }
.pp-badges { width: auto; height: auto; align-items: center; }
.pp-badges .cv-badge { position: static !important; width: 30px; height: 30px; margin-left: -10px; font-size: 10.5px; }
.pp-badges .cv-badge:first-child { margin-left: 0; }

/* observação do médico no cartão dos horários: quadro em destaque abaixo do CRM */
.pro-obs { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; padding: 11px 13px; border-radius: 14px;
  background: color-mix(in srgb, #a8b43c 15%, var(--surface)); border: 1px solid color-mix(in srgb, #6f7d1c 30%, transparent); }
.pro-obs svg { width: 19px; height: 19px; flex: none; margin-top: 1px; fill: none; stroke: #5b6a14; stroke-width: 2.2; stroke-linecap: round; }
.pro-obs p { margin: 0; font-size: 14px; line-height: 1.45; font-weight: 600; color: var(--text); }
@media (prefers-color-scheme: dark) { .pro-obs { background: rgba(168, 180, 60, .14); border-color: rgba(168, 180, 60, .35); } .pro-obs svg { stroke: #c5d36a; } }
.ig-kicker { background: none !important; padding: 0 !important; border-radius: 0 !important; color: #d4de7f; }

/* rodapé do passo a passo: uma barra de vidro única, dividida ao meio (Voltar | Encerrar), sem caixas nos ícones */
#wizard .wz-foot { position: sticky; bottom: 10px; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: auto; padding: 0; border-top: 0;
  border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  border: 1px solid var(--line); box-shadow: 0 10px 26px -18px rgba(28, 30, 24, .55); }
#wizard .wz-foot > span:empty { display: none; }
#wizard .wz-foot:has(> span:empty) { grid-template-columns: 1fr; }
#wizard .wz-foot .wz-back, #wizard .wz-foot .wz-quit { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; width: 100%; margin: 0; padding: 0 12px;
  border: 0; border-radius: 0; background: none; font: inherit; font-size: 15.5px; font-weight: 700; flex-direction: row; cursor: pointer; transition: background .15s; }
#wizard .wz-foot .wz-back + .wz-quit { border-left: 1px solid var(--line); }
#wizard .wz-foot .wz-back svg, #wizard .wz-foot .wz-quit svg { width: 18px; height: 18px; padding: 0; border-radius: 0; background: none !important; box-shadow: none; stroke-width: 2.4; transform: none; }
#wizard .wz-foot .wz-back { color: var(--text); }
#wizard .wz-foot .wz-back svg { color: var(--text); }
#wizard .wz-foot .wz-quit { color: #b42626; }
#wizard .wz-foot .wz-quit svg { color: #b42626; }
#wizard .wz-foot .wz-back:hover, #wizard .wz-foot .wz-quit:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
#wizard .wz-foot .wz-back:hover svg { transform: none; } #wizard .wz-foot .wz-quit:hover svg { transform: none; }
#wizard .wz-foot .wz-back:active, #wizard .wz-foot .wz-quit:active { background: color-mix(in srgb, var(--text) 9%, transparent); transform: none; }
@media (prefers-color-scheme: dark) { #wizard .wz-foot .wz-quit, #wizard .wz-foot .wz-quit svg { color: #ff8f8f; } }
#wizard .wz-foot { margin-top: 14px; }

/* valor da consulta em destaque na escolha do dia */
.pt-alert { display: flex; align-items: center; gap: 14px; margin: 2px 0 14px; padding: 14px 16px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--k) 16%, var(--surface)), color-mix(in srgb, var(--k) 6%, var(--surface)));
  border: 1.5px solid color-mix(in srgb, var(--k) 45%, transparent); box-shadow: 0 12px 26px -18px color-mix(in srgb, var(--k) 80%, transparent); animation: featIn .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.pt-alert { --k: #6f7d1c; } .pt-alert.k-infantil { --k: #c0651a; } .pt-alert.k-primeira { --k: #8a5a14; }
.pt-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--k); color: #fff; }
.pt-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-tx { display: grid; gap: 1px; min-width: 0; }
.pt-tx small { font-size: 13px; font-weight: 800; color: color-mix(in srgb, var(--k) 75%, var(--text)); }
.pt-tx b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.pt-tx em { font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
@media (prefers-color-scheme: dark) { .pt-tx small { color: color-mix(in srgb, var(--k) 45%, #fff); } }
@media (prefers-reduced-motion: reduce) { .pt-alert { animation: none; } }
/* rodapé no fim do cartão (não flutua por cima dos dias e horários) */
#wizard .wz-foot { position: static; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); margin-top: auto; }
#wizard > .wz-card { padding-bottom: 6px; }
/* agendamento em tela dedicada: sem as abas durante as etapas */
.app.wiz-focus[data-tab="chat"] #tabbar { display: none !important; }

/* aviso do sistema no topo da etapa (dia sem horário, idade fora da faixa) */
.wz-alert { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, #e8a33a 18%, var(--surface)); border: 1.5px solid color-mix(in srgb, #b3600c 45%, transparent); color: var(--text);
  box-shadow: 0 10px 24px -18px rgba(179, 96, 12, .8); animation: wzAlert .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.wz-alert svg { width: 24px; height: 24px; flex: none; fill: none; stroke: #b3600c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wz-alert span { font-size: 15px; font-weight: 700; line-height: 1.45; }
@keyframes wzAlert { 0% { transform: translateY(-6px); opacity: 0; } 60% { transform: none; opacity: 1; } 75% { transform: translateX(-3px); } 90% { transform: translateX(3px); } 100% { transform: none; } }
@media (prefers-color-scheme: dark) { .wz-alert { background: rgba(232, 163, 58, .16); border-color: rgba(240, 162, 74, .5); } .wz-alert svg { stroke: #f0a24a; } }
@media (prefers-reduced-motion: reduce) { .wz-alert { animation: none; } }

/* horários no passo a passo: cartão na largura toda, cabeçalho do médico mais forte e horários em grade confortável */
#wizard .slots-wrap { width: 100%; max-width: none; display: grid; gap: 12px; }
#wizard .pro { width: 100%; padding: 16px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 12px 28px -22px rgba(28, 30, 24, .55); background: var(--surface); }
#wizard .pro-head { gap: 12px; margin-bottom: 12px; }
#wizard .pro-av { width: 48px; height: 48px; border-radius: 15px; font-size: 16px; font-weight: 800; background: linear-gradient(145deg, #565a4c, #3b3e34); color: #fff; display: grid; place-items: center; flex: none; }
#wizard .pro-head strong { font-size: 16.5px; font-weight: 800; }
#wizard .pro-head small { font-size: 13px; }
#wizard .times { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
#wizard .times .time { min-height: 48px; border-radius: 14px; font-size: 16px; font-weight: 800; }
/* aviso de "o horário só fica garantido depois de confirmar": discreto, sem caixa grande */
#wizard[data-key="sched_time"] .wz-body > .warn-note { background: none; border: 0; padding: 0 2px; margin: -4px 0 12px; font-size: 13px; color: var(--muted); gap: 8px; box-shadow: none; }
#wizard[data-key="sched_time"] .wz-body > .warn-note svg { width: 16px; height: 16px; stroke: var(--muted); }
#wizard[data-key="sched_time"] .wz-body > .warn-note span { font-weight: 600; }

/* cartão do médico estilizado: faixa de cabeçalho em grafite e oliva, observação em destaque e horários em grade */
#wizard .pro { padding: 0; overflow: hidden; border: 0; box-shadow: 0 18px 40px -26px rgba(28, 30, 24, .7), 0 0 0 1px var(--line); }
#wizard .pro-head { margin: 0; padding: 16px 16px 18px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2a2c24 0%, #3b3e34 55%, #4d5716 100%); color: #fff; }
#wizard .pro-head::after { content: ''; position: absolute; right: -40px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 180, 60, .45), transparent); pointer-events: none; }
#wizard .pro-head > * { position: relative; z-index: 1; }
#wizard .pro-av { width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 17px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#wizard .pro-head strong { color: #fff; font-size: 17px; letter-spacing: -.01em; }
#wizard .pro-head small { color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
#wizard .pro .pro-obs { margin: 14px 16px 0; }
#wizard .pro .pro-tag, #wizard .pro .pro-note { margin: 12px 16px 0; }
#wizard .pro-slots-k { display: flex; align-items: center; gap: 7px; margin: 16px 16px 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#wizard .pro-slots-k svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#wizard .pro-slots-k b { margin-left: 2px; color: #6f7d1c; }
#wizard .pro .times { padding: 0 16px 16px; }
#wizard .pro .times .time { background: var(--surface); border: 1.5px solid color-mix(in srgb, #6f7d1c 30%, var(--line)); color: var(--text); transition: background .15s, border-color .15s, color .15s, transform .1s; }
#wizard .pro .times .time:hover { border-color: #6f7d1c; background: color-mix(in srgb, #a8b43c 14%, var(--surface)); }
#wizard .pro .times .time:active, #wizard .pro .times .time.picked { background: #6f7d1c; border-color: #6f7d1c; color: #fff; transform: scale(.97); }
#wizard .pro .more-times, #wizard .pro .times + button { margin: 0 16px 16px; }
@media (prefers-color-scheme: dark) { #wizard .pro-slots-k b { color: #c5d36a; } #wizard .pro .times .time { border-color: rgba(168, 180, 60, .32); } }

/* confirmação: bilhete no mesmo estilo do cartão do médico */
#wizard .appt.ticket { width: 100%; border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -26px rgba(28, 30, 24, .7), 0 0 0 1px var(--line); background: var(--surface); }
#wizard .appt.ticket .appt-head { display: flex; align-items: center; gap: 14px; padding: 16px; position: relative; overflow: hidden; border: 0;
  background: linear-gradient(135deg, #2a2c24 0%, #3b3e34 55%, #4d5716 100%); color: #fff; }
#wizard .appt.ticket .appt-head::after { content: ''; position: absolute; right: -40px; top: -60px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 180, 60, .45), transparent); pointer-events: none; }
#wizard .appt.ticket .appt-head > * { position: relative; z-index: 1; }
.tk-day { width: 62px; flex: none; border-radius: 16px; overflow: hidden; text-align: center; background: #fff; color: #1c1e18; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .6); }
.tk-day small { display: block; background: #6f7d1c; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 4px 0; }
.tk-day b { display: block; font-size: 26px; font-weight: 800; line-height: 1; padding: 6px 0 1px; }
.tk-day i { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: #6b6e62; padding-bottom: 6px; letter-spacing: .06em; }
#wizard .appt.ticket .appt-head > div { display: grid; gap: 2px; min-width: 0; }
.tk-k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #d4de7f; }
#wizard .appt.ticket .appt-head strong { color: #fff; font-size: 18px; font-weight: 800; }
.tk-time { font-size: 13.5px; color: rgba(255, 255, 255, .8); } .tk-time b { color: #fff; font-size: 15px; }
#wizard .appt.ticket .appt-body { padding: 14px 16px 6px; border-top: 2px dashed var(--line); margin: 0; }
#wizard .appt.ticket .appt-body > div { padding: 8px 0; gap: 12px; align-items: center; }
#wizard .appt.ticket .appt-body > div > svg { width: 30px; height: 30px; padding: 6px; box-sizing: border-box; border-radius: 9px; flex: none; color: #6f7d1c; background: color-mix(in srgb, #a8b43c 16%, var(--surface)); }
.tk-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 16px 16px; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, #a8b43c 15%, var(--surface)); border: 1px solid color-mix(in srgb, #6f7d1c 30%, transparent); }
.tk-price span { display: grid; font-size: 13.5px; font-weight: 700; color: var(--text); } .tk-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.tk-price b { font-size: 24px; font-weight: 800; color: #4d5716; white-space: nowrap; letter-spacing: -.02em; }
@media (prefers-color-scheme: dark) { .tk-price b { color: #c5d36a; } #wizard .appt.ticket .appt-body > div > svg { color: #c5d36a; background: rgba(168, 180, 60, .16); } }
/* aviso do valor na confirmação: mais suave, sem a caixa amarela pesada */
#wizard[data-key="sched_confirm"] .wz-body > .warn-note { background: none; border: 0; box-shadow: none; padding: 0 2px; margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
#wizard[data-key="sched_confirm"] .wz-body > .warn-note svg { width: 17px; height: 17px; stroke: var(--muted); }
#wizard[data-key="sched_confirm"] .wz-body > .warn-note span { font-weight: 600; }
#wizard[data-key="sched_confirm"] .wz-q { margin-top: 18px; }

/* botão Confirmar: o principal da tela, com brilho e pulso suave */
#wizard .chips.step .chip[data-opt="confirm"] { position: relative; overflow: hidden; isolation: isolate; min-height: 66px; border-radius: 20px; font-size: 17.5px; font-weight: 800;
  background: linear-gradient(135deg, #8a9a2a 0%, #6f7d1c 55%, #5b6a14 100%) !important; border: 0 !important; color: #fff !important;
  box-shadow: 0 16px 30px -14px rgba(91, 105, 20, .95), inset 0 1px 0 rgba(255, 255, 255, .25); animation: cfPulse 2.4s ease-in-out .6s infinite; }
#wizard .chips.step .chip[data-opt="confirm"]::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: featShine 3s ease-in-out .8s infinite; }
#wizard .chips.step .chip[data-opt="confirm"] > svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22) !important; color: #fff !important; box-sizing: border-box; }
#wizard .chips.step .chip[data-opt="confirm"]:hover { filter: brightness(1.05); }
#wizard .chips.step .chip[data-opt="confirm"]:active { transform: scale(.98); }
@keyframes cfPulse { 0%, 100% { box-shadow: 0 16px 30px -14px rgba(91, 105, 20, .95), 0 0 0 0 rgba(168, 180, 60, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
  50% { box-shadow: 0 16px 30px -14px rgba(91, 105, 20, .95), 0 0 0 9px rgba(168, 180, 60, 0), inset 0 1px 0 rgba(255, 255, 255, .25); } }
@media (prefers-reduced-motion: reduce) { #wizard .chips.step .chip[data-opt="confirm"], #wizard .chips.step .chip[data-opt="confirm"]::after { animation: none; } }

/* ---------- Falar com a equipe: acabamento no padrão das telas novas ---------- */
.tf-page .tf-card { padding: 0 0 0; background: var(--bg); }
.tf-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 18px 18px 16px;
  background: linear-gradient(135deg, #2a2c24 0%, #3b3e34 55%, #4d5716 100%); color: #fff; }
.tf-hero::after { content: ''; position: absolute; right: -50px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(168, 180, 60, .45), transparent); pointer-events: none; }
.tf-hero > * { position: relative; z-index: 1; }
.tf-hero-ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.tf-hero-ic svg { width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 2; }
.tf-hero b { display: block; font-size: 17px; font-weight: 800; }
.tf-hero small { display: block; font-size: 13px; color: rgba(255, 255, 255, .78); line-height: 1.4; margin-top: 2px; }
.tf-hero .tf-prog { grid-column: 1 / -1; padding: 4px 0 0; }
.tf-hero .tf-prog i { background: rgba(255, 255, 255, .18); }
.tf-hero .tf-prog i.done { background: #a8b43c; } .tf-hero .tf-prog i.on { background: #fff; }
.tf-page .tf-main { padding: 18px 16px 0; }
.tf-page .tf-q h2 { font-size: 21px; }
/* assuntos num painel único, em linhas */
.tf-list { gap: 0; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 32px -26px rgba(28, 30, 24, .6); }
.tf-item { border: 0; border-radius: 0; background: transparent; min-height: 66px; padding: 12px 14px; border-top: 1px solid var(--line); }
.tf-item:first-child { border-top: 0; }
.tf-item:hover { background: color-mix(in srgb, var(--c) 6%, transparent); }
.tf-item.on { box-shadow: inset 4px 0 0 var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.tf-ii { width: 44px; height: 44px; border-radius: 14px; }
/* respostas já dadas: balões claros */
.tf-bub { background: color-mix(in srgb, #a8b43c 18%, var(--surface)); color: var(--text); border: 1px solid color-mix(in srgb, #6f7d1c 28%, transparent); box-shadow: none; }
.tf-bub small { color: #5b6a14; opacity: 1; }
.tf-bub em { background: color-mix(in srgb, #6f7d1c 16%, transparent); color: #5b6a14; }
@media (prefers-color-scheme: dark) { .tf-bub { background: rgba(168, 180, 60, .14); border-color: rgba(168, 180, 60, .3); } .tf-bub small, .tf-bub em { color: #c5d36a; } }
/* campo da mensagem e retorno com o mesmo acabamento */
.tf-compose { border-radius: 22px; box-shadow: 0 14px 32px -26px rgba(28, 30, 24, .6); }
.tf-pr { border-radius: 20px; box-shadow: 0 12px 28px -24px rgba(28, 30, 24, .6); }
/* Continuar e Enviar: verde, como o Confirmar; Enviar com brilho */
.tf-send .btn-primary { position: relative; overflow: hidden; isolation: isolate; min-height: 58px; border-radius: 18px; font-size: 17px; font-weight: 800; border: 0;
  background: linear-gradient(135deg, #8a9a2a 0%, #6f7d1c 55%, #5b6a14 100%) !important; color: #fff; box-shadow: 0 16px 30px -14px rgba(91, 105, 20, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.tf-send #tfSend::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: featShine 3s ease-in-out .8s infinite; }
.tf-send { background: linear-gradient(to top, var(--bg) 75%, transparent); }
@media (prefers-reduced-motion: reduce) { .tf-send #tfSend::after { animation: none; } }
/* consultas anteriores: situação em texto com bolinha (sem pílula) */
.pr-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.pr-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pr-st.st-realizado { color: #4d5716; } .pr-st.st-cancelado { color: #b42626; } .pr-st.st-falta { color: #b3600c; }
@media (prefers-color-scheme: dark) { .pr-st.st-realizado { color: #c5d36a; } .pr-st.st-cancelado { color: #ff8f8f; } .pr-st.st-falta { color: #f0a24a; } }

/* Agendar consulta (aba Consultas, respostas da assistente): mesmo destaque animado do Confirmar */
.ag-cta[data-act="book"], #wizard .ic-sheet .chips.step .chip[data-opt="agendar"] { position: relative; overflow: hidden; isolation: isolate; animation: cfPulse 2.4s ease-in-out .6s infinite; }
.ag-cta[data-act="book"]::after, #wizard .ic-sheet .chips.step .chip[data-opt="agendar"]::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: featShine 3s ease-in-out .8s infinite; }
.ag-cta[data-act="book"] > svg:last-child { animation: promoNudge 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ag-cta[data-act="book"], .ag-cta[data-act="book"]::after, .ag-cta[data-act="book"] > svg:last-child, #wizard .ic-sheet .chips.step .chip[data-opt="agendar"], #wizard .ic-sheet .chips.step .chip[data-opt="agendar"]::after { animation: none; } }

/* ícone dos painéis "nenhuma consulta": calendário com +, em verde-oliva da marca, flutuando de leve */
.ag-empty .ic-badge, .info-card.is-empty .ic-badge { background: linear-gradient(145deg, #a3b33a 0%, #7f8e22 50%, #5b6a14 100%) !important; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 26px -12px rgba(91, 105, 20, .85), 0 0 0 8px color-mix(in srgb, #a8b43c 14%, transparent) !important;
  animation: icPop .55s cubic-bezier(.2, .9, .3, 1.35) both, icFloat 3.6s ease-in-out .6s infinite; }
@keyframes icFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .ag-empty .ic-badge, .info-card.is-empty .ic-badge { animation: none; } }

/* ---------- Falar com a equipe no padrão do passo a passo do agendamento ---------- */
.app.tf-on #tabbar { display: none !important; }
.tf-wiz .tf-card { display: flex; flex-direction: column; background: var(--bg); padding: 0; }
.tf-wiz .tf-main { flex: 1 0 auto; display: grid; align-content: start; gap: 14px; padding: 16px 16px 6px; max-width: 560px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.tf-wiz .wz-top { display: flex; justify-content: flex-end; min-height: 20px; }
.tf-wiz .wz-steps { grid-template-columns: repeat(3, 1fr); padding: 0; }
.tf-wiz .wz-steps i.on { background: var(--t-petrol); }
.tf-wiz .tf-body { display: grid; gap: 14px; }
.tf-wiz .tf-q h2 { font-size: 22px; }
/* respostas já dadas: um quadro de resumo na largura toda */
.tf-sum { display: grid; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tf-sum-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tf-sum-row:first-child { border-top: 0; }
.tf-sum-row > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tf-sum-row small { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tf-sum-row b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-sum-row em { font-style: normal; font-size: 13.5px; font-weight: 700; color: #6f7d1c; flex: none; }
.tf-sum-row:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
@media (prefers-color-scheme: dark) { .tf-sum-row em { color: #c5d36a; } }
/* Continuar como no agendamento; Enviar (ação final) em verde, sem exagero */
.tf-wiz .tf-next { width: 100%; }
.tf-wiz .tf-go { width: 100%; min-height: 56px; border-radius: 16px; font-size: 16.5px; font-weight: 800; border: 0; background: #6f7d1c; color: #fff; box-shadow: 0 12px 24px -14px rgba(91, 105, 20, .9); display: flex; align-items: center; justify-content: center; gap: 8px; }
.tf-wiz .tf-go svg { width: 20px; height: 20px; }
.tf-wiz .tf-go:hover { background: #5f6b16; }
/* rodapé Voltar | Encerrar igual ao do agendamento */
.tf-wiz .tf-foot { display: grid; grid-template-columns: 1fr 1fr; margin: 14px 16px max(14px, env(safe-area-inset-bottom)); border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tf-wiz .tf-foot[hidden] { display: none; }
.tf-wiz .tf-foot button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border: 0; background: none; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.tf-wiz .tf-foot button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.tf-wiz .tf-foot .wz-back { color: var(--text); }
.tf-wiz .tf-foot .wz-quit { color: #b42626; border-left: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .tf-wiz .tf-foot .wz-quit { color: #ff8f8f; } }
.tf-wiz .tf-ok-sheet { margin-top: 0; }
.tf-wiz .tf-foot .wz-back, .tf-wiz .tf-foot .wz-quit { flex-direction: row !important; padding: 0 12px !important; border-radius: 0 !important; width: 100%; margin: 0; }
.tf-wiz .tf-foot .wz-back svg, .tf-wiz .tf-foot .wz-quit svg { width: 18px !important; height: 18px !important; padding: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; }
.tf-wiz .tf-foot .wz-back svg { color: var(--text); } .tf-wiz .tf-foot .wz-quit svg { color: #b42626; }
@media (prefers-color-scheme: dark) { .tf-wiz .tf-foot .wz-quit svg { color: #ff8f8f; } }
/* Falar com a equipe: mantém o topo do app (marca e menu) visível */
.tf-wiz.tf-page { top: var(--tf-top, 0); }
/* Confirmação: quadro "Seus dados" dentro do bilhete */
.appt.ticket .tk-pt { margin: 0 14px 12px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--line); }
.appt.ticket .tk-pt-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6f7d1c; margin-bottom: 8px; }
.appt.ticket .tk-pt-h svg { width: 15px; height: 15px; }
.appt.ticket .tk-pt dl { margin: 0; display: grid; gap: 7px; }
.appt.ticket .tk-pt dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.appt.ticket .tk-pt dt { color: var(--muted); }
.appt.ticket .tk-pt dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { .appt.ticket .tk-pt-h { color: #b9c55a; } }

/* Aba Assistente: conversa com a Lara (saudação, resposta em destaque, atalhos, perguntas comuns e campo de perguntar) */
.wz-card.as-chat { display: flex; flex-direction: column; gap: 14px; min-height: 100%; padding-bottom: 0; background: none; box-shadow: none; border: 0; }
.asc-hello { display: flex; align-items: center; gap: 12px; animation: tfIn .3s ease-out both; }
.asc-av { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #8a9a2a, #6f7d1c); box-shadow: 0 10px 20px -12px rgba(91, 105, 20, .9); }
.asc-av svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.asc-hello b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.asc-hello small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.as-chat .wz-q { margin: 4px 0 0; font-size: 21px; }
.asc-qa { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 30px -24px rgba(28, 30, 24, .6); animation: tfIn .3s ease-out both; }
.asc-q { padding: 12px 16px; font-size: 14.5px; font-weight: 700; border-bottom: 1px solid var(--line); }
.asc-q small, .asc-k { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.asc-a { padding: 12px 16px; background: color-mix(in srgb, #a8b43c 9%, var(--surface)); font-size: 15px; line-height: 1.55; }
.asc-a p { margin: 0; } .asc-a p + p { margin-top: 8px; }
.asc-qa-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.asc-qa-f button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-weight: 800; color: #6f7d1c; padding: 8px; border-radius: 10px; cursor: pointer; }
.asc-qa-f button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.asc-short { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.asc-short button { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 14px; border-radius: 18px; font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 112px; transition: transform .15s; }
.asc-short button:active { transform: scale(.97); }
.asc-short button > svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: #6f7d1c; }
.asc-short b { display: block; font-size: 15px; font-weight: 800; line-height: 1.2; }
.asc-short small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.25; }
.asc-short .asc-go { background: linear-gradient(145deg, #8a9a2a, #6f7d1c); border-color: transparent; color: #fff; box-shadow: 0 16px 28px -18px rgba(91, 105, 20, 1); }
.asc-short .asc-go > svg, .asc-short .asc-go small { color: rgba(255, 255, 255, .88); }
.asc-k { margin: 6px 0 -6px; color: #6f7d1c; }
.asc-faq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.asc-faq button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.asc-faq button:first-child { border-top: 0; }
.asc-faq button:active { background: color-mix(in srgb, var(--text) 5%, transparent); }
.asc-faq button svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; color: var(--muted); }
.asc-hist { align-self: center; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 8px 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.asc-ask { position: sticky; bottom: 0; margin: auto -16px 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; background: linear-gradient(to top, var(--bg) 75%, transparent); z-index: 2; }
.asc-ask input { flex: 1; min-width: 0; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; padding: 0 16px; box-shadow: 0 10px 24px -20px rgba(28, 30, 24, .7); }
.asc-ask input:focus { outline: none; border-color: #8a9a2a; box-shadow: 0 0 0 3px color-mix(in srgb, #a8b43c 25%, transparent); }
.asc-ask button { width: 52px; height: 52px; flex: none; border: 0; border-radius: 16px; background: #3b3e34; color: #fff; display: grid; place-items: center; cursor: pointer; }
.asc-ask button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) {
  .asc-a { background: color-mix(in srgb, #a8b43c 10%, var(--surface)); }
  .asc-qa-f button, .asc-k, .asc-short button > svg { color: #b9c55a; }
  .asc-short .asc-go > svg { color: rgba(255, 255, 255, .9); }
  .asc-ask button { background: #5a5e4e; }
}
@media (prefers-reduced-motion: reduce) { .asc-hello, .asc-qa { animation: none; } }
.asc-ask { background: var(--bg); }
.asc-ask::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.asc-send { display: flex; align-items: center; justify-content: center; gap: 8px; width: calc(100% - 20px); margin: 0 10px 10px; min-height: 48px; border: 0; border-radius: 14px; background: #3b3e34; color: #fff; font: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; }
.asc-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .asc-send { background: #5a5e4e; } }

/* Seu cadastro: dados em um quadro, Alterar no que o paciente pode mudar */
.wz-card.pf-card { display: flex; flex-direction: column; gap: 14px; background: none; box-shadow: none; border: 0; }
.pf-head { display: flex; align-items: center; gap: 14px; animation: tfIn .3s ease-out both; }
.pf-av { width: 58px; height: 58px; border-radius: 18px; flex: none; display: grid; place-items: center; font-size: 21px; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(145deg, #8a9a2a, #6f7d1c); box-shadow: 0 12px 24px -14px rgba(91, 105, 20, .95); }
.pf-head .wz-kicker { display: block; margin: 0 0 2px; }
.pf-head .wz-q { margin: 0; font-size: 21px; line-height: 1.2; }
.pf-head .wz-sub { margin: 4px 0 0; font-size: 13.5px; }
.pf-list { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 14px 30px -26px rgba(28, 30, 24, .6); }
.pf-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.pf-row:first-child { border-top: 0; }
.pf-row dt { grid-column: 1; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pf-row dd { grid-column: 1; margin: 2px 0 0; min-width: 0; }
.pf-row dd b { display: block; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.pf-row dd small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pf-row.empty dd b { color: #b3600c; font-weight: 700; }
.pf-edit, .pf-lock { grid-column: 2; grid-row: 1 / 3; }
.pf-edit { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 800; color: #6f7d1c; padding: 8px 4px 8px 10px; cursor: pointer; }
.pf-lock { color: var(--muted); opacity: .55; display: grid; place-items: center; }
.pf-lock svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-fill { flex-direction: column; gap: 1px; }
.pf-fill small { font-size: 12px; font-weight: 600; opacity: .8; }
.pf-fix { display: flex; align-items: flex-start; gap: 10px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 12px 14px; font: inherit; font-size: 13.5px; color: var(--muted); line-height: 1.4; cursor: pointer; }
.pf-fix b { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pf-fix svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-home { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--text); padding: 10px; cursor: pointer; }
.pf-home svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; }
@media (prefers-color-scheme: dark) { .pf-edit { color: #b9c55a; } .pf-row.empty dd b { color: #f0a560; } }
@media (prefers-reduced-motion: reduce) { .pf-head { animation: none; } }
/* Seu cadastro: rodapé no padrão do passo a passo (cartão com o botão Voltar) */
.pf-card .pf-more { margin: 0; }
.pf-foot { display: grid; margin-top: auto; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pf-foot button { display: flex; flex-direction: row !important; align-items: center; justify-content: center; gap: 6px; min-height: 50px; width: 100%; margin: 0; padding: 0 12px !important; border: 0; border-radius: 0 !important; background: none; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--text); cursor: pointer; }
.pf-foot button svg { width: 18px !important; height: 18px !important; padding: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; fill: none; stroke: currentColor; stroke-width: 2.4; color: var(--text); }
.pf-foot { margin-top: 4px; }
.pf-card .wz-body.pf-more { margin: 0 !important; } .pf-card .pf-foot { margin-top: 0; }
/* Meus pedidos: conversa curta com a equipe e resposta do paciente */
.req-st.need { color: #b3600c; } .req-st.need i { animation: reqPulse 1.6s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .req-st.need { color: #f0a24a; } }
.req-th { border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); }
.req-th small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.req-th p { margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.req-th.eq { background: color-mix(in srgb, var(--c, #c0651a) 9%, var(--surface)); border-color: color-mix(in srgb, var(--c, #c0651a) 28%, transparent); }
.req-th.me { background: var(--surface); margin-left: 18px; }
.req-answer { display: grid; gap: 10px; }
.req-answer.need { padding: 12px; border-radius: 18px; border: 1.5px solid color-mix(in srgb, #b3600c 45%, transparent); background: color-mix(in srgb, #b3600c 7%, var(--surface)); }
.req-need { display: flex; gap: 10px; align-items: flex-start; }
.req-need svg { width: 20px; height: 20px; flex: none; color: #b3600c; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.req-need b { display: block; font-size: 15px; font-weight: 800; }
.req-need small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.req-answer textarea { width: 100%; min-height: 84px; resize: vertical; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; padding: 12px 14px; box-sizing: border-box; }
.req-answer textarea:focus { outline: none; border-color: #8a9a2a; box-shadow: 0 0 0 3px color-mix(in srgb, #a8b43c 25%, transparent); }
.req-answer .btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; }
.req-answer .btn-primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.req-answer .lc-err:empty { display: none; }
@media (prefers-color-scheme: dark) { .req-need svg { color: #f0a24a; } .req-answer.need { border-color: color-mix(in srgb, #f0a24a 40%, transparent); background: color-mix(in srgb, #f0a24a 8%, var(--surface)); } }
/* Avisos de pedido: o cartão inteiro abre o pedido em Meus pedidos */
.notice.has-link { cursor: pointer; transition: transform .12s; }
.notice.has-link:active { transform: scale(.985); }
.notice.has-link:focus-visible { outline: 3px solid color-mix(in srgb, #8a9a2a 45%, transparent); outline-offset: 2px; }
.notice .n-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-style: normal; font-size: 14px; font-weight: 800; color: #6f7d1c; }
.notice .n-go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { .notice .n-go { color: #b9c55a; } }
/* Atendimento com a equipe: conversa limpa, histórico da assistente recolhido */
#messages .old { display: none !important; }
.old-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px auto 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.old-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
