/* eGain Account Signals — product chrome on top of Brand Manual 2026 tokens. */

:root {
  --ink: var(--color-fg-primary);
  --ink-2: var(--color-fg-secondary);
  --muted: var(--color-fg-tertiary);
  --line: var(--color-border-primary);
  --line-2: var(--color-border-tertiary);
  --paper: var(--color-bg-secondary);
  --card: var(--color-bg-primary);
  --blue: var(--color-brand);
  --blue-2: var(--color-brand);
  --blue-soft: var(--color-brand-pink);
  --ok: var(--color-success-fg);
  --warn: var(--color-warning-fg);
  --danger: var(--color-danger-fg);
  --shadow: var(--shadow-base);
  --radius: var(--radius-xl);
  --brand: var(--color-brand);
  --brand-hover: var(--color-brand-hover);
  --brand-pink: var(--color-brand-pink);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  font-size: var(--font-size-sm);
  line-height: var(--lh-normal);
  letter-spacing: var(--tracking-normal);
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }

/* ------------------------------------------------------------------ chrome */

.topbar {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: wrap;
  row-gap: 8px;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.topbar .brand .logo {
  height: 22px;
  width: auto;
  display: block;
}
.topbar .brand span.product {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border-left: 1px solid var(--color-border-secondary);
  padding-left: 14px;
  line-height: 1.2;
}
.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.topnav a {
  color: var(--color-fg-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.topnav a:hover { background: var(--color-bg-tertiary); color: var(--ink); }
.topnav a.active {
  background: var(--brand-pink);
  color: var(--brand);
  font-weight: 500;
}
.nav-dropdown {
  position: relative;
}
.nav-drop-toggle {
  color: var(--color-fg-secondary);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-dropdown:hover .nav-drop-toggle,
.nav-dropdown:focus-within .nav-drop-toggle,
.nav-dropdown.open-active .nav-drop-toggle {
  background: var(--brand-pink);
  color: var(--brand);
  font-weight: 500;
}
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 30;
}
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu {
  display: grid;
}
.nav-menu a {
  display: block;
  white-space: nowrap;
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.topbar-right form { margin: 0; }
.quiet-link {
  color: var(--color-fg-secondary);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
}
.quiet-link:hover { background: var(--color-bg-tertiary); color: var(--ink); }
.quiet-link.active { background: var(--brand-pink); color: var(--brand); font-weight: 500; }
.env-pill {
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--brand-pink);
  border: 0;
  border-radius: 9999px;
  padding: 6px 14px;
}
.link-button {
  background: none;
  border: 1px solid var(--line);
  color: var(--color-fg-secondary);
  border-radius: 9999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.link-button:hover { background: var(--color-bg-tertiary); color: var(--ink); }

.main { padding: 26px 28px 60px; max-width: 1560px; margin: 0 auto; }

.page-head {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.page-head-copy { min-width: 0; flex: 1; }
.page-head h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}
.page-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 900px; }
.page-head .instructions { max-width: 820px; line-height: 1.5; }
.page-head .instructions strong { color: var(--ink); }
.data-updated {
  flex: 0 0 auto;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  padding-top: 6px;
  white-space: nowrap;
}
.data-updated span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 11px;
  margin-bottom: 4px;
}
.data-updated time { color: var(--ink-2); font-weight: 600; font-size: 13px; }

.def-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.definition {
  box-shadow: none;
}
.definition h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.definition p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.def-grid .definition:nth-child(1) { background: var(--color-pastel-pink); }
.def-grid .definition:nth-child(2) { background: var(--color-pastel-blue); }
.def-grid .definition:nth-child(3) { background: var(--color-pastel-purple); }
.def-grid .definition:nth-child(4) { background: var(--color-pastel-turquoise); }

.notice {
  background: var(--brand-pink);
  border: 1px solid var(--color-magenta-200);
  color: var(--color-magenta-800);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px 20px; }

/* ----------------------------------------------------------------- console */

.console { display: grid; gap: 16px; margin-bottom: 22px; }

.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.controls form { margin: 0; }
.btn {
  font: 500 14px/1.2 var(--font-sans);
  border-radius: 9999px;
  padding: 10px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out),
              border-color var(--motion-fast) var(--ease-out);
}
.btn-primary {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand); color: #fff; }
.btn-dark { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-dark:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--color-border-secondary);
}
.btn-ghost:hover { background: var(--color-bg-secondary); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-small { padding: 6px 14px; font-size: 13px; font-weight: 500; }

.vertical-progress h2 { margin: 0 0 6px; font-size: 16px; }
.vertical-progress .progress-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 14px;
}
.vertical-progress-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.vertical-progress-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.vertical-progress-list li.is-current {
  border-color: var(--brand);
  box-shadow: inset 3px 0 0 var(--brand);
}
.vertical-progress-list a {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}
.vertical-progress-list a:hover { color: var(--brand); }
.vertical-progress-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.vertical-progress-metrics .bar { height: 8px; }
@media (max-width: 800px) {
  .vertical-progress .progress-row,
  .vertical-progress-list li,
  .vertical-progress-metrics { grid-template-columns: 1fr; }
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress-label strong { color: var(--ink); font-size: 15px; }
.bar {
  height: 12px;
  background: var(--line-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.5s ease;
}
.bar-fill.running { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.72; } }

.activity {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.activity .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  margin-top: 5px;
  flex: 0 0 auto;
}
.activity.live .dot { background: var(--brand); animation: pulse 1.4s ease-in-out infinite; }

.counters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-size: 12px;
  background: var(--brand-pink);
  border: 1px solid var(--color-magenta-200);
  color: var(--color-magenta-800);
  border-radius: 999px;
  padding: 5px 11px;
  text-decoration: none;
}
.chip.plain { background: #fff; border-color: var(--line); color: var(--ink-2); }
.chip:hover { color: var(--brand); }

.stat-row { display: flex; flex-wrap: wrap; gap: 26px; }
.stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted); }
.stat .v { font-size: 19px; font-weight: 700; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.summary-card .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.summary-card .v { font-size: 22px; font-weight: 700; margin: 4px 0; }
.summary-card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }

.action-pill {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--color-bg-tertiary);
  color: var(--ink);
}
.action-pill.escalate { background: var(--color-danger-bg); border-color: var(--color-danger-muted); color: var(--danger); }
.action-pill.engage { background: var(--brand-pink); border-color: var(--color-magenta-200); color: var(--brand); }
.action-pill.expansion { background: var(--color-success-bg); border-color: var(--color-success-muted); color: var(--ok); }
.action-pill.suppress { color: var(--muted); }
.why-now { margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.review-flag { color: var(--danger); font-size: 13px; font-weight: 600; }
.inline-actions { display: flex; gap: 6px; }
.detail-grid h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.detail-grid h3 { font-size: 14px; }

/* ------------------------------------------------------------------ tables */

.table-wrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
}
table.grid thead th {
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
table.grid tbody tr:hover { background: var(--brand-pink); }
table.grid td.num { text-align: right; white-space: nowrap; }
.rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.company { font-weight: 700; }
.company a { color: var(--ink); text-decoration: none; }
.company a:hover { color: var(--brand); text-decoration: underline; }
.company .meta { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 3px; }

.score { font-weight: 700; font-variant-numeric: tabular-nums; }
.score-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.score-bar { width: 46px; height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--brand); }
.cumulative { font-size: 17px; font-weight: 700; color: var(--brand); }
.evidence { min-width: 280px; max-width: 460px; color: var(--ink-2); line-height: 1.45; }

.contact-list { display: grid; gap: 6px; min-width: 220px; }
.contact {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-left: 3px solid var(--brand);
  padding-left: 9px;
  line-height: 1.35;
}
.contact:hover .name { color: var(--brand); text-decoration: underline; }
.contact .name { font-weight: 600; font-size: 13px; }
.contact .role { display: block; font-size: 12px; color: var(--muted); }
.fn {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-pink);
  border-radius: 9999px;
  padding: 2px 8px;
}
.contact-empty { font-size: 13px; color: var(--muted); }
.not-researched { color: var(--muted); font-weight: 500; }
.score-sub { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.cite-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 12px; }
.row-more { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.row-more summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.row-more p { margin: 8px 0 0; }
.timestamp-split { margin-top: 8px !important; max-width: 980px !important; }
.playbook { margin-bottom: 18px; }
.playbook > summary { cursor: pointer; font-weight: 700; font-size: 16px; }
.playbook h3 { margin: 16px 0 8px; font-size: 14px; }
.playbook ul { margin: 0; padding-left: 18px; }
.playbook-scope { color: var(--ink-2); }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.filters label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.filters input, .filters select {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 140px;
}
.filters .showing { color: var(--muted); font-size: 13px; padding-bottom: 8px; }
.pager { display: flex; gap: 16px; align-items: center; padding: 14px 18px; }
.score-breakdown { margin-top: 12px; }
.score-breakdown summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.score-breakdown ul { margin: 8px 0; padding-left: 18px; }
.small { font-size: 12px; color: var(--muted); }

.deck-cell { display: grid; gap: 6px; justify-items: start; min-width: 180px; max-width: 220px; }
.deck-cell .btn { white-space: normal; text-align: left; line-height: 1.25; }
.deck-status { font-size: 12px; color: var(--muted); }
.deck-status.building { color: var(--warn); }
.deck-status.failed { color: var(--danger); }

.reviews { margin-top: 16px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.reviews .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin-bottom: 10px;
}
.review { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.review p { margin: 0; flex: 1 1 100%; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.review p.muted { color: var(--muted); font-size: 12px; }
.review ul { margin: 0; flex: 1 1 100%; padding-left: 18px; font-size: 12px; color: var(--muted); }
.review ul li { margin: 2px 0; }

.empty {
  text-align: center;
  padding: 54px 20px;
  color: var(--muted);
}
.empty h2 { color: var(--ink); font-size: 19px; margin: 0 0 8px; }
.empty p { margin: 0 auto 6px; max-width: 620px; font-size: 14px; }

/* ------------------------------------------------------------------- leads */

.lead-groups { display: grid; gap: 16px; }
.lead-card { padding: 18px 20px; }
.lead-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.lead-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.lead-head h2 .rank { font-size: 13px; margin-right: 8px; }
.lead-head .scores { font-size: 13px; color: var(--muted); }
.lead-head .scores b { color: var(--brand); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.person {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  display: grid;
  gap: 6px;
  color: inherit;
  background: #fff;
}
.person-top { display: flex; gap: 12px; align-items: flex-start; }
.person-top > div { display: grid; gap: 4px; min-width: 0; }
.avatar-slot {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}
.avatar-slot.sm { width: 36px; height: 36px; }
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--brand-pink);
}
.avatar-slot .avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.avatar-slot img.avatar {
  z-index: 1;
  background: var(--card);
}
.avatar.sm { width: 36px; height: 36px; }
.avatar.initials {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--brand);
  font-size: 16px;
  letter-spacing: 0.02em;
}
.avatar.initials.sm { font-size: 12px; }
.person:hover {
  border-color: var(--brand);
  background: var(--brand-pink);
  box-shadow: 0 4px 14px rgba(185, 29, 143, 0.12);
}
.person .fn { justify-self: start; }
.person .name { font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); }
.person .name:hover { color: var(--brand); text-decoration: underline; }
.person .role { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.person .url { font-size: 12px; color: var(--brand); word-break: break-all; }
.person .snippet { font-size: 12px; color: var(--muted); line-height: 1.45; }
.person .phone { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.person .phone:hover { color: var(--brand); }
.person .phone.empty { font-weight: 500; color: var(--muted); }
.person .email { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; word-break: break-all; }
.person .email:hover { color: var(--brand-hover); text-decoration: underline; }
.person .email.empty { font-weight: 500; color: var(--muted); }
.person-mini {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-left: 0;
  padding-left: 0;
}
.person-mini .phone { display: block; font-size: 12px; margin-top: 4px; color: var(--brand); }
.person-mini .email { display: block; font-size: 12px; margin-top: 2px; color: var(--brand); word-break: break-all; }

/* ----------------------------------------------------------------- account */

.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; }
.event {
  border-bottom: 1px solid var(--line-2);
  padding: 14px 0;
}
.event:last-child { border-bottom: 0; }
.event .top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.event .date { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
.event .tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brand-pink);
  color: var(--brand);
  border-radius: 9999px;
  padding: 2px 8px;
}
.event .tag.tier { background: var(--color-bg-tertiary); color: var(--ink-2); }
.event h3 { margin: 6px 0 4px; font-size: 15px; }
.event p { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.event .src { font-size: 12px; color: var(--muted); }
.intel-head { display: flex; gap: 14px; align-items: flex-start; }
.intel-head .avatar-slot { flex: 0 0 56px; }
.intel-block { margin-top: 18px; }
.intel-block h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 18px;
}
.facts {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
  font-size: 14px;
}
.facts dt { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0; }
.facts.compact { margin-top: 8px; }
.facts-sub { margin: 16px 0 8px; font-size: 13px; font-weight: 600; }
.stat-row.compact { margin-top: 14px; }

/* ------------------------------------------------------------------- login */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--paper);
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.login-card .logo {
  height: 28px;
  width: auto;
  display: block;
  margin-bottom: 28px;
}
.login-card h1 { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.login-card p.sub { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field input {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring-brand);
}
.login-error {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-muted);
  color: var(--danger);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}
.login-card .btn { width: 100%; margin-top: 6px; justify-content: center; }

.field span { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field select,
.field textarea,
.prompt-col input[type="text"] {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.field select:focus,
.field textarea:focus,
.prompt-col input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring-brand);
}
.prompt-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  align-items: stretch;
}
.prompt-col {
  flex: 0 0 320px;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.prompt-col .field { margin-bottom: 10px; }
.prompt-col textarea[name="prompt_text"] { min-height: 260px; }
.prompt-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.prompt-index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.seq-picker,
.contact-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.seq-picker .field { margin: 0; min-width: 220px; }
.contact-picks { margin-top: 14px; max-height: 220px; overflow: auto; align-items: start; }
.contact-pick {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 240px;
  max-width: 320px;
  font-size: 13px;
}
.contact-pick small { display: block; color: var(--muted); font-size: 12px; }
.empty-inline { margin: 0; color: var(--muted); font-size: 13px; }
.gen-card { flex-basis: 340px; }
.seq-banner {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--color-warning-bg, #fff6e8);
  color: var(--warn);
  font-size: 13px;
}
.seq-banner.warn {
  background: var(--color-danger-bg, #fdecec);
  color: var(--danger);
}
.linkedin-row { margin-bottom: 12px; }
.linkedin-row .field { margin-bottom: 8px; }
.inline-actions.wrap { flex-wrap: wrap; }
.inline-actions input[type="text"] {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 140px;
}
body:has(.seq-sheet) .main {
  max-width: none;
  padding-left: 20px;
  padding-right: 20px;
}
.seq-toolbar { margin-bottom: 14px; }
.seq-overwrite { display: inline-flex; align-items: center; gap: 8px; }
.seq-hscroll {
  overflow-x: auto;
  overflow-y: hidden;
  height: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  position: sticky;
  top: 60px;
  z-index: 6;
}
.seq-hscroll-inner { height: 1px; }
.seq-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
}
.seq-table { min-width: 1600px; }
.seq-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}
.seq-table .seq-sticky {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  min-width: 220px;
  box-shadow: 8px 0 10px -8px rgba(0, 0, 0, 0.08);
}
.seq-table tbody tr:hover .seq-sticky { background: var(--brand-pink); }
.seq-table .touch-head {
  min-width: 200px;
  max-width: 240px;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  vertical-align: bottom;
}
.seq-table .touch-day {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.seq-table .touch-title {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}
.seq-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.seq-check input { margin-top: 3px; cursor: pointer; }
.seq-person {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.seq-person:hover { color: var(--brand); text-decoration: underline; }
.seq-now { white-space: nowrap; }
.seq-linkedin { min-width: 180px; max-width: 240px; }
.seq-linkedin a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
  font-size: 12px;
}
.seq-li-status {
  margin-top: 6px;
  font: inherit;
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  width: 100%;
}
.seq-cell {
  min-width: 200px;
  max-width: 260px;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}
.seq-subject {
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-align: left;
}
.seq-subject strong { font-weight: 700; }
.seq-copy {
  margin: 0;
  text-align: left;
  white-space: pre-wrap;
}
.seq-id-flag {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
}
.seq-id-flag.warn { color: var(--warn); }
.seq-row-conflict .seq-sticky { box-shadow: inset 3px 0 0 var(--danger); }
.seq-cell.waiting,
.seq-cell.seq-cell-waiting_linkedin { color: var(--warn); }
.seq-status-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--muted);
}
.seq-cell-failed .seq-status-badge,
.seq-cell-blocked_identity_conflict .seq-status-badge,
.seq-row-status.seq-cell-failed { color: var(--danger); }
.seq-cell-waiting_linkedin .seq-status-badge,
.seq-row-status.seq-cell-waiting_linkedin { color: var(--warn); }
.seq-cell-empty .seq-status-badge,
.seq-cell-skipped .seq-status-badge { color: var(--muted); }
.seq-cell.seq-cell-failed,
.seq-cell.seq-cell-blocked_identity_conflict { color: var(--danger); }
.seq-cell.seq-cell-approved { color: var(--ink); }
@media (max-width: 1080px) {
  .progress-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .def-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { flex-direction: column; }
  .data-updated { text-align: left; }
  .topnav a { padding: 8px 10px; font-size: 13px; }
  .filters { flex-direction: column; align-items: stretch; }
  .nav-menu { position: static; box-shadow: none; border: 0; padding: 0; }
}
@media (max-width: 720px) {
  .def-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
}
