.ntm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  background: rgb(15 23 42 / 45%);
}
.ntm-backdrop[hidden] { display: none !important; }
.ntm-dialog {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(1280px, 100%);
  height: min(90dvh, 960px);
  max-height: calc(100dvh - 48px);
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 20px 60px rgb(15 23 42 / 24%);
  font-family: inherit;
  outline: none;
}
.ntm-header {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.ntm-header h2 {
  min-width: 0;
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.ntm-title { min-width: 0; }
.ntm-summary { margin: 3px 0 0; color: #475569; font-size: 12px; line-height: 1.5; }
.ntm-close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.ntm-close:hover { background: #f1f5f9; color: #0f172a; }
.ntm-close:focus-visible { outline: 2px solid #4338ca; outline-offset: 2px; }
.ntm-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
  scroll-padding-block: 16px;
}
.ntm-body > * { min-width: 0; }
.ntm-dialog ::selection { background: #c7d2fe; color: #1e1b4b; }
@media (max-width: 640px) {
  .ntm-backdrop { padding: 0; }
  .ntm-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ntm-header {
    gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  }
  .ntm-header h2 { font-size: 18px; }
  .ntm-body { padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) { .ntm-close { transition: none; } }

.ntm-body [aria-labelledby="meta-setup-title"] { border: 0; border-radius: 0; }
.ntm-body [aria-labelledby="meta-setup-title"] > div { padding-top: 12px; }
.ntm-body [aria-labelledby="meta-setup-title"] > div > div:first-child { display: none; }
.ntm-body [aria-labelledby="meta-setup-title"] > div > div:nth-child(2) { margin-top: 0; padding-top: 0; border-top: 0; }
.ntm-body [aria-labelledby="meta-setup-title"] > div > div:nth-child(2) > div > p:nth-child(2) { display: none; }
.ntm-body [aria-label="Etapas da configuração Meta"] { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.ntm-body [aria-label="Etapas da configuração Meta"] > li:first-child { display: none; }
.ntm-body [aria-label="Etapas da configuração Meta"] button { width: 100%; justify-content: center; padding: 10px 12px; border-radius: 0; }
.ntm-body [aria-label="Etapas da configuração Meta"] button[aria-current="step"] { box-shadow: inset 0 -2px #4f46e5; }
.ntm-body [aria-label="Etapas da configuração Meta"] button > span[aria-hidden="true"] { display: none; }
.ntm-body [data-template-purpose] { padding-top: 12px; padding-bottom: 12px; }
.ntm-body [data-template-purpose] p[role="status"] { max-width: 62ch; }
@media (max-width:640px) { .ntm-body [aria-label="Etapas da configuração Meta"] { gap: 4px; } }
@media (max-width:640px) { .ntm-body [aria-labelledby="meta-setup-title"] > div > div:nth-child(2) { flex-wrap: nowrap; gap: 8px; }.ntm-body [aria-labelledby="meta-setup-title"] > div > div:nth-child(2) > div { flex: 1; }.ntm-body [aria-labelledby="meta-setup-title"] > div > div:nth-child(2) > button { flex-shrink: 0; padding-inline: 8px; font-size: 12px; } }
