/* ---------- Tipos de letra (servidos localmente) ---------- */
/* Italiana: a letra do logótipo (títulos). Montserrat: a letra de "Beauty Ateliê" (texto). */
@font-face {
  font-family: "Italiana";
  src: url("/fonts/italiana/italiana-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/montserrat-latin-300-normal.woff2") format("woff2");
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/montserrat-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}

/* ---------- Tokens ---------- */
/* Tema Inês Paixão · Beauty Ateliê (cores do logótipo): café, taupe, bege e creme.
   Luxo discreto: fundo creme, cartões claros com filete fino, títulos em Italiana.
   Para afinar cores, basta mudar estas variáveis. */
:root {
  --cafe: #3e2c22;          /* café: texto e botões */
  --taupe: #8a6a4f;         /* taupe: preços, seleção, destaques */
  --bege: #d8c3a5;          /* bege: filetes e detalhes */
  --creme: #efe7dc;         /* creme: fundos suaves */
  --bg: #f7f2ec;
  --bg-2: #efe7dc;
  --surface: #fffdfa;
  --surface-2: #faf6f1;
  --line: #e8ddd0;
  --line-strong: #d8c3a5;
  --text: #3e2c22;
  --muted: #7d6450;
  --primary: #3e2c22;
  --primary-hover: #2c1f18;
  --primary-ink: #f7f2ec;
  --accent: #8a6a4f;
  --accent-ink: #ffffff;
  --accent-soft: #f1e8dd;
  --accent-line: #d8c3a5;
  --nude: #efe7dc;
  --gold: #8a6a4f;
  --gold-soft: #f1e8dd;
  --spark: #b89a78;
  --sage: #b89a78;          /* dias com vagas */
  --sage-soft: #f1e8dd;
  --ok: #5f7a55;
  --danger: #a3402f;
  --danger-soft: #f6e4df;
  --disabled: #cbbcae;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(62, 44, 34, .04), 0 14px 36px rgba(62, 44, 34, .08);
  --shadow-soft: 0 1px 2px rgba(62, 44, 34, .03), 0 6px 18px rgba(62, 44, 34, .05);
  --display: "Italiana", "Didot", Georgia, serif;
  --serif: var(--display);
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --focus: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--accent);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; outline: none; }
main:focus, main:focus-visible { box-shadow: none; }
[hidden] { display: none !important; }
a { color: var(--accent); }
img { max-width: 100%; }
::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--primary); color: var(--primary-ink); padding: 10px 14px; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 246, 232, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.back-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer; transition: background .2s, border-color .2s;
}
.back-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.brand-name { margin: 0; font: 500 1.4rem/1.05 var(--serif); letter-spacing: .04em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabs { display: flex; gap: 6px; }
.tab {
  font: 500 .9rem var(--sans); color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px;
}
.tab[aria-current="page"] { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
.tab-ghost { border-color: transparent; }

/* ---------- Cartão flutuante dos dados (passo 1) ---------- */
.step-float { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 28px 0 40px; }
.float-card {
  width: 100%; max-width: 440px; padding: 30px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow);
  animation: float-in .5s cubic-bezier(.2, .8, .2, 1);
}
.float-title { font: 400 2.2rem/1.05 var(--serif); margin: 0; outline: none; text-align: center; letter-spacing: .005em; }
.float-title::after { content: ""; display: block; width: 36px; height: 1px; background: var(--accent-line); margin: 14px auto 0; }
.float-lede { margin: 0 0 4px; text-align: center; font-size: .95rem; }
@keyframes float-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.summary-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 500;
}

.step { padding: 24px 0 32px; animation: rise .3s ease-out; }
.step-float { padding-top: 28px; }
.summary-bar:not([hidden]) + .step { padding-top: 10px; }
.step-title { font: 400 2.1rem/1.1 var(--serif); margin: 6px 0 18px; outline: none; letter-spacing: .005em; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step, .float-card { animation: none; } * { scroll-behavior: auto !important; } }

.step-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-top: 20px; }
.btn-block { width: 100%; margin-top: 6px; }
.review-list { display: grid; grid-template-columns: auto 1fr; gap: 12px 0; margin: 0; }
.review-list dt { color: var(--muted); font-size: .9rem; }
.review-list dd { margin: 0; padding-left: 16px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.review-list dt:nth-of-type(5) { padding-top: 12px; border-top: 1px solid var(--line); }
.review-list dd:nth-of-type(5) { padding-top: 12px; border-top: 1px solid var(--line); }
#booking-error { margin: 0 0 12px; }

/* ---------- Serviços ---------- */
.service-list { display: grid; gap: 10px; }
.service {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font: inherit; box-shadow: var(--shadow-soft);
  transition: border-color .2s, transform .2s, background .2s;
}
.service:hover { border-color: var(--accent-line); }
.service:active { transform: scale(.99); }
.service[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.service-name { font: 500 1.45rem/1.2 var(--serif); }
.service-meta { color: var(--muted); font-size: .85rem; grid-column: 1; }
.service-price { grid-row: 1 / span 2; grid-column: 2; font-weight: 500; font-size: 1.05rem; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Calendário ---------- */
.calendar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-month { margin: 0; font: 500 1.5rem var(--serif); text-transform: capitalize; }
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-weekdays span { text-align: center; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; min-height: 40px; border-radius: 50%; border: 1px solid transparent;
  background: transparent; color: var(--text); font: 500 .98rem var(--sans); cursor: pointer; position: relative;
  font-variant-numeric: tabular-nums;
}
.cal-day::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sage); }
.cal-day:hover:not(:disabled) { border-color: var(--accent-line); }
.cal-day[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.cal-day[aria-pressed="true"]::after { background: var(--primary-ink); }
.cal-day:disabled { background: transparent; color: var(--disabled); cursor: not-allowed; }
.cal-day:disabled::after { display: none; }
.cal-day.today { border-color: var(--line-strong); }
.cal-blank { aspect-ratio: 1; }
.cal-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; margin: 14px 0 0; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-free { background: var(--sage); }
.dot-off { background: var(--disabled); margin-left: 10px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: 300 1.45rem/1 var(--sans); cursor: pointer; transition: border-color .2s, background .2s;
}
.icon-btn:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- Horas ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot-grid-small { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.slot {
  min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: 500 1rem var(--sans); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color .2s, background .2s;
}
.slot-grid-small .slot { min-height: 40px; font-size: .9rem; }
.slot:hover { border-color: var(--accent-line); }
.slot[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.slot-group-label { grid-column: 1 / -1; margin: 10px 0 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 30px 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted);
}
.empty strong { display: block; color: var(--text); font: 500 1.4rem var(--serif); margin-bottom: 4px; }
.loading::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 1.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
label, .label-like, legend { font-weight: 500; font-size: .9rem; margin: 0; }
.opt { color: var(--muted); font-weight: 400; }
input, select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 400 1rem var(--sans);
  transition: border-color .2s, background .2s;
}
input::placeholder { color: var(--disabled); }
input:focus, select:focus { border-color: var(--accent-line); background: var(--surface); }
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); flex: none; margin: 2px 0 0; }
.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--muted); }
.field-check .field-error { grid-column: 1 / -1; }
.hint { margin: 0; font-size: .82rem; color: var(--muted); }
.field-error, .form-error { margin: 0; color: var(--danger); font-size: .86rem; font-weight: 500; }
.field-error:empty, .form-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0; }
.radio-row { display: grid; gap: 8px; }
.radio-row label { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 .98rem var(--sans); cursor: pointer; text-decoration: none; letter-spacing: .02em;
  transition: background .2s, border-color .2s, opacity .2s;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: .55; cursor: progress; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); }
.btn-danger { background: transparent; color: var(--danger); border-color: #ebc4bf; }
.btn-small { min-height: 38px; padding: 6px 15px; font-size: .86rem; }
.link-btn { background: none; border: 0; color: var(--muted); font: 500 .85rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }
.link { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Confirmação ---------- */
.ticket {
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 26px; padding: 30px 24px 26px; box-shadow: var(--shadow);
  position: relative; overflow: hidden; text-align: left;
}
.ticket::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--nude), var(--accent-line), var(--sage-soft));
}
.ticket-eyebrow { margin: 6px 0 0; text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; font-weight: 600; color: var(--accent); }
.ticket .step-title { color: var(--text); font-size: 2.3rem; }
.ticket .muted { color: var(--muted); }
.ticket-details { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; margin: 0 0 20px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticket-details dt { color: var(--muted); font-size: .9rem; }
.ticket-details dd { margin: 0; font-weight: 500; text-align: right; }

/* ---------- Gestão ---------- */
.admin-h1 { font: 400 2.6rem var(--serif); margin: 28px 0 14px; letter-spacing: .005em; }
/* Separadores sem deslocamento horizontal: no telemóvel quebram para uma segunda linha */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.subtab {
  flex: 1 1 auto; background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font: 500 .88rem var(--sans); cursor: pointer; min-height: 40px;
  white-space: nowrap; transition: background .2s, color .2s, border-color .2s;
}
@media (min-width: 640px) { .subtab { flex: none; } }
.subtab[aria-selected="true"] { color: var(--primary-ink); background: var(--primary); border-color: var(--primary); }
.panel { padding-bottom: 40px; }
.panel-title { font: 500 1.6rem var(--serif); margin: 0; }
.panel > .panel-title { margin: 28px 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-soft); }

.agenda-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.seg-btn { border: 0; background: transparent; color: var(--muted); font: 500 .88rem var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); }
.agenda-nav { display: flex; align-items: center; gap: 8px; }
.agenda-range { font: 500 1.45rem var(--serif); margin: 16px 0 10px; }
.agenda-day { margin-bottom: 20px; }
.agenda-day-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 500; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.bk {
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; box-shadow: var(--shadow-soft);
}
.bk-time { font-weight: 600; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bk-time small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.bk-main { min-width: 0; }
.bk-name { font-weight: 600; margin: 0; }
.bk-line { margin: 2px 0 0; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.bk-line a { color: var(--text); }
/* Ícones finos de telefone e email (máscara SVG: herdam a cor do texto) */
.bk-ico { display: flex; align-items: center; gap: 7px; }
.bk-ico::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--accent); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.bk-phone { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.bk-mail { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.badge { display: inline-block; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; padding: 2px 9px; border-radius: 999px; vertical-align: 2px; margin-left: 6px; }
.badge-online { background: var(--gold-soft); color: var(--accent); }
.badge-manual { background: var(--accent-soft); color: var(--accent); }
.badge-warn { background: var(--danger-soft); color: var(--danger); }
.badge-pending { background: var(--creme); color: var(--cafe); box-shadow: inset 0 0 0 1px var(--taupe); }
.bk.bk-pending { border-color: var(--taupe); border-style: dashed; }
.approval-list { display: grid; gap: 14px; margin-top: 4px; }
.approval-item .bk { margin: 0; }
.approval-item .bk-dialog-date { margin-bottom: 8px; }
.ticket-pending { margin: -6px 0 16px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.bk-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }

.svc-row { display: grid; gap: 10px; }
.svc-row .grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.svc-row .row-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc-row.inactive { opacity: .6; }
.svc-tools { border-top: 1px solid var(--line); padding-top: 10px; }
.svc-move { display: flex; gap: 8px; }
.icon-btn.small { width: 38px; height: 38px; font-size: 1.05rem; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }

.hours-rows { display: grid; gap: 10px; }
.hours-row { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.hours-row-head { display: flex; justify-content: space-between; align-items: center; }
.hours-row-head strong { font-weight: 600; }
.hours-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hours-times label { font-size: .76rem; color: var(--muted); font-weight: 500; }
.hours-times input { background: var(--surface); }
.hours-row.closed .hours-times { display: none; }

.log summary { cursor: pointer; color: var(--muted); font-weight: 500; padding: 8px 0; }
.log table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.log td, .log th { text-align: left; padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.log th { font-weight: 600; color: var(--muted); }

/* ---------- Rodapé, diálogo, toast ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; padding-bottom: 20px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

dialog {
  width: min(420px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface); color: var(--text); padding: 24px; box-shadow: 0 24px 60px rgba(62, 44, 34, .14);
}
dialog::backdrop { background: rgba(62, 44, 34, .22); backdrop-filter: blur(3px); }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%);
  background: var(--primary); color: var(--primary-ink); padding: 12px 20px; border-radius: 999px; font-weight: 500;
  box-shadow: var(--shadow); transition: transform .3s, visibility .3s; z-index: 60; visibility: hidden; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.error { background: var(--danger); color: #fff; }

/* Páginas simples (opt-out) */
.simple-page { max-width: 560px; margin: 0 auto; padding: 56px 22px; }
.simple-page h1 { font: 400 2.2rem/1.15 var(--serif); }
.brand-mark { color: var(--accent); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .76rem; }

/* ---------- Ecrãs maiores ---------- */
@media (min-width: 640px) {
  .service-list { grid-template-columns: 1fr 1fr; }
  .bk { grid-template-columns: 80px 1fr auto; }
  .bk-actions { grid-column: auto; flex-direction: column; align-items: stretch; margin-top: 0; }
  .hours-row { grid-template-columns: 160px 1fr; align-items: center; }
  .hours-times { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 380px) {
  .grid-2, .svc-row .grid-3 { grid-template-columns: 1fr; }
}
.simple-logo { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Notificações da app (Gestão) ---------- */
.push-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.push-text { min-width: 0; flex: 1 1 200px; }
.push-title { margin: 0 0 2px; font-weight: 600; }
.push-text p.muted { margin: 0; }
.push-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.push-card.on { border-color: var(--accent-line); }

/* Marcação acabada de chegar (atualização automática da agenda) */
.bk-new { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.bk-new .bk-name::after { content: "nova"; margin-left: 8px; font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; background: var(--accent-soft); color: var(--accent); padding: 2px 9px; border-radius: 999px; vertical-align: 2px; }
.agenda-nav[hidden] { display: none !important; }

.agenda-day-title { gap: 10px; }
.agenda-day-title span:last-child { white-space: nowrap; }

/* ---------- Agenda: vista de mês ---------- */
.seg-btn { padding: 8px 13px; }
.month-card { padding: 14px; }
.month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month-wd { text-align: center; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding: 2px 0 4px; }
.month-day {
  position: relative; aspect-ratio: 1; min-height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 500 .92rem var(--sans); cursor: pointer; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.month-num { line-height: 1; }
.month-day:hover { border-color: var(--line-strong); }
.month-day.has { background: var(--accent-soft); border-color: var(--accent-line); }
.month-day.off { background: transparent; color: var(--disabled); border-style: dashed; }
.month-day.past { opacity: .5; }
.month-day.today { box-shadow: inset 0 0 0 1.5px var(--primary); }
.month-count {
  min-width: 18px; height: 16px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: 600 .64rem/16px var(--sans); text-align: center;
}
.month-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 12px 2px 4px; }
.month-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); vertical-align: -1px; }
.lg-has { background: var(--accent-soft); border-color: var(--accent-line); }
.lg-free { background: var(--surface); }
.lg-off { border-style: dashed; }
.month-total { margin: 4px 2px 0; }

/* ---------- Janela de confirmação ---------- */
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #a52c22; }
.confirm-text { margin: 0; color: var(--text); line-height: 1.55; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.confirm-actions .btn { flex: 1 1 140px; }

/* ---------- Conta ---------- */
.account-sessions { display: grid; gap: 10px; }
.account-sessions .panel-title { margin: 0; }
.account-sessions p { margin: 0; }

/* ---------- Verificação em dois passos ---------- */
.twofa { display: grid; gap: 12px; }
.twofa .panel-title { margin: 0; }
.twofa-status { margin: 0; font-weight: 600; color: var(--muted); }
.twofa-status.on { color: var(--ok); }
.twofa-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.55; }
.twofa-qr { display: block; width: 200px; height: 200px; margin: 10px 0 6px; border-radius: 14px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.twofa-secret, .twofa-code-list code {
  font: 500 .92rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; word-break: break-all;
}
.twofa-code-list { margin: 0; padding-left: 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 16px; }
.otp-input { font: 500 1.4rem ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .2em; text-align: center; }

/* ---------- Definições (roda dentada) ---------- */
.settings-btn { display: grid; place-items: center; color: var(--text); }
.settings-btn[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.subtabs[hidden] { display: none !important; }
.settings-menu { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 24px; box-shadow: var(--shadow-soft); }
.settings-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 16px 18px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; min-height: 66px;
}
.settings-item:last-child { border-bottom: 0; }
.settings-item:hover { background: var(--surface-2); }
.settings-item span { display: grid; gap: 2px; }
.settings-item strong { font-weight: 600; }
.settings-item small { color: var(--muted); font-size: .84rem; }
.settings-item svg { color: var(--muted); flex: none; }
.logout-btn { margin-top: 8px; }

/* Interruptor (ligar/desligar) nas Definições */
.settings-switch { cursor: pointer; }
.settings-switch input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 48px; height: 28px; border-radius: 999px; background: var(--line); border: 1px solid var(--line);
  cursor: pointer; transition: background .2s;
}
.settings-switch input[type="checkbox"]::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(62, 44, 34, .2); transition: transform .2s;
}
.settings-switch input[type="checkbox"]:checked { background: var(--primary); border-color: var(--primary); }
.settings-switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
.settings-switch input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.settings-switch input[type="checkbox"]:disabled { opacity: .5; }

/* ---------- Pedidos de avaliação ---------- */
.review-card { display: grid; gap: 8px; border-color: var(--accent-line); }
.review-card p { margin: 0; }
.review-title { margin: 0; font: 500 1.4rem var(--serif); display: flex; align-items: center; gap: 10px; }
.review-count { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 .8rem/24px var(--sans); text-align: center; }
.review-count:empty { display: none; }
.review-req-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.review-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.review-who { display: grid; gap: 2px; min-width: 0; }
.review-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bk-done { opacity: .8; }
.bk-done .bk-time { color: var(--muted); }

/* Crédito no rodapé */
.footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
.credit { margin: 0; font-size: .76rem; color: var(--muted); opacity: .8; }
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.credit a:hover { color: var(--accent); }
.simple-page .credit { margin-top: 40px; }

/* Página de termos e privacidade */
.legal-page h2 { font: 500 1.4rem var(--serif); margin: 28px 0 6px; color: var(--text); }
.legal-page p, .legal-page li { line-height: 1.65; }
.legal-page ul { padding-left: 20px; margin: 6px 0; display: grid; gap: 6px; }
.legal-page li::marker { color: var(--accent-line); }
.field-check label a { color: var(--accent); }

/* ---------- Campos de data/hora no iPhone (Safari dá-lhes largura mínima própria) ---------- */
input[type="date"], input[type="time"] {
  -webkit-appearance: none; appearance: none;
  display: block; min-width: 0; max-width: 100%; width: 100%; text-align: left;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.grid-2 > *, .hours-times > *, .field { min-width: 0; }
/* Mensagens dentro de grelhas de horas ocupam a largura toda */
.slot-grid > p, .slots-note { grid-column: 1 / -1; margin: 0; }

/* ---------- Guardar no calendário (ecrã final) ---------- */
.cal-add { margin: 0 0 20px; }
.cal-add-title { margin: 0 0 8px; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cal-add-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-cal { min-height: 46px; padding: 8px 10px; font-size: .84rem; gap: 6px; line-height: 1.25; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-cal:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn-cal svg { flex: none; color: var(--accent); }
@media (max-width: 340px) { .cal-add-btns { grid-template-columns: 1fr; } }

/* ---------- Passo 1 compacto: cabe no ecrã do telemóvel sem deslizar ---------- */
html, body { overscroll-behavior: none; } /* sem o "salto" ao arrastar uma página que já cabe no ecrã */
body { min-height: 100dvh; }
.step-float { min-height: 0; padding: 18px 0; place-items: start center; }
.float-card { padding: 24px 20px 20px; gap: 12px; }
.float-card .field { gap: 4px; }
.float-card input:not([type="checkbox"]) { min-height: 46px; padding: 8px 14px; }
.float-title { font-size: 2rem; }
.float-title::after { margin-top: 10px; }
.float-lede { font-size: .88rem; line-height: 1.45; }
.float-card .field-check label { font-size: .86rem; }
.float-card .btn-block { margin-top: 4px; min-height: 50px; }
.site-footer { margin-top: 8px; }
.footer-inner { padding-top: 12px; padding-bottom: 14px; gap: 2px; }

.cal-add-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.cal-add-btns > [hidden] { display: none !important; }

/* Sem zoom nenhum (pinça ou toque duplo), sobretudo na app instalada: "pan-x pan-y" só deixa deslizar.
   ("manipulation" bloqueava o toque duplo mas ainda deixava fazer zoom com dois dedos.) */
html, body, a, button, input, select, textarea, label, summary, [role="button"], [role="tab"] { touch-action: pan-x pan-y; }
/* Campos com letra < 16px fazem o iPhone aproximar ao escrever: garantir 16px */
input, select, textarea { font-size: max(16px, 1em); }

/* Registo de notificações por páginas */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.pager-info { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager .icon-btn { width: 40px; height: 40px; font-size: 1.3rem; }

/* Agenda: botão do período (meio das setas). Fora do período atual fica realçado: tocar volta a hoje. */
#ag-today { min-width: 7.5rem; white-space: nowrap; }
#ag-today.is-away { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

/* =====================================================================
   Tema Inês Paixão · Beauty Ateliê: luxo discreto com o logótipo oval
   ===================================================================== */
body { background: var(--bg); }
.site-header { background: rgba(247, 242, 236, .94); border-bottom: 1px solid var(--line); box-shadow: none; }
.site-footer { background: var(--bg); border-top-color: var(--line); }
.back-btn { border-color: var(--line-strong); color: var(--text); background: var(--surface); }

/* Logótipo horizontal no topo (o nome em texto fica só para leitores de ecrã) */
.brand { gap: 0; }
.brand-logo { width: auto; height: 46px; border-radius: 0; background: none; box-shadow: none; }
.brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Logótipo principal por cima do formulário (passo 1) */
.step-float { gap: 14px; }
.hero-mark { width: 100%; max-width: 440px; text-align: center; padding: 6px 0 2px; animation: float-in .6s cubic-bezier(.2, .8, .2, 1); }
.hero-logo { display: block; width: 210px; max-width: 62%; height: auto; margin: 0 auto; }
.hero-tag { margin: 12px 0 0; font: 500 .66rem/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .hero-mark { animation: none; } }

.float-card { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; background: var(--surface); }
.float-title { font: 400 1.9rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.float-title::after { width: 56px; height: 1px; border-radius: 0; background: var(--bege); margin-top: 14px; }

/* Títulos dos passos: elegantes e centrados, com filete fino */
.step-eyebrow, .step-sub { margin: 0; text-align: center; }
.step-eyebrow { font: 500 .66rem/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
.step-title { font: 400 2rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--text); text-align: center; margin: 10px 0 6px; }
.step:not(.step-float) > .step-title::after { content: ""; display: block; width: 46px; height: 1px; background: var(--bege); margin: 14px auto 0; }
.step-sub { color: var(--muted); font-size: .88rem; margin: 0 0 18px; }
.step:not(.step-float) > .step-title:not(:has(+ .step-sub)) { margin-bottom: 20px; }
#slots-date { display: block; text-align: center; margin: 0 0 14px; font-size: .88rem; color: var(--muted); }
.summary-bar { justify-content: center; }
.summary-bar .chip { background: var(--surface); border-color: var(--line); color: var(--text); font-weight: 500; letter-spacing: .02em; }

/* Serviços */
.service { border: 1px solid var(--line); box-shadow: none; background: var(--surface); }
.service:hover { border-color: var(--bege); }
.service[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.service-name { font: 500 .98rem/1.3 var(--sans); color: var(--text); letter-spacing: .01em; }
.service-price { font: 500 1rem var(--sans); color: var(--accent); letter-spacing: .02em; }

/* Calendário e horas */
.calendar { border: 1px solid var(--line); box-shadow: none; background: var(--surface); }
.cal-month { font: 400 1.4rem var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.cal-weekdays span { font-weight: 500; }
.cal-day[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.cal-day.today { border-color: var(--bege); }
.slot { border-color: var(--line); background: var(--surface); font-weight: 500; }
.slot:hover { border-color: var(--bege); }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.slot-group-label { color: var(--accent); font-weight: 500; letter-spacing: .3em; }
.empty { background: var(--surface); border-color: var(--line-strong); }
.card { border: 1px solid var(--line); box-shadow: none; background: var(--surface); }

.btn { font: 500 .78rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.btn-primary { box-shadow: none; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-small, .btn-cal { text-transform: none; letter-spacing: .03em; font-size: .84rem; }
.btn-ghost { background: var(--surface); }
input, select { background: var(--surface-2); border-color: var(--line); }
input:focus, select:focus { border-color: var(--bege); background: var(--surface); }

/* Confirmação: bilhete com o monograma numa faixa café */
.ticket { border: 1px solid var(--line); padding-top: 0; background: var(--surface); }
.ticket::before { display: none; }
.ticket-band { margin: 0 -24px 20px; padding: 22px 0 18px; text-align: center; background: var(--cafe); }
.ticket-band img { display: block; width: 74px; height: auto; margin: 0 auto; }
.ticket-eyebrow { color: var(--accent); letter-spacing: .34em; font-weight: 500; }
.ticket .step-title { font-size: 2.1rem; text-align: left; margin: 8px 0 18px; }
.ticket .step-title::after { display: none; }
.script { display: block; font: 400 1.6rem/1.2 var(--display); text-transform: none; color: var(--accent); letter-spacing: .04em; margin-top: 6px; }

/* Gestão */
.admin-h1 { font: 400 2.3rem var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.panel-title, .agenda-range, .review-title { font-family: var(--display); font-weight: 400; color: var(--text); font-size: 1.45rem; text-transform: uppercase; letter-spacing: .06em; }
.agenda-day-title { color: var(--accent); font-weight: 500; letter-spacing: .2em; border-bottom-color: var(--line); }
.bk { border: 1px solid var(--line); box-shadow: none; background: var(--surface); }
.plain-list li { border-color: var(--line); background: var(--surface); }
.settings-menu { border-color: var(--line); box-shadow: none; }
.subtab { background: var(--surface); }
.seg-btn[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
.badge-online { background: var(--accent-soft); color: var(--accent); }
.badge-manual { background: var(--creme); color: var(--text); }
.month-day.has { background: var(--accent-soft); border-color: var(--bege); }
.simple-page { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; margin-top: 30px; margin-bottom: 30px; padding: 40px 24px; }
.simple-page h1, .legal-page h2 { font-family: var(--display); font-weight: 400; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.simple-page h1 { font-size: 2rem; }
.legal-page h2 { font-size: 1.25rem; }
.simple-logo { width: 72px; height: 72px; border-radius: 50%; box-shadow: none; }
.cal-legend, .month-legend, .month-total { color: var(--muted); }

/* ---------- Agenda: semana em grelha horária ---------- */
/* Ocupa mais largura do que o resto da página (no iPad/computador cabe a semana toda) */
.wk-outer { position: relative; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100vw - 24px)); }
/* Desliza só com o dedo (ou trackpad): sem barra de deslocamento visível */
.wk-scroll {
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: none; -ms-overflow-style: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.wk-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.wk { display: grid; grid-template-columns: 48px repeat(7, minmax(118px, 1fr)); width: max(100%, calc(48px + 7 * 118px)); }
.wk-corner, .wk-times { position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--line); }
.wk-h { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 8px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wk-corner { border-bottom: 1px solid var(--line); }
.wk-wd { font: 500 .62rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.wk-dn { font: 400 1.35rem/1.1 var(--display); color: var(--text); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.wk-h.today .wk-dn { background: var(--cafe); color: var(--primary-ink); }
.wk-h.today .wk-wd { color: var(--text); }
.wk-h.past { opacity: .55; }
.wk-times { position: sticky; }
.wk-times span { position: absolute; right: 6px; transform: translateY(-50%); font: 500 .62rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-times span:first-child { transform: translateY(2px); }
/* Coluna do dia: linhas de hora (cheias) e de meia hora (tracejado claro) */
.wk-day {
  position: relative; border-left: 1px solid var(--line); cursor: copy;
  background-image:
    repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(to bottom, transparent 0 44px, #f1e9df 44px 45px, transparent 45px 88px);
}
.wk-day.today { background-color: #fbf7f2; }
.wk-off {
  position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(135deg, #ece3d7 0 7px, #e4d8c9 7px 14px);
  display: flex; align-items: flex-start; justify-content: center; overflow: hidden;
}
.wk-off span { margin-top: 8px; font: 500 .6rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); background: rgba(250, 246, 241, .85); padding: 4px 7px; border-radius: 6px; }
.wk-bk {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 1px; padding: 5px 7px; overflow: hidden;
  border: 0; border-radius: 9px; background: var(--cafe); color: #f7f2ec; text-align: left; cursor: pointer;
  font: 400 .7rem/1.25 var(--sans); box-shadow: 0 2px 6px rgba(62, 44, 34, .18);
}
.wk-bk.online { background: var(--taupe); }
.wk-bk.done { opacity: .6; }
/* Pedido por aceitar: claro, com contorno tracejado (vê-se logo que falta decidir) */
.wk-bk.pending { background: var(--creme); color: var(--cafe); box-shadow: inset 0 0 0 1.5px var(--taupe); outline: 1px dashed var(--taupe); outline-offset: -4px; }
.wk-bk.new { box-shadow: 0 0 0 2px var(--bege), 0 2px 6px rgba(62, 44, 34, .18); }
.wk-bk b { font-weight: 600; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-t { font-variant-numeric: tabular-nums; opacity: .9; }
.wk-s { opacity: .85; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wk-now { position: absolute; left: -4px; right: 0; z-index: 3; height: 2px; background: #a3402f; pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #a3402f; }
.wk-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 4px 0; }
.wk-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.wk-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.lg-online { background: var(--taupe); }
.lg-manual { background: var(--cafe); }
.lg-pending { background: var(--creme); box-shadow: inset 0 0 0 1.5px var(--taupe); }
.wk-legend .lg-off { background: repeating-linear-gradient(135deg, #ece3d7 0 3px, #e4d8c9 3px 6px); border: 1px solid var(--line); }
.wk-hint { margin-left: auto; font-style: italic; }
@media (max-width: 640px) { .wk-hint { margin-left: 0; } }

/* Detalhe da marcação aberto a partir da grelha */
.bk-dialog { padding: 18px; width: min(460px, calc(100vw - 24px)); }
.bk-dialog .bk { margin: 0 0 12px; box-shadow: none; }
.bk-dialog-date { margin: 0 0 10px; font: 500 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }

/* Vista Dia: a mesma grelha, uma só coluna à largura da página (sem deslizar) */
.wk-outer-single { left: auto; transform: none; width: 100%; }
.wk.wk-single { grid-template-columns: 48px minmax(0, 1fr); width: 100%; }
.wk-single .wk-bk { font-size: .78rem; padding: 6px 10px; }
.wk-single .wk-bk b { font-size: .84rem; }
