/* Dra. Bárbara Carvalho — Medicina Estética
   Identidade minimalista: porcelana, tinta quase preta, filetes finos e champanhe */

:root {
  --bg: #F8F6F2;
  --card: #FFFFFF;
  --field: #FFFFFF;
  --soft: #F4EFE8;

  --accent: #9A7B56;
  --accent-dark: #6E5536;
  --accent-soft: #EFE7DC;
  --blue: #9A7B56;

  --line: #E7E2DA;
  --line-strong: #D3CCC1;
  --line-soft: #F0ECE6;

  --ink: #1D1B19;
  --ink-2: #6E6862;
  --ink-3: #A9A39B;
  --danger: #A84436;
  --ok: #4A7259;

  --radius: 2px;
  --radius-sm: 2px;

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: pan-x pan-y; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: lining-nums;
  /* iPhone com notch / Dynamic Island: o conteúdo não fica por baixo do relógio nem da câmara
     (com viewport-fit=cover; nos outros telemóveis estes valores são 0) */
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- topo ---------- */

.topbar {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
}
.topbar .spacer { flex: 1; }

/* logótipo: o logo da Dra. Bárbara (imagem). Grande: logo completo; pequeno: monograma + nome em texto */
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink); line-height: 1; }
.mono { order: 1; flex: none; display: block; background: url("../img/logo-mark.svg?v=2") center / contain no-repeat; }
.mono b, .mono i { display: none; }
.logo-hero { width: 232px; height: 160px; margin: 30px auto 26px; background: url("../img/logo.svg") center / contain no-repeat; }
.logo-hero::before, .logo-hero::after, .logo-hero .mono { display: none; content: none; }
.logo-small {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  text-align: left;
}
.logo-small .mono { grid-row: 1 / 3; width: 30px; height: 35px; }
.logo-small::before {
  content: "Bárbara Carvalho"; order: 2; align-self: end;
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: 15px; letter-spacing: .06em; white-space: nowrap;
}
.logo-small::after {
  content: "Medicina Estética"; order: 3; align-self: start; margin-top: 4px;
  font-family: var(--f-body); font-weight: 400; text-transform: uppercase;
  font-size: 8.5px; letter-spacing: .3em; color: var(--ink-2); white-space: nowrap;
}
.logo-link { display: block; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon-btn {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.6; }

/* ---------- layout ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 14px;
}
.card.tight { padding: 16px 20px; }

.panel-title { margin: 14px 0 18px; }

h1, h2, h3 { margin: 0; line-height: 1.15; }
.h-display {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  font-size: clamp(30px, 8vw, 38px);
  letter-spacing: -.005em;
}
.h-section {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--ink);
  font-size: 27px;
}
.script {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 8px;
}
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.lead { color: var(--ink-2); margin: 12px 0 22px; }
.sparkle-rule { width: 40px; height: 1px; background: var(--accent); margin: 16px auto 6px; }
.sparkle-rule > * { display: none; }

/* ---------- formulários ---------- */

.field { display: block; margin-bottom: 16px; min-width: 0; }
.field > span, .label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field > span em { font-style: normal; font-weight: 400; color: var(--ink-3); }

.input, select.input, textarea.input {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--field);
  outline: none;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--ink-3); }
.hint { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 80px 100px; gap: 10px; }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; margin: 8px 0 20px;
  font-size: 15px;
}
.check input, .radio input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 20px; height: 20px; margin: 2px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--field);
  display: grid; place-items: center;
  cursor: pointer;
}
.radio input { border-radius: 50%; margin: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.radio input:checked { border-color: var(--accent); }
.radio input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.radio { display: flex; align-items: center; gap: 10px; margin: 8px 0; cursor: pointer; }

.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #3A332C; border-color: #3A332C; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: transparent; }
.btn.sm { min-height: 38px; padding: 7px 14px; font-size: 14px; letter-spacing: .01em; text-transform: none; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(181, 72, 59, .4); }
.btn.danger:hover { background: #FBEDEB; }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- serviços (cliente) ---------- */

.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--line-strong); }
.choice.is-selected { border-color: var(--accent); background: var(--soft); }
.choice .name { font-weight: 500; font-size: 17px; }
.choice .meta { color: var(--ink-2); font-size: 14px; }
.choice .price { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 22px; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- calendário ---------- */

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { font-family: var(--f-display); font-weight: 500; font-size: 26px; color: var(--ink); }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; font-size: 20px; line-height: 1; }
.cal-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; letter-spacing: .14em; color: var(--ink-3); padding-bottom: 6px; }
.cal-day {
  width: 100%; min-width: 0;
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  font-size: 15px;
  color: var(--ink-3);
  padding: 0;
  position: relative;
}
.cal-day.is-free { color: var(--ink); font-weight: 500; cursor: pointer; background: var(--soft); }
.cal-day.is-free:hover { border-color: var(--accent); }
.cal-day.is-selected { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.cal-day.is-today { border-color: var(--ink-2); }
.cal-day.is-closed { color: var(--line-strong); }
.cal-day.has-appts { background: var(--soft); color: var(--ink); font-weight: 500; }
.cal-day .count {
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 10px; line-height: 16px; margin-top: 1px;
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 6px; }

/* ---------- horas ---------- */

.slot-group { margin-bottom: 18px; }
.slot-group h4 { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--field);
  font-size: 16px;
  cursor: pointer;
  transition: border-color .15s;
}
.slot:hover { border-color: var(--accent); }
.slot.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.slots.compact { grid-template-columns: repeat(4, 1fr); }
.slots.compact .slot { min-height: 40px; font-size: 14px; }

/* ---------- resumo / confirmação ---------- */

.summary { margin: 20px 0; border-top: 1px solid var(--line); padding: 4px 0 0; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.summary dt, .summary .k { color: var(--ink-2); }
.summary dd, .summary .v { margin: 0; font-weight: 500; text-align: right; }

.confirm-card { border-top: 1px solid var(--accent); }
.confirm-card .h-display { line-height: 1.1; }
.cal-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 18px; }

/* ---------- rodapé ---------- */

.footer {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 20px 16px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}
.footer p { margin: 2px 0; }
.footer a { color: var(--ink-2); }
.footer .credit { margin-top: 10px; font-size: 12px; letter-spacing: .02em; color: var(--ink-3); }
.footer .credit a { color: var(--ink-3); }

/* ---------- avisos ---------- */

.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: 15px; border-left: 2px solid; }
.alert.error { background: #F9EEEC; color: #8A3329; border-color: var(--danger); }
.alert.ok { background: #EAF4EE; color: #2D5E45; border-color: var(--ok); }
.alert.info { background: var(--soft); border-color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: var(--radius-sm);
  font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s;
  z-index: 50; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

.empty { text-align: center; color: var(--ink-2); padding: 10px 0; }
.loading { text-align: center; color: var(--ink-3); padding: 30px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- gestão ---------- */

.tabs { display: flex; gap: 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab {
  flex: 1 1 auto;
  min-height: 44px; padding: 8px 10px; white-space: nowrap;
  border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  background: transparent;
  font-weight: 500; font-size: 14px;
  color: var(--ink-2);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 16px;
  max-width: 100%; overflow-x: auto;
}
.seg a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.seg a.is-active { background: var(--ink); color: #fff; }

.navrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.navrow .btn { flex: 1; }

.day-head {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--accent);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding: 0 2px 8px; margin: 24px 0 12px;
}
.day-head span:last-child { color: var(--ink-3); }

.appt { display: grid; grid-template-columns: 72px 1fr; gap: 6px 14px; }
.appt .time { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1; }
.appt .time small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.appt .who { font-weight: 500; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.appt .info { color: var(--ink-2); font-size: 15px; }
.appt .info a { color: var(--ink); }
.appt .info div { margin-top: 2px; }
.appt .actions { grid-column: 1 / -1; margin-top: 10px; }
.appt.is-past { opacity: .55; }
.badge {
  font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.badge.manual { background: var(--line-soft); color: var(--ink-2); }

.menu { padding: 0; overflow: hidden; }
.menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.menu a:last-child { border-bottom: 0; }
.menu a:hover { background: var(--bg); }
.menu b { display: block; font-size: 16px; font-weight: 500; }
.menu small { color: var(--ink-2); font-size: 14px; }
.menu svg { color: var(--ink-3); flex: none; }

.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.day-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; background: var(--field); }
.day-box .flex-between { margin-bottom: 4px; }
.day-box b { text-transform: capitalize; font-weight: 500; }

.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }

.qr { width: 200px; height: 200px; margin: 10px auto; }
.qr svg { width: 100%; height: 100%; }
.code { font-family: ui-monospace, Menlo, monospace; background: var(--bg); border: 1px solid var(--line); padding: 8px 12px; border-radius: var(--radius-sm); word-break: break-all; font-size: 14px; }

.log-item { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.log-item:last-child { border-bottom: 0; }
.log-item time { display: block; color: var(--ink-3); font-size: 12px; }

.login-wrap { max-width: 400px; margin: 0 auto; }

/* ---------- política ---------- */

.prose h2 { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }

@media (max-width: 380px) {
  .tab { padding: 8px 6px; font-size: 13px; }
  .seg a { padding: 6px 10px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .slots.compact { grid-template-columns: repeat(3, 1fr); }
  .row3 { grid-template-columns: 1fr 70px 86px; }
  .card { padding: 22px 18px; }
  .appt { grid-template-columns: 62px 1fr; }
  .logo-small::before { font-size: 13.5px; letter-spacing: .04em; }
  .logo-small::after { font-size: 8px; letter-spacing: .24em; }
}

/* iPhone: os campos de data e hora têm largura mínima própria e texto centrado; ficam iguais aos outros */
.row2 > *, .row3 > * { min-width: 0; }
input.input[type="date"], input.input[type="time"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-width: 0; max-width: 100%;
  text-align: left; line-height: normal;
}
input.input[type="date"]::-webkit-date-and-time-value,
input.input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }

/* ---------- pedidos por aceitar e por arquivar ---------- */

.pend { border-color: var(--accent); }
.pend .h-section { display: flex; align-items: center; gap: 12px; }
.pend-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: #fff; font: 500 13px var(--f-body); letter-spacing: .04em; }
.pend .appt { border-style: dashed; }
.due { border-color: var(--line-strong); }
.due .pend-count { background: var(--ink); }
.badge.pending { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent); }
.badge.done { background: var(--line-soft); color: var(--ink-2); }
.badge.noshow { background: var(--ink); color: #fff; }
.appt.is-archived { background: #F2F0EC; border-color: var(--line); color: var(--ink-3); }
.appt.is-archived .who, .appt.is-archived .time { color: var(--ink-3); }

/* ---------- agenda em grelha (dia / semana) ---------- */

.tg { --tg-time: 44px; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* desliza só com o dedo: sem barras de deslocamento */
.tg-scroll { container-type: inline-size; --tg-colw: calc((100cqw - var(--tg-time)) / var(--vis, 3)); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: var(--tg-time); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; -ms-overflow-style: none; }
.tg-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.tg-grid { display: grid; grid-template-rows: auto auto; width: max-content; padding-bottom: 14px; }
.tg-corner, .tg-times { position: sticky; left: 0; z-index: 5; background: var(--card); }
.tg-corner { border-bottom: 1px solid var(--line); }
.tg-head { scroll-snap-align: start; text-align: center; padding: 9px 0 8px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-soft); }
.tg-head small { display: block; font-family: var(--f-body); letter-spacing: .2em; color: var(--ink-3); font-size: 10.5px; line-height: 1; }
.tg-head b { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: 5px; border-radius: 50%; font: 500 20px var(--f-display); color: var(--ink); }
.tg-head.is-today b { background: var(--ink); color: #fff; }
.tg-times { border-right: 1px solid var(--line-soft); }
.tg-times span { position: absolute; left: 6px; transform: translateY(-50%); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-3); }
.tg-times span:first-child { transform: none; }
/* uma linha fina por hora (1,15 px por minuto, como no script) */
.tg-col { position: relative; border-left: 1px solid var(--line-soft);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(60px * 1.15 - 1px), var(--line-soft) calc(60px * 1.15 - 1px), var(--line-soft) calc(60px * 1.15)); }
.tg-col.is-today { background-color: rgba(154, 123, 86, .045); }
/* pausas e folgas às riscas finas */
.tg-band { position: absolute; left: 0; right: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 6px;
  background: repeating-linear-gradient(135deg, rgba(29, 27, 25, .055) 0 5px, rgba(29, 27, 25, .015) 5px 10px); }
.tg-band.off { background: rgba(29, 27, 25, .035); }
.tg-band span { font-family: var(--f-body); text-transform: uppercase; letter-spacing: .2em; font-size: 9.5px; line-height: 1; color: var(--ink-2); background: var(--card); padding: 4px 7px; border-radius: 2px; }
.tg-appt { position: absolute; z-index: 2; display: block; text-align: left; overflow: hidden; padding: 5px 7px; border-radius: 3px; border: 0; border-left: 2px solid var(--accent-dark); cursor: pointer; font-family: var(--f-body); line-height: 1.2; color: #fff; background: var(--accent); }
.tg-appt b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-appt small { display: block; font-size: 11px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-appt.manual { background: var(--ink); border-left-color: #000; }
.tg-appt.pending { background: var(--card); color: var(--ink); border: 1px dashed var(--accent); border-left: 2px solid var(--accent); }
.tg-appt.archived { background: #D9D4CC !important; color: #fff; border-left-color: #BDB6AC; }
.tg-now { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--danger); z-index: 3; }
.tg-now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); }

/* ---------- detalhe de uma marcação (folha que sobe) ---------- */

.sheet-ov { position: fixed; inset: 0; z-index: 60; background: rgba(29, 27, 25, .32); display: flex; align-items: flex-end; justify-content: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.sheet { width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; scrollbar-width: none; background: var(--bg); border-radius: 4px; padding: 20px 16px 16px; box-shadow: 0 40px 90px -30px rgba(29, 27, 25, .45); }
.sheet::-webkit-scrollbar { display: none; }
.sheet .appt { margin-bottom: 12px; }

/* ---------- tratamentos por categoria (página das pacientes) ---------- */

[hidden] { display: none !important; }
.cat-head { font-family: var(--f-body); font-weight: 400; text-transform: uppercase; letter-spacing: .28em; font-size: 12px; color: var(--accent); margin: 26px 2px 10px; display: flex; align-items: center; gap: 14px; }
.cat-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.choice .price.on-request { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 18px; color: var(--ink-2); }
.price-note { text-align: center; font-size: 13px; color: var(--ink-2); margin: 22px 8px 4px; font-style: normal; }
.price-note::before { content: ""; display: block; width: 40px; height: 1px; background: var(--accent); margin: 0 auto 14px; }

/* ---------- categoria do serviço (gestão): botões com as categorias existentes ---------- */

.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.cat-pick:empty { display: none; }
.cat-chip { min-height: 36px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--field); color: var(--ink-2); font: 400 14px var(--f-body); cursor: pointer; }
.cat-chip:hover { border-color: var(--accent); color: var(--ink); }
.cat-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- guardar automático dos tratamentos ---------- */

.svc-foot { display: flex; justify-content: flex-end; min-height: 18px; margin-top: 8px; }
.save-state { font-size: 12.5px; letter-spacing: .04em; color: var(--ink-3); }
.save-state.ok { color: var(--ok); }
.save-state.err { color: var(--danger); }
.svc-err .alert { margin: 10px 0 0; }
