/* ============================================================
   Tema temvá! — identidade "Sua agenda sob controle.":
   azul principal #3B82F6, azul-escuro #0F172A, cinza #94A3B8 e fundo #F8FAFC.
   Layout de painel SaaS claro (referência: SocialHub): barra lateral branca com marca e menu,
   coluna das unidades, cabeçalho com busca e botão de criar, horários em blocos de cor suave.
   Poppins nos títulos. */
:root {
  --rail: #0F172A;
  --rail-2: #1E293B;
  --brand: #3B82F6;
  --band-1: #3B82F6;
  --band-2: #60A5FA;
  --panel: #ffffff;
  --bg: #F6F8FC;
  --surface: #ffffff;
  --surface-2: #F1F5F9;
  --border: #E2E8F0;
  --grid-line: #E2E8F0;
  --grid-half: #F1F5F9;
  --text: #1E293B;
  --title: #0F172A;
  --muted: #64748B;
  --faint: #94A3B8;
  --primary: #2563EB;
  --primary-ink: #ffffff;
  --primary-soft: #EAF2FE;
  --ok: #059669;
  --warn: #c2410c;
  --danger: #E11D48;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 30px rgba(15, 23, 42, .10);
  --hh: 56px;
  /* áreas seguras do iPhone (entalhe/Dynamic Island e barra inferior); o simulador as substitui */
  --sa-top: env(safe-area-inset-top, 0px);
  --sa-bottom: env(safe-area-inset-bottom, 0px);
  --sa-left: env(safe-area-inset-left, 0px);
  --sa-right: env(safe-area-inset-right, 0px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;             /* textos, horários, menus e campos */
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;   /* títulos, nomes e telas de login */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --rail: #020617;
    --rail-2: #0B1222;
    --band-1: #1D4ED8;
    --band-2: #1E40AF;
    --panel: #0F172A;
    --bg: #0B1120;
    --surface: #111A2E;
    --surface-2: #1E293B;
    --border: #24324A;
    --grid-line: #1E293B;
    --grid-half: #152036;
    --text: #E2E8F0;
    --title: #F8FAFC;
    --muted: #94A3B8;
    --faint: #475569;
    --primary: #60A5FA;
    --primary-soft: #172554;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 14px/1.45 var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--primary); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; color: var(--title); }
/* Poppins nos títulos, nos nomes dos clientes e no login; Inter no resto (horários, detalhes, menus, campos) */
h1, h2, h3, h4, .wordmark, .ev-name, .card-main b, .m-prof-txt b, .auth { font-family: var(--font-display); }
.auth input, .auth select, .auth textarea { font-family: var(--font); }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.ic { flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.pre { white-space: pre-wrap; margin: 0; }
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.grow { flex: 1; }

.boot { height: 100dvh; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.wordmark { font-weight: 600; font-size: 21px; letter-spacing: -.04em; color: var(--title); }
.logo { display: inline-flex; align-items: center; gap: 7px; }
.logo img { width: 26px; height: auto; }
.wordmark span { color: var(--primary); }

/* ============================================================
   Estrutura
   ============================================================ */
.shell { display: flex; flex-direction: column; height: 100dvh; }
.main { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
#view { flex: 1; min-height: 0; overflow: auto; background: var(--surface); }
#view.view-agenda { display: flex; flex-direction: column; overflow: hidden; }
#view.view-patients, #view.view-team, #view.view-settings, #view.view-setup { background: var(--bg); }

.rail, .panel, .topbar, .tabs { display: none; }

/* Cabeçalho do celular */
.m-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + var(--sa-top)) 14px 10px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  color: var(--title);
}
.m-prof { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--title); padding: 0; min-width: 0; text-align: left; }
.m-prof-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.m-prof-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-prof-txt small { font-size: 11.5px; color: var(--muted); }
.m-header .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border); }

.tabbar {
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: var(--sa-bottom);
}
.tabbar .nav-btn {
  flex: 1; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px; font-size: 10.5px; font-weight: 600; color: var(--muted);
}
.tabbar .nav-btn.active { color: var(--primary); }
.tabbar .nav-btn .ic { padding: 3px 14px; border-radius: 99px; box-sizing: content-box; transition: background .15s; }
.tabbar .nav-btn.active .ic { background: color-mix(in srgb, var(--primary) 13%, transparent); }

.fab {
  position: fixed; right: 18px; bottom: calc(74px + var(--sa-bottom));
  width: 54px; height: 54px; border-radius: 50%; border: 0;
  background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37, 99, 235, .40);
  z-index: 20; transition: transform .12s;
}
.fab:hover { transform: scale(1.05); }
.fab:active { transform: scale(.95); }

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 248px 68px minmax(0, 1fr); grid-template-areas: "side rail main"; background: var(--bg); }
  .panel { grid-area: side; }
  .rail { grid-area: rail; }
  .shell > .main { grid-area: main; }
  .m-header, .tabbar, .tabs, .fab { display: none !important; }

  /* Barra lateral: marca, menu e filtros */
  .panel {
    display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0;
    padding: 18px 16px 20px; background: var(--panel); border-right: 1px solid var(--border);
  }
  .side-brand { display: flex; align-items: center; gap: 9px; padding: 2px 6px 8px; }
  .side-brand .wordmark { font-size: 21px; }
  .side-nav { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .side-link {
    display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left;
    padding: 10px 12px; border-radius: 10px; font: 500 14px var(--font); color: var(--text); transition: background .12s, color .12s;
  }
  .side-link .ic { color: var(--muted); }
  .side-link:hover { background: var(--surface-2); }
  .side-link.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 30%, transparent); }
  .side-link.active .ic { color: #fff; }
  .panel-empty { padding: 20px 4px; }
  .prof-name {
    display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0;
    font: 600 15px var(--font-display); color: var(--title); text-align: left; max-width: 100%;
  }
  .prof-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prof-name .ic { color: var(--muted); }
  .panel-head { padding: 0 4px; }
  .panel-head p { margin: 2px 0 0; }
  .panel-title {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
    display: flex; justify-content: space-between; align-items: baseline; margin: 6px 4px 0;
  }
  .panel-title small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }

  .checklist { display: grid; gap: 2px; }
  .check {
    display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
    border-radius: 8px; padding: 7px 8px; font-size: 13px; font-weight: 500;
  }
  .check:hover { background: var(--surface-2); }
  .check input { position: absolute; opacity: 0; pointer-events: none; }
  .check i {
    width: 18px; height: 18px; border-radius: 5px; flex: none; display: grid; place-items: center;
    background: var(--c); color: #fff; border: 2px solid var(--c);
  }
  .check input:not(:checked) + i { background: transparent; color: transparent; border-color: var(--faint); }
  .check input:not(:checked) ~ span { color: var(--muted); }
  .check input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }
  .check span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .check small { color: var(--muted); font-weight: 600; font-size: 11.5px; background: var(--surface-2); padding: 1px 7px; border-radius: 99px; }
  .panel .link-btn { padding: 4px 8px; }

  .today-list { display: grid; gap: 2px; }
  .today-item {
    display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left;
    padding: 7px 8px; border-radius: 8px; font-size: 12.5px;
  }
  .today-item:hover { background: var(--surface-2); }
  .today-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
  .today-item b { font-variant-numeric: tabular-nums; }
  .today-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Mini calendário */
  .mini { border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
  .mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
  .mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 1px; }
  .mini-grid small { font-size: 10px; color: var(--muted); font-weight: 600; padding: 2px 0; }
  .mini-grid button {
    border: 0; background: none; height: 27px; border-radius: 50%; font-size: 11.5px; font-weight: 500;
    position: relative; font-variant-numeric: tabular-nums;
  }
  .mini-grid button:hover { background: var(--surface-2); }
  .mini-grid button.out { color: var(--faint); }
  .mini-grid button.today { color: var(--primary); font-weight: 700; }
  .mini-grid button.sel { background: var(--primary); color: #fff; font-weight: 700; }
  .mini-grid button.busy::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: currentColor; opacity: .6; }

  /* Coluna das unidades (perfis), como a coluna de contas do layout de referência */
  .rail {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 18px 0 16px; background: var(--panel); border-right: 1px solid var(--border); position: relative; z-index: 2;
  }
  .rail-logo { display: none; }
  .rail-profiles { display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: center; }
  .rail-prof { position: relative; width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; padding: 0; border-radius: 12px; }
  .rail-prof span {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--c); color: #fff; font-weight: 700; font-size: 13px; transition: transform .12s;
  }
  .rail-prof:hover span { transform: scale(1.06); }
  .rail-prof.active span { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--c); }
  .rail-add {
    width: 40px; height: 40px; border-radius: 12px; border: 1.5px dashed var(--faint);
    background: none; color: var(--muted); display: grid; place-items: center;
  }
  .rail-add:hover { border-color: var(--primary); color: var(--primary); }
  .rail-foot { margin-top: auto; }
  .sync-status.dot-only span { display: none; }
  .sync-status.dot-only i { width: 10px; height: 10px; box-shadow: 0 0 0 3px var(--surface-2); }

  /* Cabeçalho: busca, sincronização, botão de criar e conta */
  .main { background: var(--bg); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 28px; background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .top-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; }
  .top-search input { border: 0; background: none; padding: 9px 0; font-size: 13.5px; outline: none; width: 100%; }
  .new-btn { padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 28%, transparent); }
  #view { background: var(--bg); }
  #view.view-agenda { margin: 18px 24px 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
}
@media (max-width: 1023px) { .only-wide { display: none !important; } }
@media (min-width: 1024px) { .only-narrow { display: none !important; } }

/* Status de sincronização */
.sync-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.sync-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.sync-status.syncing i { background: #7dd3fc; animation: pulse 1s infinite alternate; }
.sync-status.offline i { background: #a3a3a3; }
.sync-status.error i { background: var(--danger); }
.sync-status.demo i { background: #fbbf24; }
@keyframes pulse { to { opacity: .3; } }

/* ============================================================
   Botões e campos
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface);
  padding: 9px 14px; border-radius: var(--radius); font-weight: 600; font-size: 13px;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sm { padding: 6px 10px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); }
.btn.danger-solid { background: var(--danger); color: #fff; border-color: transparent; }
.link-btn { border: 0; background: none; color: var(--primary); font-weight: 600; font-size: 12.5px; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }

.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.sm { width: 30px; height: 30px; color: var(--muted); }
.icon-btn.xs { width: 24px; height: 24px; color: var(--muted); display: inline-grid; }
.icon-btn.danger:hover { color: var(--danger); }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field > span { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
input, select, textarea {
  font: inherit; font-size: 16px; /* evita zoom no iPhone */
  width: 100%; min-width: 0;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text);
  -webkit-appearance: none; appearance: none;
}
@media (min-width: 1024px) { input, select, textarea { font-size: 14px; } }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94ad' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
input[type="date"], input[type="time"] { min-height: 42px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; background: var(--surface); }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-dt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-dt .f-date { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .row-dt { grid-template-columns: 1.4fr 1fr 1fr; }
  .row-dt .f-date { grid-column: auto; }
}
@media (max-width: 420px) { .new-client.row2 { grid-template-columns: 1fr; gap: 0; } }

.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wd input { position: absolute; opacity: 0; pointer-events: none; }
.wd span {
  display: grid; place-items: center; height: 36px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12px; font-weight: 600; cursor: pointer; user-select: none;
}
.wd input:checked + span { background: var(--primary); border-color: transparent; color: var(--primary-ink); }
.wd input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch i {
  display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); cursor: pointer;
  box-shadow: inset 0 0 0 3px var(--surface); border: 2px solid transparent;
}
.swatch input:checked + i { border-color: var(--c); }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-cards label { position: relative; cursor: pointer; }
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.radio-cards b { font-size: 13px; }
.radio-cards small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.radio-cards input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.radio-cards input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.form-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.form-error { color: var(--danger); font-weight: 600; font-size: 13px; margin: 0 0 8px; }
.conflict {
  margin: -4px 0 12px; padding: 8px 12px; border-radius: var(--radius); font-size: 12.5px;
  background: color-mix(in srgb, #f59e0b 14%, var(--surface)); color: var(--text);
}
.recur { padding: 12px; margin-bottom: 12px; border-radius: var(--radius); background: var(--panel); }
.recur .row2 .field { margin-bottom: 0; }

/* ============================================================
   Chips, badges, cartões
   ============================================================ */
.chips { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chip.off { opacity: .45; text-decoration: line-through; }
.hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }

.badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 700; white-space: nowrap; }
.badge.link { color: var(--primary); background: var(--primary-soft); }
.pill { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; font-weight: 700; margin-left: 4px; }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, #f59e0b 18%, var(--surface)); color: var(--warn); }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--c); color: #fff;
}
.avatar.sm { width: 34px; height: 34px; font-size: 12px; }
.avatar.xs { width: 26px; height: 26px; font-size: 10px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }

.page { max-width: 1040px; margin: 0 auto; padding: 18px 16px 110px; }
.page.narrow { max-width: 700px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 300; }
.page-head p { margin: 2px 0 0; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 1024px) { .page { padding: 28px 32px 56px; } .page-head h1 { font-size: 30px; } }
@media (max-width: 420px) { .head-actions .btn span { display: none; } }

.search {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted);
}
.search input { border: 0; background: transparent; padding: 11px 0; outline: none; }

.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 900px) { .list { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); } }
.card {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.card:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.card.current { border-color: var(--primary); }
.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.next-appt { color: var(--primary); font-weight: 600; }
.next-appt .ic { vertical-align: -2px; }
.card-main b, .card-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { text-align: center; padding: 44px 16px; color: var(--muted); display: grid; justify-items: center; gap: 8px; grid-column: 1 / -1; }
.empty h3 { font-size: 17px; font-weight: 600; }
.empty p { max-width: 360px; margin: 0 0 8px; }

.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 16px 0 0; }
.page.narrow .panel-card { margin: 0 0 14px; }
.panel-card h2 { font-size: 15px; margin-bottom: 12px; }
.panel-card p { margin: 6px 0; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.kv b { overflow: hidden; text-overflow: ellipsis; }
.kv-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kv-head p { margin: 2px 0 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.notice { padding: 12px 14px; border-radius: var(--radius); background: color-mix(in srgb, #fbbf24 14%, var(--surface)); }
.notice p { margin: 4px 0 0; font-size: 13px; }
.howto { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.prof-list { display: grid; gap: 8px; }

/* ============================================================
   Agenda
   ============================================================ */
.agenda-head { padding: 12px 16px 8px; background: var(--surface); border-bottom: 1px solid var(--border); flex: none; }
.agenda-row { display: flex; align-items: center; gap: 6px; }
.title-btn { position: relative; flex: 1; min-width: 0; border: 0; background: none; padding: 4px 0; text-align: left; }
.title-btn h2 { font-size: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-btn:hover h2 { color: var(--primary); }
#date-pick { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0; pointer-events: none; }
.nav-group { display: flex; align-items: center; gap: 0; }
.views { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.views button {
  flex: 1; border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); position: relative;
}
.views button:hover { color: var(--title); }
.views button.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.agenda-sum { margin-top: 6px; }
@media (max-width: 1023px) {
  .agenda-row { flex-wrap: wrap; row-gap: 2px; }
  .views { order: 3; width: 100%; margin-top: 6px; }
}
@media (min-width: 1024px) {
  .agenda-head { padding: 18px 22px 12px; border-bottom: 1px solid var(--border); border-radius: 16px 16px 0 0; }
  .agenda-row { gap: 12px; }
  .title-btn { flex: none; }
  .title-btn h2 { font-size: 24px; }
  .nav-group { order: -1; gap: 4px; }
  .nav-group .btn { order: -1; margin-right: 4px; }
  .views { margin-left: auto; }
}

.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 8px; }
.ds-day { border: 0; background: none; border-radius: 10px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ds-day small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.ds-day b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; font-weight: 600; }
.ds-day.today b { color: var(--primary); }
.ds-day.active b { background: var(--primary); color: var(--primary-ink); }
.ds-day i { width: 4px; height: 4px; border-radius: 50%; }
.ds-day i.has { background: var(--muted); }

.grid-wrap { flex: 1; min-height: 0; overflow: auto; background: var(--surface); overscroll-behavior: contain; }
.grid { min-width: 100%; width: max-content; padding-bottom: 96px; }
@media (min-width: 1024px) { .grid { padding: 0 20px 24px 8px; width: auto; } }
.grid-heads, .grid-body { display: grid; grid-template-columns: 50px repeat(var(--cols), minmax(var(--colmin, 0px), 1fr)); }
.grid { --colmin: 0px; }
@media (max-width: 1023px) { .grid { width: max(100%, calc(50px + var(--cols) * var(--colmin))); } }
.grid-heads { position: sticky; top: 0; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--grid-line); }
.corner { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.col-head { border: 0; background: none; padding: 6px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; }
.col-head small { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.col-head b { font-size: 18px; font-weight: 500; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--title); }
.col-head.today b { background: var(--primary); color: var(--primary-ink); }
.col-head:hover small { color: var(--primary); }
.staff-head { flex-direction: row; justify-content: center; gap: 8px; padding: 8px 6px; }
.staff-head > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; text-align: left; }
.staff-head b { font-size: 12.5px; font-weight: 700; width: auto; height: auto; border-radius: 0; background: none; color: var(--title); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-head small { text-transform: none; letter-spacing: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* celular: 3 atendentes cabem lado a lado a partir de 360 px; com mais, a grade rola para o lado */
@media (max-width: 480px) { .staff-head { gap: 5px; padding: 8px 3px; } }

.grid-body { height: calc(var(--hh) * 24 + 8px); padding-top: 8px; }
.times { position: sticky; left: 0; z-index: 5; background: var(--surface); }
.times .time { height: var(--hh); position: relative; }
.time span { position: absolute; top: -8px; right: 8px; font-size: 10.5px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.day-col {
  position: relative; border-left: 1px solid var(--grid-line); cursor: cell; height: calc(var(--hh) * 24);
  background-image: linear-gradient(to bottom,
    var(--grid-line) 0, var(--grid-line) 1px, transparent 1px,
    transparent calc(var(--hh) / 2), var(--grid-half) calc(var(--hh) / 2), var(--grid-half) calc(var(--hh) / 2 + 1px), transparent calc(var(--hh) / 2 + 1px));
  background-size: 100% var(--hh);
}
.day-col.is-today { background-color: color-mix(in srgb, var(--primary) 4%, transparent); }

.event {
  position: absolute; margin-left: 2px; padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--c) 32%, var(--surface)); border-left: 3px solid var(--c); border-radius: 7px;
  background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: color-mix(in srgb, var(--c) 62%, #0B1020);
  text-align: left; font-size: 11.5px; line-height: 1.25;
  display: flex; flex-direction: column; overflow: hidden; z-index: 1;
}
.event:hover { z-index: 3; box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }
.event.paid { background: color-mix(in srgb, var(--c) 7%, var(--surface)); }
.ev-time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; font-weight: 600; opacity: .9; font-variant-numeric: tabular-nums; }
.event:not(.compact) .ev-time { padding-right: 26px; }
.ev-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-sub { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-icons { position: absolute; right: 5px; top: 4px; display: flex; gap: 2px; opacity: .9; }
.event.compact { flex-direction: row; align-items: center; gap: 5px; padding-top: 0; padding-bottom: 0; }
.event.compact .ev-icons { position: static; margin-left: auto; }

.now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--danger); z-index: 4; pointer-events: none; }
.now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }

/* Mês */
.month-wrap { padding: 0 0 96px; }
@media (min-width: 1024px) { .month-wrap { padding: 0 28px 28px; } }
.month {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto repeat(var(--weeks), minmax(76px, 1fr)); min-height: 100%;
  border-top: 1px solid var(--grid-line);
}
@media (min-width: 1024px) { .month { grid-template-rows: auto repeat(var(--weeks), minmax(110px, 1fr)); border-top: 0; } }
.m-wd { padding: 8px 8px 6px; font-size: 11px; font-weight: 600; color: var(--title); border-bottom: 1px solid var(--grid-line); }
.m-cell {
  position: relative; min-width: 0; cursor: pointer;
  border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line);
  padding: 6px 5px 24px; display: flex; flex-direction: column;
}
.m-cell:nth-child(7n + 7) { border-right: 0; }
.m-cell:hover { background: var(--surface-2); }
.m-cell.out .m-num { color: var(--faint); }
.m-cell.out { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.m-num { position: absolute; right: 8px; bottom: 5px; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-cell.today .m-num { background: var(--primary); color: #fff; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; right: 4px; bottom: 2px; }
.m-pills { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pill-ev {
  border: 0; border-radius: 3px; background: var(--c); color: #fff; text-align: left;
  font-size: 10.5px; font-weight: 600; padding: 3px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .15);
}
.pill-ev b { font-weight: 700; opacity: .85; }
.pill-ev.paid { background: color-mix(in srgb, var(--c) 72%, #fff); }
.m-more { font-size: 10.5px; color: var(--muted); font-weight: 600; padding-left: 2px; }
.m-dots { display: none; }
@media (max-width: 640px) {
  .m-pills { display: none; }
  .m-dots { display: flex; flex-wrap: wrap; gap: 3px; }
  .m-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
}

/* ============================================================
   Ficha do paciente
   ============================================================ */
.back { border: 0; background: none; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; margin-bottom: 10px; }
.ficha-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  position: relative; overflow: hidden;
}
.ficha-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--band-1), var(--band-2)); }
.ficha-id { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ficha-id h1 { font-size: 24px; font-weight: 400; }
.ficha-id p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ficha-id .ic { vertical-align: -2px; }
.sep { color: var(--faint); margin: 0 2px; }
.ficha-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .ficha-actions { width: 100%; } .ficha-actions .btn { flex: 1; } }

.ficha-grid { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 1100px) { .ficha-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.count { font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 9px; }
.ficha-main .empty { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

.evals { display: grid; gap: 10px; }
.eval {
  display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.eval-date {
  flex: none; width: 56px; height: 60px; border-radius: var(--radius); background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.eval-date b { font-size: 22px; font-weight: 500; color: var(--primary); }
.eval-date small { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.eval-body { flex: 1; min-width: 0; }
.eval-top { display: flex; justify-content: space-between; gap: 8px; }
.eval-top h4 { font-size: 14.5px; font-weight: 700; }
.eval-top p { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; }
.eval-actions { display: flex; flex: none; }
.eval-text { white-space: pre-wrap; margin-top: 10px; font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }

.ficha-side { display: grid; gap: 12px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.side-card h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 8px; }
.occ-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.occ-list button {
  display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: center; width: 100%;
  border: 0; background: none; text-align: left; padding: 6px; border-radius: 4px; font-size: 12.5px;
}
.occ-list button:hover { background: var(--surface-2); }
.occ-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.occ-list span { font-weight: 600; }
.occ-list small { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   Modais
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); animation: fade .16s ease-out; }
.modal-card {
  position: relative; width: 100%; max-height: 92dvh; overflow: auto;
  background: var(--surface); border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + var(--sa-bottom));
  box-shadow: var(--shadow); animation: up .22s cubic-bezier(.2, .8, .3, 1);
}
.modal.closing .modal-card { animation: down .16s ease-in forwards; }
.modal.closing .modal-backdrop { animation: fade .16s reverse forwards; }
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal-card { max-width: 540px; border-radius: 12px; padding: 20px 22px; }
  .modal-card.sm { max-width: 420px; }
  .modal-card.lg { max-width: 680px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.modal-card.nudge { animation: nudge .28s ease-in-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
@keyframes down { to { transform: translateY(24px); opacity: 0; } }

.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h3 { font-size: 18px; font-weight: 600; }
.sheet-head p { margin: 2px 0 0; font-size: 12.5px; }
.occ-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.choice-msg { margin: -6px 0 14px; }
.choice-list { display: grid; gap: 8px; }
.choice-list .btn { padding: 12px; }

.details { margin: 0 0 16px; }
.details > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.details dt { color: var(--muted); font-size: 13px; flex: none; }
.details dd { margin: 0; text-align: right; font-weight: 600; font-size: 13px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-actions .wide-btn { grid-column: 1 / -1; padding: 11px; }

/* ============================================================
   Login
   ============================================================ */
.auth {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background:
    radial-gradient(60% 50% at 15% 10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
    radial-gradient(50% 45% at 90% 90%, color-mix(in srgb, #0F172A 10%, transparent), transparent 70%),
    var(--bg);
}
.auth-card {
  width: 100%; max-width: 380px; background: var(--surface);
  border-radius: 18px; padding: 30px 24px; box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; gap: 4px;
}
.auth-card img { justify-self: center; border-radius: 14px; }
.auth-card h1 { text-align: center; font-size: 26px; margin-top: 8px; }
.auth-main > p { text-align: center; margin: 4px 0 16px; }
.auth-card .btn { margin-top: 6px; padding: 12px; }
.auth-msg { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin: 0 0 14px; border-radius: 8px; background: var(--surface-2); }
.auth-tabs button { border: 0; background: none; padding: 8px; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--muted); }
.auth-tabs button.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.auth-others { display: grid; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.auth-others p { margin: 0 0 2px; }
.auth-card .auth-others .card { margin: 0; padding: 8px 10px; }
.auth-msg.error { color: var(--danger); }
.auth-msg.ok { color: var(--ok); }

/* ============================================================
   Aviso flutuante
   ============================================================ */
#toast {
  position: fixed; left: 50%; bottom: calc(140px + var(--sa-bottom)); z-index: 100;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--title); color: var(--surface); padding: 10px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: var(--shadow);
  transition: opacity .18s, transform .18s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); color: #fff; }
@media (min-width: 1024px) { #toast { bottom: 28px; } }

/* ============================================================
   Relatório de avaliações (impressão / PDF)
   ============================================================ */
#print-root { display: none; }
@media print {
  body.printing > :not(#print-root) { display: none !important; }
  body.printing { background: #fff; color: #222; }
  body.printing #print-root { display: block; }
  @page { margin: 18mm 16mm; }
}
.report { font-family: var(--font); color: #222; font-size: 11pt; }
.report .r-profile { color: #2563EB; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 8.5pt; margin: 0; }
.report h1 { font-size: 18pt; font-weight: 500; margin: 4pt 0; color: #0F172A; }
.report h2 { font-size: 13.5pt; margin: 18pt 0 2pt; padding-bottom: 4pt; border-bottom: 1px solid #CBD5E1; color: #0F172A; }
.report h3 { font-size: 11pt; margin: 12pt 0 2pt; color: #0F172A; }
.report .r-meta { color: #667; font-size: 9pt; margin: 0 0 4pt; }
.report .r-header { border-bottom: 3px solid #2563EB; padding-bottom: 8pt; }
.report .r-eval { break-inside: avoid; }
.report .r-text { margin: 4pt 0 0; line-height: 1.5; }

/* ============================================================
   Passo a passo de um perfil novo
   ============================================================ */
.page.setup { max-width: 640px; padding-top: 28px; }
.stepper { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; align-items: center; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); flex: 1; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--border); }
.stepper li.done::after { background: var(--primary); }
.stepper span {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--surface); border: 2px solid var(--border); color: var(--muted);
}
.stepper li.current { color: var(--title); }
.stepper li.current span { border-color: var(--primary); color: var(--primary); }
.stepper li.done span { background: var(--primary); border-color: var(--primary); color: #fff; }
.setup-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px 20px; box-shadow: var(--shadow); }
.setup-card h1 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.setup-card > p { margin: 0 0 16px; }
.setup-add { display: grid; grid-template-columns: 1fr; gap: 0 10px; align-items: end; }
.setup-add .btn { margin-bottom: 12px; padding: 10px 14px; }
@media (min-width: 640px) { .setup-add { grid-template-columns: 1fr 1fr; } }
.setup-list { display: grid; gap: 6px; margin: 4px 0 16px; }
.setup-empty { padding: 14px; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); margin: 0; }
.setup-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.setup-next { display: grid; gap: 8px; margin-bottom: 14px; }
.setup-next .card { padding: 14px; }
.setup-next .card > .ic:first-child { color: var(--primary); }

/* WhatsApp */
.btn.wa { background: #25d366; border-color: transparent; color: #fff; }
.btn.wa:hover { background: #1fbe5b; }
.card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.client-card { cursor: pointer; }
.client-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 420px) { .card-side .btn.wa span { display: none; } .card-side .btn.wa { padding: 6px 8px; } }

/* Campos escondidos dentro de botões de opção (cor, dia da semana, cartões, caixas):
   não podem herdar a largura dos campos de texto nem sair do lugar */
.swatch, .wd, .radio-cards label, .check { position: relative; }
.swatch input, .wd input, .radio-cards input, .check input { width: 1px; height: 1px; padding: 0; margin: 0; left: 0; top: 0; }

/* ============================================================
   iPhone / iOS
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }
body { overscroll-behavior: none; }
.rail, .tabbar, .tabs, .m-header, .fab, .event, .pill-ev, .chip, .ds-day, .col-head, .views, .nav-btn {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
#view, .grid-wrap, .modal-card, .panel { -webkit-overflow-scrolling: touch; }
/* Campos de data/hora do Safari: alinhados e com altura igual aos demais */
input[type="date"], input[type="time"] { display: block; text-align: left; line-height: 1.3; }
input::-webkit-date-and-time-value { text-align: left; min-height: 1.3em; }
/* Áreas seguras: entalhe/Dynamic Island, cantos e barra inferior do iPhone */
.m-header { padding-left: max(14px, var(--sa-left)); padding-right: max(14px, var(--sa-right)); }
.tabbar { padding-left: var(--sa-left); padding-right: var(--sa-right); }
.fab { right: max(18px, calc(var(--sa-right) + 12px)); }
.auth { padding: calc(24px + var(--sa-top)) 16px calc(24px + var(--sa-bottom)); }
.modal-card { max-height: calc(100dvh - var(--sa-top) - 16px); }
@media (max-width: 1023px) {
  /* alvos de toque de pelo menos 44px, como pede o padrão da Apple */
  .icon-btn { width: 44px; height: 44px; }
  .icon-btn.sm { width: 38px; height: 38px; }
  .views button { padding: 10px 8px 11px; }
  .chip { padding: 8px 12px; }
  .tabbar .nav-btn { padding: 9px 0 7px; min-height: 50px; }
  .btn { min-height: 40px; }
  .btn.sm { min-height: 34px; }
}
.ios-hint {
  position: fixed; left: 12px; right: 12px; z-index: 30;
  bottom: calc(66px + var(--sa-bottom));
  display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  font-size: 12.5px; animation: up .3s ease-out;
}
.ios-hint img { border-radius: 9px; flex: none; }
.ios-hint p { margin: 0; flex: 1; line-height: 1.4; }
.share-ic { display: inline-grid; place-items: center; color: var(--primary); vertical-align: -3px; }
.ios-hint ~ .fab, .shell:has(.ios-hint) .fab { bottom: calc(150px + var(--sa-bottom)); }
@media (min-width: 1024px) { .ios-hint { display: none; } }
@media (max-width: 480px) { .m-header .sync-status span { display: none; } .m-header .sync-status i { width: 10px; height: 10px; } }

/* Paciente digitado no agendamento */
.client-hint { display: flex; align-items: center; gap: 6px; margin: -6px 0 12px; font-size: 12.5px; font-weight: 600; }
.client-hint.known { color: var(--ok); }
.client-hint.new { color: var(--primary); }

/* Usuários em vários perfis */
.list-title { font-size: 14px; font-weight: 700; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.list-title:first-of-type { margin-top: 4px; }
.prof-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; white-space: normal !important; }
.prof-tags i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.prof-tags i.none { background: var(--surface-2); color: var(--muted); }
.prof-checks { display: grid; gap: 6px; }
.pcheck { position: relative; cursor: pointer; }
.pcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pcheck span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; font-size: 13px; }
.pcheck input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.pcheck input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.setup-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 8px 0 6px; }

/* Simulações (simulacoes.html abre o app com ?sim=…) */
html.sim-iphone { --sa-top: 62px; --sa-bottom: 34px; } /* iPhone 18 Pro Max: Dynamic Island e barra inferior */
html.sim-iphone ::-webkit-scrollbar, html.sim-android ::-webkit-scrollbar { display: none; }

/* ============================================================
   Pacotes e check de pagamentos
   ============================================================ */
.pkg-fields { padding: 12px; margin-bottom: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.pkg-fields .field:last-of-type { margin-bottom: 8px; }
.pkg-title { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-weight: 700; color: var(--primary); }
.pkg-preview { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--title); }
.pkg-info { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; padding: 8px 12px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); font-size: 12.5px; font-weight: 600; }
.pkg-info b { color: var(--danger); }
.pill.late { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.badge.ok { background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ok); }
.badge.late { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.late-txt { color: var(--danger); font-weight: 700; }
.ok-txt { color: var(--ok); font-weight: 700; }

.pkgs { display: grid; gap: 10px; margin-bottom: 22px; }
.pkg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.pkg-top { display: flex; justify-content: space-between; gap: 8px; }
.pkg-top h4 { font-size: 14.5px; font-weight: 700; }
.pkg-top p { margin: 2px 0 0; }
.pkg-progress { height: 6px; border-radius: 3px; background: var(--surface-2); margin: 12px 0 6px; overflow: hidden; }
.pkg-progress i { display: block; height: 100%; border-radius: 3px; background: var(--ok); transition: width .25s; }
.pkg-sum { margin: 0 0 8px; color: var(--muted); }
.pkg-sum b { color: var(--title); }
.pkg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pkg-check {
  position: relative; display: grid; grid-template-columns: 22px 1fr auto; column-gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: var(--radius); background: var(--surface-2); cursor: pointer; user-select: none; min-height: 44px;
}
.pkg-check input { position: absolute; opacity: 0; width: 1px; height: 1px; left: 0; top: 0; pointer-events: none; }
.pkg-check i {
  grid-row: span 2; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  border: 2px solid var(--faint); color: transparent; background: var(--surface);
}
.pkg-check input:checked + i { background: var(--ok); border-color: var(--ok); color: #fff; }
.pkg-check input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }
.pkg-check span { font-size: 13px; }
.pkg-check .pkg-val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pkg-check small { grid-column: 2 / -1; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pkg-list li.paid .pkg-check { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); }
.pkg-list li.paid small { color: var(--ok); }
.pkg-list li.late .pkg-check { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
.pkg-list li.late small { color: var(--danger); }
.pkg-empty { padding: 18px; margin-bottom: 22px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

.danger-zone { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ============================================================
   WhatsApp: lembretes de confirmação
   ============================================================ */
.panel-card h2 .ic { vertical-align: -3px; color: #25d366; margin-right: 4px; }
.pill.info { background: var(--primary-soft); color: var(--primary); }
.wa-badge { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-style: normal; background: #fff; }
.wa-badge.ok { color: var(--ok); }
.wa-badge.late { color: var(--danger); }
.wa-badge.warn { color: var(--warn); }
.today-item .wa-badge { margin-left: auto; box-shadow: 0 0 0 1px var(--border); }
.switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; margin: 6px 0 4px; border-top: 1px solid var(--border); cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; }
.switch-row small { font-size: 12px; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: #d1d5de; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch-row input:checked + .switch { background: #34c759; }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch-row input:disabled + .switch { opacity: .45; }
.wa-hours { margin: 4px 0 8px; }
.wa-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.wa-stats b { color: var(--title); font-size: 14px; }
.wa-stats .ok-txt b { color: var(--ok); }
.wa-stats .late-txt b { color: var(--danger); }

/* Horário desmarcado (sem resposta a tempo, pedido do paciente ou à mão): o card fica vermelho */
.event.cancelled, .pill-ev.cancelled { background: var(--danger); color: #fff; border-color: var(--danger); }
.event.cancelled .ev-time, .event.cancelled .ev-sub { opacity: .85; }
.today-item.cancelled i { background: var(--danger); }
.today-item.cancelled b, .today-item.cancelled span { color: var(--danger); }
.occ-list li.cancelled span, .occ-list li.cancelled small { color: var(--danger); }
.occ-list li.cancelled i { background: var(--danger); }

/* Aceite dos Termos no cadastro */
.terms-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 10px; font-size: 13px; line-height: 1.45; cursor: pointer; }
.terms-check input { width: 20px; height: 20px; min-width: 20px; margin: 1px 0 0; padding: 0; -webkit-appearance: checkbox; appearance: auto; accent-color: var(--primary); }
.auth-back { justify-self: center; margin-top: 10px; text-decoration: none; }
.auth-back:hover { color: var(--primary); }

/* ============================================================
   Vínculo de contas: agenda pessoal x agenda da empresa
   ============================================================ */
/* Bloqueio vindo da agenda vinculada: cinza listrado, sem cara de atendimento */
.event.ext:not(.ext-linked), .pill-ev.ext:not(.ext-linked) {
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, var(--surface)) 0 6px, color-mix(in srgb, var(--c) 18%, var(--surface)) 6px 12px);
  color: var(--title); box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px var(--surface);
}
.event.ext:not(.ext-linked) .ev-sub, .event.ext:not(.ext-linked) .ev-time { color: var(--muted); }
.event.ext .ev-icons .ic { opacity: .7; }
.event.ext.cancelled, .pill-ev.ext.cancelled { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); color: var(--danger); box-shadow: inset 3px 0 0 var(--danger); }

.link-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 8px 0 4px; padding: 9px 12px; border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); font-size: 13px;
}
.link-banner .ic { color: var(--muted); }
.link-banner span { flex: 1; min-width: 200px; }
.link-banner.invite { background: var(--primary-soft); }
.link-banner.invite .ic { color: var(--primary); }

.conflict.blocked { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--surface)); }

.link-box { margin: 4px 0 14px; padding: 14px; border-radius: var(--radius); border: 1px dashed var(--border); background: var(--surface-2); }
.link-box.on { border-style: solid; border-color: color-mix(in srgb, var(--ok) 35%, var(--surface)); background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.link-box > b { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); color: var(--title); }
.link-box > b .ic { color: var(--primary); }
.link-box.on > b .ic { color: var(--ok); }
.link-box p { margin: 6px 0 10px; }
.link-box .field { margin-bottom: 10px; }
.link-box .btn-row { margin-top: 0; }
.link-hint { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.link-error { color: var(--danger); font-weight: 600; font-size: 13px; margin: 0 0 8px; }

.link-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.link-note .ic { flex: none; margin-top: 2px; }

.links-card h2 .ic { vertical-align: -3px; color: var(--primary); margin-right: 4px; }
.links-card .sub-h { font-size: 13px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.link-invite-card { margin: 12px 0; padding: 14px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--surface)); background: var(--primary-soft); }
.link-invite-card .kv-head { margin-bottom: 10px; }
.link-invite-card .field { margin-bottom: 10px; }
.links-card .prof-list .card { cursor: default; }
.links-card .prof-list .card[role="button"] { cursor: pointer; }

.prof-tags i.linked { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); display: inline-flex; align-items: center; gap: 3px; }
.prof-tags i.pending { background: color-mix(in srgb, #f59e0b 18%, var(--surface)); color: var(--warn); display: inline-flex; align-items: center; gap: 3px; }

.prof-name.static { cursor: default; }
.linked-sub { display: flex; align-items: center; gap: 5px; }
.linked-note { margin: 0; line-height: 1.5; }

@media (min-width: 1024px) {
  .rail-prof .rail-link {
    position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 2px var(--panel);
  }
  .rail-prof.linked span { box-shadow: 0 0 0 2px var(--panel), 0 0 0 3px var(--border); }
  .rail-prof.linked.active .rail-link { box-shadow: 0 0 0 2px var(--panel); }
}

/* Marca */
.tagline { margin: 0; font-family: var(--font-display); font-size: 13px; color: var(--muted); letter-spacing: .01em; }
.boot .wordmark { font-size: 30px; margin: 10px 0 0; }
.auth-card .tagline { text-align: center; margin: -2px 0 6px; }
.auth-card img { border-radius: 18px; box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }

/* ============================================================
   Financeiro
   ============================================================ */
#view.view-finance { background: var(--bg); }
.page.fin { max-width: 1240px; }
.fin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.fin-head p { margin: 4px 0 0; }
.fin-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fin-ctrl .nav-group { display: flex; align-items: center; gap: 4px; }
.fin-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 14px; }
.fin-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fin-scope button { white-space: nowrap; }
.fin-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 13px; color: var(--text); }
.fin-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.fin-chip.off { color: var(--faint); background: transparent; text-decoration: line-through; }
.fin-chip.off i { background: var(--faint); }

/* Cards do topo: no celular, o principal em cima e os outros 2 por linha; em telas médias, o principal
   em cima e os outros numa linha só; em telas largas, todos lado a lado. Nunca sobra um card sozinho. */
#view.view-finance > .page { container-type: inline-size; }
.kpis { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
@container (min-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi.main { grid-column: 1 / -1; }
  .kpis.k4 .kpi:last-child { grid-column: 1 / -1; }
}
@container (min-width: 760px) {
  .kpis.k5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis.k4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.k4 .kpi:last-child { grid-column: auto; }
}
@container (min-width: 1000px) {
  .kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis .kpi.main { grid-column: auto; }
}
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi small { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi b { font: 600 24px/1.2 var(--font-display); color: var(--title); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.main { background: var(--rail); border-color: var(--rail); }
.kpi.main small, .kpi.main span { color: #94A3B8; }
.kpi.main b { color: #fff; font-size: 28px; }
.kpi em { font-style: normal; font-weight: 700; }
.kpi em.up { color: #34D399; }
.kpi em.down { color: #FB7185; }
.kpi.fee b { color: var(--danger); }
.kpi.net b { color: var(--ok); }
.kpi.late b { color: var(--danger); }

.fin-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.fin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.fin-card-head h3 { font-size: 15px; }
.fin-cols { display: grid; gap: 0 14px; }
@media (min-width: 1100px) { .fin-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-paid { background: var(--brand); }
.lg-open { background: repeating-linear-gradient(135deg, var(--faint) 0 2px, transparent 2px 4px); border: 1px solid var(--faint); }
.fin-chart { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; height: 220px; padding: 0 0 22px 56px; }
.fin-chart.month { gap: 3px; }
.fin-grid { position: absolute; left: 0; right: 0; top: 0; bottom: 22px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.fin-grid span { border-top: 1px dashed var(--border); font-size: 11px; color: var(--faint); line-height: 0; padding-top: 0; width: 100%; }
.fin-grid span::before { content: ""; }
.fin-col { position: relative; border: 0; background: none; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; border-radius: 6px; }
.fin-col:hover { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.fin-stack { display: flex; flex-direction: column; border-radius: 6px 6px 3px 3px; overflow: hidden; min-height: 0; }
.fin-stack i { display: block; background: var(--c); min-height: 2px; }
.fin-stack i.open { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--faint) 55%, transparent) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--faint) 60%, transparent); }
.fin-col small { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; }
.fin-col.today small { color: var(--primary); font-weight: 700; }

.fin-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fm-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; }
.fm-top span { display: inline-flex; align-items: center; gap: 8px; }
.fm-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.fm-top small { font-weight: 600; font-size: 11.5px; color: var(--muted); background: var(--surface-2); padding: 2px 7px; border-radius: 999px; }
.fm-bar { height: 8px; border-radius: 6px; background: var(--surface-2); margin: 7px 0 5px; overflow: hidden; }
.fm-bar i { display: block; height: 100%; border-radius: 6px; background: var(--c); }
.fm-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.fm-sub em { font-style: normal; color: var(--danger); font-weight: 600; }

.prov { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; height: 130px; margin-bottom: 10px; }
.prov-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px 0 10px; }
.prov-nav b { font-size: 13px; color: var(--title); text-transform: capitalize; }
.prov-nav .icon-btn:disabled { opacity: .35; cursor: default; }
.prov-col { border: 0; background: none; padding: 4px 0; border-radius: 8px; cursor: pointer; font: inherit; }
.prov-col:hover { background: var(--surface-2); }
.prov-col.sel { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.prov-col.sel small, .prov-col.now small { color: var(--brand); font-weight: 700; }
.prov-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.prov-v { font-size: 11px; font-weight: 700; color: var(--title); white-space: nowrap; }
.prov-bar { flex: 1; width: 100%; max-width: 44px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.prov-bar i { display: block; width: 100%; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 60%, #fff)); border-radius: 6px; }
.prov-col small { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.prov-note { margin: 0 0 10px; }
.prov-list, .fin-list { list-style: none; margin: 0; padding: 0; }
.prov-list li + li, .fin-list li + li { border-top: 1px solid var(--border); }
.prov-list button, .fin-list button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 4px; text-align: left; border-radius: 8px; }
.prov-list button:hover, .fin-list button:hover { background: var(--surface-2); }
.pl-main, .fl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-main b, .fl-main b { font: 600 14px var(--font-display); color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-main small, .fl-main small, .pl-end small, .fl-val small { font-size: 12px; color: var(--muted); }
.pl-end, .fl-val { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; }
.pl-end b, .fl-val b { font-weight: 700; color: var(--title); white-space: nowrap; }
.fl-val .pill { margin: 3px 0 0; }
.fin-list i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.fin-list-card .fin-list { max-height: 760px; overflow: auto; }

.field.fee-field { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.field.fee-field + .field.fee-field { border-top: 1px solid var(--border); padding-top: 10px; }
.field.fee-field > span:first-child { font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--title); }
.fee-in { display: inline-flex; align-items: center; gap: 6px; }
.fee-in input { width: 96px; text-align: right; }
.fee-in em { font-style: normal; color: var(--muted); font-weight: 600; }
.fee-sum { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 4px; font-size: 13px; }
.fee-sum span { display: inline-flex; align-items: center; gap: 6px; }
.fee-sum i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

@media (max-width: 640px) {
  .kpis { gap: 8px; }
  .fin-chart { height: 180px; padding-left: 48px; gap: 4px; }
  .fin-chart.month { gap: 1px; }
  .fin-ctrl { width: 100%; justify-content: space-between; }
}
@media (max-width: 640px) { .prov-v { font-size: 10px; } .prov { gap: 4px; } .fin-card-head .legend { font-size: 11px; } }

/* Repasse por unidade no cadastro da profissional */
.pshare { display: flex; align-items: stretch; gap: 8px; }
.pshare .pcheck { flex: 1; }
.share-in { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.share-in input { width: 52px; border: 0; padding: 8px 0; text-align: right; background: none; font: 600 14px var(--font); color: var(--title); outline: none; }
.share-in:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.share-in em { font-style: normal; color: var(--muted); font-weight: 600; }
.share-help { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; }

/* Folha: para quem foi o dinheiro */
.fin-card-head h3 small { font: 500 12px var(--font); margin-left: 6px; }
.split-tot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.split-tot small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.split-tot b { font: 600 18px var(--font-display); color: var(--title); }
.split-tot b.neg, .pr-split b.neg { color: var(--danger); }
.split-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); margin-bottom: 16px; }
.split-bar .pro { background: var(--brand); } .split-bar .cli { background: var(--rail); } .split-bar .fee { background: var(--danger); }
@media (prefers-color-scheme: dark) { .split-bar .cli { background: #64748B; } }
.pros { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pr-top { display: flex; align-items: center; gap: 10px; }
.pr-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-name b { font: 600 14px var(--font-display); color: var(--title); }
.pr-name small { font-size: 12px; color: var(--muted); }
.pr-pct { flex: none; border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 4px 10px; font: 700 12px var(--font); color: var(--primary); }
.pr-pct.warn { color: var(--warn); background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border-color: transparent; }
.pr-split { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.pr-split b { color: var(--title); }
.pr-warn { margin: 4px 0 0; font-size: 12px; color: var(--warn); }
.split-note { margin: 14px 0 0; }

/* Tipo de conta */
.acc-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 14px; }
.acc-types.settings { margin: 4px 0 0; }
.acc-type { position: relative; cursor: pointer; }
.acc-type input { position: absolute; opacity: 0; pointer-events: none; }
.acc-type span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-align: left; }
.acc-type b { font: 600 15px var(--font-display); color: var(--title); }
.acc-type small { font: 500 12px/1.35 var(--font); color: var(--muted); }
.acc-type input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.acc-type input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 420px) { .acc-types.settings { grid-template-columns: 1fr; } }

/* Financeiro: abas Resumo / Folha */
.fin-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 14px; border-radius: 12px; background: var(--surface-2); }
.fin-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.fin-tabs button.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

/* Folha de pagamento */
.fo-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 14%, var(--surface)); color: var(--warn); font-size: 13.5px; }
.fo-alert .ic { flex: none; margin-top: 2px; }
.fo-rows { display: grid; }
.fo-row, .fo-total { border-top: 1px solid var(--border); }
.fo-row summary, .fo-total { display: grid; grid-template-columns: minmax(170px, 1.6fr) repeat(6, minmax(0, 1fr)) 20px; align-items: center; gap: 10px; padding: 12px 4px; }
.fo-row summary { cursor: pointer; list-style: none; border-radius: 8px; }
.fo-row summary::-webkit-details-marker { display: none; }
.fo-row summary:hover { background: var(--surface-2); }
.fo-row summary > .ic { color: var(--muted); transition: transform .15s; }
.fo-row[open] summary > .ic { transform: rotate(180deg); }
.fo-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fo-who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fo-who b { font: 600 14.5px var(--font-display); color: var(--title); }
.fo-who small { font-size: 12px; color: var(--muted); }
.fo-cell { display: flex; flex-direction: column; min-width: 0; text-align: right; }
.fo-cell small { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-cell b { font-weight: 700; color: var(--title); white-space: nowrap; }
.fo-cell.neg b { color: var(--danger); font-weight: 600; }
.fo-cell.pay b { color: var(--primary); font-size: 15.5px; }
.warn-txt { color: var(--warn); }
.fo-total { background: var(--surface-2); border-radius: 0 0 10px 10px; border-top: 2px solid var(--border); }
.fo-detail { padding: 4px 4px 14px 50px; }
.fo-items { list-style: none; margin: 0 0 10px; padding: 0; font-size: 13px; }
.fo-items li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 90px 80px 54px 96px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.fo-items li > span:not(.fo-cli), .fo-items b { text-align: right; white-space: nowrap; }
.fo-items li > span:first-child { text-align: left; color: var(--muted); }
.fo-items .neg { color: var(--danger); }
.fo-cli { display: flex; flex-direction: column; min-width: 0; }
.fo-cli small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .fo-row summary, .fo-total { grid-template-columns: 1fr 1fr 1fr; gap: 8px 12px; }
  .fo-who { grid-column: 1 / -1; }
  .fo-row summary > .ic { display: none; }
  .fo-cell { text-align: left; }
  .fo-total > span:last-child { display: none; }
  .fo-detail { padding-left: 4px; }
  .fo-items li { grid-template-columns: 1fr auto; }
  .fo-items li > span:nth-child(3), .fo-items li > span:nth-child(4), .fo-items li > span:nth-child(5) { display: none; }
  .fo-items li > span:first-child { grid-column: 1 / -1; }
}
.setup-add .f-share input { max-width: 110px; }
.fo-items .fo-ih { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.fo-items .fo-ih b { color: var(--muted); font-weight: 700; }

/* Conta: trocar de login ou sair */
.top-right { display: flex; align-items: center; gap: 16px; }
.acc-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; }
.acc-chip > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-chip:hover { border-color: var(--primary); }
.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rail-acc { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--title); font: 700 13px var(--font); }
.rail-acc:hover { border-color: var(--primary); }
.acc-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.acc-foot .btn-row { margin: 0; }
.acc-note { margin: 12px 0 0; }
@media (max-width: 1200px) { .acc-chip > span:nth-child(2) { display: none; } .acc-chip { padding-right: 8px; } }
.field-help { display: block; margin-top: 5px; font-size: 12px; line-height: 1.4; text-transform: none; letter-spacing: 0; font-weight: 500; }
.link-to { margin: 4px 0 10px; color: var(--text); }
.link-to b { color: var(--primary); }

/* Status do atendimento */
.st-box { margin: 4px 0 14px; }
.st-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.st-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.st-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text); text-align: left; }
.st-opt i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); flex: none; }
.st-opt:hover { border-color: var(--c); }
.st-opt.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); font-weight: 700; color: var(--title); }
@media (max-width: 420px) { .st-list { grid-template-columns: 1fr; } }
.st-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; flex: none; }
.today-item .st-dot { margin-left: auto; }
.ev-st { font-weight: 700; }

/* Tipos de pacote */
.pkg-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
@media (max-width: 420px) { .pkg-kinds { grid-template-columns: 1fr; } }
.pkg-fields.is-monthly .only-installments { display: none; }
.pkg-fields:not(.is-monthly) .only-monthly { display: none; }
.pkg-kind { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 11px; }
.card.inactive { opacity: .75; }
.card.inactive b { text-decoration: none; }
.list-note { margin: -4px 0 10px; }
.setup-add-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.setup-add-foot .btn { margin-bottom: 12px; }
.setup-add .f-share input { max-width: none; }
.setup-add .field > span { white-space: nowrap; }

/* Demonstração (só com DEV_TOOLS) */
.auth-demo { margin-top: 6px; padding: 12px; border: 2px dashed #F59E0B; border-radius: 14px; background: #FFFBEB; display: grid; gap: 8px; }
.auth-demo p { margin: 0; color: #92400E; }
.auth-demo .btn { background: #fff; border-color: #F59E0B; color: #92400E; font-weight: 700; }

/* ============================================================
   Dias e horários de atendimento (por unidade) e horários livres
   ============================================================ */
.off-hours { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(100, 116, 139, .09) 0 6px, transparent 6px 12px), rgba(148, 163, 184, .07); }
.hours-field > .hours-help { display: block; margin: -2px 0 8px; line-height: 1.45; }
.hours-units { display: grid; gap: 10px; }
.hu { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.hu-name { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--title); font-size: 14px; }
.hu-name .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.hrow { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.hrow .weekdays { gap: 4px; }
.hrow .wd span { padding: 7px 0; font-size: 12.5px; }
.hrow-times { display: flex; align-items: center; gap: 8px; }
.hrow-times input { flex: 1; min-width: 0; }
.hu .link-btn { justify-self: start; }
.free-box { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.free-box summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--title); list-style: none; }
.free-box summary::-webkit-details-marker { display: none; }
.free-box summary::after { content: "›"; margin-left: auto; transform: rotate(90deg); color: var(--muted); font-size: 18px; transition: transform .15s; }
.free-box[open] summary::after { transform: rotate(-90deg); }
.free-box p { margin: 8px 0; }
.free-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.free-slot { display: grid; gap: 2px; padding: 9px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; text-align: center; font: inherit; color: var(--title); }
.free-slot small { font-size: 11.5px; color: var(--muted); }
.free-slot b { font-size: 15px; }
.free-slot:hover { border-color: var(--primary); background: var(--primary-soft); }
.free-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 14px; }
.rs-row { border-top: 0; padding-top: 4px; }
.rs-toggle { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-top: 6px; padding: 4px 10px 4px 6px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font: 600 12px var(--font); cursor: pointer; }
.rs-toggle i { width: 26px; height: 15px; border-radius: 99px; background: #CBD5E1; position: relative; transition: background .2s; }
.rs-toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.rs-toggle.on { color: #047857; border-color: #A7F3D0; background: #ECFDF5; }
.rs-toggle.on i { background: #10B981; }
.rs-toggle.on i::after { transform: translateX(11px); }

/* Senha: rótulo, botão de ver a senha e regras de senha forte */
.field > label:first-child { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--primary); background: var(--primary-soft); }
.pw-eye:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.pw-rules { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 4px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 6px; }
.pw-rules li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid #CBD5E1; box-sizing: border-box; }
.pw-rules li.ok { color: #047857; }
.pw-rules li.ok::before { content: "✓"; display: grid; place-items: center; border: 0; background: #10B981; color: #fff; font-size: 9px; font-weight: 800; }
@media (max-width: 380px) { .pw-rules { grid-template-columns: 1fr; } }
.setup-rs { grid-column: 1 / -1; margin: 0 0 8px; }
/* Filtro de pacientes por usuário */
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -2px 0 14px; padding: 2px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--title); font: 600 13px var(--font); cursor: pointer; }
.fchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.fchip small { padding: 0 6px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 11.5px; }
.fchip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.fchip.on small { background: rgba(255, 255, 255, .22); color: #fff; }

/* Cartões do financeiro: explicação de cada um e cartão clicável */
button.kpi { text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
button.kpi:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.kpi-help { margin: 6px 0 0; padding-top: 8px; border-top: 1px dashed var(--border); font-size: 12px; line-height: 1.45; color: var(--muted); }
.kpi-help u { text-decoration: none; color: var(--primary); font-weight: 600; }
.kpi.main .kpi-help { border-color: rgba(255, 255, 255, .14); color: #CBD5E1; }
.kpi.pro b { color: var(--primary); }
.fee-rows { list-style: none; display: grid; gap: 8px; margin: 0 0 12px; padding: 0; }
.fee-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.fr-m, .fr-v { display: grid; gap: 2px; }
.fr-m { grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.fr-m i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); grid-row: span 2; }
.fr-m small, .fr-v small { color: var(--muted); font-size: 12px; }
.fr-v { text-align: right; }
.fr-v b { color: var(--danger); }
.fee-total { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); margin: 0 0 12px; }
.fee-total b { color: var(--danger); }

/* ============================================================
   Acesso do profissional (conta da equipe): só consulta
   ============================================================ */
.team-mode .new-btn, .team-mode .fab, .team-mode .rail-add, .team-mode .top-search,
.team-mode [data-action="new-staff"], .team-mode [data-action="new-client"],
.team-mode [data-action="edit-profile"], .team-mode .rs-toggle { display: none !important; }
.team-mode .day-col { cursor: default; }
.team-status { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; color: var(--muted); }
.team-status b { display: inline-flex; align-items: center; gap: 6px; color: var(--title); }
.team-status b i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.team-wait { max-width: 560px; margin: 40px auto; display: grid; gap: 12px; }
/* Tela de entrada: escolha entre acesso da empresa e acesso do profissional */
.access-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 2px 0 10px; }
.access-pick button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); text-align: left; cursor: pointer; font: inherit; color: var(--title); }
.access-pick button b { font: 600 14.5px var(--font-display); }
.access-pick button .ic { color: var(--muted); flex: none; }
.access-pick button.on .ic { color: var(--primary); }
.access-pick button small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.access-pick button.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.access-pick button.on b { color: var(--primary); }

/* Tela de entrada: Pessoal e Comercial em faixas horizontais, como Administrador e Profissional */
.auth-card .acc-types { grid-template-columns: 1fr; gap: 8px; margin: 2px 0 12px; }
.auth-card .acc-type span { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 12px; border-width: 1.5px; }
.auth-card .acc-type span .ic { flex: none; color: var(--muted); }
.auth-card .acc-type b { font-size: 14.5px; }
.auth-card .acc-type small { margin-left: auto; text-align: right; }
.auth-card .acc-type input:checked + span .ic { color: var(--primary); }
.auth-card .acc-type input:checked + span b { color: var(--primary); }

/* Caixa de entrar e criar conta: no computador, em duas colunas (marca à esquerda, formulário à direita) */
.auth-side, .auth-main { display: grid; gap: 4px; min-width: 0; }
.auth-side { justify-items: center; text-align: center; }
.beta-badge { justify-self: center; margin: 4px 0 10px; padding: 4px 12px; border-radius: 99px; background: #FEF3C7; color: #92400E; font: 600 12px var(--font); }
.auth-points { display: none; }
@media (min-width: 880px) {
  .auth-card { max-width: 900px; grid-template-columns: 340px minmax(0, 1fr); padding: 0; overflow: hidden; gap: 0; }
  .auth-side { align-content: center; justify-items: start; text-align: left; gap: 8px; padding: 44px 36px; color: #DBEAFE;
    background: radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(160deg, #1E3A8A, #2563EB); }
  .auth-side img { justify-self: start; box-shadow: 0 10px 24px rgba(2, 6, 23, .3); }
  .auth-card .auth-side h1 { text-align: left; color: #fff; font-size: 34px; margin-top: 10px; }
  .auth-card .auth-side h1 span { color: #93C5FD; }
  .auth-card .auth-side .tagline { text-align: left; color: #DBEAFE; font-size: 15px; margin: 0; }
  .auth-side .beta-badge { justify-self: start; margin: 6px 0 0; background: rgba(254, 243, 199, .95); }
  .auth-points { display: grid; gap: 12px; list-style: none; margin: 22px 0 0; padding: 0; font-size: 14px; color: #EFF6FF; }
  .auth-points li { display: flex; align-items: center; gap: 10px; }
  .auth-points .ic { flex: none; color: #93C5FD; }
  .auth-main { padding: 32px 36px 28px; align-content: center; }
}
.beta-chip { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: #FEF3C7; color: #92400E; font: 700 11px var(--font); letter-spacing: .02em; }

/* Selo "Em breve" ao lado de funções ainda não liberadas */
.soon-chip { margin-left: 6px; vertical-align: middle; }

/* Sinal: quanto falta pagar */
.deposit-rest { display: grid; gap: 2px; align-content: center; margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); font-size: 13px; }
.deposit-rest small { color: var(--muted); font-size: 11.5px; }
.deposit-row .deposit-rest { align-self: end; min-height: 44px; }
