.emp-settings-button { flex: 0 0 auto; color: var(--blue-700); }
.emp-settings-button svg { width: 19px; height: 19px; }
.emp-dialog { width: min(560px, calc(100vw - 32px)); }
.emp-panel, .emp-fields, .emp-step { min-width: 0; }
.emp-panel { display: grid; gap: 16px; }
.emp-summary { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; padding: 16px; border: 1px solid var(--en-line); border-radius: 16px; background: color-mix(in srgb, var(--blue-300) 13%, var(--surface-control)); }
.emp-summary > div { min-width: 0; }
.emp-summary h3 { margin: 5px 0 8px; color: var(--en-ink); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.emp-caption, .emp-summary p, .emp-help { color: var(--en-muted); font-size: 12px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.emp-state { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 27px; padding: 2px 9px; border: 1px solid var(--en-line); border-radius: 20px; color: var(--en-muted); background: var(--surface-control); font-size: 11px; white-space: nowrap; }
.emp-state.is-configured { color: var(--en-success); border-color: color-mix(in srgb, var(--en-success) 28%, var(--en-line)); }
.emp-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.emp-entry-actions:has(> [hidden]):not(:has(> :not([hidden]))) { display: none; }
.emp-view { min-width: 0; padding: 15px; border: 1px solid var(--en-line); border-radius: 15px; background: color-mix(in srgb, var(--surface-tint) 70%, transparent); }
.emp-reveal-fields { display: grid; gap: 12px; min-width: 0; }
.emp-reveal-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.emp-reveal-row > button { min-height: 42px; }
.emp-view .en-field { margin: 0; min-width: 0; }
.emp-view .en-input { width: 100%; min-width: 0; box-sizing: border-box; }
.emp-reveal-result { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--en-line); }
.emp-reveal-result > button { justify-self: end; }
.emp-reveal-result textarea { resize: vertical; min-height: 70px; max-height: 180px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; font-family: ui-monospace, monospace; }
.emp-reveal-fields > .emp-help:empty { display: none; }
.emp-fields { display: grid; gap: 16px; }
.emp-fields[hidden], .emp-panel [hidden], .emp-form > .en-dialog-actions > [hidden] { display: none; }
.emp-step { display: grid; gap: 13px; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--en-line); border-radius: 15px; background: color-mix(in srgb, var(--surface-tint) 70%, transparent); }
.emp-step legend { max-width: 100%; padding: 0 6px; color: var(--en-ink); font-size: 13px; font-weight: 650; line-height: 1.8; }
.emp-step legend > span { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-right: 4px; border: 1px solid var(--en-line); border-radius: 50%; background: var(--surface-control); color: var(--blue-700); font-size: 11px; }
.emp-step .en-field { min-width: 0; margin: 0; }
.emp-step .en-field small { color: var(--en-muted); line-height: 1.65; overflow-wrap: anywhere; }
.emp-step .en-field small.is-warning { color: var(--en-warning); }
.emp-step .en-input, .emp-step .en-select, .emp-step .en-password-control { width: 100%; min-width: 0; box-sizing: border-box; }
.emp-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.emp-code-row > button { min-height: 42px; max-width: 145px; }
.emp-form .en-status { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .emp-dialog { width: calc(100vw - 20px); }
  .emp-panel, .emp-fields { gap: 13px; }
  .emp-summary { padding: 12px; gap: 8px; }
  .emp-summary h3 { font-size: 15px; }
  .emp-step { padding: 12px; }
  .emp-view { padding: 12px; }
  .emp-reveal-row { gap: 7px; }
  .emp-reveal-row > button { padding-inline: 11px; }
  .emp-code-row { gap: 7px; }
  .emp-code-row > button { padding-inline: 9px; font-size: 12px; }
  .emp-dialog .en-dialog-body { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) { .emp-settings-button { transition: none; } }
