/* Identidade visual — Studio de sobrancelhas · Desenvolvido por Nexosys */
:root {
  --bg: #FAF6F2; --surface: #FFFFFF; --surface-2: #F4ECE6; --line: #EADDD4; --line-2: #DCC9BD;
  --text: #3B2A2F; --muted: #7E6A6F; --soft: #A8959A;
  --primary: #C98B7B; --primary-d: #B07264; --primary-soft: #F3E1DA; --on-primary: #FFFFFF;
  --gold: #D4A88C; --gold-soft: #F6EADF; --gold-ink: #9a6f52; --scrim: rgba(40, 25, 30, .42);
  --ok: #5E9478; --ok-soft: #E3F0E8; --warn: #C2873A; --warn-soft: #FAEBD6; --err: #C0595A; --err-soft: #F8E1E0; --info: #7C7FB0; --info-soft: #E8E8F4;
  --logo-bg: #F3E1DA; --logo-fg: #9B5E52; --logo-acc: #D4A88C;
  --shadow: 0 1px 2px rgba(59, 42, 47, .04), 0 8px 24px rgba(59, 42, 47, .06);
  --shadow-l: 0 4px 10px rgba(59, 42, 47, .06), 0 24px 48px rgba(59, 42, 47, .12);
  --r: 18px; --r-s: 12px; --r-l: 24px;
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 68px; --side-w: 248px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1E161A; --surface: #2A1F25; --surface-2: #33262D; --line: #3F3038; --line-2: #4E3C45;
  --text: #F5E9E6; --muted: #BFA9AE; --soft: #8F7A80;
  --primary: #DC9E8E; --primary-d: #E8B3A5; --primary-soft: #45302F; --on-primary: #2A1A1E;
  --gold: #D9B193; --gold-soft: #3D3029; --gold-ink: #D9B193; --scrim: rgba(0, 0, 0, .55);
  --ok: #8CC4A6; --ok-soft: #26362E; --warn: #E2AE64; --warn-soft: #3B2F20; --err: #EA8C8B; --err-soft: #432728; --info: #A9ACDA; --info-soft: #2F2F45;
  --logo-bg: #45302F; --logo-fg: #F0C2B4; --logo-acc: #D9B193;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-l: 0 24px 48px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
/* Paleta "Oliva & champanhe" (Configurações › Dados do studio › Cores do app) — studio.paleta = 'oliva'.
   Cada paleta redefine as MESMAS variáveis no claro e no escuro; a padrão (rosé) é a do :root acima. */
:root[data-paleta="oliva"] {
  --bg: #F5F3EC; --surface: #FFFFFF; --surface-2: #ECE9DE; --line: #E0DCCD; --line-2: #CFC9B5;
  --text: #2A2D23; --muted: #686B5B; --soft: #9A9B89;
  --primary: #565C45; --primary-d: #414533; --primary-soft: #E4E5D7; --on-primary: #F7F1DE;
  --gold: #B8A274; --gold-soft: #F0EADA; --gold-ink: #7A6841; --scrim: rgba(30, 33, 24, .45);
  --logo-bg: #414533; --logo-fg: #E6D9B5; --logo-acc: #C9B68A;
  --shadow: 0 1px 2px rgba(42, 45, 35, .05), 0 8px 24px rgba(42, 45, 35, .07);
  --shadow-l: 0 4px 10px rgba(42, 45, 35, .07), 0 24px 48px rgba(42, 45, 35, .14);
  color-scheme: light;
}
:root[data-paleta="oliva"][data-theme="dark"] {
  --bg: #191B15; --surface: #22251D; --surface-2: #2A2D24; --line: #353A2D; --line-2: #45493A;
  --text: #EEEADB; --muted: #B3B19E; --soft: #858574;
  --primary: #C9B68A; --primary-d: #DCCCA3; --primary-soft: #393A2B; --on-primary: #22251D;
  --gold: #CDB98C; --gold-soft: #34352A; --gold-ink: #CDB98C; --scrim: rgba(0, 0, 0, .55);
  --logo-bg: #393A2B; --logo-fg: #E6D9B5; --logo-acc: #C9B68A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-l: 0 24px 48px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .25s; }
body.travado { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 15px; font-family: var(--sans); font-weight: 600; }
p { margin: 0; }
a { color: var(--primary-d); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mb { margin-bottom: 14px; } .mt { margin-top: 14px; } .mt-s { margin-top: 8px; } .mb-s { margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .sp { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.g4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Cartões */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 17px; }
.kpi .v { font-family: var(--serif); font-size: 24px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .d { font-size: 12px; color: var(--soft); margin-top: 2px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: var(--primary); color: var(--on-primary); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; text-decoration: none; white-space: nowrap; min-height: 44px; }
.btn:hover { background: var(--primary-d); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.sec { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn.sec:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--primary-d); padding: 8px 12px; min-height: 36px; }
.btn.ghost:hover { background: var(--primary-soft); }
.btn.perigo { background: var(--err); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.sm { padding: 7px 13px; min-height: 34px; font-size: 13px; }
.btn.lg { padding: 16px 28px; font-size: 16px; min-height: 56px; }
.btn.bloco { width: 100%; }
.btn-ic { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.btn-ic:hover { background: var(--surface-2); color: var(--text); }
.acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.acoes .btn { flex: 1 1 140px; }
@media (min-width: 700px) { .acoes .btn { flex: 0 0 auto; } }

/* Formulários */
label.f { display: block; }
label.f > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.inp, select.inp, textarea.inp { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-s); padding: 11px 14px; min-height: 46px; outline: none; transition: border .15s, box-shadow .15s; }
textarea.inp { min-height: 90px; resize: vertical; }
.inp:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.inp-ic { position: relative; } .inp-ic .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--soft); } .inp-ic .inp { padding-left: 42px; }
.chk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.chk input { width: 20px; height: 20px; accent-color: var(--primary); margin: 1px 0 0; flex: none; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: var(--line-2); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch i::after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.switch input:checked + i { background: var(--primary); } .switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 4px var(--primary-soft); }
.linha-cfg { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.linha-cfg:last-child { border-bottom: 0; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-scroll { display: flex; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex: none; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--surface); padding: 7px 13px; border-radius: 999px; font-size: 13px; cursor: pointer; font-weight: 500; color: var(--muted); }
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-d); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.st-pendente { background: var(--warn-soft); color: var(--warn); }
.st-confirmado { background: var(--info-soft); color: var(--info); }
.st-concluido { background: var(--ok-soft); color: var(--ok); }
.st-cancelado { background: var(--surface-2); color: var(--soft); }
.st-faltou { background: var(--err-soft); color: var(--err); }
.badge.gold { background: var(--gold-soft); color: var(--gold-ink); }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-d); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.estrelas { display: inline-flex; gap: 1px; color: var(--line-2); } .estrelas .on { color: var(--gold); } .estrelas .on svg { fill: currentColor; } .estrelas .ic { width: 16px; height: 16px; }
.vazio { text-align: center; padding: 28px 12px; color: var(--muted); }
.vazio .ic { width: 32px; height: 32px; color: var(--gold); margin-bottom: 6px; }

/* Listas */
.lista { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.item:last-child { border-bottom: 0; }
.item.clic { cursor: pointer; border-radius: var(--r-s); padding-left: 8px; padding-right: 8px; }
.item.clic:hover { background: var(--surface-2); }
/* Aviso de pedidos no início + tela Pedidos */
.aviso-ped { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid color-mix(in srgb, var(--gold) 60%, var(--line)); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.aviso-ped:hover { background: var(--surface-2); }
.aviso-ped .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aviso-ped .ap-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: var(--primary-d); }
.kpis2 { grid-template-columns: 1fr 1fr; }
.voltar { margin-left: -12px; margin-bottom: 4px; }
.ped-dia { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin: 18px 4px 8px; }
.ped-card { padding: 2px 10px 2px 14px; }
.ped-li { display: flex; align-items: center; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ped-li:last-child { border-bottom: 0; }
.ped-info { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; cursor: pointer; border-radius: 10px; padding: 2px 0; }
.ped-info:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ped-info .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ped-info .hora { font-weight: 600; color: var(--primary-d); font-variant-numeric: tabular-nums; flex: none; }
.ped-info .s { color: var(--muted); font-size: 13px; }
.ped-x, .ped-ok { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.ped-x { border: 1px solid var(--line-2); color: var(--muted); }
.ped-ok { background: var(--ok); color: #fff; margin-left: 4px; }
.ped-ok:hover { filter: brightness(1.06); }
.item .t { font-weight: 600; } .item .s { font-size: 13px; color: var(--muted); }

/* Tabela */
.tabela-w { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  table.t.resp thead { display: none; }
  table.t.resp tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.t.resp td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; text-align: right; }
  table.t.resp td::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; }
  .tabela-w { margin: 0; padding: 0; }
}

/* Modais */
.modal-bg { position: fixed; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s; }
.modal { background: var(--surface); width: 100%; max-height: 92vh; overflow: auto; border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--shadow-l); animation: sobe .22s cubic-bezier(.2, .8, .3, 1); padding-bottom: env(safe-area-inset-bottom); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-c { padding: 10px 20px 22px; }
@media (min-width: 700px) { .modal-bg { align-items: center; } .modal { max-width: 520px; border-radius: var(--r-l); } .modal.largo { max-width: 760px; } }
.modal-bg.cheia .modal { max-width: none; height: 100vh; max-height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0; display: flex; flex-direction: column; }
.modal-bg.cheia .modal-c { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; }
.modal-bg.sai { opacity: 0; transition: opacity .18s; }
@keyframes fade { from { opacity: 0; } }
@keyframes sobe { from { transform: translateY(30px); opacity: 0; } }
@keyframes entra { from { transform: translateY(8px); opacity: 0; } }

#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; box-shadow: var(--shadow-l); animation: sobe .25s; transition: .3s; }
.toast.erro { background: var(--err); color: #fff; }
.toast.sai { opacity: 0; transform: translateY(10px); }
@media (min-width: 1000px) { #toasts { bottom: 24px; } }

/* Leitor de termos (tela cheia) */
.leitor-top { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.leitor-txt { flex: 1; overflow-y: auto; padding: 22px 20px 40px; white-space: pre-line; font-size: 15px; line-height: 1.7; max-width: 760px; margin: 0 auto; width: 100%; }
.leitor-txt h3 { margin: 26px 0 6px; } .leitor-txt h3:first-child { margin-top: 0; }
.leitor-pe { border-top: 1px solid var(--line); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); }
.leitor-pe .progresso { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.leitor-pe .progresso i { display: block; height: 100%; background: var(--primary); width: 0; transition: width .1s; }

/* Gráfico de barras simples */
.barras { display: flex; flex-direction: column; gap: 10px; }
.barra .r { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; gap: 8px; }
.barra .r b { font-weight: 600; font-variant-numeric: tabular-nums; }
.barra .trilho { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.barra .trilho i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--primary)); animation: cresce .6s cubic-bezier(.2, .8, .3, 1); transform-origin: left; }
@keyframes cresce { from { transform: scaleX(0); } }

/* Linha do tempo */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl { position: relative; padding: 0 0 16px; }
.tl::before { content: ''; position: absolute; left: -21px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.tl.agora::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.tl.feito::before { background: var(--ok); border-color: var(--ok); }
.tl .h { font-size: 13px; font-weight: 600; color: var(--primary-d); font-variant-numeric: tabular-nums; }

/* Rodapé Nexosys */
.nexo-ass { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11.5px; color: var(--soft); padding: 24px 0 8px; letter-spacing: .03em; }
.nexo-ig { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: var(--soft); opacity: .8; transition: color .15s, opacity .15s, background .15s; }
.nexo-ig .ic { width: 14px; height: 14px; }
a.nexo-ig:hover, a.nexo-ig:focus-visible { color: var(--primary-d); opacity: 1; background: var(--surface-2); }
.nexo-ass b { font-weight: 600; color: var(--muted); }

/* ===================== PAINEL ===================== */
.app { min-height: 100vh; }
.side { display: none; }
.main { padding: 16px 16px calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; animation: entra .25s; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; min-height: 44px; }
.topo h1 { font-size: 24px; }
.topo .mais-m { margin-left: -8px; flex: none; }
.topo .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.bnav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 50; }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--soft); text-decoration: none; font-weight: 500; position: relative; }
.bnav a.on { color: var(--primary-d); }
.bnav a.on::after { content: ''; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--primary); }
.bnav a.novo .ic { width: 26px; height: 26px; }
.bnav a.novo span.bola { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(140deg, var(--gold), var(--primary)); color: var(--on-primary); display: grid; place-items: center; margin-top: -22px; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 45%, transparent); border: 4px solid var(--bg); transition: transform .15s; }
.bnav a.novo:active span.bola { transform: scale(.94); }
.bnav a.novo::after { display: none; }
.pill-n { position: absolute; top: 8px; right: calc(50% - 20px); background: var(--err); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

@media (min-width: 1000px) {
  .bnav { display: none; }
  .side { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px 14px; z-index: 40; overflow-y: auto; }
  .main { margin-left: var(--side-w); padding: 28px 36px 40px; max-width: calc(1180px + var(--side-w)); }
  .topo h1 { font-size: 28px; }
}
@media (min-width: 1000px) { .mais-m, .tema-m { display: none !important; } }
.login-tema { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 5; }
.side .marca { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.side .marca b { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.15; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; margin-bottom: 2px; position: relative; }
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a.on { background: var(--primary-soft); color: var(--primary-d); }
.side nav a .pill-n { position: static; margin-left: auto; }
.side .sep { height: 1px; background: var(--line); margin: 12px 8px; }
.side .novo-btn { margin: 0 4px 18px; }
.side .pe { margin-top: auto; padding: 12px 8px 0; }

.mais-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.mais-grid a { display: flex; flex-direction: column; gap: 10px; padding: 18px; text-decoration: none; color: var(--text); }
.mais-grid a .ic { width: 26px; height: 26px; color: var(--primary); }
.mais-grid a b { font-weight: 600; } .mais-grid a span { font-size: 12.5px; color: var(--muted); }

/* Agenda */
.ag-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ag-nav { display: flex; align-items: center; gap: 4px; }
.ag-nav .titulo { font-family: var(--serif); font-size: 18px; min-width: 0; padding: 0 6px; }
.grade { position: relative; display: grid; grid-template-columns: 52px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.grade.semana { grid-template-columns: 44px repeat(7, minmax(0, 1fr)); }
.grade-scroll { overflow-x: auto; border-radius: var(--r); }
.grade.semana { min-width: 720px; }
.g-cab { position: sticky; top: 0; background: var(--surface); z-index: 3; border-bottom: 1px solid var(--line); padding: 8px 4px; text-align: center; font-size: 12px; color: var(--muted); cursor: pointer; }
.g-cab b { display: block; font-size: 17px; color: var(--text); font-family: var(--serif); font-weight: 500; }
.g-cab.hoje b { color: var(--on-primary); background: var(--primary); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; margin: 2px auto 0; }
.g-horas { position: relative; border-right: 1px solid var(--line); }
.g-horas div { position: absolute; right: 6px; font-size: 11px; color: var(--soft); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.g-col { position: relative; border-right: 1px solid var(--line); }
.g-col:last-child { border-right: 0; }
.g-col .lh { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.g-col .lh.meia { border-top-style: dashed; opacity: .55; }
.g-col.fechado { background: repeating-linear-gradient(135deg, transparent 0 8px, var(--surface-2) 8px 9px); }
.g-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, transparent 6px 12px); }
.g-bloq { position: absolute; left: 3px; right: 3px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line-2); font-size: 11.5px; color: var(--muted); padding: 4px 8px; overflow: hidden; cursor: pointer; z-index: 1; display: flex; gap: 6px; align-items: flex-start; }
.g-bloq .ic { width: 14px; height: 14px; }
.g-ev { position: absolute; left: 3px; right: 3px; border-radius: 10px; padding: 4px 8px; font-size: 12px; overflow: hidden; cursor: grab; z-index: 2; border-left: 3px solid; line-height: 1.3; transition: box-shadow .15s, transform .1s; touch-action: none; user-select: none; -webkit-user-select: none; }
.g-ev:hover { box-shadow: var(--shadow); z-index: 4; }
.g-ev.forcado { outline: 1.5px dashed var(--warn); outline-offset: -1px; }
.g-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ev span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.g-ev.st-confirmado { background: var(--info-soft); border-color: var(--info); color: var(--text); }
.g-ev.st-pendente { background: var(--warn-soft); border-color: var(--warn); color: var(--text); }
.g-ev.st-concluido { background: var(--ok-soft); border-color: var(--ok); color: var(--text); }
.g-ev.st-faltou { background: var(--err-soft); border-color: var(--err); color: var(--text); }
.g-ev.arrastando { opacity: .92; box-shadow: var(--shadow-l); z-index: 10; cursor: grabbing; transform: scale(1.02); }
.g-fantasma { position: absolute; left: 3px; right: 3px; border-radius: 10px; border: 2px dashed var(--primary); background: color-mix(in srgb, var(--primary-soft) 70%, transparent); z-index: 5; pointer-events: none; font-size: 12px; font-weight: 600; color: var(--primary-d); padding: 3px 8px; }
.g-fantasma.ruim { border-color: var(--err); background: var(--err-soft); color: var(--err); }
.g-agora { position: absolute; left: 0; right: 0; height: 2px; background: var(--primary); z-index: 6; pointer-events: none; }
.g-agora::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Novo atendimento — passos */
.passos { display: flex; gap: 6px; margin-bottom: 18px; }
.passos div { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.passos div.on { background: var(--primary); }
.serv-op { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-s); cursor: pointer; background: var(--surface); transition: border .15s, background .15s; }
.serv-op:hover { border-color: var(--line-2); }
.serv-op.on { border-color: var(--primary); background: var(--primary-soft); }
.serv-op .marca-chk { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; background: var(--surface); }
.serv-op.on .marca-chk { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.serv-op .marca-chk .ic { width: 15px; height: 15px; }
.serv-op .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--primary-d); display: grid; place-items: center; flex: none; }
.resumo-fixo { position: sticky; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 20; margin-top: 16px; background: var(--text); color: var(--bg); border-radius: var(--r); padding: 12px 12px 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: var(--shadow-l); }
.resumo-fixo .btn { background: var(--primary); color: var(--on-primary); }
@media (min-width: 1000px) { .resumo-fixo { bottom: 16px; } .cli .resumo-fixo { bottom: calc(var(--nav-h) + 26px); } }
@media (min-width: 700px) and (max-width: 999px) { .cli .resumo-fixo { bottom: calc(var(--nav-h) + 26px); } }
:root[data-theme="dark"] .resumo-fixo { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
.resumo-fixo .btn:disabled { opacity: .5; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 10px 0; text-align: center; font-weight: 600; font-size: 14px; cursor: pointer; font-variant-numeric: tabular-nums; transition: .12s; }
.slot:hover { border-color: var(--primary); color: var(--primary-d); }
.slot.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.slot-grupo { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin: 14px 0 8px; font-weight: 600; }

/* Mini calendário */
.cal { user-select: none; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h b { font-family: var(--serif); font-weight: 500; font-size: 17px; text-transform: capitalize; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-g .dn { font-size: 11px; color: var(--soft); font-weight: 600; padding: 4px 0; text-transform: uppercase; }
.cal-g button { aspect-ratio: 1; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 14px; font-weight: 500; position: relative; max-width: 46px; width: 100%; margin: 0 auto; font-variant-numeric: tabular-nums; }
.cal-g button:hover:not(:disabled) { background: var(--surface-2); }
.cal-g button:disabled { color: var(--line-2); cursor: default; text-decoration: line-through; text-decoration-color: transparent; }
.cal-g button.hj { color: var(--primary-d); font-weight: 700; }
.cal-g button.on { background: var(--primary); color: var(--on-primary); }
.cal-g button.tem::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.cal-g button.on::after { background: #fff; }
.cal-g .cal-n { position: absolute; top: -2px; right: -2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 17px; }
.cal-g button.cheio { color: var(--err); text-decoration: line-through; text-decoration-color: var(--err); }
.cal-g button.fechado { color: var(--soft); opacity: .55; }
.cal-g button.on.cheio, .cal-g button.on.fechado { color: var(--on-primary); opacity: 1; }
.cal-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 11.5px; color: var(--soft); }
.cal-leg i { display: inline-block; min-width: 15px; height: 15px; border-radius: 8px; background: var(--gold); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; text-align: center; line-height: 15px; margin-right: 4px; vertical-align: -2px; }
.cal-leg s { color: var(--err); margin-right: 4px; }
/* Agenda do dia (novo atendimento) */
.dia-ag { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.dia-ag .it { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: 13px; }
.dia-ag .it .h { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; min-width: 92px; }
.dia-ag .it.livre { background: var(--ok-soft); color: var(--ok); }
.dia-ag .it.livre.curto { background: transparent; border: 1px dashed var(--line-2); color: var(--soft); }
.dia-ag .it.pausa { background: transparent; border: 1px dashed var(--line-2); color: var(--soft); }
.dia-ag .it.ag { border-left: 3px solid var(--primary); }
.dia-ag .it.ag.pendente { border-left-color: var(--warn); }

/* Ficha */
.ficha-top { display: flex; gap: 14px; align-items: center; }
.ficha-top .avatar { width: 64px; height: 64px; font-size: 22px; font-family: var(--serif); }
.sensivel { border: 1px solid var(--gold); background: var(--gold-soft); }
.tag-sens { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--gold-ink); }
:root[data-theme="dark"] .tag-sens { color: var(--gold); }
.tag-sens .ic { width: 14px; height: 14px; }
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.fotos figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fotos figcaption { position: absolute; left: 6px; top: 6px; font-size: 11px; background: rgba(0, 0, 0, .55); color: #fff; padding: 2px 8px; border-radius: 99px; }
.fotos .del { position: absolute; right: 4px; top: 4px; background: rgba(0, 0, 0, .5); color: #fff; width: 30px; height: 30px; }

/* Login */
.login-w { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 0%, var(--primary-soft), transparent 50%), radial-gradient(circle at 100% 100%, var(--gold-soft), transparent 50%), var(--bg); }
.login { width: 100%; max-width: 400px; }
.login .card { padding: 28px 24px; }
.login .marca { text-align: center; margin-bottom: 22px; }
.login .marca h1 { margin-top: 12px; font-size: 26px; }
.codigo { letter-spacing: .5em; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.dica { background: var(--gold-soft); border-radius: var(--r-s); padding: 10px 14px; font-size: 13px; color: var(--muted); }

/* ===================== APP DA CLIENTE ===================== */
.cli { max-width: 640px; margin: 0 auto; padding: 0 16px calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); animation: entra .25s; }
.cli-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); gap: 10px; }
.cli-top .marca { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 17px; min-width: 0; }
.cli-top a { text-decoration: none; }
.hero { text-align: center; padding: 26px 8px 8px; }
.portao { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.portao-top { display: flex; justify-content: flex-end; padding-top: 14px; }
.portao .hero { padding-top: 4px; }
.portao-card { max-width: 440px; margin: 22px auto 0; padding: 26px 22px; }
.hero h1 { font-size: 30px; margin: 14px 0 8px; }
.hero p { color: var(--muted); max-width: 400px; margin: 0 auto; }
.hero .btn.lg { margin-top: 22px; width: 100%; max-width: 340px; box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 35%, transparent); }
.sec-t { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 14px; }
.sec-t h2 { font-size: 22px; }
.gal-faixa { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.gal-faixa::-webkit-scrollbar { display: none; }
.gal-it { all: unset; box-sizing: border-box; position: relative; flex: none; width: 46%; max-width: 220px; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; cursor: pointer; background: var(--surface-2); box-shadow: var(--shadow); }
.gal-it:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.gal-it img, .gal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-leg { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; font-size: 12.5px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(40, 24, 20, .62)); line-height: 1.25; }
.gal-tag { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: #6b4a42; }
.gal-adm { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 12px; }
.gal-adm figure { padding: 8px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.gal-img { position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--r) - 6px); overflow: hidden; background: var(--surface-2); }
.gal-adm figcaption { display: flex; font-size: 13px; font-weight: 500; padding: 0 4px; min-width: 0; }
.foto-v { position: fixed; inset: 0; background: rgba(20, 12, 10, .94); display: flex; align-items: center; justify-content: center; z-index: 1; }
.foto-v figure { margin: 0; max-width: min(92vw, 720px); text-align: center; }
.foto-v img { max-width: 100%; max-height: 78vh; border-radius: 14px; display: block; margin: 0 auto; }
.foto-v figcaption { color: #f3e6df; font-size: 14px; margin-top: 12px; }
.foto-v .btn-ic { position: absolute; color: #fff; background: rgba(255, 255, 255, .14); }
.fv-x { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.fv-ant { left: 10px; top: 50%; transform: translateY(-50%); }
.fv-prox { right: 10px; top: 50%; transform: translateY(-50%); }
.carregando { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.carregando .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--primary); animation: gira .8s linear infinite; margin: 0 auto 12px; }
@keyframes gira { to { transform: rotate(360deg); } }
.ola { padding: 18px 2px 4px; }
.ola h1 { font-size: 28px; }
.ola p { color: var(--muted); margin-top: 4px; }
.acao-ini { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.acao-ini .lembrete-ret { margin-top: 0; }
.acao-ini .btn { white-space: normal; text-align: center; line-height: 1.3; }
.acao-ini .btn.lg { box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 30%, transparent); }
.prox { display: block; text-decoration: none; color: inherit; }
.serv-lista { padding: 4px 16px; }
.serv-li { all: unset; box-sizing: border-box; display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.serv-li:last-child { border-bottom: 0; }
.serv-li:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
.serv-li:hover .nome { color: var(--primary-d); }
.serv-li .ico { flex: none; width: 40px; height: 40px; border-radius: 13px; background: var(--gold-soft); color: var(--primary-d); display: grid; place-items: center; }
.serv-li .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.serv-li .nome { font-family: var(--serif); font-weight: 500; font-size: 16.5px; line-height: 1.25; }
.serv-li .pr { color: var(--primary-d); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15px; }
.serv-li .desc { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.serv-li .meta { color: var(--muted); font-size: 12.5px; }
.prox { background: linear-gradient(135deg, var(--primary-soft), var(--gold-soft)); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; margin-top: 20px; }
.prox .quando { font-family: var(--serif); font-size: 20px; margin: 4px 0; }
.lembrete-ret { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--gold); border-radius: var(--r); padding: 14px 16px; margin-top: 14px; }
.lembrete-ret .ic { color: var(--gold); width: 26px; height: 26px; }
.servs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.serv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-width: 0; }
.serv-card .ico { width: 42px; height: 42px; border-radius: 14px; background: var(--gold-soft); color: var(--primary-d); display: grid; place-items: center; }
.serv-card h4 { font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.25; }
.serv-card p { font-size: 13px; color: var(--muted); flex: 1; }
.serv-card .pr { font-weight: 600; color: var(--primary-d); font-size: 14px; }
.precos .lp { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.precos .lp:last-child { border-bottom: 0; }
.precos .lp span { color: var(--muted); font-size: 12.5px; }
.precos .lp b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.passos3 { display: grid; gap: 12px; counter-reset: p; }
.passos3 > div { display: flex; gap: 14px; align-items: flex-start; }
.passos3 .num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-d); font-family: var(--serif); font-size: 17px; display: grid; place-items: center; flex: none; }
.mapa { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface-2); }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
.contatos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cnav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; z-index: 50; }
.cnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--soft); text-decoration: none; font-weight: 500; position: relative; }
.cnav a.on { color: var(--primary-d); }
.cnav a.on::after { content: ''; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: var(--primary); }
@media (min-width: 700px) { .cnav { left: 50%; transform: translateX(-50%); bottom: 14px; width: 440px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-l); height: var(--nav-h); padding: 0; } }
.etapa-h { margin: 6px 0 18px; }
.etapa-h .n { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.etapa-h h2 { font-size: 24px; margin-top: 4px; }
.sucesso { text-align: center; padding: 30px 6px; }
.sucesso .selo { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.sucesso .selo.pend { background: var(--warn-soft); color: var(--warn); }
.sucesso .selo .ic { width: 40px; height: 40px; stroke-width: 2; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.estrelas-in { display: flex; gap: 8px; justify-content: center; }
.estrelas-in button { border: 0; background: transparent; cursor: pointer; color: var(--line-2); padding: 2px; transition: transform .12s; }
.estrelas-in button .ic { width: 38px; height: 38px; }
.estrelas-in button.on { color: var(--gold); } .estrelas-in button.on svg { fill: currentColor; }
.estrelas-in button:active { transform: scale(1.2); }
.aviso-termos { background: var(--warn-soft); border: 1px solid var(--warn); color: var(--text); border-radius: var(--r); padding: 14px 16px; }

/* Impressão (exportar PDF) */
@media print {
  .side, .bnav, .cnav, .no-print, #toasts, .topo .btn, .btn { display: none !important; }
  .main { margin: 0 !important; padding: 0 !important; max-width: none; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Loja (app da cliente) e produtos com foto */
.lj-foto { width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--soft); }
.lj-foto img { width: 100%; height: 100%; object-fit: cover; }
.lj-prod { display: flex; gap: 12px; align-items: flex-start; }
.lj-preco { font-size: 16px; }
.lj-qtd { display: flex; align-items: center; gap: 8px; }
.lj-qtd b { min-width: 18px; text-align: center; }
.lj-car { position: sticky; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-l); z-index: 5; }
@media (min-width: 700px) { .lj-car { bottom: calc(var(--nav-h) + 26px); } }

/* Escolha da profissional (app da cliente) */
.profs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.prof-op { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: var(--r-s); border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.prof-op .avatar { width: 46px; height: 46px; font-size: 16px; overflow: hidden; }
.prof-op .avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-op b { font-size: 14px; }
.prof-op .tiny { line-height: 1.25; }
.prof-op.on { border-color: var(--accent, var(--gold)); background: var(--gold-soft); }

/* Atendimentos (padrão BarberPrime): indicadores com comparação, dia com subtotal, cabeçalho ordenável */
.kpis4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.delta { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.delta.up { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.delta.down { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.at-tbl tr.at-dia td { background: var(--surface-2); padding: 8px 12px; }
.at-tbl tr.at-dia td { display: table-cell; }
.at-tbl tr.at-dia td b:first-child { margin-right: 10px; }
.at-tbl tr.at-dia td span { float: right; font-size: 13px; color: var(--muted); }
.at-tbl tr.clic { cursor: pointer; }
.at-tbl tr.clic:hover td { background: var(--gold-soft); }
.at-th { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.at-th.on { color: var(--text); }
@media (max-width: 700px) { .at-tbl tr.at-dia { display: block; } .at-tbl tr.at-dia td { display: block; text-align: left; } .at-tbl tr.at-dia td span { float: none; display: block; } .kpis4 { grid-template-columns: 1fr 1fr; } .kpis4 .kpi .v { font-size: 22px; } }

/* Testar robô (painel): conversa no estilo WhatsApp */
.rb-card { display: flex; flex-direction: column; max-width: 720px; }
.rb-lista { display: flex; flex-direction: column; gap: 6px; height: min(60vh, 560px); overflow-y: auto; padding: 12px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); }
.rb-m { display: flex; flex-direction: column; max-width: 82%; }
.rb-m.rb-cli { align-self: flex-end; align-items: flex-end; }
.rb-m.rb-robo { align-self: flex-start; }
.rb-m.rb-aviso { align-self: center; max-width: 92%; }
.rb-b { padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.rb-m.rb-cli .rb-b { background: var(--primary-soft); border-bottom-right-radius: 4px; }
.rb-m.rb-robo .rb-b { border-bottom-left-radius: 4px; }
.rb-m.rb-aviso .rb-b { background: var(--warn-soft); color: var(--text); font-size: 13px; text-align: center; box-shadow: none; }
.rb-h { font-size: 11px; color: var(--soft); margin: 2px 6px 0; }
.rb-env { display: flex; gap: 8px; margin-top: 10px; }
.rb-env .inp { flex: 1; min-width: 0; }
.rb-dig { display: inline-flex; gap: 4px; padding: 12px 14px; }
.rb-dig i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); animation: rb-pulo 1s infinite ease-in-out; }
.rb-dig i:nth-child(2) { animation-delay: .15s; } .rb-dig i:nth-child(3) { animation-delay: .3s; }
@keyframes rb-pulo { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.rb-env .rb-mic { padding: 0 14px; min-width: 48px; font-variant-numeric: tabular-nums; }
.rb-env .rb-mic.on { background: var(--err); color: #fff; border-color: var(--err); animation: rb-grav 1.2s infinite; }
@keyframes rb-grav { 50% { opacity: .75; } }

/* ===== Robô IA (painel): página de configurações ===== */
.rb-pagina { max-width: 1080px; display: flex; flex-direction: column; gap: 16px; }
.rb-colunas { columns: 2 400px; column-gap: 16px; }
.rb-colunas > .card { break-inside: avoid; margin-bottom: 16px; display: block; }
.rb-sec { padding: 20px; }
.rb-sec-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.rb-sec-h h3 { font-size: 17px; line-height: 1.25; }
.rb-sec-h p { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
details > summary.rb-sec-h { list-style: none; cursor: pointer; margin-bottom: 0; }
details > summary.rb-sec-h::-webkit-details-marker { display: none; }
details[open] > summary.rb-sec-h { margin-bottom: 10px; }
.rb-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-d); }
.rb-ic svg { width: 18px; height: 18px; }
.rb-l { font-size: 14.5px; color: var(--text); font-weight: 500; }
.rb-d { font-size: 12.5px; color: var(--soft); line-height: 1.45; margin-top: 2px; }
.rb-linha { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.rb-txt { min-width: 0; flex: 1; }
.rb-linha .switch { flex: none; }
/* item que depende do de cima (horas, dias): recuado e ligado por uma linha */
.rb-sub { border-top: 0; padding: 2px 0 12px 14px; margin-left: 2px; border-left: 2px solid var(--primary-soft); }
.rb-sub .rb-l { font-size: 13.5px; color: var(--muted); }
.rb-num { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; height: 40px; }
.rb-num:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.rb-num input { width: 58px; border: 0; background: transparent; padding: 0 4px 0 12px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.rb-num input::-webkit-outer-spin-button, .rb-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rb-num span { padding: 0 12px 0 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rb-bloco { padding: 12px 0; border-top: 1px solid var(--line); }
.rb-campo { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.rb-sec-h + .rb-campo { border-top: 0; padding-top: 4px; }
.rb-campo .inp { width: 100%; }
.rb-campo textarea.inp { resize: vertical; min-height: 64px; }
/* segmentado que nunca estoura o card: divide a largura e quebra o texto se faltar espaço */
.rb-seg { display: flex; width: 100%; margin-top: 8px; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.rb-seg button { flex: 1 1 0; min-width: 0; border: 0; background: transparent; padding: 8px 6px; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.25; white-space: normal; text-align: center; transition: background .15s, color .15s; }
.rb-seg button:hover { color: var(--text); }
.rb-seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.rb-limite { margin-top: 4px; }
/* resumo de uso */
.rb-resumo { padding: 20px; }
.rb-res-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.rb-res-tit { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rb-res-tit h3 { font-size: 17px; }
.rb-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rb-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--soft); flex: none; }
.rb-status i.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.rb-res-acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rb-mes { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 2px; }
.rb-mes span { font-size: 13.5px; font-weight: 600; min-width: 128px; text-align: center; }
.rb-mes .btn-ic { width: 34px; height: 34px; }
.rb-pacote { margin-bottom: 14px; }
.rb-alerta { margin: -6px 0 12px; } .rb-alerta.err { color: var(--err); } .rb-alerta.warn { color: var(--warn); }
.rb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rb-stats > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-stats > div + div { border-left: 1px solid var(--line); }
.rb-stats b { font-family: var(--serif); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rb-stats span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.rb-dias { margin-top: 12px; }
.rb-dias summary { font-size: 13px; color: var(--muted); cursor: pointer; }
.rb-dias[open] summary { margin-bottom: 10px; }
.rb-modelos { display: grid; gap: 10px; }
.rb-modelo { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.rb-modelo code { font-size: 11.5px; color: var(--muted); background: var(--surface); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
@media (max-width: 560px) {
  .rb-sec, .rb-resumo { padding: 16px; }
  .rb-res-acoes { width: 100%; flex-wrap: nowrap; justify-content: space-between; }
  .rb-mes { flex: 1; min-width: 0; justify-content: space-between; }
  .rb-mes span { min-width: 0; }
  .rb-res-acoes .btn { flex: none; }
  .rb-stats > div { padding: 10px; }
  .rb-stats b { font-size: 19px; }
  .rb-stats span { font-size: 11px; }
}
.rb-zap { padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: fit-content; max-width: 100%; }

/* Escolha da paleta (Configurações › Dados do studio) */
.pal-op { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 13px 5px 5px; font-size: 13px; font-weight: 500; cursor: pointer; min-height: 36px; }
.pal-op.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); font-weight: 600; }
.pal-op i { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.pal-rose { background: linear-gradient(135deg, #C98B7B 50%, #F3E1DA 50%); }
.pal-oliva { background: linear-gradient(135deg, #414533 50%, #C9B68A 50%); }

/* Logo enviado pelo studio: recorte redondo, como o símbolo padrão (foto em pé ou deitada não estica) */
.logo-img { object-fit: cover; border-radius: 50%; flex: none; }
