/* ==========================================================================
   Painel da confeiteira — usa os tokens do style.css
   ========================================================================== */
.adm { background: var(--ivory); min-height: 100vh; min-height: 100dvh; }
.adm::before { background: var(--choc-900); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Tela de senha ---------- */
.lock { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px 16px; background: var(--choc-950); overflow: auto; }
.lock__bg { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; opacity: .4; filter: blur(14px) saturate(1.1); transform: scale(1.06); }
.lock__bg img { width: 100%; height: 100%; object-fit: cover; }
.lock::after { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 45%, rgba(28,13,7,.35), rgba(28,13,7,.92)); }
.lock__card {
  position: relative; z-index: 1; width: min(360px, 100%); display: grid; justify-items: center; text-align: center;
  padding: 36px 28px 26px; border-radius: 28px; color: var(--on-dark);
  background: rgba(36,19,11,.62); border: 1px solid rgba(243,231,218,.14); backdrop-filter: blur(18px); box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.lock__logo { font-family: var(--f-signature); font-size: 2.6rem; line-height: 1; }
.lock__eyebrow { margin: 8px 0 0; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--on-dark-soft); }
.lock__title { margin: 22px 0 18px; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.lock__input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.lock__dots { display: flex; gap: 14px; }
.lock__dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(243,231,218,.55); transition: background .2s, transform .25s var(--ease); }
.lock__dots i.on { background: var(--on-dark); border-color: var(--on-dark); transform: scale(1.12); }
.lock__dots.ok i { background: #9fd3a4; border-color: #9fd3a4; }
.lock__dots.err { animation: shake .45s; }
.lock__dots.err i { border-color: #f0a3a3; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.lock__msg { min-height: 1.4em; margin: 12px 0 6px; font-size: .78rem; color: #f0c9b8; }
.keypad { display: grid; grid-template-columns: repeat(3, 64px); gap: 12px 20px; }
.keypad button {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(243,231,218,.16); background: rgba(243,231,218,.06);
  font: 400 1.5rem/1 var(--f-display); color: var(--on-dark); display: grid; place-items: center; transition: background .2s, transform .15s;
}
.keypad button:hover { background: rgba(243,231,218,.14); }
.keypad button:active { transform: scale(.92); background: rgba(243,231,218,.24); }
.keypad svg { width: 22px; height: 22px; }
.keypad .keypad__ok { background: var(--on-dark); color: var(--choc-900); border-color: transparent; }
.keypad .keypad__ok:hover { background: #fff; }
.lock__back { margin-top: 22px; font-size: .74rem; color: var(--on-dark-soft); }
.lock.is-leaving { animation: lockOut .6s var(--ease) forwards; }
@keyframes lockOut { to { opacity: 0; transform: scale(1.04); visibility: hidden; } }

/* ---------- Estrutura ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 28px;
  padding: 28px 18px 22px; background: var(--choc-900); color: var(--on-dark);
}
.side__logo { display: grid; text-decoration: none; padding: 0 10px; }
.side__logo .logo__mark { font-family: var(--f-signature); font-size: 2rem; line-height: 1; }
.side__logo .logo__sub { font-size: .58rem; letter-spacing: .36em; text-transform: uppercase; color: var(--on-dark-soft); margin: 4px 0 0 18px; }
.side__nav { display: grid; gap: 4px; }
.side__nav button, .side__foot a, .side__foot button {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px;
  background: transparent; color: var(--on-dark-soft); text-decoration: none; font-size: .86rem; text-align: left; transition: background .25s, color .25s;
}
.side svg { width: 20px; height: 20px; flex: none; }
.side__nav button:hover, .side__foot a:hover, .side__foot button:hover { color: var(--on-dark); background: rgba(243,231,218,.06); }
.side__nav button[aria-current="page"] { color: var(--choc-900); background: var(--on-dark); }
.side__dot { position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #e9a23b; box-shadow: 0 0 0 4px rgba(233,162,59,.18); }
.side__foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line-dark); padding-top: 14px; }

.main { padding: 34px clamp(18px, 3.4vw, 48px) 80px; min-width: 0; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.top__eyebrow { margin: 0 0 6px; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.top__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.top__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.view { animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Botões ---------- */
.abtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  background: var(--choc-850); color: var(--on-dark); font: 500 .74rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.abtn svg { width: 16px; height: 16px; }
.abtn:hover { background: var(--cocoa); }
.abtn:active { transform: scale(.97); }
.abtn--ghost { background: transparent; color: var(--ink); border-color: var(--line-light); }
.abtn--ghost:hover { background: rgba(42,23,16,.05); border-color: var(--ink); }
.abtn--danger { color: var(--wine); }
.abtn--danger-solid { background: var(--wine); }
.abtn--danger-solid:hover { background: #5e1627; }
.abtn--wine { background: var(--wine); }
.abtn--wine:hover { background: #5e1627; }
.ibtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--ink-soft); transition: background .2s, color .2s; }
.ibtn:hover { background: rgba(42,23,16,.07); color: var(--ink); }
.ibtn svg { width: 18px; height: 18px; }
.ibtn--danger:hover { color: var(--wine); background: rgba(122,31,51,.08); }
.grow { flex: 1; }

/* ---------- Início ---------- */
.hello { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 30px 32px; border-radius: 24px; color: var(--on-dark); background: linear-gradient(120deg, var(--choc-900), var(--choc-700)); margin-bottom: 22px; }
.hello__script { font-family: var(--f-script); font-size: 1.6rem; color: #f0c9b8; margin: 0; }
.hello h2 { margin: 4px 0 8px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
.hello p { margin: 0; color: var(--on-dark-soft); font-size: .88rem; max-width: 52ch; }
.hello__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hello .abtn { background: var(--on-dark); color: var(--choc-900); }
.hello .abtn:hover { background: #fff; }
.hello .abtn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(243,231,218,.4); }
.hello .abtn--ghost:hover { background: rgba(243,231,218,.1); }
.hello__pics { position: absolute; right: -30px; top: -30px; bottom: -30px; width: 300px; display: flex; gap: 10px; transform: rotate(8deg); opacity: .16; pointer-events: none; }
.hello__pics img { width: 90px; height: 100%; object-fit: cover; border-radius: 16px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line-light); display: grid; gap: 4px; text-align: left; color: inherit; font: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
button.stat:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(42,23,16,.5); }
.stat b { font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.stat span { font-size: .78rem; color: var(--ink-soft); }
.stat--wine b { color: var(--wine); }

.cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.card { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line-light); }
.card h3 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; }
.card > p { margin: 0 0 16px; color: var(--ink-soft); font-size: .82rem; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--ivory); }
.mini img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.mini span { flex: 1; min-width: 0; font-size: .84rem; line-height: 1.3; }
.mini small { display: block; color: var(--ink-soft); font-size: .72rem; }
.mini .tag-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--wine); color: var(--on-dark); flex: none; }
.mini .tag-ico svg { width: 20px; height: 20px; }
.empty { padding: 26px; text-align: center; color: var(--ink-soft); font-size: .84rem; border: 1.5px dashed var(--line-light); border-radius: 16px; }
.empty .script { display: block; font-size: 1.5rem; color: var(--ink); }

/* switch */
.switch { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; align-self: end; cursor: pointer; padding: 8px 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { grid-row: span 2; position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--sand-2); transition: background .25s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .3s var(--ease); }
.switch input:checked + span { background: #3f7d4a; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.switch b { font-weight: 500; font-size: .86rem; }
.switch small { font-size: .72rem; color: var(--ink-soft); }
.switch--sm span { width: 38px; height: 22px; }
.switch--sm span::after { width: 16px; height: 16px; }
.switch--sm input:checked + span::after { transform: translateX(16px); }

/* ---------- Produtos ---------- */
.toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar .chips { margin: 0; }
.psearch { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; border-radius: 999px; background: #fff; border: 1px solid var(--line-light); min-width: 220px; }
.psearch svg { width: 16px; height: 16px; color: var(--ink-soft); }
.psearch input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .86rem; width: 100%; color: var(--ink); }
.hint { margin: 6px 0 18px; font-size: .74rem; color: var(--ink-soft); }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line-light); transition: transform .25s var(--ease), box-shadow .25s, opacity .2s; }
.pcard:hover { box-shadow: 0 18px 36px -26px rgba(42,23,16,.6); }
.pcard.is-drag { opacity: .4; }
.pcard.is-over { outline: 2px dashed var(--gold); outline-offset: 3px; }
.pcard__img { position: relative; aspect-ratio: 5 / 4; background: var(--sand); cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard.is-off .pcard__img img { filter: grayscale(.8); opacity: .6; }
.pcard__grip { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(251,246,239,.9); color: var(--ink-soft); cursor: grab; }
.pcard__grip svg { width: 16px; height: 16px; }
.pcard__flag { position: absolute; right: 8px; top: 8px; padding: 5px 9px; border-radius: 999px; font-size: .56rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--wine); color: var(--on-dark); }
.pcard__flag--off { background: var(--choc-850); }
.pcard__body { display: grid; gap: 2px; padding: 14px 14px 10px; }
.pcard__cat { font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cocoa); }
.pcard h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.05rem; line-height: 1.2; }
.pcard__price { font-size: .82rem; color: var(--ink-soft); }
.pcard__price b { color: var(--ink); font-weight: 500; }
.pcard__foot { display: flex; align-items: center; gap: 2px; padding: 6px 8px 8px 14px; border-top: 1px solid var(--line-light); margin-top: 8px; }
.pcard__foot .switch { padding: 0; align-self: center; }
.pcard__foot .switch b { font-size: .74rem; }
.pcard--new { display: grid; place-items: center; min-height: 280px; border: 1.5px dashed var(--sand-2); background: transparent; color: var(--ink-soft); font: inherit; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.pcard--new:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.pcard--new span { display: grid; justify-items: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.pcard--new svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--choc-850); color: var(--on-dark); }

/* ---------- Promoções ---------- */
.plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.ticket { position: relative; display: grid; grid-template-rows: auto 1fr auto; border-radius: 20px; background: #fff; border: 1px solid var(--line-light); overflow: hidden; }
.ticket__top { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; color: var(--on-dark); background: radial-gradient(120% 140% at 0% 0%, #8a2b40 0%, var(--wine) 50%, #4f1220 100%); }
.ticket.is-off .ticket__top { background: linear-gradient(120deg, #6d6058, #4d423c); }
.ticket__ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(243,231,218,.14); flex: none; font-family: var(--f-display); }
.ticket__ico svg { width: 20px; height: 20px; }
.ticket__top p { margin: 0; font-family: var(--f-display); font-size: 1.08rem; line-height: 1.25; }
.ticket__top small { display: block; font-family: var(--f-body); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; opacity: .75; margin-bottom: 3px; }
.ticket__cut { position: relative; height: 0; border-top: 1.5px dashed var(--line-light); margin: 0 16px; }
.ticket__cut::before, .ticket__cut::after { content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line-light); }
.ticket__cut::before { left: -27px; } .ticket__cut::after { right: -27px; }
.ticket__body { padding: 14px 18px; display: grid; gap: 4px; font-size: .8rem; color: var(--ink-soft); }
.ticket__body b { color: var(--ink); font-weight: 500; }
.ticket__foot { display: flex; align-items: center; gap: 2px; padding: 8px 8px 10px 18px; border-top: 1px solid var(--line-light); }
.ticket__foot .switch { padding: 0; align-self: center; }
.ticket__foot .switch b { font-size: .74rem; }
.ticket--new { display: grid; place-items: center; min-height: 220px; border: 1.5px dashed var(--sand-2); border-radius: 20px; background: transparent; color: var(--ink-soft); font: inherit; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.ticket--new:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.ticket--new span { display: grid; justify-items: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.ticket--new svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--wine); color: var(--on-dark); }

/* ---------- Editor (sheet) ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; visibility: hidden; overflow: hidden; }
.sheet.is-open { visibility: visible; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(28,13,7,.5); opacity: 0; transition: opacity .35s; backdrop-filter: blur(2px); }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(980px, 100%); display: grid; grid-template-rows: auto 1fr auto;
  background: var(--ivory); box-shadow: -30px 0 80px rgba(0,0,0,.25); transform: translateX(100%); transition: transform .45s var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--line-light); }
.sheet__head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }
.sheet__x { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-light); background: transparent; display: grid; place-items: center; }
.sheet__x svg { width: 18px; height: 18px; }
.sheet__body { overflow: auto; padding: 24px 28px; }
.sheet__foot { display: flex; align-items: center; gap: 10px; padding: 16px 28px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-light); background: #fff; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.editor__fields { display: grid; gap: 16px; }
.editor__preview { position: sticky; top: 0; display: grid; gap: 14px; }
.editor__label { margin: 0; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.preview-grid { list-style: none; margin: 0; padding: 0; }
.preview-grid .doce { animation: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.af { display: grid; gap: 6px; position: relative; }
.af label { font-size: .74rem; font-weight: 500; }
.af label small { font-weight: 400; color: var(--ink-soft); }
.af input, .af textarea, .af select, .sentence select, .sentence input {
  width: 100%; border: 1px solid var(--line-light); border-radius: 12px; background: #fff; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.af textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.af input:focus, .af textarea:focus, .sentence select:focus, .sentence input:focus { outline: 0; border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(123,76,52,.14); }
.af input[aria-invalid="true"] { border-color: var(--wine); }
.af--money span { position: absolute; left: 14px; bottom: 13px; font-size: .9rem; color: var(--ink-soft); }
.af--money input { padding-left: 40px; }
[data-count] { float: right; }
.form-err { margin: 0; min-height: 1.2em; color: var(--wine); font-size: .8rem; }

.drop { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 18px; border: 1.5px dashed var(--sand-2); background: #fff; cursor: pointer; overflow: hidden; transition: border-color .25s, background .25s; }
.drop:hover, .drop.is-over { border-color: var(--cocoa); background: var(--ivory); }
.drop__empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 16px; color: var(--ink-soft); font-size: .8rem; }
.drop__empty svg { width: 34px; height: 34px; color: var(--cocoa); }
.drop__empty b { color: var(--ink); font-weight: 500; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop__change { position: absolute; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 999px; background: rgba(28,13,7,.7); color: var(--on-dark); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.drop.has-img .drop__empty { display: none; }

.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.type input { position: absolute; opacity: 0; }
.type span { display: grid; justify-items: start; gap: 4px; height: 100%; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line-light); background: #fff; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.type span:hover { border-color: var(--ink-soft); }
.type input:checked + span { border-color: var(--wine); background: rgba(122,31,51,.05); box-shadow: inset 0 0 0 1px var(--wine); }
.type input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.type svg { width: 24px; height: 24px; color: var(--wine); }
.type__big { font-family: var(--f-display); font-size: 1.3rem; line-height: 1; color: var(--wine); font-weight: 400; }
.type b { font-weight: 500; font-size: .84rem; }
.type small { font-size: .72rem; color: var(--ink-soft); line-height: 1.35; }

.sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line-light); font-family: var(--f-display); font-size: 1.15rem; }
.sentence select, .sentence input { width: auto; font-family: var(--f-body); font-size: 16px; padding: 9px 12px; border-radius: 10px; background: var(--ivory); }
.sentence input[type="number"] { width: 76px; text-align: center; }
.sentence select { max-width: 100%; }

.sim { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line-light); font-size: .8rem; color: var(--ink-soft); display: grid; gap: 6px; }
.sim b { color: var(--ink); font-weight: 500; }
.sim .sim__total { display: flex; justify-content: space-between; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line-light); color: var(--ink); }
.sim .sim__good { color: #3f7d4a; font-weight: 500; }
.editor__preview .promo__text, .editor__preview .promo__meta { padding-right: 0; }
.editor__preview .promo::after, .editor__preview .promo__go { display: none; }

/* ---------- Publicar ---------- */
.pubsteps { list-style: none; counter-reset: s; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pubsteps li { counter-increment: s; position: relative; padding: 22px 20px 20px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line-light); font-size: .84rem; color: var(--ink-soft); }
.pubsteps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--choc-850); color: var(--on-dark); font-family: var(--f-display); }
.pubsteps b { display: block; color: var(--ink); font-weight: 500; font-size: .92rem; margin-bottom: 4px; }
.pubsteps code { font-size: .78rem; background: var(--ivory); padding: 2px 6px; border-radius: 6px; }
.status { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; margin-bottom: 18px; background: rgba(63,125,74,.08); color: #2f6139; font-size: .86rem; }
.status--dirty { background: rgba(233,162,59,.12); color: #8a5a12; }
.status b { font-weight: 600; }
.status .abtn { margin-left: auto; }
.meter { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--cocoa); border-radius: inherit; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.tools .card { display: grid; gap: 10px; align-content: start; }
.tools .card p { margin: 0; }
.pin-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pin-row input { flex: 1; min-width: 120px; border: 1px solid var(--line-light); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 16px; letter-spacing: .3em; }

/* ---------- Confirmação + toast ---------- */
.ask { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(28,13,7,.55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.ask.is-open { opacity: 1; visibility: visible; }
.ask__card { width: min(420px, 100%); padding: 26px; border-radius: 22px; background: var(--ivory); box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: translateY(10px); transition: transform .3s var(--ease); }
.ask.is-open .ask__card { transform: none; }
.ask h2 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.ask p { margin: 0 0 20px; color: var(--ink-soft); font-size: .88rem; }
.ask__btns { display: flex; justify-content: flex-end; gap: 10px; }
.atoast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translate(-50%, 20px); padding: 13px 20px; border-radius: 999px; background: var(--choc-900); color: var(--on-dark); font-size: .84rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.atoast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .editor__preview { position: static; max-width: 320px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; z-index: 30; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(28,13,7,.25);
  }
  .side__logo, .side__foot a { display: none; }
  .side__nav { display: flex; flex: 1; gap: 2px; }
  .side__nav button, .side__foot button { flex: 1; flex-direction: column; gap: 4px; padding: 8px 4px; font-size: .64rem; text-align: center; justify-content: center; }
  .side__foot { margin: 0; border: 0; padding: 0; display: flex; flex: 0 0 16%; }
  .side__nav button, .side__foot button { min-width: 0; padding: 8px 2px; font-size: .6rem; }
  .side__dot { right: 50%; top: 8px; margin: 0 -16px 0 0; }
  .main { padding: 24px 16px 110px; }
  .pubsteps { grid-template-columns: 1fr; }
  .hello { grid-template-columns: 1fr; padding: 24px 22px; }
  .hello__pics { display: none; }
  .sheet__head, .sheet__body { padding-left: 18px; padding-right: 18px; }
  .sheet__foot { padding-left: 18px; padding-right: 18px; }
  .sheet__foot .abtn { padding: 0 16px; }
  .sheet__foot .grow, .sheet__foot .abtn--ghost:not(.abtn--danger) { display: none; }
  .sheet__foot .abtn[type="submit"] { flex: 1; }
  .types { grid-template-columns: 1fr; }
  .type span { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .type span > :first-child { grid-row: span 2; }
  .row2 { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard__foot { padding-left: 10px; padding-right: 4px; }
  .pcard__foot .switch b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pcard__foot .ibtn { width: 32px; }
}
@media (max-width: 380px) {
  .keypad { grid-template-columns: repeat(3, 58px); gap: 10px 16px; }
  .keypad button { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .view, .lock.is-leaving, .lock__dots.err { animation: none; }
  .sheet__panel, .ask__card, .atoast { transition: none; }
}

/* ---------- Bolos da vitrine ---------- */
.bolos-card { margin-bottom: 28px; }
.sect-title { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; }
.bolos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bolo { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--ivory); }
.bolo.is-off { opacity: .7; }
.bolo img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.bolo__fields { display: grid; gap: 4px; min-width: 0; }
.bolo input { font: inherit; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; min-width: 0; width: 100%; }
.bolo input:hover { border-color: var(--line-light); }
.bolo input:focus { outline: none; border-color: var(--ink); background: #fff; }
.bolo__nome { font-weight: 500; font-size: .95rem; }
.bolo__nota { font-size: .78rem; color: var(--ink-soft); }
.bolo__preco { display: grid; grid-template-columns: auto 84px; align-items: center; column-gap: 4px; font-size: .9rem; }
.bolo__preco small { grid-column: 1 / -1; font-size: .68rem; color: var(--ink-soft); padding-left: 2px; }
.bolo__preco input { background: #fff; border-color: var(--line-light); font-weight: 600; }
.bolo .switch { align-self: center; padding: 0; }
@media (max-width: 640px) {
  .bolo { grid-template-columns: 44px auto minmax(0, 1fr); gap: 8px 10px; align-items: end; }
  .bolo img { width: 44px; height: 44px; align-self: start; grid-row: span 2; }
  .bolo__fields { grid-column: 2 / -1; }
  .bolo__preco { grid-column: 2; justify-content: start; }
  .bolo .switch { grid-column: 3; justify-self: end; padding-bottom: 6px; }
}

/* ---------- Publicar ---------- */
.publish { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 28px; }
.publish p { flex: 1 1 100%; margin: 4px 0 0; color: var(--ink-soft); font-size: .84rem; }
.abtn--big { padding: 16px 28px; font-size: 1rem; }
.abtn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Monte seu bolo ---------- */
.mcard { margin-bottom: 20px; }
.mcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.mcard__top p { margin: 0; color: var(--ink-soft); font-size: .82rem; max-width: 520px; }
.mcard__top .switch { align-self: center; }
.mcard__cfg { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.mcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mcols .mcard { margin-bottom: 0; }
.mlist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 104px auto; gap: 8px; align-items: center; }
.mrow--size { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) 64px 110px auto; }
.mhead { display: grid; gap: 8px; margin-bottom: 6px; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.mhead--size { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) 64px 110px 40px; }
.mrow input { font: inherit; font-size: .88rem; color: var(--ink); background: var(--ivory); border: 1px solid var(--line-light); border-radius: 10px; padding: 9px 10px; min-width: 0; width: 100%; }
.mrow input:focus { outline: none; border-color: var(--ink); background: #fff; }
.mrow__nome { font-weight: 500; }
.igedit { margin-top: 20px; }
.igedit__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px); gap: 14px; max-width: 560px; }
@media (max-width: 640px) { .igedit__row { grid-template-columns: minmax(0, 1fr); } }
.mrow__money { position: relative; display: block; }
.mrow__money span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: .74rem; color: var(--ink-soft); pointer-events: none; }
.mrow__money input { padding-left: 40px; font-weight: 600; }
.mrow--size .mrow__money input { padding-left: 32px; }
@media (max-width: 1100px) { .mcols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .mcard__cfg { grid-template-columns: minmax(0, 1fr); }
  .mhead--size { display: none; }
  .mrow--size { grid-template-columns: minmax(0, 1fr) 64px 100px auto; padding-bottom: 8px; border-bottom: 1px solid var(--line-light); }
  .mrow--size .mrow__nome { grid-column: 1 / -1; }
  .mrow--size input[data-mt$=":detalhe"] { grid-column: 1; }
}
