/* Aurora · painel da loja */
:root {
  --plum: #3a1631; --plum-2: #522346; --plum-3: #6b2f5b;
  --ink: #2b1426; --muted: #85707e; --line: #eee0e8; --line-2: #e2cfda;
  --bg: #fbf7fa; --card: #ffffff; --soft: #f7eef3;
  --rose: #c2457a; --rose-2: #a8366a; --rose-soft: #f8e1ea;
  --lilac: #8f74d0; --lilac-soft: #eee8fb;
  --gold: #c9a061; --gold-soft: #f6ecdb;
  --ok: #3f8f6b; --ok-soft: #e3f3ea; --warn: #b7791f; --warn-soft: #fcf1dc; --bad: #c0394b; --bad-soft: #fbe3e6;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', system-ui, -apple-system, Segoe UI, sans-serif;
  --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(58, 22, 49, .05), 0 8px 24px -12px rgba(58, 22, 49, .18);
  --side-w: 264px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--rose); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; margin: 0; line-height: 1.15; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide { display: none !important; }

/* ---------- estrutura ---------- */
.shell { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 40;
  background: radial-gradient(120% 60% at 0% 0%, #5a2550 0%, transparent 60%), var(--plum);
  color: #f6e9f1; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 28px/1 var(--serif); letter-spacing: .02em; }
.brand img { filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.side-close { display: none; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.side-store { margin: 8px 16px 14px; padding: 12px 14px; border-radius: var(--r); background: rgba(255,255,255,.06); border: 1px solid rgba(201,160,97,.28); }
.side-store b { display: block; font: 600 19px/1.2 var(--serif); color: #fff; }
.side-store span { font-size: 12.5px; color: #d9bfd0; word-break: break-all; }
.side-nav { display: flex; flex-direction: column; padding: 4px 10px; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: #ecd9e5; text-decoration: none; font-size: 15px; position: relative;
}
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.side-nav a.on::before { content: ''; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); }
.side-foot { margin-top: auto; padding: 18px 20px 24px; font-size: 12.5px; color: #c9aebf; }
.side-foot a { color: #f0d9a8; }
.side-shop { display: block; text-align: center; padding: 10px; border-radius: 12px; border: 1px solid rgba(201,160,97,.5); color: #f3dfb6 !important; text-decoration: none; margin-bottom: 14px; font-size: 14px; }
.side-shop:hover { background: rgba(201,160,97,.12); }

.ico { width: 19px; height: 19px; display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; opacity: .9; }
.ico-home { --i: 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.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.ico-cal { --i: 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.7' stroke-linecap='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E"); }
.ico-users { --i: 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.7' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.6 3.4-5.5 6.5-5.5s5.7 1.9 6.5 5.5'/%3E%3Cpath d='M16 4.8a3.4 3.4 0 0 1 0 6.4M18 14.8c1.8.7 3 2.3 3.5 5.2'/%3E%3C/svg%3E"); }
.ico-tag { --i: 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.7' stroke-linejoin='round'%3E%3Cpath d='M3 12.2V4a1 1 0 0 1 1-1h8.2L21 11.8 11.8 21z'/%3E%3Ccircle cx='8' cy='8' r='1.6'/%3E%3C/svg%3E"); }
.ico-team { --i: 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.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7' r='3.5'/%3E%3Cpath d='M5 21c.6-4 3.4-6.5 7-6.5s6.4 2.5 7 6.5'/%3E%3Cpath d='M9.5 14.8 12 18l2.5-3.2'/%3E%3C/svg%3E"); }
.ico-clock { --i: 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.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E"); }
.ico-store { --i: 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.7' stroke-linejoin='round'%3E%3Cpath d='M4 9.5V20h16V9.5M2.5 9.5 4.5 4h15l2 5.5c0 1.6-1.3 2.5-2.7 2.5S16 11.1 16 9.5c0 1.6-1.3 2.5-2.7 2.5h-2.6C9.3 12 8 11.1 8 9.5 8 11.1 6.6 12 5.2 12S2.5 11.1 2.5 9.5z'/%3E%3C/svg%3E"); }
.ico-chat { --i: 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.7' stroke-linejoin='round'%3E%3Cpath d='M4 19.5 5.3 16A8.5 8.5 0 1 1 8.4 19z'/%3E%3C/svg%3E"); }
.ico-star { --i: 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.7' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.7 5.6 6.1.8-4.4 4.3 1 6.1L12 17l-5.4 2.8 1-6.1-4.4-4.3 6.1-.8z'/%3E%3C/svg%3E"); }
.ico-user { --i: 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.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c.8-4.2 4-6.5 8-6.5s7.2 2.3 8 6.5'/%3E%3C/svg%3E"); }

.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 14px 28px; background: rgba(251, 247, 250, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 30px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--plum); border-radius: 2px; }
.page { padding: 26px 28px 80px; width: 100%; max-width: 1600px; margin: 0 auto; outline: none; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.scrim { display: none; }

.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 28px; font-size: 14px; border-bottom: 1px solid var(--line); }
.banner b { font-weight: 600; }
.banner .btn { margin-left: auto; }
.banner-demo { background: linear-gradient(90deg, var(--lilac-soft), var(--rose-soft)); }
.banner-trial { background: var(--gold-soft); }
.banner-bad { background: var(--bad-soft); color: #7e1d2b; }

@media (max-width: 960px) {
  .side { transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 20px 0 60px rgba(0,0,0,.25); width: min(86vw, 300px); }
  .shell.menu-open .side { transform: none; }
  .side-close { display: block; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(43,20,38,.4); z-index: 39; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .shell.menu-open .scrim { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .burger { display: flex; }
  .topbar { padding: 10px 16px; }
  .topbar h1 { font-size: 25px; }
  .page { padding: 18px 16px 90px; }
  .banner { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) { .side, .scrim { transition: none; } }

/* ---------- botões e formulários ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; font-weight: 500; font-size: 14.5px;
  text-decoration: none; white-space: nowrap; line-height: 1.2; min-height: 42px;
}
.btn:hover { border-color: var(--rose); color: var(--rose-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: linear-gradient(135deg, var(--rose), #a63c8e); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px rgba(194,69,122,.7); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); }
.btn-gold { background: var(--plum); color: #f3dfb6; border-color: var(--plum); }
.btn-gold:hover { color: #fff; border-color: var(--gold); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--soft); border-color: transparent; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.btn-sm { padding: 7px 14px; min-height: 36px; font-size: 13.5px; }
.btn-xs { padding: 5px 11px; min-height: 30px; font-size: 12.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-wa { color: #1f7a4d; }
.btn-wa:hover { border-color: #25d366; color: #1f7a4d; background: #e8f9ef; }

label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); min-width: 0; }
label.f > span { color: var(--ink); font-weight: 500; }
.f input, .f select, .f textarea, .inp {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font-size: 15px; min-height: 44px;
}
.f textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px var(--lilac-soft); }
.f input[type=color] { padding: 4px; height: 44px; cursor: pointer; }
.f .hint { font-size: 12.5px; color: var(--muted); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.full { grid-column: 1 / -1; }
@media (max-width: 720px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
@media (min-width: 721px) and (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 42px; height: 24px; border-radius: 99px; background: #ddc9d4; position: relative; flex: none; transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + i { background: var(--rose); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--lilac); outline-offset: 2px; }

.check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; cursor: pointer; padding: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--rose); }

/* ---------- blocos ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.panel-head h3 { flex: 1; min-width: 180px; }
.section-intro { margin: 0 0 20px; max-width: 70ch; color: var(--muted); }
.cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.cols > .panel + .panel { margin-top: 0; }
.stack > * + * { margin-top: 18px; }
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow); }
.stat b { display: block; font: 600 34px/1.1 var(--serif); color: var(--plum); }
.stat span { font-size: 13.5px; color: var(--muted); }
.stat.feature { background: linear-gradient(140deg, var(--plum), #5c2552); border-color: var(--plum); color: #fff; }
.stat.feature b { color: #f3dfb6; }
.stat.feature span { color: #e3c9d9; }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty b { display: block; font: 600 22px/1.2 var(--serif); color: var(--ink); margin-bottom: 6px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 500; background: var(--soft); color: var(--plum-3); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.lilac { background: var(--lilac-soft); color: #5d48a0; }
.pill.gold { background: var(--gold-soft); color: #8a6528; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .grow span { font-size: 13px; color: var(--muted); }
.row.click { cursor: pointer; border-radius: 12px; }
.row.click:hover { background: var(--soft); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--rose-soft); color: var(--rose-2); display: grid; place-items: center; font-weight: 600; flex: none; overflow: hidden; background-size: cover; background-position: center; }

/* Faixas que rolam para o lado (regra do Raphael) */
.hscroll-wrap { position: relative; min-width: 0; }
.hscroll { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 2px 2px 6px; cursor: grab; -webkit-overflow-scrolling: touch; }
.hscroll.dragging { cursor: grabbing; user-select: none; }
.hscroll > * { flex: none; }
.hscroll-wrap::before, .hscroll-wrap::after { content: ''; position: absolute; top: 0; bottom: 6px; width: 30px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 2; }
.hscroll-wrap::before { left: 0; background: linear-gradient(90deg, var(--fade, var(--bg)), transparent); }
.hscroll-wrap::after { right: 0; background: linear-gradient(-90deg, var(--fade, var(--bg)), transparent); }
.hscroll-wrap.more-left::before, .hscroll-wrap.more-right::after { opacity: 1; }
.panel .hscroll-wrap { --fade: #fff; }

.tabs .tab { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 14.5px; white-space: nowrap; }
.tabs .tab.on { background: var(--plum); border-color: var(--plum); color: #fff; }
.tabs { margin-bottom: 16px; }

.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; position: relative; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--soft); }

.search { position: relative; flex: 1; min-width: 200px; max-width: 420px; }
.search input { padding-left: 38px; }
.search::before { content: ''; position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- início ---------- */
.today { display: flex; flex-direction: column; gap: 10px; }
.appt-card { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; border-left: 4px solid var(--c, var(--rose)); cursor: pointer; }
.appt-card:hover { background: var(--soft); }
.appt-card .time { font: 600 22px/1 var(--serif); color: var(--plum); }
.appt-card .who b { display: block; font-weight: 500; }
.appt-card .who span { font-size: 13px; color: var(--muted); }
.appt-card .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .appt-card { grid-template-columns: 54px 1fr; } .appt-card .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.share-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(120deg, var(--rose-soft), var(--lilac-soft)); }
.share-box code { font: 500 14px/1.3 var(--sans); color: var(--plum); word-break: break-all; flex: 1; min-width: 200px; }
.bar { height: 8px; border-radius: 9px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--rose), var(--lilac)); }

/* ---------- agenda ---------- */
.agenda-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.agenda-bar .date-label { font: 600 24px/1.1 var(--serif); min-width: 0; flex: 1 1 220px; text-transform: none; }
.day-grid-wrap { overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; max-height: calc(100vh - 220px); position: relative; }
.day-grid { display: grid; position: relative; min-width: 100%; }
.day-grid .col-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line-2); padding: 10px 8px; font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 8px; justify-content: center; white-space: nowrap; }
.day-grid .corner { position: sticky; left: 0; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--line-2); }
.day-grid .hours { position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid var(--line); }
.day-grid .hours div { height: 60px; font-size: 12px; color: var(--muted); text-align: right; padding: 0 8px; transform: translateY(-8px); }
.day-grid .lane { position: relative; border-right: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 30px); background-size: 100% 60px; cursor: copy; }
.day-grid .lane .closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f7f0f4 0 6px, #fbf7fa 6px 12px); pointer-events: none; }
.ev { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 5px 8px; font-size: 12.5px; line-height: 1.25; overflow: hidden; cursor: pointer; background: color-mix(in srgb, var(--c) 16%, #fff); border-left: 3px solid var(--c); color: var(--ink); }
.ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { color: var(--muted); }
.ev.st-done { opacity: .62; }
.ev.st-cancelled, .ev.st-no_show { opacity: .45; text-decoration: line-through; }
.ev.st-confirmed::after { content: '✓'; position: absolute; top: 4px; right: 7px; color: var(--ok); font-weight: 700; }
.ev.block { background: repeating-linear-gradient(135deg, #efe5eb 0 6px, #f8f2f5 6px 12px); border-left-color: #b9a4b1; cursor: default; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--rose); z-index: 1; pointer-events: none; }
.now-line::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); }

.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; min-width: 1100px; }
.week-day { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; min-height: 200px; }
.week-day.today { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose-soft); }
.week-day h4 { margin: 0 0 8px; font: 600 18px/1.2 var(--serif); cursor: pointer; }
.week-day .mini { border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); border-radius: 8px; padding: 5px 8px; margin-bottom: 6px; font-size: 12.5px; cursor: pointer; }
.week-day .mini b { font-weight: 600; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 14px; }
.slot.on { background: var(--plum); color: #fff; border-color: var(--plum); }
.slot:hover { border-color: var(--rose); }

/* ---------- clientes ---------- */
.tagchips { display: flex; flex-wrap: wrap; gap: 4px; }
.history .row span.when { white-space: nowrap; }
.note-box { background: var(--gold-soft); border-radius: var(--r); padding: 12px 14px; white-space: pre-wrap; font-size: 14.5px; }
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 18px; text-align: center; color: var(--muted); }

/* ---------- catálogo ---------- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.item { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: flex-start; }
.item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.item .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--soft) center/cover; flex: none; display: grid; place-items: center; color: var(--rose); font: 600 22px var(--serif); }
.item .info { flex: 1; min-width: 0; }
.item .info b { display: block; font-weight: 500; }
.item .price { font: 600 19px/1.2 var(--serif); color: var(--plum); }
.item.off { opacity: .55; }
.cat-title { font: 600 22px/1.2 var(--serif); margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.cat-title:first-child { margin-top: 0; }
.variants .v-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 8px; }
@media (max-width: 600px) { .variants .v-row { grid-template-columns: 1fr 1fr; } .variants .v-row label:first-child { grid-column: 1 / -1; } }
.photo-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.photo-pick .ph { width: 84px; height: 84px; border-radius: 14px; background: var(--soft) center/cover; border: 1px solid var(--line); flex: none; }
.photo-pick .ph.round { border-radius: 50%; }
.photo-pick .ph.wide { width: 180px; height: 84px; }

/* ---------- funcionamento ---------- */
.hours-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.hours-row:last-child { border-bottom: 0; }
.hours-row .ranges { display: flex; flex-direction: column; gap: 8px; }
.range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.range input { width: 120px; min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); }
@media (max-width: 600px) { .hours-row { grid-template-columns: 1fr; } }

/* ---------- minha loja ---------- */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.theme-card { border-radius: var(--r); border: 2px solid var(--line); overflow: hidden; cursor: pointer; background: #fff; text-align: left; padding: 0; }
.theme-card.on { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-soft); }
.theme-card .sw { height: 92px; position: relative; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; }
.theme-card .sw strong { font-size: 22px; line-height: 1; }
.theme-card .sw i { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; }
.theme-card .sw em { font-style: normal; display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 99px; font-size: 11px; color: #fff; width: max-content; }
.theme-card .tx { padding: 10px 12px; font-size: 13px; color: var(--muted); }
.theme-card .tx b { display: block; color: var(--ink); font-size: 14.5px; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery .g { width: 92px; height: 92px; border-radius: 12px; background: var(--soft) center/cover; position: relative; }
.gallery .g button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.preview-phone { border-radius: 26px; overflow: hidden; border: 8px solid var(--plum); max-width: 300px; margin: 0 auto; box-shadow: var(--shadow); }
.preview-phone .pv-cover { height: 110px; background: var(--pa) center/cover; }
.preview-phone .pv-body { padding: 0 16px 18px; background: var(--pbg); color: var(--ptx); }
.preview-phone .pv-logo { width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--pbg); margin-top: -31px; background: var(--pp) center/cover; }
.preview-phone h4 { margin: 8px 0 2px; font-size: 22px; }
.preview-phone p { margin: 0 0 10px; font-size: 12.5px; opacity: .8; }
.preview-phone .pv-btn { display: block; text-align: center; padding: 9px; border-radius: 99px; background: var(--pp); color: #fff; font-size: 13px; margin-top: 10px; }
.preview-phone .pv-chip { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--pa); font-size: 11.5px; margin-right: 6px; color: var(--ptx); }

/* ---------- WhatsApp ---------- */
.qr-box { display: grid; place-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--soft); min-height: 280px; text-align: center; }
.qr-box img { width: 260px; height: 260px; border-radius: 12px; background: #fff; padding: 10px; }
.wa-state { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.wa-state .dot { width: 12px; height: 12px; }
.auto-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.auto-item:last-child { border-bottom: 0; }
.auto-item .head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.auto-item .head div { flex: 1; min-width: 220px; }
.auto-item .head b { font-weight: 500; display: block; }
.auto-item textarea { margin-top: 10px; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vars button { border: 1px dashed var(--line-2); background: #fff; border-radius: 8px; padding: 2px 8px; font-size: 12.5px; cursor: pointer; color: var(--plum-3); }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: #efe7e0; min-height: 220px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 14.5px; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.bubble.me { align-self: flex-end; background: #dcf8c6; }
.bubble.bot { align-self: flex-start; background: #fff; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; }

/* ---------- avaliações ---------- */
.stars { color: var(--gold); letter-spacing: 2px; white-space: nowrap; }
.score-big { font: 600 60px/1 var(--serif); color: var(--plum); }

/* ---------- modal e avisos ---------- */
.modal-root .back { position: fixed; inset: 0; background: rgba(43,20,38,.45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; overscroll-behavior: contain; animation: fade .18s ease; }
.modal { background: #fff; border-radius: 22px; width: 100%; max-width: 640px; box-shadow: 0 30px 80px -20px rgba(43,20,38,.5); animation: rise .22s cubic-bezier(.2,.8,.2,1); margin-bottom: 5vh; }
.modal.wide { max-width: 900px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 6px; }
.modal-head h3 { flex: 1; font-size: 26px; }
.modal-x { border: 0; background: var(--soft); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; cursor: pointer; flex: none; line-height: 1; }
.modal-body { padding: 14px 22px 8px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 22px 22px; justify-content: flex-end; }
.modal-foot .left { margin-right: auto; }
@media (max-width: 600px) {
  .modal-root .back { padding: 0; align-items: flex-end; }
  .modal { border-radius: 22px 22px 0 0; margin: 0; max-height: 94vh; overflow-y: auto; overscroll-behavior: contain; }
  .modal-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); }
  .modal-foot .btn { flex: 1 1 auto; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-root .back { animation: none; } }

.toasts { position: fixed; z-index: 80; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 460px); pointer-events: none; }
.toast { background: var(--plum); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14.5px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); animation: rise .2s ease; pointer-events: auto; }
.toast.bad { background: var(--bad); }
.toast.ok::before { content: '✓ '; color: #f3dfb6; }
.err { color: var(--bad); font-size: 14px; margin: 8px 0 0; }
.callout { padding: 12px 14px; border-radius: var(--r); background: var(--lilac-soft); font-size: 14px; color: #4a3a7d; }
.callout.gold { background: var(--gold-soft); color: #6f5020; }

@media (min-width: 1101px) { .sticky-side { position: sticky; top: 90px; } }
@media (max-width: 600px) { .panel-head > .hscroll-wrap { flex: 1 1 100% !important; } .panel-head > .hscroll-wrap .tabs { margin-bottom: 0; } }
table.t td { white-space: nowrap; }
[hidden] { display: none !important; }
