/* Página pública de agendamento online */
body.booking-page { background: var(--bg); min-height: 100vh; }
.bk-wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.bk-loading { color: var(--muted); text-align: center; margin-top: 60px; }
.bk-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.bk-logo { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-deep, #0C4137); border: 1px solid rgba(6,214,160,.35); color: var(--brand, #06D6A0); display: grid; place-items: center; flex: none; box-shadow: 0 0 22px rgba(6,214,160,.18); }
.bk-head h1 { font-size: 22px; margin: 0; }
.bk-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.bk-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.bk-card h2 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.bk-step { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--primary-ink, #022a20); font-weight: 700; font-size: 12px; display: inline-grid; place-items: center; }
.bk-pros { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 9px 14px; font: inherit; cursor: pointer; color: var(--text); }
.bk-chip:hover { border-color: var(--primary); }
.bk-chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink, #022a20); font-weight: 650; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.bk-day { min-width: 64px; text-align: center; scroll-snap-align: start; }
.bk-day small { display: block; font-size: 11px; opacity: .8; text-transform: uppercase; }
.bk-day b { font-size: 18px; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk-empty { color: var(--muted); font-size: 14px; }
.bk-summary { background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.bk-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.bk-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); flex: none; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-done { text-align: center; padding: 30px 18px; }
.bk-done .bk-logo { margin: 0 auto 14px; width: 56px; height: 56px; border-radius: 50%; }
.bk-foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }
.bk-foot a { color: var(--muted); }
/* Página pública de assinatura */
.sig-doc h2 { font-size: 16px; margin-bottom: 14px; }
.sig-sec { margin-bottom: 12px; font-size: 14px; }
.sig-sec b { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sig-sec p { margin: 2px 0 0; white-space: pre-line; line-height: 1.5; }
.sig-canvas { width: 100%; height: 180px; border: 2px dashed var(--border); border-radius: 10px; background: #fff; touch-action: none; display: block; cursor: crosshair; }
/* Portal do paciente */
.pt-sub { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.pt-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; margin: 6px 0 10px; }
.pt-n { border: 1px solid var(--border); background: var(--surface); border-radius: 9px; padding: 10px 0; font: inherit; font-weight: 700; cursor: pointer; color: var(--text); }
.pt-n.on { color: #fff; border-color: transparent; }
.pt-bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 6px; }
.pt-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.pt-bar i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; }
.pt-bar small { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.pt-list { display: flex; flex-direction: column; gap: 8px; }
.pt-item { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.pt-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pt-details summary { cursor: pointer; color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.pt-ex { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.pt-ex summary { display: flex; gap: 10px; align-items: center; cursor: pointer; list-style: none; }
.pt-ex summary::-webkit-details-marker { display: none; }
.pt-exn { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-50); color: var(--primary-text); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.pt-exbody { padding-top: 10px; font-size: 14px; line-height: 1.5; }
.pt-exbody img { max-width: 100%; max-height: 260px; border-radius: 8px; display: block; margin: 0 auto 8px; background: #fff; }
.pt-exbody ol { padding-left: 20px; margin: 6px 0; }
.pt-warn { background: var(--amber-50); border-radius: 8px; padding: 8px 10px; font-size: 13px; margin: 6px 0; }
@media (max-width: 420px) { .pt-scale { grid-template-columns: repeat(6, 1fr); } .pt-item { flex-wrap: wrap; } }
.pt-pix-qr { width: 220px; height: 220px; margin: 0 auto; display: block; image-rendering: pixelated; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.pt-pix-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; resize: none; }
.pt-steps { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
.pt-pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pt-pix-status.off .pt-dot { display: none; }
.pt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); animation: pt-pulse 1.2s ease-in-out infinite; }
@keyframes pt-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
