/* E-mail marketing do Estúdio por Voz: mockups do painel (291 × 490) e da visão ampliada (~1280 px).
   O template e a assinatura trazem os próprios estilos inline (são o HTML exportável); aqui fica só a moldura:
   cliente de e-mail, janela de redação, abas, rolagem e as anotações de designer. Prefixo em- em tudo. */

/* ------------------------------------------------------------------ comum */
.em-painel, .em-amp { --em-f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --em-mono: ui-monospace, "SF Mono", Menlo, monospace; --em-nota: #f472b6; }
.em-luzes { display: inline-flex; gap: 5px; flex: none; }
.em-luzes i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.em-luzes i:nth-child(2) { background: #febc2e; }
.em-luzes i:nth-child(3) { background: #28c840; }
.em-tpl { width: 624px; }
.em-tpl a { cursor: default; }
.em-tpl [data-campo] { transition: color .3s, background-color .3s; }
.em-tpl .ia-escrevendo, .em-painel .ia-escrevendo, .em-amp .ia-escrevendo { background: rgba(244, 114, 182, .16); border-radius: 3px; }

/* ------------------------------------------------------------------ painel */
.em-painel { position: relative; display: flex; flex-direction: column; gap: 7px; height: 100%; min-height: 430px; font-family: var(--em-f); color: #1d1d1f; }
.em-abas { flex: none; display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); }
.em-aba { flex: none; height: 23px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #9ca3af; font: 700 11px/1 var(--em-f); letter-spacing: .01em; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.em-aba:hover { color: #e5e7eb; }
.em-aba[aria-selected="true"] { background: #f4f4f6; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.em-aba:focus-visible { outline: 2px solid #a5f3fc; outline-offset: 1px; }
.em-abas-tipo { margin-left: auto; min-width: 0; padding: 0 7px; font: 700 9.5px/1 var(--em-mono); letter-spacing: .08em; text-transform: uppercase; color: #a5f3fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.em-palco { position: relative; flex: 1 1 auto; min-height: 360px; }
.em-janela { position: absolute; inset: 0 0 34px 0; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.09); transform-origin: 50% 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; }
.em-jb { flex: none; display: flex; align-items: center; gap: 8px; height: 23px; padding: 0 9px; background: linear-gradient(#f7f7f9, #ececf0); border-bottom: 1px solid #dcdce2; font-size: 10px; color: #55565e; }
.em-jb .em-luzes i { width: 7px; height: 7px; }
.em-jb b { font-weight: 600; color: #3a3b42; }
.em-jb-ic { margin-left: auto; display: flex; gap: 7px; color: #9a9ba3; }
.em-jb-ic svg { width: 11px; height: 11px; }
.em-mc { flex: none; padding: 7px 10px 7px; border-bottom: 1px solid #ececf0; background: #fff; }
.em-mc-l1 { display: flex; align-items: center; gap: 7px; }
.em-mc-l1 .em-av { flex: none; display: block; border-radius: 50%; }
.em-mc-de { min-width: 0; flex: 1; line-height: 1.2; }
.em-mc-de b { display: block; font-size: 11px; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-mc-de small { display: block; font-size: 9.5px; color: #8a8b93; }
.em-mc time { font-size: 9.5px; color: #8a8b93; font-variant-numeric: tabular-nums; }
.em-mc-st { display: flex; color: #c7c7cf; }
.em-mc-st svg { width: 12px; height: 12px; }
.em-mc-as { margin-top: 5px; font-size: 11.5px; line-height: 1.3; color: #111; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.em-mc-pre { margin-top: 1px; font-size: 10px; line-height: 1.35; color: #6b6c74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-rolo-caixa { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.em-rolo { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; background: var(--em-canvas); container-type: inline-size; scrollbar-width: none; overscroll-behavior: contain; outline: none; padding-bottom: calc(var(--em-peek, 118px) - 34px); }
.em-rolo::-webkit-scrollbar { display: none; }
.em-rolo .em-tpl { zoom: .43; zoom: tan(atan2(100cqw, 624px)); }
.em-rolo-trilho { position: absolute; top: 6px; bottom: calc(var(--em-peek, 118px) - 28px); right: 3px; width: 3px; border-radius: 3px; background: rgba(0,0,0,.08); overflow: hidden; pointer-events: none; }
.em-rolo-trilho i { display: block; width: 100%; height: 20%; border-radius: 3px; background: var(--em-pri); opacity: .85; will-change: transform; }

.em-compor { position: absolute; left: 7%; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column; border-radius: 12px; background: #fff; box-shadow: 0 -14px 30px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.08); transform: translateY(calc(100% - var(--em-peek, 118px))); transition: transform .6s cubic-bezier(.2,.8,.2,1); overflow: hidden; z-index: 2; }
.em-painel[data-aba="ass"] .em-compor { transform: none; }
.em-painel[data-aba="ass"] .em-janela { transform: scale(.93) translateY(-4px); filter: brightness(.5) saturate(.7); }
.em-cp-barra { flex: none; display: flex; align-items: center; height: 24px; padding: 0 10px; background: #2c2d33; color: #fff; font-size: 10.5px; }
.em-cp-barra b { font-weight: 600; }
.em-cp-barra span { margin-left: auto; display: flex; gap: 7px; opacity: .75; }
.em-cp-barra svg { width: 10px; height: 10px; }
.em-cp-corpo { flex: 1 1 auto; min-height: 0; padding: 8px 9px 12px; overflow: hidden; }
.em-cp-msg { margin: 0 0 6px; font-size: 10px; line-height: 1.4; color: #33343a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-cp-msg span { color: #8a8b93; margin-right: 4px; }
.em-cp-msg:first-child { padding-bottom: 6px; border-bottom: 1px solid #efeff2; color: #55565e; }
.em-ass-caixa { container-type: inline-size; }
.em-ass-z { width: var(--em-aw, 480px); zoom: .5; zoom: min(1, tan(atan2(100cqw, var(--em-aw, 480px)))); }

/* ------------------------------------------------------------------ visão ampliada */
.em-amp { container: em-a / inline-size; position: relative; padding: 32px 36px 44px; color: #e8e8ec; font-family: var(--em-f); background: #0e1018; background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1.2px); background-size: 22px 22px; }
.em-amp-cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 18px 32px; margin-bottom: 28px; }
.em-amp-tit small { font: 700 11px/1 var(--em-mono); letter-spacing: .14em; text-transform: uppercase; color: #a5f3fc; }
.em-amp-tit h2 { margin: 8px 0 8px; font: 800 30px/1.1 var(--em-f); letter-spacing: -.02em; color: #fff; }
.em-amp-tit h2 span { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: var(--em-nota); letter-spacing: 0; }
.em-amp-tit p { margin: 0; max-width: 560px; color: #9ca3af; font-size: 13.5px; line-height: 1.55; }
.em-amp-dec { align-self: end; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.em-amp-dec li { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.em-amp-dec small { font: 700 9.5px/1 var(--em-mono); letter-spacing: .12em; text-transform: uppercase; color: #8b93a1; }
.em-amp-dec b { font-size: 12.5px; line-height: 1.3; color: #fff; }
.em-amp-spec { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1.35fr .9fr .75fr; gap: 10px; }
.em-amp-spec > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.em-amp-spec small { font: 700 9.5px/1 var(--em-mono); letter-spacing: .1em; text-transform: uppercase; color: #8b93a1; }
.em-amp-spec b { font-size: 13px; line-height: 1.35; font-weight: 600; color: #f4f4f6; }
.em-spec-tipo b { font-size: 22px; line-height: 1.1; color: #fff; }
.em-spec-tipo span { font-size: 12px; color: #aab0bd; }
.em-spec-cor span { display: flex; gap: 5px; margin-top: 3px; }
.em-spec-cor i { width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

.em-amp-l1 { display: grid; grid-template-columns: 932px 250px; gap: 24px; align-items: start; }
.em-app { position: relative; border-radius: 14px; background: #fff; color: #1d1d1f; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1); }
.em-app-barra { display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 16px; border-radius: 14px 14px 0 0; background: linear-gradient(#f8f8fa, #eeeef2); border-bottom: 1px solid #dedee4; }
.em-app-busca { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 8px; background: #fff; border: 1px solid #e1e1e7; color: #9a9ba3; font-size: 12.5px; }
.em-app-ic { margin-left: auto; display: flex; gap: 14px; color: #8a8b93; }
.em-app-ic svg { width: 16px; height: 16px; }
.em-app-corpo { display: grid; grid-template-columns: 274px 656px; }
.em-lista { border-right: 1px solid #e8e8ec; background: #fafafb; border-radius: 0 0 0 14px; }
.em-lista-fixa { position: sticky; top: 0; }
.em-lista-cab { display: flex; align-items: baseline; gap: 8px; padding: 16px 16px 10px; }
.em-lista-cab b { font-size: 16px; letter-spacing: -.01em; }
.em-lista-cab small { font-size: 11.5px; color: #8a8b93; }
.em-lista-abas { display: flex; gap: 4px; padding: 0 10px 10px; border-bottom: 1px solid #ececf0; }
.em-lista-abas span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: #6b6c74; }
.em-lista-abas span svg { width: 13px; height: 13px; }
.em-lista-abas .on { background: #e9f2ff; color: #1a56c4; }
.em-lista-abas em { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 99px; background: #1a73e8; color: #fff; }
.em-li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid #efeff2; }
.em-li-on { background: #fff; box-shadow: inset 3px 0 0 var(--em-pri); }
.em-li-on .em-av { display: block; border-radius: 50%; }
.em-li-dot { position: absolute; left: 7px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: #1a73e8; }
.em-li-l1 { display: flex; align-items: baseline; gap: 8px; }
.em-li-l1 b { font-size: 13px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-li-l1 time { margin-left: auto; font-size: 11px; color: #1a56c4; font-weight: 700; }
.em-li-as { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.3; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-li p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: #6b6c74; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.em-li-sk { grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; }
.em-sk-av { width: 34px; height: 34px; border-radius: 50%; }
.em-li-sk > div { display: flex; flex-direction: column; gap: 7px; padding-top: 3px; }
.em-li-sk > div i, .em-sk-h { display: block; height: 7px; border-radius: 4px; background: #e6e6eb; }
.em-li-sk > div i:first-child { height: 9px; background: #dcdce2; }
.em-sk-h { margin-top: 4px; }
.em-leitura { min-width: 0; }
.em-leit-cab { padding: 12px 28px 16px; border-bottom: 1px solid #ececf0; }
.em-leit-acoes { display: flex; align-items: center; gap: 16px; color: #8a8b93; margin-bottom: 14px; }
.em-leit-acoes svg { width: 16px; height: 16px; }
.em-leit-acoes span { flex: 1; }
.em-leit-cab h3 { margin: 0 0 14px; font: 700 21px/1.25 var(--em-f); letter-spacing: -.01em; color: #111; }
.em-leit-de { display: flex; align-items: center; gap: 11px; }
.em-leit-de .em-av { display: block; border-radius: 50%; flex: none; }
.em-leit-de > div { min-width: 0; flex: 1; font-size: 13px; line-height: 1.35; }
.em-leit-de > div span { color: #6b6c74; }
.em-leit-de small { display: block; font-size: 11.5px; color: #8a8b93; }
.em-leit-de small em { font-style: normal; padding: 0 6px; border-radius: 4px; background: #e9f2ff; color: #1a56c4; font-weight: 600; }
.em-leit-de time { font-size: 12px; color: #6b6c74; white-space: nowrap; }
.em-leit-corpo { padding: 0 16px; background: var(--em-canvas); border-radius: 0 0 14px 0; container-type: inline-size; }
.em-tpl-amp { zoom: 1; }

/* anotações presas às seções do template (saem da janela e entram no trilho da direita) */
.em-trilho { align-self: stretch; position: relative; border-left: 1px dashed rgba(255,255,255,.1); padding-left: 16px; }
.em-trilho-cab { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; }
.em-trilho-cab b { font-size: 13px; color: #fff; }
.em-trilho-cab small { font-size: 11.5px; color: #8b93a1; line-height: 1.4; }
.em-nota { position: absolute; top: 16px; left: calc(100% + 53px); width: 250px; display: flex; gap: 10px; align-items: flex-start; text-align: left; font-family: var(--em-f); z-index: 3; }
.em-nota::before { content: ""; position: absolute; right: 100%; top: 10px; width: 53px; border-top: 1.5px dashed var(--em-nota); opacity: .9; }
.em-nota::after { content: ""; position: absolute; left: -58px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--em-nota); box-shadow: 0 0 0 3px rgba(244,114,182,.28), 0 0 0 1px #fff; }
.em-nota-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--em-nota); color: #1b0a13; font: 800 11px/1 var(--em-mono); }
.em-nota-c { min-width: 0; padding-top: 1px; }
.em-nota-c strong, .em-an strong { display: block; font-size: 12.5px; line-height: 1.3; font-weight: 700; color: #fff; }
.em-nota-c em, .em-legenda em { display: inline-block; margin: 4px 0 3px; padding: 2px 8px; border-radius: 999px; background: rgba(244,114,182,.14); color: #fbcfe8; font: 700 10.5px/1.35 var(--em-mono); font-style: normal; }
.em-nota-c span, .em-an span, .em-legenda span { display: block; font-size: 11.5px; line-height: 1.5; color: #aab0bd; }
.em-legenda { display: none; margin: 24px 0 0; padding: 0; list-style: none; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.em-legenda li { display: flex; gap: 10px; }
.em-legenda b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--em-nota); color: #1b0a13; font: 800 11px/1 var(--em-mono); }
.em-legenda strong { display: block; font-size: 12.5px; color: #fff; }

/* janela de redação com a assinatura em uso */
.em-amp-l2 { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 44px; }
.em-redacao { border-radius: 14px; overflow: hidden; background: #fff; color: #1d1d1f; box-shadow: 0 40px 90px -36px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1); }
.em-red-barra { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: linear-gradient(#f8f8fa, #eeeef2); border-bottom: 1px solid #dedee4; font-size: 13px; }
.em-red-barra b { font-weight: 600; color: #3a3b42; }
.em-red-ic { margin-left: auto; display: flex; gap: 12px; color: #8a8b93; }
.em-red-campo { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 20px; border-bottom: 1px solid #efeff2; font-size: 13px; }
.em-red-campo span { width: 56px; color: #8a8b93; }
.em-red-campo b { font-weight: 600; }
.em-red-campo i { font-style: normal; color: #8a8b93; }
.em-red-chip { font-style: normal; padding: 3px 10px; border-radius: 999px; background: #eef0f4; color: #33343a; }
.em-red-corpo { padding: 22px 28px 26px; font-size: 14px; line-height: 1.6; color: #26272c; container-type: inline-size; }
.em-red-corpo p { margin: 0 0 12px; }
.em-red-sep { margin: 18px 0 14px; color: #b0b1b8; font-family: var(--em-mono); font-size: 12px; }
.em-red-ass { width: var(--em-aw, 480px); zoom: min(1, tan(atan2(100cqw, var(--em-aw, 480px)))); }
.em-red-rodape { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-top: 1px solid #efeff2; }
.em-red-enviar { padding: 9px 22px; border-radius: 999px; background: #1a73e8; color: #fff; font-weight: 700; font-size: 13px; }
.em-red-ferr { display: flex; gap: 14px; color: #6b6c74; }
.em-red-ferr svg, .em-red-lixo svg { width: 17px; height: 17px; }
.em-red-lixo { margin-left: auto; color: #8a8b93; }
.em-ass-notas { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.em-an { display: flex; gap: 10px; align-items: flex-start; }
.em-an .em-nota-n { background: #a5f3fc; }

/* larguras menores: some a caixa de entrada; depois as notas viram legenda e o template encolhe */
@container em-a (max-width: 1204px) {
  .em-lista { display: none; }
  .em-app-corpo { grid-template-columns: 656px; }
  .em-leit-corpo { border-radius: 0 0 14px 14px; }
  .em-amp-l1 { grid-template-columns: 658px 250px; }
}
@container em-a (max-width: 929px) {
  .em-amp { padding: 20px 14px 32px; }
  .em-amp-cab { grid-template-columns: 1fr; }
  .em-amp-tit h2 { font-size: 24px; }
  .em-amp-spec { grid-template-columns: 1fr 1fr; }
  .em-amp-l1 { display: block; }
  .em-app-corpo { display: block; }
  .em-app-busca { display: none; }
  .em-leit-cab { padding: 12px 14px 14px; }
  .em-leit-cab h3 { font-size: 17px; }
  .em-leit-de time { display: none; }
  .em-leit-corpo { padding: 0; }
  .em-tpl-amp { zoom: min(1, tan(atan2(100cqw, 624px))); }
  .em-trilho, .em-nota { display: none; }
  .em-legenda { display: grid; }
  .em-amp-l2 { grid-template-columns: 1fr; margin-top: 32px; }
  .em-red-corpo { padding: 16px 14px 18px; }
  .em-red-campo { padding: 0 14px; }
}
@container em-a (max-width: 520px) {
  .em-amp-spec { grid-template-columns: 1fr; }
  .em-amp-dec li { flex: 1 1 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .em-janela, .em-compor, .em-aba { transition: none; }
}
