/* Espaços (espacos.js, espacos-editor.js, espacos-blocos.js).
   Identidade v4: roxo em blocos sólidos, limão só na ação principal, títulos
   condensados. Valores de tokens.css.

   Computador: barra lateral (272px) + a página, cada uma rolando sozinha.
   Celular: a lista dos espaços é uma tela; a página abre por cima. */

:root {
  --c-cinza: #A8A2B5;   --f-cinza: rgba(255, 255, 255, .08);
  --c-roxo: #C3ACFF;    --f-roxo: rgba(122, 53, 255, .24);
  --c-lilas: #DCC9FF;   --f-lilas: rgba(195, 172, 255, .16);
  --c-rosa: #F2A7CF;    --f-rosa: rgba(231, 155, 196, .18);
  --c-vermelho: #F08A74; --f-vermelho: rgba(224, 102, 76, .2);
  --c-laranja: #F2A65A; --f-laranja: rgba(242, 166, 90, .18);
  --c-amarelo: #E8C766; --f-amarelo: rgba(224, 178, 74, .2);
  --c-verde: #A6C892;   --f-verde: rgba(127, 164, 107, .22);
  --c-azul: #8CC4FF;    --f-azul: rgba(45, 156, 255, .2);
  --es-lado: 272px;
}

[id^="es"][hidden], .es [hidden], .es-teclado[hidden] { display: none !important; }
.es svg, .es-menu svg, .es-teclado svg, .es-fmt svg {
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none;
}

/* ------------------------------------------------------------ a casca */

body[data-nv="espacos"] .st-main { padding: 0; overflow: hidden; }
.st-main > section.es {
  max-width: none; height: 100%; margin: 0;
  display: flex; min-height: 0;
}
.es-miolo { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.es-pagina, .es-config, .es-inicio { flex: 1; min-height: 0; }
.es-inicio { overflow-y: auto; padding: 0 0 80px; }

/* ------------------------------------------------------- barra lateral */

.es-lado {
  width: var(--es-lado); flex: none; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 10px 16px; box-sizing: border-box;
  background: var(--bg-panel);
}
.es-lado-cel, .es-busca-cel, .es-cartoes, .es-nova-cel, .es-volta-cel { display: none; }

.es-tile {
  --tam: 34px;
  width: var(--tam); height: var(--tam); flex: none;
  display: inline-grid; place-items: center;
  border-radius: calc(var(--tam) * .3);
  background: var(--accent) center / cover no-repeat; color: #fff;
  font: 800 condensed calc(var(--tam) * .46)/1 var(--font-display);
}
.es-tile.foto { color: transparent; }

.es-troca {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: var(--r-md);
  background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.es-troca:hover { background: var(--e1); }
.es-troca-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.es-troca-txt b { font: 600 14.5px/1.25 var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-troca-txt small { font: 400 12px/1.3 var(--font-ui); color: var(--ink-soft); }
.es-troca .eb-ic { transform: rotate(90deg); color: var(--ink-soft); }

.es-lado-it {
  display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px;
  border: 0; border-radius: 10px; background: none; color: var(--ink-body);
  font: 500 13.5px/1 var(--font-ui); cursor: pointer; text-align: left;
}
.es-lado-it svg { width: 16px; height: 16px; }
.es-lado-it:hover { background: var(--e1); color: var(--ink); }
.es-buscar { margin-top: 8px; background: var(--e1); color: var(--ink-soft); }

.es-sec {
  margin: 0; padding: 16px 10px 6px;
  font: var(--t-section); letter-spacing: var(--t-section-tr); text-transform: uppercase; color: var(--ink-soft);
}
.es-fav { display: flex; flex-direction: column; gap: 1px; }
.es-pg-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }

.es-pg {
  --nivel: 0;
  display: flex; align-items: center; gap: 2px; min-height: 32px;
  padding: 0 4px 0 calc(4px + var(--nivel) * 16px); border-radius: 10px; position: relative;
}
.es-pg:hover { background: var(--e1); }
.es-pg.on { background: var(--accent-wash); }
.es-pg.on .es-pg-nome { color: var(--ink); font-weight: 600; }
.es-pg-seta, .es-pg-mais {
  width: 22px; height: 22px; flex: none; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none; color: var(--ink-dim); cursor: pointer;
}
.es-pg-seta:hover, .es-pg-mais:hover { background: var(--e2); color: var(--ink); }
.es-pg-seta .eb-ic { transition: transform var(--t-base) var(--t-ease); }
.es-pg-seta[aria-expanded="true"] .eb-ic { transform: rotate(90deg); }
.es-pg-seta.vazia { visibility: hidden; }
.es-pg-mais { opacity: 0; }
.es-pg:hover .es-pg-mais, .es-pg-mais:focus-visible { opacity: 1; }
.es-pg-ir {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px;
  border: 0; background: none; color: var(--ink-body); font: 400 13.5px/1 var(--font-ui);
  text-align: left; cursor: pointer;
}
.es-pg-ir.solta { padding: 0 10px; border-radius: 10px; }
.es-pg-ir.solta:hover { background: var(--e1); }
.es-pg-ir.solta.on { background: var(--accent-wash); color: var(--ink); }
.es-pg-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-arvore-vazia { margin: 4px 10px; font: 400 13px/1.4 var(--font-ui); color: var(--ink-dim); }

.es-lado-pe { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.es-nova {
  margin-top: 8px; height: 40px; border: 0; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-alto); color: var(--ink); font: 600 14px/1 var(--font-ui); cursor: pointer;
}
.es-nova:hover { background: var(--e3); }
.es-nova svg { width: 16px; height: 16px; stroke-width: 2.4; }

/* ------------------------------------------------------------- página */

.es-pagina { display: flex; flex-direction: column; }
.es-topo {
  height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 22px;
}
.es-caminho {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden;
  font: 400 13.5px/1 var(--font-ui); color: var(--ink-soft); white-space: nowrap;
}
.es-cam-it { border: 0; background: none; padding: 4px 2px; color: inherit; font: inherit; cursor: pointer;
             overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.es-cam-it:hover { color: var(--ink); }
.es-cam-it.aqui { color: var(--ink); cursor: default; }
.es-cam-sep { color: var(--ink-dim); }
.es-salvo { font: 400 12.5px/1 var(--font-ui); color: var(--ink-soft); white-space: nowrap; }
.es-salvo[data-estado="offline"] { color: var(--warn); }
.es-gente { display: inline-flex; align-items: center; border: 0; background: none; padding: 0; cursor: pointer; }
.es-gente .gr-av { width: 28px; height: 28px; font-size: 10.5px; border: 2px solid var(--bg); box-sizing: content-box; }
.es-gente .gr-av + .gr-av { margin-left: -8px; }
.es-gente .gr-av.mais { background: var(--bg-alto); color: var(--ink); }
.es-convidar {
  height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-pill);
  background: var(--e2); color: var(--ink); font: 600 13px/1 var(--font-ui); cursor: pointer;
}
.es-convidar:hover { background: var(--e3); }
.es-redondo {
  width: 34px; height: 34px; flex: none; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer;
}
.es-redondo:hover { background: var(--e2); color: var(--ink); }
.es-redondo svg { width: 18px; height: 18px; }
.es-fav-btn.on { color: var(--warn); }
.es-fav-btn.on svg { fill: currentColor; }

.es-rolagem { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 120px; scroll-padding: 120px 0; }
.es-capa {
  height: 210px; margin: 0 22px; border-radius: var(--r-2xl); position: relative;
  background: var(--accent) center / cover no-repeat;
}
.es-capa-btn {
  position: absolute; right: 14px; bottom: 12px; height: 30px; padding: 0 12px;
  border: 0; border-radius: var(--r-pill); background: rgba(9, 8, 13, .6); color: var(--ink);
  font: 500 12.5px/1 var(--font-ui); cursor: pointer; opacity: 0; transition: opacity var(--t-fast);
}
.es-capa:hover .es-capa-btn, .es-capa-btn:focus-visible { opacity: 1; }

.es-folha { max-width: 760px; margin: 0 auto; padding: 0 56px; position: relative; }
.es-pagina.largo .es-folha { max-width: 1240px; }
.es-capa:not([hidden]) + .es-folha .es-icone { margin-top: -50px; }
.es-capa[hidden] + .es-folha { padding-top: 54px; }
.es-icone {
  display: block; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.es-icone .eb-pic { box-shadow: 0 0 0 6px var(--bg); border-radius: 22px; }
.es-icone:disabled { cursor: default; }
.es-pag-acoes {
  display: flex; gap: 4px; margin: 12px 0 0 -8px; opacity: 0; transition: opacity var(--t-fast);
}
.es-folha:hover .es-pag-acoes, .es-pag-acoes:focus-within { opacity: 1; }
.es-pag-acoes button {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px;
  border: 0; border-radius: 8px; background: none; color: var(--ink-soft);
  font: 500 12.5px/1 var(--font-ui); cursor: pointer;
}
.es-pag-acoes button:hover { background: var(--e1); color: var(--ink); }
.es-pag-acoes svg { width: 15px; height: 15px; }
.es-titulo {
  margin: 12px 0 4px; outline: none;
  font: 800 condensed 64px/.98 var(--font-display); letter-spacing: -.015em; color: var(--ink);
  overflow-wrap: anywhere;
}
.es-titulo:empty::before { content: attr(data-ph); color: var(--ink-dim); }
.es-meta { margin: 0 0 18px; font: 400 13px/1.4 var(--font-ui); color: var(--ink-soft); }
.es-meta:empty { margin-bottom: 14px; }

.es-corpo { min-height: 180px; padding-bottom: 40px; cursor: text; }
.es-corpo.so-ler { cursor: default; }
.es-corpo.vazio::before {
  content: "Escreva ou digite / para comandos"; display: block; padding: 4px 0;
  font: var(--t-body); color: var(--ink-dim); pointer-events: none;
}

.es-refs { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.es-refs .es-sec { width: 100%; padding: 0 0 6px; }
.es-ref {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 0; border-radius: var(--r-pill); background: var(--e1); color: var(--ink-body);
  font: 500 13px/1 var(--font-ui); cursor: pointer;
}
.es-ref:hover { background: var(--e2); color: var(--ink); }

/* ------------------------------------------------------ início do espaço */

.es-ini-capa {
  height: 190px; margin: 0 22px; border-radius: var(--r-2xl); position: relative; overflow: hidden;
  background: var(--accent) center / cover no-repeat;
}
.es-ini-capa-txt, .es-cfg-capa .es-ini-capa-txt {
  position: absolute; left: 24px; bottom: -.28em; white-space: nowrap; pointer-events: none;
  font: 800 condensed 230px/1 var(--font-display); letter-spacing: -.03em;
  color: rgba(0, 0, 0, .14); text-transform: uppercase;
}
.es-ini-cab { max-width: 760px; margin: -44px auto 0; padding: 0 56px; display: flex; align-items: flex-end; gap: 18px; position: relative; }
.es-ini-cab .es-tile { box-shadow: 0 0 0 6px var(--bg); }
.es-ini-nome { margin: 0; font: 800 condensed 52px/.95 var(--font-display); color: var(--ink); }
.es-ini-sub { margin: 6px 0 4px; font: 400 14px/1.4 var(--font-ui); color: var(--ink-soft); }
.es-inicio > .es-sec, .es-ini-grade, .es-modelos { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 56px; padding-right: 56px; box-sizing: border-box; }
.es-inicio > .es-sec { padding-top: 28px; }
.es-ini-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 26px; }
.es-ini-pg {
  display: flex; align-items: center; gap: 12px; padding: 14px; min-width: 0;
  border: 0; border-radius: var(--r-xl); background: var(--bg-panel); color: var(--ink); cursor: pointer; text-align: left;
}
.es-ini-pg:hover { background: var(--bg-alto); }
.es-ini-pg b { font: 800 condensed 21px/1.05 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.es-modelo {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; text-align: left;
  border: 1px dashed var(--line-strong); border-radius: var(--r-xl); background: none; color: var(--ink); cursor: pointer;
}
.es-modelo:hover { border-style: solid; background: var(--e1); }
.es-modelo b { font: 600 14.5px/1.2 var(--font-ui); }
.es-modelo small { font: 400 12.5px/1.35 var(--font-ui); color: var(--ink-soft); }

/* ------------------------------------------------------- configurações */

.es-config { display: flex; flex-direction: column; }
.es-cfg-rolagem { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 120px; }
.es-cfg { max-width: 1000px; margin: 0 auto; padding: 22px 28px 0; }
.es-cfg-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 400 14px/1 var(--font-ui); color: var(--ink-soft); }
.es-volta {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px;
  border: 0; border-radius: var(--r-pill); background: var(--e2); color: var(--ink); font: 600 13px/1 var(--font-ui); cursor: pointer;
}
.es-volta .eb-ic { transform: rotate(180deg); }
.es-cfg-capa { height: 190px; border-radius: var(--r-2xl); position: relative; overflow: hidden; background: var(--accent) center / cover no-repeat; }
.es-cfg-capa .es-capa-btn { opacity: 1; }
.es-cfg-cab { display: flex; align-items: flex-end; gap: 20px; padding: 0 28px; margin-top: -48px; position: relative; }
.es-cfg-foto { position: relative; }
.es-cfg-foto .es-tile { box-shadow: 0 0 0 6px var(--bg); }
.es-cfg-foto-btn {
  position: absolute; right: -6px; bottom: -6px; width: 36px; height: 36px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--bg-alto); color: var(--ink); box-shadow: 0 0 0 4px var(--bg); cursor: pointer;
}
.es-cfg-nomes { flex: 1; min-width: 0; padding-bottom: 6px; }
.es-cfg-nome { margin: 0; font: 800 condensed 56px/.95 var(--font-display); color: var(--ink); outline: none; overflow-wrap: anywhere; }
.es-cfg-desc { margin: 6px 0 0; font: 400 14px/1.4 var(--font-ui); color: var(--ink-soft); outline: none; min-height: 1.4em; }
.es-cfg-desc:empty::before { content: attr(data-ph); color: var(--ink-dim); }
.es-cfg-abas { display: flex; gap: 6px; margin: 26px 0 18px; flex-wrap: wrap; }
.es-cfg-aba {
  height: 38px; padding: 0 18px; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--ink-soft); font: 600 14px/1 var(--font-ui); cursor: pointer;
}
.es-cfg-aba:hover { color: var(--ink); }
.es-cfg-aba.on { background: var(--ink); color: var(--acao-ink); }
.es-cfg-corpo { display: flex; flex-direction: column; gap: 14px; }
.es-cfg-corpo > .es-sec { padding: 0; }

.es-chamar { display: flex; gap: 10px; flex-wrap: wrap; }
.es-chamar .st-campo { flex: 1 1 260px; height: 46px; border-radius: var(--r-pill); padding: 0 18px; }
.es-cargo-btn {
  height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); flex: none;
  background: var(--e2); color: var(--ink); font: 600 13px/1 var(--font-ui); cursor: pointer;
}
.es-chamar .es-cargo-btn, .es-chamar .st-btn { height: 46px; }
.es-cargo-btn.admin { background: var(--accent); color: var(--accent-ink); }
.es-cargo-btn:disabled { cursor: default; }
.es-cargo-btn:not(:disabled):hover { background: var(--e3); }
.es-cargo-btn.admin:not(:disabled):hover { background: var(--accent-hover); }
.es-retorno { margin: 0; padding: 10px 14px; border-radius: var(--r-lg); background: var(--accent-wash); font: 400 13.5px/1.4 var(--font-ui); color: var(--ink); }
.es-retorno.erro { background: rgba(224, 102, 76, .16); }

.es-pessoas { border-radius: var(--r-xl); background: var(--bg-panel); overflow: hidden; }
.es-pessoa { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 16px; border-top: 1px solid var(--line-soft); }
.es-pessoas .es-pessoa:first-child, .es-lixeira .es-pessoa:first-child { border-top: 0; }
.es-pessoa .gr-av { width: 40px; height: 40px; font-size: 13px; }
.es-pessoa-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.es-pessoa-txt b { font: 600 14.5px/1.25 var(--font-ui); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-pessoa-txt span { font: 400 12.5px/1.3 var(--font-ui); color: var(--ink-soft); }
.es-cfg-perigo { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.es-vazio-txt { margin: 8px 0; font: 400 14px/1.45 var(--font-ui); color: var(--ink-soft); }

.es-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.es-cor-esp {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.es-cor-esp.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

/* -------------------------------------------------------------- menus */

.es-menu {
  position: fixed; z-index: 80; min-width: 220px; max-width: min(360px, calc(100vw - 16px));
  max-height: min(440px, calc(100vh - 24px)); overflow-y: auto;
  padding: 6px; box-sizing: border-box;
  background: var(--bg-panel); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
  font-family: var(--font-ui);
}
.es-menu-txt { width: 330px; }
.es-menu hr { border: 0; height: 1px; margin: 5px 6px; background: var(--line); }
.es-menu-sec { padding: 8px 10px 5px; font: var(--t-section); letter-spacing: var(--t-section-tr); text-transform: uppercase; color: var(--ink-soft); }
.es-menu-it {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 38px; padding: 4px 10px;
  border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left;
  font: 400 14px/1.25 var(--font-ui); cursor: pointer;
}
.es-menu-it:hover, .es-menu-it.on { background: var(--accent-wash); }
.es-menu-it.perigo { color: var(--err); }
.es-menu-it.perigo:hover { background: rgba(224, 102, 76, .14); }
.es-menu-it .eb-ic { color: var(--ink-soft); }
.es-menu-it.perigo .eb-ic { color: var(--err); }
.es-menu-it kbd { margin-left: auto; font: 400 11px/1 var(--font-mono); color: var(--ink-dim); }
.es-menu-ic {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--e2); color: var(--ink-body);
}
.es-menu-ic.lima { background: var(--acao); color: var(--acao-ink); }
.es-menu-txt { display: flex; flex-direction: column; min-width: 0; }
.es-menu-it .es-menu-txt { width: auto; flex: 1; }
.es-menu-txt b { font: 500 14px/1.25 var(--font-ui); }
.es-menu-txt small { font: 400 12px/1.3 var(--font-ui); color: var(--ink-soft); }
.es-menu-nada { padding: 12px 10px; font: 400 13px/1.3 var(--font-ui); color: var(--ink-dim); }
.es-menu-bloco { width: 268px; }
.es-menu-bloco .es-chips { padding: 2px 8px 8px; }
.es-chip {
  height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-pill);
  background: var(--e2); color: var(--ink); font: 500 12.5px/1 var(--font-ui); cursor: pointer;
}
.es-chip:hover { background: var(--e3); }
.es-chip.on { background: var(--accent); color: var(--accent-ink); }
.es-cores { gap: 5px; }
.es-cor {
  width: 24px; height: 24px; padding: 0; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--e2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.es-cor.on { box-shadow: 0 0 0 2px var(--ink); }
.es-cor[data-cor="nenhuma"] { background: linear-gradient(135deg, transparent 45%, var(--err) 46% 54%, transparent 55%), var(--e1); }
.es-menu-esp { width: 290px; }
.es-menu-esp .es-menu-it.convite small { color: var(--acao); }
.es-menu-cargo { width: 320px; background: var(--bg-alto); }
.es-cargo-op {
  display: flex; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px;
  background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.es-cargo-op:hover, .es-cargo-op.on { background: var(--e2); }
.es-cargo-bola { width: 10px; height: 10px; flex: none; margin-top: 5px; border-radius: 50%; }
.es-cargo-bola.admin { background: var(--accent); }
.es-cargo-bola.moderador { background: var(--accent-texto); }
.es-cargo-bola.convidado { background: var(--ink); }
.es-menu-cor { width: 300px; display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.es-menu-cor .es-cores { display: grid; grid-template-columns: repeat(9, 1fr); }
.es-menu-icone { width: 320px; display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.es-glifos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.es-glifo { padding: 3px; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.es-glifo:hover, .es-glifo.on { background: var(--e2); }
.es-emoji-linha { display: flex; gap: 8px; }
.es-emoji-linha .st-campo { flex: 1; height: 38px; }

/* barra de formatação sobre a seleção */
.es-fmt {
  position: fixed; z-index: 85; display: flex; align-items: center; gap: 2px; padding: 5px;
  background: var(--bg-alto); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}
.es-fmt[hidden] { display: none; }
.es-fmt button {
  min-width: 30px; height: 30px; padding: 0 7px; border: 0; border-radius: 9px;
  display: inline-grid; place-items: center; background: none; color: var(--ink); cursor: pointer;
  font: 600 14px/1 var(--font-ui);
}
.es-fmt button:hover { background: var(--e2); }
.es-fmt-b { font-weight: 800 !important; }
.es-fmt-i { font-style: italic !important; font-family: Georgia, serif !important; }
.es-fmt-s { text-decoration: line-through; }
.es-fmt-u { text-decoration: underline; }
.es-fmt-c { font: 500 11.5px/1 var(--font-mono) !important; }
.es-fmt-bola { width: 14px; height: 14px; border-radius: 50%; background: var(--c-roxo); }

/* arrastar */
.es-linha-solta { position: fixed; z-index: 90; background: var(--accent); border-radius: 2px; pointer-events: none; }
body.es-arrastando, body.es-arrastando * { cursor: grabbing !important; user-select: none; }
.eb.arrastando { opacity: .35; }

/* ----------------------------------------------------------- folhas */

.es-acao { background: var(--acao) !important; color: var(--acao-ink) !important; border-color: transparent !important; font-weight: 700; }
.es-acao:hover:not(:disabled) { background: var(--acao-hover) !important; }
.es-form { display: flex; flex-direction: column; gap: 14px; }
.es-form .st-campo { height: 46px; }
.es-convite { display: flex; flex-direction: column; gap: 14px; }
.es-convite-topo { display: flex; align-items: center; gap: 14px; }
.es-convite-topo p { margin: 0; font: 400 16px/1.4 var(--font-ui); color: var(--ink-body); }
.es-convite-topo b { color: var(--ink); font-weight: 600; }
.es-convite-cargo { margin: 0; font: 400 13.5px/1.45 var(--font-ui); color: var(--ink-soft); }
.es-convite-acoes { display: flex; gap: 8px; }
.es-vsel { display: flex; flex-direction: column; gap: 14px; }
.es-vsel-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; }
.es-vsel-it {
  aspect-ratio: 9 / 16; position: relative; padding: 0; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: var(--bg-alto) center / cover no-repeat;
}
.es-vsel-marca {
  position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .35); box-sizing: border-box;
}
.es-vsel-it.on { box-shadow: 0 0 0 3px var(--accent); }
.es-vsel-it.on .es-vsel-marca { background: var(--acao); border-color: var(--acao); }
.es-vsel-pe { display: flex; justify-content: flex-end; }
.es-psel { display: flex; flex-direction: column; gap: 10px; }
.es-psel .st-campo { height: 44px; }
.es-psel-lista { display: flex; flex-direction: column; gap: 2px; max-height: 56vh; overflow-y: auto; }
.es-psel-it {
  display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 10px;
  border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left;
  font: 400 15px/1.3 var(--font-ui); cursor: pointer;
}
.es-psel-it:hover { background: var(--e1); }
.es-busca { display: flex; flex-direction: column; gap: 10px; }
.es-busca .st-campo { height: 46px; }
.es-busca-txt { display: flex; flex-direction: column; min-width: 0; }
.es-busca-txt small { font: 400 12.5px/1.3 var(--font-ui); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-lixeira { display: flex; flex-direction: column; }
.es-enviando p { margin: 6px 0; font: 400 15px/1.4 var(--font-ui); color: var(--ink-body); }

/* ------------------------------------------------- barra do teclado */

.es-teclado {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 6px;
  background: var(--bg-panel); border-top: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.es-teclado button {
  width: 44px; height: 44px; flex: none; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer;
}
.es-teclado button svg { width: 20px; height: 20px; }
.es-teclado button b { font: 800 condensed 18px/1 var(--font-display); }
.es-teclado .roxo { background: var(--accent); color: var(--accent-ink); }
.es-teclado .lima svg { color: var(--acao); }
.es-teclado .fim {
  width: auto; margin-left: auto; padding: 0 16px; height: 36px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--accent-ink); font: 600 13.5px/1 var(--font-ui);
}

/* =============================================================== blocos */

.eb { position: relative; margin: 1px 0; border-radius: 6px; }
.eb-ic { display: block; }
.eb-alca {
  position: absolute; left: -50px; top: 2px; display: flex; gap: 1px;
  opacity: 0; transition: opacity var(--t-fast);
}
.eb:hover > .eb-alca, .eb:focus-within > .eb-alca { opacity: 1; }
.eb-grade > .eb > .eb-alca { left: 6px; top: 6px; z-index: 2; }
.eb-mais, .eb-pega {
  width: 24px; height: 26px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none; color: var(--ink-dim); cursor: pointer;
}
.eb-pega { cursor: grab; touch-action: none; }
.eb-pega svg { fill: currentColor; stroke: none; }
.eb-mais:hover, .eb-pega:hover { background: var(--e2); color: var(--ink); }
.eb-grade > .eb > .eb-alca .eb-mais, .eb-grade > .eb > .eb-alca .eb-pega { background: rgba(9, 8, 13, .6); color: var(--ink); }

.eb-linha { display: flex; align-items: flex-start; gap: 8px; }
.eb-txt {
  flex: 1; min-width: 0; padding: 3px 2px; outline: none;
  font: var(--t-body); font-size: 16px; color: var(--ink-body);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.eb-txt:empty::before { content: attr(data-ph); color: var(--ink-dim); pointer-events: none; }
.eb[data-tipo="texto"] > .eb-linha > .eb-txt:empty:not(:focus)::before { content: ""; }
.es-corpo.so-ler .eb-txt:empty::before { content: ""; }

.eb[data-tipo="titulo1"] { margin-top: 26px; }
.eb[data-tipo="titulo2"] { margin-top: 20px; }
.eb[data-tipo="titulo3"] { margin-top: 14px; }
.eb[data-tipo="titulo1"] > .eb-linha > .eb-txt { font: 800 condensed 40px/1.02 var(--font-display); color: var(--ink); }
.eb[data-tipo="titulo2"] > .eb-linha > .eb-txt { font: 800 condensed 30px/1.05 var(--font-display); color: var(--ink); }
.eb[data-tipo="titulo3"] > .eb-linha > .eb-txt { font: 700 condensed 23px/1.1 var(--font-display); color: var(--ink); }
.eb[data-tipo^="titulo"] > .eb-alca { top: 8px; }

.eb-ponto { width: 22px; flex: none; height: 30px; position: relative; }
.eb-ponto::before { content: ""; position: absolute; left: 8px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-body); }
.eb-num { min-width: 22px; flex: none; padding-top: 3px; font: 500 15px/1.6 var(--font-ui); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.eb-caixa {
  width: 20px; height: 20px; flex: none; margin: 5px 1px 0; padding: 0; cursor: pointer;
  border: 2px solid var(--ink-dim); border-radius: 6px; background: none; box-sizing: border-box;
}
.eb-caixa:hover { border-color: var(--ink-soft); }
.eb.feito > .eb-linha > .eb-caixa {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  border-color: var(--accent);
}
.eb.feito > .eb-linha > .eb-txt { color: var(--ink-dim); text-decoration: line-through; }
.eb-seta {
  width: 24px; height: 26px; flex: none; padding: 0; margin-top: 1px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none; color: var(--ink-soft); cursor: pointer;
}
.eb-seta:hover { background: var(--e2); }
.eb-seta .eb-ic { transition: transform var(--t-base) var(--t-ease); }
.eb.aberto > .eb-linha > .eb-seta .eb-ic { transform: rotate(90deg); }
.eb[data-tipo="alternancia"]:not(.aberto) > .eb-filhos { display: none; }

.eb[data-tipo="citacao"] > .eb-linha { padding-left: 16px; position: relative; }
.eb[data-tipo="citacao"] > .eb-linha::before { content: ""; position: absolute; left: 2px; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--accent); }
.eb[data-tipo="citacao"] > .eb-linha > .eb-txt { font-size: 17px; color: var(--ink); }

.eb[data-tipo="destaque"] { margin: 8px 0; }
.eb[data-tipo="destaque"] > .eb-linha { gap: 14px; padding: 16px 18px; border-radius: var(--r-xl); background: var(--bg-alto); }
.eb-dest-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--acao); color: var(--acao-ink); }
.eb[data-tipo="destaque"] > .eb-filhos { padding: 0 18px 12px 62px; margin-top: -10px; border-radius: 0 0 var(--r-xl) var(--r-xl); background: var(--bg-alto); }
.eb[data-tipo="destaque"] > .eb-filhos:empty { display: none; }

.eb-filhos { padding-left: 26px; }
.eb-filhos:empty { display: none; }
.eb-hr { border: 0; height: 1px; margin: 14px 0; background: var(--line); }
.eb[data-tipo="divisor"] > .eb-alca { top: 2px; }

/* cores de bloco e de texto */
.eb[data-cor] > .eb-linha > .eb-txt, [data-cor] { --cor-txt: inherit; }
.eb[data-cor="cinza"] > .eb-linha > .eb-txt, span[data-cor="cinza"] { color: var(--c-cinza); }
.eb[data-cor="roxo"] > .eb-linha > .eb-txt, span[data-cor="roxo"] { color: var(--c-roxo); }
.eb[data-cor="lilas"] > .eb-linha > .eb-txt, span[data-cor="lilas"] { color: var(--c-lilas); }
.eb[data-cor="rosa"] > .eb-linha > .eb-txt, span[data-cor="rosa"] { color: var(--c-rosa); }
.eb[data-cor="vermelho"] > .eb-linha > .eb-txt, span[data-cor="vermelho"] { color: var(--c-vermelho); }
.eb[data-cor="laranja"] > .eb-linha > .eb-txt, span[data-cor="laranja"] { color: var(--c-laranja); }
.eb[data-cor="amarelo"] > .eb-linha > .eb-txt, span[data-cor="amarelo"] { color: var(--c-amarelo); }
.eb[data-cor="verde"] > .eb-linha > .eb-txt, span[data-cor="verde"] { color: var(--c-verde); }
.eb[data-cor="azul"] > .eb-linha > .eb-txt, span[data-cor="azul"] { color: var(--c-azul); }
.eb[data-cor$="_fundo"] > .eb-linha { border-radius: 8px; padding-left: 6px; padding-right: 6px; }
span[data-cor$="_fundo"] { border-radius: 4px; padding: 0 2px; }
.eb[data-cor="cinza_fundo"] > .eb-linha, span[data-cor="cinza_fundo"] { background: var(--f-cinza); }
.eb[data-cor="roxo_fundo"] > .eb-linha, span[data-cor="roxo_fundo"] { background: var(--f-roxo); }
.eb[data-cor="lilas_fundo"] > .eb-linha, span[data-cor="lilas_fundo"] { background: var(--f-lilas); }
.eb[data-cor="rosa_fundo"] > .eb-linha, span[data-cor="rosa_fundo"] { background: var(--f-rosa); }
.eb[data-cor="vermelho_fundo"] > .eb-linha, span[data-cor="vermelho_fundo"] { background: var(--f-vermelho); }
.eb[data-cor="laranja_fundo"] > .eb-linha, span[data-cor="laranja_fundo"] { background: var(--f-laranja); }
.eb[data-cor="amarelo_fundo"] > .eb-linha, span[data-cor="amarelo_fundo"] { background: var(--f-amarelo); }
.eb[data-cor="verde_fundo"] > .eb-linha, span[data-cor="verde_fundo"] { background: var(--f-verde); }
.eb[data-cor="azul_fundo"] > .eb-linha, span[data-cor="azul_fundo"] { background: var(--f-azul); }
.es-cor[data-cor="cinza"] { background: var(--c-cinza); } .es-cor[data-cor="cinza_fundo"] { background: var(--f-cinza); }
.es-cor[data-cor="roxo"] { background: var(--c-roxo); } .es-cor[data-cor="roxo_fundo"] { background: var(--f-roxo); }
.es-cor[data-cor="lilas"] { background: var(--c-lilas); } .es-cor[data-cor="lilas_fundo"] { background: var(--f-lilas); }
.es-cor[data-cor="rosa"] { background: var(--c-rosa); } .es-cor[data-cor="rosa_fundo"] { background: var(--f-rosa); }
.es-cor[data-cor="vermelho"] { background: var(--c-vermelho); } .es-cor[data-cor="vermelho_fundo"] { background: var(--f-vermelho); }
.es-cor[data-cor="laranja"] { background: var(--c-laranja); } .es-cor[data-cor="laranja_fundo"] { background: var(--f-laranja); }
.es-cor[data-cor="amarelo"] { background: var(--c-amarelo); } .es-cor[data-cor="amarelo_fundo"] { background: var(--f-amarelo); }
.es-cor[data-cor="verde"] { background: var(--c-verde); } .es-cor[data-cor="verde_fundo"] { background: var(--f-verde); }
.es-cor[data-cor="azul"] { background: var(--c-azul); } .es-cor[data-cor="azul_fundo"] { background: var(--f-azul); }

/* texto rico */
.eb-txt strong { font-weight: 700; color: var(--ink); }
.eb-txt code {
  padding: 1px 5px; border-radius: 5px; background: var(--e2);
  font: 400 .88em/1 var(--font-mono); color: var(--c-vermelho);
}
.eb-txt a { color: var(--accent-texto); text-decoration: underline; text-underline-offset: 2px; }
.eb-mencao {
  display: inline; padding: 1px 4px; border-radius: 5px; cursor: pointer;
  background: var(--accent-wash); color: var(--accent-texto); font-weight: 500; white-space: nowrap;
}
.eb-mencao.sumiu { background: var(--e1); color: var(--ink-dim); text-decoration: line-through; }

/* ícone de página */
.eb-pic {
  --tam: 20px;
  width: var(--tam); height: var(--tam); flex: none; display: inline-grid; place-items: center;
  border-radius: calc(var(--tam) * .3); background: #3A3448 center / cover no-repeat; color: #fff;
  font-size: calc(var(--tam) * .78); line-height: 1;
}
.eb-pic.emoji { background: none; font-family: var(--font-emoji); }
.eb-pic .eb-ic { stroke-width: 2.3; }

/* imagem */
.eb-fig { margin: 10px 0; }
.eb-fig img { display: block; max-width: 100%; border-radius: var(--r-lg); }
.eb-legenda { margin-top: 6px; font-size: 13.5px !important; color: var(--ink-soft) !important; }
.eb-vazio {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 16px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: none;
  color: var(--ink-soft); font: 500 14px/1 var(--font-ui); cursor: pointer;
}
.eb-vazio:hover:not(:disabled) { background: var(--e1); color: var(--ink); border-style: solid; }
.eb-vazio:disabled { cursor: default; }
.eb-vazio-txt { padding: 6px 0; font: 400 14px/1.4 var(--font-ui); color: var(--ink-dim); }

/* vídeos: lado a lado */
.eb-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.eb-grade > .eb { margin: 0; }
.eb-vid {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-xl);
  background: var(--bg-alto) center / cover no-repeat;
}
.eb-vid.vazio { display: grid; place-items: center; padding: 12px; border: 1px dashed var(--line-strong); background: none; }
.eb-vid.vazio .eb-vazio { flex-direction: column; justify-content: center; height: 100%; border: 0; text-align: center; }
.eb-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 3; }
.eb-selo {
  position: absolute; left: 10px; top: 10px; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  display: flex; align-items: center; font: 700 10.5px/1 var(--font-ui); letter-spacing: .04em;
}
.eb-grade .eb:hover .eb-selo { opacity: 0; }
.eb-selo.original { background: var(--ink); color: var(--acao-ink); }
.eb-selo.pronto { background: var(--accent); color: var(--accent-ink); }
.eb-tocar {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(9, 8, 13, .62); color: #fff; cursor: pointer;
}
.eb-tocar svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.eb-vid-pe { position: absolute; left: 8px; right: 8px; bottom: 30px; display: flex; gap: 6px; opacity: 0; transition: opacity var(--t-fast); }
.eb-vid:hover .eb-vid-pe, .eb-vid:focus-within .eb-vid-pe { opacity: 1; }
.eb-usar {
  flex: 1; height: 34px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--acao); color: var(--acao-ink); font: 700 13px/1 var(--font-ui);
}
.eb-usar:hover { background: var(--acao-hover); }
.eb-usar:disabled { opacity: .6; }
.eb-baixar {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: rgba(9, 8, 13, .62); color: #fff;
}
.eb-vid-info { position: absolute; left: 10px; bottom: 9px; font: 400 11.5px/1 var(--font-mono); color: var(--ink-body); text-shadow: 0 1px 3px #000; }
.eb-vid-leg {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 40%; overflow: hidden; padding: 30px 10px 26px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font: 400 12px/1.35 var(--font-ui); color: #fff;
  pointer-events: none; display: none;
}

/* link do TikTok e link comum */
.eb-cartao {
  display: flex; align-items: center; gap: 14px; margin: 8px 0; padding: 12px 12px 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.eb-cartao-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--e2); color: var(--ink); }
.eb-cartao-ic.tiktok { background: var(--ink); color: var(--acao-ink); }
.eb-cartao-meio { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eb-cartao-meio b { font: 600 14.5px/1.25 var(--font-ui); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-cartao-url { font: 400 12px/1.2 var(--font-mono); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-trazer {
  height: 36px; padding: 0 16px; flex: none; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 600 13.5px/1 var(--font-ui); white-space: nowrap;
}
.eb-trazer:hover { background: var(--accent-hover); }
.eb-cartao-abrir { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--ink-soft); }
.eb-cartao-abrir:hover { background: var(--e2); color: var(--ink); }
.eb-cartao > .eb-vazio { border: 0; min-height: 42px; }

/* subpágina e link para página */
.eb-subpagina {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 4px 8px;
  border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; text-align: left;
  font: 500 15.5px/1.3 var(--font-ui); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
}
.eb-subpagina:hover { background: var(--e1); }
.eb-subpagina[data-cor] { text-decoration: none; padding: 10px 14px; border-radius: var(--r-lg); font-weight: 600; }
.eb-subpagina[data-cor$="_fundo"] { color: var(--ink); }
.eb-subpagina[data-cor="verde_fundo"] { background: var(--f-verde); }
.eb-subpagina[data-cor="roxo_fundo"] { background: var(--f-roxo); }
.eb-subpagina[data-cor="azul_fundo"] { background: var(--f-azul); }
.eb-subpagina[data-cor="rosa_fundo"] { background: var(--f-rosa); }
.eb-subpagina[data-cor="amarelo_fundo"] { background: var(--f-amarelo); }
.eb-subpagina[data-cor="laranja_fundo"] { background: var(--f-laranja); }
.eb-subpagina[data-cor="vermelho_fundo"] { background: var(--f-vermelho); }
.eb-subpagina[data-cor="lilas_fundo"] { background: var(--f-lilas); }
.eb-subpagina[data-cor="cinza_fundo"] { background: var(--f-cinza); }

/* colunas */
.eb-cols { display: flex; gap: 26px; padding-left: 0; }
.eb[data-tipo="colunas"] { margin: 6px 0; }
.eb[data-tipo="coluna"] { min-width: 0; }
.eb[data-tipo="coluna"] > .eb-filhos { padding-left: 0; display: block; min-height: 30px; }
.eb-col-vazia {
  width: 100%; height: 36px; border: 1px dashed var(--line); border-radius: 10px; background: none;
  color: var(--ink-dim); display: grid; place-items: center; cursor: pointer;
}

/* lista de hooks */
.eb[data-tipo="hooks"] { margin: 12px 0; }
.eb-hooks { border-radius: var(--r-xl); background: var(--bg-panel); overflow: hidden; }
.eb-hooks-cab { display: flex; align-items: center; gap: 12px; padding: 14px; }
.eb-hooks-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--acao); color: var(--acao-ink); }
.eb-hooks-meio { flex: 1; min-width: 0; }
.eb-hooks-tit { font: 800 condensed 22px/1.05 var(--font-display); color: var(--ink); outline: none; min-height: 1em; }
.eb-hooks-tit:empty::before { content: attr(data-ph); color: var(--ink-dim); }
.eb-hooks-sub { margin-top: 3px; font: 400 12.5px/1.3 var(--font-ui); color: var(--ink-soft); }
.eb-hooks-chave { display: flex; align-items: center; gap: 10px; font: 400 13px/1.2 var(--font-ui); color: var(--ink-body); cursor: pointer; flex: none; }
.eb-hooks-chave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eb-chave { width: 40px; height: 24px; flex: none; border-radius: var(--r-pill); background: var(--e3); position: relative; transition: background var(--t-base); }
.eb-chave::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--t-base) var(--t-ease); }
.eb-hooks-chave input:checked ~ .eb-chave { background: var(--accent); }
.eb-hooks-chave input:checked ~ .eb-chave::after { transform: translateX(16px); }
.eb-hooks-chave input:focus-visible ~ .eb-chave { box-shadow: 0 0 0 3px var(--focus-ring); }
.eb-hooks-lista { padding-left: 0; display: block; }
.eb-hooks-lista:empty { display: block; }
.eb[data-tipo="hook"] { margin: 0; border-radius: 0; border-top: 1px solid var(--line-soft); }
.eb[data-tipo="hook"] > .eb-alca { left: auto; right: 6px; top: 13px; }
.eb[data-tipo="hook"] > .eb-linha { align-items: center; gap: 12px; min-height: 50px; padding: 4px 14px; }
.eb[data-tipo="hook"] > .eb-linha > .eb-num { padding-top: 0; font: 400 12px/1 var(--font-mono); color: var(--ink-dim); }
.eb[data-tipo="hook"] > .eb-linha > .eb-txt { font-size: 15.5px; color: var(--ink); }
.eb[data-tipo="hook"]:focus-within { background: rgba(var(--accent-rgb), .12); }
.eb-usos { font: 400 12px/1 var(--font-mono); color: var(--ink-soft); white-space: nowrap; }
.eb-copiar {
  width: 30px; height: 30px; flex: none; padding: 0; display: grid; place-items: center; margin-right: 52px;
  border: 0; border-radius: 50%; background: none; color: var(--ink-dim); cursor: pointer; opacity: 0;
}
.eb[data-tipo="hook"]:hover .eb-copiar, .eb-copiar:focus-visible { opacity: 1; }
.eb-copiar:hover { background: var(--e2); color: var(--ink); }
.es-corpo.so-ler .eb-copiar { margin-right: 0; }
.eb-hooks-novo {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 14px;
  border: 0; border-top: 1px solid var(--line-soft); background: none; color: var(--ink-dim);
  font: 400 14.5px/1 var(--font-ui); cursor: pointer; text-align: left;
}
.eb-hooks-novo:hover { color: var(--ink); background: var(--e1); }

/* bloco aberto por um link: pisca uma vez */
.eb.piscar { animation: es-piscar 1.6s var(--t-ease); }
@keyframes es-piscar { 0%, 40% { background: var(--accent-wash); } 100% { background: transparent; } }

/* ============================================================== celular */

@media (max-width: 767px) {
  .st-main > section.es { display: block; height: 100%; position: relative; }
  .es-lado {
    width: auto; height: 100%; padding: 14px 16px 120px; background: none; gap: 0;
  }
  .es-miolo { position: absolute; inset: 0; background: var(--bg); z-index: 2; }
  .es[data-vista="lista"] .es-miolo { display: none; }
  .es:not([data-vista="lista"]) .es-lado { display: none; }

  .es-lado-cel { display: flex; align-items: center; justify-content: space-between; }
  .es-h1 { margin: 0; font: 800 condensed 52px/.95 var(--font-display); }
  .es-lado-cel .es-redondo { width: 44px; height: 44px; background: var(--e2); color: var(--ink); }
  .es-busca-cel {
    display: flex; align-items: center; gap: 10px; height: 46px; margin-top: 14px; padding: 0 16px;
    border: 0; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--ink-soft);
    font: 400 15px/1 var(--font-ui); text-align: left; cursor: pointer;
  }
  .es-busca-cel svg { width: 17px; height: 17px; }
  .es-cartoes { display: flex; gap: 10px; margin: 16px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .es-cartao {
    width: 136px; height: 136px; flex: none; display: flex; flex-direction: column; justify-content: space-between;
    padding: 14px; box-sizing: border-box; border: 0; border-radius: 24px; text-align: left; cursor: pointer;
    background: var(--bg-alto); color: var(--ink);
  }
  .es-cartao.on { background: var(--accent); color: #fff; }
  .es-cartao.on .es-tile { background: var(--ink) !important; color: var(--accent) !important; }
  .es-cartao.convite { box-shadow: inset 0 0 0 2px var(--acao); }
  .es-cartao-txt { display: flex; flex-direction: column; min-width: 0; }
  .es-cartao-txt b {
    display: block; font: 800 condensed 21px/1 var(--font-display);
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  }
  .es-cartao-txt small { display: block; margin-top: 6px; font: 400 11.5px/1.2 var(--font-ui); color: var(--ink-soft);
                         overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .es-cartao.on .es-cartao-txt small { color: #E4D8FF; }
  .es-cartao.convite .es-cartao-txt small { color: var(--acao); }
  .es-troca, .es-buscar, .es-lado-pe { display: none; }
  .es-sec { padding-left: 2px; }
  .es-pg { min-height: 46px; padding-left: calc(var(--nivel) * 22px); }
  .es-pg-ir { height: 46px; font-size: 15.5px; gap: 12px; }
  .es-pg-ir .eb-pic { --tam: 26px !important; width: 26px; height: 26px; }
  .es-pg-mais { opacity: 1; width: 34px; height: 34px; }
  .es-pg-seta { width: 28px; height: 28px; }
  .es-nova-cel {
    display: flex; align-items: center; gap: 8px; position: fixed; right: 18px; bottom: calc(78px + max(10px, var(--seg-baixo) - 4px) - var(--ios-falta)); z-index: 20;
    height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-pill);
    background: var(--acao); color: var(--acao-ink); font: 700 15px/1 var(--font-ui); cursor: pointer;
  }
  .es-nova-cel svg { width: 18px; height: 18px; stroke-width: 2.6; }
  .es-nova-cel[hidden] { display: none !important; }
  .es:not([data-vista="lista"]) .es-nova-cel { display: none; }
  body:has(#nvEspacos:not([hidden])[data-vista="pagina"]) .nv-barra,
  body:has(#nvEspacos:not([hidden])[data-vista="config"]) .nv-barra { display: none; }

  .es-topo { height: 56px; padding: 0 10px; gap: 6px; }
  .es-volta-cel { display: grid; width: 44px; height: 44px; background: var(--e2); color: var(--ink); }
  .es-caminho { font-size: 13px; }
  .es-cam-it { max-width: 110px; }
  .es-caminho > .es-cam-it:not(.aqui), .es-caminho > .es-cam-sep { display: none; }
  .es-caminho > .es-cam-it:nth-last-child(3), .es-caminho > .es-cam-sep:nth-last-child(2) { display: inline; }
  .es-salvo, .es-gente, .es-convidar { display: none; }
  .es-capa { height: 120px; margin: 0 12px; border-radius: 22px; }
  .es-capa-btn { opacity: 1; }
  .es-folha { padding: 0 20px; }
  .es-capa[hidden] + .es-folha { padding-top: 20px; }
  .es-capa:not([hidden]) + .es-folha .es-icone { margin-top: -34px; }
  .es-icone .eb-pic { --tam: 64px !important; width: 64px; height: 64px; }
  .es-pag-acoes { opacity: 1; }
  .es-titulo { font-size: 46px; }
  .es-rolagem { padding-bottom: 160px; }
  .eb-alca { display: none; }
  .eb:focus-within > .eb-alca { display: flex; left: auto; right: -14px; top: -28px; }
  .eb-filhos { padding-left: 20px; }
  .eb-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .eb-vid { border-radius: 14px; }
  .eb-vid-pe { opacity: 1; bottom: 26px; left: 6px; right: 6px; }
  .eb-usar { height: 30px; font-size: 11.5px; }
  .eb-baixar { display: none; }
  .eb-selo { left: 6px; top: 6px; height: 18px; padding: 0 6px; font-size: 9.5px; }
  .eb-cols { flex-direction: column; gap: 4px; }
  .eb-hooks-cab { flex-wrap: wrap; }
  .eb-hooks-chave { width: 100%; justify-content: space-between; }
  .eb-copiar { opacity: 1; margin-right: 0; }
  .eb[data-tipo="hook"] > .eb-alca { display: none !important; }
  .eb-cartao { flex-wrap: wrap; }
  .eb-trazer { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .es-ini-capa { height: 140px; margin: 0 12px; }
  .es-ini-capa-txt { font-size: 150px; }
  .es-ini-cab, .es-inicio > .es-sec, .es-ini-grade, .es-modelos { padding-left: 20px; padding-right: 20px; }
  .es-ini-nome { font-size: 40px; }
  .es-cfg { padding: 14px 16px 0; }
  .es-cfg-cab { padding: 0 12px; gap: 14px; }
  .es-cfg-foto .es-tile { --tam: 84px !important; }
  .es-cfg-nome { font-size: 38px; }
  .es-chamar .st-btn, .es-chamar .es-cargo-btn { flex: 1; }
  .es-menu { max-width: calc(100vw - 16px); }
  .es-menu-txt { width: min(330px, calc(100vw - 32px)); }
}

@media (min-width: 768px) {
  .es-teclado { display: none !important; }
}

/* ------------------------------------- hooks no editor do Coyote (app.js) */

.e-hooks {
  display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px;
  border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink);
  font: 600 10.5px/1 var(--font-ui); cursor: pointer;
}
.e-hooks svg { width: 12px; height: 12px; fill: none; stroke: var(--acao); stroke-width: 2.4; stroke-linejoin: round; }
.e-hooks:hover { background: var(--accent-hover); }
@media (max-width: 767px) { .e-hooks { height: 34px; padding: 0 12px; font-size: 13px; } .e-hooks svg { width: 14px; height: 14px; } }
.es-hk { display: flex; flex-direction: column; gap: 10px; }
.es-hk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.es-hk-chips .es-chip { height: 34px; padding: 0 14px; flex: none; font-size: 13px; }
.es-hk-chips .es-chip.on { background: var(--ink); color: var(--acao-ink); }
.es-hk-lista { display: flex; flex-direction: column; max-height: 52vh; overflow-y: auto; }
.es-hk-it {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 6px;
  border: 0; border-top: 1px solid var(--line-soft); background: none; color: var(--ink); text-align: left;
  font: 400 15px/1.35 var(--font-ui); cursor: pointer;
}
.es-hk-it:first-child { border-top: 0; }
.es-hk-it:hover { background: var(--accent-wash); border-radius: 12px; }
.es-hk-usos { margin-left: auto; font: 400 11.5px/1 var(--font-mono); color: var(--ink-dim); flex: none; }
.es-hk-onde { margin: 10px 4px 0; font: 400 12.5px/1.3 var(--font-ui); color: var(--ink-soft); }
.eb-pic.nada { background: none; color: var(--ink-soft); }

/* ============================================ bancos de dados (espacos-base.js) */

.eb[data-tipo="base"] { margin: 14px 0; }
.ebd { min-width: 0; }
.ebd-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ebd-titulo { font: 800 condensed 26px/1.05 var(--font-display); color: var(--ink); outline: none; min-height: 1em; }
.ebd-titulo:empty::before { content: attr(data-ph); color: var(--ink-dim); opacity: 0; transition: opacity var(--t-fast); }
.ebd:hover .ebd-titulo:empty::before, .ebd-titulo:empty:focus::before { opacity: 1; }
.ebd-titulo:empty { font-size: 16px; }
.ebd-barra {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line);
}
.ebd-abas { display: flex; gap: 2px; flex: 1 1 340px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ebd-aba {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; flex: none;
  border: 0; border-radius: var(--r-pill); background: none; color: var(--ink-soft);
  font: 600 13px/1 var(--font-ui); cursor: pointer;
}
.ebd-aba:hover { color: var(--ink); background: var(--e1); }
.ebd-aba.on { background: var(--ink); color: var(--acao-ink); }
.ebd-aba.mais { padding: 0 8px; }
.ebd-ferr { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.ebd-ferr-it {
  height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-pill);
  background: var(--e1); color: var(--ink-body); font: 500 12.5px/1 var(--font-ui); cursor: pointer;
}
.ebd-ferr-it:hover:not(:disabled) { background: var(--e2); color: var(--ink); }
.ebd-ferr-it.ativo { background: var(--accent-wash); color: var(--accent-texto); }
.ebd-ferr-it:disabled { display: none; }
.ebd-novo {
  height: 32px; padding: 0 16px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--acao); color: var(--acao-ink); font: 700 13px/1 var(--font-ui);
}
.ebd-novo:hover { background: var(--acao-hover); }
.ebd-aviso { margin: 8px 0; font: 400 13.5px/1.4 var(--font-ui); color: var(--ink-soft); }

/* chips de opção */
.ebd-chip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px;
  font: 500 12.5px/1 var(--font-ui); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis;
  background: var(--f-cinza); color: var(--ink);
}
.ebd-chip.status { border-radius: var(--r-pill); padding: 0 10px 0 8px; }
.ebd-chip.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--c-cinza); flex: none; }
.ebd-chip[data-cor="cinza"] { background: var(--f-cinza); }   .ebd-chip.status[data-cor="cinza"]::before { background: var(--c-cinza); }
.ebd-chip[data-cor="roxo"] { background: var(--f-roxo); }     .ebd-chip.status[data-cor="roxo"]::before { background: var(--c-roxo); }
.ebd-chip[data-cor="lilas"] { background: var(--f-lilas); }   .ebd-chip.status[data-cor="lilas"]::before { background: var(--c-lilas); }
.ebd-chip[data-cor="rosa"] { background: var(--f-rosa); }     .ebd-chip.status[data-cor="rosa"]::before { background: var(--c-rosa); }
.ebd-chip[data-cor="vermelho"] { background: var(--f-vermelho); } .ebd-chip.status[data-cor="vermelho"]::before { background: var(--c-vermelho); }
.ebd-chip[data-cor="laranja"] { background: var(--f-laranja); } .ebd-chip.status[data-cor="laranja"]::before { background: var(--c-laranja); }
.ebd-chip[data-cor="amarelo"] { background: var(--f-amarelo); } .ebd-chip.status[data-cor="amarelo"]::before { background: var(--c-amarelo); }
.ebd-chip[data-cor="verde"] { background: var(--f-verde); }   .ebd-chip.status[data-cor="verde"]::before { background: var(--c-verde); }
.ebd-chip[data-cor="azul"] { background: var(--f-azul); }     .ebd-chip.status[data-cor="azul"]::before { background: var(--c-azul); }

.ebd-val { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0;
           font: 400 13.5px/1.3 var(--font-ui); color: var(--ink-body); }
.ebd-val .gr-av { width: 22px; height: 22px; font-size: 9px; }
.ebd-val a { color: var(--accent-texto); text-decoration: underline; text-underline-offset: 2px; }
.ebd-pessoa-nome { margin-left: 4px; }
.ebd-cx { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--ink-dim); box-sizing: border-box; display: inline-block; }
.ebd-cx.on { background: var(--accent); border-color: var(--accent); }
.ebd-vid-mini { width: 24px; height: 40px; border-radius: 5px; background: var(--bg-alto) center / cover; display: inline-block; }

/* tabela */
.ebd-rol { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.ebd-tabela { border-collapse: collapse; min-width: 100%; font: 400 13.5px/1.3 var(--font-ui); }
.ebd-tabela th, .ebd-tabela td { border-bottom: 1px solid var(--line-soft); padding: 0; text-align: left; vertical-align: middle; }
.ebd-tabela th + th, .ebd-tabela td + td { border-left: 1px solid var(--line-soft); }
.ebd-tabela th { height: 34px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.ebd-th-tit { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; min-width: 220px; }
.ebd-th {
  display: flex; align-items: center; gap: 6px; width: 100%; height: 34px; padding: 0 10px; min-width: 130px;
  border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left;
}
.ebd-th:hover:not(:disabled) { background: var(--e1); color: var(--ink); }
.ebd-th:disabled { cursor: default; }
.ebd-th-mais .ebd-th { min-width: 40px; justify-content: center; }
.ebd-tabela td { height: 40px; }
.ebd-tabela tbody tr:hover { background: var(--e1); }
.ebd-tit-caixa { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 10px; min-width: 220px; }
.ebd-tit-cel { flex: 1; min-width: 0; outline: none; font-weight: 600; color: var(--ink); padding: 6px 0; }
.ebd-tit-cel:empty::before { content: attr(data-ph); color: var(--ink-dim); font-weight: 400; }
.ebd-abrir {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 0; border-radius: 7px;
  background: var(--e2); color: var(--ink-body); font: 500 11.5px/1 var(--font-ui); cursor: pointer; opacity: 0;
}
.ebd-tabela tr:hover .ebd-abrir, .ebd-abrir:focus-visible { opacity: 1; }
.ebd-inp {
  width: 100%; min-width: 120px; height: 40px; padding: 0 10px; box-sizing: border-box;
  border: 0; background: none; color: var(--ink-body); font: 400 13.5px/1 var(--font-ui); outline: none;
}
.ebd-inp:focus { background: var(--bg-alto); box-shadow: inset 0 0 0 2px var(--accent); }
.ebd-inp.t-data { color-scheme: dark; }
.ebd-btn {
  display: flex; align-items: center; width: 100%; min-width: 120px; min-height: 40px; padding: 4px 10px; box-sizing: border-box;
  border: 0; background: none; text-align: left; cursor: pointer;
}
.ebd-btn:hover { background: var(--e1); }
.ebd-vazio { color: var(--ink-dim); font: 400 13px/1 var(--font-ui); opacity: 0; }
.ebd-btn:hover .ebd-vazio, .ebd-prop .ebd-vazio { opacity: 1; }
.ebd-check { width: 18px; height: 18px; margin: 0 12px; accent-color: var(--accent); cursor: pointer; }
.ebd-nova {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; width: 100%;
  border: 0; background: none; color: var(--ink-dim); font: 400 13.5px/1 var(--font-ui); cursor: pointer; text-align: left;
}
.ebd-nova:hover { color: var(--ink); background: var(--e1); }

/* quadro */
.ebd-quadro { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: flex-start; }
.ebd-col { flex: 0 0 260px; display: flex; flex-direction: column; gap: 8px; padding: 6px; border-radius: var(--r-xl); }
.ebd-col.alvo { background: var(--accent-wash); }
.ebd-col-cab { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 4px; }
.ebd-n { font: 400 12px/1 var(--font-mono); color: var(--ink-dim); }
.ebd-col-lista { display: flex; flex-direction: column; gap: 8px; min-height: 8px; }
.ebd-cartao {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; padding: 12px; box-sizing: border-box;
  border: 0; border-radius: var(--r-lg); background: var(--bg-panel); color: var(--ink); text-align: left; cursor: pointer;
}
.ebd-cartao:hover { background: var(--bg-alto); }
.ebd-cartao.arrastando { opacity: .4; }
.ebd-cartao b { font: 600 14px/1.3 var(--font-ui); }
.ebd-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ebd-meta .ebd-val { font-size: 12px; color: var(--ink-soft); }
.ebd-col-nova { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border: 0; border-radius: 10px;
                background: none; color: var(--ink-dim); font: 400 13px/1 var(--font-ui); cursor: pointer; }
.ebd-col-nova:hover { color: var(--ink); background: var(--e1); }

/* lista */
.ebd-lista { display: flex; flex-direction: column; }
.ebd-lin {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 8px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.ebd-lin:hover { background: var(--e1); }
.ebd-lin b { font: 600 14px/1.3 var(--font-ui); }
.ebd-lin .ebd-meta { margin-left: auto; }
.ebd-lin .eb-ic { color: var(--ink-soft); }

/* galeria */
.ebd-galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ebd-galeria .ebd-cartao { padding: 0 0 12px; overflow: hidden; }
.ebd-galeria .ebd-cartao > b, .ebd-galeria .ebd-cartao > .ebd-meta { padding: 0 12px; }
.ebd-capa { width: 100%; aspect-ratio: 9 / 16; background: var(--bg-alto) center / cover no-repeat; display: grid; place-items: center; color: var(--ink-dim); }
.ebd-cartao.nova { align-items: center; justify-content: center; min-height: 160px; padding: 12px; border: 1px dashed var(--line-strong);
                   background: none; color: var(--ink-dim); flex-direction: row; }

/* calendário */
.ebd-cal-cab { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ebd-cal-cab b { font: 800 condensed 22px/1 var(--font-display); color: var(--ink); }
.ebd-espaco { flex: 1; }
.ebd-ant .eb-ic { transform: rotate(180deg); }
.ebd-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.ebd-cal-dia-nome { padding: 6px 8px; font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim);
                    border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ebd-cal-dia { position: relative; min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
               border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ebd-cal-dia.fora { background: rgba(255, 255, 255, .015); }
.ebd-cal-num { font: 500 12px/1 var(--font-ui); color: var(--ink-soft); }
.ebd-cal-dia.hoje .ebd-cal-num { width: 22px; height: 22px; margin: -3px 0 0 -3px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.ebd-cal-it {
  display: block; width: 100%; padding: 4px 6px; border: 0; border-radius: 6px; text-align: left; cursor: pointer;
  background: var(--f-cinza); color: var(--ink); font: 500 12px/1.2 var(--font-ui);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ebd-cal-it[data-cor="amarelo"] { background: var(--f-amarelo); } .ebd-cal-it[data-cor="roxo"] { background: var(--f-roxo); }
.ebd-cal-it[data-cor="verde"] { background: var(--f-verde); } .ebd-cal-it[data-cor="azul"] { background: var(--f-azul); }
.ebd-cal-it[data-cor="rosa"] { background: var(--f-rosa); } .ebd-cal-it[data-cor="vermelho"] { background: var(--f-vermelho); }
.ebd-cal-it[data-cor="laranja"] { background: var(--f-laranja); } .ebd-cal-it[data-cor="lilas"] { background: var(--f-lilas); }
.ebd-cal-mais { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; padding: 0; display: grid; place-items: center;
                border: 0; border-radius: 6px; background: none; color: var(--ink-dim); cursor: pointer; opacity: 0; }
.ebd-cal-dia:hover .ebd-cal-mais { opacity: 1; }
.ebd-cal-mais:hover { background: var(--e2); color: var(--ink); }

/* menus do banco */
.ebd-pop { width: 300px; display: flex; flex-direction: column; gap: 6px; }
.ebd-pop .st-campo { height: 36px; font-size: 14px; }
.ebd-ops { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.ebd-op { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 8px; border: 0; border-radius: 10px;
          background: none; color: var(--ink); font: 400 13.5px/1.2 var(--font-ui); cursor: pointer; text-align: left; }
.ebd-op:hover { background: var(--e2); }
.ebd-op.on { background: var(--accent-wash); }
.ebd-op.on::after { content: "\2713"; margin-left: auto; color: var(--accent-texto); }
.ebd-op.novo span:first-child { color: var(--ink-soft); }
.ebd-op .gr-av { width: 24px; height: 24px; font-size: 9.5px; }
.ebd-prop-menu { width: 320px; }
.ebd-opcao-ed { display: flex; align-items: center; gap: 6px; }
.ebd-opcao-ed .st-campo { flex: 1; height: 32px; }
.ebd-filtro-menu, .ebd-pop:has(.ebd-regra) { width: min(520px, calc(100vw - 16px)); }
.ebd-regra { display: flex; gap: 6px; align-items: center; }
.ebd-regra .st-campo { flex: 1; min-width: 0; height: 34px; padding: 0 8px; font-size: 13px; }

/* propriedades da linha aberta como página */
.ebd-props { margin: 4px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.ebd-prop { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.ebd-prop-nome { width: 150px; flex: none; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font: 400 13.5px/1.2 var(--font-ui); }
.ebd-prop-val { flex: 1; min-width: 0; }
.ebd-prop-val .ebd-inp, .ebd-prop-val .ebd-btn { min-height: 34px; height: auto; border-radius: 8px; }
.ebd-prop-val .ebd-check { margin-left: 10px; }

@media (max-width: 767px) {
  .ebd-barra { flex-direction: column; align-items: stretch; }
  .ebd-ferr { justify-content: flex-end; }
  .ebd-col { flex-basis: 78vw; }
  .ebd-cal-dia { min-height: 64px; padding: 4px; }
  .ebd-cal-it { font-size: 10.5px; padding: 3px 4px; }
  .ebd-galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ebd-prop-nome { width: 110px; }
  .ebd-abrir { opacity: 1; }
}

.ebd-fantasma {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: .92;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5); background: var(--bg-alto) !important;
}
.ebd-quadro .ebd-cartao { touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.eb-mencao.pessoa { background: var(--f-azul); color: var(--c-azul); cursor: default; }
.es-menu-txt .gr-av, .es-menu-it .gr-av { width: 26px; height: 26px; font-size: 10px; }

/* arrastar páginas na barra lateral */
.es-pg-ir { touch-action: pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.es-pg.arrastando { opacity: .35; }
.es-pg.alvo-dentro { background: var(--accent-wash); box-shadow: inset 0 0 0 2px var(--accent); }
.es-pg.alvo-antes { box-shadow: inset 0 3px 0 var(--accent); }
.es-pg.alvo-depois { box-shadow: inset 0 -3px 0 var(--accent); }
.es-pg-fantasma {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  background: var(--bg-alto); border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); opacity: .95;
}
