/* ===== Página pública da empresa ===== */
/* Não deixa o celular escurecer a página sozinho (modo escuro forçado) */
:root { color-scheme: only light; }
.pub-body {
  min-height: 100vh;
  background:
    radial-gradient(60rem 40rem at -10% -10%, #ead9ff 0%, transparent 55%),
    radial-gradient(50rem 40rem at 110% 0%, #ffd9ec 0%, transparent 50%),
    radial-gradient(60rem 40rem at 50% 120%, #ffe2c7 0%, transparent 55%),
    #fbf8ff;
}

.pub-wrap {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: max(28px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}

.pub-card {
  position: relative;
  width: 100%; max-width: 440px;
  margin-top: 44px;
  padding: 68px 20px 22px;
  background: var(--grad) top / 100% 6px no-repeat, rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(76, 29, 149, .14), 0 2px 6px rgba(76, 29, 149, .06);
  text-align: center;
}

.pub-logo {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 104px; height: 104px; border-radius: 30px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 34px; letter-spacing: .02em;
  box-shadow: 0 12px 30px rgba(124, 58, 237, .28), 0 0 0 6px #fff;
}
.pub-logo.has-img { background: #fff; }
.pub-logo img { width: 100%; height: 100%; object-fit: cover; }
.pub-logo--gac span { font-size: 26px; letter-spacing: .14em; }

.pub-name { margin: 0 0 6px; font-size: clamp(23px, 6vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pub-desc { margin: 0 auto 22px; max-width: 34ch; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.pub-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }

.pub-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.pub-link {
  width: 100%; min-height: 60px;
  display: flex; align-items: center; gap: 13px;
  padding: 11px 14px 11px 11px; border: 0; border-radius: 18px;
  color: #fff; text-decoration: none; text-align: left; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 16px rgba(30, 10, 60, .14), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pub-link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(30, 10, 60, .2); }
.pub-link:active { transform: scale(.985); filter: brightness(.95); }
.pub-link__icon {
  width: 40px; height: 40px; flex: none; border-radius: 13px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .2);
}
.pub-link__icon .icon { width: 22px; height: 22px; }
.pub-link__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pub-link__chev { opacity: .85; display: grid; }
.pub-link__chev .icon { width: 18px; height: 18px; }

/* Cores das marcas (tons escolhidos para manter texto branco legível) */
.t-whatsapp { background: linear-gradient(120deg, #15803d, #0b7a55); }
.t-whatsapp .pub-link__icon { background: #25d366; }
.t-instagram { background: linear-gradient(120deg, #c13584 0%, #833ab4 100%); }
.t-instagram .pub-link__icon { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.t-google_reviews { background: #1a73e8; }
.t-google_reviews .pub-link__icon { background: #fff; color: #1a73e8; }
.t-menu { background: linear-gradient(120deg, #c2410c, #be185d); }
.t-wifi { background: linear-gradient(120deg, #6d28d9, #4f46e5); }
.t-location { background: linear-gradient(120deg, #d93025, #b4232f); }
.t-website { background: linear-gradient(120deg, #334155, #1e293b); }
.t-facebook { background: linear-gradient(120deg, #0866ff, #0a5bd3); }
.t-tiktok { background: linear-gradient(120deg, #111, #262626); }
.t-tiktok .pub-link__icon .icon { filter: drop-shadow(-1.5px -1px 0 #25f4ee) drop-shadow(1.5px 1px 0 #fe2c55); }
.t-custom { background: linear-gradient(120deg, #6d28d9, #db2777); }

/* ---------- BOTÕES PADRÃO DA GAC (classe gac-std) ----------
   Valem em todo tema importado que só muda o fundo e o cartão (o tema não desenha botões).
   Mesmas cores do tema "GAC · Padrão". --c = cor do botão, --fg = escrita: a "Cor de cada botão"
   do painel continua valendo por cima. */
.gac-std .pub-link {
  --c: #4f46e5; --fg: #ffffff;
  min-height: 62px; border-radius: 18px; padding: 10px 16px 10px 10px;
  background: var(--c); color: var(--fg); border: 0;
  font-weight: 800; font-size: 16px; letter-spacing: .005em;
  box-shadow: 0 8px 20px rgba(20, 21, 26, .16), inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.gac-std .pub-link:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 21, 26, .22), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.gac-std .pub-link:focus-visible { outline: 3px solid #14151a; outline-offset: 3px; }
.gac-std .pub-link__icon { width: 42px; height: 42px; border-radius: 50%; background: #ffffff; color: var(--c); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.gac-std .pub-link__icon .icon { width: 22px; height: 22px; }
.gac-std .pub-link__chev { color: var(--fg); opacity: .9; }
.gac-std .pub-link__sub { color: var(--fg); opacity: .9; }
.gac-std .pub-links { gap: 12px; }
.gac-std .t-whatsapp { --c: #0e8f45; }
.gac-std .t-instagram { --c: #d62976; background: linear-gradient(120deg, #f58529 0%, #dd2a7b 45%, #8134af 80%, #515bd4 100%); }
.gac-std .t-instagram .pub-link__icon { color: #d62976; }
.gac-std .t-google_reviews { --c: #1a73e8; }
.gac-std .t-google_reviews .pub-link__icon {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3c-1.6 4.7-6.1 8-11.3 8-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 8 3l5.7-5.7C34 6.1 29.3 4 24 4 13 4 4 13 4 24s9 20 20 20 20-9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 8 3l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2A11.9 11.9 0 0 1 24 36c-5.2 0-9.6-3.3-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3a12 12 0 0 1-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.gac-std .t-google_reviews .pub-link__icon .icon { opacity: 0; }
.gac-std .t-wifi { --c: #7c3aed; }
.gac-std .t-menu { --c: #d9480f; }
.gac-std .t-location { --c: #d93025; }
.gac-std .t-website { --c: #0f766e; }
.gac-std .t-facebook { --c: #1877f2; }
.gac-std .t-tiktok { --c: #111111; }
.gac-std .t-custom { --c: #f5b301; --fg: #1d1606; }
.gac-std .pub-feat__card { border-radius: 20px; box-shadow: 0 12px 30px rgba(20, 21, 26, .16); }
.gac-std .pub-feat .pub-link.pub-link--feat { box-shadow: none; }

/* Painel de Wi-Fi */
.wifi {
  margin-top: 12px; padding: 14px; text-align: left;
  background: #f6f1ff; border: 1px solid #e4d6ff; border-radius: 18px;
}
.wifi__row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 9px 0; border-bottom: 1px dashed #e0d2fb; }
.wifi__row:last-of-type { border-bottom: 0; }
.wifi__k { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wifi__v { min-width: 0; overflow-wrap: break-word; word-break: break-word; font-size: 16px; }
.wifi__pass { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; }
.wifi__tip { margin: 10px 0 12px; font-size: 13px; color: var(--ink-2); }
/* rede aberta (sem senha) */
.wifi__open { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 8px 12px; border-radius: 12px; background: #e8f7ee; color: #0b6b34; font-size: 14px; }
.wifi__open svg { width: 18px; height: 18px; flex: none; }
.wifi__steps { margin: 10px 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.wifi__steps span { color: var(--muted); font-size: 12.5px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 11px; border-radius: 999px; border: 1px solid #d9c7fb; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--violet-700);
}
.chip.is-done { background: var(--ok-bg); border-color: #a7e3c8; color: var(--ok); }
.chip .icon { width: 15px; height: 15px; }
.wifi__qr-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border-radius: 14px; border: 1px solid #d9c7fb; background: #fff;
  font-weight: 700; color: var(--violet-700);
}
.wifi__qr { margin-top: 12px; text-align: center; }
.wifi__qr svg { width: min(240px, 100%); height: auto; margin: 0 auto 10px; border-radius: 12px; border: 1px solid #eee; }
.wifi__qr p { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.wifi__sec { font-weight: 600; }

.pub-footer { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: #8a8199; text-align: center; }
.pub-footer__brand { display: flex; align-items: center; gap: 6px; }
/* Contato discreto da GAC: pílula transparente com borda nas cores da GAC */
.pub-cta {
  position: relative; display: inline-flex; align-items: center; gap: 7px; max-width: 300px;
  padding: 4px 12px 4px 4px; border-radius: 999px; border: 0;
  background: rgba(127, 127, 127, .08);
  color: inherit; text-decoration: none; font-size: 10.5px; line-height: 1.3; text-align: left;
  text-transform: none; letter-spacing: .01em; opacity: .9;
  transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
/* Contorno fino em degradê (só a borda, fundo transparente) */
.pub-cta::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  padding: 1px; background: linear-gradient(120deg, #a855f7, #ec4899, #fb923c);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .8; }
.pub-cta:hover, .pub-cta:focus-visible { opacity: 1; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(124, 58, 237, .22); }
.pub-cta:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.pub-cta__icon { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 2px 6px rgba(124, 58, 237, .3); }
.pub-cta__icon .icon { width: 11px; height: 11px; }
.pub-cta__text { display: grid; gap: 0; min-width: 0; }
.pub-cta__text strong { font-weight: 700; }
.pub-cta__text > span { opacity: .85; }
.pub-cta__mail { font-weight: 600; white-space: nowrap; }
.pub-cta--wa .pub-cta__icon { background: #25d366; box-shadow: 0 2px 6px rgba(37, 211, 102, .35); }
.pub-cta--wa .pub-cta__icon .icon { width: 12px; height: 12px; }
/* Brilho suave que passa pela pílula de vez em quando */
@media (prefers-reduced-motion: no-preference) {
  .pub-cta::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
    animation: gac-shine 6s ease-in-out 1.5s infinite; }
  @keyframes gac-shine { 0%, 70% { background-position: -150% 0; } 100% { background-position: 150% 0; } }
}
.pub-footer .gac-mark { font-size: 12.5px; }

.pub-retry { margin-top: 4px; padding: 12px 20px; border: 0; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 700; }

/* Carregamento */
.pub-card--loading { display: grid; justify-items: center; gap: 12px; }
.pub-card--loading .pub-logo { box-shadow: 0 0 0 6px #fff; }
.sk-line { width: 70%; height: 14px; border-radius: 8px; }
.sk-line--title { width: 55%; height: 24px; }
.sk-btn { width: 100%; height: 60px; border-radius: 18px; }

@media (min-width: 720px) {
  .pub-wrap { justify-content: center; }
  .pub-card { margin-top: 56px; padding: 72px 28px 26px; }
}
/* Mesa (quando a pessoa chega pela tag da mesa) */
.pub-table { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin: 4px auto 6px; padding: 6px 14px; border-radius: 999px;
  background: rgba(127, 127, 127, .14); font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: none; }
.pub-table .icon { width: 16px; height: 16px; }
/* placa genérica (/p/CODIGO) ainda não ativada */
.pub-plate { margin: 2px 0 6px; font-size: 13px; color: var(--muted, #6b6380); letter-spacing: .04em; }
.pub-plate b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .14em; color: inherit; }
a.pub-retry { display: inline-block; text-decoration: none; }

/* ---------- ícone escolhido / enviado para um botão ---------- */
.pub-link .pub-link__icon.has-img { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; overflow: hidden; }
.pub-link__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pub-link.t-google_reviews .pub-link__icon.has-alt { background-image: none !important; }
.pub-link .pub-link__icon.has-alt .icon { opacity: 1 !important; }
/* GOOGLE: o padrão é sempre o "G" colorido numa bolinha branca, em qualquer tema e nos dois modos de ícone.
   (Só não vale quando o botão usa outro ícone ou uma imagem própria.) A cor da bolinha ainda pode ser mudada. */
.pub-link.t-google_reviews .pub-link__icon:not(.has-alt):not(.has-img) {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.1H42V20H24v8h11.3c-1.6 4.7-6.1 8-11.3 8-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.8 1.2 8 3l5.7-5.7C34 6.1 29.3 4 24 4 13 4 4 13 4 24s9 20 20 20 20-9 20-20c0-1.3-.1-2.6-.4-3.9z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.8 1.2 8 3l5.7-5.7C34 6.1 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2A11.9 11.9 0 0 1 24 36c-5.2 0-9.6-3.3-11.3-7.9l-6.5 5C9.5 39.6 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.1H42V20H24v8h11.3a12 12 0 0 1-4.1 5.6l6.2 5.2C37 39.2 44 34 44 24c0-1.3-.1-2.6-.4-3.9z'/%3E%3C/svg%3E") !important;
  background-position: center !important; background-size: 58% !important; background-repeat: no-repeat !important;
}
.pub-link.t-google_reviews .pub-link__icon:not(.has-alt):not(.has-img) .icon { opacity: 0 !important; }

/* ---------- botão de EXEMPLO (ainda sem link): mesmo visual, mas tocar não abre nada ---------- */
.pub-link.is-demo, .pub-feat__card.is-demo { cursor: default; }
.pub-link.is-demo:hover, .pub-feat__card.is-demo:hover { transform: none; }

/* ---------- CARROSSEL DE DESTAQUES: 2+ destaques seguidos, arrastar para o lado (todas as empresas) ----------
   As cores seguem o texto do tema (currentColor), então funciona em fundo claro e escuro. */
/* um destaque por vez, ocupando a largura toda (sem aparecer o canto do outro); cada arrastada passa um */
/* título acima do destaque/carrossel (ex.: "Próximos eventos"): pílula escura, legível em qualquer tema */
.pub-sec-title { list-style: none; display: flex; justify-content: center; margin: 4px 0 -3px; }
.pub-sec-title span { display: inline-block; max-width: 100%; padding: 6px 16px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 13.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
/* divisória entre grupos de botões (ex.: "Passeios e aluguéis"): a mesma pílula, com uma linha de cada lado */
.pub-sec-title--div { align-items: center; gap: 10px; margin: 10px 0 0; }
.pub-sec-title--div::before, .pub-sec-title--div::after { content: ''; flex: 1 1 0; min-width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: .22; }
.pub-sec-title--div span { flex: 0 1 auto; }
.pub-links > .pub-sec-title--div:first-child { margin-top: 0; }
.pub-carousel { list-style: none; position: relative; margin: 0; min-width: 0; }
.pub-links:has(> .pub-carousel) { grid-template-columns: minmax(0, 1fr); }
.pub-car__track { display: flex; gap: 16px; margin: 0; padding: 2px 0 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pub-car__track::-webkit-scrollbar { display: none; }
.pub-car__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.pub-car__count { position: absolute; top: 10px; right: 10px; z-index: 3; padding: 4px 10px; border-radius: 999px; pointer-events: none;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; text-transform: none; }
/* bolinhas e dica numa pílula escura translúcida: legível em qualquer tema (claro, escuro ou com foto) */
.pub-car__dots { display: flex; justify-content: center; gap: 2px; width: max-content; margin: 6px auto 0; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .42); }
.pub-car__dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.pub-car__dots button::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: #fff; opacity: .45; transition: width .2s ease, opacity .2s ease; }
.pub-car__dots button.is-on::before { width: 20px; opacity: 1; }
.pub-car__hint { width: max-content; max-width: 100%; margin: 6px auto 2px; padding: 3px 12px; border-radius: 999px; background: rgba(0, 0, 0, .42); color: #fff;
  text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: none; transition: opacity .3s ease; }
.pub-carousel.is-moved .pub-car__hint { opacity: 0; height: 0; margin: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pub-car__track { scroll-behavior: auto; } }

/* ---------- botão de destaque (banner com imagem ou vídeo) ---------- */
.pub-feat { list-style: none; }
.pub-feat__card { display: block; border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: 0 10px 26px rgba(30, 10, 60, .18); transition: transform .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.pub-feat__card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 10, 60, .24); }
.pub-feat__card:active { transform: scale(.99); }
.pub-feat__media { position: relative; display: block; aspect-ratio: 16 / 9; background: rgba(0, 0, 0, .18); overflow: hidden; }
.pub-feat__media > img, .pub-feat__vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-feat__vid { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.pub-feat__vid.is-on { opacity: 1; }
.pub-feat .pub-link.pub-link--feat { margin: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; box-shadow: none !important; transform: none !important; width: 100% !important; }
.pub-link__sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .pub-feat__card, .pub-feat__vid { transition: none; } }
.pub-link .pub-link__sub { text-transform: none; letter-spacing: normal; }

/* modo instalação (ativar placas com o código da GAC) */
.pub-inst__link { margin-top: 14px; padding: 6px 10px; border: 0; background: none; color: var(--muted, #6b6380); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pub-inst__mode { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: rgba(124, 58, 237, .1); color: #5b21b6; font-size: 12.5px; font-weight: 600; }
.pub-inst__mode .icon { width: 14px; height: 14px; }
.pub-inst__ok, .pub-inst__warn { display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 8px; border-radius: 50%; }
.pub-inst__ok { background: #dcfce7; color: #15803d; }
.pub-inst__warn { background: #fef3c7; color: #b45309; }
.pub-inst__ok .icon, .pub-inst__warn .icon { width: 32px; height: 32px; }
.pub-inst__next { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .04); font-size: 14px; }
.pub-inst__tip { margin: 10px 0 0; font-size: 13px; color: var(--muted, #6b6380); }
.pub-inst__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.pub-inst__ghost { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid rgba(0, 0, 0, .14); border-radius: 12px; background: #fff; color: #1f1a2e; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.pub-inst__ghost .icon { width: 16px; height: 16px; }
.pub-inst__form { display: grid; gap: 6px; width: 100%; max-width: 320px; margin: 12px auto 0; text-align: left; }
.pub-inst__lbl { margin-top: 6px; font-size: 13px; font-weight: 600; }
.pub-inst__lbl span { font-weight: 400; color: var(--muted, #6b6380); }
.pub-inst__in { width: 100%; padding: 12px 14px; border: 1px solid rgba(0, 0, 0, .18); border-radius: 12px; background: #fff; color: #1f1a2e; font: inherit; font-size: 16px; }
#inst-pin { letter-spacing: .3em; text-align: center; font-size: 20px; }
.pub-inst__hint { margin: 0; font-size: 12px; color: var(--muted, #6b6380); }
.pub-inst__err { min-height: 1.2em; margin: 2px 0 0; color: #b91c1c; font-size: 13px; font-weight: 600; }
.pub-inst__form .pub-retry { width: 100%; margin-top: 4px; }
.pub-inst__back { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted, #6b6380); }

/* ---------- Marmitas de hoje (public-view.js dailyHtml) ----------
   Cores a partir da cor do texto do cartão: funciona em tema claro e escuro sem mexer nos botões. */
.pub-daily {
  margin: 0 0 16px; padding: 14px 16px 15px; border-radius: 18px; text-align: left;
  background: rgba(124, 58, 237, .06); border: 1px solid rgba(124, 58, 237, .18);
  background: color-mix(in srgb, currentColor 5%, transparent); border-color: color-mix(in srgb, currentColor 17%, transparent);
}
.pub-daily__t { margin: 0 0 10px; font-size: 17px; font-weight: 800; line-height: 1.25; letter-spacing: -.005em; overflow-wrap: anywhere; }
.pub-daily__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pub-daily__list li { position: relative; padding-left: 18px; font-size: 15.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pub-daily__list li::before { content: ''; position: absolute; left: 3px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad, currentColor); }
.pub-daily__when { margin: 11px 0 0; font-size: 13px; opacity: .72; }
.pub-daily__msg { margin: 0; font-size: 15px; line-height: 1.45; }
.pub-daily__wa { margin-top: 12px; }/* marmita do cardápio padrão: número em destaque */
.pub-daily__list li.has-n { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding-left: 0; font-weight: 600; }
.pub-daily__list li.has-n::before { content: none; }
.pub-daily__n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--grad, #7c3aed); color: #fff; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pub-daily__list li.has-n span { padding-top: 3px; }/* marmita com foto: foto à esquerda com o número no canto */
.pub-daily__list li.has-img { grid-template-columns: 84px 1fr; gap: 12px; align-items: center; }
.pub-daily__ph { position: relative; display: block; width: 84px; height: 56px; }
.pub-daily__ph img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; background: rgba(0, 0, 0, .2); }
.pub-daily__ph .pub-daily__n { position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 8px; font-size: 12.5px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.pub-daily__list li.has-img span:last-child { padding-top: 0; font-size: 15px; }
.pub-daily__list:has(li.has-img) { gap: 12px; }.pub-daily__list li.has-n .pub-daily__ph { padding-top: 0; }
/* marmitas: mais de 3 → a lista mostra 3 e o resto aparece arrastando dentro do quadro */
.pub-daily__list.is-scroll {
  max-height: 210px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity;
  padding: 7px 6px 6px 7px; margin: -7px -6px 0 -7px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
}
.pub-daily__list.is-scroll.is-end { -webkit-mask-image: none; mask-image: none; }
.pub-daily__list.is-scroll > li { scroll-snap-align: start; scroll-margin-top: 7px; }
.pub-daily__list.is-scroll:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 12px; }
.pub-daily__more { margin: 8px 0 0; font-size: 12.5px; font-weight: 700; opacity: .75; }
.pub-daily.is-moved .pub-daily__more { visibility: hidden; }