/* SIPY FOOD TRUCK — design system (mobile-first) */
:root {
  --green: #153C36;
  --green-2: #1e5048;
  --ivory: #F5F3EE;
  --gold: #C5A46D;
  --gold-2: #b08e57;
  --white: #FFFFFF;
  --ink: #252525;
  --ok: #23865D;
  --bad: #C94A4A;
  --muted: #6b6a66;
  --line: #e6e1d7;
  --line-2: #efebe3;
  --warn-bg: #fbf3e4;
  --warn-ink: #8a5a12;
  --info-bg: #eaf1ef;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(21, 60, 54, .05), 0 8px 24px rgba(21, 60, 54, .06);
  --shadow-lg: 0 12px 40px rgba(21, 60, 54, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--ivory); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
[hidden] { display: none !important; }

/* Tipografia */
.h1 { font-size: clamp(26px, 6vw, 38px); line-height: 1.2; margin: 0 0 10px; color: var(--green); letter-spacing: -.01em; }
.h2 { font-size: clamp(21px, 4.6vw, 27px); line-height: 1.3; margin: 0 0 14px; color: var(--green); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h3 { font-size: 17px; margin: 0 0 12px; color: var(--green); display: flex; align-items: center; gap: 8px; }
.h4 { font-size: 15px; margin: 18px 0 8px; color: var(--green); }
.lead { font-size: 17px; color: #4a4a47; max-width: 56ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--gold-2); font-weight: 700; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.text-danger { color: var(--bad); }
.strike { text-decoration: line-through; }

/* Estrutura */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin: 0 auto; }
.pad-y { padding: 24px 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.grid-2 { display: grid; gap: 16px; margin-bottom: 16px; }
.row-2, .row-3 { display: grid; gap: 0 14px; }
.site-main { padding: 20px 0 48px; min-height: 70vh; }

/* Topo */
.topbar { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .08em; font-size: 14px; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand b { color: var(--gold); font-weight: 700; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gold); color: var(--green); display: inline-grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: 0; }
.brand-mark.lg { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; }
.brand-mark .ico { width: 26px; height: 26px; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.top-nav .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.lang-switch { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.lang-switch a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 13px; padding: 5px 11px; border-radius: 999px; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.lang-switch a.on { background: #fff; color: var(--green); }
.inline { display: inline; margin: 0; }
.hide-sm { display: none; }

.site-foot { border-top: 1px solid var(--line); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-in nav { display: flex; gap: 16px; }

/* Cartões */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head .h3, .card-head .h2 { margin: 0; }
.card-accent { border-top: 3px solid var(--gold); }
.link-card { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.link-card span { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: var(--green); font-style: normal; }
.chip .ico { width: 15px; height: 15px; }

/* Botões */
.btn { --bg: var(--white); --fg: var(--ink); --bd: var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg); color: var(--fg); border: 1px solid var(--bd); border-radius: 12px; padding: 0 18px; min-height: 46px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:hover { --bd: #cfc8ba; color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { --bg: var(--green); --fg: #fff; --bd: var(--green); }
.btn-primary:hover { --bg: var(--green-2); --bd: var(--green-2); color: #fff; }
.btn-gold { --bg: var(--gold); --fg: var(--green); --bd: var(--gold); }
.btn-gold:hover { --bg: var(--gold-2); --bd: var(--gold-2); color: #fff; }
.btn-outline { --bg: transparent; --fg: var(--green); --bd: var(--green); }
.btn-outline:hover { --bg: var(--info-bg); }
.btn-ghost { --bg: transparent; --fg: var(--green); --bd: transparent; }
.btn-ghost:hover { --bg: var(--line-2); --bd: transparent; }
.btn-danger { --bg: var(--bad); --fg: #fff; --bd: var(--bad); }
.btn-danger-ghost { --bg: transparent; --fg: var(--bad); --bd: #ecc9c9; }
.btn-danger-ghost:hover { --bg: #fbefef; --bd: var(--bad); color: var(--bad); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-sm .ico { width: 17px; height: 17px; }
.btn-lg { min-height: 54px; font-size: 16px; padding: 0 24px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row.tight { gap: 4px; flex-wrap: nowrap; }
.btn-row form { margin: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--green); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--line-2); }

/* Formulários */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: #3b3b38; margin: 0; min-width: 0; }
.field > span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #d9d3c7; border-radius: 12px; padding: 11px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(21,60,54,.12); }
.field.is-ocr input { background: #fbf9f4; border-color: #e3d4b6; }
.hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.req { color: var(--bad); font-style: normal; }
.opt { color: var(--muted); font-style: normal; font-weight: 400; font-size: 12px; }
.ocr-tag { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold-2); background: #f6efe1; border-radius: 6px; padding: 1px 6px; }
.ocr-tag.warn { color: var(--warn-ink); background: var(--warn-bg); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; padding: 4px 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.reveal { padding: 4px 0 0 34px; }
.loc-form { margin: 0; }
.loc-form select { min-width: 200px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--ivory); padding: 4px; border-radius: 12px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.seg input:checked + span { background: #fff; box-shadow: var(--shadow); color: var(--green); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); }
.wd-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wd-pick legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.wd { cursor: pointer; }
.wd input { position: absolute; opacity: 0; }
.wd span { display: inline-grid; place-items: center; min-width: 46px; height: 42px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.wd input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.wd input:focus-visible + span { outline: 3px solid var(--gold); }

/* Upload */
.drop { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 18px; border: 2px dashed #d5cbb6; border-radius: var(--radius); background: #fbf9f4; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--gold); background: #f8f2e6; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 64px; height: 64px; border-radius: 18px; background: var(--green); color: var(--gold); display: grid; place-items: center; margin-bottom: 6px; }
.drop-ico .ico { width: 30px; height: 30px; }
.drop-file { font-weight: 600; color: var(--green); font-size: 14px; word-break: break-all; }
.tips { margin: 0; padding-left: 18px; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.steps li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-weight: 700; flex: none; font-size: 12px; }
.steps li.on { border-color: var(--green); color: var(--green); font-weight: 600; }
.steps li.on span { background: var(--green); color: #fff; }
.steps li.done span { background: var(--ok); color: #fff; }

/* Alertas e status */
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 14px; font-size: 14.5px; border: 1px solid transparent; }
.alert-success { background: #e8f4ee; color: #17603f; border-color: #c6e3d3; }
.alert-error { background: #fbecec; color: #8f2c2c; border-color: #efcaca; }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); border-color: #f0dcb7; }
.alert-info { background: var(--info-bg); color: var(--green); border-color: #d1e2dd; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-approved { background: #e6f3ec; color: var(--ok); }
.status-pending { background: #fbf2df; color: #9a6714; }
.status-correction { background: #fdf0e3; color: #a1561a; }
.status-rejected, .status-suspended { background: #fbeaea; color: var(--bad); }
.status-expired { background: #efefed; color: #6a6a66; }
.status-neutral { background: #f0eee9; color: #6a6a66; }
.badge-n { margin-left: auto; background: var(--gold); color: var(--green); font-style: normal; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }

/* Hero */
.hero { padding: 18px 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions .btn { flex: 1 1 220px; }

/* Calendário */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.month-nav strong { font-size: 17px; color: var(--green); }
.month-nav.slim { gap: 10px; margin: 0; }
.cal { display: grid; gap: 4px; }
.cal-head, .cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-wd.sun { color: var(--bad); }
.cal-wd.sat { color: #2d6a9f; }
.cal-cell { position: relative; aspect-ratio: 1 / 1.05; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font: inherit; color: var(--ink); text-decoration: none; padding: 2px; }
.cal-cell.empty { border: 0; background: transparent; }
.cal-day { font-size: 13px; font-weight: 600; line-height: 1.2; }
.cal-sym { font-size: 17px; line-height: 1.1; font-weight: 700; }
.cal-cap { font-size: 9.5px; color: var(--muted); line-height: 1.1; }
.cal-cell.open { background: #eef7f2; border-color: #cfe8db; }
.cal-cell.open .cal-sym { color: var(--ok); }
.cal-cell.full { background: #fcf0f0; border-color: #f0d4d4; }
.cal-cell.full .cal-sym { color: var(--bad); }
.cal-cell.closed { background: #f4f3f0; }
.cal-cell.closed .cal-sym, .cal-cell.closed .cal-day { color: #a3a19b; }
.cal-cell.past { background: transparent; border-color: transparent; }
.cal-cell.past .cal-day { color: #c3c0b8; }
.cal-cell.mine { background: var(--green); border-color: var(--green); color: #fff; }
.cal-cell.mine .cal-sym { color: var(--gold); }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--gold); }
button.cal-cell { cursor: pointer; transition: transform .08s, box-shadow .15s; }
button.cal-cell.open:hover { border-color: var(--ok); box-shadow: 0 4px 12px rgba(35,134,93,.18); }
button.cal-cell.selected { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.04); }
button.cal-cell.selected .cal-sym, button.cal-cell.selected .cal-cap { color: #fff; }
a.cal-cell:hover { border-color: var(--green); }
.cal-dot { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 13px; }
.lg { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.lg.open { color: var(--ok); } .lg.full { color: var(--bad); } .lg.closed { color: #8d8b85; } .lg.mine { color: var(--green); }

/* Barra de confirmação (mobile fixa) */
.confirm-bar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); margin-top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; animation: rise .2s ease-out; z-index: 20; }
.confirm-bar > div { display: grid; }
.confirm-bar strong { color: var(--green); font-size: 17px; }
.confirm-bar .btn { flex: 1 1 200px; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Programação pública */
.sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sched.compact { gap: 6px; font-size: 14px; }
.sched-date { font-weight: 700; color: var(--green); font-size: 14px; margin-bottom: 6px; }
.sched-item { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.sched-photo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.sched-photo.ph { display: grid; place-items: center; background: var(--ivory); color: var(--gold-2); }
li:target .sched-date { background: #f6efe1; border-radius: 8px; padding: 2px 8px; }

/* Autenticação */
.auth { display: grid; place-items: center; padding: 20px 0; }
.auth-card { width: 100%; max-width: 440px; padding: 28px 22px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 14px; }
.empty-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; background: var(--ivory); color: var(--gold-2); display: grid; place-items: center; }
.empty-ico .ico { width: 30px; height: 30px; }
.empty-ico.ok { background: #e6f3ec; color: var(--ok); }

/* Painel do Food Truck */
.dash-head { padding: 6px 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dash-head .eyebrow, .dash-head .h1 { flex-basis: 100%; margin-bottom: 2px; }
.stats-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat { display: grid; gap: 2px; padding: 16px; }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-size: 19px; color: var(--green); line-height: 1.3; }
.stat .ico { width: 15px; height: 15px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.action { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 112px; padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--green); font-weight: 700; font-size: 15.5px; line-height: 1.3; transition: transform .1s, box-shadow .15s, border-color .15s; }
.action .ico { width: 28px; height: 28px; padding: 0; color: var(--gold-2); }
.action:hover { border-color: var(--gold); box-shadow: var(--shadow-lg); color: var(--green); transform: translateY(-1px); }
.action.primary { background: var(--green); color: #fff; border-color: var(--green); }
.action.primary .ico { color: var(--gold); }
.action.primary:hover { color: #fff; }
.action.disabled { opacity: .45; pointer-events: none; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; text-decoration: none; margin-bottom: 10px; font-weight: 600; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head .h2 { margin: 0; }
.res-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.res-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px; }
.res-date { width: 62px; height: 66px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; align-content: center; text-align: center; }
.res-d { font-size: 24px; font-weight: 800; line-height: 1; }
.res-m { font-size: 11px; color: var(--gold); font-weight: 600; margin-top: 3px; }
.res-info { display: grid; gap: 3px; justify-items: start; }
.res-info .ico { width: 14px; height: 14px; }
.res-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.res-actions > *, .res-actions form .btn { flex: 1; width: 100%; }
.res-actions form { flex: 1; margin: 0; }
.res-item.focus-move .res-actions a, .res-item.focus-cancel .res-actions form .btn { box-shadow: 0 0 0 3px rgba(197,164,109,.45); }
.current-res { display: grid; gap: 2px; margin-bottom: 12px; border-left: 4px solid var(--gold); }
.current-res strong { font-size: 18px; color: var(--green); }
.past-box summary { cursor: pointer; font-weight: 600; color: var(--green); }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 16px; margin: 0 0 12px; }
.kv dt { color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.photo-row { display: flex; align-items: flex-end; gap: 12px; }
.grow { flex: 1; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.thumb.lg { width: 140px; height: 105px; margin-bottom: 12px; }
.timeline { list-style: none; margin: 0; padding: 4px 0 4px 6px; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -14px; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); margin-top: 4px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--gold); }
.timeline.compact { gap: 10px; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 6px 0; }
.rules-list li { font-weight: 600; color: var(--green); }

/* Tabelas */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table.compact td { padding: 8px 10px; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #faf8f3; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.tabs a { white-space: nowrap; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.tabs a.on { background: var(--green); color: #fff; }
.tabs a:not(.on):hover { border-color: var(--line); background: #fff; }
.search-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 6px 0 14px; margin-bottom: 14px; color: var(--muted); }
.search-bar input { border: 0; box-shadow: none !important; padding-left: 4px; }
.search-bar.slim { margin: 0; min-width: 220px; }
.filters { display: grid; gap: 12px; margin-bottom: 14px; align-items: end; }

/* Painel administrativo */
.admin-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 268px; background: var(--green); color: #fff; display: flex; flex-direction: column; padding: 18px 14px; transform: translateX(-100%); transition: transform .22s ease; z-index: 50; overflow-y: auto; }
.sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
.sidebar .brand { padding: 4px 8px 20px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.78); text-decoration: none; padding: 11px 12px; border-radius: 11px; font-weight: 500; font-size: 15px; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: rgba(197,164,109,.18); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.side-nav a.active .ico { color: var(--gold); }
.side-foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.side-foot form { margin: 0; }
.side-logout { width: 100%; display: flex; align-items: center; gap: 12px; background: transparent; color: rgba(255,255,255,.7); border: 0; font: inherit; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.side-logout:hover { background: rgba(255,255,255,.07); color: #fff; }
.scrim { position: fixed; inset: 0; background: rgba(15, 30, 27, .45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.sidebar.open ~ .scrim, .admin-shell.nav-open .scrim { opacity: 1; pointer-events: auto; }
.admin-top { position: sticky; top: 0; z-index: 30; height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: rgba(245,243,238,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-top-title { font-weight: 700; color: var(--green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.admin-user { display: none; font-size: 13px; color: var(--muted); }
.admin-content { padding: 18px 14px 48px; max-width: 1280px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-grid.small { grid-template-columns: repeat(3, 1fr); }
.stat-card { display: grid; gap: 2px; text-decoration: none; color: var(--ink); padding: 16px; transition: border-color .15s, transform .1s; }
.stat-card:hover { border-color: var(--gold); color: var(--ink); }
.stat-card.warn { border-color: #efd8ae; background: #fffaf1; }
.stat-ico { color: var(--gold-2); }
.stat-n { font-size: 28px; font-weight: 800; color: var(--green); line-height: 1.1; }
.stat-l { font-size: 13px; color: var(--muted); font-weight: 600; }
.notif-list, .recip-list, .day-res { list-style: none; margin: 0; padding: 0; display: grid; }
.notif-list li { display: grid; gap: 2px; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; border-left: 3px solid transparent; }
.notif-list li.unread { border-left-color: var(--gold); }
.notif-list li a { text-decoration: none; color: var(--ink); }
.notif-list li a:hover { color: var(--green); text-decoration: underline; }
.recip-list li, .day-res li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.recip-list form, .day-res form { margin: 0; }
.day-res li.is-cancelled { opacity: .6; }
.doc-img { border-radius: 12px; border: 1px solid var(--line); width: 100%; height: auto; margin-bottom: 10px; background: #fafafa; }
.pdf-box { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 220px; border: 2px dashed var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; margin-bottom: 10px; }
.pdf-box .ico { width: 34px; height: 34px; }
.pop { position: relative; }
.pop summary { list-style: none; }
.pop summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; width: min(300px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px; display: grid; gap: 14px; }
.pop.right .pop-body { left: auto; right: 0; }
.pop-body .form { gap: 8px; }
.inline-form { margin-top: 10px; }

/* Responsivo */
@media (min-width: 560px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .action-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .hide-sm { display: inline; }
  .res-item { grid-template-columns: auto 1fr auto; }
  .res-actions { grid-column: auto; flex-direction: column; min-width: 150px; }
  .cal-day { font-size: 14px; }
  .cal-sym { font-size: 19px; }
  .cal-cap { font-size: 10.5px; }
  .filters { grid-template-columns: repeat(4, 1fr) auto; }
  .auth-card { padding: 34px 32px; }
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .grid-2.wide-left { grid-template-columns: 1.35fr 1fr; }
  .hero { padding: 34px 0 34px; }
  .sidebar { transform: none; }
  .admin-main { margin-left: 268px; }
  .admin-top [data-toggle] { display: none; }
  .admin-user { display: inline; }
  .admin-content { padding: 26px 32px 60px; }
  .scrim { display: none; }
  .confirm-bar { position: static; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .topbar, .sidebar, .admin-top, .site-foot, .btn { display: none !important; } .admin-main { margin: 0; } body { background: #fff; } }

/* Ajustes para telas estreitas */
.lang-switch a { white-space: nowrap; }
@media (max-width: 420px) {
  .topbar .brand > span:last-child { display: none; }
  .cal-cap { display: none; }
  .lang-switch a { padding: 5px 9px; }
}

/* Calendário: dias livres em círculo e iniciais dos Food Trucks */
.cal-cell.open .cal-day { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ok); display: inline-flex; align-items: center; justify-content: center; color: var(--ok); font-weight: 700; background: #fff; }
.cal-sym.ini { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--green); background: #f3ead8; border-radius: 6px; padding: 1px 5px; margin-top: 2px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-cell.full { background: #fbf6ec; border-color: #e7d6b4; }
.cal-cell.full .cal-sym.ini { color: #fff; background: var(--green); }
.cal-cell.past .cal-sym.ini { opacity: .45; }
.lg-ring { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--ok); vertical-align: -2px; margin-right: 5px; }
.cal-legend-trucks { margin-top: 8px; color: var(--muted); }
.lg-ini { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--green); border-radius: 5px; padding: 1px 5px; margin-right: 5px; }
@media (min-width: 640px) { .cal-cell.open .cal-day { width: 34px; height: 34px; } .cal-sym.ini { font-size: 13px; } }
@media (max-width: 380px) { .cal-cell.open .cal-day { width: 26px; height: 26px; font-size: 12px; } .cal-sym.ini { font-size: 10.5px; padding: 1px 3px; } }
.sched-more { margin-top: 14px; }
.sched-more > summary { list-style: none; cursor: pointer; }
.sched-more > summary::-webkit-details-marker { display: none; }
.sched-more[open] > summary { margin-bottom: 12px; }
.sched-ini { font-size: 13px; font-weight: 800; color: var(--green); }

/* Galeria da página inicial (Instagram dos Food Trucks) */
.gallery .card-head { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; }
.gallery .card-head .h3 { margin: 0; }
.gal-nav { display: flex; gap: 6px; flex: none; }
.gal-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 10px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.gal-track:focus-visible { outline: 3px solid var(--gold); }
.gal-slide { flex: 0 0 78%; scroll-snap-align: start; position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--green); color: #fff; text-decoration: none; box-shadow: var(--shadow); display: block; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
a.gal-slide:hover img { transform: scale(1.04); }
.gal-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 800; letter-spacing: .04em; color: var(--gold); background: linear-gradient(135deg, var(--green), var(--green-2)); }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.gal-cap strong { font-size: 15px; color: #fff; }
.gal-ig { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #f3e6cc; }
.gal-ig svg { width: 14px; height: 14px; }
.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.gal-thumbs figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gal-thumbs img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.ig-input { display: flex; align-items: center; gap: 6px; }
.ig-input > span { color: var(--muted); font-weight: 700; }
.ig-input input { flex: 1; min-width: 0; }
@media (min-width: 560px) { .gal-slide { flex-basis: 46%; } }
@media (min-width: 900px) { .gal-slide { flex-basis: calc((100% - 14px) / 2); } }

/* Anúncio (World Insurance) */
.ad-card { position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, #fff 0%, #fbf6ec 100%); border: 1px solid #e8dcc3; }
.ad-card:hover { color: var(--ink); box-shadow: var(--shadow-lg); }
.ad-tag { position: absolute; top: 12px; right: 14px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; background: #fff; }
.ad-head { display: flex; align-items: center; gap: 10px; padding-right: 80px; }
.ad-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: var(--gold); display: grid; place-items: center; flex: none; }
.ad-mark svg { width: 22px; height: 22px; }
.ad-brand { display: block; color: var(--green); font-size: 16px; line-height: 1.2; }
.ad-sub { display: block; font-size: 12px; color: var(--muted); }
.ad-title { font-size: 17px; line-height: 1.35; color: var(--green); }
.ad-text { font-size: 14px; color: var(--muted); }

/* Contador de visitas */
.visit-count { display: inline-flex; align-items: center; gap: 6px; }
.visit-count svg { width: 15px; height: 15px; }
.visit-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.visit-stats > div { background: var(--ivory); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; }
.visit-days td.grow { width: 100%; }
.visit-days progress { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.visit-days progress::-webkit-progress-bar { background: var(--line-2); border-radius: 6px; }
.visit-days progress::-webkit-progress-value { background: var(--green); border-radius: 6px; }
.visit-days progress::-moz-progress-bar { background: var(--green); border-radius: 6px; }

/* Anúncios (vários anunciantes) */
.ad-card .ad-mark { font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.ad-img { display: block; margin: -4px 0 2px; border-radius: var(--radius-sm); overflow: hidden; }
.ad-img img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.ad-ig { display: inline-flex; align-items: center; gap: 4px; color: var(--green-2); text-decoration: none; }
.ad-ig svg { width: 13px; height: 13px; }
.ad-card .btn { text-decoration: none; }
.ad-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; }
.ad-thumb.ph { background: var(--green); color: var(--gold); font-weight: 800; font-size: 13px; }
.ad-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-actions .icon-btn[disabled] { opacity: .35; }
.gal-adtag { position: absolute; top: 10px; right: 10px; z-index: 1; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 999px; padding: 2px 9px; }
.ig-inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ig-inline .ig-input { min-width: 180px; flex: 1; }

/* Faixa de publicidade no topo da página inicial */
.ad-banner { display: flex; align-items: center; gap: 14px; background: linear-gradient(100deg, #fff 0%, #fbf6ec 100%); border: 1px solid #e8dcc3; border-radius: var(--radius); padding: 12px 16px; margin: 0 0 18px; box-shadow: var(--shadow); }
.ad-banner-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: var(--gold); display: grid; place-items: center; font-weight: 800; flex: none; }
.ad-banner-img { width: 64px; height: 44px; object-fit: cover; border-radius: 10px; flex: none; }
.ad-banner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.ad-banner-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ad-banner-top strong { color: var(--green); }
.ad-tag-inline { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; background: #fff; }
.ad-banner-title { font-weight: 700; color: var(--green); font-size: 15.5px; }
.ad-banner-body { font-size: 13.5px; color: var(--muted); }
.ad-banner-btn { flex: none; text-decoration: none; white-space: nowrap; }
@media (max-width: 640px) { .ad-banner { flex-wrap: wrap; } .ad-banner-btn { width: 100%; justify-content: center; white-space: normal; } }

/* Página pública do Food Truck */
.truck-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.truck-head .h2 { margin: 0 0 4px; }
.truck-head p { margin: 0; }
.truck-avatar { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; }
.truck-avatar.ph { display: grid; place-items: center; background: var(--green); color: var(--gold); font-weight: 800; font-size: 22px; }
.truck-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 4px !important; }
.truck-meta .ico { width: 16px; height: 16px; }
.truck-meta a { display: inline-flex; align-items: center; gap: 4px; }
.cal-truck .cal-cell { cursor: default; }
.cal-truck .cal-cell.off { background: transparent; border-color: transparent; color: #b9b4aa; }
.cal-truck .cal-cell.stop { background: var(--green); border-color: var(--green); color: #fff; }
.cal-truck .cal-cell.stop .cal-day { color: #fff; }
.cal-truck .cal-cell.stop .cal-sym.ini { background: var(--gold); color: var(--green); }
.cal-truck .cal-cell.stop.was { opacity: .45; }
.lg-ini.lg-stop { background: var(--green); color: var(--gold); }
.truck-dates { list-style: none; margin: 0; padding: 0; }
.truck-dates li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.truck-dates li:last-child { border-bottom: 0; }
.sched-name { color: inherit; text-decoration: none; }
.sched-name:hover strong { text-decoration: underline; }
a.lg-link { color: inherit; text-decoration: none; }
a.lg-link:hover { text-decoration: underline; }

/* Compartilhar */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.share-bar.share-card { margin: 0; box-shadow: var(--shadow); }
.share-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green); margin-right: 4px; }
.share-label .ico { width: 18px; height: 18px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.share-btn .ico { width: 18px; height: 18px; }
.share-btn:hover { border-color: var(--green); color: var(--green); }
.share-btn.ig .ico { color: #c13584; }
.share-btn.fb .ico { color: #1877f2; }
.share-btn.tt .ico { color: #111; }
.share-msg { flex-basis: 100%; font-size: 13px; color: var(--ok); }
.share-msg:empty { display: none; }
@media (max-width: 420px) { .share-btn span { display: none; } .share-btn { padding: 6px 10px; } }

/* Módulo de pedidos — painel */
.ped-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ped-head .h2 { margin: 0; }
.ped-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.ped-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.ped-tabs a.on { background: var(--green); color: #fff; border-color: var(--green); }
.ped-tabs .ico { width: 16px; height: 16px; }
.ped-menus, .ped-cat { margin-bottom: 14px; }
.ped-cat-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cat-ico { width: 20px; height: 20px; }
.ped-items { list-style: none; margin: 0; padding: 0; }
.ped-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.ped-item.st-hidden { opacity: .55; }
.ped-item.st-sold_out .ped-price { text-decoration: line-through; }
.ped-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.ped-thumb.ph { display: grid; place-items: center; background: var(--ivory); color: var(--gold-2); }
.ped-thumb.ph .cat-ico { width: 28px; height: 28px; }
.ped-item-main { flex: 1; min-width: 160px; }
.ped-price { color: var(--green); font-weight: 700; margin-left: 6px; }
.ped-item-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ped-status { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.ped-status .seg { border: 0; background: #fff; padding: 7px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); min-height: 36px; }
.ped-status .seg + .seg { border-left: 1px solid var(--line); }
.ped-status .seg.on { background: var(--green); color: #fff; font-weight: 700; }
.icon-btn.danger { color: var(--bad); }
.narrow-form { max-width: 760px; }
.ml-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 12px; }
.ml-group legend, .ml-group summary { font-weight: 700; color: var(--green); padding: 0 4px; cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; margin: 6px 0 10px; }
.member-list { list-style: none; margin: 0; padding: 0; }
.member-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.break { word-break: break-all; }
.qr-sheet { text-align: center; }
.qr-brand { letter-spacing: .14em; font-size: 13px; color: var(--green); margin: 0; }
.qr-brand b { color: var(--gold-2); }
.qr-name { font-size: 26px; color: var(--green); margin: 6px 0 10px; }
.qr-img { width: 280px; height: 280px; image-rendering: pixelated; }
.qr-call { font-weight: 700; font-size: 18px; margin: 10px 0 4px; }
.qr-call span { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
.qr-pay { font-size: 13px; color: var(--muted); }
@media print {
  .is-site .topbar, .site-foot, .no-print, .ped-head, .ped-tabs, .alert, .share-bar { display: none !important; }
  .qr-sheet { border: 0; box-shadow: none; }
  .grid-2 { display: block; }
}

/* Módulo de pedidos — cardápio público */
.pm-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.pm-head .h2 { margin: 0; }
.pm-pay { font-weight: 600; }
.pm-cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; position: sticky; top: 56px; background: var(--ivory); z-index: 5; }
.pm-cats a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--green); font-weight: 700; text-decoration: none; font-size: 14px; }
.pm-cat { margin: 14px 0 22px; scroll-margin-top: 110px; }
.pm-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .pm-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pm-grid { grid-template-columns: 1fr 1fr 1fr; } }
.pm-item { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.pm-item.out { opacity: .6; }
.pm-img { position: relative; width: 110px; height: 110px; flex: none; border-radius: 12px; overflow: hidden; background: var(--ivory); }
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold-2); }
.pm-ph .cat-ico { width: 44px; height: 44px; }
.pm-badge { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 1px 6px; border-radius: 6px; }
.pm-soldout { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; }
.pm-body { min-width: 0; }
.pm-name { font-size: 16px; margin: 0 0 4px; color: var(--ink); }
.pm-desc { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.pm-price { font-size: 17px; font-weight: 800; color: var(--green); margin: 0 0 4px; }
.pm-opts { list-style: none; margin: 0 0 6px; padding: 0; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pm-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11.5px; background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.pm-trucks { display: grid; gap: 10px; max-width: 560px; margin: 0 auto 18px; }
.truck-avatar.sm { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }

/* ---------- Pedidos (Fase 2) ---------- */
.wide .site-main .wrap { max-width: 1480px; }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; letter-spacing: .02em; }
.badge.ok { background: #e3f3eb; color: var(--ok); }
.badge.off { background: #f7e4e4; color: var(--bad); }
.tag.bad { color: var(--bad); border-color: #ecc9c9; background: #fbefef; }
.pm-body { flex: 1; display: flex; flex-direction: column; }
.pm-add { align-self: flex-start; margin-top: 8px; min-height: 40px; }
.pm-grid-staff { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pm-grid-staff .pm-item { padding: 12px; }
.pm-grid-staff .pm-add { align-self: stretch; margin-top: auto; }
.has-cart .site-main { padding-bottom: 110px; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(245,243,238,.96) 30%); }
.cart-bar .btn { max-width: 560px; margin: 0 auto; display: flex; min-height: 54px; font-size: 16px; box-shadow: var(--shadow-lg); }
.cart-bar.bump .btn { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .cart-bar.bump .btn { animation: none; } }
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(21, 30, 28, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-box { position: relative; background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-box { border-radius: 20px; } }
.sheet-x { position: absolute; right: 12px; top: 12px; }
.sheet-box .h3 { padding-right: 52px; }
.sheet-open { overflow: hidden; }
.opt-group { border: 0; padding: 0; margin: 0 0 14px; }
.opt-group legend { font-weight: 700; color: var(--green); margin-bottom: 6px; font-size: 14px; }
.opt-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; cursor: pointer; }
.opt-choice input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; }
.opt-choice span { flex: 1; }
.opt-choice em { font-style: normal; color: var(--muted); font-size: 14px; }
.opt-choice:has(input:checked) { border-color: var(--green); background: var(--info-bg); }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 16px; font-weight: 700; color: var(--green); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 17px; }
.stepper .icon-btn { width: 40px; height: 40px; font-size: 20px; font-weight: 700; }
.cart-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info price" "step step"; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cl-info { grid-area: info; display: flex; flex-direction: column; min-width: 0; }
.cl-info small, .ord-lines small { color: var(--muted); font-size: 12.5px; display: block; }
.cl-price { grid-area: price; font-weight: 700; }
.cart-lines .stepper { grid-area: step; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; margin: 10px 0 14px; }
.cart-total strong { color: var(--green); font-size: 22px; }
.ord-lines { list-style: none; margin: 0; padding: 0; }
.ord-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ord-lines li:last-child { border-bottom: 0; }

/* Acompanhamento do cliente */
.track { max-width: 560px; margin: 0 auto; }
.track-num { text-align: center; margin-bottom: 14px; }
.track-num span { display: block; color: var(--muted); font-weight: 700; }
.track-num strong { display: block; font-size: 84px; line-height: 1.05; color: var(--green); letter-spacing: -.02em; }
.track-num.is-ready { border: 3px solid var(--ok); }
.track-status { display: inline-block; font-style: normal; font-weight: 800; padding: 4px 14px; border-radius: 999px; background: var(--ivory); color: var(--green); }
.track-status.st-ready { background: var(--ok); color: #fff; }
.track-status.st-cancelled { background: #fbefef; color: var(--bad); }
.track-ready { display: grid; gap: 4px; text-align: center; background: var(--ok); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.track-ready strong { font-size: 26px; }
.track-steps { flex-wrap: wrap; }
.track-steps li { flex: 1 1 30%; }

/* Painel 注文管理 */
.board-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.board-head .inline { display: inline; }
.board-live { margin-left: auto; font-size: 12.5px; color: var(--ok); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.board-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.board-live.off { color: var(--bad); }
.board-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } }
.board-col { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.board-col .h4 { margin: 2px 4px 10px; display: flex; align-items: center; gap: 6px; }
.col-new { border-top: 4px solid var(--gold); }
.col-accepted { border-top: 4px solid #7aa59c; }
.col-preparing { border-top: 4px solid var(--green); }
.col-ready { border-top: 4px solid var(--ok); }
.board-empty { text-align: center; margin: 18px 0; }
.oc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.oc.st-new { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(197,164,109,.35), var(--shadow); }
.oc.gps-warn { border-style: dashed; }
.oc header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.oc-num { font-size: 30px; line-height: 1; color: var(--green); font-weight: 800; }
.oc header time { margin-left: auto; color: var(--muted); font-size: 13px; }
.src { font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 2px 7px; background: var(--ivory); color: var(--green); }
.src-qr { background: #e8eef9; color: #2c4f8f; }
.src-whatsapp { background: #e1f5e8; color: #1c7a43; }
.src-advance { background: #f6efe1; color: var(--gold-2); }
.oc-pick, .oc-who, .oc-warn, .oc-note { margin: 0 0 6px; font-size: 13.5px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.oc-warn { color: var(--warn-ink); background: var(--warn-bg); border-radius: 8px; padding: 4px 8px; }
.oc-note { background: var(--ivory); border-radius: 8px; padding: 6px 8px; }
.oc .ord-lines li { font-size: 15px; padding: 4px 0; }
.oc footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; }
.oc-total { font-weight: 800; color: var(--green); }
.oc-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.oc-acts form, .oc footer form { display: inline; }
.oc-acts .btn { min-height: 42px; }
.pay-off { --bg: #fbefef; --fg: var(--bad); --bd: #ecc9c9; }
.pay-on, .chip.pay-on { --bg: #e3f3eb; --fg: var(--ok); --bd: #bfe3cf; background: #e3f3eb; color: var(--ok); }
.board-next { margin-top: 16px; }
.board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.board-done { margin-top: 16px; }
.board-done summary { cursor: pointer; font-weight: 700; color: var(--green); }
.done-list { list-style: none; margin: 10px 0 0; padding: 0; }
.done-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.done-list .st-cancelled { color: var(--bad); }
.ped-settings { align-items: start; }
.qr-url { word-break: break-all; }
.check span small.hint { display: block; margin-top: 2px; }
.ped-settings fieldset.field { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }

/* ---------- Pedidos (Fase 3): som, chamada, tela de retirada ---------- */
[data-sound-toggle].on { color: var(--ok); }
.track-sound { margin: 0 0 14px; }
.track-sound.on { --bd: var(--ok); --fg: var(--ok); --bg: #e3f3eb; }
.board-soldout { margin-top: 16px; }
.board-soldout summary { cursor: pointer; font-weight: 700; color: var(--green); display: flex; gap: 8px; align-items: center; }
.so-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 12px 0 6px; }
.so-grid form { display: block; }
.so-btn { width: 100%; min-height: 58px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.so-btn span { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.so-btn em { font-style: normal; font-size: 12.5px; color: var(--ok); font-weight: 700; }
.so-btn.is-out { background: #fbefef; border-color: #ecc9c9; }
.so-btn.is-out em { color: var(--bad); }
.so-btn:disabled { cursor: not-allowed; opacity: .75; }

.screen-mode { background: #0f2b27; }
.screen-mode .topbar, .screen-mode .site-foot, .screen-mode .skip { display: none !important; }
.screen-mode .site-main { padding: 0; min-height: 100vh; }
.screen-mode .site-main .wrap { max-width: none; padding: 0; }
.scr { min-height: 100vh; display: flex; flex-direction: column; color: #fff; position: relative; }
.scr-head { display: flex; align-items: center; gap: 20px; padding: 14px 28px; background: var(--green); font-size: clamp(18px, 2.4vw, 30px); }
.scr-head strong { color: var(--gold); letter-spacing: .02em; }
.scr-pay { font-size: .7em; opacity: .85; }
.scr-head time { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
.scr-body { flex: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 0; }
@media (max-aspect-ratio: 1/1) { .scr-body { grid-template-columns: 1fr; } }
.scr-ready, .scr-prep { padding: 22px 28px; }
.scr-prep { background: rgba(0,0,0,.18); }
.scr h1, .scr h2 { margin: 0 0 18px; font-size: clamp(24px, 3vw, 42px); color: #fff; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.scr h1 small, .scr h2 small { font-size: .45em; opacity: .7; font-weight: 600; }
.scr-nums { display: flex; flex-wrap: wrap; gap: 16px; }
.scr-num { min-width: 1.6em; padding: 6px 18px; border-radius: 18px; background: #fff; color: var(--green); font-weight: 800; text-align: center; font-size: clamp(54px, 9vw, 140px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.scr-num.latest { background: var(--gold); color: var(--green); animation: pulse 1.2s ease-in-out 4; }
.scr-nums.small .scr-num { background: rgba(255,255,255,.14); color: #fff; font-size: clamp(30px, 4.2vw, 64px); border-radius: 12px; padding: 2px 14px; }
@keyframes pulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .scr-num.latest { animation: none; } }
.scr-status { position: absolute; left: 28px; bottom: 10px; margin: 0; color: #ffb4b4; font-weight: 700; }
.scr-start { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; background: rgba(15,43,39,.92); color: #fff; border: 0; font: inherit; cursor: pointer; text-align: center; }
.scr-start strong { font-size: clamp(36px, 6vw, 80px); color: var(--gold); }
.scr-start span { font-size: clamp(16px, 2vw, 24px); opacity: .85; }
.scr-start[hidden] { display: none; }
.ped-side { display: grid; gap: 16px; align-content: start; }
.track-sound { white-space: normal; min-height: 52px; padding: 10px 16px; line-height: 1.35; }
.track-ready { scroll-margin-top: 76px; }

/* ---------- Pedidos (Fase 4): leitura do cardápio, tradução, fotos ---------- */
.imp-list { list-style: none; margin: 0; padding: 0; }
.imp-list li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line-2); }
.imp-head { margin-bottom: 12px; }
.imp-src img { max-width: 100%; max-height: 70vh; border-radius: 12px; margin-top: 8px; border: 1px solid var(--line); }
.imp-row { margin: 0 0 12px; border: 1px solid var(--line); }
.imp-row.doubt { border-left: 5px solid var(--gold); }
.imp-row.has-error { border-color: var(--bad); }
.imp-use { margin-bottom: 8px; font-weight: 700; }
.imp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.imp-row.doubt .imp-price input { border-color: var(--gold); background: #fffaf0; }
.imp-foot { display: grid; gap: 10px; }
.tr-row { margin: 6px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ai-filled { background: #f6efe1 !important; }
.photo-tools { margin-top: 16px; }
.photo-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 10px 0; }
.photo-compare figure { margin: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.photo-compare figure.on { border-color: var(--ok); }
.photo-compare img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-compare figcaption { padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--green); }
.photo-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.health { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; }
.health li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.health li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.health li.warn::before { background: var(--gold); }
.health li.bad::before { background: var(--bad); }
