/* ---------- Tokens partilhados ---------- */
:root {
  color-scheme: light;
  --ok: #2e7a4a;
  --ok-bg: #e5f3ea;
  --warn: #9a6212;
  --warn-bg: #fbf0dc;
  --full: #b42318;
  --full-bg: #fbe7e5;
  --closed: #7a808c;
  --closed-bg: #eeeeec;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Página do cliente: as cores da casa (antracite, dourado e vermelho) */
body[data-page="cliente"] {
  --paper: #f6f3ee;
  --card: #ffffff;
  --ink: #1f2023;
  --muted: #5d5f66;
  --line: #e3ddd2;
  --char: #2c2d31;
  --gold: #c9a13b;
  --gold-ink: #8a6a1c;
  --primary: #c62828;
  --primary-hover: #a61f1f;
  --primary-ink: #a61f1f;
  --soft: #f5eedc;
  --sel: #2c2d31;
  --heading: var(--serif);
  --radius: 14px;
  --r-sm: 10px;
}

/* Painel do restaurante: neutro, como os sistemas de reservas do mercado */
body[data-page="gestao"] {
  --paper: #f3f4f6;
  --card: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-ink: #1d4ed8;
  --soft: #eff4ff;
  --sel: #2563eb;
  --heading: var(--sans);
  --radius: 10px;
  --r-sm: 8px;
  --ok-bg: #ecfdf3;
  --ok: #067647;
  --warn-bg: #fffaeb;
  --warn: #b54708;
  --full-bg: #fef3f2;
  --full: #b42318;
  --closed-bg: #f2f4f7;
  --closed: #667085;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary-ink); }
:focus-visible { outline: 3px solid var(--gold, var(--primary)); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Faixa da demonstração */
.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 8px 16px;
  background: #111214; color: #e9e6df;
  font-size: 13px;
}
.demo-bar strong { color: #fff; font-weight: 600; }
.demo-bar nav { display: flex; gap: 4px; }
.demo-bar nav a {
  color: #e9e6df; text-decoration: none;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
}
.demo-bar nav a[aria-current="page"] { background: #e9e6df; color: #111214; border-color: #e9e6df; }

/* ---------- Cliente: cabeçalho com fotografia ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 44px 16px 84px;
  background-color: var(--char);
  background-image:
    linear-gradient(180deg, rgba(22,22,25,.55) 0%, rgba(22,22,25,.78) 60%, rgba(22,22,25,.92) 100%),
    url("img/hero-900.jpg");
  background-image:
    linear-gradient(180deg, rgba(22,22,25,.55) 0%, rgba(22,22,25,.78) 60%, rgba(22,22,25,.92) 100%),
    image-set(url("img/hero-900.avif") type("image/avif"), url("img/hero-900.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 40%;
}
@media (min-width: 900px) {
  .hero {
    padding: 72px 16px 110px;
    background-image:
      linear-gradient(90deg, rgba(22,22,25,.9) 0%, rgba(22,22,25,.72) 45%, rgba(22,22,25,.25) 100%),
      url("img/hero-1600.jpg");
    background-image:
      linear-gradient(90deg, rgba(22,22,25,.9) 0%, rgba(22,22,25,.72) 45%, rgba(22,22,25,.25) 100%),
      image-set(url("img/hero-1600.avif") type("image/avif"), url("img/hero-1600.jpg") type("image/jpeg"));
  }
}
.hero-inner { max-width: 960px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.hero .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero h1 { margin: 0; font: 600 clamp(40px, 11vw, 72px)/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.hero .claim { margin: 18px 0 0; max-width: 30ch; font: 400 clamp(20px, 4.6vw, 28px)/1.3 var(--serif); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.hero .cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero .cta .btn.ghost:hover { background: rgba(255,255,255,.1); }
.hero .meta { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #e4e1da; }
.hero small { display: block; margin-top: 6px; font-size: 12px; color: #bdb9b0; }

main { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; position: relative; }
body[data-page="cliente"] main { margin-top: -52px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  margin-bottom: 16px;
}
body[data-page="cliente"] .panel { box-shadow: 0 14px 34px -20px rgba(20, 20, 24, .45); }
body[data-page="cliente"] #app { border-top: 4px solid var(--primary); scroll-margin-top: 16px; }
@media (min-width: 640px) { .panel { padding: 24px; } }

.step { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.step h2 { margin: 0 0 12px; font: 600 19px/1.3 var(--heading); display: flex; gap: 10px; align-items: baseline; }
.step h2 .n {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--char, var(--primary)); color: var(--gold, #fff); font: 700 14px/1 var(--sans);
}
.hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* Pessoas */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 48px; height: 48px; border: 0; background: var(--soft); color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper button:disabled { opacity: .4; cursor: default; }
.stepper output { min-width: 110px; text-align: center; font-weight: 600; }

/* Dias */
.days {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 8px;
  overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.day {
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 8px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--card); cursor: pointer; text-align: center;
}
.day .wd { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.day .dn { font: 600 22px/1.1 var(--heading); }
.day .mo { font-size: 12px; color: var(--muted); }
.day .dots { display: flex; gap: 4px; margin-top: 6px; }
.day .dots span { font-size: 10px; font-weight: 700; width: 20px; height: 18px; border-radius: 5px; display: grid; place-items: center; }
.day[aria-pressed="true"] { border-color: var(--sel); background: var(--soft); box-shadow: inset 0 0 0 1px var(--sel); }
.day.is-closed { background: var(--closed-bg); }
.day.is-closed .dn { color: var(--closed); }

.s-livre { background: var(--ok-bg); color: var(--ok); }
.s-poucos { background: var(--warn-bg); color: var(--warn); }
.s-lotado { background: var(--full-bg); color: var(--full); }
.s-fechado { background: var(--closed-bg); color: var(--closed); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Turnos */
.shifts { display: grid; gap: 10px; }
@media (min-width: 560px) { .shifts { grid-template-columns: 1fr 1fr; } }
.shift {
  text-align: left; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: var(--card); cursor: pointer; display: grid; gap: 4px;
}
.shift strong { font: 600 18px/1.2 var(--heading); }
.shift .when { color: var(--muted); font-size: 14px; }
.shift .badge { justify-self: start; }
.shift[aria-pressed="true"] { border-color: var(--sel); background: var(--soft); box-shadow: inset 0 0 0 1px var(--sel); }
.shift:disabled { cursor: default; opacity: .75; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* Horas */
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time {
  padding: 10px 6px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card);
  cursor: pointer; display: grid; gap: 2px; text-align: center;
}
.time b { font-size: 17px; }
.time span { font-size: 12px; color: var(--muted); }
.time[aria-pressed="true"] { border-color: var(--sel); background: var(--sel); color: #fff; }
.time[aria-pressed="true"] span { color: rgba(255,255,255,.8); }
.time:disabled { cursor: default; background: #f4f2ee; color: #9aa0aa; text-decoration: line-through; }
.time:disabled span { text-decoration: none; }

/* Lotado */
.full-box { border-radius: var(--r-sm); padding: 16px; background: var(--full-bg); border: 1px solid #f1c3be; }
.full-box h3 { margin: 0 0 6px; font: 600 18px/1.3 var(--heading); color: var(--full); }
.full-box p { margin: 0 0 12px; }
.full-box .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Formulários */
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sel); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--primary-hover); }
.btn.secondary { background: var(--card); color: var(--primary-ink); border-color: currentColor; }
.btn.secondary:hover { background: var(--soft); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: var(--card); color: var(--full); border-color: #efb8b2; }
.btn.danger:hover { background: var(--full-bg); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
body[data-page="gestao"] .btn { border-radius: 8px; min-height: 40px; }
body[data-page="gestao"] .btn.small { min-height: 32px; }

.summary {
  display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 14px; margin-bottom: 14px;
  border-radius: var(--r-sm); background: var(--soft); color: var(--ink); font-weight: 600;
  border-left: 4px solid var(--gold, var(--primary));
}

/* Confirmação */
.done { text-align: center; padding: 8px 0; }
.done .tick { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 28px; }
.done h2 { margin: 0 0 6px; font: 600 24px/1.2 var(--heading); }
.done .code { display: inline-block; margin: 10px 0; padding: 6px 14px; border-radius: 8px; border: 1.5px dashed var(--gold-ink, var(--primary)); font: 700 20px/1.2 ui-monospace, Menlo, monospace; color: var(--ink); letter-spacing: .06em; }
.done p { margin: 6px 0; }
.done .note { color: var(--muted); font-size: 14px; }

/* ---------- Cliente: secções da casa ---------- */
.panel.sala { display: grid; overflow: hidden; padding: 0; }
@media (min-width: 720px) { .panel.sala { grid-template-columns: 1fr 1.1fr; } }
.sala picture { display: block; }
.sala img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 720px) { .sala img { aspect-ratio: auto; min-height: 380px; } }
.sala .txt { padding: 22px 18px; align-self: center; }
@media (min-width: 720px) { .sala .txt { padding: 32px; } }
.kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; }
.sala h2, .sabores h2, .how h2 { margin: 0 0 10px; font: 600 clamp(22px, 5vw, 28px)/1.2 var(--serif); }
.sala p { margin: 0 0 10px; color: var(--muted); }
.jogo {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px;
  border-radius: var(--r-sm); background: var(--soft); border-left: 4px solid var(--primary); font-size: 15px;
}
.jogo .ico { flex: none; font-size: 22px; line-height: 1.2; }
.jogo b { display: block; }

/* Azulejo em linhas douradas sobre antracite: Portugal + as cores da casa */
.panel.sabores {
  color: #f1ede4; border-color: var(--char);
  background-color: var(--char);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9a13b' stroke-opacity='.22' stroke-width='1.2'%3E%3Cpath d='M0 0h64v64H0z'/%3E%3Cpath d='M32 6c7 9 7 17 0 26-7-9-7-17 0-26zM32 58c7-9 7-17 0-26-7 9-7 17 0 26zM6 32c9-7 17-7 26 0-9 7-17 7-26 0zM58 32c-9-7-17-7-26 0 9 7 17 7 26 0z'/%3E%3Ccircle cx='32' cy='32' r='4.5'/%3E%3Cpath d='M0 12A12 12 0 0 0 12 0M52 0a12 12 0 0 0 12 12M64 52a12 12 0 0 0-12 12M12 64A12 12 0 0 0 0 52'/%3E%3C/g%3E%3C/svg%3E");
}
.sabores .kicker { color: var(--gold); }
.sabores > p { margin: 0 0 16px; color: #cfcac0; max-width: 60ch; }
.sabores ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .sabores ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .sabores ul { grid-template-columns: repeat(3, 1fr); } }
.sabores li {
  padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(20,20,22,.78); border: 1px solid rgba(201,161,59,.35);
}
.sabores li b { display: block; font: 600 18px/1.25 var(--serif); color: #fff; }
.sabores li span { font-size: 14px; color: #c4bfb5; }
.sabores .fine { margin: 14px 0 0; font-size: 12px; color: #a9a49a; }

.how ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .how ul { grid-template-columns: repeat(3, 1fr); } }
.how li { padding: 14px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); font-size: 14px; }
.how li b { display: block; margin-bottom: 4px; font-size: 15px; }

footer { max-width: 960px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Painel do restaurante ---------- */
.appbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.appbar .logo {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: #1f2023; color: #c9a13b; font: 700 15px/1 var(--serif);
}
.appbar b { font-weight: 700; }
.appbar span { color: var(--muted); }
.appbar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.appbar .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px #d1fadf; }

.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-head h1 { margin: 0; font: 700 22px/1.2 var(--heading); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0 0; }
.stat { padding: 12px 14px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font: 700 24px/1.1 var(--heading); }
.stat span { font-size: 13px; color: var(--muted); }
.stat.hl { background: var(--ok-bg); border-color: #abefc6; }
.stat.hl b { color: var(--ok); }

.shift-block { margin-top: 18px; }
.shift-block header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.shift-block h2 { margin: 0; font: 700 17px/1.2 var(--heading); }
.meter { height: 8px; border-radius: 999px; background: #eaecf0; overflow: hidden; margin: 6px 0 12px; }
.meter i { display: block; height: 100%; background: #12b76a; }
.meter.poucos i { background: #f79009; }
.meter.lotado i { background: #f04438; }

.res-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.res {
  display: grid; grid-template-columns: 58px 1fr; gap: 4px 12px; align-items: start;
  padding: 10px 12px; background: var(--card); border-bottom: 1px solid var(--line);
}
.res:last-child { border-bottom: 0; }
.res .t { font: 700 16px/1.4 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.res .who { font-weight: 600; }
.res .info { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.res .note { display: inline-block; font-size: 13px; background: var(--warn-bg); color: #93370d; padding: 3px 8px; border-radius: 6px; margin-top: 4px; }
.res .acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.res .acts .btn { min-height: 32px; padding: 0 12px; }
@media (min-width: 640px) {
  .res { grid-template-columns: 58px 1fr auto; align-items: center; }
  .res .acts { grid-column: 3; grid-row: 1; margin-top: 0; }
}
.res.chegou { background: #f6fef9; }
.res.cancelada { opacity: .55; }
.res.cancelada .who { text-decoration: line-through; }
.src { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; }
.src-online { background: #ecfdf3; color: #067647; }
.src-telefone { background: #eff4ff; color: #1d4ed8; }
.src-messenger { background: #f4f3ff; color: #5925dc; }
.empty { color: var(--muted); font-size: 14px; padding: 10px 0; }
.wait { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--card); border: 1px dashed #d0d5dd; font-size: 14px; }
.wait h3 { margin: 0 0 6px; font-size: 14px; }
.wait ul { margin: 0; padding-left: 18px; }

.closed-box { padding: 14px; border-radius: var(--r-sm); background: var(--closed-bg); color: var(--closed); font-weight: 600; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.settings { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.settings .field { margin: 0; }
.settings .field input { width: 110px; }

dialog {
  width: min(520px, calc(100vw - 32px)); border: 0; border-radius: var(--radius); padding: 20px 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
@media (min-width: 640px) { dialog { padding: 24px; } }
dialog::backdrop { background: rgba(16, 24, 40, .5); }
dialog h2 { margin: 0 0 14px; font: 700 19px/1.2 var(--heading); }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.form-error { color: var(--full); font-size: 14px; margin: 0 0 10px; }
.form-error:empty { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px);
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: #111827; color: #fff; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.protect { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Bufê do dia ---------- */
.bufe h2 { margin: 0 0 14px; font: 600 clamp(22px, 5vw, 28px)/1.2 var(--serif); }
.bufe-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px; }
.bufe-tabs button {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: 14px;
}
.bufe-tabs button[aria-pressed="true"] { background: var(--sel); border-color: var(--sel); color: #fff; }
.menu-card {
  position: relative; overflow: hidden; max-width: 460px; padding: 22px 22px 18px;
  border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 24px -18px rgba(0,0,0,.4);
}
.menu-card::before {
  content: ""; position: absolute; left: -40px; top: -20px; width: 160px; height: 160px;
  background: #ececec; transform: rotate(45deg); z-index: 0;
}
.menu-card > * { position: relative; }
.menu-card .brand { display: block; font: 800 15px/1 var(--sans); }
.menu-card .script { display: block; margin: 2px 0 0 90px; font: italic 500 32px/1.1 var(--serif); }
.menu-card .script.dname { margin: 6px 0 14px 110px; font-size: 26px; }
.menu-card ul { list-style: none; margin: 0; padding: 0; }
.menu-card li { font: 800 19px/1.35 var(--sans); letter-spacing: -.01em; }
.menu-img { display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: zoom-in; overflow: hidden; max-width: 460px; width: 100%; }
.menu-img img { display: block; width: 100%; max-height: 520px; object-fit: contain; }
.menu-img.open { max-width: none; cursor: zoom-out; }
.menu-img.open img { max-height: none; }
.bufe-note { margin: 12px 0 14px; font-size: 13px; color: var(--muted); }

.closure-banner {
  margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--closed-bg); border-left: 4px solid var(--gold, var(--closed)); font-size: 15px;
}

/* ---------- Painel: férias e bufê ---------- */
.panel-h { margin: 0 0 12px; font: 700 17px/1.2 var(--heading); }
.closure-grid { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .closure-grid { grid-template-columns: 1fr 1fr 1fr; } }
.closure-list { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.closure-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.closure-list li:last-child { border-bottom: 0; }
.closure-list span { color: var(--muted); }
.closure-list .warn-txt { color: var(--warn); font-weight: 600; }
.menu-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.menu-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-thumb { width: 64px; height: 80px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; text-align: center; }
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-thumb span { font: 700 20px/1 var(--sans); }
.menu-thumb small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.menu-main .muted { font-size: 13px; color: var(--muted); }
.file-btn { position: relative; }
.file-btn:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.menu-row details { margin-top: 8px; font-size: 14px; }
.menu-row summary { cursor: pointer; color: var(--primary-ink); font-weight: 600; }
.menu-row textarea { width: 100%; margin: 8px 0; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.check input { width: 18px; height: 18px; }
.check span { font-weight: 400; color: var(--muted); }
[hidden] { display: none !important; }
#p-ferias, #p-bufe { scroll-margin-top: 12px; }
