/* Montagem por agentes — estilos. Tudo prefixado com mt- para não colidir com o site. */
:root {
  --mt-azul: #3b82f6;
  --mt-fundo-barra: rgba(14, 14, 16, 0.88);
  --mt-texto-barra: #e7e7ea;
}

/* Enquanto monta, a camada fica invisível mas ocupa o lugar (layout não pula). */
html.mt-monta [data-camada]:not(.mt-pronta) { opacity: 0; }
html.mt-monta [data-camada].mt-digitando { opacity: 1; }
.mt-palavra { visibility: hidden; }
.mt-palavra.mt-v { visibility: visible; }
.mt-letra { display: inline-block; }

/* ?reel: esconde a barra de rolagem para gravar a tela (Reels/Stories). */
html.mt-reel { scrollbar-width: none; }
html.mt-reel::-webkit-scrollbar { display: none; }

.mt-camada-overlay { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 2147483000; }

.mt-agente { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; transition: opacity .4s; }
.mt-agente svg { display: block; width: 18px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }

.mt-caixa { position: absolute; border: 1px solid var(--mt-azul); background: rgba(59, 130, 246, .04); box-sizing: border-box; }
.mt-caixa > i { position: absolute; width: 6px; height: 6px; background: #fff; border: 1px solid var(--mt-azul); box-sizing: border-box; }
.mt-caixa > i:nth-child(1) { left: -3px; top: -3px; }
.mt-caixa > i:nth-child(2) { right: -3px; top: -3px; }
.mt-caixa > i:nth-child(3) { left: -3px; bottom: -3px; }
.mt-caixa > i:nth-child(4) { right: -3px; bottom: -3px; }
.mt-medida {
  position: absolute; left: 50%; top: calc(100% + 5px); transform: translateX(-50%);
  background: var(--mt-azul); color: #fff; font: 600 10px/1 system-ui, sans-serif;
  padding: 3px 5px; border-radius: 3px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.mt-guia { position: absolute; background: var(--mt-azul); opacity: .55; }
.mt-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--mt-azul); opacity: .8; }
.mt-ph svg { width: 22px; height: 22px; }
.mt-cursor-texto { position: absolute; width: 2px; background: var(--mt-azul); border-radius: 1px; }

.mt-barra {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2147483001;
  display: flex; align-items: center; gap: 14px; padding: 9px 14px; border-radius: 12px;
  background: var(--mt-fundo-barra); color: var(--mt-texto-barra); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .08); font: 500 12.5px/1 system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: opacity .5s, transform .5s;
}
.mt-barra__cores { display: flex; }
.mt-barra__cores span { width: 14px; height: 14px; border-radius: 50%; margin-left: -4px; border: 2px solid #111; }
.mt-barra__cores span:first-child { margin-left: 0; }
.mt-barra__num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mt-barra__num b { font-weight: 700; }
.mt-barra__trilho { width: 64px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.mt-barra__trilho i { display: block; height: 100%; width: 0; background: var(--mt-azul); transition: width .3s; }
.mt-barra button {
  all: unset; cursor: pointer; padding: 3px 6px; border-radius: 6px; color: var(--mt-texto-barra);
  font: 500 12.5px/1 system-ui, sans-serif;
}
.mt-barra button:hover { background: rgba(255, 255, 255, .1); }
.mt-barra__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .12); }
html.mt-sem-barra .mt-barra { display: none; }
