/* TEO — base e componentes compartilhados. Usa somente tokens.css.
   Convenção: bloco__elemento, bloco--variante. Componentes aqui valem para TODAS as superfícies;
   layout específico de cada superfície fica no CSS dela (app.css, admin.css, kds.css, print.css). */

/* ── Reset mínimo ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-16) / var(--lh-body) var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 86%;
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-30); }
h2 { font-size: var(--fs-24); }
h3 { font-size: var(--fs-18); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-16); line-height: var(--lh-snug); }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
[hidden] { display: none !important; }

/* ── Utilitários ────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: var(--gap, var(--s-4)); }
.row { display: flex; align-items: center; gap: var(--gap, var(--s-3)); }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1 1 0; min-width: 0; }
.gap-1 { --gap: var(--s-1); } .gap-2 { --gap: var(--s-2); } .gap-3 { --gap: var(--s-3); }
.gap-4 { --gap: var(--s-4); } .gap-6 { --gap: var(--s-6); } .gap-8 { --gap: var(--s-8); }
.grid-2 { display: grid; gap: var(--gap, var(--s-4)); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--gap, var(--s-4)); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: var(--gap, var(--s-4)); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-14); }
.xs { font-size: var(--fs-13); }
.strong { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.display { font-family: var(--font-display); font-stretch: 86%; font-weight: 700; letter-spacing: -0.012em; line-height: var(--lh-tight); }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: -0.01em; }
.money, .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.divider--dashed { border-top-style: dashed; border-top-color: var(--line-strong); }

/* ── Marca provisória: só tipografia, sem logotipo inventado (PRD §3) ── */
/* A marca é a logo do TÉO (assets/img/logo-teo.png) pintada por máscara: herda --logo sobre fundo escuro.
   O texto do elemento continua no HTML como nome acessível e fica fora da tela. */
.wordmark { display: inline-block; flex: none; height: 1.4em; aspect-ratio: 234 / 185; overflow: hidden; vertical-align: middle; font-size: 1.75rem; line-height: 1; text-indent: 200%; white-space: nowrap; background: var(--logo-cor, var(--logo)); -webkit-mask: url("img/logo-teo.922404a25858.png") center / contain no-repeat; mask: url("img/logo-teo.922404a25858.png") center / contain no-repeat; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--sh-2); }
.skip:focus { left: 12px; }

/* ── Ícone (sprite Lucide: <svg class="icon"><use href="assets/icons.svg#nome"/></svg>) ── */
.icon { display: inline-block; vertical-align: -0.22em; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }

/* ── Botão ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tap); padding: 0 var(--s-5);
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--ink);
  font-weight: 650; font-size: var(--fs-16); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--ink-on-brand); }
.btn--primary:hover { background: var(--cafe-700); }
.btn--pay { background: var(--ouro-500); color: var(--cafe-950); }
.btn--pay:hover { background: var(--ouro-200); }
.btn--secondary { background: var(--surface); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--danger { background: var(--perigo-700); color: #fff; }
.btn--danger:hover { background: var(--perigo-600); }
.btn--danger-quiet { color: var(--perigo-700); border-color: currentColor; background: var(--surface); }
.btn--sm { min-height: 36px; padding: 0 var(--s-3); font-size: var(--fs-14); }
.btn--lg { min-height: 54px; padding: 0 var(--s-6); font-size: var(--fs-18); border-radius: var(--r-md); }
.btn--block { display: flex; width: 100%; }
.btn--icon { padding: 0; width: var(--tap); }
.btn--icon.btn--sm { width: 36px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.link { color: var(--cafe-700); font-weight: 650; text-decoration: underline; background: none; border: 0; padding: 0; }
[data-theme="kds"] .link { color: var(--kds-preparo); }

/* ── Campos ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: var(--fs-14); font-weight: 650; }
.label__opt { font-weight: 400; color: var(--ink-2); }
.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink);
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--pedra-500); }
.input:focus-visible { border-color: var(--brand); border-radius: var(--r-sm); }
.input[readonly], .input[disabled] { background: var(--surface-2); color: var(--ink-2); }
textarea.input { min-height: 88px; resize: vertical; line-height: var(--lh-body); }
.input--money { font-variant-numeric: tabular-nums; text-align: right; }
.input-group { position: relative; }
.input-group > .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ink-2); pointer-events: none; }
.input-group > .icon ~ .input { padding-left: 44px; }
.input-group > .btn { position: absolute; right: 2px; top: 1px; }
.hint { font-size: var(--fs-13); color: var(--ink-2); }
.field--error .input { border-color: var(--perigo-700); background: var(--perigo-100); }
.error-msg { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-14); font-weight: 600; color: var(--perigo-700); }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset > legend { padding: 0; margin-bottom: var(--s-3); font-family: var(--font-display); font-stretch: 86%; font-weight: 700; font-size: var(--fs-18); }
.form-grid { display: grid; gap: var(--s-4) var(--s-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > .span-2 { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.check { display: flex; align-items: flex-start; gap: var(--s-3); min-height: var(--tap); padding: 10px 0; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); }
.switch { appearance: none; flex: none; width: 46px; height: 28px; margin: 0; border-radius: var(--r-pill); background: var(--creme-400); position: relative; cursor: pointer; transition: background var(--dur) var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: translate var(--dur) var(--ease); }
.switch:checked { background: var(--ok-700); }
.switch:checked::after { translate: 18px 0; }

/* ── Campo de valor (R$), escolha única em cartão, seleção de linha ── */
.moneyfield { position: relative; }
.moneyfield > span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ink-2); font-weight: 650; pointer-events: none; }
.moneyfield > .input { padding-left: 46px; }
.pick { display: inline-grid; place-items: center; width: 28px; height: 28px; cursor: pointer; }
.pick input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.choices { display: flex; flex-direction: column; gap: var(--s-2); }
.choice { display: flex; align-items: flex-start; gap: var(--s-3); min-height: var(--tap); padding: var(--s-3) var(--s-4); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.choice:hover { border-color: var(--pedra-500); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--areia-100); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.choice input:focus-visible { outline: 0; }
.choice .muted { color: var(--pedra-700); }
.reveal { display: none; padding: var(--s-2) 0 var(--s-2) var(--s-10); }
.choice:has(input:checked) + .reveal { display: flex; flex-direction: column; gap: var(--s-3); }
@media (max-width: 640px) { .reveal { padding-left: 0; } }

.choice__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ── Selo de estado: sempre ícone + texto, nunca só cor ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px;
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink);
  font-size: var(--fs-13); font-weight: 650; line-height: 1.4; white-space: nowrap;
}
.badge > .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.badge--ok { background: var(--ok-100); color: var(--ok-700); }
.badge--info { background: var(--info-100); color: var(--info-700); }
.badge--warn { background: var(--ouro-100); color: var(--ouro-900); }
.badge--danger { background: var(--perigo-100); color: var(--perigo-700); }
.badge--brand { background: var(--areia-200); color: var(--cafe-800); }
.badge--solid { background: var(--cafe-800); color: var(--creme-100); }
.badge--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.badge--lg { padding: 6px 14px 6px 10px; font-size: var(--fs-14); }

/* ── Cartão ─────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.card--pad-0 { padding: 0; overflow: hidden; }
.card--quiet { background: var(--surface-2); border-color: transparent; }
.card--brand { background: var(--surface-brand); color: var(--ink-on-brand); border-color: transparent; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }

/* ── Tíquete: assinatura visual (vale do dia, divisão do pedido, comprovantes) ── */
.ticket {
  --cut: var(--bg); /* cor do fundo atrás do tíquete, para o picote */
  position: relative; display: flex; border-radius: var(--r-md);
  background: var(--surface-brand); color: var(--ink-on-brand);
}
.ticket__main { flex: 1 1 0; min-width: 0; padding: var(--s-4) var(--s-5); }
.ticket__stub {
  position: relative; flex: none; display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-4) var(--s-5); border-left: 2px dashed color-mix(in srgb, currentColor 34%, transparent);
}
.ticket__stub::before, .ticket__stub::after {
  content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--cut);
}
.ticket__stub::before { top: -9px; }
.ticket__stub::after { bottom: -9px; }
.ticket--folha { background: var(--areia-200); color: var(--cafe-900); }
.ticket--papel { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.ticket--stack { flex-direction: column; }
.ticket--stack > .ticket__stub { border-left: 0; border-top: 2px dashed color-mix(in srgb, currentColor 34%, transparent); }
.ticket--stack > .ticket__stub::before { top: -10px; left: -9px; }
.ticket--stack > .ticket__stub::after { top: -10px; bottom: auto; left: auto; right: -9px; }

/* ── Divisão benefício × excedente ──────────────────────── */
.split { display: flex; flex-direction: column; gap: var(--s-3); }
.split__bar { display: flex; height: 12px; border-radius: var(--r-pill); overflow: hidden; background: var(--ouro-500); }
.split__bar > i { display: block; width: var(--pct, 100%); background: var(--empresa); border-right: 2px solid var(--surface); }
.split__bar--full > i { border-right: 0; }
.split__line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.split__key { display: inline-flex; align-items: center; gap: var(--s-2); }
.split__dot { width: 12px; height: 12px; border-radius: 3px; background: var(--empresa); flex: none; }
.split__dot--voce { background: var(--ouro-500); }

/* ── Aviso em linha ─────────────────────────────────────── */
.alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); }
.alert > .icon { margin-top: 2px; }
.alert__title { font-weight: 700; }
.alert__body { flex: 1 1 0; min-width: 0; }
.alert--info { background: var(--info-100); color: var(--info-700); }
.alert--ok { background: var(--ok-100); color: var(--ok-700); }
.alert--warn { background: var(--ouro-100); color: var(--ouro-900); }
.alert--danger { background: var(--perigo-100); color: var(--perigo-700); }
.alert p { color: var(--ink); }
[data-theme="kds"] .alert p { color: inherit; }

/* ── Estado vazio / erro de página ──────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); padding: var(--s-10) var(--s-5); text-align: center; }
.empty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--areia-100); color: var(--cafe-700); font-size: var(--fs-20); }
.empty__icon--warn { background: var(--ouro-100); color: var(--ouro-900); }
.empty__icon--danger { background: var(--perigo-100); color: var(--perigo-700); }
.empty h2, .empty h3 { font-size: var(--fs-20); }
.empty p { max-width: 38ch; color: var(--ink-2); }

/* ── Tabela ─────────────────────────────────────────────── */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.table th { padding: 11px 14px; text-align: left; font-size: var(--fs-13); font-weight: 650; color: var(--ink-2); white-space: nowrap; border-bottom: 1px solid var(--line-strong); background: var(--surface); }
.table td { padding: 12px 14px; font-size: var(--fs-14); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--creme-100); }
.table .num { text-align: right; }
.table tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.table__main { font-weight: 650; font-size: var(--fs-14); }
a.table__main { display: inline-block; padding: 3px 0; }
.table__cell { min-width: 0; }
.table__sub { font-size: var(--fs-13); color: var(--ink-2); }
.table tr.is-off td { color: var(--ink-2); }
.table tr.is-selected { background: var(--areia-100); }
/* Em telas estreitas cada linha vira um cartão; data-label vem do cabeçalho */
@media (max-width: 760px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; }
  .table--stack tr { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { display: flex; justify-content: space-between; gap: var(--s-4); padding: 5px 0; border: 0; text-align: right; }
  .table--stack td::before { content: attr(data-label); flex: none; color: var(--ink-2); font-size: var(--fs-13); text-align: left; }
  .table--stack td[data-label=""]::before { content: none; }
  .table--stack td.table__lead { justify-content: flex-start; text-align: left; padding-bottom: var(--s-2); }
  .table--stack td.table__lead .table__main { font-size: var(--fs-16); }
  .table--stack td.table__lead::before { content: none; }
  .table--stack tfoot { display: block; }
}

/* ── Lista chave → valor ────────────────────────────────── */
.kv { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-2) var(--s-4); align-items: baseline; }
.kv dt { color: var(--ink-2); font-size: var(--fs-14); }
.kv dd { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv .kv--total { padding-top: var(--s-3); border-top: 1px dashed color-mix(in srgb, currentColor 40%, transparent); font-size: var(--fs-18); font-weight: 700; color: inherit; }
.ticket:not(.ticket--papel):not(.ticket--folha) .kv dt { color: var(--ink-on-brand-2); }
.ticket:not(.ticket--papel):not(.ticket--folha) .kv dt.kv--total { color: inherit; }
.kv--cols { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-4) var(--s-6); }
.kv--cols > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv--cols dd { text-align: left; }

/* ── Chip de filtro e abas ──────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4); border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-14); font-weight: 650; white-space: nowrap; text-decoration: none; }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--ink-on-brand); }
.chip__count { font-variant-numeric: tabular-nums; font-weight: 500; opacity: 0.75; }
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line-strong); overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4); border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: var(--ink-2); font-weight: 650; font-size: var(--fs-14); text-decoration: none; }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }

/* ── Diálogo e folha inferior (elemento <dialog> nativo) ── */
dialog.modal { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--sh-2); }
dialog.modal--wide { width: min(760px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(18, 12, 8, 0.6); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-5) 0; }
.modal__body { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.modal__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-3); padding: var(--s-4) var(--s-5) var(--s-5); }
dialog.sheet { width: 100%; max-width: var(--app-max); margin: auto auto 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 88dvh; }
dialog.sheet .modal__foot { flex-direction: column-reverse; }
dialog.sheet .modal__foot .btn { width: 100%; }

/* ── Toast ──────────────────────────────────────────────── */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 96px; translate: -50% 0; display: flex; align-items: center; gap: var(--s-2); max-width: min(420px, calc(100vw - 32px)); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); background: var(--cafe-950); color: var(--creme-100); font-size: var(--fs-14); font-weight: 600; box-shadow: var(--sh-2); }

/* ── Linha do tempo do pedido ───────────────────────────── */
.steps { display: flex; flex-direction: column; }
.steps > li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); padding-bottom: var(--s-5); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line-strong); }
.steps > li:last-child::before { content: none; }
.steps__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--line-strong); background: var(--surface); color: var(--ink-3); font-size: 12px; }
.steps > li.is-done .steps__dot { border: 0; background: var(--cafe-700); color: var(--creme-100); }
.steps > li.is-done::before { background: var(--cafe-700); }
.steps > li.is-now .steps__dot { border: 0; background: var(--ouro-500); color: var(--cafe-950); box-shadow: 0 0 0 5px var(--ouro-100); }
.steps > li.is-bad .steps__dot { border: 0; background: var(--perigo-700); color: #fff; }
.steps__title { font-weight: 650; line-height: 28px; }
.steps > li:not(.is-done):not(.is-now):not(.is-bad) .steps__title { color: var(--ink-2); font-weight: 500; }
.steps__meta { font-size: var(--fs-13); color: var(--ink-2); }

/* ── Avatar, foto, esqueleto, carregando ────────────────── */
.avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--areia-200); color: var(--cafe-800); font-weight: 700; font-size: var(--fs-14); }
.avatar--sm { width: 30px; height: 30px; font-size: var(--fs-12); }
.photo { width: 100%; object-fit: cover; border-radius: var(--r-lg); background: var(--surface-2); }
.skeleton { border-radius: var(--r-sm); background: linear-gradient(90deg, var(--creme-200) 25%, var(--creme-50) 45%, var(--creme-200) 65%) 0 0 / 300% 100%; animation: skeleton 1.4s linear infinite; color: transparent; user-select: none; }
@keyframes skeleton { to { background-position: -150% 0; } }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* ── Barra de revisão do protótipo (não faz parte do produto) ── */
.proto-chip { position: fixed; z-index: 100; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: #1D1D1F; color: #F2F2F2; font: 600 12px/1 var(--font-ui); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.proto-chip a, .proto-chip button { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border: 0; border-radius: var(--r-pill); background: none; color: inherit; text-decoration: none; }
.proto-chip a:hover, .proto-chip button:hover { background: #3A3A3D; }
.proto-chip__id { padding: 0 6px 0 10px; font-family: var(--font-mono); white-space: nowrap; }
.proto-chip__title { max-width: 26ch; padding-right: 6px; font-weight: 400; color: #B8B8BC; }
@media (max-width: 560px) { .proto-chip__title { display: none; } }
.is-shot .proto-chip { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print { .proto-chip, .no-print { display: none !important; } }
