/* Styles used by a single screen. */

/* ---------- Audience: batches & import ---------- */
.batchname { padding-left: 14px; color: var(--text-2); }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 28px 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface-2); text-align: center; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.field > label.dropzone { display: flex; font-weight: 400; margin: 0; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-softer); }
.dropzone.has-file { border-style: solid; border-color: var(--brand-border); }
.dropicon { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; }
.dropicon .icon { width: 20px; height: 20px; }
.dropzone strong { font-size: var(--text-md); font-weight: 600; color: var(--text); }
.dropzone u { color: var(--brand); text-underline-offset: 2px; }
.dropzone small { font-size: var(--text-xs); color: var(--text-3); }
[data-import='paste'] textarea { width: 100%; min-height: 150px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 10px 12px; font: 13px/1.6 var(--font-mono); background: var(--surface); color: var(--text); }
.colhint { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: var(--text-xs); color: var(--text-3); }
.colhint .linkbtn { margin-left: auto; }
.consentcard { border: 1px solid var(--brand-border); background: var(--brand-softer); border-radius: var(--radius-md); padding: 14px; margin-top: 16px; }
.consentcard > label:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--text-sm); color: var(--text); margin-bottom: 8px; }
.consentcard > label:first-child .icon { width: 16px; height: 16px; color: var(--brand); }
.consentcard input[name='consent_source'] { width: 100%; min-height: var(--control-height); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 11px; background: var(--surface); color: var(--text); font-size: var(--text-sm); }
.consentcard .checkrow { margin-top: 12px; }

/* ---------- Campaigns: view & report ---------- */
.emailview h2 { display: flex; align-items: center; gap: 8px; }
.emailview h2 .btn { margin-left: auto; }
.emailview .mailhead { margin-bottom: 12px; }
.viewgrid .settings-section { margin: 0; }
.viewgrid .row-between { gap: 12px; }
.viewgrid .row-between span { flex: 0 0 auto; }
.viewgrid .row-between strong { text-align: right; overflow-wrap: anywhere; min-width: 0; }

.rstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.rstat { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--surface); }
.rstat span { display: block; font-size: var(--text-xs); color: var(--text-3); }
.rstat strong { font-size: 18px; }
.rfilters { flex-wrap: wrap; margin: 12px 0; }
