/* =====================================================================
   Pousada Maria Bonita · protótipo · base.css
   Dono: agente BASE. Tokens, componentes compartilhados e o celular.
   As áreas escrevem só no próprio arquivo (site.css, whatsapp.css,
   recepcao.css, sistema.css). Precisa de um componente novo que
   serve a mais de uma área? Peça para entrar aqui. Contrato: BASE.md.
   ===================================================================== */

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

  /* marca: o casarão vermelho-tijolo de janelas brancas */
  --tijolo-50:  #FCF2EF;
  --tijolo-100: #F8E3DE;
  --tijolo-300: #EE9C8C;   /* "Maria Bonita" e destaque sobre carvão */
  --tijolo-500: #C04A3A;
  --tijolo-600: #A63A2C;   /* marca e ação principal */
  --tijolo-700: #8C2F23;   /* hover da ação, frontão do emblema */
  --tijolo-800: #6E241B;

  /* o rio São Francisco */
  --rio-50:  #EEF6FB;
  --rio-100: #DDEDF7;
  --rio-400: #4FA3D1;      /* onda clara do emblema; texto sobre carvão */
  --rio-600: #1F6E9E;      /* anel de foco, botão rio */
  --rio-700: #1A5C85;      /* link, selo info */
  --rio-800: #134563;

  /* o sol do pôr do sol */
  --sol-100: #FDF0CF;
  --sol-300: #F7CF6B;
  --sol-400: #F2B630;      /* destaque, preço, selo sol (texto carvão por cima) */
  --sol-500: #E8903A;      /* o laranja do sol: só decoração */
  --sol-ink: #6B4A00;

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

  /* erro: carmim frio, longe do tijolo; sempre com ícone e texto */
  --erro-100: #FBE7EA;
  --erro-500: #B3263A;
  --erro-ink: #96202F;

  /* alerta quente (sujo, a pagar) */
  --laranja-100: #FCEBD6;
  --laranja-500: #E07A1F;
  --laranja-ink: #8F4C00;

  /* o carvão do mural em preto e branco */
  --carvao-950: #171412;
  --carvao-900: #211D1A;
  --carvao-800: #2E2925;
  --carvao-700: #3F3934;
  --carvao-300: #C9C2B8;   /* texto secundário sobre carvão */
  --carvao-200: #E2DDD5;

  /* neutros: branco de cal, não bege */
  --ground:  #FAF9F7;
  --raised:  #FFFFFF;
  --sunk:    #F1EFEB;
  --line:    #E4E0DA;
  --line-2:  #CEC8BF;
  --control: #8A847B;      /* borda de campo e de controle: 3:1 no branco */
  --ink:     #1F1B18;
  --ink-2:   #3B3632;
  --muted:   #66615A;

  /* papéis (use estes nos componentes) */
  --action: var(--tijolo-600);
  --action-hover: var(--tijolo-700);
  --action-ink: #FFFFFF;
  --link: var(--rio-700);
  --focus: var(--rio-600);
  --escuro: var(--carvao-900);

  /* canais no mapa de ocupação (texto branco por cima, exceto balcão) */
  --canal-site: var(--tijolo-600);
  --canal-booking: var(--rio-700);
  --canal-whatsapp: var(--mata-ink);
  --canal-balcao: var(--sol-400);

  /* tipografia */
  --font-display: 'Alegreya', Georgia, 'Times New Roman', serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 20px;
  --fs-h3: 22px; --fs-h2: clamp(27px, 2.5vw, 34px); --fs-h1: clamp(34px, 3.6vw, 48px); --fs-hero: clamp(42px, 6.4vw, 84px);

  /* 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(33, 29, 26, .06), 0 2px 8px rgba(33, 29, 26, .05);
  --shadow-2: 0 2px 4px rgba(33, 29, 26, .05), 0 12px 28px -6px rgba(33, 29, 26, .18);
  --shadow-3: 0 6px 16px rgba(33, 29, 26, .10), 0 28px 60px -12px rgba(33, 29, 26, .34);

  /* 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, chave 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;   /* a Alegreya vem com algarismos antigos; aqui todos ficam alinhados */
}
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: a serifada do letreiro do casarão */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.012em;
  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.005em; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.is-suposicao { text-decoration: underline dotted var(--sol-500) 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: #fff; }
.protobar__nav a[aria-current="page"] b { color: var(--sol-300); }
.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--rio { --btn-bg: var(--rio-600); --btn-ink: #fff; --btn-line: transparent; --btn-hover: var(--rio-700); }
.btn--ghost { --btn-bg: var(--raised); --btn-ink: var(--ink-2); --btn-line: var(--line-2); --btn-hover: var(--tijolo-50); }
.btn--ghost:hover { border-color: var(--tijolo-300); color: var(--tijolo-700); }
.btn--quiet { --btn-bg: transparent; --btn-line: transparent; --btn-ink: var(--link); --btn-hover: var(--rio-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(--rio-100); --s-ink: var(--rio-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--rio { --s-bg: var(--rio-700); --s-ink: #fff; }
.selo--tijolo { --s-bg: var(--tijolo-600); --s-ink: #fff; }
.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); }
.selo--canal-site { --c: var(--tijolo-600); }
.selo--canal-booking { --c: var(--rio-700); }
.selo--canal-whatsapp { --c: var(--mata-ink); }
.selo--canal-balcao { --c: var(--sol-ink); }
.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; }

/* nota de 0 a 10 (como no Booking) */
.nota { display: inline-flex; align-items: center; gap: 8px; }
.nota b { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 7px; border-radius: 9px 9px 9px 2px; background: var(--rio-700); color: #fff; font-weight: 750; font-size: 15px; font-variant-numeric: tabular-nums lining-nums; }
.nota span { font-weight: 650; font-size: 14px; color: var(--ink-2); }
.nota--baixa b { background: var(--laranja-ink); }
.nota--lg b { min-width: 52px; height: 46px; font-size: 22px; border-radius: 12px 12px 12px 3px; font-family: var(--font-display); }
.nota--lg span { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--carvao-900); }

/* ---------- 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.005em; }
.panel-title a { font-size: 13.5px; font-weight: 600; text-decoration: none; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }

/* quadro de foto com zoom suave por dentro */
.frame { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--carvao-800); isolation: isolate; }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card--link:hover .frame img, .frame--zoom:hover img { transform: scale(1.05); }
}
/* sem foto: o pôr do sol sobre o rio em degradê, com o emblema apagado */
.ph { width: 100%; height: 100%; display: grid; place-items: center; background:
  radial-gradient(70% 55% at 68% 40%, rgba(255, 224, 138, .75) 0%, rgba(242, 182, 48, 0) 60%),
  linear-gradient(180deg, #F7CF6B 0%, #E8903A 44%, #8C4A3A 56%, #1F6E9E 57%, #134563 100%); }
.ph svg { width: 34%; max-width: 120px; opacity: .55; }

/* cartão de passeio (extra da estadia) */
.tour { display: flex; flex-direction: column; overflow: hidden; }
.tour .frame { aspect-ratio: 4 / 3; border-radius: 0; }
.tour__price, .room__price {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 11px; border-radius: 12px;
  background: var(--sol-400); color: var(--carvao-950); font-weight: 650; font-size: 12.5px; box-shadow: var(--shadow-1);
}
.tour__price b, .room__price b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.room__price.is-suposicao { text-decoration: none; }
.tour__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.tour__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.08; color: var(--carvao-900); }
.tour__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13.5px; }
.tour__meta span { display: inline-flex; align-items: center; gap: 5px; }
.tour__meta svg { width: 15px; height: 15px; }

/* cartão de quarto */
.room { display: flex; flex-direction: column; overflow: hidden; }
.room .frame { aspect-ratio: 3 / 2; border-radius: 0; }
.room__body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.room__tipo { font-size: 13px; font-weight: 600; color: var(--muted); }
.room__title { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.04; color: var(--carvao-900); }
.room__meta { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.room__meta span { display: flex; align-items: center; gap: 8px; }
.room__meta svg { color: var(--rio-700); }
.room__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.room__total b { font-family: var(--font-display); font-weight: 800; font-size: 24px; font-variant-numeric: lining-nums tabular-nums; color: var(--carvao-900); }
.room__flag { position: absolute; right: 12px; top: 12px; z-index: 1; padding: 5px 10px; border-radius: 10px; background: rgba(23, 20, 18, .78); color: #fff; font-size: 12.5px; font-weight: 650; }
.room.is-ocupado .frame img { filter: grayscale(.7) brightness(.85); }
.room.is-sel { border-color: var(--tijolo-600); box-shadow: 0 0 0 2px var(--tijolo-600); }

/* 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.01em; 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(--sol-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); }

/* como chegar pela escadaria */
.passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; position: relative; }
.passos li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; position: relative; }
.passos li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 44px; bottom: -8px; width: 2px; background: var(--line); }
.passos__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--rio-50); color: var(--rio-700); position: relative; z-index: 1; }
.passos b { display: block; font-weight: 650; }
.passos small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 1px; }
.passos--compacto li { padding: 5px 0; }

/* ---------- 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(--tijolo-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(--rio-600); box-shadow: 0 0 0 3px rgba(31, 110, 158, .18); }
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 de hóspedes */
.people { display: flex; flex-direction: column; }
.people__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people__row:last-of-type { border-bottom: 0; }
.people__who { flex: 1; min-width: 0; }
.people__who b { display: block; font-weight: 650; }
.people__who small { color: var(--muted); font-size: 13px; }
.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; }
.people__limit { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--rio-700); }

/* 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); } }

/* ---------- 10. Calendário e seletor de estadia ---------- */
.cal { display: flex; flex-direction: column; gap: 10px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal__month { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 0; }
.cal__week span { text-align: center; font-size: 12px; font-weight: 650; color: var(--muted); }
.cal__day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 46px; padding: 4px 2px; border-radius: 12px; border: 1px solid transparent; background: transparent;
  transition: background-color var(--dur-quick) ease, border-color var(--dur-quick) ease, transform var(--dur-press) var(--ease-out), color var(--dur-quick) ease;
}
.cal__day--pad { visibility: hidden; }
.cal__n { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums lining-nums; }
.cal__day.is-today::after { content: ""; position: absolute; top: 5px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--laranja-500); }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal__key { width: 12px; height: 12px; border-radius: 4px; background: var(--raised); border: 1px solid var(--line-2); }
.cal__key--ocupado { background: var(--sunk); border-color: var(--line-2); background-image: linear-gradient(135deg, transparent 45%, var(--control) 45%, var(--control) 55%, transparent 55%); }
.cal__key--sel { background: var(--tijolo-600); border-color: var(--tijolo-600); }

/* estadia: livre, ocupado (riscado), faixa da estadia com pontas arredondadas */
.estadia .cal__day[data-state="passado"] { color: #B4ADA3; cursor: default; }
.estadia .cal__day[data-state="livre"] { color: var(--ink); }
.estadia .cal__day[data-state="ocupado"] { color: var(--muted); background: var(--sunk); border-radius: 0; }
.estadia .cal__day[data-state="ocupado"] .cal__n { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.estadia .cal__day:not([disabled]):hover { border-color: var(--tijolo-300); }
.estadia .cal__day:not([disabled]):active { transform: scale(.94); }
.estadia .cal__day.is-meio { background: var(--tijolo-100); color: var(--tijolo-800); border-radius: 0; }
.estadia .cal__day.is-ini, .estadia .cal__day.is-fim { background: var(--tijolo-600); color: #fff; border-color: var(--tijolo-600); }
.estadia .cal__day.is-ini { border-radius: 12px 0 0 12px; }
.estadia .cal__day.is-fim { border-radius: 0 12px 12px 0; }
.estadia .cal__day.is-ini:not(:has(~ .is-meio, ~ .is-fim)) { border-radius: 12px; }
.estadia .cal__day.is-preview.is-meio { background: var(--tijolo-50); }
.estadia .cal__day.is-preview.is-fim { background: var(--tijolo-100); color: var(--tijolo-800); border: 1.5px dashed var(--tijolo-500); }
.estadia .cal__day.is-today::after { background: currentColor; }
.estadia__resumo { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px 14px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); }
.estadia__resumo b { font-weight: 700; }
.estadia__total { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--carvao-900); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* ---------- 11. Mapa de ocupação (quartos × dias) ---------- */
.mapa { --col: 46px; --lab: 150px; --rowh: 44px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mapa__legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.mapa__legenda span { display: inline-flex; align-items: center; gap: 6px; }
.mapa__key { display: inline-grid; place-items: center; width: 22px; height: 16px; border-radius: 5px; color: #fff; }
.mapa__key.is-pendente { background: var(--raised); border: 1.5px dashed var(--control); }
.mapa__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); overscroll-behavior-x: contain; }
.mapa__grid { display: grid; grid-template-columns: var(--lab) minmax(calc(var(--col) * var(--dias)), 1fr); min-width: max-content; }   /* as colunas esticam até a largura do quadro */
.mapa__corner { position: sticky; left: 0; z-index: 3; display: flex; align-items: flex-end; padding: 8px 12px; background: #FCFBFA; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--muted); }
.mapa__grid > .mapa__head { grid-column: 1 / -1; display: grid; grid-template-columns: var(--lab) repeat(var(--dias), minmax(var(--col), 1fr)); }
.mapa__day { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 46px; background: #FCFBFA; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums lining-nums; }
.mapa__day small { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.1; }
.mapa__day b { font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.mapa__day.is-fds small { color: var(--tijolo-700); }
.mapa__day.is-today { background: var(--carvao-900); color: #fff; border-radius: 10px 10px 0 0; }
.mapa__day.is-today small { color: var(--sol-300); }
.mapa__unit { position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 1px; height: var(--rowh); padding: 0 12px; background: var(--raised); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.mapa__unit b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapa__unit small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapa__limp { font-size: 11px; font-weight: 650; color: var(--muted); }
.mapa__track { position: relative; display: grid; grid-template-columns: repeat(var(--dias), minmax(var(--col), 1fr)); height: var(--rowh); border-bottom: 1px solid var(--line); }
.mapa__cell { border-left: 1px solid #F1EEEA; }
.mapa__cell.is-today { background: rgba(242, 182, 48, .12); border-left-color: rgba(242, 182, 48, .5); }
.mapa__bar {
  --bg: var(--canal-site); --bar-ink: #fff;
  position: absolute; top: 7px; bottom: 7px; left: calc(100% * var(--x) / var(--dias) + 2px); width: calc(100% * var(--w) / var(--dias) - 4px);
  display: flex; align-items: center; gap: 5px; padding: 0 8px; min-width: 0; overflow: hidden;
  border: 0; border-radius: 8px; background: var(--bg); color: var(--bar-ink);
  font-size: 12.5px; font-weight: 650; text-align: left; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(33,29,26,.18);
  transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-quick) ease, filter var(--dur-quick) ease;
  transform-origin: 0 50%;
}
.mapa__bar:hover { filter: brightness(1.08); box-shadow: 0 3px 10px -2px rgba(33,29,26,.35); }
.mapa__bar:active { transform: scale(.98); }
.mapa__bar--site { --bg: var(--canal-site); }
.mapa__bar--booking { --bg: var(--canal-booking); }
.mapa__bar--whatsapp { --bg: var(--canal-whatsapp); }
.mapa__bar--balcao { --bg: var(--canal-balcao); --bar-ink: var(--carvao-950); }
.mapa__key.mapa__bar--site { background: var(--canal-site); }
.mapa__key.mapa__bar--booking { background: var(--canal-booking); }
.mapa__key.mapa__bar--whatsapp { background: var(--canal-whatsapp); }
.mapa__key.mapa__bar--balcao { background: var(--canal-balcao); color: var(--carvao-950); }
.mapa__bar.is-pendente { background: var(--raised); color: var(--ink); border: 1.5px dashed var(--control); box-shadow: none; }
.mapa__bar.is-pendente .mapa__canal { color: var(--bg); }
.mapa__bar.is-saiu { opacity: .55; }
.mapa__bar.is-corta-ini { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.mapa__bar.is-corta-fim { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mapa__bar.is-destaque { outline: 2.5px solid var(--sol-400); outline-offset: 2px; }
.mapa__canal { display: inline-grid; place-items: center; flex: none; opacity: .92; }
.mapa__nome { overflow: hidden; text-overflow: ellipsis; }
.mapa__tag { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: var(--sol-100); color: var(--sol-ink); font-size: 11px; font-weight: 750; }
.mapa__grid.is-entrando .mapa__bar { animation: mapa-in 360ms var(--ease-out) both; animation-delay: calc(var(--i) * 18ms); }
@keyframes mapa-in { from { transform: scaleX(.6); opacity: 0; } }

/* ---------- 12. Ficha de check-in, conta e chave ---------- */
.ficha__form { display: flex; flex-direction: column; gap: 16px; }
.ficha__bloco { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ficha__bloco legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--carvao-900); }
.ficha__bloco legend svg { color: var(--tijolo-600); }
.ficha__2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ficha__acomp { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); }
.ficha__tarde { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--rio-50); color: var(--rio-800); font-size: 14px; }
.ficha__tarde svg { flex: none; margin-top: 2px; }

.conta { display: flex; flex-direction: column; }
.conta__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; }
.conta__head b { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.conta__linhas { list-style: none; margin: 0; padding: 0; }
.conta__linhas li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.conta__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--sunk); color: var(--ink-2); }
.conta__txt { min-width: 0; }
.conta__txt b { display: block; font-weight: 650; font-size: 14.5px; }
.conta__txt small { display: block; color: var(--muted); font-size: 12.5px; }
.conta__v { font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }
.conta__soma { display: flex; justify-content: space-between; padding: 7px 0 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums lining-nums; }
.conta__soma--pago { color: var(--mata-ink); }
.conta__saldo { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sol-100); color: var(--sol-ink); font-weight: 650; }
.conta__saldo b { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--carvao-900); font-variant-numeric: tabular-nums lining-nums; }
.conta__saldo.is-zero { background: var(--mata-100); color: var(--mata-ink); }

.chave { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); }
.chave__art { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: var(--sunk); color: var(--carvao-700); }
.chave__art svg { transform-origin: 50% 8px; }
.chave__txt { flex: 1; min-width: 0; }
.chave__txt b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.15; }
.chave__txt small { display: block; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.chave__ok { flex: none; width: 30px; }
.chave[data-state="espera"] .chave__ok { visibility: hidden; }
.chave[data-state="entregue"] { border-color: #BFE0CB; background: linear-gradient(0deg, var(--mata-100), var(--mata-100)) padding-box; }
.chave[data-state="entregue"] .chave__art { background: #fff; }
.chave[data-state="entregue"] .chave__txt small { color: var(--mata-ink); font-weight: 650; }
.chave[data-state="entregue"]:not(.is-tocando) .okcheck { opacity: 1; }
.chave[data-state="entregue"]:not(.is-tocando) .okcheck path { stroke-dashoffset: 0; }
.chave.is-tocando .chave__art svg { animation: chave-balanca 640ms var(--ease-out) both; }
@keyframes chave-balanca { 0% { transform: translateY(-10px) rotate(-14deg); opacity: 0; } 45% { transform: rotate(8deg); opacity: 1; } 75% { transform: rotate(-3deg); } 100% { transform: none; } }

/* ---------- 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(--rio-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.005em; }
.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.014em; 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(--rio-100); color: var(--rio-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(--tijolo-300); background: var(--tijolo-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(--tijolo-700); }
.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%3Ccircle cx='22' cy='22' r='7'/%3E%3Cpath d='M22 9v-3M22 38v-3M9 22H6M38 22h-3'/%3E%3Cpath d='M66 28c4-4 8-4 12 0s8 4 12 0'/%3E%3Cpath d='M70 92V80h22v12M70 80l11-8 11 8M78 92v-6h6v6'/%3E%3Cpath d='M12 78c4-4 8-4 12 0s8 4 12 0M12 86c4-4 8-4 12 0s8 4 12 0'/%3E%3Cpath d='M102 46v12M98 50v-3M106 54v-5'/%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(--tijolo-600); 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; }
  .cal__day { min-height: 44px; }
  .mapa { --col: 40px; --lab: 112px; }
  .mapa__unit small { display: none; }
  .estadia__total { font-size: 24px; }
  /* 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; }
}
