/* ============================================================
   Email warnings dialog
   ============================================================ */
.nt {
  width: 560px; max-width: calc(100vw - 24px); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--border-color);
  border-radius: 14px; background: var(--bg-card, var(--bg-primary)); color: var(--text-primary);
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}
.nt::backdrop { background: rgba(10,10,12,0.42); }
.nt[open] { animation: nt-in 0.18s ease-out both; }
.nt__box { display: flex; flex-direction: column; max-height: calc(100vh - 48px); margin: 0; }
.nt__head { display: flex; justify-content: space-between; gap: 16px; padding: 20px 22px 14px; border-bottom: 1px solid var(--border-color); }
.nt__title { margin: 0; font: 600 17px/1.3 var(--font-body); }
.nt__sub { margin: 3px 0 0; font-size: 13px; color: var(--text-secondary); }
.nt__x { flex: none; align-self: flex-start; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--text-tertiary); cursor: pointer; }
.nt__x:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.nt__body { overflow-y: auto; padding: 4px 22px 16px; }
.nt__sec { padding-top: 16px; }
.nt__label { display: block; margin: 0 0 8px; font: 700 10px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.nt__label em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }

.nt-people { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.nt-person { display: flex; align-items: center; gap: 8px; padding-right: 8px; }
.nt-person + .nt-person { border-top: 1px solid var(--border-color); }
.nt-person label { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 10px 12px; cursor: pointer; }
.nt-person input { grid-row: span 2; align-self: center; width: 16px; height: 16px; accent-color: var(--accent); }
.nt-person__name { font: 600 13.5px/1.35 var(--font-body); }
.nt-person__role { font-weight: 400; color: var(--text-tertiary); }
.nt-person__email { font: 400 12px/1.35 var(--font-mono); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-person__rm { padding: 5px 8px; border: 0; border-radius: 6px; background: none; font: 500 12px var(--font-body); color: var(--text-tertiary); cursor: pointer; }
.nt-person__rm:hover { background: var(--bg-tertiary); color: var(--status-blocked); }
.nt-empty { padding: 16px 12px; font-size: 13px; color: var(--text-tertiary); text-align: center; }

.nt-add { display: grid; grid-template-columns: 1fr 1.3fr 1fr auto; gap: 6px; margin-top: 8px; }
.nt-add input, .nt textarea {
  width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--bg-primary); color: var(--text-primary); font: 400 13px/1.4 var(--font-body);
}
.nt textarea { resize: vertical; }
.nt-add button {
  padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--bg-tertiary);
  font: 600 13px var(--font-body); color: var(--text-primary); cursor: pointer;
}
.nt-add button:hover { background: var(--bg-hover); }
.nt__err { margin: 6px 0 0; font-size: 12.5px; color: var(--status-blocked); }

.nt-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-level {
  padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: none; cursor: pointer;
  font: 500 12.5px/1 var(--font-body); color: var(--text-secondary);
}
.nt-level span { font-family: var(--font-mono); color: var(--text-tertiary); margin-left: 3px; }
.nt-level:hover { background: var(--bg-tertiary); }
.nt-level.is-on { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg-primary); }
.nt-level.is-on span { color: inherit; opacity: 0.7; }

.nt-preview { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--bg-tertiary); }
.nt-preview .nt__label { margin-bottom: 4px; }
.nt-preview__subject { margin: 0; font: 600 13.5px/1.4 var(--font-body); }
.nt-preview__meta { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-secondary); }

.nt-result { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; border: 1px solid; }
.nt-result p { margin: 8px 0 0; }
.nt-result ul, .nt-result ol { margin: 6px 0 0; padding-left: 20px; }
.nt-result code { font: 500 12px var(--font-mono); padding: 1px 4px; border-radius: 4px; background: rgba(127,127,127,0.14); }
.nt-result--ok { background: color-mix(in srgb, var(--status-ok) 10%, transparent); border-color: color-mix(in srgb, var(--status-ok) 35%, transparent); }
.nt-result--warn { background: color-mix(in srgb, var(--status-progress) 10%, transparent); border-color: color-mix(in srgb, var(--status-progress) 35%, transparent); }
.nt-result--bad { background: color-mix(in srgb, var(--status-blocked) 9%, transparent); border-color: color-mix(in srgb, var(--status-blocked) 35%, transparent); }

.nt__foot { display: flex; align-items: center; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border-color); }
.nt__last { flex: 1; font: 400 11.5px/1.3 var(--font-mono); color: var(--text-tertiary); }
.nt__cancel, .nt__send { padding: 9px 16px; border-radius: var(--radius-md); font: 600 13px var(--font-body); cursor: pointer; }
.nt__cancel { border: 1px solid var(--border-strong); background: none; color: var(--text-primary); }
.nt__send { border: 0; background: var(--accent); color: var(--accent-ink); }
.nt__send:disabled { opacity: 0.45; cursor: default; }
.nt button:focus-visible, .nt input:focus-visible, .nt textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

@keyframes nt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  .nt-add { grid-template-columns: 1fr 1fr; }
  .nt-add input[type="email"] { grid-column: 1 / -1; grid-row: 2; }
  .nt__last { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nt[open] { animation: none; } }
