/* Catarina Ribeiro — Nail Designer
   Identidade: riscas verticais rosa/creme + coral */

:root {
  --stripe-pink: #E5B3B7;
  --stripe-cream: #F1DFC9;
  --stripe-w: 44px;

  --coral: #E4643F;
  --coral-dark: #C94F2C;
  --coral-soft: #FBE3D9;
  --pink: #E5B3B7;
  --pink-soft: #F8E4E3;

  --card: #FFF8F0;
  --card-2: #FDF0E4;
  --field: #FFFDF9;
  --line: rgba(228, 100, 63, .28);
  --line-soft: rgba(91, 42, 31, .12);

  --ink: #5B2A1F;
  --ink-2: #8A5A4C;
  --ink-3: #B08779;
  --danger: #C2392B;
  --ok: #3F8A5A;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(91, 42, 31, .28);

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-label: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --f-script: "Sacramento", cursive;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
:root { color-scheme: only light; }
html { -webkit-text-size-adjust: 100%; }
/* App de gestão: sem zoom de pinça nem toque duplo */
html.no-zoom, html.no-zoom body { 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;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--stripe-cream);
  /* riscas centradas: uma risca rosa a meio, por isso ficam simétricas */
  background-image: linear-gradient(90deg,
    var(--stripe-cream) 0 25%, var(--stripe-pink) 25% 75%, var(--stripe-cream) 75% 100%);
  background-size: calc(var(--stripe-w) * 2) 100%;
  background-position: center top;
}

a { color: var(--coral-dark); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- topo ---------- */

.topbar {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
}
.topbar .spacer { flex: 1; }

.logo {
  display: block;
  aspect-ratio: 645 / 348;
  background-color: var(--coral);
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
}
.logo-hero { width: min(78vw, 360px); margin: 18px auto 6px; }
.logo-small { height: 44px; }
.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: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--coral);
  cursor: pointer;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.icon-btn:hover { background: var(--coral-soft); }
.icon-btn.is-active { background: var(--coral); color: var(--card); border-color: var(--coral); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- layout ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px 32px;
}

.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin-bottom: 16px;
}
.card.tight { padding: 16px 18px; }

.panel-title {
  display: inline-block;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 20px 6px;
  margin: 6px 0 14px;
  box-shadow: var(--shadow);
}

h1, h2, h3 { margin: 0; line-height: 1.1; }
.h-display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--coral);
  font-size: clamp(26px, 7vw, 34px);
}
.h-section {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  color: var(--coral);
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.script {
  font-family: var(--f-script);
  font-weight: 400;
  color: var(--coral);
  font-size: 2.1em;
  line-height: .9;
  text-transform: none;
  letter-spacing: 0;
}
.eyebrow {
  font-family: var(--f-label);
  font-size: 18px;
  letter-spacing: .22em;
  color: var(--coral);
  text-transform: uppercase;
  margin: 0 0 4px;
}
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.lead { color: var(--ink-2); margin: 10px 0 18px; }
.sparkle-rule {
  display: flex; align-items: center; gap: 10px;
  color: var(--coral); margin: 12px auto 4px; width: 120px;
}
.sparkle-rule::before, .sparkle-rule::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }

/* ---------- formulários ---------- */

.field { display: block; margin-bottom: 14px; min-width: 0; }
.field > span, .label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  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: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  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(--coral); box-shadow: 0 0 0 4px rgba(228, 100, 63, .14); }
.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 18px;
}
.check input, .radio input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 24px; height: 24px; margin: 0;
  border: 1.5px solid var(--coral);
  border-radius: 7px;
  background: var(--field);
  display: grid; place-items: center;
  cursor: pointer;
}
.radio input { border-radius: 50%; }
.check input:checked { background: var(--coral); }
.check input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--card); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.radio input:checked::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.radio { display: flex; align-items: center; gap: 10px; margin: 8px 0; cursor: pointer; }

.switch { position: relative; width: 58px; height: 34px; 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(--stripe-cream); border: 1.5px solid var(--line); border-radius: 999px; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + span { background: var(--coral); border-color: var(--coral); }
.switch input:checked + span::after { transform: translateX(24px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(228, 100, 63, .2); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--coral);
  background: var(--coral);
  color: var(--card);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--coral-dark); }
.btn.ghost:hover { background: var(--coral-soft); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(194, 57, 43, .45); }
.btn.danger:hover { background: #FBE1DD; }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn svg { width: 20px; height: 20px; 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: 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice:hover, .choice.is-selected { border-color: var(--coral); background: var(--pink-soft); }
.choice .name { font-weight: 700; font-size: 18px; }
.choice .meta { color: var(--ink-2); font-size: 14px; }
.choice .price { font-family: var(--f-display); font-weight: 800; color: var(--coral); font-size: 19px; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow);
}

/* ---------- calendário ---------- */

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { font-family: var(--f-label); font-weight: 400; font-size: 26px; letter-spacing: .1em; color: var(--coral); text-transform: uppercase; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--field); color: var(--coral); cursor: pointer; font-size: 20px; line-height: 1; }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-family: var(--f-label); letter-spacing: .1em; color: var(--ink-2); font-size: 15px; padding-bottom: 4px; }
.cal-day {
  width: 100%; min-width: 0;
  aspect-ratio: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: transparent;
  font-weight: 600; font-size: 16px;
  color: var(--ink-3);
  padding: 0;
  position: relative;
}
.cal-day.is-free { background: var(--field); border-color: var(--line); color: var(--ink); cursor: pointer; }
.cal-day.is-free:hover { border-color: var(--coral); }
.cal-day.is-selected { background: var(--coral) !important; border-color: var(--coral) !important; color: var(--card) !important; }
.cal-day.is-today { outline: 2px solid var(--coral); outline-offset: 1px; }
.cal-day.is-closed { border: 1.5px dashed var(--line-soft); color: var(--ink-3); }
.cal-day.has-appts { background: var(--pink-soft); border-color: var(--coral); color: var(--ink); }
.cal-day .count {
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--coral); color: var(--card);
  font-size: 12px; line-height: 20px; margin-top: 2px;
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.cal-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* ---------- horas ---------- */

.slot-group { margin-bottom: 16px; }
.slot-group h4 { font-family: var(--f-label); font-weight: 400; letter-spacing: .2em; color: var(--coral); font-size: 18px; margin: 0 0 8px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot {
  min-height: 52px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--field);
  font-weight: 700; font-size: 18px;
  cursor: pointer;
}
.slot:hover { border-color: var(--coral); }
.slot.is-selected { background: var(--coral); color: var(--card); border-color: var(--coral); }
.slots.compact { grid-template-columns: repeat(4, 1fr); }
.slots.compact .slot { min-height: 42px; font-size: 15px; }

/* ---------- resumo / confirmação ---------- */

.summary { margin: 18px 0; border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); padding: 10px 0; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.summary dt, .summary .k { color: var(--ink-2); }
.summary dd, .summary .v { margin: 0; font-weight: 700; text-align: right; }

.confirm-card { position: relative; overflow: hidden; }
.confirm-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: linear-gradient(90deg, var(--coral) 0 25%, var(--stripe-pink) 25% 75%, var(--coral) 75% 100%) center / 44px 100%;
}
.cal-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 16px; }

/* ---------- rodapé ---------- */

.footer {
  width: 100%;
  background: var(--card);
  border-top: 1.5px solid var(--line);
  padding: 16px;
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
}
.footer p { margin: 2px 0; }
.footer .dev { margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.footer .dev a { color: inherit; }

/* ---------- avisos ---------- */

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin: 0 0 14px; font-size: 15px; }
.alert.error { background: #FBE1DD; color: #8E2A1F; border: 1.5px solid rgba(194, 57, 43, .3); }
.alert.ok { background: #E5F2E8; color: #285A3A; border: 1.5px solid rgba(63, 138, 90, .3); }
.alert.info { background: var(--pink-soft); border: 1.5px solid var(--line); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--card);
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  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-2); padding: 30px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- gestão ---------- */

.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tab {
  flex: 1 1 auto;
  min-height: 46px; padding: 8px 12px; white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font-weight: 700; font-size: 14px;
  color: var(--ink-2);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.tab.is-active { background: var(--coral); border-color: var(--coral); color: var(--card); }

.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  margin-bottom: 14px; box-shadow: var(--shadow);
  max-width: 100%; overflow-x: auto;
}
.seg a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.seg a.is-active { background: var(--pink); color: var(--ink); }

.navrow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.navrow .btn { flex: 1; }
.navrow .icon-btn { box-shadow: none; }

.day-head {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  font-family: var(--f-label); letter-spacing: .14em; font-size: 18px; color: var(--coral);
  text-transform: uppercase;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 14px 6px; margin: 18px 0 10px;
}
.day-head span:last-child { color: var(--ink-2); }

.appt { display: grid; grid-template-columns: 76px 1fr; gap: 6px 14px; }
.appt .time { font-weight: 800; font-size: 20px; line-height: 1.1; }
.appt .time small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.appt .who { font-weight: 800; 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: 8px; }
.appt.is-past { opacity: .6; }
.badge {
  font-family: var(--f-label); font-weight: 400; letter-spacing: .14em;
  font-size: 13px; padding: 3px 9px 1px; border-radius: 999px;
  background: var(--coral-soft); color: var(--coral-dark);
}
.badge.manual { background: var(--pink-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: 1.5px solid var(--line);
}
.menu a:last-child { border-bottom: 0; }
.menu a:hover { background: var(--pink-soft); }
.menu b { display: block; font-size: 17px; }
.menu small { color: var(--ink-2); font-size: 14px; }
.menu svg { color: var(--coral); flex: none; }

.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.day-box { border: 1.5px 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; }

.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(--field); border: 1.5px dashed var(--line); padding: 8px 12px; border-radius: 10px; 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: 420px; margin: 0 auto; }

/* ---------- política ---------- */

.prose h2 { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; color: var(--coral); font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }

@media (max-width: 380px) {
  .tab { padding: 8px 8px; font-size: 13px; }
  .seg a { padding: 8px 11px; }
  :root { --stripe-w: 36px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .slots.compact { grid-template-columns: repeat(3, 1fr); }
  .row3 { grid-template-columns: 1fr 70px 86px; }
  .card { padding: 20px 16px; }
  .appt { grid-template-columns: 64px 1fr; }
}

/* 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 ---------- */
.pend { border-color: var(--coral); }
.pend .h-section { display: flex; align-items: center; gap: 10px; }
.pend-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--coral); color: var(--card); font: 700 14px var(--f-body); }
.pend .appt { border-style: dashed; }
.badge.pending { background: var(--coral-soft); color: var(--coral-dark); border-color: var(--coral); }

/* ---------- agenda em grelha (dia / semana) ---------- */
.tg { --tg-time: 44px; margin-top: 10px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); 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; }
.tg-corner, .tg-times { position: sticky; left: 0; z-index: 5; background: var(--card); }
.tg-corner { border-bottom: 1.5px solid var(--line); }
.tg-head { scroll-snap-align: start; text-align: center; padding: 8px 0 7px; border-bottom: 1.5px solid var(--line); border-left: 1px solid var(--line-soft); }
.tg-head small { display: block; font-family: var(--f-label); letter-spacing: .12em; color: var(--ink-2); font-size: 14px; line-height: 1; }
.tg-head b { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: 4px; border-radius: 50%; font: 800 17px var(--f-display); color: var(--ink); }
.tg-head.is-today b { background: var(--coral); color: var(--card); }
.tg-times { position: sticky; border-right: 1px solid var(--line-soft); }
.tg-times span { position: absolute; left: 4px; transform: translateY(-50%); font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tg-times span:first-child { transform: none; }
.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(228, 100, 63, .04); }
.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(91, 42, 31, .07) 0 6px, rgba(91, 42, 31, .02) 6px 12px); }
.tg-band.off { background: rgba(91, 42, 31, .04); }
.tg-band span { font-family: var(--f-label); letter-spacing: .14em; font-size: 12px; line-height: 1; color: var(--ink-2); background: var(--card); padding: 3px 7px 2px; border-radius: 999px; }
.tg-appt { position: absolute; z-index: 2; display: block; text-align: left; overflow: hidden; padding: 5px 7px; border-radius: 10px; border: 0; cursor: pointer; font-family: var(--f-body); line-height: 1.2; color: var(--card); background: var(--coral); box-shadow: 0 4px 10px -6px rgba(91, 42, 31, .6); }
.tg-appt b { display: block; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-appt small { display: block; font-size: 11.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-appt.manual { background: var(--ink); }
.tg-appt.pending { background: var(--coral-soft); color: var(--ink); border: 1.5px dashed var(--coral); box-shadow: none; }
.tg-now { position: absolute; left: 0; right: 0; height: 2px; background: #D92D20; z-index: 3; }
.tg-now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #D92D20; }

/* ---------- janela de detalhe ---------- */
.sheet-ov { position: fixed; inset: 0; z-index: 60; background: rgba(91, 42, 31, .35); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.sheet { width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; scrollbar-width: none; background: var(--card); border-radius: 26px; padding: 18px 16px 16px; box-shadow: 0 30px 80px -20px rgba(91, 42, 31, .6); }
.sheet::-webkit-scrollbar { display: none; }
.sheet .appt { margin-bottom: 12px; box-shadow: none; }
.tg-grid { padding-bottom: 14px; }
/* marcações arquivadas: ficam na agenda, a cinzento */
.badge.done { background: #E4DEDA; color: #6F625C; }
.badge.noshow { background: var(--ink); color: var(--card); }
.due { border-color: var(--ink-2); }
.due .pend-count { background: var(--ink); }
.appt.is-archived { background: #EFEBE9; border-color: #DCD5D1; box-shadow: none; filter: grayscale(1); color: #8C817C; }
.appt.is-archived .who, .appt.is-archived .time { color: #8C817C; }
.tg-appt.archived { background: #C9C1BC !important; color: #fff; border: 0; box-shadow: none; }
