*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.5 var(--body); -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--pen); text-underline-offset: 3px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; border-radius: 6px; }
.noscript { padding: 24px; }

/* ---------- tipografia ---------- */
.t-display { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.t-title { font: 700 1.75rem/1.1 var(--display); letter-spacing: -.02em; }
.t-h2 { font: 650 1.125rem/1.25 var(--display); letter-spacing: -.01em; }
.t-muted { color: var(--ink-2); }
.t-small { font-size: .875rem; }
.t-faint { color: var(--ink-3); font-size: .8125rem; }

/* ---------- casca do app ---------- */
.shell { min-height: 100dvh; display: block; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); }
.main { width: 100%; max-width: 760px; margin: 0 auto; padding: 20px var(--gutter) 8px; }
.side { display: none; }
.nav {
  position: fixed; inset: auto 0 0 0; z-index: 20; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 4px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center; background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.nav a.tab {
  display: grid; justify-items: center; gap: 2px; padding: 8px 2px; text-decoration: none;
  color: var(--ink-3); font-size: .6875rem; font-weight: 600; border-radius: var(--r-sm);
}
.nav a.tab svg { width: 24px; height: 24px; }
.nav a.tab[aria-current="page"] { color: var(--pen); }
.fab {
  position: fixed; z-index: 21; right: 16px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px);
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: var(--on-brand);
  box-shadow: var(--shadow-lift); text-decoration: none; transition: transform .15s;
}
.fab[hidden] { display: none; }
.fab:active { transform: scale(.94); }
.fab svg { width: 26px; height: 26px; }
.shell.has-fab { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 92px); }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 264px 1fr; padding-bottom: 40px; }
  .nav, .fab { display: none; }
  .side {
    display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh;
    padding: 28px 18px 24px; border-right: 1px solid var(--line);
  }
  .side .brand { margin: 0 8px 22px; }
  .side a.tab {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm);
    color: var(--ink-2); text-decoration: none; font-weight: 600;
  }
  .side a.tab svg { width: 22px; height: 22px; }
  .side a.tab:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
  .side a.tab[aria-current="page"] { background: var(--pen-soft); color: var(--pen); }
  .side .grow { flex: 1; }
  .main { padding: 40px 40px 8px; max-width: 880px; margin: 0; }
}

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.25rem/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand { font-weight: 800; letter-spacing: .01em; }
.brand .mark { display: grid; place-items: center; }
.brand .mark .logo-img { height: 60px; width: auto; display: block; filter: drop-shadow(0 1px 1.5px rgb(70 0 100 / .35)); }

/* ---------- botoes ---------- */
.btn {
  --bg: var(--card); --fg: var(--ink); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 20px; border-radius: var(--r-md); border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-weight: 650; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; cursor: default; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { --bg: var(--brand); --fg: var(--on-brand); --bd: var(--brand); }
.btn.primary:hover:not(:disabled) { --bg: var(--brand-hover); --bd: var(--brand-hover); }
.btn.ghost { --bg: transparent; --bd: transparent; }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.danger { --fg: var(--bad); --bd: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9375rem; border-radius: var(--r-sm); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- formularios ---------- */
.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 650; font-size: .9375rem; }
.field .hint { color: var(--ink-3); font-size: .8125rem; }
.field .err { color: var(--bad); font-size: .875rem; font-weight: 550; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink);
  transition: border-color .15s, box-shadow .15s; appearance: none;
}
.textarea { min-height: 84px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pen) 20%, transparent); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--bad); }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.pw { position: relative; }
.pw .input { padding-right: 76px; }
.pw button { position: absolute; right: 6px; top: 6px; min-height: 38px; padding: 0 12px; border: 0; background: transparent; color: var(--pen); font-weight: 650; border-radius: var(--r-sm); }
.row2 { display: grid; gap: 18px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: transparent; font-weight: 600; font-size: .9375rem; color: var(--ink-2);
}
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.chips.quick .chip { padding: 0 2px; min-width: 0; white-space: nowrap; font-size: .8125rem; }

.money { position: relative; }
.money .cur { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font: 650 1.5rem var(--display); color: var(--ink-3); pointer-events: none; }
.money .input { padding-left: 52px; font: 700 1.75rem/1.2 var(--display); letter-spacing: -.01em; min-height: 64px; }

.alert { padding: 12px 14px; border-radius: var(--r-md); font-size: .9375rem; display: grid; gap: 8px; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert .btn { justify-self: start; }

/* ---------- cartoes e listas ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; width: auto; margin-left: auto; gap: 8px; }
.page-head .back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; margin-bottom: 8px; }
.page-head .back svg { width: 20px; height: 20px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }

.list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list > li + li { border-top: 1px solid var(--line); }
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; width: 100%;
  padding: 14px 16px; text-align: left; color: inherit; text-decoration: none; background: transparent; border: 0;
}
a.item:hover, button.item:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.item .who { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .what { color: var(--ink-2); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .val { font: 700 1.0625rem var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.item .meta { text-align: right; justify-self: end; }
.item .avatar { display: none; }
.item.has-avatar { grid-template-columns: 44px 1fr auto; }
.item.has-avatar .avatar { display: grid; grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: var(--pen-soft); color: var(--pen); font: 700 1rem var(--display); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .8125rem; font-weight: 650; white-space: nowrap; background: var(--line); color: var(--ink-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.paid { background: var(--ok-soft); color: var(--ok); }
.badge.open { background: var(--pen-soft); color: var(--pen); }
.badge.late { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }

.empty { text-align: center; padding: 40px 24px; display: grid; justify-items: center; gap: 10px; }
.empty .art { width: 96px; height: 96px; color: var(--pen); }
.empty h3 { font: 700 1.25rem var(--display); letter-spacing: -.01em; }
.empty p { color: var(--ink-2); max-width: 34ch; }
.empty .btn { margin-top: 8px; }

.skeleton { background: linear-gradient(90deg, var(--line) 25%, color-mix(in srgb, var(--line) 50%, var(--card)) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-row { height: 66px; border-radius: 0; }

/* ---------- inicio ---------- */
.hello { margin-bottom: 18px; }
.hello .t-title { margin-top: 2px; }
.totals { display: grid; gap: 12px; }
.hero-total {
  position: relative; overflow: hidden; padding: 22px 20px; border-radius: var(--r-lg);
  background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-lift);
}
.hero-total .lbl { opacity: .85; font-weight: 600; }
.hero-total .big { font: 700 clamp(2.25rem, 9vw, 3.25rem)/1 var(--display); letter-spacing: -.03em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.hero-total .sub { opacity: .85; font-size: .9375rem; }
.hero-total svg.guil { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; pointer-events: none; }
.hero-total > :not(.guil) { position: relative; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { padding: 16px; }
.mini .lbl { color: var(--ink-2); font-size: .875rem; font-weight: 600; }
.mini .v { font: 700 1.5rem/1.15 var(--display); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mini.ok .v { color: var(--ok); }
.mini.late .v { color: var(--bad); }

.toolbar { display: grid; gap: 12px; margin-bottom: 14px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 44px; }
.scroll-x { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x .chips { flex-wrap: nowrap; }
.scroll-x .chip { flex: none; }

/* ---------- cedula (detalhe da cobranca) ---------- */
.cedula { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cedula-top {
  position: relative; padding: 22px 20px 26px; color: var(--on-brand); background: var(--brand); overflow: hidden;
}
.cedula-top.paid { background: var(--ok); color: #fff; }
:root[data-theme="dark"] .cedula-top.paid { color: #06241a; }
.cedula-top svg.guil { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .28; pointer-events: none; }
.cedula-top > :not(.guil) { position: relative; }
.cedula-top .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cedula-top .lbl { font-weight: 600; opacity: .9; }
.cedula-top .amount { font: 700 clamp(2.5rem, 11vw, 3.5rem)/1 var(--display); letter-spacing: -.03em; margin-top: 14px; font-variant-numeric: tabular-nums; }
.cedula-top .badge { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }
.cedula-top.muted { background: var(--ink-3); color: #fff; }
.cedula-body { padding: 8px 20px 20px; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-strong); }
.kv dt { color: var(--ink-3); font-size: .875rem; padding-top: 1px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cedula-cut { position: relative; margin: 0 -1px; height: 22px; display: flex; align-items: center; }
.cedula-cut::before { content: ""; flex: 1; border-top: 2px dashed var(--line-strong); margin: 0 18px; }
.cedula-cut::after, .cedula-cut i { content: ""; position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.cedula-cut::after { right: -12px; } .cedula-cut i { left: -12px; }
.pay { padding: 0 20px 22px; display: grid; justify-items: center; gap: 16px; }
.qr-frame { padding: 14px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr-frame svg { display: block; shape-rendering: crispEdges; }
.pix-code { width: 100%; display: grid; gap: 8px; }
.pix-code code { display: block; padding: 12px 14px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); font: 500 .8125rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; max-height: 5.6em; overflow: hidden; color: var(--ink-2); position: relative; }
.actions { display: grid; gap: 10px; width: 100%; }
@media (min-width: 560px) { .actions.two { grid-template-columns: 1fr 1fr; } }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .875rem; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.stamp {
  position: absolute; right: 18px; top: 168px; z-index: 2; padding: 6px 16px; border: 4px solid currentColor; border-radius: 8px;
  color: var(--ok); background: color-mix(in srgb, var(--card) 85%, transparent); font: 800 1.75rem/1 var(--display);
  letter-spacing: .06em; text-transform: uppercase; transform: rotate(-9deg); pointer-events: none; animation: stamp .45s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes stamp { from { transform: rotate(-9deg) scale(2.2); opacity: 0; } to { transform: rotate(-9deg) scale(1); opacity: 1; } }

/* ---------- autenticacao ---------- */
.auth { min-height: 100dvh; display: grid; align-content: start; justify-items: center; padding: 28px var(--gutter) 40px; }
.auth-card { width: 100%; max-width: 440px; display: grid; gap: 24px; }
.auth-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--brand); color: var(--on-brand); padding: 26px 22px 28px; }
.auth-hero svg.guil { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .26; }
.auth-hero > :not(.guil) { position: relative; }
.auth-hero .brand { color: inherit; }
.auth-hero h1 { font: 700 clamp(1.875rem, 8vw, 2.5rem)/1.05 var(--display); letter-spacing: -.03em; margin-top: 34px; }
.auth-hero p { margin-top: 10px; opacity: .9; max-width: 32ch; }
.auth-card .panel { padding: 22px 20px; }
.code-input { font: 700 1.5rem/1 var(--display); letter-spacing: .18em; text-align: center; height: 56px; }

/* foto do login (opcional) */
.auth-hero .hero-photo { position: absolute; inset: 0; opacity: 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.hero-photo.on img { opacity: 1; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(128 0 128 / .88) 0%, rgb(128 0 128 / .55) 45%, rgb(20 10 16 / .6) 100%); }
:root[data-theme="dark"] .hero-photo::after { background: linear-gradient(180deg, rgb(214 124 224 / .85) 0%, rgb(214 124 224 / .45) 45%, rgb(10 6 10 / .65) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-photo::after { background: linear-gradient(180deg, rgb(214 124 224 / .85) 0%, rgb(214 124 224 / .45) 45%, rgb(10 6 10 / .65) 100%); } }

/* ilustracao do login */
.hero-art { position: relative; margin-top: 26px; display: grid; gap: 10px; justify-items: start; pointer-events: none; }
.ha-note { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgb(255 255 255 / .96); color: #1B1620; box-shadow: 0 10px 30px rgb(0 0 0 / .22); animation: haIn .6s .3s cubic-bezier(.2, 1, .3, 1) both; }
.ha-note strong { display: block; font-size: .9375rem; }
.ha-note small { color: #5E5560; font-size: .8125rem; }
.ha-dot { width: 34px; height: 34px; border-radius: 50%; background: #800080; color: #fff; display: grid; place-items: center; }
.ha-dot svg { width: 18px; height: 18px; }
.ha-agenda { display: none; position: relative; width: min(290px, 100%); padding: 16px 16px 8px; border-radius: 18px; background: #FFFCFA; color: #1B1620; box-shadow: 0 18px 40px rgb(0 0 0 / .25); margin-left: 24px; }
.ha-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 6px; }
.ha-head b { font: 800 1.125rem/1 var(--display); }
.ha-slot { text-align: left; display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: 12px; font-size: .875rem; }
.ha-slot b { font-weight: 700; color: #5E5560; }
.ha-slot strong { display: block; font-weight: 600; }
.ha-slot small { color: #5E5560; font-size: .78rem; }
.ha-slot.past { opacity: .55; }
.ha-slot.new { background: #F8DDF4; box-shadow: inset 3px 0 0 #800080; animation: haIn .5s .9s cubic-bezier(.2, 1, .3, 1) both; }
.ha-slot.free { border: 1.5px dashed #E4D9DD; margin-top: 2px; margin-bottom: 2px; }
.ha-slot.free strong { color: #8A7F8C; font-weight: 500; }
@keyframes haIn { from { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ha-note, .ha-slot.new { animation: none; } }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .9375rem; }
.center-note { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 18px 8px; }
.center-note .art { width: 72px; height: 72px; color: var(--ok); }
@media (min-width: 900px) {
  .auth { align-content: center; }
  .auth-card { max-width: 920px; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
  .auth-hero { border-radius: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 36px; min-height: 560px; }
  .auth-card .panel { border: 0; box-shadow: none; border-radius: 0; padding: 44px 40px; align-self: center; }
  .ha-agenda { display: block; }
  .hero-art { margin-top: 32px; }
}

/* ---------- folha (dialog) ---------- */
dialog.sheet {
  width: min(100%, 520px); max-height: 92dvh; padding: 0; border: 0; color: var(--ink); background: var(--card);
  border-radius: var(--r-lg) var(--r-lg) 0 0; margin: auto auto 0; box-shadow: 0 -20px 60px rgb(0 0 0 / .3);
  overflow: auto; animation: rise .22s ease-out;
}
dialog.sheet::backdrop { background: rgb(10 14 24 / .5); backdrop-filter: blur(2px); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet-in { padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (min-width: 640px) {
  dialog.sheet { margin: auto; border-radius: var(--r-lg); }
  .sheet-grab { display: none; }
  .sheet-in { padding-top: 22px; }
}

/* ---------- avisos ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); z-index: 60; display: grid; justify-items: center; gap: 8px; padding: 0 var(--gutter); pointer-events: none; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow-lift); animation: toast .25s ease-out; max-width: 100%; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes toast { from { transform: translateY(10px); opacity: 0; } }

.account-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; }
.account-row + .account-row { border-top: 1px solid var(--line); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--line); }
.seg button { border: 0; background: transparent; min-height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: .875rem; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.t-bad { color: var(--bad); }
.sk-hero { height: 150px; margin-bottom: 12px; border-radius: var(--r-lg); }
a.mini { color: inherit; text-decoration: none; display: block; }
a.mini:hover { border-color: var(--line-strong); }
.banner { margin: 0 0 20px; }
.main:focus, .main:focus-visible { outline: none; }

/* ---------- seguranca (MFA) ---------- */
.t-h3 { font: 700 1rem/1.2 var(--display); margin: 0 0 10px; }
.setup, .today { padding: 16px 18px; }
.today-head .btn { flex: none; white-space: nowrap; }
.setup .steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.setup .steps li { display: flex; align-items: center; gap: 12px; }
.setup .steps .btn { flex: none; white-space: nowrap; }
.setup .steps .txt { flex: 1; min-width: 0; }
.setup .steps .tick { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 0.8125rem; font-weight: 700; box-sizing: border-box; }
.setup .steps .done .tick { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.setup .steps .done .txt { color: var(--muted, inherit); text-decoration: line-through; }
.today { display: grid; gap: 10px; }
.today-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.today-head p { margin: 0; }
.tile { display: grid; gap: 2px; padding: 14px 16px; text-decoration: none; color: inherit; }
.stack { display: grid; gap: 6px; min-width: 0; }
.stack > .btn { justify-self: start; }
.account-row .stack { display: grid; gap: 2px; min-width: 0; }
.mfa-qr { justify-self: center; }
.mfa-manual summary { cursor: pointer; color: var(--pen); font-weight: 600; }
.mfa-secret { display: block; margin-top: 6px; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg-soft, var(--line)); word-break: break-all; letter-spacing: .08em; }
.mfa-codes { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); font-weight: 600; letter-spacing: .04em; }
.check { display: flex; gap: 10px; align-items: center; font-size: .9375rem; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); }

/* ---------- meio de pagamento (nova cobranca) ---------- */
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--card); cursor: pointer; }
.choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.choice span { display: grid; gap: 2px; }
.choice small { color: var(--ink-2); font-size: .875rem; }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--card)); }
.choice:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

/* ---------- relatorio ---------- */
.rep-card { padding: 20px; margin: 16px 0 24px; }
.rep-card .lbl { color: var(--ink-2); font-weight: 600; margin: 0 0 4px; }
.rep-card .big { font: 700 2rem/1.1 var(--display); margin: 0; }
.rep-card .sub { margin: 4px 0 16px; }
.bars { display: block; width: 100%; height: auto; }
.bars .axis { stroke: var(--line-strong); stroke-width: 1; }
.bars .bar { fill: color-mix(in srgb, var(--pen) 38%, var(--card)); }
.bars .bar.now { fill: var(--pen); }
.bars .bar.none { fill: var(--line-strong); }
.bars .tick { fill: var(--ink-2); font-size: 10px; font-weight: 600; }
.bars .tick.now { fill: var(--ink); }
.rep-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; }
.rep-name { font-weight: 600; }
.rep-val { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rep-sub { grid-column: 1 / -1; color: var(--ink-2); font-size: .875rem; }
.rep-sub:empty { display: none; }
.rep-empty { text-align: center; padding: 8px 16px 24px; }
.rep-link { margin: 0 0 20px; }
.rep-link a { font-weight: 650; }

/* ---------- cobrar vencida pelo WhatsApp ---------- */
.list > li.has-nudge { padding-bottom: 14px; }
.list > li.has-nudge > .item { padding-bottom: 10px; }
.nudge { margin: 0 16px; width: calc(100% - 32px); }

.section .card + .card { margin-top: 12px; }
.badge.here { margin-left: 8px; vertical-align: 1px; }
.minis .mini.wide { grid-column: 1 / -1; }
.cust-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cust-head .t-title { overflow-wrap: anywhere; }
.avatar.big { display: grid; flex: none; width: 56px; height: 56px; border-radius: 50%; place-items: center; background: var(--pen-soft); color: var(--pen); font: 700 1.25rem var(--display); }
.cust-head + .actions { margin-bottom: 16px; }
.minis { margin-bottom: 20px; }
.load-more { display: grid; gap: 10px; margin-top: 16px; }
.cust-mail { overflow-wrap: anywhere; }
.upcoming-more { margin: 8px 4px 0; }

/* ---------- agenda: horarios de atendimento ---------- */
.hours { display: grid; gap: 0; }
.hours-day { display: grid; gap: 8px; padding: 12px 0; }
.hours-day + .hours-day { border-top: 1px solid var(--line); }
.hours-win { display: flex; align-items: center; gap: 8px; }
.hours-win .input { min-width: 0; flex: 1; }

/* ---------- agenda: dia ---------- */
.daybar { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.daybar .input { flex: 1; min-width: 0; }
.daybar-label { display: block; margin: 0 0 12px; }
.daybar-label::first-letter { text-transform: uppercase; }
.is-canceled .who, .is-canceled .what { text-decoration: line-through; color: var(--ink-3, var(--ink-2)); }
#ag-who { margin-bottom: 12px; }

/* ---------- pagina publica de reservas ---------- */
.booking-main { --gutter: 16px; max-width: 520px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 16px 48px; display: grid; gap: 14px; align-content: start; }
.booking-links { display: flex; justify-content: flex-end; margin-bottom: -6px; }
.booking-res { display: grid; gap: 4px; padding: 14px 16px; justify-items: start; }
.booking-total { margin: 0; font-weight: 650; display: flex; justify-content: space-between; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper .qty { min-width: 24px; text-align: center; font-weight: 650; }
.cartbar { position: sticky; bottom: 12px; display: grid; }
.order-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; }
.punches { display: flex; flex-wrap: wrap; gap: 6px; }
.punch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); box-sizing: border-box; }
.punch.on { background: var(--brand); border-color: var(--brand); }
.booking-reslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.booking-head { display: grid; gap: 4px; margin-bottom: 4px; }
.booking-step { margin: 0; }
.booking-gap { margin-top: 12px; }
.booking-next { margin-top: 8px; }
.booking-slots { min-height: 56px; }
.booking-daylabel { margin: 4px 0 0; font-weight: 650; }
.booking-summary { display: grid; gap: 2px; padding: 14px 16px; }
.booking-done { display: grid; gap: 6px; padding: 20px 18px; }
.booking-done p { margin: 0; }
.booking-when { font: 700 1.125rem var(--display); }
button.item[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--radius, 14px); }
.chip.day { display: grid; justify-items: center; gap: 0; min-width: 58px; padding: 6px 8px; min-height: 58px; border-radius: 16px; }
.chip.day .dow { font-size: .75rem; text-transform: none; }
.chip.day .dom { font: 700 1.125rem var(--display); }
.daystrip { padding: 2px 2px 6px; }

/* ---------- agenda: link da pagina de reservas ---------- */
.link-box { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--line); }
.link-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.slug-row { display: flex; align-items: center; gap: 0; }
.slug-row .input { min-width: 0; flex: 1; }
.link-box .btn { flex: none; }
.slug-row .prefix { padding: 0 8px 0 12px; color: var(--ink-3); font-size: .9375rem; white-space: nowrap; }
.qr-box { display: grid; justify-items: center; padding: 12px; }

/* ---------- produtos: vitrine e cadastro ---------- */
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.pcard { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
button.pcard { cursor: pointer; width: 100%; }
.pgrid > li { min-width: 0; }
.pframe { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--tile); }
.pframe img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
button.pcard:hover .pframe img { transform: scale(1.04); }
.pmono { position: absolute; inset: 0; display: grid; place-items: center; font: 700 4rem/1 var(--display); color: color-mix(in srgb, var(--pen) 55%, transparent);
  background: repeating-linear-gradient(135deg, var(--pen-soft) 0 14px, color-mix(in srgb, var(--pen-soft) 60%, var(--card)) 14px 28px); }
.pprice { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 .9375rem/1.3 var(--display); }
.ptag { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: .75rem; font-weight: 700; }
.pcard.is-off .pframe img, .pcard.is-off .pmono { filter: grayscale(1); opacity: .55; }
.pname { font: 650 1rem/1.25 var(--display); overflow-wrap: anywhere; }
.pdesc, .pmeta { color: var(--ink-2); font-size: .875rem; line-height: 1.35; }
.pdesc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pbuy { justify-self: stretch; }
.pcard .stepper { justify-content: space-between; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo-box { display: grid; gap: 10px; justify-items: center; }
.photo-pick { width: min(160px, 46%); aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--pen-soft); }
.photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--pen); font-weight: 600; }
.photo-empty svg { width: 36px; height: 36px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.photo-actions .btn svg { width: 18px; height: 18px; }

/* ---------- galeria: carrossel, zoom e edicao ---------- */
.pcard-open { display: grid; gap: 6px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pcard .buy { margin-top: 4px; }
.palt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
@media (hover: hover) { .pcard-open:hover .palt { opacity: 1; } .pcard-open:hover .pframe img { transform: scale(1.04); } }
.pcount { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgb(17 21 28 / .72); color: #fff; font-size: .75rem; font-weight: 650; backdrop-filter: blur(4px); }
.pdetail { gap: 14px; }
.pdetail .sheet-head { min-height: 32px; }
.pinfo { display: grid; gap: 6px; }
.pdetail-price { font: 700 1.5rem/1.1 var(--display); color: var(--pen); }
.pdetail-desc { white-space: pre-line; }
.pframe-lg { width: 100%; }
.gal { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--tile); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; max-height: 56dvh; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; display: block; }
.gal-zoom { position: absolute; right: 10px; bottom: 26px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(17 21 28 / .72); color: #fff; cursor: pointer; backdrop-filter: blur(4px); }
.gal-zoom svg { width: 20px; height: 20px; }
.gal-dots { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; gap: 4px; pointer-events: none; }
.gal-dots span { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .5); box-shadow: 0 0 0 .5px rgb(17 21 28 / .2); transition: background .2s ease; }
.gal-dots span.on { background: #fff; }
dialog.zoom { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0d12; color: #fff; overflow: hidden; }
dialog.zoom::backdrop { background: #0b0d12; }
.zoom-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.zoom-img { max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; transform-origin: center; will-change: transform; }
.zoom-img.anim { transition: transform .22s ease; }
.zoom-close, .zoom-nav, .zoom-tools button { border: 0; background: rgb(255 255 255 / .16); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.zoom-close { position: absolute; right: max(14px, env(safe-area-inset-right)); top: max(14px, env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%; font-size: 1.125rem; }
.zoom-count { position: absolute; left: max(16px, env(safe-area-inset-left)); top: max(24px, calc(env(safe-area-inset-top) + 10px)); font-weight: 650; font-variant-numeric: tabular-nums; }
.zoom-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 64px; border-radius: 12px; font-size: 2rem; line-height: 1; }
.zoom-nav.prev { left: 10px; } .zoom-nav.next { right: 10px; }
.zoom-tools { position: absolute; left: 50%; translate: -50% 0; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.zoom-tools button { width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; line-height: 1; }
@media (hover: none) { .zoom-tools { display: none; } .zoom-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .zoom-img.anim, .palt, .gal-dots span { transition: none; } }
.gal-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.gal-thumb, .gal-add { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--pen-soft); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-add { display: grid; place-content: center; justify-items: center; gap: 4px; border: 2px dashed var(--line-strong); background: none; color: var(--pen); font-weight: 650; font-size: .8125rem; cursor: pointer; padding: 4px; text-align: center; }
.gal-add svg { width: 26px; height: 26px; }
.gal-cover { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .6875rem; font-weight: 700; }
.gal-make { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 4px 2px; border: 0; border-radius: 8px; background: rgb(255 255 255 / .92); color: #11151C; font-size: .6875rem; font-weight: 700; cursor: pointer; }
.gal-del { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgb(17 21 28 / .75); color: #fff; font-size: .75rem; cursor: pointer; }

/* ---------- vitrine v2: bloco cinza, preco embaixo, favoritos, barra fixa de compra ---------- */
.btn.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.dark:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
.pcat { color: var(--ink-3); font-size: .8125rem; line-height: 1.2; }
.pname + .pprice-line, .pprice-line { font: 700 1.0625rem/1.2 var(--display); }
.pempty { grid-column: 1 / -1; padding: 24px 0; text-align: center; }
.fav { position: absolute; right: 8px; top: 8px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .86); color: #11151C; cursor: pointer; backdrop-filter: blur(4px); transition: transform .15s ease; }
.fav:active { transform: scale(.9); }
.fav svg { width: 20px; height: 20px; }
.fav.on { color: var(--brand); }
.fav.on svg { fill: currentColor; }
.gal .fav { right: 12px; top: 12px; }
.pdetail-name { font-size: 1.5rem; }
.buybar { position: sticky; bottom: 0; z-index: 2; margin: 0 -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--card); border-top: 1px solid var(--line); }
.bb-price { font: 700 1.625rem/1 var(--display); }
.bb-note { font-size: .875rem; }
.buybar .buy { flex: 1; display: flex; justify-content: flex-end; }
.btn.pbuy.big { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; flex: 1; }
.buybar .stepper { gap: 16px; }
.cart-go { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 54px; padding: 0 20px; border-radius: 999px; text-align: left; box-shadow: var(--shadow-lift); }
.cart-n { min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 13px; background: var(--brand); color: var(--on-brand); font-size: .8125rem; font-weight: 700; }
.cart-label { font-weight: 650; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fav { background: rgb(21 26 35 / .86); color: #EEF0F5; } }
:root[data-theme="dark"] .fav { background: rgb(21 26 35 / .86); color: #EEF0F5; }
.pcard .buy > .btn { width: 100%; }

/* ---------- pagina do cliente v3: capa, abas, cartoes de servico, grade de horarios, barra fixa ---------- */
.booking-brand { margin: 0; font-weight: 650; font-size: .875rem; color: var(--ink-3); }
.back { justify-self: start; gap: 4px; padding-left: 8px; }
.back svg { width: 18px; height: 18px; }
.hero { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 28px; background: #11151C; }
.hero-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.has-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(17 21 28 / .4), transparent 40%); }
.hero-letter { position: absolute; right: -22px; bottom: -76px; z-index: -1; font: 800 15rem/1 var(--display); color: #800080; pointer-events: none; user-select: none; }
.hero-link { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: rgb(17 21 28 / .5); color: #fff; font-weight: 650; font-size: .875rem; cursor: pointer; backdrop-filter: blur(8px); }
.hero-link svg { width: 18px; height: 18px; }
.identity { display: flex; align-items: flex-start; gap: 14px; margin: -44px 0 0; padding: 0 8px; position: relative; }
.id-avatar { flex: none; width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; border: 4px solid var(--paper); background: #11151C; color: #fff; font: 800 2.25rem var(--display); }
.id-avatar img, .mini-avatar img, .pro-avatar img, .svc-photo img, .item .avatar img, .pf-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.id-text { min-width: 0; padding-top: 52px; display: grid; gap: 2px; }
.id-name { margin: 0; font: 700 1.625rem/1.1 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.id-sub { margin: 0; color: var(--ink-3); font-size: .9375rem; }
.booking-brand { display: flex; align-items: center; gap: 8px; }
.mini-avatar { flex: none; width: 28px; height: 28px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #11151C; color: #fff; font: 700 .8125rem var(--display); }
.tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 26px; margin: 0 -16px; padding: 0 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.tab { padding: 14px 2px 12px; border: 0; background: none; font: 650 1rem var(--body); color: var(--ink-3); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress span { height: 4px; border-radius: 2px; background: var(--line-strong); }
.progress span.on { background: var(--ink); }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc { width: 100%; min-height: 74px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.svc-main { display: grid; gap: 4px; min-width: 0; }
.svc-name { font-size: 1.0625rem; font-weight: 650; }
.svc-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-3); }
.svc-meta svg { width: 16px; height: 16px; }
.svc-price { font: 700 1.125rem var(--display); }
.svc[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.svc[aria-pressed="true"] .svc-meta { color: inherit; opacity: .75; }
.pros { display: flex; gap: 14px; padding: 2px 0; }
.pro { flex: none; width: 76px; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pro-avatar { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; border: 2px solid transparent; background: var(--tile); font: 700 1.375rem var(--display); transition: background .15s, border-color .15s; }
.pro-name { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; font-weight: 600; }
.pro[aria-pressed="true"] .pro-avatar { background: var(--ink); color: var(--paper); border-color: var(--brand); }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 16px; width: 100%; max-width: 520px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgb(17 21 28 / .35); }
.booking-main:has(.dock) { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.dock-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dock-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--ink-3); }
.dock-val { font: 700 1.25rem/1.1 var(--display); }
.dock-go { flex: none; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 1.0625rem; }
.daymonth { margin: 6px 0 0; font-weight: 650; color: var(--ink-2); }
.chip.day { min-width: 60px; min-height: 86px; padding: 10px 8px; gap: 8px; border-radius: 30px; align-content: center; }
.chip.day .dow { font-size: .8125rem; }
.chip.day .dom { font: 700 1.375rem var(--display); }
.slot-group { margin-top: 16px; }
.slot-title { margin: 0 0 8px; font-size: .875rem; font-weight: 650; color: var(--ink-3); }
.slotgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot { min-height: 46px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: none; color: var(--ink-2); font: 600 1rem var(--body); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (prefers-reduced-motion: reduce) { .svc, .slot, .pro-avatar { transition: none; } }

/* fotos: servicos, profissionais e campo de foto do dono */
.svc.has-photo { grid-template-columns: 64px 1fr auto; }
.svc-photo { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: var(--tile); color: var(--ink-3); font: 700 1.5rem var(--display); }
.svc[aria-pressed="true"] .svc-photo { background: rgb(255 255 255 / .14); color: inherit; }
.pro-avatar { overflow: hidden; }
.item .avatar { overflow: hidden; }
.pf { display: grid; gap: 8px; }
.pf-row { display: flex; align-items: center; gap: 14px; }
.pf-side { display: grid; gap: 6px; min-width: 0; }
.pf-side p { margin: 0; }
.pf-actions { display: flex; gap: 8px; }
.pf-box { flex: none; display: grid; place-items: center; overflow: hidden; background: var(--tile); color: var(--ink-3); }
.pf-box.pf-round { width: 84px; height: 84px; border-radius: 50%; }
.pf-box.pf-wide { width: 132px; aspect-ratio: 16 / 10; border-radius: var(--r-md); }
.pf-box svg { width: 28px; height: 28px; }
.pf-initial { font: 700 1.75rem var(--display); }
.pf { margin-bottom: 8px; }
.pf .label { font-weight: 650; font-size: .9375rem; }

/* trabalhos: grade de fotos estilo perfil */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.work-grid li { min-width: 0; }
.work { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--tile); cursor: zoom-in; }
.work img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
@media (hover: hover) { .work:hover img { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .work img { transition: none; } }
.booking-main:has(.work-grid) { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

/* ingresso da reserva, confirmacao e minhas reservas */
.ticket { display: grid; grid-template-columns: 68px 1fr; gap: 16px; padding: 16px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--card); }
.ticket.is-off { opacity: .65; }
.dateblock { align-self: start; display: grid; justify-items: center; gap: 0; padding: 8px 0 10px; border-radius: 18px; background: #11151C; color: #fff; }
.db-dow, .db-mon { font-size: .75rem; font-weight: 650; opacity: .8; }
.db-day { font: 800 1.75rem/1.1 var(--display); }
.tk-body { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.tk-salon { font-size: .8125rem; color: var(--ink-3); }
.tk-service { font-size: 1.125rem; }
.tk-when { font-size: .9375rem; color: var(--ink-2); }
.tk-pro { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .9375rem; }
.tk-pro .mini-avatar { width: 24px; height: 24px; font-size: .6875rem; }
.status { margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 650; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.tk-body .btn { margin-top: 8px; }
.done { display: grid; justify-items: center; gap: 6px; padding: 12px 0 8px; text-align: center; }
.done p { margin: 0; }
.done-check { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--on-brand); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.done-check svg { width: 36px; height: 36px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .done-check { animation: none; } }
.booking-reslist { gap: 12px; }

/* ---------- Pix do pedido (cliente) e conta de recebimento (dono) ---------- */
.pix { display: grid; justify-items: center; gap: 14px; padding: 22px 18px; text-align: center; }
.pix > * { margin: 0; }
.pix .btn.block { width: 100%; }
.pix-qr { width: min(240px, 68vw); height: auto; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); }
.pix-copy { max-width: 100%; max-height: 4.4em; overflow: hidden; overflow-wrap: anywhere; font: 500 .75rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-3); }
.pix-wait { display: inline-flex; align-items: center; gap: 8px; }
.pix-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.row-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.stack > .label { font-weight: 650; font-size: .9375rem; }

/* ---------- inicio do dono ---------- */
@media (min-width: 900px) { .main.main-wide { max-width: 1040px; padding-top: 32px; } }
.dash-slot { margin-bottom: 16px; }
.dash-sk { height: 300px; border-radius: 24px; }
.dash {
  position: relative; overflow: hidden; display: grid; gap: 22px; padding: 22px 20px 20px; border-radius: 24px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgb(128 0 128 / .42), transparent 55%), linear-gradient(160deg, #1a1f2b, #11151C 70%);
}
.dash > * { position: relative; }
.dash-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-avatar { flex: none; width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #fff; color: #11151C; font: 800 1.25rem var(--display); box-shadow: 0 0 0 3px rgb(255 255 255 / .18); }
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-hello { min-width: 0; flex: 1; }
.dash-hello p { margin: 0; font-size: .875rem; color: rgb(255 255 255 / .7); }
.dash-hello h1 { margin: 0; font: 700 1.375rem/1.15 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.dash-date { margin: 0; flex-basis: 100%; font-size: .875rem; color: rgb(255 255 255 / .7); }
.dash-now { display: grid; gap: 4px; }
.dash-tag { margin: 0; font-size: .9375rem; font-weight: 650; color: #E7A3EC; }
.dash-clock { font: 800 clamp(3.75rem, 17vw, 5.75rem)/.95 var(--display); letter-spacing: -.045em; }
.dash-free { font: 800 clamp(2rem, 9vw, 3rem)/1.05 var(--display); letter-spacing: -.03em; margin: 2px 0; }
.dash-who { margin: 6px 0 0; font: 700 1.375rem/1.2 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.dash-what { margin: 0; color: rgb(255 255 255 / .78); }
.dash-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.dash-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--brand, #800080); color: var(--on-brand); font-weight: 650; text-decoration: none; }
.dash-btn svg { width: 18px; height: 18px; }
.dash-btn.ghost { color: #fff; background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.dash-btn:focus-visible { outline-color: #fff; }
.dash-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .16); }
.dash-stat { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.dash-stat dd { margin: 0; font: 700 1.25rem/1.1 var(--display); overflow-wrap: anywhere; }
.dash-stat dt { font-size: .8125rem; color: rgb(255 255 255 / .7); }
@media (min-width: 900px) {
  .dash { grid-template-columns: 1.3fr 1fr; grid-template-areas: "top top" "now stats"; align-items: end; gap: 28px 40px; padding: 30px 34px 28px; }
  .dash-top { grid-area: top; flex-wrap: nowrap; }
  .dash-date { flex: none; flex-basis: auto; text-align: right; }
  .dash-now { grid-area: now; }
  .dash-stats { grid-area: stats; grid-template-columns: 1fr; border-top: 0; border-left: 1px solid rgb(255 255 255 / .16); padding: 0 0 0 32px; gap: 18px; }
  .dash-stat dd { font-size: 1.75rem; }
}
.dash-body { display: grid; gap: 16px; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-a { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 14px 6px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 650 .8125rem/1.2 var(--body); text-align: center; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
button.quick-a { font-family: var(--body); }
.quick-ico { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--pen-soft, rgb(128 0 128 / .1)); color: var(--pen); }
.quick-ico svg { width: 22px; height: 22px; }
.quick-n { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--pen); color: #fff; font-size: .75rem; font-weight: 700; box-shadow: 0 0 0 2px var(--card); }
@media (hover: hover) { .quick-a:hover { transform: translateY(-2px); border-color: var(--line-strong); } }
@media (prefers-reduced-motion: reduce) { .quick-a { transition: none; } }
.dash-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .quick-a { grid-template-columns: auto; font-size: .875rem; } }
.tl, .share { padding: 18px; display: grid; gap: 12px; }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tl-head .t-h3 { margin: 0; }
.tl-empty { margin: 0; padding: 8px 0 4px; }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-item.past { opacity: .55; }
.tl-time { font: 700 1.0625rem/1.4 var(--display); }
.tl-body { display: grid; gap: 2px; justify-items: start; color: inherit; text-decoration: none; min-width: 0; }
.tl-name { font-weight: 650; overflow-wrap: anywhere; }
.tl-body .badge { margin-top: 4px; }
.tl-more { margin: 0; }
.share p { margin: 0; }
.share .actions { margin-top: 2px; }

.setup .steps .txt { text-align: left; }
.setup-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 12px; }
.setup-bar span { height: 6px; border-radius: 3px; background: var(--line-strong); }
.setup-bar span.on { background: var(--pen); }
.tl, .share { min-width: 0; grid-template-columns: minmax(0, 1fr); }

/* ---------- promocoes ---------- */
.promos { display: grid; gap: 12px; margin-bottom: 18px; }
.promos.many { grid-auto-flow: column; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
.promos.many::-webkit-scrollbar { display: none; }
.promo { position: relative; scroll-snap-align: start; display: grid; gap: 6px; padding: 18px 18px 16px; border-radius: 20px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgb(255 255 255 / .22), transparent 50%), linear-gradient(135deg, #800080, #5E0A5F); }
.promo-badge { justify-self: start; padding: 3px 11px; border-radius: 999px; background: #fff; color: #5E0A5F; font: 800 .8125rem/1.4 var(--display); }
.promo-title { margin: 2px 0 0; font: 800 1.375rem/1.15 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.promo-text { margin: 0; color: rgb(255 255 255 / .9); }
.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.promo-end { font-size: .875rem; color: rgb(255 255 255 / .85); }
.promo-go { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: #11151C; font-weight: 700; }
.promo-go:focus-visible { outline-color: #fff; }
.promo-admin { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pa { padding: 14px 16px; display: grid; gap: 6px; }
.pa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pa-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tile-btn { text-align: left; width: 100%; font: inherit; color: inherit; cursor: pointer; }

.booking-foot { text-align: center; padding: 0 16px calc(120px + env(safe-area-inset-bottom)); font-size: .8125rem; }
.booking-foot a { color: var(--ink-3); }

/* login social */
.social { display: grid; gap: 12px; }
.social .or { margin: 0; display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: .875rem; }
.social .or::before, .social .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.social-btn { width: 100%; justify-content: center; gap: 10px; }
.social-btn .g-mark { width: 18px; height: 18px; flex: none; }

/* ---------- polimento visual ---------- */
.setup .steps { gap: 12px; }
.setup .steps li { padding: 2px 0; }
.setup .steps .txt { font-weight: 550; line-height: 1.3; }
.setup .steps .btn { min-width: 116px; justify-content: center; }
.setup .steps .btn:disabled { opacity: .45; }
.page-head .actions.wide { width: 100%; margin-left: 0; }
.page-head .actions.wide .btn { flex: 1; justify-content: center; }
@media (max-width: 899px) { .page-head .actions.desk-only { display: none; } }
@media (min-width: 900px) { .page-head .actions.wide { width: auto; margin-left: auto; } .page-head .actions.wide .btn { flex: none; } }
.charge-item .meta { grid-row: 2 / span 2; grid-column: 2; align-self: center; }
.charge-item { padding-block: 12px; row-gap: 3px; }

/* ---------- produto como numa loja ---------- */
.phero { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--tile); }
.phero-img { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.phero-img img { display: block; width: 100%; aspect-ratio: 1 / 1; max-height: 62dvh; object-fit: cover; }
.phero .pframe-lg { aspect-ratio: 1 / 1; border-radius: 0; }
.phero-close { position: absolute; left: 12px; top: 12px; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .86); color: #11151C; font-size: 1rem; cursor: pointer; backdrop-filter: blur(4px); }
.phero .fav { right: 12px; top: 12px; }
.phero-off, .poff { position: absolute; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 .875rem/1.2 var(--display); }
.phero-off { left: 12px; bottom: 12px; }
.poff { left: 8px; top: 8px; padding: 3px 8px; font-size: .75rem; }
.pthumbs { display: flex; gap: 8px; padding: 2px; }
.pthumb { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--tile); cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.pthumb[aria-pressed="true"] { border-color: var(--brand); opacity: 1; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-prices { display: grid; gap: 4px; line-height: 1; }
.bb-now { font: 700 1.625rem/1 var(--display); }
.pwas { color: var(--ink-3); font-family: var(--body, inherit); font-weight: 500; font-size: .875rem; text-decoration: line-through; }
.pdetail-add .buy { display: flex; }
.pdetail-add .pbuy { width: 100%; }
.buybar .bb-buy { flex: 1; min-height: 52px; font-size: 1.0625rem; }

/* ---------- inicio: capa no topo e mini dashboard ---------- */
.dash-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.dash.has-cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(13 16 23 / .55) 0%, rgb(13 16 23 / .78) 55%, rgb(13 16 23 / .92) 100%); }
.dash > .dash-cover-btn { position: absolute; z-index: 2; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: rgb(13 16 23 / .55); color: #fff; font: 600 .8125rem var(--body); cursor: pointer; backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.dash.has-cover > *:not(.dash-cover) { z-index: 2; }
.dash.has-cover > .dash-cover-btn { z-index: 3; }
.dash-cover-btn svg { width: 16px; height: 16px; }
.dash-cover-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dash-top { padding-right: 0; }
@media (max-width: 899px) { .dash > .dash-top { padding-top: 34px; } }
@media (min-width: 900px) { .dash > .dash-date { margin-right: 0; } .dash-top .dash-date { margin-right: 138px; } }

.ov { display: grid; gap: 12px; }
.ov-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ov-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) { .ov-tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } .ov-tiles > :last-child:nth-child(odd) { grid-column: auto; } }
.ov-tile { display: grid; gap: 2px; padding: 14px 16px; color: inherit; text-decoration: none; min-width: 0; align-content: start; }
.ov-k { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.ov-v { font: 800 1.375rem/1.15 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ov-note { font-size: .8125rem; }
.ov-tile.late .ov-v { color: var(--bad); }
@media (hover: hover) { .ov-tile { transition: transform .15s ease, border-color .15s ease; } .ov-tile:hover { transform: translateY(-2px); border-color: var(--line-strong); } }
@media (prefers-reduced-motion: reduce) { .ov-tile { transition: none; } }
.ov-chart { padding: 16px 18px 14px; display: grid; gap: 14px; }
.ov-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; }
.ov-day { display: grid; grid-template-rows: auto 84px auto; justify-items: center; gap: 6px; color: inherit; text-decoration: none; padding: 4px 0; border-radius: 12px; }
.ov-n { font: 700 .9375rem/1 var(--display); }
.ov-day.empty .ov-n { color: var(--ink-3); font-weight: 500; }
.ov-track { width: 100%; max-width: 34px; height: 84px; display: flex; align-items: flex-end; border-radius: 10px; background: var(--line); overflow: hidden; }
.ov-bar { display: block; width: 100%; height: calc(var(--h, 0) * 1%); min-height: 3px; border-radius: 10px; background: var(--brand); opacity: .55; }
.ov-day.today .ov-bar { opacity: 1; }
.ov-day.empty .ov-bar { min-height: 0; }
.ov-lbl { font-size: .75rem; color: var(--ink-2); text-transform: capitalize; }
.ov-day.today .ov-lbl { color: var(--pen, var(--brand)); font-weight: 700; }
.ov-day:focus-visible { outline: 2px solid var(--pen, var(--brand)); outline-offset: 2px; }

/* ---------- cobrancas em formato de extrato ---------- */
.st { display: grid; gap: 18px; }
.st-day { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 8px; }
.st-day h2 { margin: 0; font: 650 .9375rem var(--body); color: var(--ink-2); }
.st-day span { font-size: .875rem; font-weight: 650; color: var(--ok); }
.st-item { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; padding-block: 14px; }
.st-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--line); color: var(--ink-2); }
.st-ico svg { width: 22px; height: 22px; }
.st-main { display: grid; gap: 2px; min-width: 0; }
.st-val { font: 700 1.0625rem var(--display); white-space: nowrap; }
.st-item.paid .st-ico { background: var(--ok-soft); color: var(--ok); }
.st-item.paid .st-val { color: var(--ok); }
.st-item.open .st-ico { background: var(--pen-soft); color: var(--pen); }
.st-item.late .st-ico { background: var(--bad-soft); color: var(--bad); }
.st-item.late .st-val, .st-item.late .what { color: var(--bad); }
.st-item.off .st-val { color: var(--ink-3); text-decoration: line-through; }
.st-item.off .st-ico { opacity: .7; }
.list > li.has-nudge > .st-item { padding-bottom: 10px; }
.list > li.has-nudge > .nudge { margin-left: 74px; width: auto; margin-right: 16px; }

/* ---------- clientes ---------- */
.cu-count { margin: -4px 4px 12px; font-size: .875rem; }
.cu { display: grid; gap: 14px; }
.cu-letter { margin: 0 0 8px 4px; font: 700 .8125rem var(--display); color: var(--pen); letter-spacing: .04em; }
.cu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; padding-right: 12px; }
.cu-row.off { opacity: .6; }
.cu-main { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 8px 12px 16px; color: inherit; text-decoration: none; min-width: 0; }
@media (hover: hover) { .cu-main:hover .who { color: var(--pen); } }
.pav { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font: 700 1rem var(--display); --t: #A63DBE; background: color-mix(in srgb, var(--t) 16%, transparent); color: color-mix(in srgb, var(--t) 74%, #000); }
.pav[data-tone="1"] { --t: #D6336C; }
.pav[data-tone="2"] { --t: #2F6FDB; }
.pav[data-tone="3"] { --t: #0F9A6E; }
.pav[data-tone="4"] { --t: #C86B0B; }
.pav[data-tone="5"] { --t: #7A4FD6; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .pav { background: color-mix(in srgb, var(--t) 28%, transparent); color: color-mix(in srgb, var(--t) 55%, #fff); } }
html[data-theme="dark"] .pav { background: color-mix(in srgb, var(--t) 28%, transparent); color: color-mix(in srgb, var(--t) 55%, #fff); }
.cu-text { display: grid; gap: 2px; min-width: 0; }
.cu-text .who { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-text .what { color: var(--ink-2); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-tag { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--line); color: var(--ink-2); font-size: .75rem; font-weight: 600; }
.cu-wa { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ok); background: var(--ok-soft); }
.cu-wa svg { width: 22px; height: 22px; }
.cu-wa:focus-visible, .cu-main:focus-visible { outline: 2px solid var(--pen); outline-offset: -2px; border-radius: 12px; }

/* Avatar de iniciais usado nas listas (agenda, pedidos, clientes) */
.item.has-avatar > .pav { grid-row: span 2; width: 44px; height: 44px; }
.st-item.open .st-ico { background: var(--pen-soft); color: var(--pen); }
.st-item.warn .st-ico { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }

/* Botao "Cobrar no WhatsApp": a classe .nudge tambem e usada como bloco em dono.css; aqui vale o layout de botao */
.btn.nudge { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-items: normal; margin-block: 0; text-align: center; }
.btn.nudge svg { flex: none; width: 18px; height: 18px; color: #1FA855; }
.list > li.has-nudge > .btn.nudge { margin: 0 16px 0 74px; width: auto; }

/* Telas estreitas (320px): a linha "Aparencia" quebra em duas e o seletor cabe */
.account-row:has(> .seg) { flex-wrap: wrap; gap: 8px 12px; }
@media (max-width: 380px) { .seg button { padding: 0 10px; font-size: .8125rem; } }

/* 320px: botoes do topo de Cobrancas quebram de linha, rotulos das metricas alinham no topo, linhas de Conta nao empilham */
@media (max-width: 380px) {
  .page-head { flex-wrap: wrap; }
  .page-head .actions.wide { flex-wrap: wrap; }
  .dash-stat { justify-content: flex-end; }
  .dash-stat dt { min-height: 2.4em; display: flex; align-items: flex-end; line-height: 1.2; }
  .account-row > span:last-child:not(.t-muted) { min-width: 0; overflow-wrap: anywhere; text-align: right; }
}
@media (max-width: 380px) { .account-row:has(> .ac-name) { align-items: flex-start; } }

/* Conta: linhas de navegacao com icone e seta, a linha toda e clicavel */
.account-row.nav-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; column-gap: 14px; width: 100%; text-align: left; color: inherit; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; transition: background-color .12s; }
.account-row.nav-row + .account-row { border-top: 1px solid var(--line); }
.nav-row:hover { background: color-mix(in srgb, var(--pen) 5%, transparent); }
.nav-row:active { background: color-mix(in srgb, var(--pen) 9%, transparent); }
.nav-row:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.nav-row:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.nav-row:only-child { border-radius: var(--r-lg); }
.nav-row:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.nav-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--pen-soft); color: var(--pen); }
.nav-ico svg { width: 20px; height: 20px; }
.nav-go { color: var(--ink-3); display: grid; place-items: center; }
.nav-go svg { width: 18px; height: 18px; }
@media (max-width: 380px) { .account-row.nav-row { grid-template-columns: 36px minmax(0, 1fr) 16px; column-gap: 12px; } .nav-ico { width: 36px; height: 36px; } }

/* Vitrine e Inicio: cartoes e passos com icone e seta */
.tile.nav-tile { grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 0 14px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.nav-tile .stack { display: grid; gap: 2px; min-width: 0; }
.nav-tile:hover { background: color-mix(in srgb, var(--pen) 4%, var(--card)); }
.setup .steps .step-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 12px; width: 100%; padding: 4px; margin: -4px; box-sizing: content-box; border: 0; border-radius: 12px; background: none; font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.setup .steps .step-row:hover { background: color-mix(in srgb, var(--pen) 5%, transparent); }
.setup .steps .step-row .nav-ico { width: 36px; height: 36px; }
.setup .steps .step-row.is-off { opacity: .5; cursor: not-allowed; }
.setup .steps .step-row.is-off:hover { background: none; }
@media (max-width: 380px) { .tile.nav-tile { grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 0 12px; } .nav-tile .nav-ico { width: 36px; height: 36px; } }

/* Variacoes do produto (formulario do dono) */
.vr-box { display: grid; gap: 12px; margin-top: 10px; }
.vr { display: grid; gap: 12px; }
.vr-groups, .vr-rows { display: grid; gap: 12px; }
.vr-group { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.vr-group-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.vr-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.vr-color { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; }
.vr-color input { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: none; }
.vr-row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.vr-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vr-cells > :last-child { grid-column: 1 / -1; }
.vr-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vr-add > p { flex-basis: 100%; margin: 0; }
