/* Painel do anfitrião + telas da equipe — mesma identidade do convite, foco em operação */
:root {
  --bg: #f4ede2;
  --card: #fffdf9;
  --ink: #2a1d17;
  --muted: #7b6a5d;
  --line: rgba(42, 29, 23, .11);
  --wine: #7a1f2b;
  --wine-soft: color-mix(in srgb, var(--wine) 9%, transparent);
  --gold: #b8893b;
  --gold-soft: #f3e6c6;
  --ok: #2f7d4f;
  --ok-soft: rgba(47, 125, 79, .12);
  --warn: #b7791f;
  --warn-soft: rgba(183, 121, 31, .14);
  --danger: #b4232f;
  --side: #22160f;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(42, 29, 23, .05), 0 10px 28px -14px rgba(42, 29, 23, .25);
  --dark: #1a110d;
  --dark-2: #241812;
  --dark-3: #2d1f17;
  --dark-0: #120b08;
  --wine-deep: color-mix(in srgb, var(--wine) 70%, #000);
  --gold-hi: #f3dfae;
  --gold-mid: #d4a650;
  --gold-ink: #2b1a0c;
  --gold-deep: #7a5418;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.ic { width: 18px; height: 18px; flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.serif { font-family: var(--serif); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 60% at 50% 0%, var(--wine-deep), var(--dark) 75%); }
.login form { width: min(380px, 100%); background: var(--card); border-radius: 26px; padding: 30px 26px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.login h1 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 6px 0 4px; }
.login p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

/* ---------- estrutura ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: var(--side); color: rgba(243, 230, 198, .72); padding: 20px 14px; display: flex; flex-direction: column; gap: 3px; }
.side .logo { padding: 4px 10px 18px; }
.side .logo small { display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.side .logo b { font-family: var(--serif); font-weight: 500; font-size: 20px; color: #fff7ea; }
.side button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 14px; text-align: left; transition: background .2s, color .2s; }
.side button:hover { background: rgba(255, 247, 234, .06); color: #fff7ea; }
.side button[aria-current='page'] { background: linear-gradient(135deg, var(--gold-hi), var(--gold-mid)); color: var(--gold-ink); }
.side .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: #e2554f; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.side .sep { height: 1px; background: rgba(243, 230, 198, .1); margin: 10px 8px; }
.main { min-width: 0; padding: 26px 30px 80px; }
/* monitores grandes: aumenta um pouco o conteúdo para não ficar miúdo */
@media (min-width: 1600px) and (min-height: 820px) { .main { zoom: 1.12; } }
@media (min-width: 2200px) { .main { zoom: 1.3; } }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.top h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin: 2px 0 0; letter-spacing: -.01em; }
.eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 800; color: var(--gold); margin: 0; }
.mtabs { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .mtabs { display: flex; position: sticky; top: 0; z-index: 20; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 12px; background: var(--side); }
  .mtabs::-webkit-scrollbar { display: none; }
  .mtabs button { display: flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 12px; border-radius: 99px; color: rgba(243, 230, 198, .75); font-weight: 700; font-size: 13px; }
  .mtabs button[aria-current='page'] { background: linear-gradient(135deg, var(--gold-hi), var(--gold-mid)); color: var(--gold-ink); }
  .mtabs .count { min-width: 18px; height: 18px; border-radius: 99px; background: #e2554f; color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 5px; }
  .main { padding: 18px 16px 80px; }
  .top h1 { font-size: 26px; }
}

/* ---------- componentes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.pad { padding: 20px; }
.card h2 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0 0 4px; }
.card .lead { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .g2, .g3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.kpi { padding: 16px 18px; }
.kpi small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.kpi b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.wine { background: linear-gradient(135deg, var(--wine-deep), var(--wine)); color: #fff7ea; border: 0; }
.kpi.wine small, .kpi.wine span { color: rgba(255, 247, 234, .75); }
.bar { height: 8px; border-radius: 9px; background: var(--line); overflow: hidden; display: flex; margin-top: 10px; }
.bar i { display: block; height: 100%; }

.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-wine { background: var(--wine); color: #fff7ea; }
.btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold-mid)); color: var(--gold-ink); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-wa { background: #1fa855; color: #fff; }
.btn-danger { background: rgba(180, 35, 47, .1); color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; }
.btn-xl { min-height: 64px; font-size: 18px; border-radius: 18px; padding: 0 26px; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--card); }
.icon-btn:hover { border-color: var(--gold); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

label.f { display: block; }
label.f > span, div.f > span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.field { width: 100%; min-height: 44px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 137, 59, .16); }
textarea.field { min-height: 90px; resize: vertical; line-height: 1.5; }
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { width: 42px; height: 24px; appearance: none; border-radius: 99px; background: #d9cdbb; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: var(--line); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.wine { background: var(--wine-soft); color: var(--wine); }
.chip.gold { background: var(--gold-soft); color: #7a5418; }
.chip.dark { background: var(--ink); color: var(--gold-soft); }
.chip.danger { background: rgba(180, 35, 47, .1); color: var(--danger); }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(42, 29, 23, .06); gap: 2px; flex-wrap: wrap; }
.seg button { padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* lista */
.list { display: grid; }
.item { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .who { flex: 1; min-width: 0; }
.item .who b { display: block; font-size: 15px; }
.item .who span { font-size: 12.5px; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff7ea; background: var(--wine); flex: none; font-size: 14px; }
.avatar.ok { background: var(--ok); }
.avatar.warn { background: var(--warn); }
.avatar.gray { background: #a89a8a; }
@media (max-width: 680px) { .item { flex-wrap: wrap; } .item .actions { width: 100%; } }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty .big { font-size: 40px; }

/* mapa do salão */
.floor { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(rgba(42, 29, 23, .05) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(42, 29, 23, .05) 1px, transparent 1px) 0 0 / 24px 24px, #efe5d4; }
.floor .lbl { position: absolute; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; font-weight: 800; color: rgba(42, 29, 23, .4); left: 50%; transform: translateX(-50%); }
.tbl { position: absolute; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-weight: 600; font-size: 18px; border: 2px solid transparent; box-shadow: 0 6px 14px -6px rgba(42, 29, 23, .35); line-height: 1; touch-action: none; user-select: none; }
.tbl small { display: block; font-family: var(--sans); font-size: 9px; font-weight: 700; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.tbl.square { border-radius: 12px; }
.tbl.long { width: 170px; height: 46px; border-radius: 14px; }
.tbl.free { background: #fff; border-color: rgba(47, 125, 79, .55); }
.tbl.pending { background: #fbe7c4; border-color: var(--warn); color: #7a4e10; }
.tbl.confirmed { background: var(--wine); color: #fff7ea; }
.tbl.arrived { background: var(--ok); color: #fff; }
.tbl.drag { cursor: grab; }
.tbl.edit-sel { outline: 3px solid var(--gold); outline-offset: 3px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* feed */
.feed { display: grid; max-height: 520px; overflow-y: auto; }
.feed div { padding: 11px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.feed div:first-child { border: 0; }
.feed b { display: block; font-weight: 700; }
.feed span { color: var(--muted); font-size: 12px; }

/* gerador de convite */
.newcard { background: linear-gradient(140deg, var(--gold-soft), var(--gold-hi)); border: 0; }
.created { margin-top: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 253, 249, .8); border: 1px dashed rgba(122, 84, 24, .45); }
.created code { font-size: 12.5px; word-break: break-all; }

/* fotos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo { overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo .meta { padding: 10px 12px; font-size: 12.5px; }
.photo .actions { padding: 0 10px 10px; }

/* colunas ao vivo / equipe */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }
.ticket { padding: 14px 16px; border-top: 1px solid var(--line); }
.ticket:first-child { border: 0; }
.ticket .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ticket .mesa { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.ticket .items { font-weight: 700; margin: 6px 0; font-size: 15px; }
.ticket .note { font-size: 12.5px; color: var(--muted); }
.ticket .actions { margin-top: 10px; }

/* sorteio */
.draw { text-align: center; padding: 30px 20px; background: linear-gradient(140deg, var(--side), var(--wine-deep)); color: #fff7ea; border: 0; }
.draw .name { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--gold-hi); min-height: 56px; margin: 10px 0; }

/* equipe links */
.staff { display: flex; gap: 16px; align-items: center; }
.staff .qr { width: 110px; height: 110px; padding: 6px; background: #fff; border-radius: 14px; border: 1px solid var(--line); flex: none; }
.staff .qr svg { width: 100%; height: 100%; }
@media (max-width: 680px) { .staff { flex-direction: column; align-items: flex-start; } }

/* folha/modal */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(28, 13, 15, .5); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: min(560px, 100%); max-height: 90dvh; overflow-y: auto; background: var(--card); border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.modal h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 14px; }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; transition: all .3s; pointer-events: none; max-width: 90vw; width: max-content;
  padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 700; background: var(--ink); color: var(--gold-soft); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-error { background: var(--danger); color: #fff; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 130; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); } }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(184, 137, 59, .2); border-top-color: var(--gold); animation: spin .9s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- telas da equipe (tema escuro, letras grandes) ---------- */
body.staff-ui { background: var(--dark); color: #f6ead6; }
.staff-ui .card { background: var(--dark-2); border-color: rgba(243, 230, 198, .1); box-shadow: none; }
.staff-ui .muted, .staff-ui .ticket .note { color: rgba(243, 230, 198, .6); }
.staff-ui .ticket, .staff-ui .item { border-color: rgba(243, 230, 198, .08); }
.staff-ui .field { background: var(--dark-3); border-color: rgba(243, 230, 198, .15); color: #f6ead6; }
.staff-ui .btn-ghost { background: var(--dark-3); border-color: rgba(243, 230, 198, .15); }
.staff-ui .chip { background: rgba(243, 230, 198, .1); }
.staff-ui .chip.ok { background: rgba(95, 191, 135, .18); color: #7fd4a2; }
.staff-ui .chip.warn { background: rgba(231, 168, 72, .18); color: #f1bd6a; }
.staff-ui .chip.wine { background: rgba(226, 85, 79, .18); color: #ff9c8f; }
.sbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--dark-0); border-bottom: 1px solid rgba(243, 230, 198, .08); }
.sbar b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.sbar small { display: block; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.swrap { max-width: 900px; margin: 0 auto; padding: 16px 14px 60px; }
.sbar > div:first-child { min-width: 0; }
.sbar .actions { flex-wrap: wrap; justify-content: flex-end; }
.staff-ui .seg { background: rgba(243, 230, 198, .07); }
.staff-ui .seg button { color: rgba(243, 230, 198, .72); }
.staff-ui .seg button.on { background: linear-gradient(135deg, var(--gold-hi), var(--gold-mid)); color: var(--gold-ink); box-shadow: none; }
.alert-card { animation: flash 1s 3; }
@keyframes flash { 50% { background: var(--wine-deep); } }
.scan-res { padding: 26px 20px; text-align: center; border-radius: 22px; color: #fff; }
.scan-res.ok { background: linear-gradient(140deg, #1f6b40, #2f9d5d); }
.scan-res.ready { background: linear-gradient(140deg, #1f4f6b, #2f7d9d); }
.scan-res.bad { background: linear-gradient(140deg, #6b1f25, #b4232f); }
.scan-res.again { background: linear-gradient(140deg, #7a5418, #b7791f); }
.scan-res h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 6px 0; }
.scan-res .big { font-size: 64px; font-family: var(--serif); line-height: 1; }
.video-wrap { position: relative; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 1; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-wrap::after { content: ''; position: absolute; inset: 18%; border: 3px solid rgba(233, 207, 148, .9); border-radius: 24px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }

.qr-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 4px #fff; }
.qr-badge .ic { width: 17px; height: 17px; }
.staff .qr { width: 130px; height: 130px; }

/* ================= Configurações ================= */
.cfg-h { margin: 24px 0 12px; font-family: var(--serif); font-weight: 500; font-size: 22px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.icon-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.icon-card .app-ic { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); margin-bottom: 6px; }
.icon-card b { font-size: 14px; }
.icon-card small { font-size: 12px; }
.icon-card .row-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.qr-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); text-align: left; font-size: 13px; }
.theme-opt.on { border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); }
.theme-opt .dots { display: flex; }
.theme-opt .dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; margin-right: -6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.colors { display: grid; gap: 10px; }
.color-f { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.color-f input { width: 46px; height: 46px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; flex: none; }
.color-f span { display: flex; flex-direction: column; font-size: 14px; }
.color-f small { font-size: 12px; }
.theme-prev { width: min(300px, 100%); margin: 0 auto; border-radius: 28px; overflow: hidden; background: var(--p-bg); color: var(--p-ink); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .45); border: 6px solid var(--p-dark); }
.tp-top { padding: 16px 18px; background: var(--p-dark); color: color-mix(in srgb, var(--p-gold) 45%, #fff); }
.tp-top small { display: block; font-size: 10px; letter-spacing: .25em; font-weight: 800; color: var(--p-gold); }
.tp-top b { font-family: var(--serif); font-weight: 500; font-size: 20px; }
.tp-body { padding: 16px; display: grid; gap: 12px; }
.tp-card { padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--p-bg) 18%, #fff); border: 1px solid color-mix(in srgb, var(--p-ink) 12%, transparent); }
.tp-card i { display: block; font-family: var(--serif); font-size: 18px; }
.tp-card span { font-size: 12px; color: color-mix(in srgb, var(--p-ink) 60%, var(--p-bg)); }
.tp-voucher { padding: 14px; border-radius: 16px; font-weight: 800; font-size: 12px; letter-spacing: .14em; color: color-mix(in srgb, var(--p-gold) 24%, #000); background: linear-gradient(135deg, color-mix(in srgb, var(--p-gold) 22%, #fff), var(--p-gold) 60%, color-mix(in srgb, var(--p-gold) 45%, #fff)); }
.tp-btn { padding: 13px; border-radius: 14px; text-align: center; font-weight: 800; font-size: 14px; color: #fff7ea; background: var(--p-wine); }
.tp-nav { display: flex; justify-content: space-around; margin: 0 14px 14px; padding: 10px; border-radius: 18px; background: var(--p-dark); }
.tp-nav span { width: 34px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.tp-nav span.on { background: color-mix(in srgb, var(--p-gold) 70%, #fff); }
.ai-ans { padding: 14px 16px; border-radius: 16px; background: var(--bg); white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; }
.ai-av { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--side); color: var(--gold-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 55%, transparent); flex: none; }
.ai-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ai-av .ic { width: 26px; height: 26px; }
.ai-av i { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 12px/1 var(--sans); font-style: normal; color: var(--gold-ink); background: var(--gold-hi); box-shadow: 0 0 0 2px var(--card); }
.pay-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-sum > div { padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.pay-sum small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pay-sum b { font-size: 15px; }
.proof { display: block; max-height: 52vh; overflow: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.proof img { width: 100%; height: auto; }

/* áreas do salão (Salão, Varanda, Lá fora…) */
.floor.size-grande { aspect-ratio: 1 / 1; }
.floor.size-extra { aspect-ratio: 4 / 5; }
.area-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.area-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 800; font-size: 14px; color: var(--ink); cursor: pointer; }
.area-tabs button small { background: rgba(42, 29, 23, .08); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.area-tabs button.on { background: var(--wine); border-color: var(--wine); color: #fff7ea; }
.area-tabs button.on small { background: rgba(255, 255, 255, .2); }
.area-tabs button.add { border-style: dashed; color: var(--muted); }
.area-tabs button.add svg { width: 16px; height: 16px; }
.area-h { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 8px; }
.area-h:first-child { margin-top: 0; }
.area-h b { font-family: var(--serif); font-weight: 500; font-size: 19px; }
.area-h small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.stack-cards { display: grid; gap: 16px; align-content: start; }
.btn.pulse { animation: savePulse 1.6s ease-in-out infinite; }
@keyframes savePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(122, 31, 43, .45); } 50% { box-shadow: 0 0 0 8px rgba(122, 31, 43, 0); } }

/* moderação */
.mod-box { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.mod-box .muted { font-size: 13px; padding-left: 2px; }

/* abertura do convite: prévia */
.intro-prev { position: relative; width: 280px; max-width: 100%; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 28px; overflow: hidden; border: 6px solid var(--dark-0, #120b0a);
  background: radial-gradient(120% 70% at 50% 110%, rgba(184, 137, 59, .28), transparent 60%), linear-gradient(180deg, var(--wine-deep, #4a1219), var(--dark) 85%); color: var(--gold-soft, #f3e6c6); }
.intro-prev .ip-bg { position: absolute; max-width: none; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); object-fit: cover; }
.intro-prev .ip-dim { position: absolute; inset: 0; background: linear-gradient(180deg, var(--wine-deep, #4a1219), var(--dark) 85%); }
.intro-prev .ip-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; gap: 6px; }
.intro-prev small { font-size: 8px; letter-spacing: .3em; color: var(--gold-hi, #e9cf94); }
.intro-prev b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 1.05; color: #fff7ea; }
.intro-prev span { font-size: 11px; opacity: .8; max-width: 220px; }
.intro-prev .ip-cloche { position: relative; width: 120px; height: 74px; margin: 14px 0 8px; }
.intro-prev .ip-cloche i:first-child { position: absolute; left: 12px; right: 12px; bottom: 8px; height: 60px; border-radius: 60px 60px 0 0; background: linear-gradient(90deg, #6a655f, #f4f1ec 30%, #a9a39b 65%, #5c5853); }
.intro-prev .ip-cloche i:last-child { position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-deep, #8a6526), var(--gold-hi, #e9cf94), var(--gold, #b8893b), var(--gold-hi, #e9cf94), var(--gold-deep, #8a6526)); }
.intro-prev em { font-style: normal; font-weight: 800; font-size: 11px; padding: 8px 16px; border-radius: 999px; color: var(--gold-ink, #3a2a0e); background: linear-gradient(135deg, var(--gold-soft, #f3e6c6), var(--gold-mid, #d9b56c) 50%, var(--gold-hi, #e9cf94)); }
.intro-prev .ip-foot { position: absolute; bottom: 14px; left: 0; right: 0; opacity: .55; font-size: 7px; }
.range { width: 100%; accent-color: var(--wine); }

/* imagens */
.fmt-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.fmt-opt { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink); }
.fmt-opt b { font-size: 14.5px; }
.fmt-opt small { grid-column: 2; color: var(--muted); font-size: 12px; line-height: 1.35; }
.fmt-opt.on { border-color: var(--wine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine) 15%, transparent); }
.fmt-ic { grid-row: 1 / 3; display: flex; gap: 3px; align-items: center; width: 40px; justify-content: center; }
.fmt-ic i { display: block; border: 2px solid var(--wine); border-radius: 3px; }
.fmt-ic.vertical i { width: 12px; height: 16px; }
.fmt-ic.horizontal i { width: 16px; height: 12px; }
.fmt-ic.both i:first-child { width: 12px; height: 16px; }
.fmt-ic.both i:last-child { width: 16px; height: 12px; }
.fmt-ic.vertical i + i, .fmt-ic.horizontal i + i { display: none; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.img-card { overflow: hidden; display: flex; flex-direction: column; }
.img-th { position: relative; display: block; aspect-ratio: 4 / 3; background: repeating-conic-gradient(#efe6d8 0 25%, #f8f2e8 0 50%) 0 0 / 16px 16px; }
.img-th { overflow: hidden; flex: none; }
.img-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.img-meta .chip { white-space: normal; text-align: left; line-height: 1.3; }
.img-fmt { position: absolute; left: 8px; top: 8px; background: rgba(28, 18, 16, .72); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.img-meta { padding: 10px 12px 4px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; flex: 1; align-content: flex-start; }
.img-meta small { width: 100%; font-size: 11.5px; }
.img-act { display: flex; justify-content: flex-end; gap: 4px; padding: 0 8px 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--wine); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }

/* portaria: quantas pessoas do convite já entraram (anti-penetra) */
.door-count { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; }
.door-count i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); }
.door-count i.in { background: #fff; }
.door-count span { width: 100%; font-weight: 800; font-size: 14px; margin-top: 2px; }
.door-how { margin-top: 14px; padding: 16px; text-align: center; display: grid; gap: 10px; }
.door-how b { font-size: 17px; }
.door-how small { color: var(--muted); font-size: 13px; }
.door-step { display: flex; align-items: center; justify-content: center; gap: 22px; }
.door-step button { width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--gold-soft); color: var(--ink); font-size: 30px; font-weight: 800; cursor: pointer; }
.door-step output { font-family: var(--serif); font-size: 46px; min-width: 50px; }

/* links de grupo */
.group-card.off { opacity: .7; }
.gc-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.gc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; text-align: center; }
.gc-stats div { background: var(--bg); border-radius: 14px; padding: 10px 4px; }
.gc-stats b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.gc-stats b span { font-size: 14px; color: var(--muted); }
.gc-stats small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.gc-link { display: flex; gap: 8px; align-items: center; margin: 10px 0 12px; }
.gc-link .field { flex: 1; font-size: 13px; }
/* prévia das redes sociais */
.social-prev { display: grid; gap: 14px; }
.sp-bot { border: 1px solid var(--line); border-radius: 22px; padding: 14px; display: grid; gap: 12px; background: var(--card); }
.sp-in { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 14px; color: var(--muted); font-size: 13px; }
.sp-in i { width: 32px; height: 32px; border-radius: 50%; background: var(--wine); }
.sp-google { border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.sp-google p { margin: 0; font-size: 13.5px; }

/* vitrine (títulos e quantidade no convite) */
.vitrine { display: grid; gap: 14px; }
.vit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.vit-prev { border: 1px dashed rgba(42, 29, 23, .18); border-radius: 14px; padding: 12px 16px; }
.vit-prev .eb { margin: 4px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #a9803f); }
.vit-prev .tt { margin: 2px 0 0; font-family: var(--serif); font-size: 26px; }
.vit-prev .tt em { color: var(--gold, #a9803f); }
.rs-h { margin: 6px 0 -4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #7a6a5f); }
/* edições anteriores */
.ed-list { display: grid; gap: 12px; }
.ed-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 12px; }
.ed-row.off { opacity: .55; }
.ed-cv { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: rgba(42, 29, 23, .06); display: grid; place-items: center; }
.ed-cv img { width: 100%; height: 100%; object-fit: cover; }
.ed-cv span svg { width: 28px; height: 28px; opacity: .4; }
.ed-info { display: grid; gap: 4px; min-width: 0; }
.ed-info b { font-size: 18px; font-weight: 500; }
.ed-info .muted { font-size: 13px; }
.ed-mini { display: flex; gap: 4px; margin-top: 4px; }
.ed-mini img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.ed-act { display: grid; gap: 8px; justify-items: end; }
.ed-act .icon-btn[disabled] { opacity: .3; pointer-events: none; }
@media (max-width: 720px) { .ed-row { grid-template-columns: 96px 1fr; } .ed-act { grid-column: 1 / -1; justify-items: stretch; } .ed-act .actions { justify-content: flex-end; } }
.ed-cover { position: relative; border-radius: 14px; overflow: hidden; }
.ed-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.ed-cv-act { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.ed-cv-act .btn { background: rgba(255, 255, 255, .92); }
.ed-drop { display: grid; place-items: center; gap: 4px; padding: 26px 16px; border: 1.5px dashed rgba(42, 29, 23, .25); border-radius: 14px; cursor: pointer; text-align: center; }
.ed-drop svg { width: 26px; height: 26px; }
.ed-drop small { color: var(--muted, #7a6a5f); }
.ed-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ed-ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(42, 29, 23, .06); }
.ed-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-ph.is-cv { outline: 3px solid var(--gold, #a9803f); outline-offset: -3px; }
.ed-ph .chip { position: absolute; left: 6px; top: 6px; font-size: 10px; padding: 2px 7px; }
.ed-ph-cv { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; }
.ed-ph-x { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(20, 12, 10, .65); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ed-ph-x svg { width: 13px; height: 13px; }
.ed-ph-mv { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: space-between; padding: 0 5px; }
.ed-ph-mv button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.ed-add { display: grid; place-content: center; justify-items: center; gap: 4px; cursor: pointer; border: 1.5px dashed rgba(42, 29, 23, .25); background: none; font-size: 12px; font-weight: 700; text-align: center; padding: 6px; }
.ed-add svg { width: 22px; height: 22px; }
.ed-ph-cv { background: rgba(20, 12, 10, .6); color: #fff; font-weight: 700; }
.ed-ph .chip.gold { background: var(--gold, #a9803f); color: #fff; }

/* cardápio: foto do prato e do item com envio direto */
.dish-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; margin-top: 10px; }
.dish-tx { display: grid; grid-template-columns: 1fr; gap: 6px; }
.dish-ph, .dish-ph img { width: 72px; height: 72px; }
@media (max-width: 720px) { .dish-tx { grid-template-columns: 1fr; } }
.dish-ph { width: 64px; height: 64px; border-radius: 12px; border: 1.5px dashed rgba(42, 29, 23, .28); background: #fff; display: grid; place-content: center; justify-items: center; gap: 2px; cursor: pointer; padding: 0; overflow: hidden; color: var(--muted, #7a6a5f); }
.dish-ph svg { width: 20px; height: 20px; }
.dish-ph small { font-size: 10.5px; font-weight: 800; }
.dish-ph.has { border: 0; }
.dish-ph img { width: 64px; height: 64px; object-fit: cover; display: block; }
.pick-inline { display: flex; gap: 12px; align-items: center; }
.pick-inline > img, .pick-empty { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.pick-empty { display: grid; place-items: center; background: rgba(42, 29, 23, .06); }
.pick-empty svg { width: 24px; height: 24px; opacity: .45; }
.pick-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pick-box { display: grid; gap: 12px; justify-items: start; }
.pick-box > img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; }
.pick-none { width: 100%; padding: 30px; border-radius: 14px; background: rgba(42, 29, 23, .05); display: grid; justify-items: center; gap: 6px; color: var(--muted, #7a6a5f); }
.pick-none svg { width: 28px; height: 28px; }

/* sorteio */
.tv-tip { display: flex; gap: 12px; align-items: flex-start; }
.tv-tip > svg, .tv-tip > .ic { width: 22px; height: 22px; flex: none; color: var(--gold, #a9803f); margin-top: 2px; }
.mode-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 720px) { .mode-opts { grid-template-columns: 1fr; } }
.mode-opt { text-align: left; display: grid; gap: 3px; padding: 12px; border-radius: 14px; border: 1.5px solid rgba(42, 29, 23, .14); background: #fff; cursor: pointer; }
.mode-opt b { font-size: 14px; }
.mode-opt small { font-size: 12px; color: var(--muted, #7a6a5f); line-height: 1.35; }
.mode-opt.on { border-color: var(--wine, #7a1f2b); box-shadow: 0 0 0 3px rgba(122, 31, 43, .1); }
.draw .draw-img { width: 120px; height: 120px; object-fit: cover; border-radius: 18px; margin: 0 auto 10px; display: block; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
/* prévia do link (simulação do WhatsApp) */
.wa-chat { background: #efeae2; border-radius: 16px; padding: 18px; min-height: 200px; display: flex; justify-content: flex-end; align-items: flex-start; }
.wa-bubble { background: #d9fdd3; border-radius: 10px 0 10px 10px; padding: 4px 4px 6px; width: min(330px, 100%); box-shadow: 0 1px 1px rgba(0, 0, 0, .1); font-family: system-ui, sans-serif; position: relative; }
.wa-card { background: rgba(0, 0, 0, .05); border-radius: 7px; overflow: hidden; }
.wa-bubble.small .wa-card { display: flex; }
.wa-bubble.small .wa-card img, .wa-bubble.small .wa-noimg { width: 86px; height: 86px; object-fit: cover; flex: none; background: #c9c3b8; }
.wa-bubble.large .wa-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.wa-bubble.large .wa-noimg { display: block; aspect-ratio: 1200 / 630; background: #c9c3b8; }
.wa-tx { padding: 7px 9px; display: grid; gap: 2px; min-width: 0; }
.wa-tx b { font-size: 13.5px; color: #111b21; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-tx span { font-size: 12.5px; color: #54656f; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-tx small { font-size: 11.5px; color: #8696a0; }
.wa-link { margin: 6px 6px 0; font-size: 13.5px; color: #027eb5; word-break: break-all; }
.wa-time { display: block; text-align: right; font-size: 11px; color: #667781; margin: 0 6px; }

/* senha com olhinho, entrada e recuperação */
.pw { position: relative; }
.pw .field { padding-right: 50px; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover { background: rgba(42, 29, 23, .06); color: var(--ink); }
.pw-eye svg { width: 20px; height: 20px; }
.login-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; display: block; margin-bottom: 10px; }
.login .forgot { display: block; margin: 14px auto 0; font-size: 14px; }
.login .f + .f { margin-top: 12px; }
.secret-q { display: flex; gap: 10px; align-items: flex-start; background: rgba(184, 137, 59, .1); border: 1px solid rgba(184, 137, 59, .3); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.secret-q svg, .secret-none svg, .secret-ok svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.secret-none { display: flex; gap: 10px; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 14px; padding: 12px 14px; }
.secret-none p { margin: 0; color: inherit; }
.secret-none.small { font-size: 13.5px; margin-bottom: 12px; }
.secret-ok { display: flex; gap: 10px; align-items: flex-start; background: #ecfdf3; border: 1px solid #bbe5c8; color: #1f6b3a; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 13.5px; }
/* manual */
.man-hero { padding: 28px; display: grid; gap: 22px; background: radial-gradient(120% 140% at 0% 0%, var(--wine-deep, #5a1520), var(--dark, #1c1210) 70%); color: #f3e6c6; margin-bottom: 16px; }
.man-hero .eyebrow { color: var(--gold-hi, #e9cf94); }
.man-hero h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3vw, 30px); margin: 6px 0 8px; color: #fff; }
.man-hero p { margin: 0; opacity: .82; line-height: 1.55; max-width: 640px; }
.man-quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .man-quick { grid-template-columns: 1fr 1fr; } }
.man-quick li { position: relative; display: grid; gap: 8px; justify-items: start; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(243, 230, 198, .12); }
.man-quick li span { position: absolute; right: 12px; top: 10px; font-family: var(--serif); font-size: 26px; color: var(--gold-hi, #e9cf94); opacity: .55; }
.man-quick svg { width: 24px; height: 24px; color: var(--gold-hi, #e9cf94); }
.man-quick b { font-size: 14px; }
.man-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.man-index button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(42, 29, 23, .12); background: var(--card); font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }
.man-index button:hover { border-color: var(--wine); color: var(--wine); }
.man-index svg { width: 15px; height: 15px; }
.man-list { display: grid; gap: 14px; }
.man-sec { padding: 22px 24px; scroll-margin-top: 16px; }
.man-sec header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.man-ic { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(184, 137, 59, .14); color: #8a6420; }
.man-ic svg { width: 22px; height: 22px; }
.man-sec small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.man-sec h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 2px 0 2px; }
.man-sec header p { margin: 0; color: var(--muted); font-size: 14px; }
.man-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.man-steps li { counter-increment: st; position: relative; padding: 2px 0 2px 42px; line-height: 1.55; font-size: 15px; }
.man-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.man-tip { margin-top: 14px; display: grid; gap: 4px; padding: 12px 16px; border-radius: 14px; background: #fbf5e8; border-left: 4px solid var(--gold, #b8893b); font-size: 14px; line-height: 1.5; }
.man-go { margin-top: 14px; }
.man-end { margin-top: 14px; text-align: center; color: var(--muted); }
@media print {
  .side, .mtabs, .man-index, #mPrint, .man-go { display: none !important; }
  .shell { display: block !important; }
  .man-sec, .man-hero { break-inside: avoid; box-shadow: none !important; border: 1px solid #ddd; }
  .man-hero { background: #fff !important; color: #222 !important; }
  .man-hero h2, .man-quick svg, .man-quick li span, .man-hero .eyebrow { color: #222 !important; }
}

.app-opts { display: grid; gap: 14px; }
.app-opts .switch { align-items: flex-start; }
.app-opts .switch span { display: grid; gap: 3px; }
.app-opts .switch small { color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.4; }

.side-copy { margin: 14px 4px 0; font-size: 11px; line-height: 1.4; opacity: .5; }

.login { align-content: center; }
.login .login-copy { margin: 18px 0 0; font-size: 11px; color: rgba(243, 230, 198, .5); text-align: center; }
.man-end { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 18px 22px; text-align: left !important; color: var(--ink) !important; }
.man-end > div:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 200px; }
.man-end span { color: var(--muted); font-size: 14px; }
.dev-ic { width: 46px; height: 46px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.dev-ic svg { width: 24px; height: 24px; }

.alert-bar { margin-top: 16px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #f6ead2; border-color: transparent; }

.wall-pend { flex-basis: 100%; display: grid; gap: 8px; }
.wall-pend .wp { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: rgba(255, 255, 255, .7); border-radius: 14px; padding: 10px 14px; }
.wall-pend .wp p { margin: 2px 0 0; font-size: 14px; }
.wall-pend .wp > div:first-child { flex: 1; min-width: 180px; }

/* Movimento: nunca mais alto que o mapa do salão (rola por dentro) */
@media (min-width: 900px) {
  #dashGrid > .feed-card { display: flex; flex-direction: column; height: 0; min-height: 100%; }
  #dashGrid > .feed-card .feed { flex: 1; min-height: 0; max-height: none; align-content: start; }
}
/* Recados & Avaliações: cada quadro com rolagem própria */
.soc-list { max-height: 460px; overflow-y: auto; }
.soc-search { margin: 0 0 14px; max-width: 460px; }

/* Link de encaixe */
.enc-card { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.enc-qr { width: 150px; height: 150px; flex: none; background: #fff; border-radius: 16px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.enc-qr svg { width: 100%; height: 100%; display: block; }
.enc-body { flex: 1; min-width: 260px; }
.enc-link code { display: block; padding: 10px 12px; background: var(--paper, #f7efe2); border-radius: 10px; font-size: 13px; word-break: break-all; }
.enc-edit summary { cursor: pointer; font-weight: 700; font-size: 14px; margin-top: 12px; }

.tv-tip { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; background: #f6ead2; border-color: transparent; }
/* banner do encaixe: prévia + ajustes */
.bn-edit { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; align-items: flex-start; }
.bn-edit canvas { width: 216px; height: 270px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18); flex: none; background: #2a1d17; }
.bn-edit form { flex: 1; min-width: 240px; }
.bn-edit input[type=range] { width: 100%; accent-color: var(--wine); }
/* financeiro do Início */
.fin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.fin-kpis > div { padding: 12px 14px; border-radius: 14px; background: var(--paper, #f7efe2); display: grid; gap: 2px; }
.fin-kpis small { font-size: 12px; color: var(--muted); font-weight: 700; }
.fin-kpis b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.fin-kpis span { font-size: 12px; color: var(--muted); }
.fin-extra { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 13px; }
.fin-debt summary { cursor: pointer; font-weight: 700; margin-top: 12px; }
.fin-list { max-height: 330px; overflow: auto; margin-top: 6px; }
@media (max-width: 900px) { .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Cozinha: mesas liberadas e etapas de cada tempo do cardápio */
.kz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.kz { padding: 14px 16px; }
.kz.done { opacity: .6; }
.kz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.kz-mesa { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.kz-ppl { font-weight: 800; font-size: 18px; white-space: nowrap; }
.kz-ppl small { font-weight: 600; font-size: 13px; opacity: .7; }
.kz-diet { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(231, 168, 72, .16); color: #f1bd6a; font-weight: 700; font-size: 13px; }
.kz-steps { display: grid; gap: 8px; margin-top: 10px; }
.kz-step { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(243, 230, 198, .08); }
.kz-step b { display: block; font-size: 15px; }
.kz-step small { display: block; font-size: 12px; opacity: .65; }
.kz-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.staff-ui .link-btn { color: rgba(243, 230, 198, .7); }
/* Ao vivo (painel): serviço das mesas */
.svc-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
/* Balcão (bar e cozinha): a mesa em destaque */
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.bk { padding: 14px 16px; border-left: 6px solid var(--gold, #b8893b); }
.bk.late { border-left-color: #e2554f; }
.bk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bk-mesa { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: .02em; }
.bk-time { font-weight: 800; font-size: 14px; opacity: .8; }
.bk.late .bk-time { color: #ff9c8f; opacity: 1; }
.bk-items { margin: 8px 0; font-size: 19px; line-height: 1.45; }
.bk-items b { color: var(--gold-hi, #e9cf93); }
.bk-note { padding: 6px 10px; border-radius: 10px; background: rgba(231, 168, 72, .16); color: #f1bd6a; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
/* Garçom: lançar pedido */
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tk-mesa { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.1; }
.tk-mesa small { font-size: 15px; opacity: .7; }
.tabs-row { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0 8px; padding-bottom: 4px; }
.tabs-row button { flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(243, 230, 198, .18); background: transparent; color: inherit; font-weight: 700; }
.tabs-row button.on { background: var(--gold, #b8893b); color: #2a1d17; border-color: transparent; }
.tk-item { gap: 10px; }
.tk-q { display: flex; align-items: center; gap: 8px; flex: none; }
.tk-q button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--dark-3, #3a2a22); color: #f6ead6; font-size: 22px; font-weight: 800; }
.tk-q output { min-width: 22px; text-align: center; font-size: 20px; font-weight: 800; }
.tk-bar { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--dark); margin-top: 10px; }
/* Ao vivo: conta detalhada por mesa */
.bill-d > summary { list-style: none; cursor: pointer; }
.bill-d > summary::-webkit-details-marker { display: none; }
.bill-d[open] > summary { background: var(--paper, #f7efe2); }
.bill-t { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 8px; }
.bill-t th, .bill-t td { padding: 7px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.bill-t th:nth-child(n+2), .bill-t td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.bill-t td small { display: block; color: var(--muted); font-size: 11.5px; }
.bill-t tfoot td { font-weight: 800; border: 0; }
.tk-handed { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px; border-radius: 14px; background: rgba(95, 191, 135, .12); cursor: pointer; }
.tk-handed input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: #2f9d5d; }
.tk-handed small { display: block; font-size: 12.5px; opacity: .75; margin-top: 2px; }
/* pessoas da equipe */
.mem-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 8px; margin-top: 10px; }
@media (max-width: 900px) { .mem-form { grid-template-columns: 1fr 1fr; } .mem-form .btn { grid-column: 1 / -1; } }
.mem-list { display: grid; gap: 10px; margin-top: 14px; }
.mem { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.mem-qr { width: 84px; flex: none; cursor: zoom-in; background: #fff; border-radius: 10px; padding: 4px; }
.mem-qr svg { width: 100%; height: auto; display: block; }
.mem .chip svg { width: 14px; height: 14px; }
@media (max-width: 560px) { .mem-qr { width: 64px; } }
.mem-form > * { min-width: 0; }
@media (max-width: 900px) { .mem-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.mem > div { min-width: 0; }
.mem .actions { flex-wrap: wrap; }
/* convite destacado (vindo da Lista VIP) e avisos do Novo convite */
.item.hl { animation: hlPulse 1.4s ease-in-out 3; background: var(--gold-soft); border-radius: 14px; }
@keyframes hlPulse { 50% { box-shadow: 0 0 0 3px var(--gold-mid); } }
.person-hint { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .04); font-size: 14px; }
.person-hint.danger { background: rgba(192, 57, 43, .1); }
.person-hint.warn { background: rgba(183, 121, 31, .12); }
/* balcão: pedido pronto esperando o garçom (verde) */
.bk.bk-ready { border: 2px solid #2f9d5d; background: linear-gradient(180deg, rgba(47, 157, 93, .28), rgba(47, 157, 93, .1)); }
.bk.bk-ready .bk-time { color: #8fe0ad; opacity: 1; }
.bk.bk-ready.late .bk-time { color: #ffb4a8; }
.avatar.bad { background: #b4232f; }
.remember { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; text-align: left; cursor: pointer; }
.remember input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--wine); }
.remember small { display: block; opacity: .7; font-size: 12px; }
.terms { text-align: left; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(122, 31, 43, .07); font-size: 13.5px; line-height: 1.45; }
.terms ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
/* login: entrar na demonstração sem senha */
.demo-enter { display: grid; gap: 8px; margin-top: 22px; padding: 16px; border-radius: 14px; border: 1px dashed rgba(122, 31, 43, .35); text-align: left; }
.demo-enter span { font-size: 13.5px; opacity: .8; }
