/* =====================================================================
   Sanduba do Moral · protótipo · base.css
   Dono: agente BASE. Tokens, componentes compartilhados e o celular.
   As áreas escrevem só no próprio arquivo (cardapio.css, whatsapp.css,
   entrega.css, sistema.css). Precisa de um componente novo que serve
   a mais de uma área? Peça para entrar aqui. Contrato: BASE.md.
   Arquitetura herdada da Pousada Maria Bonita; domínio: delivery.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;

  /* marca: o laranja vivo do disco do logo. Texto em cima dele é SEMPRE carvão (branco dá 2,6:1) */
  --laranja-50:  #FFF6EC;
  --laranja-100: #FFE9D1;   /* fundo de selo quente, hover de cartão */
  --laranja-300: #FFB066;   /* borda de hover; texto laranja só sobre carvão */
  --laranja-400: #FF8A1F;   /* laranja sobre carvão (7,4:1) */
  --laranja-500: #FF7A00;   /* marca e botão primário (carvão por cima: 7,2:1) */
  --laranja-600: #F26B00;   /* hover do primário (carvão por cima: 6,1:1) */
  --laranja-700: #A84200;   /* laranja para texto em fundo claro / branco por cima: 6,1:1 */
  --laranja-800: #9B3D00;   /* link, texto quente sobre o claro (6,4:1) */
  --laranja-ink: #8A4B00;   /* texto do selo quente */

  /* amarelo-sol do recheio das letras */
  --sol-100: #FFF3C4;
  --sol-300: #FFD866;
  --sol-400: #FFC21A;       /* destaque, preço, 99Food (texto carvão por cima: 11,6:1) */
  --sol-ink: #7A4D00;

  /* vermelho-ketchup do contorno do logo */
  --ketchup-100: #FDE6E3;
  --ketchup-500: #D7261E;   /* contorno do logo, só decoração e gráfico */
  --ketchup-600: #C21F17;   /* Moral do Dia, iFood (branco por cima: 6,0:1) */
  --ketchup-700: #A3170F;   /* texto vermelho no claro (7,2:1) */

  /* o mar de Maceió: informação, foco, rota no mapa */
  --mar-50:  #EEF7FA;
  --mar-100: #DDF0F5;
  --mar-400: #4FB3CF;       /* azul só sobre carvão */
  --mar-600: #0E7894;
  --mar-700: #0E6A85;       /* selo info, anel de foco (branco por cima: 6,1:1) */

  /* sucesso */
  --mata-100: #E2F2E8;
  --mata-500: #2E9461;      /* check, ponto ok (gráfico) */
  --mata-ink: #1E6B45;

  /* erro: carmim frio, diferente do ketchup da marca; sempre com ícone e texto */
  --erro-100: #FCE7EC;
  --erro-500: #B0123B;
  --erro-ink: #9C1035;

  /* carvão: a sombra das letras e a chapa */
  --carvao-950: #15110E;
  --carvao-900: #1F1915;
  --carvao-800: #2B241F;
  --carvao-700: #3D342D;
  --carvao-300: #C9BFB4;   /* texto secundário sobre carvão */
  --carvao-200: #E2DBD3;

  /* neutros: claro e neutro, sem bege */
  --ground:  #F8F6F2;
  --raised:  #FFFFFF;
  --sunk:    #EFECE6;
  --line:    #E5E0D9;
  --line-2:  #CFC8BF;
  --control: #8A8178;      /* borda de campo e de controle: 3,8:1 no branco */
  --ink:     #1B1612;
  --ink-2:   #3A322C;
  --muted:   #645C53;

  /* papéis (use estes nos componentes) */
  --action: var(--laranja-500);
  --action-hover: var(--laranja-600);
  --action-ink: var(--carvao-950);
  --link: var(--laranja-800);
  --focus: var(--mar-700);
  --escuro: var(--carvao-900);

  /* canais de pedido: a cor marca o selo e a borda do cartão; o nome está sempre escrito */
  --canal-proprio: var(--laranja-500);   /* texto carvão por cima */
  --canal-ifood: var(--ketchup-600);     /* texto branco por cima */
  --canal-99food: var(--sol-400);        /* texto carvão por cima */
  --canal-whatsapp: var(--mata-ink);     /* texto branco por cima */
  --canal-balcao: var(--carvao-900);     /* texto branco por cima */

  /* tipografia */
  --font-display: 'Lilita One', 'Arial Black', Impact, sans-serif;   /* títulos, preços, números */
  --font-letra: 'Bangers', 'Lilita One', Impact, sans-serif;         /* só a letra de quadrinho da marca */
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15.5px; --fs-lg: 17px; --fs-xl: 20px;
  --fs-h3: 22px; --fs-h2: clamp(27px, 2.5vw, 34px); --fs-h1: clamp(32px, 3.4vw, 46px); --fs-hero: clamp(44px, 6.6vw, 88px);

  /* forma */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(31, 25, 21, .06), 0 2px 8px rgba(31, 25, 21, .05);
  --shadow-2: 0 2px 4px rgba(31, 25, 21, .05), 0 12px 28px -6px rgba(31, 25, 21, .18);
  --shadow-3: 0 6px 16px rgba(31, 25, 21, .10), 0 28px 60px -12px rgba(31, 25, 21, .34);
  --shadow-hq: 4px 4px 0 var(--carvao-950);   /* sombra dura de quadrinho: só em peça de marca */

  /* movimento (BASE.md, "Movimento") */
  --dur-press: 120ms;   /* botão afunda */
  --dur-quick: 160ms;   /* hover de cor, saída de menu, toast saindo */
  --dur-fast: 240ms;    /* abas deslizando, troca de ícone, entrada de balão */
  --dur-base: 320ms;    /* entrada de view, modal, folha */
  --dur-slow: 400ms;    /* destaque raro: check de sucesso, pedido entregue */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease-bounce: cubic-bezier(.34, 1.36, .64, 1);

  --protobar-h: 52px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--action);
  overflow-x: hidden;
  font-variant-numeric: lining-nums;
  font-synthesis-weight: none;   /* Lilita One e Bangers têm um peso só: nada de negrito falso */
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: var(--sol-300); color: var(--carvao-950); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.ico { display: inline-block; vertical-align: -0.18em; flex: none; }

/* títulos: Lilita One, pesada e redonda, legível em tela de trabalho */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  color: var(--carvao-900);
  font-variant-numeric: lining-nums;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); letter-spacing: 0; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.is-suposicao { text-decoration: underline dotted var(--laranja-700) 2px; text-underline-offset: 4px; cursor: help; }

/* ---------- 3. Barra do protótipo ---------- */
.protobar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: calc(var(--protobar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0 16px;
  display: flex; align-items: center; gap: 14px;
  background: var(--carvao-950);
  color: var(--carvao-200);
  border-bottom: 1px solid #2B2622;
}
.protobar__tag {
  display: flex; align-items: center; gap: 8px; flex: none;
  font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.protobar__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--sol-400); box-shadow: 0 0 0 3px rgba(242, 182, 48, .2); }
.protobar__nav {
  position: relative; display: flex; gap: 2px; margin-left: auto;
  overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 12px;
}
.protobar__nav::-webkit-scrollbar { display: none; }
.protobar :focus-visible { outline-color: var(--sol-400); }
.protobar__nav a {
  position: relative; z-index: 1;
  color: var(--carvao-200); text-decoration: none; white-space: nowrap;
  font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 9px;
  transition: color var(--dur-quick) ease;
}
.protobar__nav a b { font-weight: 750; color: var(--sol-400); margin-right: 2px; transition: color var(--dur-quick) ease; }
.protobar__nav a:hover { color: #fff; }
.protobar__nav a[aria-current="page"] { color: var(--carvao-950); }
.protobar__nav a[aria-current="page"] b { color: var(--carvao-950); }
.protobar__pill {
  position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0;
  background: var(--action); border-radius: 9px;
  transition: transform var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.protobar__reset {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid #3A332E; background: transparent; color: var(--carvao-200);
  transition: background var(--dur-quick) ease, color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out);
}
.protobar__reset:hover { background: #2A2521; color: #fff; }
.protobar__reset:active { transform: scale(.94); }

/* ---------- 4. Palco das views ---------- */
#view { position: relative; padding-top: calc(var(--protobar-h) + env(safe-area-inset-top, 0px)); min-height: 100vh; }
.view { min-height: calc(100vh - var(--protobar-h)); }
.view.is-leaving { position: absolute; left: 0; right: 0; top: calc(var(--protobar-h) + env(safe-area-inset-top, 0px)); pointer-events: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }

/* ---------- 5. Botões ---------- */
.btn {
  --btn-bg: var(--raised); --btn-ink: var(--ink-2); --btn-line: var(--line-2); --btn-hover: var(--sunk);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 650; font-size: 15px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-quick) ease, border-color var(--dur-quick) ease, color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out), box-shadow var(--dur-quick) ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { flex: none; }
.btn--primary { --btn-bg: var(--action); --btn-ink: var(--action-ink); --btn-line: transparent; --btn-hover: var(--action-hover); }
.btn--sol { --btn-bg: var(--sol-400); --btn-ink: var(--carvao-950); --btn-line: transparent; --btn-hover: var(--sol-300); }
.btn--escuro { --btn-bg: var(--carvao-900); --btn-ink: #fff; --btn-line: transparent; --btn-hover: var(--carvao-800); }
.btn--ghost { --btn-bg: var(--raised); --btn-ink: var(--ink-2); --btn-line: var(--line-2); --btn-hover: var(--laranja-50); }
.btn--ghost:hover { border-color: var(--laranja-300); color: var(--laranja-800); }
.btn--quiet { --btn-bg: transparent; --btn-line: transparent; --btn-ink: var(--link); --btn-hover: var(--mar-50); }
.btn--danger { --btn-bg: var(--erro-500); --btn-ink: #fff; --btn-line: transparent; --btn-hover: var(--erro-ink); }
.btn--zap { --btn-bg: #008069; --btn-ink: #fff; --btn-line: transparent; --btn-hover: #006E5A; }   /* verde do topo do WhatsApp: 4,89 com branco */
.btn--on-dark { --btn-bg: rgba(255,255,255,.08); --btn-ink: #fff; --btn-line: rgba(255,255,255,.24); --btn-hover: rgba(255,255,255,.16); }
.btn--sm { min-height: 36px; padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 17px; border-radius: 14px; }
.btn--icon { padding: 0; width: 44px; }
.btn--icon.btn--sm { width: 36px; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { cursor: progress; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ct-spin .7s linear infinite; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--link); text-decoration: none; }
.link-arrow svg { transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. Selos ---------- */
.selo {
  --s-bg: var(--sunk); --s-ink: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--s-bg); color: var(--s-ink);
  font-size: 12.5px; font-weight: 650; line-height: 1;
}
.selo svg { width: 14px; height: 14px; }
.selo .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.selo--ok { --s-bg: var(--mata-100); --s-ink: var(--mata-ink); }
.selo--warn { --s-bg: var(--sol-100); --s-ink: var(--sol-ink); }
.selo--err { --s-bg: var(--erro-100); --s-ink: var(--erro-ink); }
.selo--info { --s-bg: var(--mar-100); --s-ink: var(--mar-700); }
.selo--hot { --s-bg: var(--laranja-100); --s-ink: var(--laranja-ink); }
.selo--sol { --s-bg: var(--sol-400); --s-ink: var(--carvao-950); }
.selo--escuro { --s-bg: var(--carvao-900); --s-ink: #fff; }
.selo--live .dot { background: var(--laranja-500); box-shadow: 0 0 0 3px rgba(224, 122, 31, .22); }
.selo--lg { height: 30px; padding: 0 13px; font-size: 14px; }
/* limpeza: "em limpeza" tem um ponto que respira devagar (é estado vivo) */
.selo--limp[data-limpeza="em_limpeza"] .dot { animation: limp-pulse 1.6s ease-in-out infinite; }
@keyframes limp-pulse { 50% { opacity: .35; } }
/* canal: texto + ícone; a cor é a mesma do mapa */
.selo--canal { --s-bg: var(--sunk); --s-ink: var(--ink-2); }
.selo--canal svg { color: var(--c, currentColor); }
.badge-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--sol-400); color: var(--carvao-950); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- 7. Superfícies ---------- */
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card--pad { padding: 20px 22px; }
.card--link { display: block; color: inherit; text-decoration: none; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-quick) ease; }
@media (hover: hover) and (pointer: fine) {
  .card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
}
.card--link:active { transform: translateY(-1px) scale(.99); }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0; }
.panel-title a { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* KPI: rótulo curto, número grande */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); }
.kpi__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi__value { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1.05; letter-spacing: 0; color: var(--carvao-900); font-variant-numeric: tabular-nums lining-nums; }
.kpi__value small { font-size: 18px; font-weight: 700; color: var(--muted); }
.kpi__note { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.kpi__note--ok { color: var(--mata-ink); }
.kpi__note--warn { color: var(--laranja-ink); }
.kpi--escuro { background: var(--carvao-900); border-color: var(--carvao-900); }
.kpi--escuro .kpi__label { color: var(--carvao-300); }
.kpi--escuro .kpi__value { color: #fff; }
.kpi--escuro .kpi__value .sol { color: var(--sol-400); }
.kpi--escuro .kpi__value small { color: var(--carvao-300); }

/* lista leve */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.row:last-child { border-bottom: 0; }
a.row { border-radius: 8px; transition: background-color var(--dur-quick) ease; }
a.row:hover { background: var(--ground); }
.row__time { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--carvao-900); width: 54px; flex: none; font-variant-numeric: tabular-nums lining-nums; }
.row__grow { flex: 1; min-width: 0; }
.row__grow b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__grow small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tabela leve */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 11px 14px; font-size: 12.5px; font-weight: 650; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; background: #FCFBFA; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color var(--dur-quick) ease; }
.tbl tbody tr[data-href] { cursor: pointer; }
.tbl tbody tr:hover { background: var(--ground); }
.tbl .r { text-align: right; }
.tbl b { font-weight: 650; }

/* avatar */
.avatar { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--carvao-700); color: #fff; font-weight: 700; font-size: 13px; }
.avatar--sm { width: 26px; height: 26px; font-size: 11px; }

/* estrelas (exibição) */
.stars { display: inline-flex; gap: 2px; color: var(--laranja-500); }
.stars svg { width: 15px; height: 15px; }
.stars .off { color: var(--line-2); }

/* vazio */
.empty { display: grid; justify-items: center; gap: 8px; padding: 28px 18px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); }
.empty svg { width: 28px; height: 28px; color: var(--line-2); }

.kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--raised); font-size: 12px; font-weight: 700; text-align: center; color: var(--ink-2); }

/* ---------- 8. Chips e abas ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--raised); color: var(--ink-2); font-size: 14px; font-weight: 600;
  transition: background-color var(--dur-quick) ease, border-color var(--dur-quick) ease, color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out);
}
.chip:hover { border-color: var(--laranja-300); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--carvao-900); border-color: var(--carvao-900); color: #fff; }
.chip svg { width: 16px; height: 16px; }
.chip .n { font-size: 12px; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }

/* abas deslizantes em pílula (segmented) */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--sunk); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__btn { position: relative; z-index: 1; border: 0; background: transparent; padding: 8px 14px; min-height: 36px; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; transition: color var(--dur-fast) var(--ease-out); }
.seg__btn:hover, .seg__btn[aria-selected="true"] { color: var(--ink); }
.seg__pill { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 10px; background: var(--raised); box-shadow: 0 1px 2px rgba(33,29,26,.08), 0 2px 6px rgba(33,29,26,.06); transition: transform var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out); pointer-events: none; }
.seg--escuro { background: rgba(255,255,255,.08); }
.seg--escuro .seg__btn { color: var(--carvao-200); }
.seg--escuro .seg__btn[aria-selected="true"], .seg--escuro .seg__btn:hover { color: var(--carvao-950); }
.seg--escuro .seg__pill { background: var(--sol-400); }
.seg--escuro .seg__btn:not([aria-selected="true"]):hover { color: #fff; }

/* abas com traço deslizante (sublinhado) */
.tabs { position: relative; display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn { border: 0; background: transparent; padding: 11px 14px; min-height: 44px; font-weight: 650; font-size: 14.5px; color: var(--muted); white-space: nowrap; transition: color var(--dur-fast) ease; }
.tabs__btn:hover, .tabs__btn[aria-selected="true"] { color: var(--ink); }
.tabs__bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; border-radius: 3px 3px 0 0; background: var(--action); transition: transform var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out); pointer-events: none; }

/* ---------- 9. Formulário ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field__label .muted { font-weight: 500; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--control); background: var(--raised); font-size: 16px; outline: none;
  transition: border-color var(--dur-quick) ease, box-shadow var(--dur-quick) ease;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus { border-color: var(--mar-600); box-shadow: 0 0 0 3px rgba(14, 106, 133, .2); }
select.input { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366615A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea.input { min-height: 96px; resize: vertical; }
.field.is-invalid .input { border-color: var(--erro-500); box-shadow: 0 0 0 3px rgba(179, 38, 58, .14); }
.field__err { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--erro-ink); }
.field.is-invalid .field__err { display: flex; }
.is-shaking { animation: ct-shake 360ms var(--ease-out); }
@keyframes ct-shake { 0%,100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--action); flex: none; }

/* interruptor */
.switch { position: relative; width: 46px; height: 28px; border-radius: 99px; border: 0; background: var(--line-2); flex: none; transition: background-color var(--dur-fast) ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(33,29,26,.25); transition: transform var(--dur-fast) var(--ease-bounce); }
.switch[aria-checked="true"] { background: var(--mata-500); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 14px; background: var(--sunk); }
.stepper button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; border: 0; background: var(--raised); color: var(--carvao-900); box-shadow: 0 1px 2px rgba(33,29,26,.1); transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-quick) ease; }
.stepper button:active { transform: scale(.92); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.stepper output { min-width: 30px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums lining-nums; }
/* número que sobe (marca o pulo) */
.is-bumped { animation: ct-bump 320ms var(--ease-out); }
@keyframes ct-bump { 0% { transform: translateY(0); } 35% { transform: translateY(-3px); } 100% { transform: none; } }

/* troca suave de dígitos */
.t-num { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums lining-nums; }
.t-num__slot { position: relative; display: inline-block; }
.t-num__new { display: inline-block; }
.t-num__old { position: absolute; inset: 0; text-align: center; pointer-events: none; }
.t-num.is-animating .t-num__new { animation: t-num-in 360ms var(--ease-out) both; }
.t-num.is-animating .t-num__old { animation: t-num-out 360ms var(--ease-out) both; }
@keyframes t-num-in { from { transform: translateY(calc(.45em * var(--dir, 1))); opacity: 0; filter: blur(2px); } }
@keyframes t-num-out { to { transform: translateY(calc(-.45em * var(--dir, 1))); opacity: 0; filter: blur(2px); } }

/* ---------- 13. QR ---------- */
.qr { display: inline-block; padding: 12px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--carvao-950); line-height: 0; }
.qr svg { width: 100%; height: auto; }
.qr--lg { padding: 18px; }

/* ---------- 14. Check de sucesso ---------- */
.okcheck { display: inline-grid; place-items: center; width: var(--ok-size, 72px); height: var(--ok-size, 72px); border-radius: 50%; background: var(--mata-500); color: #fff; box-shadow: 0 0 0 calc(var(--ok-size, 72px) * .14) rgba(46, 148, 97, .15); opacity: 0; }
.okcheck svg { width: 52%; height: 52%; overflow: visible; }
.okcheck path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.okcheck[data-state="in"] { animation: ok-fade 400ms var(--ease-out) forwards, ok-rot 400ms var(--ease-out) forwards, ok-blur 400ms var(--ease-out) forwards, ok-bob 460ms var(--ease-bounce) forwards; }
.okcheck[data-state="in"] path { animation: ok-draw 420ms var(--ease-out) 120ms forwards; }
.okcheck[data-state="static"] { opacity: 1; }
.okcheck[data-state="static"] path { stroke-dashoffset: 0; }
.okcheck--sol { background: var(--sol-400); color: var(--carvao-950); box-shadow: 0 0 0 10px rgba(242, 182, 48, .22); }
@keyframes ok-fade { to { opacity: 1; } }
@keyframes ok-rot { from { transform: rotate(60deg); } to { transform: none; } }
@keyframes ok-blur { from { filter: blur(8px); } to { filter: none; } }
@keyframes ok-bob { from { translate: 0 24px; } to { translate: 0 0; } }
@keyframes ok-draw { to { stroke-dashoffset: 0; } }

/* ---------- 15. Toast ---------- */
#toast-root { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 520px;
  padding: 11px 12px 11px 14px; border-radius: 14px; background: var(--carvao-950); color: #fff;
  font-size: 14.5px; font-weight: 550; box-shadow: var(--shadow-3);
  opacity: 0; transform: translateY(14px) scale(.97); filter: blur(3px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), filter 200ms var(--ease-out);
}
.toast.is-open { opacity: 1; transform: none; filter: none; transition-duration: 340ms; }
.toast__ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--mata-500); color: #fff; }
.toast__ic svg { width: 15px; height: 15px; }
.toast--info .toast__ic { background: var(--mar-600); }
.toast--warn .toast__ic { background: var(--sol-400); color: var(--carvao-950); }
.toast--err .toast__ic { background: var(--erro-500); }
.toast__act { margin-left: 6px; border: 0; background: rgba(255,255,255,.1); color: var(--sol-300); font-weight: 700; font-size: 13.5px; padding: 7px 11px; border-radius: 9px; transition: background-color var(--dur-quick) ease; }
.toast__act:hover { background: rgba(255,255,255,.18); }

/* ---------- 16. Modal e folha ---------- */
dialog.modal, dialog.sheet { padding: 0; border: 0; color: inherit; background: transparent; max-width: none; max-height: none; overflow: visible; }
dialog.modal::backdrop, dialog.sheet::backdrop { background: rgba(23, 20, 18, .5); opacity: 0; transition: opacity 240ms ease; }
dialog.modal.is-open::backdrop, dialog.sheet.is-open::backdrop { opacity: 1; }
dialog.modal { margin: auto; width: min(540px, calc(100vw - 32px)); }
dialog.modal.modal--lg { width: min(820px, calc(100vw - 32px)); }
.modal__box {
  background: var(--raised); border-radius: 20px; box-shadow: var(--shadow-3); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: scale(.96);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
dialog.modal.is-open .modal__box { opacity: 1; transform: none; transition-duration: 260ms; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.modal__head h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0; }
.modal__body { padding: 4px 20px 20px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal__foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #FCFBFA; }
.x-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); flex: none; transition: background-color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out); }
.x-btn:hover { background: var(--sunk); color: var(--ink); }
.x-btn:active { transform: scale(.92); }

dialog.sheet { margin: auto auto 0; width: min(560px, 100vw); }
.sheet__box {
  background: var(--raised); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-3);
  max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(100%); transition: transform 240ms var(--ease-out);
}
dialog.sheet.is-open .sheet__box { transform: none; transition: transform 420ms var(--ease-drawer); }
.sheet__handle { display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.sheet__handle::before { content: ""; width: 42px; height: 5px; border-radius: 5px; background: var(--line-2); }
.sheet__box .modal__head { padding-top: 4px; }

/* ---------- 17. Palco (celular + coluna lateral), introdução, log, Experimente ---------- */
.stage { max-width: 1240px; margin: 0 auto; padding: 28px 20px 56px; display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); gap: 36px; align-items: start; }
.stage__phone { position: sticky; top: calc(var(--protobar-h) + 20px); }
.stage__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.intro h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: 0; color: var(--carvao-900); margin-bottom: 10px; }
.intro p { max-width: 62ch; color: var(--ink-2); font-size: 16px; }
.intro .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.log { padding: 18px 18px 14px; }
.log__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.log__head h3 { font-family: var(--font-display); font-weight: 800; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.log__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.log__item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--ground); font-size: 14px; line-height: 1.4; }
.log__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--mar-100); color: var(--mar-700); }
.log__ic svg { width: 15px; height: 15px; }
.log__item--ok .log__ic { background: var(--mata-100); color: var(--mata-ink); }
.log__item--warn .log__ic { background: var(--sol-100); color: var(--sol-ink); }
.log__item--err .log__ic { background: var(--erro-100); color: var(--erro-ink); }
.log__item time { font-size: 12px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 3px; }
.log__item a { font-weight: 650; text-decoration: none; white-space: nowrap; }
.log__item.is-new { animation: log-in 360ms var(--ease-out) both; }
@keyframes log-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.log__empty { padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; text-align: center; color: var(--muted); font-size: 14px; }

.try { padding: 18px; }
.try__list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.try__item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--raised);
  transition: border-color var(--dur-quick) ease, background-color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out);
}
.try__item:hover { border-color: var(--laranja-300); background: var(--laranja-50); }
.try__item:active { transform: scale(.985); }
.try__n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--carvao-900); color: var(--sol-400); font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.try__item b { display: block; font-weight: 650; font-size: 14.5px; }
.try__item small { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; }
.try__item .go { margin-left: auto; color: var(--muted); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-quick) ease; }
.try__item:hover .go { transform: translateX(3px); color: var(--laranja-800); }
.try__item.is-done .try__n { background: var(--mata-500); color: #fff; }

/* em construção (views provisórias) */
.wip { max-width: 1100px; margin: 0 auto; padding: 48px 20px; }
.wip__card { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; border-radius: 24px; background: var(--raised); border: 1px solid var(--line); }
.wip__art { position: relative; min-height: 340px; background: var(--carvao-900); color: #fff; display: grid; place-items: center; overflow: hidden; }
.wip__art .ph { position: absolute; inset: 0; }
.wip__art > svg { position: relative; z-index: 1; width: 160px; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.wip__body { padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.wip__body > .selo { align-self: flex-start; }
.wip__body ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.wip__body li { margin-bottom: 4px; }

/* ---------- 18. O celular (phone.js) ---------- */
.phone {
  --ph-w: 372px; --ph-h: min(760px, calc(100vh - var(--protobar-h) - 48px));
  position: relative; width: 100%; max-width: var(--ph-w); height: var(--ph-h); min-height: 560px; margin: 0 auto;
  padding: 11px; border-radius: 50px;
  background: linear-gradient(145deg, #3A3430 0%, #14110F 38%, #070605 100%);
  box-shadow: inset 0 0 0 1.5px #4A433D, inset 0 0 0 3px #0A0908, 0 30px 70px -18px rgba(33, 29, 26, .45), 0 10px 24px -8px rgba(33, 29, 26, .3);
}
.phone--mini { zoom: .66; min-height: 0; }
.phone__screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #fff; color: var(--ink); text-align: left; display: flex; flex-direction: column; isolation: isolate; }
.phone__island { position: absolute; z-index: 30; top: 10px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; }
.phone__status { position: relative; z-index: 25; flex: none; height: 46px; padding: 14px 26px 0 30px; display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; font-weight: 650; color: #0B141A; font-variant-numeric: tabular-nums; }
.phone__status.is-light { color: #fff; }
.phone__status .icons { display: flex; align-items: center; gap: 5px; }
.phone__status svg { height: 12px; width: auto; }
.phone__app { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.phone__home { position: absolute; z-index: 40; bottom: 7px; left: 50%; width: 124px; height: 5px; margin-left: -62px; border-radius: 5px; background: rgba(11, 20, 26, .55); pointer-events: none; }

/* WhatsApp (só a convenção visual: verde do topo, papel de parede, balões) */
.wa { --wa-top: #008069; --wa-bg: #EFEAE2; --wa-in: #FFFFFF; --wa-out: #D9FDD3; --wa-ink: #111B21; --wa-meta: #667781; --wa-blue: #53BDEB; --wa-link: #027EB5; --wa-green: #00A884;
  flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--wa-bg); color: var(--wa-ink); font-size: 14.5px; }
.phone__screen.has-wa { background: var(--wa-top, #008069); }
.phone__screen.has-wa .phone__status { background: #008069; color: #fff; }
.wa__head { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px 4px; background: var(--wa-top); color: #fff; }
.wa__back { display: grid; place-items: center; width: 30px; height: 36px; border: 0; background: transparent; color: #fff; border-radius: 50%; }
.wa__av { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; background: #fff; }
.wa__av svg { width: 100%; height: 100%; }
.wa__who { flex: 1; min-width: 0; line-height: 1.2; }
.wa__who b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa__who small { display: block; position: relative; height: 16px; font-size: 12.5px; opacity: .88; white-space: nowrap; overflow: hidden; }
.wa__who small span { position: absolute; left: 0; top: 0; transition: opacity 200ms ease, transform 200ms var(--ease-out), filter 200ms ease; }
.wa__who small span.is-out { opacity: 0; transform: translateY(-5px); filter: blur(2px); }
.wa__acts { display: flex; gap: 2px; }
.wa__acts span { display: grid; place-items: center; width: 34px; height: 34px; opacity: .95; }
.wa__body {
  position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 3px;
  background-color: var(--wa-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23000' stroke-opacity='.05' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 30a14 9 0 0 1 28 0z'/%3E%3Cpath d='M9 34h30M10 38c4 2 24 2 28 0'/%3E%3Ccircle cx='74' cy='26' r='6'/%3E%3Ccircle cx='96' cy='26' r='6'/%3E%3Cpath d='M74 26l8-10h8l6 10M84 16h-4'/%3E%3Cpath d='M22 86l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3Cpath d='M80 78c0 6 4 8 4 12a4 4 0 0 1-8 0c0-4 4-6 4-12z'/%3E%3Cpath d='M102 60v8M98 64h8'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  scrollbar-width: none;
}
.wa__body::-webkit-scrollbar { display: none; }
.wa__crypt { align-self: center; max-width: 88%; margin: 2px 0 8px; padding: 6px 10px; border-radius: 8px; background: #FFEECD; color: #54656F; font-size: 12px; line-height: 1.35; text-align: center; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa__day { align-self: center; margin: 8px 0 6px; padding: 5px 11px; border-radius: 8px; background: #fff; color: #54656F; font-size: 12px; font-weight: 500; letter-spacing: .02em; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa__sys { align-self: center; max-width: 90%; margin: 6px 0; padding: 6px 11px; border-radius: 8px; background: #FFF6D2; color: #54656F; font-size: 12.5px; text-align: center; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa__msg { display: flex; flex-direction: column; max-width: 84%; margin-top: 2px; }
.wa__msg.is-first { margin-top: 8px; }
.wa__msg--in { align-self: flex-start; transform-origin: 0 100%; }
.wa__msg--out { align-self: flex-end; transform-origin: 100% 100%; }
.wa__bubble { position: relative; padding: 6px 8px 7px 9px; border-radius: 8px; background: var(--wa-in); box-shadow: 0 1px .5px rgba(11,20,26,.13); line-height: 1.38; overflow-wrap: anywhere; }
.wa__msg--out .wa__bubble { background: var(--wa-out); }
.wa__msg--in.is-first .wa__bubble { border-top-left-radius: 0; }
.wa__msg--out.is-first .wa__bubble { border-top-right-radius: 0; }
.wa__msg--in.is-first .wa__bubble::before, .wa__msg--out.is-first .wa__bubble::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; background: inherit; }
.wa__msg--in.is-first .wa__bubble::before { left: -8px; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wa__msg--out.is-first .wa__bubble::before { right: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa__msg.has-btns .wa__bubble { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.wa__text b { font-weight: 650; }
.wa__text a { color: var(--wa-link); text-decoration: none; }
.wa__text a:hover { text-decoration: underline; }
.wa__meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px 0 -4px 10px; font-size: 11px; color: var(--wa-meta); font-variant-numeric: tabular-nums; }
.wa__ticks { display: inline-grid; width: 16px; height: 11px; color: #8696A0; transition: color 240ms ease; }
.wa__ticks svg { grid-area: 1 / 1; width: 16px; height: 11px; }
.wa__ticks .t2 { opacity: 0; transition: opacity 200ms ease; }
.wa__ticks[data-s="entregue"] .t2, .wa__ticks[data-s="lido"] .t2 { opacity: 1; }
.wa__ticks[data-s="lido"] { color: var(--wa-blue); }
.wa__ticks[data-s="falhou"] { color: var(--erro-500); }
.wa__auto { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: #1F7AEC; }
.wa__preview { display: block; margin: -1px -2px 6px; width: calc(100% + 4px); border: 0; padding: 0; text-align: left; border-radius: 6px; overflow: hidden; background: #F5F6F6; color: inherit; transition: background-color var(--dur-quick) ease; }
.wa__msg--out .wa__preview { background: #D1F4CC; }
.wa__preview:hover { background: #ECEEEF; }
.wa__preview-img { height: 118px; background: var(--carvao-800); }
.wa__preview-img img, .wa__preview-img .ph { width: 100%; height: 100%; object-fit: cover; }
.wa__preview-txt { display: block; padding: 8px 10px 9px; }
.wa__preview-txt b { display: block; font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.wa__preview-txt small { display: block; color: var(--wa-meta); font-size: 12.5px; line-height: 1.3; margin-top: 2px; }
.wa__preview-txt em { display: block; margin-top: 3px; font-style: normal; color: var(--wa-meta); font-size: 11.5px; }
.wa__img { display: block; width: calc(100% + 6px); margin: -3px -3px 5px; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--carvao-800); border: 0; padding: 0; }
.wa__img img { width: 100%; height: 100%; object-fit: cover; }
.wa__pdf { display: flex; align-items: center; gap: 10px; width: calc(100% + 4px); min-width: 230px; margin: -2px -2px 4px; padding: 10px; border: 0; border-radius: 6px; background: #F5F6F6; color: inherit; text-align: left; transition: background-color var(--dur-quick) ease; }
.wa__msg--out .wa__pdf { background: #D1F4CC; }
.wa__pdf:hover { background: #ECEEEF; }
.wa__pdf i { display: grid; place-items: center; width: 32px; height: 38px; border-radius: 4px; background: #E5483F; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; flex: none; }
.wa__pdf b { display: block; font-size: 13.5px; font-weight: 600; }
.wa__pdf small { display: block; font-size: 12px; color: var(--wa-meta); }
.wa__btns { display: flex; flex-direction: column; gap: 1px; margin-top: 1px; }
.wa__btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border: 0; background: var(--wa-in); color: var(--wa-link); font-size: 14px; font-weight: 600; box-shadow: 0 1px .5px rgba(11,20,26,.13); transition: background-color var(--dur-quick) ease; }
.wa__btn:last-child { border-radius: 0 0 8px 8px; }
.wa__btn:hover { background: #F5F6F6; }
.wa__btn:active { background: #ECEEEF; }
.wa__btn svg { width: 16px; height: 16px; }
.wa__typing { align-self: flex-start; display: flex; gap: 4px; margin-top: 8px; padding: 12px 13px; border-radius: 0 8px 8px 8px; background: var(--wa-in); box-shadow: 0 1px .5px rgba(11,20,26,.13); transform-origin: 0 100%; }
.wa__typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696A0; animation: wa-dot 1.2s infinite ease-in-out; }
.wa__typing i:nth-child(2) { animation-delay: .16s; }
.wa__typing i:nth-child(3) { animation-delay: .32s; }
@keyframes wa-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.wa__in { animation: wa-in 300ms var(--ease-out) both; }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.wa__quick { flex: none; display: flex; gap: 6px; padding: 6px 10px 2px; overflow-x: auto; scrollbar-width: none; background: var(--wa-bg); }
.wa__quick::-webkit-scrollbar { display: none; }
.wa__quick:empty { display: none; }
.wa__quick button { flex: none; min-height: 44px; padding: 9px 14px; border-radius: 22px; border: 1px solid #C9E9DF; background: #fff; color: #008069; font-size: 13.5px; font-weight: 600; box-shadow: 0 1px .5px rgba(11,20,26,.1); animation: wa-in 260ms var(--ease-out) both; transition: background-color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out); }
.wa__quick button:hover { background: #E7F8F1; }
.wa__quick button:active { transform: scale(.95); }
.wa__foot { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px 22px; background: var(--wa-bg); }
.wa__field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; min-height: 46px; padding: 0 8px 0 6px; border-radius: 24px; background: #fff; box-shadow: 0 1px .5px rgba(11,20,26,.13); color: #54656F; }
.wa__field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15.5px; color: var(--wa-ink); }
.wa__field input::placeholder { color: #667781; }
.wa__field span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; }
.wa__send { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--wa-green); color: #fff; flex: none; transition: transform var(--dur-press) var(--ease-out); }
.wa__send:active { transform: scale(.92); }

/* navegador dentro do celular */
.pbrowser { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; background: #fff; transform: translateY(100%); transition: transform 240ms var(--ease-out); }
.pbrowser.is-open { transform: none; transition: transform 420ms var(--ease-drawer); }
.pbrowser--page { position: relative; inset: auto; flex: 1; min-height: 0; transform: none; transition: none; }
.pbrowser__bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; background: #F7F6F4; border-bottom: 1px solid #E6E2DC; }
.pbrowser__x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #3B3632; flex: none; }
.pbrowser__x:hover { background: #ECE8E3; }
.pbrowser__url { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 17px; background: #ECE8E3; color: #3B3632; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.pbrowser__url span { overflow: hidden; text-overflow: ellipsis; }
.pbrowser__url svg { width: 12px; height: 12px; flex: none; color: var(--mata-ink); }
.pbrowser__prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--laranja-500); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.pbrowser__prog.is-loading { opacity: 1; animation: pb-load 520ms var(--ease-out) forwards; }
@keyframes pb-load { 0% { transform: scaleX(.05); opacity: 1; } 85% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.pbrowser__view { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--ground); scrollbar-width: none; }
.pbrowser__view::-webkit-scrollbar { display: none; }
.pbrowser__view.is-fresh > * { animation: pb-in 320ms var(--ease-out) both; }
@keyframes pb-in { from { opacity: 0; transform: translateY(8px); } }
.papp { flex: 1; min-height: 0; overflow-y: auto; background: var(--ground); scrollbar-width: none; }
.papp::-webkit-scrollbar { display: none; }

/* ---------- 19. Responsivo ---------- */
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; gap: 24px; }
  .stage__phone { position: static; }
  .wip__card { grid-template-columns: 1fr; }
  .wip__art { min-height: 240px; }
}
@media (max-width: 640px) {
  :root { --protobar-h: 50px; }
  .stage { padding: 18px 16px 40px; }
  .wip { padding: 20px 16px; }
  .wip__body { padding: 22px; }
  .card--pad { padding: 16px; }
  .phone { --ph-h: min(700px, calc(100vh - var(--protobar-h) - 32px)); border-radius: 44px; padding: 9px; }
  .phone__screen { border-radius: 36px; }
  /* barra do protótipo: rótulos curtos, sem o selo, para as 5 abas caberem em 390 px */
  .protobar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .protobar__tag { display: none; }
  .protobar__nav { margin-left: 0; flex: 1; }
  .protobar__nav a { font-size: 13px; padding: 7px 8px; }
  .protobar__nav a b, .protobar__nav a .sep, .protobar__nav .lg-only { display: none; }
  .protobar__reset { width: 34px; height: 34px; }
}

/* ---------- 20. Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .okcheck { opacity: 1 !important; }
  .okcheck path { stroke-dashoffset: 0 !important; }
  .wa__typing i { opacity: .7; transform: none; }
}

/* =====================================================================
   21. Marca e componentes do delivery
   ===================================================================== */

/* letra de quadrinho (Bangers): recheio amarelo, contorno e sombra dura carvão. Só para peça de marca */
.letra {
  font-family: var(--font-letra); font-weight: 400; letter-spacing: .03em; line-height: .95;
  color: var(--sol-400); -webkit-text-stroke: .09em var(--carvao-950); paint-order: stroke fill;
  text-shadow: .06em .07em 0 var(--carvao-950);
  display: inline-block; transform: rotate(-2deg);
}
.letra--sm { font-size: 18px; }
.letra--xl { font-size: clamp(34px, 4.4vw, 52px); }
.txt-ok { color: var(--mata-ink); font-weight: 700; }
.ilu { display: block; flex: none; }

/* fundo de marca: o laranja do disco com retícula de quadrinho */
.halftone {
  background:
    radial-gradient(circle at 1px 1px, rgba(21, 17, 14, .16) 1.2px, transparent 1.6px) 0 0 / 9px 9px,
    radial-gradient(120% 90% at 30% 20%, #FFD45C 0%, #FFA21A 38%, #FF7A00 70%, #EE5A00 100%);
}

/* sem foto: disco laranja com a letra */
.ph { width: 100%; height: 100%; display: grid; place-items: center;
  background: radial-gradient(circle at 1px 1px, rgba(21,17,14,.14) 1.1px, transparent 1.5px) 0 0 / 8px 8px, radial-gradient(90% 90% at 40% 35%, #FFD45C 0%, #FF9A1A 50%, #F26B00 100%); }
.ph svg { width: 70%; max-width: 140px; height: auto; }
.ph--ilu { background: var(--laranja-100); }
.ph--ilu svg { width: 74%; }

/* selos novos */
.selo--marca { --s-bg: var(--laranja-500); --s-ink: var(--carvao-950); }
.selo--ketchup { --s-bg: var(--ketchup-600); --s-ink: #fff; }
.selo--xs { height: 20px; padding: 0 7px; font-size: 11px; }
.selo__sq { width: 9px; height: 9px; border-radius: 3px; background: var(--c, currentColor); flex: none; box-shadow: inset 0 0 0 1px rgba(21,17,14,.25); }
.selo--canal-proprio { --c: var(--canal-proprio); }
.selo--canal-ifood { --c: var(--canal-ifood); }
.selo--canal-99food { --c: var(--canal-99food); }
.selo--canal-whatsapp { --c: var(--canal-whatsapp); }
.selo--canal-balcao { --c: var(--canal-balcao); }
.selo--solido { --s-bg: var(--c); --s-ink: #fff; }
.selo--solido .selo__sq { display: none; }
.selo--solido.selo--canal-proprio, .selo--solido.selo--canal-99food { --s-ink: var(--carvao-950); }

/* ---------- cartão de produto: foto pequena e nítida, nome, preço, + ---------- */
.prod {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px; border-radius: var(--r-lg); background: var(--raised); border: 1px solid var(--line);
  transition: border-color var(--dur-quick) ease, box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .prod:hover { border-color: var(--laranja-300); box-shadow: var(--shadow-1); } }
.prod__foto { position: relative; width: 104px; aspect-ratio: 1; border-radius: 14px; background: var(--laranja-100); }
.prod__foto > img, .prod__foto > .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.prod__foto > img { box-shadow: inset 0 0 0 1px rgba(21,17,14,.06); }
.prod__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prod__nome { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.1; color: var(--carvao-900); }
.prod__desc { font-size: 13.5px; line-height: 1.38; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod__preco { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.prod__preco b { font-family: var(--font-display); font-weight: 400; font-size: 19px; color: var(--carvao-900); font-variant-numeric: tabular-nums lining-nums; }
.prod__preco s { font-size: 13px; color: var(--muted); }
.prod--dia .prod__preco b { color: var(--ketchup-700); }
.prod__add {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 0; align-self: end;
  background: var(--action); color: var(--action-ink); box-shadow: 0 2px 0 var(--carvao-950);
  transition: background-color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out), box-shadow var(--dur-press) ease;
}
.prod__add:hover { background: var(--action-hover); }
.prod__add:active { transform: translateY(2px); box-shadow: 0 0 0 var(--carvao-950); }
.prod__tag { position: absolute; left: -8px; top: -10px; z-index: 1; }
.prod__tag .letra { font-size: 17px; }
.prod__flag { position: absolute; left: 6px; bottom: 6px; padding: 3px 7px; border-radius: 7px; background: var(--carvao-900); color: #fff; font-size: 11px; font-weight: 700; }
.prod--compacto { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
.prod--compacto .prod__foto { width: 64px; border-radius: 10px; }
.prod--compacto .prod__foto > img, .prod--compacto .prod__foto > .ph { border-radius: 10px; }
.prod--compacto .prod__nome { font-size: 16px; }
.prod--compacto .prod__preco b { font-size: 16px; }
.prod--compacto .prod__add { width: 40px; height: 40px; border-radius: 12px; }
.prod--compacto .prod__tag .letra { font-size: 13px; }
.prod--compacto .prod__flag { display: none; }

/* faixa do Moral do Dia: a peça mais "marca" do cardápio */
.mdia {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 20px 22px; border-radius: 22px; overflow: hidden; isolation: isolate; color: var(--carvao-950);
  border: 3px solid var(--carvao-950); box-shadow: var(--shadow-hq);
  background:
    radial-gradient(circle at 1px 1px, rgba(21,17,14,.16) 1.2px, transparent 1.6px) 0 0 / 9px 9px,
    radial-gradient(120% 120% at 85% 30%, #FFD45C 0%, #FFA21A 40%, #FF7A00 75%);
}
.mdia__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.mdia__dia { font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--carvao-950); }
.mdia__nome { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--carvao-950); margin-top: 4px; }
.mdia__preco { display: flex; align-items: baseline; gap: 10px; }
.mdia__preco s { font-weight: 700; font-size: 15px; color: var(--carvao-900); }
.mdia__preco b { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--carvao-950); font-variant-numeric: tabular-nums lining-nums; }
.mdia .btn { margin-top: 6px; border: 2px solid var(--carvao-950); box-shadow: 0 3px 0 var(--carvao-950); }
.mdia .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--carvao-950); }
.mdia__foto { width: 160px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid var(--carvao-950); background: var(--laranja-100); transform: rotate(4deg); box-shadow: 6px 6px 0 rgba(21,17,14,.9); }
.mdia__foto img, .mdia__foto .ph { width: 100%; height: 100%; object-fit: cover; }
.mdia--compacto { padding: 14px 16px; gap: 12px; }
.mdia--compacto .mdia__foto { width: 104px; }
.mdia--compacto .letra--xl { font-size: 32px; }
.mdia--compacto .mdia__nome { font-size: 21px; }
.mdia--compacto .mdia__preco b { font-size: 27px; }
.mdia--fechado { display: block; padding: 16px; border-radius: 18px; background: var(--sunk); }

/* ---------- item com adicionais ---------- */
.cfg { display: flex; flex-direction: column; gap: 16px; }
.cfg__head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.cfg__foto { width: 120px; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--laranja-100); }
.cfg__foto img, .cfg__foto .ph { width: 100%; height: 100%; object-fit: cover; }
.cfg__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cfg__nome { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.05; color: var(--carvao-900); }
.cfg__desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.cfg__grupo { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cfg__grupo legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.cfg__grupo legend .muted { font-weight: 500; font-size: 13px; }
.addon {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; padding: 8px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--raised); cursor: pointer;
  transition: border-color var(--dur-quick) ease, background-color var(--dur-quick) ease;
}
.addon:hover { border-color: var(--laranja-300); }
.addon input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.addon__box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--control); background: var(--raised); color: transparent; transition: background-color var(--dur-quick) ease, border-color var(--dur-quick) ease, color var(--dur-quick) ease; }
.addon__box svg { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset 220ms var(--ease-out); }
.addon input:checked + .addon__box { background: var(--action); border-color: var(--carvao-950); color: var(--carvao-950); }
.addon input:checked + .addon__box svg { stroke-dashoffset: 0; }
.addon input:focus-visible + .addon__box { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.addon:has(input:checked) { border-color: var(--laranja-500); background: var(--laranja-50); }
.addon__nome { font-weight: 600; }
.addon__preco { font-size: 14px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cfg__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cfg__add { flex: 1; justify-content: space-between; min-width: 220px; }
.cfg__total { font-family: var(--font-display); font-weight: 400; font-size: 20px; }

/* ---------- sacola ---------- */
.sacola { display: flex; flex-direction: column; gap: 12px; }
.sacola__itens { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sacola__item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.sacola__qtd { font-family: var(--font-display); font-size: 17px; color: var(--laranja-800); padding-top: 1px; }
.sacola__nome { min-width: 0; }
.sacola__nome b { font-weight: 650; }
.sacola__nome small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.sacola__v { font-weight: 650; padding-top: 1px; }
.x-btn--sm { width: 36px; height: 36px; margin: -6px -6px 0 0; }
.sacola__tot { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sacola__tot > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.sacola__tot dt, .sacola__tot dd { margin: 0; }
.sacola__tot dd s { color: var(--muted); }
.sacola__tot .is-desc dd { color: var(--mata-ink); font-weight: 650; }
.sacola__total { padding-top: 10px; margin-top: 4px; border-top: 2px solid var(--carvao-900); align-items: baseline; }
.sacola__total dt { font-weight: 700; color: var(--ink); }
.sacola__total dd { font-family: var(--font-display); font-size: 28px; color: var(--carvao-900); }
.sacola__aviso, .sacola__ok, .sacola__cb { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.sacola__aviso { background: var(--sol-100); color: var(--sol-ink); }
.sacola__ok { background: var(--mata-100); color: var(--mata-ink); }
.sacola__cb { background: var(--laranja-50); color: var(--laranja-ink); }
.sacola__cb b { color: var(--carvao-900); }
.sacola__aviso svg, .sacola__ok svg, .sacola__cb svg { flex: none; }
.sacola--vazia .empty { border-style: dashed; }
.empty b { color: var(--ink); font-weight: 700; }
p.empty { display: flex; flex-direction: column; align-items: center; }

/* ---------- linha do tempo do pedido ---------- */
.linha { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.linha__p { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 0 0 16px; }
.linha__p:last-child { padding-bottom: 0; }
.linha__p:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.linha__p[data-st="feito"]:not(:last-child)::before { background: var(--carvao-900); }
.linha__dot { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sunk); color: var(--muted); border: 2px solid var(--line-2); }
.linha__p[data-st="feito"] .linha__dot { background: var(--carvao-900); border-color: var(--carvao-900); color: var(--sol-400); }
.linha__p[data-st="agora"] .linha__dot { background: var(--action); border-color: var(--carvao-950); color: var(--carvao-950); }
.linha__p[data-st="agora"] .linha__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--laranja-500); animation: linha-pulso 1.8s var(--ease-out) infinite; }
@keyframes linha-pulso { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.35); } }
.linha__p[data-st="erro"] .linha__dot { background: var(--erro-500); border-color: var(--erro-500); color: #fff; }
.linha__txt { display: flex; flex-direction: column; padding-top: 3px; min-width: 0; }
.linha__txt b { font-weight: 650; font-size: 14.5px; line-height: 1.25; }
.linha__p[data-st="depois"] .linha__txt b { color: var(--muted); font-weight: 600; }
.linha__txt time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.linha--h { flex-direction: row; }
.linha--h .linha__p { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0; min-width: 0; }
.linha--h .linha__p:not(:last-child)::before { left: calc(50% + 16px); right: calc(-50% + 16px); top: 13px; bottom: auto; width: auto; height: 2px; }
.linha--h .linha__txt { padding-top: 0; align-items: center; }
.linha--h .linha__txt b { font-size: 12px; }
.linha--h .linha__txt time { font-size: 11px; }

/* ---------- comanda (cartão do quadro da cozinha) ---------- */
.comanda {
  --c: var(--line-2);
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 12px 16px; border-radius: 14px;
  background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden;
}
.comanda::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.comanda--proprio { --c: var(--canal-proprio); } .comanda--ifood { --c: var(--canal-ifood); } .comanda--99food { --c: var(--canal-99food); }
.comanda--whatsapp { --c: var(--canal-whatsapp); } .comanda--balcao { --c: var(--canal-balcao); }
.comanda__head { display: flex; align-items: center; gap: 8px; }
.comanda__n { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1; color: var(--carvao-900); }
.comanda__t { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: var(--sunk); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.comanda__t.is-late, .comanda.is-atrasado .comanda__t { background: var(--erro-100); color: var(--erro-ink); }
.comanda__t--fim, .comanda.is-atrasado .comanda__t--fim { background: var(--mata-100); color: var(--mata-ink); }
.comanda[data-status="entregue"], .comanda[data-status="cancelado"] { opacity: .82; }
.comanda[data-status="cancelado"] .comanda__itens { text-decoration: line-through; color: var(--muted); }
.comanda.is-late, .comanda.is-atrasado { border-color: var(--erro-500); box-shadow: 0 0 0 1px var(--erro-500), var(--shadow-1); }
.comanda__cli { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.3; }
.comanda__cli b { font-weight: 650; font-size: 14.5px; }
.comanda__cli span { color: var(--muted); }
.comanda__itens { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line-2); display: flex; flex-direction: column; gap: 7px; }
.comanda__itens li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.comanda__q { font-family: var(--font-display); font-weight: 400; font-size: 17px; color: var(--laranja-800); }
.comanda__itens small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.comanda__obs { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 7px; border-radius: 6px; background: var(--sol-100); color: var(--sol-ink); font-style: normal; font-size: 12.5px; font-weight: 700; }
.comanda__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 2px; }

/* motoboy (lista) */
.moto-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.moto-row:last-child { border-bottom: 0; }
.avatar--moto { background: var(--carvao-900); color: var(--sol-400); }

/* ---------- KPI de CMV com régua e meta ---------- */
.kpi--cmv { display: flex; flex-direction: column; gap: 6px; }
.kpi--cmv .kpi__value { margin-top: 0; }
.kpi--cmv.is-acima .kpi__value { color: var(--ketchup-700); }
.meter { position: relative; height: 12px; margin: 22px 0 2px; border-radius: 6px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.meter__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: 6px; background: linear-gradient(90deg, var(--sol-400), var(--laranja-500) 70%, var(--ketchup-500)); transform-origin: 0 50%; animation: meter-in 700ms var(--ease-out) both; }
@keyframes meter-in { from { transform: scaleX(0); } }
.meter__meta { position: absolute; top: -6px; bottom: -6px; left: calc(var(--m) * 100%); width: 2px; background: var(--carvao-950); }
.meter__meta span { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.kpi__sub { font-size: 12.5px; color: var(--muted); }

/* ---------- fila de atendimento ---------- */
.fila { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.fila__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fila__head h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.fila__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.fila__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fila__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ground); border: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.fila__item[data-estado="fila"] { background: var(--laranja-50); border-color: var(--laranja-300); }
.fila__item .row__grow { min-width: 140px; }
.fila__pos { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--carvao-900); color: var(--sol-400); font-family: var(--font-display); font-size: 16px; }
.fila__espera { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 9px; background: var(--raised); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.fila__espera.is-late { background: var(--erro-100); border-color: transparent; color: var(--erro-ink); }

/* ---------- mapa simulado ---------- */
.mapa { position: relative; width: 100%; border-radius: var(--r-lg); overflow: hidden; background: #F3F0EA; border: 1px solid var(--line); isolation: isolate; container-type: inline-size; }
@container (max-width: 440px) {
  .mapa .mapa__chip--cerca, .mapa .mapa__chip--st { display: none; }
  .mapa .mapa__chip { padding: 5px 8px; font-size: 12px; }
  .mapa__hud { left: 8px; top: 8px; }
  .mapa.mapa--todos .mapa__tag { display: none; }
}
.mapa__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; font-family: var(--font-body); }
.mapa__terra { fill: #F4F1EB; }
.mapa__alta { fill: #ECE7DF; }
.mapa__parque { fill: #DCEFD9; }
.mapa__ruas { fill: none; stroke: #FFFFFF; stroke-width: 4; }
.mapa__encosta { fill: none; stroke: #CFE6CB; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.mapa__av-casca { fill: none; stroke: #FFFFFF; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.mapa__av { fill: none; stroke: #FFDDB6; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.mapa__mar { fill: #CFE9F1; }
.mapa__rot text { pointer-events: none; }
.mapa__bairro { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; fill: #645C53; }
.mapa__mar-txt { font-size: 11px; font-weight: 700; letter-spacing: .3em; fill: #2F6F82; }
.mapa__av-txt { font-size: 10.5px; font-weight: 600; fill: #8A4B00; font-style: italic; }
.mapa__loja { fill: var(--laranja-500); stroke: var(--carvao-950); stroke-width: 2.5; }
.mapa__loja-m { font-family: var(--font-letra); font-size: 17px; fill: var(--carvao-950); }
.mapa__loja-txt { font-size: 11px; font-weight: 800; fill: var(--carvao-900); paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
.mapa__pin { fill: var(--carvao-900); stroke: #fff; stroke-width: 2; }
.mapa__cerca { fill: rgba(14, 106, 133, .16); stroke: var(--mar-700); stroke-width: 2.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; transition: fill 300ms ease, stroke 300ms ease; }
.mapa__cerca.is-dentro { fill: rgba(46, 148, 97, .18); stroke: var(--mata-500); stroke-dasharray: none; }
.mapa__rota-falta { fill: none; stroke: var(--laranja-500); stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .75; }
.mapa__rota-casca { fill: none; stroke: var(--carvao-950); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mapa__rota-feita { fill: none; stroke: var(--laranja-500); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mapa__moto { fill: var(--carvao-900); stroke: var(--laranja-500); stroke-width: 3; }
.mapa__moto-halo { fill: rgba(255, 122, 0, .22); }
.mapa__mk--moto .mapa__moto-halo { transform-box: fill-box; transform-origin: center; animation: moto-halo 2s var(--ease-out) infinite; }
@keyframes moto-halo { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.mapa__mk--moto.is-dentro .mapa__moto { stroke: var(--mata-500); }
.mapa__mk--moto.is-dentro .mapa__moto-halo { fill: rgba(46, 148, 97, .25); }
.mapa__moto-in { transform-box: fill-box; transform-origin: center; }
.mapa__mk--moto.is-negado .mapa__moto-in { animation: moto-nega 420ms var(--ease-out); }
@keyframes moto-nega { 20% { transform: translateX(-5px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.mapa__tag-bg { fill: var(--carvao-950); }
.mapa__tag-txt { font-size: 11.5px; font-weight: 700; fill: #fff; }
.mapa__falta-linha { stroke: var(--ketchup-600); stroke-width: 2.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.mapa__falta-bg { fill: var(--ketchup-600); }
.mapa__falta-txt { font-size: 12px; font-weight: 800; fill: #fff; }
.mapa__hud { position: absolute; left: 10px; top: 10px; right: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.mapa__chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 1px 3px rgba(21,17,14,.16); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mapa__chip b { color: var(--ink); }
.mapa__chip svg { color: var(--laranja-800); }
.mapa__chip--cerca svg { color: var(--mar-700); }
.mapa__chip--cerca.is-dentro { background: var(--mata-100); color: var(--mata-ink); }
.mapa__chip--cerca.is-dentro svg { color: var(--mata-ink); }
.mapa__chip--st { background: var(--carvao-900); color: #fff; }
.mapa__aviso { position: absolute; left: 50%; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 12px; background: var(--ketchup-600); color: #fff; font-size: 14px; box-shadow: var(--shadow-2);
  transform: translate(-50%, 10px); opacity: 0; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.mapa__aviso.is-in { opacity: 1; transform: translate(-50%, 0); transition-duration: 320ms; }
.mapa__aviso svg { flex: none; }

/* WhatsApp: quem escreveu (atendente) e o selo do robô */
.wa__auto { display: flex; align-items: center; gap: 4px; }
.wa__autor { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; color: #B8501A; }

@media (max-width: 640px) {
  .prod { grid-template-columns: 84px minmax(0, 1fr) auto; gap: 11px; padding: 10px; }
  .prod__foto { width: 84px; }
  .prod__nome, .prod__preco b { font-size: 17px; }
  .mdia { grid-template-columns: minmax(0, 1fr) 112px; padding: 16px; gap: 10px; }
  .mdia__foto { width: 112px; }
  .mdia__nome { font-size: 21px; }
  .mdia__preco b { font-size: 28px; }
  .cfg__head { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .cfg__foto { width: 92px; }
  .cfg__nome { font-size: 22px; }
  .cfg__add { min-width: 0; }
  .linha--h .linha__txt b { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .linha__p[data-st="agora"] .linha__dot::after, .mapa__mk--moto .mapa__moto-halo { animation: none; opacity: 0; }
  .letra { transform: none; }
}
