/* outreach module styles — the pipeline list, the daily brief, a target's page, bot settings.
   Tokens from app.css only, never raw colours. Phone first: Vito mostly works this from his phone. */

/* ───────── daily brief ───────── */
.out-brief { margin-bottom: 14px; overflow: hidden; }
.out-brief-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; padding: 12px 16px; border: 0; background: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.out-brief-head:hover { background: var(--surface-2); }
.out-brief-head > .icon:first-child { color: var(--red-ink); }
.out-brief-title { font-size: 14.5px; font-weight: 700; }
.out-brief.is-open .out-brief-head { border-bottom: 1px solid var(--border); }
.out-brief .card-body { max-height: 60vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.out-brief-foot { padding: 9px 16px; border-top: 1px solid var(--border); font-size: 12.5px; background: var(--surface-2); }
.out-brief-foot:empty { display: none; }
.brief { font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.brief-h { font-weight: 800; margin: 12px 0 4px; letter-spacing: -0.01em; }
.brief-h:first-child { margin-top: 0; }
.brief-h1 { font-size: 16px; }
.brief-h2 { font-size: 14.5px; }
.brief-h3, .brief-h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); }
.brief-p { margin: 0 0 6px; }
.brief-list { margin: 0 0 8px; padding-left: 20px; }
.brief-list li { margin: 2px 0; }

/* ───────── list ───────── */
.out-alerts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.out-chip { height: 28px; gap: 6px; border: 1px solid transparent; font: inherit; font-size: 12.5px; font-weight: 600; }
.out-chip.is-red { background: var(--red-soft); color: var(--red-ink); border-color: color-mix(in srgb, var(--red) 35%, transparent); cursor: pointer; }
.out-chip.is-red.on { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.out-chip.is-amber { background: var(--amber-soft); color: var(--amber-ink); }
.outreach-page .tabs { margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.out-toolbar .search-input { flex: 1 1 280px; max-width: 420px; }

.out-list { overflow: hidden; }
.out-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--text); text-decoration: none; min-width: 0;
}
.out-row:last-child { border-bottom: 0; }
.out-row:hover { background: var(--surface-2); }
.out-row:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.out-row.is-overdue { box-shadow: inset 3px 0 0 var(--red); }
.out-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.out-row-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.out-row-company { font-weight: 700; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.out-row-sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out-row-step { display: flex; align-items: flex-start; gap: 5px; color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.out-row-step .icon { flex: none; margin-top: 2px; color: var(--muted); }
.out-row-step span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.out-row-when { flex: none; text-align: right; padding-top: 1px; }
.out-date { font: 500 12px/1.2 var(--mono); color: var(--text-2); white-space: nowrap; }
.out-count { margin: 8px 2px 0; }

/* ───────── a target's page ───────── */
.out-banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius);
  background: var(--gray-soft); border: 1px solid var(--border-strong); font-size: 13.5px;
}
.out-banner > .icon { flex: none; color: var(--muted); }
.out-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.out-next.is-overdue, .out-next.is-today { border-color: color-mix(in srgb, var(--red) 45%, var(--border)); }
.out-next-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.out-next-when .icon { color: var(--muted); }
.out-next.is-overdue .out-next-when, .out-next.is-overdue .out-next-when .icon { color: var(--red-ink); }
.out-next.is-today .out-next-when, .out-next.is-today .out-next-when .icon { color: var(--amber-ink); }
.out-next.is-none .out-next-when, .out-next.is-idle .out-next-when { color: var(--text-2); }
.out-next-when .small { font-weight: 500; letter-spacing: 0; }
.out-next-step { margin: 10px 0 0; color: var(--text-2); overflow-wrap: anywhere; }
.out-next-step .label-mono { margin-right: 6px; }
.out-hot { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--amber-soft); font-size: 13px; }
.out-hot .icon { flex: none; margin-top: 2px; color: var(--amber-ink); }

.copy-block { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.copy-block-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.copy-block-text { padding: 10px 12px; font-size: 13.5px; line-height: 1.5; user-select: text; -webkit-user-select: text; }
.out-notes { margin: 0; }

/* ───────── archive + settings ───────── */
.out-pager { margin-top: 14px; }
.out-setting { width: 100%; font: 12.5px/1.5 var(--mono); min-height: 180px; resize: vertical; }
.out-setting-foot { margin-top: 10px; }
.out-log { align-items: flex-start; }
.out-log-notes { color: var(--text-2); margin-top: 4px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .out-row { padding: 12px 14px; gap: 10px; }
  .out-row-sub { white-space: normal; }
  .out-quick .btn { flex: 1 1 auto; justify-content: center; }
  .out-quick .btn-primary { flex-basis: 100%; height: 44px; font-size: 15px; }
  .out-next-when { font-size: 16px; }
  .copy-block-head .btn { height: 34px; padding: 0 12px; }
  .out-toolbar .search-input { max-width: none; }
}
