:root {
  --pink: #f1e4c3;
  --pink-2: #e2cf9f;
  --coral: #d0202a;
  --coral-d: #a3161c;
  --cocoa: #171110;
  --cocoa-2: #5d5048;
  --cream: #faf5ea;
  --line: #e6dac4;
  --green: #0b7a3b;
  --wa: #128c4a;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --top: calc(env(safe-area-inset-top) + 112px);
  --bot: calc(env(safe-area-inset-bottom) + 88px);
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.2l-1.5-1.3C5.2 15.1 2 12.2 2 8.6 2 5.7 4.3 3.5 7.1 3.5c1.7 0 3.6.8 4.9 2.4 1.3-1.6 3.2-2.4 4.9-2.4 2.8 0 5.1 2.2 5.1 5.1 0 3.6-3.2 6.5-8.5 11.3z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0e0b0a;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
img { display: block; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #f1e4c3; outline-offset: 2px; }

/* ---------- App frame ---------- */
#app { position: fixed; inset: 0; overflow: hidden; background: #0b0807; isolation: isolate; }
.desk-nav { display: none; }

@media (min-width: 640px) {
  body {
    display: grid; place-items: center;
    background:
      radial-gradient(60% 50% at 20% 20%, #d0202a40, transparent 70%),
      radial-gradient(50% 50% at 85% 80%, #0b7a3b38, transparent 70%),
      #0e0b0a;
  }
  .shell { position: relative; }
  #app {
    position: relative; inset: auto;
    width: 420px; height: min(900px, calc(100vh - 40px)); height: min(900px, calc(100dvh - 40px));
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 10px #0b0807, 0 0 0 11px #ffffff1a;
  }
  .desk-nav { display: flex; flex-direction: column; gap: 10px; position: absolute; right: -76px; top: 50%; transform: translateY(-50%); }
  .desk-nav .icon-btn { background: #ffffff14; border: 1px solid #ffffff22; }
}

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; z-index: 10; inset: 0 0 auto 0;
  padding-top: calc(env(safe-area-inset-top) + 8px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.45); object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: .9; }
.brand-text b { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.brand-text small { margin-top: 3px; font-size: 9.5px; letter-spacing: .32em; font-weight: 800; opacity: .9; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: inherit;
}
.badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 900;
  display: grid; place-items: center; border: 2px solid #fff;
}
.badge[hidden] { display: none; }
.bump { animation: bump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { transform: scale(1.35); } }

.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 12px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
          mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.22); color: #fff; font-size: 13.5px; font-weight: 800; white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .25s, color .25s;
}
.chip[aria-current="true"] { background: #fff; color: var(--cocoa); border-color: #fff; }
.chip .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 11px; }

/* ---------- Feed / reels ---------- */
.feed {
  position: absolute; inset: 0; z-index: 1;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory; overscroll-behavior: contain;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.reel {
  position: relative; height: 100%; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column;
  padding: var(--top) 16px var(--bot);
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.reel > * { z-index: 1; }
.stage, .info, .cta, .outro-body { position: relative; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.anim { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .7s cubic-bezier(.2,.9,.3,1); transition-delay: calc(var(--d, 0) * 70ms); }
.is-active .anim { opacity: 1; transform: none; }

/* ---------- Item reels: mídia em tela cheia ---------- */
.item { background: #0b0807; }
.item::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.5), transparent 22%),
    linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.45) 30%, transparent 55%);
}
.media { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0 !important; }
.media.card { object-fit: contain; padding: 22% 8% 46%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.kenburns { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translate(-1.5%, -2%); } }
.cine { opacity: 0; transition: opacity .6s; }
.cine-ready .cine { opacity: 1; }
.spacer { flex: 1; }

.paused-ind {
  position: absolute; left: 50%; top: 45%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff;
  opacity: 0; transform: scale(1.3); transition: opacity .2s, transform .2s; pointer-events: none;
}
.paused-ind svg { width: 34px; height: 34px; stroke: none; margin-left: 4px; }
.paused .paused-ind { opacity: 1; transform: none; }

/* ---------- Info ---------- */
.info { padding-right: 66px; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.name {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 10.4vw, 50px); line-height: 1;
  letter-spacing: .01em; text-transform: uppercase;
}
.kicker {
  display: inline-block; margin-bottom: 8px; padding: 4px 9px; border-radius: 6px;
  background: var(--acc); color: #111; text-shadow: none;
  font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
}
.desc { margin: 6px 0 0; font-size: 14.5px; line-height: 1.4; font-weight: 600; color: #ffffffd9; max-width: 34ch; }

.cta { display: flex; align-items: center; gap: 12px; margin-top: 14px; min-height: 52px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 20px; border-radius: 16px; border: 0;
  font-size: 16px; font-weight: 800; text-decoration: none; color: #fff;
  transition: transform .15s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: linear-gradient(135deg, #e8383f, var(--coral-d)); box-shadow: 0 10px 26px rgba(208,32,42,.45); }
.cta .btn.primary { flex: 1; }
.btn-price { margin-left: 6px; padding-left: 10px; border-left: 1.5px solid rgba(255,255,255,.45); font-weight: 900; }
.btn.ghost { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn.wa { width: 100%; background: var(--wa); box-shadow: 0 10px 24px rgba(18,140,74,.35); font-size: 17px; }

.stepper {
  display: inline-flex; align-items: center; height: 52px; border-radius: 16px;
  background: #fff; color: var(--cocoa); box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.stepper button { width: 52px; height: 52px; border: 0; background: none; display: grid; place-items: center; color: var(--coral-d); }
.stepper output { min-width: 34px; text-align: center; font-size: 20px; font-weight: 900; }
.stepper.sm { height: 38px; border-radius: 12px; box-shadow: none; border: 1.5px solid var(--line); }
.stepper.sm button { width: 38px; height: 38px; }
.stepper.sm output { min-width: 26px; font-size: 16px; }
.stepper.sm svg { width: 18px; height: 18px; }
.in-cart { font-size: 14px; font-weight: 700; line-height: 1.2; color: #ffffffe0; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.in-cart b { display: block; color: var(--acc); font-size: 15px; }

/* ---------- Rail ---------- */
.rail { position: absolute; right: 10px; bottom: calc(var(--bot) + 74px); display: flex; flex-direction: column; gap: 14px; }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font-size: 11.5px; font-weight: 800; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rail-btn .ic {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background .2s, transform .2s;
}
.rail-btn:active .ic { transform: scale(.9); }
.rail-btn[aria-pressed="true"] .ic { background: var(--coral); border-color: var(--coral); }
.rail-btn[aria-pressed="true"] svg { fill: #fff; }
.pop { animation: pop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes pop { 35% { transform: scale(1.3); } }

/* ---------- Intro / outro ---------- */
.intro, .outro { --acc: #f1e4c3; }
.intro { background: radial-gradient(90% 55% at 50% 28%, #a8181f 0%, #4a0d10 48%, #0e0b0a 100%); }
.outro { background: radial-gradient(95% 55% at 50% 40%, #8e161c 0%, #3a0c0e 50%, #0e0b0a 100%); justify-content: center; }
.intro .info, .outro-body { padding-right: 0; text-align: center; }
.stage { flex: 1; min-height: 0; display: grid; place-items: center; }
.logo-hero { position: relative; width: min(58vw, 34vh, 250px); aspect-ratio: 1; animation: float 4.5s ease-in-out infinite; }
.logo-hero img { position: relative; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 0 6px #ffffff14; }
.halo { position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,196,120,.35), transparent); animation: halo 4.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes halo { 50% { transform: scale(1.08); opacity: .7; } }
.brand-big { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(50px, 14.5vw, 66px); line-height: .95; }
.brand-big small { display: block; font-family: "Nunito", sans-serif; font-size: 11px; letter-spacing: .3em; font-weight: 900; margin-top: 8px; padding-left: .3em; color: var(--acc); }
.lead { margin: 12px auto 0; max-width: 320px; font-size: 15.5px; line-height: 1.45; font-weight: 600; color: #ffffffe6; }
.tiers { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 16px 0 0; padding: 0; }
.tiers li {
  padding: 10px 4px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  font-size: 12px; font-weight: 700; line-height: 1.25;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tiers li b { display: block; font-size: 22px; font-weight: 900; }
.tiers li strong { color: var(--acc); font-size: 15px; }
.tiers li:last-child { background: #fff; color: var(--cocoa); }
.tiers li:last-child strong { color: var(--coral-d); }
.highlights li { padding: 10px 6px; }
.highlights li b { font-family: var(--display); font-size: 21px; font-weight: 700; white-space: nowrap; margin-bottom: 2px; }
.swipe-hint {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 18px); transform: translateX(-50%);
  border: 0; background: none; display: flex; flex-direction: column; align-items: center;
  font-size: 13px; font-weight: 800; color: #fff; opacity: .9;
}
.swipe-hint svg { animation: up 1.4s ease-in-out infinite; }
.swipe-hint svg + svg { margin-top: -12px; animation-delay: .15s; opacity: .6; }
@keyframes up { 50% { transform: translateY(-6px); } }

.outro-body { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.outro-body .lead { margin: 0 auto 10px; }
.outro-body .btn { width: 100%; max-width: 320px; }
.outro-body .btn.ghost { font-size: 15px; }
.stamp { width: 120px; height: 120px; margin-bottom: 6px; color: #fff; }
.stamp svg { width: 100%; height: 100%; stroke: none; }
.stamp .spin { transform-origin: 60px 60px; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cart bar ---------- */
.cartbar {
  position: absolute; z-index: 11; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px);
  height: 64px; padding: 0 18px 0 10px; border: 0; border-radius: 20px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--cream); color: var(--cocoa);
  box-shadow: 0 14px 34px rgba(0,0,0,.4);
  animation: rise .5s cubic-bezier(.2,1.3,.4,1);
}
.cartbar[hidden] { display: none; }
@keyframes rise { from { transform: translateY(130%); } }
.cb-count { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--coral); color: #fff; font-weight: 900; font-size: 18px; }
.cb-text { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cb-text b { font-size: 16px; font-weight: 900; }
.cb-text small { font-size: 12.5px; font-weight: 800; color: var(--coral-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-total { font-size: 18px; font-weight: 900; }

/* ---------- Sheet ---------- */
.sheet { position: absolute; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8,5,4,.6); opacity: 0; transition: opacity .3s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%;
  display: flex; flex-direction: column;
  background: var(--cream); color: var(--cocoa); border-radius: 26px 26px 0 0;
  transform: translateY(100%); transition: transform .4s cubic-bezier(.2,.9,.3,1);
  box-shadow: 0 -10px 40px rgba(0,0,0,.3); outline: none;
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 14px 8px 20px; touch-action: none; }
.sheet-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.sheet-head .icon-btn { background: #efe5d2; }
.grab { position: absolute; left: 50%; top: 7px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #d9cbb0; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px calc(env(safe-area-inset-bottom) + 22px); }

.empty { text-align: center; padding: 16px 0 10px; color: var(--cocoa-2); }
.empty img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 8px; }
.empty b { color: var(--cocoa); font-size: 18px; }
.empty .btn { margin-top: 8px; }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lines img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.lines .ln-name { font-weight: 900; font-size: 16px; }
.lines .ln-sub { font-size: 13px; color: var(--cocoa-2); font-weight: 600; }

.tiers-progress { margin: 16px 0 6px; padding: 14px; border-radius: 18px; background: #fff; border: 1.5px dashed var(--pink-2); }
.tp-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.tp-step { text-align: center; font-size: 12px; font-weight: 700; color: #a58b81; line-height: 1.3; }
.tp-step i { display: block; height: 6px; border-radius: 3px; background: #f1e1db; margin-bottom: 6px; transition: background .3s; }
.tp-step.on { color: var(--cocoa); }
.tp-step.on i { background: var(--coral); }
.tp-step.on b { color: var(--coral-d); }
.tp-nudge { margin: 10px 0 0; text-align: center; font-weight: 800; font-size: 14px; color: var(--coral-d); }

.summary { margin: 12px 0 18px; }
.summary div { display: flex; justify-content: space-between; padding: 4px 0; font-weight: 700; color: var(--cocoa-2); }
.summary dt, .summary dd { margin: 0; }
.summary .save dd { color: #1d8a4e; }
.summary .total { color: var(--cocoa); font-size: 20px; font-weight: 900; border-top: 1.5px solid var(--line); margin-top: 6px; padding-top: 10px; }

.order-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field[hidden] { display: none; }
.field label, .field legend { font-size: 13.5px; font-weight: 900; padding: 0; }
.field legend { margin-bottom: 6px; }
.opt { font-weight: 600; color: #9a8a78; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--cocoa); width: 100%;
  padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; resize: none;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px #d0202a33; }
.field [aria-invalid="true"] { border-color: #d0453b; }
.err { margin: 0; font-size: 13px; font-weight: 800; color: #c0392b; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 16px; background: #efe5d2; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 44px; border-radius: 12px; font-weight: 800; font-size: 14.5px; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--cocoa); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--coral); }
.fine { margin: 0; text-align: center; font-size: 12.5px; color: var(--cocoa-2); font-weight: 600; }

/* ---------- Effects ---------- */
.burst { position: fixed; z-index: 100; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none;
  background: linear-gradient(135deg, #ff6b6b, #d0202a); -webkit-mask: var(--heart) center / contain no-repeat; mask: var(--heart) center / contain no-repeat;
  animation: burst .9s cubic-bezier(.2,1,.3,1) forwards; filter: drop-shadow(0 6px 16px rgba(0,0,0,.3)); }
@keyframes burst {
  0% { transform: scale(.2) rotate(var(--r)); opacity: 0; }
  18% { transform: scale(1.15) rotate(var(--r)); opacity: 1; }
  32% { transform: scale(.95) rotate(var(--r)); }
  70% { opacity: 1; }
  100% { transform: translateY(-70px) scale(1.25) rotate(var(--r)); opacity: 0; }
}
.mini { position: fixed; z-index: 100; width: 18px; height: 18px; margin: -9px 0 0 -9px; pointer-events: none; background: #ff8a8a;
  -webkit-mask: var(--heart) center / contain no-repeat; mask: var(--heart) center / contain no-repeat;
  animation: mini .8s ease-out forwards; }
@keyframes mini { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }
.fly { position: fixed; z-index: 100; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 10px 24px rgba(0,0,0,.4); border: 3px solid #fff; }

.toast {
  position: absolute; z-index: 60; left: 50%; top: calc(env(safe-area-inset-top) + 116px);
  transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  padding: 10px 16px; border-radius: 999px; background: var(--cream); color: var(--cocoa);
  font-weight: 800; font-size: 14px; width: max-content; max-width: calc(100% - 32px); text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: opacity .25s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--pink); color: var(--cocoa); }

/* Celulares baixos (iPhone SE etc.) */
@media (max-height: 700px) {
  :root { --top: calc(env(safe-area-inset-top) + 104px); }
  .name { font-size: 34px; }
  .desc, .lead { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .anim { opacity: 1; transform: none; }
}

/* ---------- Prévia (demonstração para o dono) ---------- */
.preview-tag {
  display: inline-block; align-self: flex-start; margin-top: 5px; padding: 3px 7px; border-radius: 5px;
  background: #ffd23f; color: #111; text-shadow: none;
  font-size: 9.5px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
}
.preview-dlg {
  width: min(360px, calc(100% - 32px)); padding: 22px 20px 20px; border: 0; border-radius: 22px;
  background: var(--cream); color: var(--cocoa); box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.preview-dlg::backdrop { background: rgba(8,5,4,.65); }
.preview-dlg form { display: flex; flex-direction: column; gap: 10px; }
.preview-dlg h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; }
.preview-dlg p { margin: 0; font-size: 14px; font-weight: 600; color: var(--cocoa-2); }
.preview-dlg pre {
  margin: 0; padding: 12px 14px; max-height: 40vh; overflow: auto; border-radius: 12px 12px 12px 4px;
  background: #dcf8c6; color: #111; font: 600 13.5px/1.45 "Nunito", sans-serif; white-space: pre-wrap;
}
