/* Newsletters (#agent/newsletters). The nl- pieces on top of the Money design
   system; colours come from its --m-* tokens so light, dark and the agent's
   brand colour all carry over. */

.nl-app .nl-newbtn { width: 100%; justify-content: center; margin: 4px 0 2px; }
.nl-navgap { height: 10px; }
.nl-navright { margin-left: auto; font-size: 12px; color: var(--m-muted); font-variant-numeric: tabular-nums; }
.nl-foot .tk-foot-note { font-size: 11.5px; line-height: 1.45; color: var(--m-muted); padding: 10px 10px 0; }
.nl-grow { flex: 1 1 auto; }
.nl-gap { height: 12px; }
.nl-pad { padding: 14px 18px; }
.nl-hint { font-size: 12px; line-height: 1.45; color: var(--m-muted); margin-top: 5px; }
.nl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nl-field textarea, .nl-field input[type=text], .nl-field input[type=email], .nl-field input[type=number], .nl-field select { width: 100%; box-sizing: border-box; }
.nl-field textarea { font: inherit; line-height: 1.5; resize: vertical; padding: 9px 11px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); }
.nl-field { margin-bottom: 12px; }

/* figures: one line between two hairlines, not cards */
.nl-figs { display: flex; flex-wrap: wrap; border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); margin: 4px 0 22px; }
.nl-fig { flex: 1 1 130px; padding: 16px 18px 14px 0; }
.nl-fig .v { font-size: 26px; line-height: 1.15; font-weight: 600; color: var(--m-ink); font-variant-numeric: tabular-nums; }
.nl-fig .v small { font-size: 13px; font-weight: 500; color: var(--m-muted); margin-left: 4px; }
.nl-fig .v.neg { color: var(--m-neg, #C24B3F); }
.nl-fig .l { font-size: 12.5px; color: var(--m-muted); margin-top: 3px; }

.nl-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.nl-cols.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.nl-cols > div > .m-card + .m-card { margin-top: 18px; }
.nl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.nl-toolbar select, .nl-bulk select { height: 34px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); padding: 0 10px; font: inherit; font-size: 13px; }
.nl-search { height: 34px; min-width: 220px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); padding: 0 12px; font: inherit; font-size: 13px; margin-left: auto; }
.nl-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.nl-pager { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

.nl-table th.r, .nl-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.nl-table .nl-cbcol { width: 34px; }
.nl-rowlink { cursor: pointer; }
tr.nl-rowlink:hover td { background: var(--m-surface-2); }
.nl-acts { white-space: nowrap; }
.nl-url { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--m-muted); font-size: 12.5px; }

.nl-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin: 0 0 18px; border: 1px solid #E8D9BE; background: #FBF5EA; color: #6B4C17; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.nl-banner .i { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.nl-banner.neg { border-color: #EBC9C5; background: #FBEFED; color: #8B2F26; }
[data-theme="dark"] .nl-banner { border-color: #5a4a2a; background: #2e2716; color: #E9D3A4; }
[data-theme="dark"] .nl-banner.neg { border-color: #6b3630; background: #321a17; color: #F0B8B1; }

.nl-need { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; border-top: 1px solid var(--m-line); color: #8A5F1F; font-size: 13.5px; line-height: 1.45; text-decoration: none; }
.nl-need:first-child { border-top: 0; padding-top: 2px; }
.nl-need .i { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; }
[data-theme="dark"] .nl-need { color: #E0B872; }

.nl-bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding-top: 6px; }
.nl-bars.tall { height: 150px; gap: 2px; }
.nl-bar { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; }
.nl-bar i { display: block; width: 100%; background: var(--brand, #1D2733); border-radius: 2px 2px 0 0; opacity: 0.88; }
.nl-bar u { position: absolute; left: 25%; right: 25%; bottom: 0; background: #B8813A; border-radius: 2px 2px 0 0; text-decoration: none; }
.nl-barsfoot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--m-muted); padding-top: 6px; border-top: 1px solid var(--m-line); }
.nl-rate { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.nl-rate .m-progress { flex: 1 1 auto; }
.nl-rate span { font-variant-numeric: tabular-nums; font-size: 13px; width: 48px; text-align: right; }

/* ---- full-width pages: editor, review, report ---- */
.money-app.nl-app.nl-bare { display: block; }
.money-app.nl-app.nl-bare > .nl-main { display: block; padding: 0; max-width: none; width: 100%; }
body.clean-on .money-app.nl-app.nl-bare { grid-template-columns: none; }
.nl-edtop { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--m-surface); border-bottom: 1px solid var(--m-line); }
.nl-edname { flex: 0 1 320px; min-width: 120px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--m-ink); font: inherit; font-size: 15px; font-weight: 600; padding: 6px 8px; }
.nl-edname:hover, .nl-edname:focus { border-color: var(--m-line); background: var(--m-bg); outline: none; }
.nl-edtitle { font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.nl-savestate { font-size: 12px; }
.nl-review { max-width: 1180px; margin: 0 auto; padding: 22px 28px 60px; }

.nl-editor { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; height: calc(100vh - 56px - 55px); min-height: 520px; }
.nl-pane { overflow-y: auto; padding: 16px; background: var(--m-surface); }
.nl-left { border-right: 1px solid var(--m-line); }
.nl-right { border-left: 1px solid var(--m-line); }
.nl-pane .m-sectionlabel { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.nl-pane .m-sectionlabel:first-child { margin-top: 0; }
.nl-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nl-pal { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); font: inherit; font-size: 12px; cursor: pointer; }
.nl-pal:hover { border-color: var(--brand, #1D2733); background: var(--m-bg); }
.nl-pal .i { width: 18px; height: 18px; color: var(--m-muted); }
.nl-layers { display: flex; flex-direction: column; gap: 2px; }
.nl-layer { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--m-ink); font: inherit; font-size: 13px; cursor: pointer; }
.nl-layer em { font-style: normal; color: var(--m-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-layer:hover { background: var(--m-bg); }
.nl-layer.on { background: var(--brand, #1D2733); color: var(--brand-ink, #fff); }
.nl-layer.on em { color: inherit; opacity: 0.7; }

.nl-center { display: flex; flex-direction: column; min-width: 0; background: var(--m-bg); }
.nl-meta { padding: 12px 22px; background: var(--m-surface); border-bottom: 1px solid var(--m-line); }
.nl-metarow { display: flex; align-items: center; gap: 12px; }
.nl-metarow + .nl-metarow { margin-top: 6px; }
.nl-metarow label { flex: 0 0 92px; font-size: 12.5px; color: var(--m-muted); }
.nl-metarow input { flex: 1 1 auto; min-width: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--m-ink); font: inherit; font-size: 14px; padding: 6px 8px; }
.nl-metarow input:hover, .nl-metarow input:focus { border-color: var(--m-line); background: var(--m-bg); outline: none; }
.nl-count { font-size: 11.5px; color: var(--m-muted); font-variant-numeric: tabular-nums; }
.nl-canvas { position: relative; flex: 1 1 auto; overflow: auto; padding: 0; }
.nl-canvas-host { display: block; margin: 0 auto; width: 100%; min-height: 100%; background: #F3F4F6; }
.nl-canvas.phone .nl-canvas-host { width: 390px; margin: 18px auto; min-height: 0; border: 1px solid var(--m-line); border-radius: 22px; overflow: hidden; box-shadow: 0 8px 28px rgba(29, 39, 51, 0.12); }
.nl-canvas-empty { position: absolute; left: 0; right: 0; top: 40px; text-align: center; color: var(--m-muted); font-size: 14px; pointer-events: none; }
.nl-panetabs { margin-bottom: 14px; }
.nl-blockhead { display: flex; align-items: center; gap: 2px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--m-line); }
.nl-blockhead b { font-size: 14px; }
.nl-up .i { transform: rotate(-90deg); }
.nl-down .i { transform: rotate(90deg); }
.nl-imgrow { display: flex; gap: 6px; }
.nl-imgrow input[type=text] { flex: 1 1 auto; min-width: 0; }
.nl-upload { cursor: pointer; white-space: nowrap; }
.nl-color { display: grid; grid-template-columns: 1fr; }
.nl-color label { grid-column: 1 / -1; }
.nl-color { grid-template-columns: 44px 1fr; gap: 0 8px; align-items: center; }
.nl-color input[type=color] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); cursor: pointer; }
.nl-footnote { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--m-line); font-size: 12px; line-height: 1.5; color: var(--m-muted); }

/* ---- review ---- */
.nl-listpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.nl-listpicks.small { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.nl-listpick { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--m-line); border-radius: 10px; cursor: pointer; }
.nl-listpick.on { border-color: var(--brand, #1D2733); box-shadow: inset 0 0 0 1px var(--brand, #1D2733); }
.nl-listpick input { margin-top: 3px; }
.nl-listpick b { display: block; font-size: 14px; }
.nl-listpick em { font-style: normal; font-size: 12.5px; color: var(--m-muted); }
.nl-check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--m-line); }
.nl-check:first-child { border-top: 0; padding-top: 2px; }
.nl-check .i { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.nl-check.ok .i { color: #2E7D5B; }
.nl-check.warn .i { color: #B8813A; }
.nl-check.bad .i { color: #C24B3F; }
.nl-check b { display: block; font-size: 13.5px; }
.nl-check span { font-size: 13px; line-height: 1.45; color: var(--m-muted); word-break: break-word; }
.nl-check.bad span { color: #C24B3F; }
.nl-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.nl-at { height: 34px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); padding: 0 10px; font: inherit; font-size: 13px; }
.nl-sendrow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.nl-sendrow.left { justify-content: flex-start; }
.nl-consent { margin-top: 4px; font-size: 14px; }

/* ---- lists, templates, start modal ---- */
.nl-listgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.nl-listnums { display: flex; gap: 28px; padding: 4px 0 14px; }
.nl-listnums b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nl-listnums span { font-size: 12px; color: var(--m-muted); }
.nl-signup { display: flex; gap: 6px; align-items: center; }
.nl-signup input { flex: 1 1 auto; min-width: 0; height: 32px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-bg); color: var(--m-muted); padding: 0 10px; font: inherit; font-size: 12.5px; }
.nl-snippet { width: 100%; box-sizing: border-box; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-bg); color: var(--m-ink); padding: 8px 10px; resize: none; }
.nl-formcols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nl-startgrid, .nl-tplgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.nl-tplgrid { margin-bottom: 24px; }
.nl-start, .nl-tpl { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-surface); color: var(--m-ink); font: inherit; }
.nl-start { cursor: pointer; }
.nl-start:hover { border-color: var(--brand, #1D2733); }
.nl-start b, .nl-tpl b { font-size: 14px; margin-top: 6px; }
.nl-start span, .nl-tpl span { font-size: 12.5px; line-height: 1.4; color: var(--m-muted); }
.nl-thumb { position: relative; height: 96px; border-radius: 6px; background: #F3F4F6; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 10px; }
.nl-thumb.big { height: 130px; }
.nl-thumb::before { content: ""; display: block; width: 70%; height: 14px; border-radius: 2px; background: var(--brand, #1D2733); }
.nl-thumb i { display: block; width: 70%; height: 6px; border-radius: 2px; background: #D5DAE0; }
.nl-thumb i:nth-child(1) { height: 30px; background: #C5CBD2; }
.nl-thumb i:nth-child(3) { width: 30%; height: 10px; background: var(--brand, #1D2733); opacity: 0.85; }
.nl-thumb.t-plain-letter::before, .nl-thumb.t-blank::before { display: none; }
.nl-thumb.t-plain-letter i:nth-child(1) { height: 6px; }
.nl-thumb.t-plain-letter i:nth-child(3) { width: 70%; height: 6px; background: #D5DAE0; }
.nl-thumb.t-blank i { display: none; }
.nl-thumb.t-market-update i:nth-child(1) { height: 22px; background: repeating-linear-gradient(90deg, #C5CBD2 0 30%, transparent 30% 35%); }
.nl-thumb.t-saved::before { background: #B8813A; }
[data-theme="dark"] .nl-thumb { background: #2a323d; }

.nl-hist { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--m-line); font-size: 13px; }
.nl-hist em { font-style: normal; color: var(--m-muted); }
.nl-fromrow { display: flex; align-items: center; gap: 6px; }
.nl-fromrow input { flex: 0 1 160px; }
.nl-fromrow span { color: var(--m-muted); font-size: 13.5px; }
.nl-imptext { width: 100%; box-sizing: border-box; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); padding: 10px 12px; resize: vertical; }
.nl-maprow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.nl-maprow select { width: 100%; }
.nl-previewbox { max-height: 62vh; overflow: auto; border: 1px solid var(--m-line); border-radius: 8px; }
.nl-plain { margin-top: 12px; font-size: 13px; }
.nl-plain pre { white-space: pre-wrap; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--m-muted); background: var(--m-bg); padding: 12px; border-radius: 8px; max-height: 240px; overflow: auto; }
.nl-app .m-modal.wide { width: min(860px, 94vw); }

@media (max-width: 1100px) {
  .nl-editor { grid-template-columns: 200px minmax(0, 1fr) 280px; }
  .nl-cols, .nl-cols.even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .nl-editor { display: block; height: auto; }
  .nl-pane { border: 0; border-bottom: 1px solid var(--m-line); }
  .nl-canvas { min-height: 420px; }
  .nl-edtop { flex-wrap: wrap; position: static; }
  .nl-two, .nl-formcols, .nl-maprow { grid-template-columns: 1fr; }
  .nl-review { padding: 16px 14px 40px; }
  .nl-search { margin-left: 0; width: 100%; }
}

/* inputs anywhere in the app that are not inside the kit's .m-form */
.nl-app .nl-field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), .nl-app .nl-field select, .nl-app .nl-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); outline: none; }
.nl-app .nl-field input:focus, .nl-app .nl-field select:focus, .nl-app .nl-field textarea:focus { border-color: var(--m-accent); box-shadow: 0 0 0 3px var(--m-accent-soft); }
.nl-app .nl-field > label { display: block; font-size: 12px; font-weight: 600; color: var(--m-muted); margin-bottom: 5px; }
.nl-app .nl-color input[type=text] { width: 100%; }
.nl-review > .m-card, .nl-review > .nl-cols { margin-top: 18px; }
.nl-review .m-head { margin-bottom: 6px; }

/* ---- drips ---- */
.nl-libintro { margin: 0 0 14px; font-size: 14px; }
.nl-dripgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.nl-dripcard { padding: 16px; min-height: 130px; }
.nl-dripcard b { margin-top: 0; font-size: 15px; }
.nl-dripcard em { margin-top: auto; padding-top: 10px; font-style: normal; font-size: 12px; color: var(--m-muted); font-variant-numeric: tabular-nums; }
.nl-clip { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-timeline { position: relative; padding-left: 22px; }
.nl-timeline::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 30px; width: 1px; background: var(--m-line); }
.nl-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--m-line-soft, var(--m-line)); }
.nl-step > i { position: absolute; left: -22px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-radius: 50%; background: var(--m-surface); border: 2px solid var(--brand, #1D2733); box-sizing: border-box; }
.nl-stepday { flex: 0 0 86px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--m-muted); }
.nl-stepday input { width: 52px; height: 30px; text-align: center; border: 1px solid var(--m-line); border-radius: 6px; background: var(--m-surface); color: var(--m-ink); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.nl-stepmain { flex: 1 1 auto; min-width: 0; }
.nl-stepmain b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-stepmain span { display: block; font-size: 12.5px; color: var(--m-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-stepnums { flex: 0 0 auto; font-size: 12.5px; color: var(--m-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nl-stepadd { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 12px; border: 1px dashed var(--m-line); border-radius: 8px; background: transparent; color: var(--m-muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.nl-stepadd:hover { border-color: var(--brand, #1D2733); color: var(--m-ink); }
.nl-stepadd .i { width: 16px; height: 16px; }
.nl-radio { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14px; cursor: pointer; }
.nl-radio input { margin-top: 3px; accent-color: var(--brand, #1D2733); }
.nl-radiox { margin: 2px 0 8px 24px; }
.nl-radiox select, .nl-radiox input[type=text], .nl-hoursrow select { height: 34px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); padding: 0 10px; font: inherit; font-size: 13px; }
.nl-radiox select, .nl-radiox input[type=text] { width: 100%; box-sizing: border-box; }
.nl-stop { align-items: flex-start; padding: 6px 0; font-size: 14px; }
.nl-stop em { display: block; font-style: normal; font-size: 12.5px; color: var(--m-muted); }
.nl-hoursrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; padding-bottom: 8px; }
@media (max-width: 700px) { .nl-step { flex-wrap: wrap; } .nl-stepmain { flex-basis: 60%; } }
.nl-replytext { margin-top: 4px; padding: 6px 10px; border-left: 2px solid var(--m-line); color: var(--m-ink); font-size: 13px; line-height: 1.45; white-space: pre-wrap; max-width: 520px; }

/* ---- Email Campaigns: campaign list, tabs, Unibox, the newsletter month ---- */
.nl-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--m-muted); background: var(--m-surface-2); vertical-align: 1px; }
.nl-tag.gold { color: #8A5F1F; background: #FBF5EA; }
.nl-searchleft { margin-left: 0; min-width: 280px; }
.nl-camps .nl-rate { min-width: 130px; }
.nl-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--m-line); margin: 0 0 20px; }
.nl-tab { padding: 10px 2px 11px; margin-bottom: -1px; font-size: 14px; font-weight: 500; color: var(--m-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.nl-tab:hover { color: var(--m-ink); }
.nl-tab.on { color: var(--m-ink); border-bottom-color: var(--brand, #1D2733); font-weight: 600; }
.nl-tabbody > .m-card, .nl-tabbody > .nl-cols { margin-top: 18px; }
.nl-tabbody > .m-card:first-child, .nl-tabbody > .nl-figs:first-child { margin-top: 0; }
.nl-tabacts { justify-content: flex-end; margin-bottom: 10px; }
.nl-tabacts:empty { display: none; }
.nl-seqbox { max-height: 640px; }
.nl-unibox { display: grid; grid-template-columns: 210px 360px minmax(0, 1fr); border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; min-height: 520px; background: var(--m-surface); }
.nl-uni-left { padding: 12px; border-right: 1px solid var(--m-line); display: flex; flex-direction: column; gap: 2px; }
.nl-uni-left .nl-layer { justify-content: space-between; }
.nl-uni-left .m-sectionlabel { margin: 14px 0 6px; }
.nl-uni-mid { border-right: 1px solid var(--m-line); overflow-y: auto; max-height: 72vh; }
.nl-unirow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--m-line); background: transparent; color: var(--m-ink); font: inherit; cursor: pointer; }
.nl-unirow.on, .nl-unirow:hover { background: var(--m-surface-2); }
.nl-unirow b { font-size: 14px; }
.nl-unirow time { font-size: 11.5px; color: var(--m-muted); }
.nl-unirow em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--m-muted); }
.nl-unirow span { grid-column: 1 / -1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-uni-right { padding: 22px 26px; }
.nl-uni-right h3 { margin: 0 0 2px; font-size: 18px; }
.nl-unitext { margin: 16px 0; padding: 14px 16px; border-left: 3px solid var(--brand, #1D2733); background: var(--m-bg); font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.nl-monthbar { gap: 14px; }
.nl-monthbar b { font-size: 16px; min-width: 150px; text-align: center; }
.nl-monthbar .m-btn:first-child .i { transform: none; }
.nl-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.nl-slot { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-surface); min-height: 210px; }
.nl-slotdate { font-size: 11.5px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--m-muted); }
.nl-slotdate span { margin-left: 6px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.nl-slothead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 6px; }
.nl-slothead b { font-size: 16px; }
.nl-slot p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--m-muted); }
.nl-slotnote { margin-top: 8px; font-size: 12.5px; color: var(--m-ink); }
.nl-slotfoot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.nl-three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.nl-embed .nl-edtop { position: static; padding-left: 0; padding-right: 0; background: transparent; }
.nl-embed .nl-review { max-width: none; padding: 16px 0 40px; }
@media (max-width: 1100px) { .nl-slots { grid-template-columns: 1fr 1fr; } .nl-unibox { grid-template-columns: 1fr; } .nl-uni-left, .nl-uni-mid { border-right: 0; border-bottom: 1px solid var(--m-line); } }
@media (max-width: 700px) { .nl-slots, .nl-three { grid-template-columns: 1fr; } .nl-tabs { gap: 14px; overflow-x: auto; } }
.nl-canvas.plain .nl-canvas-host { background: #FFFFFF; }

/* A long unbroken name, subject or address wraps instead of pushing the page sideways. */
.nl-main { overflow-wrap: break-word; }
.nl-table td .m-cellmain, .nl-table td .m-faint { overflow-wrap: anywhere; min-width: 180px; }
/* A row of filter buttons (Audience status, a report's people groups) scrolls on a phone instead of widening the page. */
.nl-main .m-seg { max-width: 100%; overflow-x: auto; }
.nl-main .m-card-head .m-actions { max-width: 100%; min-width: 0; }
.nl-main .m-card-head > div:first-child, .nl-main .m-head > div:first-child { min-width: 0; }
.nl-main .m-card-title, .nl-main .m-card-sub, .nl-main .m-title { overflow-wrap: anywhere; }
