/* Newsletter page (nl_editor.js) – hub and admin */
.nl-head h1 { margin: 0 0 4px; }
.nl-cards { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; margin: 14px 0; }
.nl-big { font-size: 34px; font-weight: 800; margin: 2px 0; }
.nl-link { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-link input { flex: 1; min-width: 180px; }
.nl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nl-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.nl-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.nl-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.nl-actions { white-space: nowrap; text-align: right; }
.nl-actions .btn { height: 32px; padding: 0 10px; font-size: 13px; }
.nl-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0 4px; }
.nl-add input:not([type=checkbox]) { flex: 1 1 160px; min-width: 0; }
.nl-check { display: flex; gap: 6px; align-items: center; font-size: 13.5px; white-space: nowrap; }
.nl-search { max-width: 240px; }
.nl-imp { margin: 8px 0 4px; }
.nl-imp summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.nl-imp textarea, .nl-block textarea { width: 100%; box-sizing: border-box; margin-top: 8px; }
.nl-head ~ * input:not([type=checkbox]):not([type=file]), .nl-head ~ * select, .nl-head ~ * textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--bg2, var(--card)); color: var(--text); font: inherit; box-sizing: border-box; }
.nl-form { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 10px 0; }
.nl-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.nl-blocks { display: grid; gap: 10px; }
.nl-block { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.nl-block .btn { height: 30px; padding: 0 9px; font-size: 13px; }
.nl-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f3f5f8; }
.nl-preview iframe { width: 100%; height: 560px; border: 0; display: none; }
.nl-preview.ready iframe { display: block; }
.nl-preview.ready .nl-pv-wait { display: none; }
.nl-pv-wait { margin: 0; padding: 60px 16px; text-align: center; color: #5b6573; }
/* editor (owner rule A): the preview left, the form right; phone: preview first, form below */
.nl-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: 18px; align-items: start; margin-top: 12px; }
.nl-view { position: sticky; top: 16px; min-width: 0; }
.nl-side { min-width: 0; }
.nl-side .nl-form { grid-template-columns: 1fr; margin-top: 0; }
@media (max-width: 900px) { .nl-work { grid-template-columns: 1fr; } .nl-view { position: static; } }
@media (max-width: 760px) { .nl-cards, .nl-form { grid-template-columns: 1fr; } .nl-table thead { display: none; } .nl-table td { display: block; border: 0; padding: 3px 0; }
  .nl-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; } .nl-actions { text-align: left; } }
/* lists, embed code, own HTML (1.10.39) */
.nl-code:not(.hidden) { margin: 4px 0 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint, transparent); }
.nl-coderow td { padding: 0 !important; border-bottom: 0 !important; }
.nl-mono { font-family: Consolas, "Cascadia Mono", monospace !important; font-size: 12.5px !important; width: 100%; resize: vertical; }
.nl-to { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; align-content: start; }
.nl-to small { font-weight: 400; }
.nl-tolist { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--text); font-weight: 400; }
.nl-cards .nl-code textarea { margin-top: 0; }
.nl-form { align-items: start; }
.nl-form label.nl-check { display: flex; gap: 6px; align-items: center; font-weight: 400; color: var(--text); font-size: 13.5px; }
.nl-tolist small { color: var(--muted); }
