/* Client pages: storefront, booking link, "Meus horários". Phone first, one column, the professional's color. */
.c-page { background: var(--paper); min-height: 100dvh; }
.c-wrap { max-width: 560px; margin: 0 auto; padding: 18px 16px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 18px; align-content: start; }
.c-center { min-height: 70dvh; place-content: center; justify-items: center; text-align: center; }

/* header in the brand color */
.c-head { background: var(--brand); color: #fff; }
.c-head-in { max-width: 560px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.c-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 1; min-width: 0; }
.c-brand b { display: block; font-family: var(--f-display); font-size: 18px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-brand > span:last-child { min-width: 0; }
.c-brand small { display: block; font-size: 12px; opacity: .82; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 16px; flex: none; overflow: hidden; }
.c-logo img { width: 100%; height: 100%; object-fit: cover; }
.c-account { flex: none; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid color-mix(in srgb, #fff 45%, transparent); border-radius: var(--r-full); padding: 8px 14px 8px 12px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 340px) { .c-account { padding: 0; width: 44px; justify-content: center; } .c-account span { display: none; } }
.c-account:hover { background: color-mix(in srgb, #fff 14%, transparent); }

.c-title { font-size: clamp(24px, 6vw, 30px); line-height: 1.12; }
.c-sub { font-family: var(--f-body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 8px 0 10px; }
.c-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand); }
.c-note { color: var(--muted); font-size: 14px; }
.c-chosen { color: var(--brand); font-weight: 600; font-size: 14px; margin-top: -10px; }
.c-empty { color: var(--muted); padding: 20px 0; }
.c-error { background: var(--danger-soft); color: var(--danger); border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; font-weight: 500; }
.c-dev { background: var(--warn-soft); color: var(--warn); border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; }
.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; }
.c-card h2 { font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: 0; }
.c-skel { min-height: 90px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--subtle), var(--surface), var(--subtle)); background-size: 200% 100%; animation: c-shine 1.4s linear infinite; }
.c-skel.tall { min-height: 260px; }
@keyframes c-shine { to { background-position: -200% 0; } }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: center; min-height: 40px; }
.c-link-back { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 14px 4px 4px; margin-left: -4px; color: var(--ink); font: 600 16px/1 var(--f-body); cursor: pointer; justify-self: start; min-height: 44px; border-radius: var(--r-full); transition: background-color var(--fast) ease; }
.c-link-back .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: transform var(--fast) ease; }
.c-link-back:hover { background: var(--brand-soft); }
.c-link-back:hover .ic { transform: translateX(-2px); }
.c-link-back:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-brand[disabled] { opacity: .5; }

/* steps */
.c-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.c-steps li { font-size: 12px; font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; }
.c-steps li.done { border-color: var(--brand-mid); }
.c-steps li[aria-current] { border-color: var(--brand); color: var(--brand); }

/* services */
.c-svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.c-svc { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; cursor: pointer; min-height: 64px; transition: border-color var(--fast) ease, transform var(--fast) ease; }
.c-svc:hover { border-color: var(--brand); }
.c-svc:active { transform: scale(.99); }
.c-svc .n b { display: block; font-size: 16px; }
.c-svc .n small, .c-svc .p small { display: block; color: var(--muted); font-size: 12px; }
.c-svc .p { text-align: right; flex: none; }
.c-svc .p b { font-size: 16px; font-variant-numeric: tabular-nums; }
.c-svc .p small { color: var(--brand); font-weight: 500; }

/* day strip + times */
.c-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px; padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; contain: paint; } /* contain: without it Chrome adds the hidden days to the page width (sideways scroll) */
.c-strip::-webkit-scrollbar { display: none; }
.c-day { flex: none; width: 58px; display: grid; justify-items: center; gap: 0; padding: 8px 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; scroll-snap-align: start; }
.c-day small { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.c-day b { font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.c-day[disabled] { opacity: .4; cursor: default; background: transparent; }
.c-day[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.c-day[aria-pressed="true"] small { color: color-mix(in srgb, #fff 85%, transparent); }
.c-times-group { display: grid; gap: 8px; }
.c-times-group > span { font-size: 12px; color: var(--muted); font-weight: 500; }
.c-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.c-time { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-sm); min-height: 44px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.c-time:hover { border-color: var(--brand); color: var(--brand); }
.c-time[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* sticky bottom action on the phone */
.c-bottom { position: sticky; bottom: 0; padding: 12px 0 max(12px, env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--paper) 70%, transparent); margin-top: 4px; }

/* summary, money, policy */
.c-summary b { font-size: 16px; }
.c-summary > span { color: var(--muted); font-size: 14px; margin-top: -8px; }
.c-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.c-money > div { padding: 10px 12px; display: grid; gap: 2px; }
.c-money > div + div { border-left: 1px solid var(--line); }
.c-money span { font-size: 12px; color: var(--muted); }
.c-money b { font-size: 16px; font-variant-numeric: tabular-nums; }
.c-money .dep { background: var(--brand-soft); }
.c-money .dep b { color: var(--brand); }
.c-form { display: grid; gap: 14px; }
.c-form .field input, .c-login .field input { min-height: 48px; font-size: 16px; }
.field input:focus { outline-color: var(--brand); }
.c-policy { background: var(--brand-soft); border-color: transparent; }
.c-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.c-rules li { padding-left: 22px; position: relative; }
.c-rules li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.c-rules li.back::before { background: var(--ok); }
.c-rules li.keep::before { background: var(--warn); }
.c-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14px; cursor: pointer; padding-top: 4px; }
.c-check input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; margin: 0; }

/* booking page */
.c-hero { display: grid; gap: 12px; padding: 4px 0; }
.c-hero.ok, .c-hero.off { justify-items: center; text-align: center; padding: 12px 0; }
.c-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; animation: c-pop .4s ease-out; }
@keyframes c-pop { from { transform: scale(.6); opacity: 0; } }
.c-big { min-height: 56px; font-size: 16px; gap: 8px; }
.c-pix { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.c-pix label { font-size: 14px; font-weight: 600; }
.c-pix textarea { width: 100%; resize: none; border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 10px; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: var(--subtle); word-break: break-all; }
.c-deadline { display: grid; gap: 8px; background: var(--brand-soft); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; }
.c-deadline .track { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 18%, #fff); overflow: hidden; }
.c-deadline .track i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .6s ease; }
.c-deadline.urgent { background: var(--warn-soft); color: var(--warn); }
.c-deadline.urgent .track i { background: var(--warn); }
.c-what { display: grid; gap: 2px; }
.c-what b { font-size: 16px; }
.c-what span { color: var(--muted); font-size: 14px; }
.c-flag { background: var(--info-soft); color: var(--info); border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; }
.c-actions { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.c-actions .link-btn { color: var(--muted); }
.c-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.c-row .btn { flex: 1 1 140px; }
.c-danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.c-btn-danger { background: var(--danger); color: #fff; }
.c-bubbles { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; }
.c-bubble { max-width: 82%; background: var(--subtle); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: 14px; justify-self: start; overflow-wrap: anywhere; }
.c-bubble.me { background: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; justify-self: end; }
.c-bubble small { display: block; font-size: 12px; opacity: .7; text-align: right; }
.c-send { display: flex; gap: 8px; }
.c-send input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-full); padding: 0 14px; font-size: 16px; }
.c-send input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.c-send .icon-btn { background: var(--brand); color: #fff; width: 44px; height: 44px; }
.c-foot-note { font-size: 14px; color: var(--muted); text-align: center; }
.c-foot-note a { color: var(--brand); font-weight: 600; }
/* "feito com vem agendaí": quiet credit under every client page (same as the panel sidebar) */
.c-made { display: flex; justify-content: center; padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px)); margin-top: -12px; }
.c-made .made-with { padding: 10px 12px; border-radius: var(--r-full); }
.c-made .made-with:hover .vwm, .c-made .made-with:focus-visible .vwm { text-decoration: underline; text-underline-offset: 3px; }

/* minha conta */
.c-login { gap: 14px; }
.c-login form { display: grid; gap: 12px; }
.c-code { letter-spacing: .4em; font-size: 22px !important; text-align: center; font-variant-numeric: tabular-nums; }
.c-hello { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.c-hello .link-btn { justify-self: auto; color: var(--muted); }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.c-list li { display: grid; gap: 2px; }
.c-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; text-decoration: none; min-height: 60px; }
.c-item:hover { border-color: var(--brand); }
.c-item.act { border-color: var(--brand); box-shadow: inset 4px 0 0 var(--brand); }
.c-item .n b { display: block; font-size: 16px; }
.c-item .n small { color: var(--muted); font-size: 14px; }
.c-item .s { text-align: right; font-size: 14px; font-weight: 600; color: var(--brand); flex: none; max-width: 45%; }
.c-item .s small { display: block; color: var(--muted); font-weight: 400; }
.c-list.past .c-item { background: transparent; }
.c-list.past .c-item .s { color: var(--muted); font-weight: 500; }
.c-again { justify-self: end; font-size: 14px; font-weight: 600; color: var(--brand); padding: 8px 4px 6px; }
.c-empty-card { justify-items: start; }

/* optional Pix receipt */
.c-paid { display: grid; gap: 10px; }
.c-paid > b { font-size: 16px; }
.c-upload { position: relative; display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--brand-mid); background: var(--brand-soft); color: var(--brand); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; min-height: 56px; }
.c-upload:hover { border-color: var(--brand); }
.c-upload:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.c-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.c-upload span { display: grid; }
.c-upload small { color: var(--muted); font-size: 12px; }
.c-upload.quiet { background: var(--surface); }
.c-sent { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 14px; }

/* chat: looks tappable when closed (icon, preview, chevron) */
.c-chat summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; min-height: 52px; margin: -4px; padding: 4px; border-radius: var(--r-md); }
.c-chat summary::-webkit-details-marker { display: none; }
.c-chat summary:hover { background: var(--subtle); }
.c-chat-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.c-chat-txt { flex: 1; min-width: 0; display: grid; }
.c-chat-txt b { font-size: 16px; }
.c-chat-txt small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-new { font-style: normal; background: var(--brand); color: #fff; border-radius: var(--r-full); font-size: 12px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.c-chev { color: var(--muted); transform: rotate(-90deg); transition: transform var(--slow) ease; display: grid; }
.c-chat[open] .c-chev { transform: rotate(90deg); }
.c-chat[open] summary { margin-bottom: 8px; }

/* deposit rule: always open */
.c-rules-box { background: var(--brand-soft); border-color: transparent; }
.c-rules-box h2 { display: flex; align-items: center; gap: 8px; color: var(--brand); }

/* reschedule instead of cancel */
.c-alt { text-align: center; font-size: 14px; color: var(--muted); }
.c-alt .link-btn { padding: 0 2px; min-height: 0; }
.c-suggest { display: grid; gap: 6px; background: var(--brand-soft); border-radius: var(--r-md); padding: 12px 14px; justify-items: start; }
.c-suggest span { font-size: 14px; color: var(--muted); }
.c-suggest .btn { margin-top: 4px; }
.c-keep { display: flex; gap: 6px; align-items: center; color: var(--ok); font-weight: 600; font-size: 14px; }

/* chat spacing: <details> does not pass its grid gap to its content, so the space is set here */
.c-chat .c-bubbles { gap: 8px; padding: 4px 2px 0; margin-bottom: 16px; }
.c-chat .c-send { margin-top: 0; }
.c-bubble small { margin-top: 2px; }

/* touch targets: 44 px minimum everywhere a finger taps */
.c-account, .c-link-back { min-height: 44px; }
.c-empty { display: grid; gap: 12px; justify-items: start; }
.c-holder { display: flex; gap: 8px; align-items: flex-start; background: var(--ok-soft); color: var(--ink); border-radius: var(--r-md); padding: 10px 12px; font-size: 14px; }
.c-holder svg { color: var(--ok); flex: none; margin-top: 1px; }

/* Owner bar: the professional previewing her own page */
.owner-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px)); background: var(--ink); color: #fff; font-size: 14px; white-space: nowrap; }
.owner-bar span { overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.owner-back { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border-radius: var(--r-full); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.owner-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* "Agendando como…" (signed-in client) */
.c-me { display: flex; align-items: center; gap: 12px; }
.c-me-face { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.c-me-face img { width: 100%; height: 100%; object-fit: cover; }
.c-me-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.c-me-txt small { color: var(--muted); font-size: 12px; }
.c-me-txt b { font-size: 16px; }
.c-me-txt span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-me .link-btn { flex: none; justify-self: end; font-size: 14px; }

/* Demo page (linked from the home) */
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); background: #B9EDD3; color: #14201A; font-size: 14px; }
.demo-bar span { min-width: 0; }
.demo-cta { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-full); background: #0C6B49; color: #fff; font-weight: 600; text-decoration: none; }
.c-demo-done { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 28px 20px; }
.demo-ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }

/* Minha conta: profile photo */
.c-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-photo > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 160px; }
.c-photo small { color: var(--muted); font-size: 14px; }
.c-photo-act { display: flex; align-items: center; gap: 10px; }
.c-photo-act label { cursor: pointer; }

/* Minha conta: "Meus dados" */
.c-data summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 48px; }
.c-data summary::-webkit-details-marker { display: none; }
.c-data-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.c-data-txt small { color: var(--muted); font-size: 14px; }
.c-data .c-chev { transform: rotate(-90deg); transition: transform var(--fast) ease; color: var(--muted); display: grid; }
.c-data[open] .c-chev { transform: rotate(90deg); }
.c-data-body { display: grid; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.c-data .c-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.c-data .c-photo > span:first-child { display: grid; gap: 2px; flex: 1; min-width: 180px; }
.c-data input[readonly] { background: var(--subtle); color: var(--muted); }
.c-ok { color: var(--ok); font-weight: 600; font-size: 14px; }

/* "Tenha o app de {nome}" (shown only when the phone can install her app) */
.c-install { display: flex; align-items: center; gap: 12px; }
.c-install[hidden] { display: none; }
.c-install-icon { border-radius: 12px; background: var(--brand); color: #fff; }
.c-install-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.c-install-txt small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.c-install .btn { flex: none; }
@media (max-width: 380px) { .c-install { flex-wrap: wrap; } .c-install .btn { width: 100%; } }
