:root {
  color-scheme: light;
  --bg: #f4f5f8;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text: #1a1d23;
  --muted: #6b7280;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --danger: #d92d20;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);

  /* One semantic color scale, reused everywhere a lead-quality or
     confidence value is shown (Enriched list rows/badges, detail page
     header/chips) so the same signal always reads the same color. */
  --good: #2f9e44; --good-bg: #eaf7ec; --good-border: #cdebd2;
  --warn: #b8720a; --warn-bg: #fff4e0; --warn-border: #f3dba8;
  --bad: #c0392b; --bad-bg: #fdecea; --bad-border: #f6cdc8;
  --neutral: #6b7280; --neutral-bg: #eef0f4; --neutral-border: #dfe2e8;
  /* Same family as --accent, for the Pitch Angle box — a positive/selling
     point, so it gets an "info" tint rather than a warning color. */
  --info: #4338ca; --info-bg: #eeecfd; --info-border: #d7d2f7;

  /* A more editorial serif for the Pitch/evidence prose specifically —
     see style.css's .pitch-card rule for why. System stack, no network
     font fetch needed. */
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
}

.page { max-width: 1320px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.6rem 0 0.75rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.topbar a { color: var(--accent); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.home-icon { font-size: 1.2rem; line-height: 1; margin-right: 0.25rem; }
.topbar-spacer { flex: 1; }
.logout-form { display: inline; margin: 0; }
.link-button { background: none; border: none; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; }
.link-button:hover { text-decoration: underline; }

.page-header { margin-bottom: 1.25rem; }
h1 { margin: 0 0 0.25rem; font-size: 1.65rem; letter-spacing: -0.01em; }
h2 { margin: 0 0 0.6rem; font-size: 1rem; }
.caption { color: var(--muted); margin: 0; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

/* ---------- status banner ---------- */
.status-banner {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #eaf7ec;
  color: #1e6b30;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid #cdebd2;
}
.status-banner.error { background: #fdecea; color: #a12a20; border-color: #f6cdc8; }
/* !important: this is a utility class meant to always win regardless of
   what else an element is styled with (e.g. #stop-run-btn is also .btn,
   whose own `display` rule sits later in this file and would otherwise
   take the tie on source order). */
.hidden { display: none !important; }

/* ---------- status chips (Qualified counts) ---------- */
.status-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.stat-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ---------- toolbar / filter form ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-end;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.toolbar-group { display: flex; flex-direction: column; gap: 0.35rem; }
.toolbar-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.toolbar-actions { display: flex; gap: 0.5rem; margin-left: auto; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.82rem;
  cursor: pointer;
}
.field-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.field-hint { font-size: 0.78rem; color: var(--muted); }

/* ---------- searchable dropdown (long checkbox-list filters, e.g. Locality) ---------- */
.searchable-dropdown { position: relative; width: 15rem; }
.searchable-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
}
.searchable-dropdown-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchable-dropdown-caret { color: var(--muted); font-size: 0.7rem; }
.searchable-dropdown-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.3rem);
  left: 0;
  width: max(100%, 16rem);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.12);
  padding: 0.6rem;
}
.searchable-dropdown-search { width: 100%; margin-bottom: 0.5rem; }
.searchable-dropdown-options { max-height: 14rem; overflow-y: auto; display: flex; flex-direction: column; }
.searchable-dropdown-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}
.searchable-dropdown-option:hover { background: var(--bg); }
.searchable-dropdown-empty { font-size: 0.82rem; color: var(--muted); padding: 0.4rem; margin: 0; }
.searchable-dropdown-footer { display: flex; justify-content: flex-end; padding-top: 0.4rem; margin-top: 0.3rem; border-top: 1px solid var(--border); }
.searchable-dropdown-footer .link-button { font-size: 0.8rem; }
.text-input, .select-input {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfbfc;
  color: var(--text);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: #b7b3f0; cursor: not-allowed; }
.btn-ghost { background: var(--card-bg); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #fdecea; color: var(--danger); border-color: #f6cdc8; }
.btn-danger:hover { background: #f6cdc8; }
.btn-disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- batch action bar (Qualified) ---------- */
.batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.batch-group { display: flex; align-items: center; gap: 0.5rem; }
.batch-size-input { width: 5rem; }

/* ---------- result bar ---------- */
.result-bar { display: flex; justify-content: space-between; align-items: center; margin: 0.5rem 0 0.75rem; }
.result-count { color: var(--muted); margin: 0; font-size: 0.88rem; }

/* ---------- data table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.87rem;
}
.data-table th, .data-table td { padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: #fafafc; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.data-table tbody tr:nth-child(even) { background: #f7f8fa; }
.data-table tbody tr:hover { background: #f9f9fd; }
.data-table a { color: var(--accent); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }
.th-sort { display: inline-flex; align-items: center; gap: 0.3rem; color: inherit; text-decoration: none; }
.th-sort:hover { color: var(--accent); text-decoration: none; }
.th-sort-active { color: var(--text); }
.th-sort-arrow { font-size: 0.7rem; color: var(--accent); }
.cell-truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Enriched list: lead cards ---------- */
/* A single-line table can't show the pitch hook or decision maker without
   truncating exactly the fields that matter most for "should I open
   this" — cards let each lead take the vertical space its content needs
   instead of forcing everything into one row. */
.lead-card-list { display: flex; flex-direction: column; gap: 0.7rem; }
.lead-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow);
}
.lead-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.lead-card-name { font-size: 1.05rem; font-weight: 700; color: var(--text); text-decoration: none; }
.lead-card-name:hover { color: var(--accent); }
.lead-card-spacer { flex: 1; }
.lead-card-date { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.lead-card-meta { color: var(--muted); font-size: 0.83rem; margin: 0.25rem 0 0.45rem; }
.lead-card-hook { font-family: var(--font-serif); font-size: 0.92rem; line-height: 1.5; margin: 0 0 0.6rem; color: var(--text); }
.lead-card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.lead-card-dm { color: var(--muted); font-size: 0.83rem; }
.lead-card-actions { display: flex; align-items: center; gap: 0.4rem; }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-blank { background: var(--neutral-bg); color: var(--neutral); }
.status-queued { background: var(--warn-bg); color: var(--warn); }
.status-done { background: var(--good-bg); color: var(--good); }
.status-failed { background: var(--bad-bg); color: var(--bad); }

/* ---------- lead quality (Enriched) ---------- */
.quality-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
}
.quality-good { background: var(--good-bg); color: var(--good); border-color: var(--good-border); }
.quality-review { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }
.quality-poorfit, .quality-unknown { background: var(--neutral-bg); color: var(--neutral); border-color: var(--neutral-border); }
.quality-closed { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-border); }

/* Lead-card left-border accent, same color scale as the badge above but a
   distinct class prefix (row-quality-*, not quality-*) so it doesn't also
   pick up the badge's background/text-color rules — a card should get a
   left-border accent only, not its whole background/text recolored. */
.lead-card.row-quality-good { border-left: 4px solid var(--good); }
.lead-card.row-quality-review { border-left: 4px solid var(--warn); }
.lead-card.row-quality-poorfit, .lead-card.row-quality-unknown { border-left: 4px solid var(--neutral-border); }
.lead-card.row-quality-closed { border-left: 4px solid var(--bad); }

/* ---------- confidence chips (decision maker / parent company / Google match) ---------- */
.confidence-chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.confidence-high { background: var(--good-bg); color: var(--good); }
.confidence-medium { background: var(--warn-bg); color: var(--warn); }
.confidence-low { background: var(--bad-bg); color: var(--bad); }
.confidence-none { background: var(--neutral-bg); color: var(--neutral); }

.empty-state { color: var(--muted); padding: 2rem 0; text-align: center; }

/* ---------- pagination ---------- */
.pagination { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 1.25rem; }
.pagination-status { color: var(--muted); font-size: 0.85rem; }

/* ---------- login / home ---------- */
.login-wrap { display: flex; justify-content: center; padding: 3rem 1rem; }
.login-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.home-card { max-width: 460px; text-align: center; align-items: center; }
.login-title { margin: 0 0 0.25rem; font-size: 1.3rem; }
.login-submit { margin-top: 0.5rem; justify-content: center; }

/* ---------- Enriched detail page: single-column "call sheet" ---------- */
.lead-header { margin-bottom: 1.25rem; }
.lead-header-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.lead-header-top h1 { margin: 0; font-size: 2.05rem; font-weight: 800; letter-spacing: -0.02em; }
.lead-meta { color: var(--muted); margin: 0.25rem 0 0.85rem; font-size: 0.95rem; }
/* Row of clickable actions (phone/website/Maps/socials/email) — pill-
   shaped on purpose, so only things that actually do something on click
   look like buttons. */
.quick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
/* Rating/category/status/price: plain dot-separated text, deliberately
   flat (no pill/border) so it doesn't invite a click the way the action
   row above does. */
.fact-line { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 0; }
.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
}
.quick-action:hover { border-color: var(--accent); color: var(--accent); }
.enriched-at-note { color: var(--muted); font-size: 0.8rem; margin-top: 0.5rem; }

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.detail-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 0.9rem; align-items: start; }
.detail-card dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); padding-top: 0.1rem; }
.detail-card dd { margin: 0; }
.text-error { color: var(--danger); }

/* Pitch: full-width, first, the most important section on the page —
   it's literally what to say on the call. Body copy uses a serif face
   (--font-serif, a system stack — no network font fetch) to read more
   like a briefing than a form; labels stay in the UI sans for contrast. */
.pitch-card dl { grid-template-columns: 1fr; gap: 0.85rem; }
.pitch-card dd { font-family: var(--font-serif); font-size: 0.98rem; line-height: 1.55; }
.pitch-item-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 0.2rem; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.pitch-hook { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.alert-box { border-radius: 8px; padding: 0.65rem 0.85rem; }
.alert-angle { background: var(--info-bg); border: 1px solid var(--info-border); }
.alert-angle .pitch-item-label { color: var(--info); }
.alert-objection { background: var(--warn-bg); border: 1px solid var(--warn-border); }
.alert-objection .pitch-item-label { color: var(--warn); }
.alert-caution { background: var(--bad-bg); border: 1px solid var(--bad-border); }
.alert-caution .pitch-item-label { color: var(--bad); }

/* "Why this checks out" — the review-signal summary, surfaced as its own
   full-width block right after Pitch (evidence backing up what to say),
   rather than buried lower with the raw Google-Places debug fields. */
.evidence-card { background: #fbfbfd; }
.evidence-text { font-family: var(--font-serif); font-size: 0.95rem; line-height: 1.6; color: var(--text); margin: 0; }

/* Two-column secondary sections (Decision maker | Venue & ownership) —
   supporting/reference detail, not action detail. */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

/* Sources: collapsed by default, compact domain links rather than raw URLs */
.sources-details { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 1.1rem; margin-bottom: 1rem; }
.sources-details summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; list-style: none; }
.sources-details summary::-webkit-details-marker { display: none; }
.sources-details summary::before { content: "▸"; display: inline-block; margin-right: 0.4rem; color: var(--muted); }
.sources-details[open] summary::before { content: "▾"; }
.sources-list { list-style: none; margin: 0.4rem 0 0.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sources-list li { font-size: 0.8rem; }
.sources-list a {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
}
.sources-list a:hover { border-color: var(--accent); }

/* ---------- outreach generation panel (list cards + detail page) ---------- */
/* Same collapsed-by-default treatment as .sources-details above, reused
   both compactly inside a list card and as its own section on the detail
   page — see partials/outreach_macro.html. */
.outreach-details { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 1.1rem; margin: 0.6rem 0 0; box-shadow: var(--shadow); }
.outreach-details summary { cursor: pointer; font-weight: 600; padding: 0.4rem 0; list-style: none; }
.outreach-details summary::-webkit-details-marker { display: none; }
.outreach-details summary::before { content: "▸"; display: inline-block; margin-right: 0.4rem; color: var(--muted); }
.outreach-details[open] summary::before { content: "▾"; }
.outreach-generated-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--good); background: var(--good-bg); border-radius: 999px; padding: 0.1rem 0.5rem; margin-left: 0.3rem; }

.outreach-panel { padding: 0.3rem 0 0.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.outreach-instructions {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfbfc;
  color: var(--text);
  resize: vertical;
}
.outreach-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.outreach-error { color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad-border); border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.83rem; margin: 0; }

/* The clicked Generate/Regenerate button while its request is in flight —
   colored (not just disabled/dimmed) so it's obvious which one is running,
   especially when the other button in the pair is also disabled. */
.outreach-generate.is-generating,
.outreach-generate.is-generating:disabled {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--info-border);
  opacity: 1;
  cursor: wait;
}

.outreach-result { background: #fbfbfd; border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.8rem; }
.outreach-result-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-bottom: 0.4rem; }
.outreach-text { font-family: var(--font-serif); font-size: 0.9rem; line-height: 1.55; margin: 0 0 0.4rem; white-space: pre-wrap; }
.outreach-text:last-child { margin-bottom: 0; }
.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}
.copy-btn:hover { border-color: var(--accent); }

/* ---------- Pipeline page ---------- */
.pipeline-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.pipeline-summary-stat { display: flex; flex-direction: column; align-items: flex-start; min-width: 4.5rem; }
.pipeline-summary-num { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.pipeline-summary-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.pipeline-summary-overdue .pipeline-summary-num { color: var(--bad); }
.pipeline-summary-today .pipeline-summary-num { color: var(--warn); }
.pipeline-summary-stale .pipeline-summary-num { color: var(--neutral); }
.pipeline-summary-funnel { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }

/* Left-border accent by urgency — same idea as the Enriched list's
   quality-row accent, reused here for "how soon do I need to act." */
.pipeline-card.urgency-overdue { border-left: 4px solid var(--bad); }
.pipeline-card.urgency-today { border-left: 4px solid var(--warn); }
.pipeline-card.urgency-stale { border-left: 4px solid var(--neutral-border); }

.pipeline-error { color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad-border); border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.83rem; margin: 0.4rem 0; }

.pipeline-fields { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.6rem 0; }
.pipeline-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 9rem; }
.pipeline-field-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
.pipeline-field select, .pipeline-field input { width: 100%; }

/* Brief highlight after an in-place save confirms it actually happened,
   without needing a full status-banner interruption for every keystroke. */
.pipeline-saved-flash { outline: 2px solid var(--good); outline-offset: 1px; transition: outline-color 0.6s ease; }

.pipeline-touch-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.6rem 0; }
.pipeline-touch-bar .pipeline-touch-method { max-width: 9rem; }
.pipeline-touch-bar .pipeline-touch-note { flex: 1; min-width: 10rem; }

.pipeline-more { margin-top: 0.6rem; }
.pipeline-panel { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.3rem; }
.pipeline-note-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pipeline-note-bar .pipeline-standalone-note { flex: 1; min-width: 10rem; }

.pipeline-log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pipeline-log-list li { border-left: 2px solid var(--border); padding: 0.15rem 0 0.15rem 0.6rem; font-size: 0.83rem; }
.pipeline-log-time { color: var(--muted); font-size: 0.75rem; margin-right: 0.5rem; }
.pipeline-log-by { font-weight: 600; margin-right: 0.5rem; }
.pipeline-log-change { color: var(--info); display: block; }
.pipeline-log-note { display: block; font-family: var(--font-serif); color: var(--text); margin-top: 0.1rem; }
