.dpe-root { display: flex; flex-direction: column; min-height: 420px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; font-size: 13px; color: #1d2939; }
.dpe-toolbar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid #e4e7ec; background: #f9fafb; flex-wrap: wrap; }
.dpe-sep { width: 1px; align-self: stretch; background: #d0d5dd; margin: 0 4px; }
.dpe-spacer { flex: 1; }
.dpe-msg { color: #067647; }
.dpe-msg-erro { color: #b42318; }
.dpe-btn { position: relative; border: 1px solid #d0d5dd; background: #fff; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 12px; color: inherit; }
.dpe-btn:hover { background: #f2f4f7; }
.dpe-btn-primario { background: #1570ef; border-color: #1570ef; color: #fff; margin: 8px; }
.dpe-btn-primario:hover { background: #175cd3; }
.dpe-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

.dpe-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1.2fr) minmax(0, 1fr); }
.dpe-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #e4e7ec; background: #fcfcfd; }
.dpe-tabs { display: flex; border-bottom: 1px solid #e4e7ec; }
.dpe-tab { flex: 1; border: 0; background: transparent; padding: 8px 6px; cursor: pointer; font-size: 12px; border-bottom: 2px solid transparent; color: #475467; }
.dpe-tab-ativa { color: #1570ef; border-bottom-color: #1570ef; font-weight: 600; }
.dpe-badge { display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 4px; border-radius: 8px; background: #f79009; color: #fff; font-size: 10px; line-height: 16px; }
.dpe-input { width: 100%; box-sizing: border-box; border: 1px solid #d0d5dd; border-radius: 4px; padding: 4px 6px; font-size: 12px; background: #fff; }
.dpe-side > .dpe-input { margin: 8px; width: calc(100% - 16px); }
.dpe-lista { flex: 1; overflow: auto; padding: 0 8px 8px; }
.dpe-grupo { margin: 10px 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #667085; }
.dpe-campo { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; background: transparent; padding: 4px 6px; border-radius: 4px; cursor: pointer; text-align: left; }
.dpe-campo:hover { background: #eff4ff; }
.dpe-campo-rotulo { font-size: 12px; }
.dpe-campo-caminho { font-size: 11px; color: #667085; font-family: ui-monospace, monospace; }
.dpe-dica { padding: 6px 10px; border-top: 1px solid #e4e7ec; font-size: 11px; color: #667085; }
.dpe-vazio { padding: 12px 4px; color: #98a2b3; }

.dpe-variavel { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 6px; border: 1px solid #e4e7ec; border-radius: 4px; background: #fff; }
.dpe-variavel-sem-uso { border-style: dashed; }
.dpe-variavel-linha { display: flex; gap: 4px; }
.dpe-input-nome { font-family: ui-monospace, monospace; font-weight: 600; }
.dpe-icone { border: 1px solid #d0d5dd; background: #fff; border-radius: 4px; cursor: pointer; width: 28px; }
.dpe-icone:hover { background: #f2f4f7; }
.dpe-icone-perigo:hover { background: #fef3f2; color: #b42318; }
.dpe-aviso { font-size: 11px; color: #b54708; }
.dpe-pendente { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; padding: 6px; border-radius: 4px; background: #fffaeb; color: #b54708; font-size: 12px; }

.dpe-editor-wrap { min-width: 0; min-height: 0; position: relative; }
.dpe-editor { position: absolute; inset: 0; }

.dpe-previa { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid #e4e7ec; background: #f2f4f7; }
.dpe-previa-status { padding: 6px 10px; font-size: 12px; color: #475467; background: #f9fafb; border-bottom: 1px solid #e4e7ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpe-previa-erro { color: #b42318; background: #fef3f2; }
.dpe-iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.dpe-previa-vazia { text-align: center; }

@media (max-width: 1100px) {
    .dpe-main { grid-template-columns: 240px minmax(0, 1fr); }
    .dpe-previa { display: none; }
}
