/* Meu convite · editor da Estreia. Os tokens abaixo são os mesmos de assets/css/style.css
   (o scripts/check.mjs confere que continuam iguais). Ferramenta: clara, rápida e boa no celular. */
:root {
  --bg: #0c0a10;
  --s1: #141119;
  --s2: #1c1823;
  --s3: #27212f;
  --line: rgba(244, 237, 225, .1);
  --line-2: rgba(244, 237, 225, .2);
  --tx: #f3ede3;
  --tx-2: rgba(243, 237, 227, .7);
  --tx-3: rgba(243, 237, 227, .48);
  --paper: #f4ede1;
  --ink: #1b1620;
  --gold: #d8b47a;
  --gold-hi: #f4ddb0;
  --gold-lo: #9c7a45;
  --wine: #8e2335;
  --wine-hi: #c2414f;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'Cascadia Mono', monospace;
  --r-ctl: 999px;
  --r-card: 24px;
  --r-media: 14px;
  --r-sm: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --d1: .25s;
  --d2: .5s;
  /* só do editor */
  --topo: 64px;
  --abas: 68px;
  --campo: rgba(255, 255, 255, .035);
  --ok: #9fd3b4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--tx);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ed-pular { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--ink); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.ed-pular:focus { top: 12px; }

/* ---------- botões ---------- */
.ed-botao {
  --bh: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--bh); padding: 0 20px;
  border: 0; border-radius: var(--r-ctl);
  font: 600 14.5px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; background: none;
  transition: transform var(--d1) var(--ease), background-color var(--d1), box-shadow var(--d2) var(--ease), opacity var(--d1);
}
.ed-botao:active { transform: scale(.97); }
.ed-botao:disabled, .ed-botao.desligado { opacity: .45; cursor: not-allowed; }
.ed-botao-ouro {
  color: #2a1d0c;
  background: linear-gradient(180deg, #f6e2b8 0%, #dcb87e 52%, #c49a5c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(90, 60, 20, .35), 0 10px 30px -14px rgba(216, 180, 122, .7);
}
.ed-botao-ouro:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(90, 60, 20, .35), 0 14px 36px -12px rgba(216, 180, 122, .9); }
.ed-botao-linha { color: var(--tx); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.ed-botao-linha:hover:not(:disabled) { background: rgba(255, 255, 255, .09); }
.ed-botao-texto { color: var(--tx-2); padding: 0 14px; }
.ed-botao-texto:hover:not(:disabled) { color: var(--tx); background: rgba(255, 255, 255, .05); }
.ed-botao-vinho { color: #fff3f3; background: var(--wine); }
.ed-botao-vinho:hover { background: var(--wine-hi); }
.ed-botao-mini { --bh: 40px; padding: 0 15px; font-size: 13.5px; }
.ed-botao-texto.ed-botao-mini { padding: 0 10px; }

/* ---------- topo ---------- */
.ed-topo {
  position: sticky; top: 0; z-index: 40;
  height: var(--topo);
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: rgba(12, 10, 16, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.ed-marca { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.ed-selo { width: 28px; height: 28px; }
.ed-marca-nome {
  font: italic 400 26px/1 var(--serif); letter-spacing: -.02em;
  background: linear-gradient(180deg, #fbeccc, #d8b47a 70%, #b38d55);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ed-salvo {
  margin-left: auto; min-width: 0;
  font: 400 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--tx-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-salvo::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.ed-salvo.erro { color: var(--gold-hi); }
.ed-salvo.erro::before { background: var(--wine-hi); }

/* ---------- duas colunas ---------- */
.ed { display: grid; grid-template-columns: minmax(0, 1fr); }
.ed-form { padding: 28px 16px 40px; outline: none; min-width: 0; }
.ed-intro { margin-bottom: 22px; }
.ed-sobre {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.ed-sobre::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .7; }
.ed-nivel { padding: 4px 8px; border-radius: 6px; background: #e8dcc6; color: var(--ink); letter-spacing: .12em; font-size: 10.5px; }
.ed-h1 { margin: 0 0 12px; font: 400 clamp(38px, 9vw, 60px)/1 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.ed-h1 em { font-style: italic; color: var(--gold-hi); }
.ed-lede { max-width: 54ch; color: var(--tx-2); font-size: 15.5px; }
.ed-ferramentas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ed-aviso-erro, .ed-erro { margin-top: 16px; padding: 18px; border-radius: 16px; background: rgba(142, 35, 53, .16); box-shadow: inset 0 0 0 1px rgba(194, 65, 79, .4); }
.ed-erro h2 { margin: 0 0 8px; font: 400 28px/1.1 var(--serif); }
.ed-erro p + p { margin-top: 14px; }
.ed-carregando { display: flex; align-items: center; gap: 12px; padding: 24px 4px; color: var(--tx-3); font: 400 13px/1 var(--mono); }
.ed-pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: pulso 1.2s var(--ease) infinite; }
@keyframes pulso { 50% { opacity: .25; transform: scale(.7); } }

/* ---------- seções (acordeão) ---------- */
.ed-secoes { display: grid; gap: 10px; }
.ed-sec { border-radius: 18px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.ed-sec[open] { box-shadow: inset 0 0 0 1px var(--line-2); }
.ed-sec-topo {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  min-height: 62px; padding: 10px 16px 10px 18px; cursor: pointer; list-style: none; border-radius: 18px;
}
.ed-sec-topo::-webkit-details-marker { display: none; }
.ed-sec-topo:hover .ed-sec-titulo { color: var(--gold-hi); }
.ed-sec-num { font: 500 12px/1 var(--mono); color: var(--gold); letter-spacing: .08em; }
.ed-sec-titulo { font: 400 23px/1.1 var(--serif); letter-spacing: -.01em; transition: color var(--d1); }
.ed-sec-estado { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.ed-sec-estado.editado { color: var(--ok); }
.ed-sec-estado.desligado { color: var(--tx-3); }
.ed-sec-seta { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.ed-sec-seta::before { content: ''; position: absolute; left: 50%; top: 45%; width: 7px; height: 7px; border: solid var(--tx-2); border-width: 0 1.5px 1.5px 0; transform: translate(-50%, -50%) rotate(45deg); transition: transform var(--d1) var(--ease); }
.ed-sec[open] .ed-sec-seta::before { transform: translate(-50%, -20%) rotate(-135deg); }
.ed-sec-corpo { padding: 2px 18px 22px; display: grid; gap: 18px; }
.ed-sec-desc { color: var(--tx-2); font-size: 14.5px; max-width: 60ch; }
.ed-sec-campos { display: grid; gap: 22px; }
.ed-marcadores code { display: inline-block; margin: 3px 4px 0 0; padding: 2px 7px; border-radius: 6px; background: var(--s3); color: var(--gold-hi); font: 400 12px/1.4 var(--mono); }

/* ---------- campos ---------- */
.ed-campo { position: relative; display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ed-campo-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ed-rotulo { display: block; padding: 0; font: 600 14.5px/1.35 var(--sans); color: var(--tx); }
.ed-grupo > .ed-rotulo { margin-bottom: 2px; padding-right: 92px; }
.ed-grupo > .ed-restaurar { position: absolute; top: -4px; right: 0; }
.ed-obrig { color: var(--gold); }
.ed-restaurar {
  flex: none; min-height: 30px; padding: 0 10px; border: 0; border-radius: var(--r-ctl);
  background: none; color: var(--gold); font: 500 11.5px/1 var(--mono); letter-spacing: .06em; cursor: pointer;
}
.ed-restaurar:hover { background: rgba(216, 180, 122, .1); }
.ed-entrada {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--campo); color: var(--tx);
  font-size: 16px; line-height: 1.45;
  transition: border-color var(--d1), box-shadow var(--d1), background-color var(--d1);
}
textarea.ed-entrada { resize: vertical; min-height: 92px; }
select.ed-entrada { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--tx-2) 50%), linear-gradient(135deg, var(--tx-2) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select.ed-entrada option { background: var(--s2); color: var(--tx); }
.ed-entrada:hover { border-color: rgba(244, 237, 225, .32); }
.ed-entrada:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 180, 122, .22); background: rgba(255, 255, 255, .055); }
.ed-entrada-curta { max-width: 240px; }
input[type="date"].ed-entrada, input[type="time"].ed-entrada { color-scheme: dark; }
.ed-campo-pe { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ed-ajuda { color: var(--tx-3); font-size: 13px; line-height: 1.45; max-width: 62ch; }
.ed-resultado { color: var(--tx-2); }
.ed-resultado:empty { display: none; }
.ed-conta { margin-left: auto; flex: none; font: 400 11.5px/1.6 var(--mono); color: var(--tx-3); font-variant-numeric: tabular-nums; }
.ed-conta.perto { color: var(--gold-hi); }
.ed-linha { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ed-linha-local { grid-template-columns: 92px minmax(0, 1fr); }
.ed-sub { display: grid; gap: 6px; min-width: 0; }
.ed-sub > span { font-size: 13px; font-weight: 500; color: var(--tx-2); }
.ed-frase { color: var(--gold-hi); font-style: italic; }
.ed-frase:empty { display: none; }
.ed-link { justify-self: start; color: var(--gold); font-size: 13.5px; font-weight: 600; text-underline-offset: 3px; }

/* opções (rádio) */
.ed-opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-opcao { position: relative; display: inline-flex; }
.ed-opcao input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ed-opcao span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; transition: background-color var(--d1), box-shadow var(--d1); }
.ed-opcao input:checked + span { background: rgba(216, 180, 122, .14); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold-hi); }
.ed-opcao input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

/* foto */
.ed-foto { display: flex; gap: 16px; align-items: center; }
.ed-foto-moldura { flex: none; width: 96px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; }
.ed-foto-mini { width: 100%; height: 100%; object-fit: cover; }
.ed-foto-sem { font: italic 400 44px/1 var(--serif); color: var(--gold); }
.ed-foto-acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ed-faixa { width: 100%; accent-color: var(--gold); min-height: 32px; }

/* cor */
.ed-amostras { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-amostra { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border: 0; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 13.5px; }
.ed-amostra::before { content: ''; width: 24px; height: 24px; border-radius: 50%; background: var(--a); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.ed-amostra[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold-hi); }
.ed-linha-cor { grid-template-columns: 56px 140px; }
.ed-cor { width: 56px; height: 48px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--campo); cursor: pointer; }
.ed-hex { font-family: var(--mono); text-transform: lowercase; }

/* interruptor */
.ed-interruptor { justify-self: start; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 14.5px; text-align: left; }
.ed-interruptor-trilho { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--s3); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; transition: background-color var(--d1); }
.ed-interruptor-bola { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--tx-2); transition: transform var(--d1) var(--ease), background-color var(--d1); }
.ed-interruptor[aria-checked="true"] .ed-interruptor-trilho { background: rgba(216, 180, 122, .35); box-shadow: inset 0 0 0 1px var(--gold); }
.ed-interruptor[aria-checked="true"] .ed-interruptor-bola { transform: translateX(18px); background: var(--gold-hi); }

/* chips do formulário de confirmação */
.ed-conf { gap: 12px; }
.ed-conf-sub { margin-top: 6px; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); }
.ed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ed-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--tx-2); font: 500 13.5px/1.2 var(--sans); cursor: pointer; text-align: left;
  transition: background-color var(--d1), box-shadow var(--d1), color var(--d1);
}
button.ed-chip:hover { color: var(--tx); background: rgba(255, 255, 255, .08); }
.ed-chip-marca { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tx-3); position: relative; flex: none; }
.ed-chip[aria-pressed="true"] { background: rgba(216, 180, 122, .14); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold-hi); }
.ed-chip[aria-pressed="true"] .ed-chip-marca { background: var(--gold); box-shadow: none; }
.ed-chip[aria-pressed="true"] .ed-chip-marca::after { content: ''; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.ed-chip-fixo { cursor: default; color: var(--tx); background: var(--s2); box-shadow: none; }
.ed-cadeado { width: 14px; height: 14px; color: var(--tx-3); }
.ed-conf-pessoas { max-width: 380px; }
.ed-itens { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ed-item { display: grid; gap: 10px; padding: 12px 14px 14px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.ed-item-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ed-item-tag { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.ed-item-acoes { display: flex; gap: 4px; flex: none; }
.ed-icone { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .04); color: var(--tx-2); cursor: pointer; }
.ed-icone svg { width: 18px; height: 18px; }
.ed-icone:hover:not(:disabled) { background: rgba(255, 255, 255, .1); color: var(--tx); }
.ed-icone:disabled { opacity: .3; cursor: default; }
.ed-icone-tirar:hover:not(:disabled) { background: rgba(194, 65, 79, .22); color: #ffd9dc; }
.ed-conf > [data-add-pergunta], .ed-lista-campo > [data-acao-add] { justify-self: start; }
.ed-exemplo { margin-top: 6px; }
.ed-exemplo-msg {
  margin: 8px 0 0; padding: 14px 16px; border-radius: 14px 14px 14px 4px;
  background: #1d3b30; color: #e9f5ee; box-shadow: inset 0 0 0 1px rgba(159, 211, 180, .18);
  font: 400 13.5px/1.5 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere;
}

.ed-fim { margin-top: 26px; padding: 22px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(216, 180, 122, .08), transparent); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; justify-items: start; color: var(--tx-2); }

/* ---------- prévia ---------- */
.ed-previa { display: none; }
.ed-previa-barra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ed-previa-titulo { margin: 0; font: 500 11.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.ed-previa-estado { font: 400 12px/1.4 var(--mono); color: var(--tx-3); }
.ed-previa-barra .ed-botao { margin-left: auto; }
.ed-tela { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0e1a16; }
.ed-quadro { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; visibility: hidden; }
.ed-quadro.ativo { visibility: visible; }
.ed-previa-nota { color: var(--tx-3); font-size: 12.5px; text-align: center; }

/* ---------- abas do celular ---------- */
.ed-abas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(12, 10, 16, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.ed-aba { min-height: 50px; border: 0; border-radius: 14px; background: none; color: var(--tx-2); font-weight: 600; font-size: 15px; cursor: pointer; }
.ed-aba[aria-pressed="true"] { background: var(--s2); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--line-2); }

@media (max-width: 1023px) {
  body { padding-bottom: calc(var(--abas) + env(safe-area-inset-bottom)); }
  .ed-salvo { font-size: 11px; }
  [data-vista="previa"] .ed-form { display: none; }
  [data-vista="previa"] .ed-previa {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px;
    height: calc(100dvh - var(--topo) - var(--abas) - env(safe-area-inset-bottom));
    padding: 10px 12px 10px;
  }
  .ed-celular { min-height: 0; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
  .ed-celular .ed-tela { border-radius: 16px; }
}
@media (max-width: 380px) {
  .ed-marca-nome { display: none; }
  .ed-sec-corpo { padding: 2px 14px 20px; }
  .ed-sec-topo { padding: 10px 12px 10px 14px; gap: 10px; }
  .ed-foto { flex-direction: column; align-items: flex-start; }
}

@media (min-width: 1024px) {
  .ed-abas { display: none; }
  .ed { grid-template-columns: minmax(0, 1fr) minmax(440px, 44%); max-width: 1480px; margin: 0 auto; }
  .ed-form { padding: 44px clamp(24px, 4vw, 64px) 72px; }
  .ed-sec-corpo { padding: 2px 24px 26px; }
  .ed-sec-topo { padding: 12px 20px 12px 24px; }
  .ed-previa {
    display: grid; align-content: start; justify-items: center; gap: 14px;
    position: sticky; top: var(--topo); height: calc(100dvh - var(--topo));
    padding: 22px 24px 18px; border-left: 1px solid var(--line);
    background: radial-gradient(70% 50% at 50% 30%, rgba(216, 180, 122, .07), transparent 70%);
  }
  .ed-previa-barra { width: 402px; }
  .ed-celular {
    width: 402px; height: min(860px, calc(100dvh - var(--topo) - 118px));
    padding: 6px; border-radius: 46px; background: linear-gradient(160deg, #2d2733, #121016 60%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px #000;
  }
  .ed-celular .ed-tela { border-radius: 40px; }
}

/* ---------- diálogos ---------- */
.ed-dialogo {
  width: min(640px, calc(100% - 24px)); max-height: min(88dvh, 860px);
  margin: auto; padding: 0; border: 0; border-radius: var(--r-card);
  background: var(--s1); color: var(--tx); box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, .9);
  overflow: auto; overscroll-behavior: contain;
}
.ed-dialogo-p { width: min(460px, calc(100% - 24px)); }
.ed-dialogo::backdrop { background: rgba(6, 5, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ed-dialogo-caixa { display: grid; gap: 16px; padding: clamp(20px, 4vw, 32px); }
.ed-dialogo h2 { margin: 0; font: 400 34px/1.05 var(--serif); letter-spacing: -.02em; }
.ed-dialogo p { color: var(--tx-2); font-size: 14.5px; }
.ed-dialogo-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-codigo { width: 100%; height: 300px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: #0a090d; color: #e9e0d0; font: 400 12.5px/1.55 var(--mono); resize: vertical; white-space: pre; }
.ed-codigo:focus { outline: none; border-color: var(--gold); }
.ed-resumo { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; padding: 16px; border-radius: 16px; background: var(--s2); font-size: 14px; }
.ed-resumo dt { font: 500 11px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); }
.ed-resumo dd { margin: 0; overflow-wrap: anywhere; }
.ed-formas { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.ed-formas legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
.ed-formas > div { display: grid; gap: 8px; }
.ed-forma { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.ed-forma input { accent-color: var(--gold); width: 20px; height: 20px; margin: 0; flex: none; }
.ed-forma:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--gold); background: rgba(216, 180, 122, .08); }
.ed-forma-txt { display: grid; gap: 2px; min-width: 0; }
.ed-forma-txt small { color: var(--tx-3); font-size: 12.5px; }
.ed-forma-preco { margin-left: auto; flex: none; display: grid; justify-items: end; text-align: right; white-space: nowrap; }
.ed-forma-preco strong { font: 400 26px/1 var(--serif); color: var(--gold-hi); }
.ed-forma-preco s { color: var(--tx-3); font-size: 12.5px; }
.ed-forma-preco em { font: 500 10.5px/1.4 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #f29aa3; white-space: normal; max-width: 15ch; }
.ed-passos { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--tx-2); font-size: 14.5px; }
.ed-passos li span { margin-right: 6px; }
.ed-passos .ed-botao { margin-top: 6px; }
.ed-alertas { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ed-alerta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; font-size: 13.5px; background: rgba(216, 180, 122, .08); box-shadow: inset 0 0 0 1px rgba(216, 180, 122, .25); }
.ed-alerta.erro { background: rgba(142, 35, 53, .2); box-shadow: inset 0 0 0 1px rgba(194, 65, 79, .45); }

/* ---------- aviso curto ---------- */
.ed-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8);
  opacity: 0; pointer-events: none; transition: opacity var(--d1), transform var(--d2) var(--ease);
}
.ed-toast.mostra { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1023px) { .ed-toast { bottom: calc(var(--abas) + 16px + env(safe-area-inset-bottom)); } }

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

/* ---------- pedido (item 18): "Pedir este convite · R$ X" ---------- */
.ed-pedir-preco { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .ed-topo .ed-pedir { padding: 0 14px; }
  .ed-topo .ed-pedir-txt { font-size: 0; }
  .ed-topo .ed-pedir-txt::before { content: 'Pedir'; font-size: 14px; }
  .ed-salvo { font-size: 10.5px; }
}
.ed-avancado { margin-top: 4px; font-size: 13.5px; color: var(--tx-3); }
.ed-avancado summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.ed-avancado summary:hover { color: var(--tx-2); }
.ed-avancado p { margin: 0 0 6px; }
.ed-confianca { list-style: none; margin: 4px 0 0; padding: 14px 16px; display: grid; gap: 7px; border-radius: 14px; background: rgba(216, 180, 122, .07); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--tx-2); }
.ed-confianca li { position: relative; padding-left: 22px; }
.ed-confianca li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.ed-confianca:empty { display: none; }
