/* ------------------------------------------------------------------ Moldura (topo + aviso AT) */
.chrome { position: sticky; top: 0; z-index: 20; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.topbar { display: flex; align-items: center; gap: .5rem; padding: .3rem .9rem; min-height: 68px; }
.brand-mark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; flex: none; padding: .2rem .4rem .2rem .1rem; border-radius: var(--radius-pill); }
.brand-mark img.badge-img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 3px var(--halo); background: var(--white); }
.brand-mark img.wordmark { height: 26px; width: auto; }
.brand-mark .pos-tag { font: 600 .7rem/1 var(--font-display); letter-spacing: .12em; color: var(--muted); align-self: flex-end; margin: 0 0 .35rem -.3rem; }
:root[data-theme="dark"] .brand-mark img.wordmark { background: var(--white); border-radius: 10px; padding: 3px 6px; height: 32px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark img.wordmark { background: var(--white); border-radius: 10px; padding: 3px 6px; height: 32px; } }

.mainnav { display: flex; gap: .15rem; flex: 1; min-width: 0; justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a {
  display: grid; justify-items: center; align-content: center; gap: .1rem; min-width: 72px; min-height: 56px; padding: .3rem .55rem;
  text-decoration: none; color: var(--muted); border-radius: 18px; font-size: .74rem; font-weight: 800; white-space: nowrap;
  transition: background-color 140ms, color 140ms, transform 110ms var(--ease-out);
}
.mainnav a:hover { color: var(--ink); background: var(--surface-2); }
.mainnav a:active { transform: scale(.95); }
.mainnav a[aria-current="page"] { background: var(--red); color: var(--on-red); }
.mainnav a .ico { width: 24px; height: 24px; }
.top-actions { display: flex; align-items: center; gap: .2rem; flex: none; }
.who { display: flex; align-items: center; gap: .5rem; padding: .25rem .7rem .25rem .25rem; border-radius: var(--radius-pill); background: var(--surface-2); max-width: 15rem; }
.who .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: var(--on-red); display: grid; place-items: center; font: 600 1rem var(--font-display); flex: none; }
.who .who-text { display: grid; line-height: 1.1; min-width: 0; }
.who .who-text strong { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .who-text small { font-size: .7rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions .stack-btn { display: grid; justify-items: center; gap: .05rem; min-width: 56px; min-height: 56px; padding: .25rem .4rem; border: 0; background: transparent; font-size: .7rem; font-weight: 800; color: var(--muted); border-radius: 16px; }
.top-actions .stack-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.top-actions .stack-btn .ico { width: 22px; height: 22px; }

.at-notice {
  display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .3rem 1rem; font-size: .78rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink); border-top: 1px solid var(--line); text-align: center; line-height: 1.3;
}
.at-pill { background: var(--red-deep); color: var(--white); border-radius: var(--radius-pill); padding: .05rem .5rem; font-size: .68rem; letter-spacing: .08em; font-weight: 800; flex: none; }
.at-notice.on-red { background: transparent; color: var(--white); border: 0; text-align: left; }
.at-notice.on-red .at-pill { background: var(--white); color: var(--red-deep); }
.notice { background: var(--warn-tint); color: var(--warn); padding: .5rem 1rem; font-size: .88rem; font-weight: 700; border-radius: 16px; text-align: center; }
.notice.warn { background: var(--warn-tint); color: var(--warn); }
.origin-banner { text-align: left; margin: 0 0 .8rem; font-weight: 600; }
.origin-banner strong { font-weight: 800; }

main { padding: 1rem 1.1rem 2rem; max-width: 1480px; margin: 0 auto; }

@media (max-width: 1320px) {
  .who .who-text { display: none; }
  .who { padding: .25rem; }
  .brand-mark img.wordmark, .brand-mark .pos-tag { display: none; }
  .mainnav a { min-width: 64px; padding: .3rem .4rem; }
}
@media (max-width: 860px) {
  .topbar { min-height: 60px; }
  .mainnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -6px 20px rgb(0 0 0 / .06); padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom));
  }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { min-width: 70px; flex: none; }
  main { padding-bottom: 6.5rem; }
  .at-notice { font-size: .72rem; }
  .brand-mark img.wordmark { display: inline; height: 22px; }
}
@media (max-width: 520px) {
  .brand-mark img.wordmark { display: none; }
  .top-actions .stack-btn { min-width: 48px; }
  .top-actions .stack-btn span { display: none; }
  main { padding: .75rem .75rem 6.5rem; }
}

/* ------------------------------------------------------------------ Login */
.login {
  min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 1rem; padding: 1.25rem;
  background: var(--red); position: relative; overflow: hidden; isolation: isolate;
}
.login::before, .login::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 56px solid rgb(255 255 255 / .07);
}
.login::before { width: 620px; height: 620px; left: -220px; top: -240px; }
.login::after { width: 520px; height: 520px; right: -200px; bottom: -220px; border-width: 40px; }
.login-card {
  width: min(420px, 100%); background: var(--surface); color: var(--ink); border-radius: 36px; padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 0 0 6px rgb(255 255 255 / .25), var(--shadow-pop); text-align: center; display: grid; gap: .75rem;
}
.login-card .logo-img { width: min(260px, 80%); height: auto; margin: 0 auto; display: block; }
:root[data-theme="dark"] .login-card .logo-img { background: var(--white); border-radius: 22px; padding: 6px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .login-card .logo-img { background: var(--white); border-radius: 22px; padding: 6px 10px; } }
.login-card h1 { font-size: 1.35rem; margin: .25rem 0 0; }
.login-card h1::after { display: none; }
.login-card .hint { margin: 0; color: var(--muted); font-weight: 600; }
.login-card select { border-radius: var(--radius-pill); text-align: center; font-weight: 800; }
.pin-dots { display: flex; justify-content: center; gap: .7rem; min-height: 26px; margin: .2rem 0; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-strong); transition: background-color 120ms, border-color 120ms; }
.pin-dots i.on { background: var(--red); border-color: var(--red); animation: dot-pop 160ms var(--ease-pop); }
.pin-dots.shake { animation: shake 320ms; }
@keyframes dot-pop { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .25rem auto 0; width: min(300px, 100%); }
.keypad button {
  aspect-ratio: 1 / .78; min-height: 64px; border-radius: 26px; font: 600 1.75rem/1 var(--font-display);
  background: var(--surface-2); border-color: transparent;
}
.keypad button:hover:not(:disabled) { border-color: var(--red); background: var(--surface); }
.keypad button.primary { background: var(--red); color: var(--white); font-size: 1.35rem; }
.keypad button.erase { font-size: 1rem; }
.login-foot { color: var(--white); text-align: center; display: grid; gap: .3rem; justify-items: center; max-width: 520px; }
.login-foot small { opacity: .9; font-weight: 600; }
.login-clock { font: 600 1rem var(--font-display); letter-spacing: .04em; }

/* ------------------------------------------------------------------ Sala */
.floor-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.seg {
  display: inline-flex; gap: .2rem; padding: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  max-width: 100%; overflow-x: auto; scrollbar-width: none; box-shadow: var(--shadow-1);
}
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; border-radius: var(--radius-pill); min-height: 44px; padding: .4rem 1.1rem; background: transparent; white-space: nowrap; color: var(--muted); }
.seg button:hover:not(:disabled) { color: var(--ink); background: var(--surface-2); }
.seg button[aria-pressed="true"], .seg button[aria-pressed="true"]:hover { background: var(--red); color: var(--on-red); }
.quick-new { display: flex; gap: .45rem; flex-wrap: wrap; }
.quick-new button { border-radius: var(--radius-pill); min-height: 52px; padding: .4rem 1.1rem .4rem .8rem; }
.quick-new button .ico { color: var(--red-text); }
.quick-new button.primary .ico { color: var(--white); }
.terminal-pick { font-size: .72rem; }
.terminal-pick select { border-radius: var(--radius-pill); min-height: 44px; }

.floor {
  position: relative; min-height: 340px; border-radius: var(--radius-lg); overflow: auto;
  background-color: var(--surface); border: 1px solid var(--line);
  background-image: radial-gradient(circle, var(--line) 1.4px, transparent 1.6px); background-size: 26px 26px;
}
.floor .table {
  position: absolute; width: 124px; height: 112px; border-radius: 26px; padding: .4rem;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: .05rem;
  border: 2px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink);
}
.floor .table.round { width: 112px; height: 112px; border-radius: 50%; }
.floor .table strong { font: 600 1.55rem/1 var(--font-display); }
.floor .table .seats { display: inline-flex; gap: .2rem; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 700; }
.floor .table.busy { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 6px 18px color-mix(in srgb, var(--red) 35%, transparent); }
.floor .table.busy small, .floor .table.busy .muted { color: rgb(255 255 255 / .9); }
.floor .table.busy .money { font-weight: 800; }
.floor .table.ready { box-shadow: 0 0 0 4px var(--surface), 0 0 0 8px var(--ok); }
.floor .table .badge.ok { position: absolute; top: -12px; right: -8px; background: var(--ok); color: var(--white); animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.floor .table:hover:not(:disabled) { border-color: var(--red); }
.floor .table.move-source { outline: 4px solid var(--poppys-yellow); outline-offset: 3px; }
button.pill.strong { background: var(--ink); color: var(--surface); border-color: var(--ink); }
@media (max-width: 700px) {
  .floor { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .75rem; padding: .75rem; height: auto !important; min-height: 0; }
  .floor .table, .floor .table.round { position: static; width: auto; height: 104px; }
  .floor .table.round { border-radius: 36px; }
}
.section-title { display: flex; align-items: center; gap: .5rem; margin: 1.4rem 0 .7rem; font-size: 1.15rem; }
.section-title .count { background: var(--red); color: var(--white); border-radius: var(--radius-pill); font-size: .8rem; padding: .05rem .55rem; font-family: var(--font-ui); font-weight: 800; }
.counter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.counter-list button.card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; justify-items: start; text-align: left;
  gap: .1rem .7rem; padding: .8rem .9rem; border-radius: 22px;
}
.counter-list .order-ico { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red-tint); color: var(--red-text); }
.counter-list .order-num { font: 600 1.15rem var(--font-display); }
.counter-list .order-meta { color: var(--muted); font-size: .85rem; font-weight: 700; }
.reservation { display: flex; gap: .8rem; align-items: center; margin-bottom: .5rem; }
.reservation .time { font: 600 1.2rem var(--font-display); color: var(--red-text); }

/* ------------------------------------------------------------------ Pedido */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 1rem; align-items: start; }
.order-layout > * { min-width: 0; }
@media (max-width: 1100px) { .order-layout { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 820px) { .order-layout { grid-template-columns: 1fr; } }
.catalog-tools { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.happy-strip { margin-bottom: .6rem; }
.search-wrap { position: relative; flex: 1; }
.search-wrap .ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.product-search { border-radius: var(--radius-pill); padding-left: 2.8rem; margin: 0; background: var(--surface); }
.note-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .9rem .3rem .4rem; border-radius: var(--radius-pill); background: var(--surface); border: 1.5px solid var(--line); min-height: var(--tap); font-size: .85rem; font-weight: 800; color: var(--ink); text-transform: none; letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.note-toggle:has(input:checked) { border-color: var(--red); background: var(--red-tint); color: var(--red-text); }
.families { display: flex; gap: .45rem; overflow-x: auto; padding: .15rem .1rem .55rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.families button {
  white-space: nowrap; border-radius: var(--radius-pill); min-height: 50px; padding: .35rem 1.05rem .35rem .45rem; scroll-snap-align: start;
  background: var(--surface); text-transform: none; font-size: .92rem;
}
.families button .fam-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red-tint); color: var(--red-text); flex: none; }
.families button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.families button[aria-pressed="true"] .fam-ico { background: var(--white); color: var(--red); }
.families button .fam-name { text-transform: lowercase; }
.families button .fam-name::first-letter { text-transform: uppercase; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .65rem; margin-top: .25rem; }
.products button {
  position: relative; min-height: 124px; padding: .7rem .75rem .65rem; border-radius: 22px; text-align: left;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "ico tag" "name name" "price price";
  align-items: start; justify-items: start; gap: .35rem .4rem; background: var(--surface); box-shadow: var(--shadow-1);
}
.products button .tile-ico { grid-area: ico; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red-tint); color: var(--red-text); }
.products button .tile-ico .ico { width: 19px; height: 19px; }
.products button .tile-tag { grid-area: tag; justify-self: end; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--red-text); background: var(--red-tint); padding: .12rem .5rem; border-radius: var(--radius-pill); }
.products button .tile-name { grid-area: name; font-weight: 800; font-size: .98rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.products button .price { grid-area: price; font: 600 1.15rem/1 var(--font-display); color: var(--ink); display: flex; gap: .35rem; align-items: baseline; flex-wrap: wrap; }
.products button .price s { font: 600 .8rem var(--font-ui); color: var(--muted); }
.products button .badge.promo { position: absolute; top: -9px; right: 10px; }
.products button.on-promo { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow-1); }
.products button.on-promo .price { color: var(--red-text); }
.products button.unavailable { border-style: dashed; background: var(--surface-2); box-shadow: none; }
.products button.unavailable .tile-name, .products button.unavailable .price { opacity: .6; }
.products button.soldout { background: var(--surface-2); box-shadow: none; }
.products button.soldout .tile-name { text-decoration: line-through; }
.products button.soldout .price { font-size: .9rem; color: var(--muted); }
.products button:active:not(:disabled) { transform: scale(.94); }
.products button.bump { animation: tile-bump 200ms var(--ease-pop); }
@keyframes tile-bump { 40% { transform: scale(.93); background: var(--red-tint); } }
.products button[aria-pressed="true"] { background: var(--red-tint); border-color: var(--red); color: var(--ink); }
.products button[aria-pressed="true"] .price { color: var(--red-text); }
.products-empty { grid-column: 1 / -1; }

.fly-chip {
  position: fixed; z-index: 90; pointer-events: none; background: var(--red); color: var(--white); font-weight: 800; font-size: .85rem;
  padding: .35rem .8rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-2); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}

/* Talão do pedido */
.ticket {
  position: sticky; top: calc(var(--chrome-h) + 12px); display: flex; flex-direction: column; padding: 0; overflow: hidden;
  max-height: calc(100dvh - var(--chrome-h) - 24px); border-radius: 28px;
}
@media (max-width: 820px) { .ticket { position: static; max-height: none; } }
.ticket-head { padding: 1rem 1.1rem .6rem; display: grid; gap: .55rem; border-bottom: 1px dashed var(--line-strong); }
.ticket-title { display: flex; align-items: center; gap: .6rem; }
.ticket-title h2 { margin: 0; font-size: 1.45rem; }
.ticket-title h2::after { display: none; }
.ticket-title .type-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; flex: none; }
.ticket-title button { min-height: 40px; padding: .2rem .8rem; border-radius: var(--radius-pill); }
.ticket .zone-chip { font-size: .82rem; color: var(--muted); font-weight: 700; }
.ticket-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .4rem 1.1rem; overscroll-behavior: contain; }
.ticket-head, .ticket-foot { flex: none; }
.ticket .poppy-balloon { margin: .5rem 0 .3rem; }
.ticket .poppy-balloon .balloon-actions button { min-height: 44px; padding: .35rem .95rem; }
.ticket ul.ticket-lines { list-style: none; margin: 0; padding: 0; }
.ticket li { display: grid; grid-template-columns: 30px 1fr auto; gap: .55rem; padding: .55rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.ticket li:last-child { border-bottom: 0; }
/* Linha com deslizar para anular (T5): a grelha passa para o conteúdo que desliza. */
.ticket li.swipe-row { display: block; padding: 0; }
.ticket li.swipe-row > .swipe-inner { display: grid; grid-template-columns: 30px 1fr auto; gap: .55rem; padding: .55rem 0; align-items: start; }
.ticket li.swipe-row > .swipe-inner > input[type="checkbox"] { margin-top: .35rem; }
.ticket li.swipe-row > .swipe-inner > .money { font-weight: 800; padding-top: .3rem; }
.ticket li.swipe-row > .swipe-under { border-radius: 12px; }
.ticket li > input[type="checkbox"], .ticket li > .paid-mark { margin-top: .35rem; }
.ticket li .paid-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); display: grid; place-items: center; }
.ticket li.voided { opacity: .45; }
.ticket li.voided .line-name { text-decoration: line-through; }
.ticket li.menu-component { padding: 0 0 .25rem; border-bottom: 0; margin-top: -.35rem; }
.ticket li.menu-component .notes { padding-left: .1rem; }
.ticket li .notes { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ticket li > .money { font-weight: 800; padding-top: .3rem; }
.ticket li.just-added { animation: line-in 600ms var(--ease-out); }
@keyframes line-in { 0% { background: var(--red-tint); transform: translateX(14px); opacity: .3; } 30% { transform: none; opacity: 1; } 100% { background: transparent; } }
.line-btn { display: block; width: 100%; text-align: left; padding: .2rem .25rem; min-height: 0; border: 0; border-radius: 12px; background: transparent; font-weight: 700; }
.line-btn:hover:not(:disabled) { background: var(--surface-2); }
.line-btn:disabled { opacity: 1; cursor: default; }
.line-main { display: flex; gap: .4rem; align-items: baseline; }
.line-qty { font: 600 .9rem/1.3 var(--font-display); background: var(--red-tint); color: var(--red-text); padding: 0 .45rem; border-radius: var(--radius-pill); flex: none; }
.line-name { line-height: 1.25; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: .3rem; flex: none; vertical-align: middle; }
.status-pending { background: var(--line-strong); }
.status-sent { background: var(--warn-strong); }
.status-ready { background: var(--ok); }
.status-delivered { background: var(--info); }
.ticket-empty { padding: 1.2rem 0; }
.ticket-foot { border-top: 1px dashed var(--line-strong); padding: .7rem 1.1rem 1rem; display: grid; gap: .55rem; background: var(--surface); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font: 600 1.15rem var(--font-display); }
.total .money { font-size: 2.1rem; line-height: 1; }
.total.tick .money { animation: tick 200ms var(--ease-pop); }
@keyframes tick { 40% { transform: scale(1.12); color: var(--red); } }
.total .money { display: inline-block; transform-origin: right center; }
.savings { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 800; color: var(--ok); }
.due-line { font-size: .88rem; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; }
.held-line { font-size: .85rem; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.held-line .small { min-height: 0; padding: .2rem .6rem; font-size: .8rem; }
.split-plan { margin: .4rem 0 0; }
.split-item { display: grid; grid-template-columns: 1fr 5.5rem; align-items: center; gap: .6rem; }
.split-item input { min-height: 2.4rem; }
.ticket-cta { display: grid; grid-template-columns: 1fr 1.35fr; gap: .5rem; }
.ticket-cta button { min-height: 60px; border-radius: 20px; font-size: 1.05rem; }
.ticket-cta button.pay { font: 600 1.3rem var(--font-display); letter-spacing: .02em; }
.ticket-cta .count { background: var(--red); color: var(--white); border-radius: var(--radius-pill); font-size: .75rem; padding: .05rem .45rem; min-width: 1.4rem; }
.ticket-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.ticket-tools button { display: grid; justify-items: center; gap: .1rem; min-height: 54px; padding: .25rem .1rem; border-radius: 16px; font-size: .7rem; font-weight: 800; color: var(--muted); background: var(--surface-2); border-color: transparent; }
.ticket-tools button:hover:not(:disabled) { color: var(--ink); border-color: var(--line-strong); }
.ticket-tools button.danger { color: var(--red-text); background: var(--red-tint); }

.customer-row { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; }
.zone-switch { margin: 0; }
.zone-switch .pill { min-height: 38px; padding: .2rem .85rem; font-size: .85rem; }

/* Pílulas e chips */
.pills { display: flex; flex-wrap: wrap; gap: .45rem; margin: .3rem 0 .8rem; }
.pill {
  border-radius: var(--radius-pill); padding: .45rem 1rem; min-height: var(--tap); display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1.5px solid var(--line);
}
.pill.big { min-height: 58px; padding: .55rem 1.2rem; font-weight: 800; font-size: 1rem; }
.pill small { font-weight: 700; opacity: .85; }
.pill[aria-pressed="true"] { background: var(--red); color: var(--on-red); border-color: var(--red); }
.pill[aria-pressed="true"]::before { content: ""; width: 10px; height: 6px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-2px); }
.pill:disabled { opacity: .45; text-decoration: line-through; }
.chip {
  border-radius: var(--radius-pill); min-height: 38px; padding: .25rem .85rem; font-size: .84rem; font-weight: 800;
  background: var(--surface-2); border: 1.5px solid transparent; display: inline-flex; align-items: center; gap: .3rem; color: var(--ink);
}
button.chip:hover:not(:disabled) { border-color: var(--red); }
.chip.ghost { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); }
.chip.ghost:hover:not(:disabled) { color: var(--red-text); }
.chip.strong { background: var(--red); color: var(--white); }
.chip .ico { width: 16px; height: 16px; }
.promo-chip { display: flex; width: 100%; justify-content: center; margin: .1rem 0; background: var(--red-tint); border: 1.5px dashed var(--red); color: var(--red-text); font-weight: 800; }

/* Folhas (opções, desconto, cliente) */
.sheet { display: grid; gap: .3rem; min-width: min(560px, 82vw); }
.sheet h3 { margin: .7rem 0 0; font-size: 1rem; display: flex; align-items: baseline; gap: .3rem; }
.sheet h3 small { font-family: var(--font-ui); font-weight: 700; }
.sheet-total { display: flex; justify-content: space-between; align-items: baseline; font: 600 1.2rem var(--font-display); padding-top: .7rem; border-top: 1px dashed var(--line-strong); margin-top: .3rem; }
.sheet-total .money { font-size: 1.6rem; color: var(--red-text); }
.sheet-error { color: var(--red-text); margin: 0; min-height: 1.2em; font-weight: 800; }
.opt-group + .opt-group { border-top: 1px dashed var(--line); padding-top: .2rem; }
.customer-results { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.check-list { display: grid; gap: .2rem; max-height: 50vh; overflow: auto; margin-top: .5rem; }

/* ------------------------------------------------------------------ Pagamento */
.pay-sheet { display: grid; gap: .9rem; min-width: min(560px, 82vw); }
.pay-due { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border-radius: 22px; padding: .7rem 1rem; }
.pay-due span { font-weight: 800; color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.pay-due strong { font: 600 2.2rem/1 var(--font-display); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pay-methods button { display: grid; justify-items: center; gap: .25rem; min-height: 76px; border-radius: 20px; font-size: .9rem; }
.pay-methods button .ico { width: 26px; height: 26px; color: var(--red-text); }
.pay-methods button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.pay-methods button[aria-pressed="true"] .ico { color: var(--white); }
.pay-entry { display: flex; gap: .5rem; flex-wrap: wrap; align-items: stretch; }
.pay-entry input { flex: 1 1 140px; width: auto; font: 600 1.5rem var(--font-display); text-align: right; border-radius: 18px; min-height: 58px; }
.pay-entry button { min-height: 58px; border-radius: 18px; }
.quick-cash { display: flex; gap: .4rem; flex-wrap: wrap; }
.quick-cash button { border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; min-width: 84px; }
ul.pay-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
ul.pay-list li { display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: 14px; padding: .2rem .3rem .2rem .9rem; font-weight: 800; }
.pay-status { display: flex; justify-content: space-between; align-items: baseline; font: 600 1.2rem var(--font-display); margin: 0; padding: .4rem 0; }
.pay-status .money { font-size: 1.8rem; }
.pay-status.change .money { color: var(--ok); }

/* ------------------------------------------------------------------ Cozinha (KDS) */
.kds-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.kds-bar select { width: auto; border-radius: var(--radius-pill); min-width: 12rem; }
.kds-pickup { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .85rem; font-weight: 800; color: var(--muted); }
.kds-pickup .num-pill { font-family: var(--font-display); background: var(--surface-2); color: var(--ink); border-radius: var(--radius-pill); padding: .05rem .55rem; }
.kds-pickup .num-pill.ready { background: var(--ok-tint); color: var(--ok); }
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .9rem; align-items: start; }
.kds .ticket-card { padding: 0; overflow: hidden; border-radius: 26px; border: 2px solid var(--line); }
.kds-head { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; background: var(--ok-tint); color: var(--ok); }
.kds-head strong { font: 600 1.45rem/1 var(--font-display); color: var(--ink); }
.kds-head .badge { background: var(--surface); color: var(--ink); }
.kds .timer { font: 600 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; margin-left: auto; }
.kds .ticket-card.warn { border-color: var(--warn-strong); }
.kds .ticket-card.warn .kds-head { background: var(--warn-tint); color: var(--warn); }
.kds .ticket-card.late { border-color: var(--red); }
.kds .ticket-card.late .kds-head { background: var(--red); color: var(--white); }
.kds .ticket-card.late .kds-head strong { color: var(--white); }
.kds .ticket-card.late { animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 30%, transparent); } }
.kds .kds-customer { padding: .4rem .9rem 0; font-weight: 800; color: var(--muted); }
.kds ul { list-style: none; padding: .3rem .5rem; margin: 0; }
.kds li { display: flex; align-items: stretch; gap: .3rem; border-bottom: 1px solid var(--line); }
.kds li:last-child { border-bottom: 0; }
.kds li > button:first-child { flex: 1; justify-content: flex-start; text-align: left; min-height: 54px; border: 0; background: transparent; font-weight: 700; font-size: 1.02rem; border-radius: 14px; display: flex; gap: .55rem; align-items: center; padding: .4rem .5rem; }
.kds li > button:first-child:hover { background: var(--surface-2); }
.kds li .kds-check { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line-strong); flex: none; display: grid; place-items: center; color: transparent; }
.kds li.ready .kds-check { background: var(--ok); border-color: var(--ok); color: var(--white); }
.kds li.ready .kds-item { text-decoration: line-through; opacity: .55; }
.kds li .kds-qty { font: 600 1.15rem var(--font-display); color: var(--red-text); }
.kds li .kds-note { display: block; font-size: .85rem; color: var(--warn); font-weight: 800; }
.kds .kds-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: .4rem; padding: .5rem .7rem .8rem; }
.kds .kds-actions button { min-height: 54px; border-radius: 18px; }
.kds-empty { grid-column: 1 / -1; }

/* Componentes por menu, estados, anulações/alterações, faixa de produção prevista (T6/P1b) */
.view-title { font: 600 1.5rem/1.1 var(--font-display); margin: 0; }
.warn-text { color: var(--warn); font-weight: 800; }
.prod-band { display: flex; gap: .35rem .8rem; align-items: center; flex-wrap: wrap; padding: .55rem .9rem; margin: -.3rem 0 .9rem; border-radius: 18px; background: var(--surface-2); font-size: .92rem; }
.prod-band:empty { display: none; }
.prod-band .prod-item b { font: 600 1.1rem var(--font-display); color: var(--red-text); }
.prod-band .conf { font-size: .75rem; font-weight: 800; border-radius: var(--radius-pill); padding: .05rem .5rem; background: var(--surface); }
.prod-band .conf-alta { color: var(--ok); }
.prod-band .conf-media, .prod-band .conf-baixa { color: var(--warn); }
.kds .kds-block + .kds-block { border-top: 2px dashed var(--line); }
.kds-menu { font: 600 .95rem var(--font-display); padding: .45rem .9rem 0; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.kds li .kds-mods { display: block; font-size: .88rem; font-weight: 800; color: var(--ink); }
.kds li .kds-stage { margin-left: auto; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.kds li.stage-preparacao .kds-check { border-color: var(--warn-strong); background: var(--warn-tint); }
.kds li.stage-preparacao .kds-stage { color: var(--warn); }
.kds li.stage-pronto .kds-check { background: var(--ok); border-color: var(--ok); color: var(--white); }
.kds li.stage-pronto .kds-item { text-decoration: line-through; opacity: .55; }
.kds-flag { display: inline-block; font-size: .7rem; font-weight: 900; letter-spacing: .05em; border-radius: 6px; padding: .05rem .4rem; margin-left: .4rem; vertical-align: middle; }
.kds-flag.change { background: var(--warn-tint); color: var(--warn); }
.kds-flag.void { background: var(--red); color: var(--on-red, var(--white)); margin-left: 0; }
.kds-voided { background: var(--red-tint); }
.kds .kds-voided li { align-items: center; gap: .5rem; padding: .35rem .4rem; flex-wrap: wrap; }
.kds-voided .kds-item { flex: 1; text-decoration: line-through; font-weight: 700; min-width: 8rem; }
.kds-voided small { text-decoration: none; display: inline-block; }
.kds .ticket-card.voided-only { border-color: var(--red); }
.kds-others { margin: .2rem .9rem .3rem; font-size: .85rem; font-weight: 700; color: var(--warn); }
.kds-assembly { margin: 0 .9rem .3rem; font-size: .9rem; }
.kds-assembly ol { margin: .2rem 0; padding-left: 1.3rem; }
.waste-list { list-style: none; padding: 0; margin: 0; }
.waste-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .3rem 0; }

/* Expedição */
.expo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .9rem; align-items: start; }
.expo-card { padding: 0; overflow: hidden; border: 2px solid var(--line); border-radius: 26px; }
.expo-card.complete { border-color: var(--ok); }
.expo-head { display: flex; gap: .5rem; align-items: center; padding: .7rem .9rem; background: var(--surface-2); flex-wrap: wrap; }
.expo-head strong { font: 600 1.4rem/1 var(--font-display); }
.expo-card.complete .expo-head { background: var(--ok-tint); }
.expo-count { font-weight: 800; color: var(--muted); }
.expo-customer { font-weight: 800; color: var(--muted); }
.expo-count.ok { color: var(--ok); }
.expo-group ul { list-style: none; margin: 0; padding: .2rem .7rem; }
.expo-group li { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--line); font-weight: 700; flex-wrap: wrap; }
.expo-group li .kds-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; flex: none; }
.expo-group li.stage-pronto .kds-check, .expo-group li.stage-entregue .kds-check { background: var(--ok); border-color: var(--ok); color: var(--white); }
.expo-group li.stage-preparacao .kds-check { border-color: var(--warn-strong); background: var(--warn-tint); }
.expo-group .kds-mods { padding: 0 .9rem; font-size: .85rem; font-weight: 800; }
.expo-center { margin-left: auto; font-size: .78rem; color: var(--muted); }
.expo-card .kds-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .5rem .7rem .8rem; }
.expo-card .kds-actions button { min-height: 54px; border-radius: 18px; }
.expo-card .warn-text { margin: .2rem .9rem; }

/* Drive-thru */
.drive-arrive { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.drive-arrive input { width: 14rem; max-width: 100%; }
.drive-stats { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; align-items: baseline; padding: .55rem .9rem; margin: -.3rem 0 .9rem; border-radius: 18px; background: var(--surface-2); font-size: .92rem; }
.drive-stats b { font: 600 1.1rem var(--font-display); }
.drive-stats .late, .car .late { color: var(--red-text); }
.drive-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 1rem; align-items: start; }
.drive-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; align-items: start; }
.drive-col h2 { font: 600 1.05rem var(--font-display); display: flex; align-items: baseline; gap: .4rem; margin: 0 0 .5rem; flex-wrap: wrap; }
.drive-col h2 .count { background: var(--surface-2); border-radius: var(--radius-pill); padding: 0 .5rem; font-size: .9rem; }
.drive-side h2 { font: 600 1.05rem var(--font-display); margin: 0 0 .5rem; }
.car { padding: .6rem .7rem; margin-bottom: .6rem; border: 2px solid var(--line); border-radius: 20px; }
.car.late { border-color: var(--red); }
.car-head { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.car-pos { font: 600 1.1rem/1 var(--font-display); background: var(--ink); color: var(--surface); border-radius: 50%; min-width: 1.9rem; height: 1.9rem; display: grid; place-items: center; padding: 0 .3rem; }
.car-pos.parked { border-radius: 10px; background: var(--warn-tint); color: var(--warn); }
.car .plate { font: 600 1.05rem var(--font-display); letter-spacing: .04em; }
.car-time { font: 600 1.3rem var(--font-display); font-variant-numeric: tabular-nums; margin: .3rem 0 .1rem; }
.car-time small { font: 600 .78rem var(--font-body, inherit); }
.car-actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .4rem; }
.car-actions button { min-height: 44px; flex: 1 1 auto; }
.car-actions button.ghost { flex: 0 0 auto; }
.drive-recent { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.drive-recent li { padding: .3rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 1100px) { .drive-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .drive-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .drive-cols { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Tabelas, KPIs, relatórios */
.table-wrap { overflow-x: auto; border-radius: 18px; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
table.data th { text-align: left; padding: .55rem .7rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red-text); border-bottom: 2px solid var(--line); white-space: nowrap; background: var(--surface); }
table.data thead th { position: sticky; top: 0; z-index: 1; }
table.data td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr { transition: background-color 120ms; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; }
table.data td button { min-height: 40px; padding: .3rem .8rem; border-radius: var(--radius-pill); }
table.data td button.ghost { color: var(--red-text); }
tr.warn-row td { background: color-mix(in srgb, var(--red) 6%, transparent); }
tr.inactive td { opacity: .5; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin: .3rem 0 1rem; }
.kpi { background: var(--surface-2); border-radius: 20px; padding: .75rem .9rem; display: grid; gap: .15rem; align-content: start; border: 0; box-shadow: none; }
.card.kpi { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.kpi > .muted:first-child, .kpi-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--red-text); }
.kpi .value, .kpi strong { font: 600 1.6rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi small, .kpi > small.muted { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: none; letter-spacing: 0; line-height: 1.3; }
.bars { display: grid; gap: .4rem; }
.bar { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr 6.5rem; gap: .6rem; align-items: center; font-size: .88rem; font-weight: 600; }
.bar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .fill { height: 16px; background: var(--red); border-radius: var(--radius-pill); min-width: 4px; transform-origin: left; animation: grow 400ms var(--ease-out); }
.bar:nth-child(n+4) .fill { background: color-mix(in srgb, var(--red) 55%, var(--surface-3)); }
@keyframes grow { from { transform: scaleX(0); } }
.heat td { min-width: 2.4rem; text-align: center; border-radius: 8px; font-weight: 700; }
.price-grid input { min-height: 40px; padding: .3rem .55rem; border-radius: 10px; }
.opt-card table { margin: .5rem 0; }
.opt-card td button { min-height: 36px; padding: .2rem .65rem; font-size: .85rem; }
.toolbar { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar label { min-width: 10rem; }
.tabs {
  display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .2rem; padding: .25rem; margin-bottom: 1rem; width: fit-content; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); scrollbar-width: none; box-shadow: var(--shadow-1);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; border-radius: var(--radius-pill); min-height: 44px; white-space: nowrap; background: transparent; color: var(--muted); padding: .4rem 1rem; }
.tabs button:hover:not(:disabled) { color: var(--ink); background: var(--surface-2); }
.tabs button[aria-pressed="true"], .tabs button[aria-pressed="true"]:hover { background: var(--red); color: var(--on-red); }

/* Backoffice: navegação lateral agrupada */
.bo-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.bo-nav { position: sticky; top: calc(var(--chrome-h) + 12px); display: grid; gap: .1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: .6rem; box-shadow: var(--shadow-1); max-height: calc(100dvh - var(--chrome-h) - 24px); overflow: auto; }
.bo-nav h4 { margin: .6rem .6rem .2rem; font: 800 .68rem var(--font-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--red-text); }
.bo-nav h4:first-child { margin-top: .2rem; }
.bo-nav button { justify-content: flex-start; border: 0; min-height: 42px; border-radius: 14px; background: transparent; font-weight: 700; color: var(--ink); padding: .35rem .7rem; text-align: left; }
.bo-nav button:hover:not(:disabled) { background: var(--surface-2); }
.bo-nav button[aria-pressed="true"] { background: var(--red); color: var(--white); }
.bo-content { min-width: 0; }
@media (max-width: 900px) {
  .bo-layout { grid-template-columns: 1fr; }
  .bo-nav { position: static; display: flex; overflow-x: auto; border-radius: var(--radius-pill); padding: .25rem; max-height: none; }
  .bo-nav h4 { display: none; }
  .bo-nav button { white-space: nowrap; border-radius: var(--radius-pill); flex: none; }
}
.yn { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }
.yn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.yn.yes::before { background: var(--ok); }

/* ------------------------------------------------------------------ Talão (impressão 80 mm) */
.receipt { font: 13px/1.4 var(--font-mono); max-width: 320px; margin: 0 auto; color: var(--paper-ink); background: var(--paper); padding: 1rem .9rem; border-radius: 6px; box-shadow: 0 0 0 1px var(--paper-line), 0 10px 24px rgb(0 0 0 / .08); position: relative; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px -2px, transparent 6px, var(--paper) 6.5px) 0 0 / 12px 8px repeat-x; }
.receipt .receipt-logo { display: block; width: 170px; height: auto; margin: 0 auto .4rem; }
.receipt h3 { text-align: center; font: 700 15px var(--font-mono); margin: 0; }
.receipt .center { text-align: center; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { vertical-align: top; padding: 1px 0; }
.receipt td.r { text-align: right; white-space: nowrap; padding-left: .5rem; }
.receipt hr { border: 0; border-top: 1px dashed var(--paper-ink); margin: .5rem 0; }
.receipt .qr { display: flex; justify-content: center; margin: .6rem 0; }
.receipt .receipt-at { margin-top: .5rem; border: 1px solid var(--paper-ink); padding: .25rem; text-align: center; font-weight: 700; }
.receipt .thanks { text-align: center; margin-top: .4rem; font-weight: 700; }
@media print {
  @page { size: 80mm auto; margin: 3mm; }
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; left: 0; top: 0; max-width: none; padding: 0; box-shadow: none; }
  .receipt::after { display: none; }
  .receipt .receipt-logo { filter: grayscale(1) contrast(1.4); }
  dialog { box-shadow: none; }
}

/* ------------------------------------------------------------------ Páginas públicas: menu QR, quiosque, levantamento */
.public { background: var(--bg); }
.pub-head {
  background: var(--red); color: var(--white); padding: .7rem 1rem; position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: .8rem; box-shadow: 0 2px 0 var(--red-deep);
}
.pub-head .badge-wrap { width: 54px; height: 54px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; box-shadow: 0 0 0 3px rgb(255 255 255 / .35); }
.pub-head .badge-wrap img { width: 50px; height: 50px; border-radius: 50%; }
.pub-head .pub-title { display: grid; grid-template-columns: minmax(0, 1fr); line-height: 1.1; min-width: 0; flex: 1 1 auto; }
.pub-head .pub-title strong { font: 600 1.3rem var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-head .pub-title span { font-weight: 700; opacity: .92; font-size: .9rem; }
.pub-head .table-pill { margin-left: auto; background: var(--white); color: var(--red-deep); font: 600 1rem var(--font-display); padding: .3rem .9rem; border-radius: var(--radius-pill); white-space: nowrap; }
.public main { padding: 1rem 1rem 8rem; max-width: 1100px; }
.pub-families { position: sticky; top: 74px; z-index: 5; background: var(--bg); padding: .6rem 0 .4rem; margin: -1rem 0 .5rem; }
.menu-family { scroll-margin-top: 140px; }
.menu-family h2 { display: flex; align-items: center; gap: .5rem; margin: 1.4rem 0 .6rem; font-size: 1.3rem; }
.menu-family h2 .fam-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--white); }
.menu-family h2 .fam-name { text-transform: lowercase; }
.menu-family h2 .fam-name::first-letter { text-transform: uppercase; }
.menu-item {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem .9rem; margin-bottom: .55rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-1);
}
.menu-item strong { font-size: 1.02rem; }
.menu-item .money { font: 600 1.15rem var(--font-display); color: var(--red-text); margin-top: .2rem; }
.menu-item .qty { display: flex; align-items: center; gap: .45rem; flex: none; }
.menu-item .qty span { font: 600 1.2rem var(--font-display); min-width: 1.2rem; text-align: center; }
.menu-item .qty button { width: 48px; height: 48px; min-width: 48px; padding: 0; border-radius: 50%; font-size: 1.4rem; }
.menu-item .qty button:last-child:not(:disabled) { background: var(--red); border-color: var(--red); color: var(--white); }
.menu-item.in-cart { border-color: var(--red); }
.order-card { border-radius: 26px; }
.order-card .menu-item { box-shadow: none; background: var(--surface-2); border: 0; }
.cart-bar {
  position: fixed; bottom: max(.9rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(720px, calc(100% - 1.5rem));
  padding: .55rem .6rem .55rem 1.2rem; background: var(--ink); color: var(--surface); border-radius: var(--radius-pill);
  display: flex; gap: .8rem; align-items: center; box-shadow: var(--shadow-pop); z-index: 15;
}
.cart-bar .money { font: 600 1.4rem var(--font-display); }
.cart-bar .muted { color: color-mix(in srgb, var(--surface) 70%, transparent); font-weight: 700; white-space: nowrap; }
.cart-bar button.primary { min-height: 56px; border-radius: var(--radius-pill); padding: .5rem 1.5rem; font: 600 1.15rem var(--font-display); }
.cart-bar .cart-count { background: var(--red); color: var(--white); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font: 600 .95rem var(--font-display); }
.cart-bar.tick .cart-count { animation: tick 220ms var(--ease-pop); }
.public .at-notice { border-radius: 16px; margin: 1.5rem 0 0; border: 0; }

/* Quiosque */
.kiosk main { max-width: 1400px; }
.kiosk .families button { min-height: 64px; font-size: 1.05rem; padding-right: 1.3rem; }
.kiosk .families button .fam-ico { width: 46px; height: 46px; }
.kiosk .products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.kiosk .products button { min-height: 190px; border-radius: 28px; padding: 1rem; grid-template-rows: auto 1fr auto; }
.kiosk .products button .tile-ico { width: 64px; height: 64px; }
.kiosk .products button .tile-ico .ico { width: 34px; height: 34px; }
.kiosk .products button .tile-name { font-size: 1.15rem; }
.kiosk .products button .price { font-size: 1.45rem; color: var(--red-text); }
.kiosk .products button .in-cart-badge { position: absolute; top: .7rem; right: .7rem; background: var(--red); color: var(--white); border-radius: var(--radius-pill); font: 600 1rem var(--font-display); padding: .1rem .6rem; }
.attract {
  position: fixed; inset: 0; z-index: 60; background: var(--red); color: var(--white); display: grid; place-items: center; align-content: center; gap: 1.4rem; text-align: center; padding: 2rem;
  overflow: hidden; isolation: isolate; cursor: pointer;
}
.attract::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; border-radius: 50%; border: 80px solid rgb(255 255 255 / .07); }
.attract .logo-plate { background: var(--white); border-radius: 40px; padding: 1.2rem 1.8rem; box-shadow: 0 0 0 8px rgb(255 255 255 / .25); }
.attract .logo-plate img { width: min(460px, 70vw); height: auto; display: block; }
.attract h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; }
.attract h1::after { display: none; }
.attract p { font-weight: 700; font-size: 1.15rem; margin: 0; opacity: .95; }
.attract .start { background: var(--white); color: var(--red-deep); border: 0; min-height: 76px; padding: .6rem 2.6rem; border-radius: var(--radius-pill); font: 600 1.6rem var(--font-display); box-shadow: 0 10px 30px rgb(0 0 0 / .2); animation: breathe 1.8s ease-in-out infinite; }
.attract .at-notice { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; }
@keyframes breathe { 50% { transform: scale(1.05); } }
.big-number { font: 700 clamp(4.5rem, 14vw, 7rem)/1 var(--font-display); color: var(--red); margin: .2rem 0; }

/* Ecrã de levantamento */
.pickup-page { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto auto; background: var(--surface); }
.pickup-head { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.5rem; border-bottom: 1px solid var(--line); }
.pickup-head img { height: 64px; width: auto; }
.pickup-head .clock { margin-left: auto; font: 600 2rem var(--font-display); font-variant-numeric: tabular-nums; }
.pickup-board { display: grid; grid-template-columns: 1fr 1.25fr; min-height: 0; }
.pickup-board section { padding: 1.5rem 2rem; }
.pickup-board h1 { font-size: clamp(1.6rem, 3vw, 2.6rem); display: flex; align-items: center; gap: .6rem; }
.pickup-board h1::after { display: none; }
.pickup-board section:first-child { background: var(--surface-2); }
.pickup-board section:last-child { background: var(--red); color: var(--white); }
.pickup-board .numbers { display: flex; flex-wrap: wrap; gap: 1rem; align-content: flex-start; }
.pickup-board .numbers > span {
  font: 600 clamp(2.4rem, 6vw, 4.6rem)/1 var(--font-display); font-variant-numeric: tabular-nums; min-width: 2.2em; text-align: center;
  padding: .35em .45em; border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1);
}
.pickup-board section:last-child .numbers > span { background: var(--white); color: var(--red-deep); box-shadow: 0 0 0 5px rgb(255 255 255 / .3); }
.pickup-board .numbers > span.new { animation: ready-pop 700ms var(--ease-pop) 2; }
@keyframes ready-pop { 40% { transform: scale(1.18) rotate(-3deg); } }
.pickup-board .numbers > span.num-eta { display: inline-grid; justify-items: center; gap: .15em; }
.pickup-board .numbers > span.num-eta small { font: 700 clamp(.8rem, 1.4vw, 1.05rem) var(--font-ui); color: var(--muted); }
.pickup-head .pickup-wait { margin-left: auto; font-size: clamp(.95rem, 1.6vw, 1.25rem); }
.pickup-head .pickup-wait + .clock { margin-left: .5rem; }
.cart-bar .wait-chip { font-size: .85rem; flex: none; }
@media (max-width: 480px) {
  .cart-bar .wait-chip small { display: none; }
  .cart-bar .wait-chip { padding: .25rem .55rem; gap: .25rem; }
  .cart-bar button.primary { padding: .5rem 1rem; font-size: 1.02rem; }
  .cart-bar .money { font-size: 1.2rem; }
}
.wait-line { margin: .6rem 0 0; }
.pickup-board .pickup-empty { font-size: 1.2rem; font-weight: 700; opacity: .8; }
.pickup-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1.5rem; border-top: 1px solid var(--line); }
.pickup-foot .at-notice { margin: 0; flex: 1; border: 0; border-radius: 14px; }
@media (max-width: 700px) {
  .pickup-board { grid-template-columns: 1fr; }
  .pickup-head img { height: 44px; }
  .pickup-head .clock { font-size: 1.4rem; }
  .pickup-head { flex-wrap: wrap; }
  .pickup-head .pickup-wait { order: 3; margin-left: 0; }
}


/* Tabelas soltas (fora de um cartão) ganham superfície própria */
.table-wrap { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.card .table-wrap, dialog .table-wrap { background: transparent; border: 0; box-shadow: none; border-radius: 12px; }
[hidden] { display: none !important; }
.pickup-board .empty-ready { display: flex; align-items: center; gap: 1rem; font-size: 1.2rem; font-weight: 700; }
.pickup-board .empty-ready .mascot { box-shadow: 0 0 0 5px rgb(255 255 255 / .35); }
/* Balão da mascote compacto dentro do talão (não esconde as linhas em ecrãs de 768–800 px) */
.ticket .poppy-balloon { gap: .45rem; }
.ticket .poppy-balloon .poppy-avatar { width: 38px; height: 38px; }
.ticket .poppy-balloon .bubble { padding: .5rem .7rem; border-radius: 18px; }
.ticket .poppy-balloon .bubble::before { top: 12px; }
.ticket .poppy-balloon strong { font-size: .95rem; }
.ticket .poppy-balloon p { font-size: .8rem; margin: .1rem 0 .35rem; }
.ticket .poppy-balloon .balloon-actions { gap: .3rem; }
.ticket .poppy-balloon .balloon-actions button { min-height: 40px; padding: .25rem .8rem; font-size: .85rem; white-space: nowrap; }
.ticket .poppy-balloon p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket .poppy-balloon .balloon-actions { align-items: center; flex-wrap: wrap; }
.ticket .poppy-balloon .balloon-actions details.why { margin: 0 0 0 .1rem; }
.ticket .poppy-balloon .balloon-actions details.why[open] { flex-basis: 100%; }
.ticket .poppy-balloon .balloon-more { margin-top: .3rem; display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ticket .poppy-balloon .balloon-more::-webkit-scrollbar { display: none; }
.ticket .poppy-balloon .balloon-more .chip { flex: 0 0 auto; white-space: nowrap; }
.ticket .poppy-balloon .balloon-more .chip { min-height: 34px; font-size: .78rem; padding: .15rem .65rem; }
.ticket .poppy-balloon details.why { display: inline-block; margin: .3rem 0 0 .4rem; vertical-align: middle; }
.at-short { display: none; }
@media (max-width: 600px) { .at-long { display: none; } .at-short { display: inline; } }
.celebrate { width: max-content; max-width: calc(100vw - 2rem); }
.celebrate strong, .celebrate span { white-space: nowrap; }
@media (max-width: 600px) {
  .kiosk .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .kiosk .products button { min-height: 160px; padding: .8rem; }
  .kiosk .products button .tile-ico { width: 48px; height: 48px; }
  .celebrate .mascot { width: 44px; height: 44px; }
  .celebrate strong { font-size: 1.1rem; }
}
/* Logótipo vermelho nunca direto sobre fundo escuro: placa branca (BRAND §2) */
:root[data-theme="dark"] .pickup-head img { background: var(--white); border-radius: 18px; padding: 4px 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pickup-head img { background: var(--white); border-radius: 18px; padding: 4px 10px; } }

/* Escolha de ficheiro (importação ZSBMS) */
.file-pick { position: relative; }
.file-pick .file-box { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .3rem .4rem; border: 1.5px dashed var(--line-strong); border-radius: 999px; background: var(--surface); cursor: pointer; text-transform: none; letter-spacing: 0; }
.file-pick .file-btn { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .9rem; border-radius: 999px; background: var(--red-tint); color: var(--red-text); font-weight: 800; font-size: .88rem; }
.file-pick .file-name { color: var(--muted); font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-pick:focus-within .file-box { outline: 3px solid var(--brand); outline-offset: 2px; }
.file-pick:hover .file-box { border-color: var(--brand); }

/* Pedido no telemóvel: barra fixa com o total por cima da navegação inferior */
.ticket-jump { display: none; }
@media (max-width: 820px) {
  .ticket-jump {
    display: flex; align-items: center; gap: .6rem; position: fixed; z-index: 25; left: .6rem; right: .6rem;
    bottom: calc(4.6rem + env(safe-area-inset-bottom)); padding: .45rem .5rem .45rem .7rem;
    background: var(--ink); color: var(--surface); border-radius: var(--radius-pill); box-shadow: var(--shadow-pop);
  }
  .ticket-jump .cart-count { background: var(--red); color: var(--white); border-radius: 50%; min-width: 30px; height: 30px; padding: 0 4px; display: grid; place-items: center; font: 600 .95rem var(--font-display); }
  .ticket-jump .jump-total { display: grid; line-height: 1.05; }
  .ticket-jump .jump-total .money { font: 600 1.3rem var(--font-display); }
  .ticket-jump .muted { color: color-mix(in srgb, var(--surface) 70%, transparent); font-weight: 700; font-size: .75rem; }
  .ticket-jump button { min-height: 48px; border-radius: var(--radius-pill); }
  .ticket-jump button.ghost { color: var(--surface); }
  .ticket-jump button.primary { padding: .4rem 1.1rem; font: 600 1.05rem var(--font-display); }
  .order-layout { padding-bottom: 4.5rem; }
  .ticket { scroll-margin-top: calc(var(--chrome-h, 100px) + .5rem); }
  /* Talão em gaveta: acima da barra de navegação e da barra fixa; a barra fixa fica visível por baixo. */
  .ticket.drawer { position: fixed; max-height: 86dvh; top: auto; overflow: auto; }
  .ticket-jump { touch-action: none; gap: .35rem; }
  .ticket-jump button { padding: .35rem .65rem; flex: none; }
  .ticket-jump button.primary { padding: .35rem .9rem; }
  .ticket-jump .jump-send { gap: .25rem; }
}
@media (max-width: 400px) {
  .ticket-jump button.primary .ico { display: none; }
  .ticket-jump .jump-total .money { font-size: 1.15rem; }
  .ticket-jump .jump-send .count { background: var(--red); color: var(--on-red); border-radius: var(--radius-pill); padding: 0 .4rem; font-size: .8rem; }
}
/* Telemóvel: o selo "pronto!" das mesas e as tabelas largas não podem criar scroll horizontal na página */
@media (max-width: 820px) {
  .floor .table, .floor .table.round { position: relative; left: auto !important; top: auto !important; }
  .floor .table .badge.ok { right: 2px; top: -10px; }
  .card > table.data, .opt-card > table.data { display: block; overflow-x: auto; max-width: 100%; }
}

/* ------------------------------------------------------------------ T6/P1a: catálogo oficial e venda
   Só estrutura (imagens, atalhos, favoritos, ficha do produto, grupo ativo do construtor); a camada visual
   final entra com os layouts. */
.products button .tile-img { grid-area: ico; width: 56px; height: 41px; object-fit: contain; border-radius: var(--radius-xs); background: var(--surface-2); }
.products button .hk { grid-area: price; justify-self: end; align-self: end; }
.products button .fav-mark { position: absolute; top: .45rem; right: .6rem; font-size: 1.25rem; color: var(--red-text); }
.kiosk .products button .tile-img { width: 100%; height: 96px; grid-column: 1 / -1; }
kbd.hk { font: 700 .7rem var(--font-mono); padding: .05rem .35rem; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); }
.pill kbd.hk { margin-right: .15rem; }
.opt-group.active { outline: 2px dashed var(--red); outline-offset: 4px; border-radius: var(--radius-sm); }
.product-card { display: flex; gap: .8rem; align-items: flex-start; padding-bottom: .4rem; border-bottom: 1px dashed var(--line); }
.product-card img { width: 120px; height: auto; max-height: 96px; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface-2); flex: none; }
.product-card p { margin: .2rem 0 0; }
.badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.badge-pill { font-size: .72rem; font-weight: 800; padding: .1rem .55rem; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--ink); }
.badge-pill.proteina { background: var(--red-tint); color: var(--red-text); }
.assembly summary { cursor: pointer; font-weight: 800; font-size: .85rem; margin-top: .3rem; }
.assembly ol { margin: .3rem 0 0; padding-left: 1.3rem; font-size: .85rem; }
.pub-search-wrap { position: relative; margin: .6rem 0 .2rem; }
.pub-search-wrap .ico { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pub-search { width: 100%; padding-left: 2.8rem; min-height: 52px; border-radius: var(--radius-pill); }
.pub-thumb { width: 64px; height: auto; max-height: 52px; object-fit: contain; flex: none; border-radius: var(--radius-xs); }
.menu-item .mi-body { flex: 1; min-width: 0; }
.upsell-offer { display: grid; justify-items: center; gap: .5rem; text-align: center; }
.upsell-offer img, .upsell-offer .pub-thumb { width: 160px; height: auto; max-height: 120px; }
.catalog-reviews td { vertical-align: top; }
.catalog-reviews .muted { font-size: .8rem; }
@media (max-width: 600px) {
  .product-card { flex-direction: column; }
  .product-card img { width: 100%; max-height: 120px; }
}

/* ------------------------------------------------------------------ Canal do consumidor (consumer.js) */
.pub-head .pub-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex: none; }
.pub-head .pub-right .table-pill { margin-left: 0; }
.acc-btn {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .3rem .85rem; border-radius: var(--radius-pill);
  background: rgb(255 255 255 / .16); color: var(--white); border: 1.5px solid rgb(255 255 255 / .55); font-weight: 800; text-decoration: none; white-space: nowrap;
}
.acc-btn:hover { background: rgb(255 255 255 / .26); }
@media (max-width: 480px) { .acc-btn span { display: none; } .acc-btn { padding: .3rem .6rem; } }

.banners { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem .1rem .6rem; margin-bottom: .6rem; overscroll-behavior-x: contain; }
.banner {
  scroll-snap-align: start; display: grid; grid-template-columns: 110px 1fr; gap: .8rem; align-items: center; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: .7rem; box-shadow: var(--shadow-1);
}
.banner img { width: 110px; height: 88px; object-fit: cover; border-radius: 18px; background: var(--surface-2); }
.banner .banner-ico { width: 110px; height: 88px; border-radius: 18px; display: grid; place-items: center; background: var(--red); color: var(--white); }
.banner-body { display: grid; gap: .2rem; min-width: 0; }
.banner-body strong { font: 600 1.1rem/1.15 var(--font-display); }
.banner-body > span:not(.banner-tag) { color: var(--muted); font-size: .9rem; font-weight: 600; }
.banner-body button { justify-self: start; min-height: 44px; border-radius: var(--radius-pill); padding: .3rem 1rem; margin-top: .2rem; }
.banner-tag { justify-self: start; background: var(--red); color: var(--white); font: 600 .78rem var(--font-display); padding: .1rem .6rem; border-radius: var(--radius-pill); letter-spacing: .02em; }
.banner-franquia { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.banner-franquia .banner-body > span:not(.banner-tag) { color: color-mix(in srgb, var(--surface) 75%, transparent); }
.kiosk .banners { grid-auto-columns: minmax(340px, 1fr); }
.link-card .link-url { font: 600 1.2rem var(--font-display); word-break: break-all; color: var(--red-text); }

.franchise-cta {
  display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; margin: 1rem 0; border-radius: 22px;
  background: var(--ink); color: var(--surface);
}
.franchise-cta > div { display: grid; min-width: 0; flex: 1; }
.franchise-cta strong { font: 600 1.1rem var(--font-display); }
.franchise-cta span:not(.fc-ico) { opacity: .8; font-weight: 600; font-size: .9rem; }
.franchise-cta .fc-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; flex: none; }
.franchise-cta button { background: var(--white); color: var(--red-deep); border: 0; border-radius: var(--radius-pill); min-height: 44px; padding: .3rem 1rem; font-weight: 800; flex: none; }
.franchise-cta.compact { margin: .8rem 0 0; padding: .5rem .7rem; text-align: left; width: 100%; }
.franchise-cta.compact .fc-ico { width: 34px; height: 34px; }
.after-order .franchise-cta { margin-top: 0; }
.pub-foot { margin-top: 1.5rem; }

.sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 520px) { .sheet .two { grid-template-columns: 1fr; } }
.check-row { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 600; margin-top: .3rem; }
.check-row input.check, input.check { width: 22px; height: 22px; min-height: 0; flex: none; margin-top: .1rem; accent-color: var(--red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seg-tabs { display: flex; gap: .3rem; background: var(--surface-2); padding: .25rem; border-radius: var(--radius-pill); }
.seg-tabs button { flex: 1; min-height: 44px; border: 0; background: transparent; border-radius: var(--radius-pill); font-weight: 800; }
.seg-tabs button[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-1); color: var(--red-text); }
.linkish { background: none; border: 0; color: var(--red-text); font-weight: 800; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem 0; min-height: 44px; justify-self: start; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .5rem 1.4rem; border-radius: var(--radius-pill); background: var(--red); color: var(--white); font: 600 1.1rem var(--font-display); text-decoration: none; margin-top: 1rem; }
.track-link { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; margin-bottom: .8rem; border-radius: 18px; background: var(--red-tint); color: var(--red-text); font-weight: 800; text-decoration: none; }

.account .acc-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.account .acc-head > div:first-child { display: grid; }
.acc-points { display: grid; justify-items: end; text-align: right; }
.acc-points strong { font: 700 2rem/1 var(--font-display); color: var(--red-text); }
.acc-stamps { display: grid; gap: .3rem; background: var(--surface-2); border-radius: 18px; padding: .6rem .8rem; margin-top: .5rem; font-weight: 700; }
.stamps { display: flex; gap: .35rem; flex-wrap: wrap; }
.stamps span { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--line-strong); display: grid; place-items: center; }
.stamps span.on { background: var(--red); border: 2px solid var(--red); color: var(--white); }
.usual { display: flex; gap: .8rem; justify-content: space-between; align-items: center; background: var(--red-tint); border-radius: 18px; padding: .6rem .8rem; margin-top: .5rem; }
.usual > div { display: grid; min-width: 0; }
.usual button { flex: none; }
.coupon-list, .history, .track-items { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.coupon-list li, .history li { display: flex; gap: .7rem; align-items: center; justify-content: space-between; padding: .55rem .7rem; border-radius: 16px; background: var(--surface-2); }
.coupon-list li > div, .history li > div { display: grid; min-width: 0; }
.coupon-list li.off { opacity: .75; }
.coupon-list li button, .history li button { flex: none; min-height: 40px; border-radius: var(--radius-pill); padding: .2rem .9rem; }
.history .money { font: 600 1rem var(--font-display); white-space: nowrap; }
.warn-text { color: var(--warn); font-weight: 700; }
.danger-text { color: var(--red-text) !important; }
.fav-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.fav { display: grid; justify-items: center; gap: .2rem; min-width: 96px; max-width: 120px; padding: .4rem; border-radius: 16px; font-size: .85rem; font-weight: 700; }
.fav img { width: 56px; height: 41px; object-fit: cover; border-radius: 10px; }

.coupon-field label { display: grid; gap: .3rem; }
.coupon-field .row.nowrap { display: flex; gap: .4rem; flex-wrap: nowrap; }
.coupon-field input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-chips { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: .3rem; }
.coupon-msg { margin: .2rem 0 0; min-height: 1.2em; font-weight: 800; }
.coupon-msg.good, .sheet-line.good { color: var(--ok); }
.coupon-msg.bad, .small.bad { color: var(--red-text); }
.sheet-line { display: flex; justify-content: space-between; gap: .8rem; font-weight: 700; padding: .15rem 0; }
.quote { display: grid; gap: .1rem; border-top: 1px dashed var(--line-strong); padding-top: .4rem; margin-top: .3rem; }
.quote p { margin: .2rem 0 0; display: flex; align-items: center; gap: .3rem; }

.track { max-width: 640px !important; margin: 0 auto; }
.track-card { border-radius: 28px; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.track-head .big-number { font-size: clamp(3rem, 12vw, 4.5rem); }
.track .eta { display: grid; justify-items: end; text-align: right; }
.track .eta strong { font: 600 1.6rem var(--font-display); }
.steps { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .1rem; }
.steps li { display: grid; grid-template-columns: 30px 1fr auto; gap: .6rem; align-items: center; padding: .35rem 0; color: var(--muted); font-weight: 700; position: relative; }
.steps li .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; background: var(--surface); }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--ok); border-color: var(--ok); color: var(--white); }
.track-items li { display: flex; justify-content: space-between; gap: .8rem; font-weight: 600; }
.franchise-page { max-width: 720px !important; margin: 0 auto; }

.pickup-promo { border-top: 1px solid var(--line); background: var(--ink); color: var(--surface); padding: .8rem 1.5rem; min-height: 140px; display: grid; align-items: center; }
.promo-slide { display: flex; gap: 1.4rem; align-items: center; animation: dlg-in 300ms var(--ease-out); }
.promo-slide img { width: 200px; height: 120px; object-fit: cover; border-radius: 22px; }
.promo-slide .banner-ico { width: 120px; height: 120px; border-radius: 22px; display: grid; place-items: center; background: var(--red); color: var(--white); flex: none; }
.promo-slide > div { display: grid; gap: .2rem; }
.promo-slide strong { font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--font-display); }
.promo-slide span:not(.banner-tag) { font-size: 1.15rem; opacity: .85; font-weight: 600; }
.promo-slide em { font: 600 1.3rem var(--font-display); font-style: normal; color: var(--warn-strong); }
@media (prefers-reduced-motion: reduce) { .promo-slide { animation: none; } }

/* Delivery: fotos maiores (catálogo oficial) */
.delivery .menu-item .pub-thumb { width: 88px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; }

/* Canal do consumidor no POS: delivery, talão "próxima visita", backoffice */
.delivery-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; align-items: start; margin-top: .6rem; }
@media (max-width: 1000px) { .delivery-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .delivery-cols { grid-template-columns: minmax(0, 1fr); } }
.dl-col { background: var(--surface-2); border-radius: 22px; padding: .6rem; min-width: 0; display: grid; gap: .6rem; align-content: start; }
.dl-col h2 { font-size: 1.05rem; margin: .2rem .3rem; display: flex; align-items: center; gap: .4rem; }
.dl-col h2::after { display: none; }
.dl-card { display: grid; gap: .35rem; padding: .8rem .9rem; margin: 0 !important; }
.dl-card.late { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-tint); }
.dl-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.dl-num { font: 600 1.5rem/1 var(--font-display); color: var(--red-text); }
.dl-items { margin: 0; padding-left: 1.1rem; font-weight: 600; }
.dl-card .row { gap: .4rem; flex-wrap: wrap; }
.dl-card button { min-height: 44px; }
.receipt .next-visit { margin-top: .6rem; border: 2px dashed var(--paper-ink); padding: .45rem; text-align: center; display: grid; gap: .15rem; }
.receipt .next-visit .nv-code { font: 700 1.3rem var(--font-mono); letter-spacing: .12em; }
pre.codes { font: 600 1rem var(--font-mono); background: var(--surface-2); padding: .8rem; border-radius: 12px; max-height: 50vh; overflow: auto; }
.nowrap-btns { flex-wrap: wrap; gap: .3rem; }
.seg-card small { display: block; }
.origin-banner.demo { background: var(--warn-tint); color: var(--warn); padding: .5rem .8rem; border-radius: 14px; }
.check-row span { text-transform: none; letter-spacing: 0; color: var(--ink); font-size: .95rem; font-weight: 600; }
@media (max-width: 600px) { .banners { grid-auto-columns: 86%; } .banner { grid-template-columns: 96px 1fr; } .banner img, .banner .banner-ico { width: 96px; height: 76px; } }
.banner img { object-fit: contain; }
.banner-body button { white-space: nowrap; }
.small.good { color: var(--ok); font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }

/* ------------------------------------------------------------------ Consola da cadeia (sede) e vista da loja */
.chain-head { margin-bottom: .3rem; }
.chain-head h1 { margin: 0; }
.chain-filters { gap: .6rem; margin-bottom: .4rem; }
.chain-filters .tabs { margin-bottom: .4rem; }
.chain-compare td { white-space: nowrap; }
.chain-compare td:first-child { white-space: normal; min-width: 11rem; }
.chain-rank { margin-left: .2rem; font-size: .66rem; }
.chain-compare .chain-rank { display: flex; width: fit-content; margin: .15rem 0 0 auto; }
.chain-store-cards { display: none; gap: .8rem; }
.chain-store-cards > .card + .card { margin-top: 0; }
.chain-store-cards h3 { margin: 0; font-size: 1rem; }
@media (max-width: 760px) { .chain-compare-card { display: none; } .chain-store-cards { display: grid; } }
.chain-notes { margin: .8rem 0 0; padding-left: 1.1rem; display: grid; gap: .2rem; }
.chain-kind p { margin: .3rem 0; }
.chain-kind button { margin-top: .5rem; }
.chain-diff { max-height: 14rem; overflow: auto; margin: .2rem 0; padding-left: 1.1rem; }
.chain-draft fieldset, .grid-form fieldset { border: 1px solid var(--line); border-radius: 16px; padding: .5rem .8rem .7rem; margin: 0; min-width: 0; }
.chain-draft legend, .grid-form legend { font-weight: 800; font-size: .8rem; padding: 0 .3rem; }
.chain-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: .1rem .8rem; }
.chain-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }
.chain-calendar > .card + .card { margin-top: 0; }
.chain-day { padding: .7rem .75rem; border-radius: 18px; display: grid; gap: .35rem; align-content: start; min-height: 9rem; }
.chain-day p { margin: 0; }
.chain-day .chips { gap: .25rem; }
.chain-day .chip { font-size: .72rem; min-height: 0; padding: .15rem .5rem; }
.chain-day.weekend { background: var(--surface-2); }
.chain-day.missing { border-color: var(--warn-strong); }
.chain-day-head { display: flex; align-items: center; justify-content: space-between; gap: .3rem; text-transform: capitalize; }
.chain-daily { font-weight: 700; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.chain-day button { justify-self: start; min-height: 36px; padding: .2rem .6rem; }
.chain-dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .4rem 0 .6rem; font-size: .88rem; }
.chain-dl dt { color: var(--muted); }
.chain-dl dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.chain-store h2 { margin: 0; font-size: 1.05rem; }
.chain-conflicts { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.chain-conflicts li { border-bottom: 1px solid var(--line); padding-bottom: .6rem; }
.chain-conflicts p { margin: .2rem 0; }
.chain-token { white-space: pre-wrap; word-break: break-all; background: var(--surface-2); border-radius: 12px; padding: .7rem .8rem; font-size: .85rem; user-select: all; }
.chain-login-form { display: grid; gap: .6rem; }
.row > .button-link { margin-top: 0; min-height: 44px; font-size: 1rem; }
.chain-login-form input { text-align: center; }
@media (max-width: 1100px) { .chain-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .chain-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .chain-calendar { grid-template-columns: minmax(0, 1fr); } .chain-day { min-height: 0; } }
