
:root {
  --ink: #151713;
  --muted: #696d64;
  --line: #e2e4dc;
  --paper: #f4f5ef;
  --card: #ffffff;
  --rail: #131510;
  --rail-soft: #20231c;
  --lime: #c9f27c;
  --lime-strong: #a9dc48;
  --sun: #f6b84b;
  --blue: #6a8fff;
  --danger: #df6b54;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(106, 143, 255, 0.5);
  outline-offset: 2px;
}

select:focus-visible {
  outline: 3px solid rgba(106, 143, 255, 0.5);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  background:
    radial-gradient(circle at 90% -10%, rgba(201, 242, 124, 0.15), transparent 30%),
    var(--paper);
}

.lead-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: #f4f6ed;
  background:
    linear-gradient(145deg, rgba(201, 242, 124, 0.05), transparent 36%),
    var(--rail);
  border-right: 1px solid #31352b;
  z-index: 20;
}

.brand-lockup {
  height: 83px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid #2b2e26;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid #59604e;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transform: rotate(45deg);
  background: #1c1f19;
}

.brand-mark span {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(201, 242, 124, 0.35);
}

.brand-lockup > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-lockup strong {
  font-size: 20px;
  letter-spacing: -0.7px;
}

.brand-lockup strong span {
  color: var(--lime);
}

.brand-lockup small {
  color: #919888;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.8px;
}

.mobile-close,
.mobile-menu {
  display: none;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid #2b2e26;
}

.mode-switch button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #34382e;
  border-radius: 7px;
  background: transparent;
  color: #858c7e;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.mode-switch button:hover {
  background: #1c1f19;
}

.mode-switch button.active {
  border-color: #647641;
  background: #242a1d;
  color: var(--lime);
}

.mode-switch button span {
  font-size: 12px;
}

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #2b2e26;
}

.portfolio-strip div {
  min-width: 0;
  padding: 14px 10px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-right: 1px solid #2b2e26;
}

.portfolio-strip div:last-child {
  border-right: 0;
}

.portfolio-strip strong {
  font-family: var(--font-geist-mono), monospace;
  font-size: 16px;
}

.portfolio-strip span {
  color: #838a7b;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-box {
  margin: 18px 15px 10px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #373b30;
  border-radius: 9px;
  background: #1a1c17;
  color: #79806f;
}

.search-box span {
  font-size: 20px;
  line-height: 1;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #edf0e6;
  font-size: 12px;
}

.search-box input::placeholder {
  color: #70776a;
}

.filter-row {
  display: flex;
  gap: 5px;
  padding: 0 15px 13px;
}

.filter-row button {
  border: 1px solid #363a30;
  border-radius: 20px;
  padding: 6px 10px;
  background: transparent;
  color: #858c7e;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.filter-row button.active {
  color: #151713;
  background: var(--lime);
  border-color: var(--lime);
}

.lead-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 8px 12px;
  scrollbar-width: thin;
  scrollbar-color: #464c3d transparent;
}

.pipeline-rail-stages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px 16px;
}

.pipeline-rail-stages > small {
  display: block;
  margin-bottom: 11px;
  color: #7c8475;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.pipeline-rail-stages > div {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #292d24;
  color: #cbd1c3;
  font-size: 10px;
}

.pipeline-rail-stages > div strong {
  min-width: 25px;
  padding: 3px 6px;
  border-radius: 12px;
  background: #292e24;
  color: var(--lime);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  text-align: center;
}

.pipeline-rail-stages > p {
  margin: 20px 0 0;
  color: #737b6e;
  font-size: 9px;
  line-height: 1.55;
}

.lead-item {
  position: relative;
  width: 100%;
  min-height: 77px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #252820;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.lead-item:hover {
  background: #1a1d17;
}

.lead-item.active {
  background: #23271f;
  box-shadow: inset 3px 0 0 var(--lime);
}

.lead-avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #30352a;
  color: #cfd5c4;
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
}

.lead-item.active .lead-avatar {
  color: #14160f;
  background: var(--lime);
}

.lead-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-meta strong {
  overflow: hidden;
  color: #ecf0e6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-meta > small {
  overflow: hidden;
  color: #787f71;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-meta > span {
  display: flex;
  gap: 5px;
}

.lead-meta em {
  padding: 2px 5px;
  border: 1px solid #383d31;
  border-radius: 3px;
  color: #8d9484;
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.lead-meta em.tier-one {
  color: var(--lime);
  border-color: #5c7339;
}

.lead-meta em.live-profile-badge {
  color: #dfffa7;
  border-color: #66883d;
  background: #2d3a22;
}

.lead-item > b {
  color: #737a6d;
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 500;
  text-align: right;
}

.lead-item.active > b {
  color: var(--lime);
}

.empty-state {
  padding: 20px;
  color: #747b6d;
  font-size: 11px;
  text-align: center;
}

.monid-rail {
  min-height: 64px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border-top: 1px solid #31352b;
  background: #181b15;
}

.monid-pulse {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201, 242, 124, 0.08), 0 0 15px rgba(201, 242, 124, 0.45);
}

.monid-rail div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.monid-rail strong {
  font-size: 10px;
}

.monid-rail small {
  color: #767e6f;
  font-size: 8px;
}

.rail-status {
  color: #8a9183;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
}

.workspace {
  min-width: 0;
  padding-bottom: 60px;
}

.topbar {
  position: sticky;
  top: 0;
  height: 83px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 245, 239, 0.92);
  backdrop-filter: blur(16px);
  z-index: 10;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #8a8e84;
  font-size: 11px;
}

.breadcrumb b {
  color: #c2c5bc;
}

.breadcrumb strong {
  overflow: hidden;
  color: #32352e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.freshness {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 7px;
  color: #747970;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.freshness i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70b36f;
}

.freshness.live {
  color: #54693b;
  font-weight: 700;
}

.freshness.live i {
  background: var(--lime-strong);
  box-shadow: 0 0 0 4px rgba(169, 220, 72, 0.13);
}

.ghost-button,
.primary-button,
.approve-button {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  cursor: pointer;
}

.ghost-button {
  border: 1px solid #d4d7cd;
  background: rgba(255,255,255,0.65);
  color: #454940;
}

.ghost-button:hover {
  background: #fff;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #151713;
  background: #151713;
  color: #f4f5ef;
}

.primary-button:hover {
  background: #282c23;
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.button-spark {
  color: var(--lime);
  font-size: 14px;
}

.lead-hero {
  min-height: 152px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 34px 24px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.2)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(30,34,27,0.027) 80px);
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.hero-kicker span {
  padding: 4px 7px;
  border: 1px solid #d6d9cf;
  border-radius: 4px;
  color: #666b61;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-kicker span.warm {
  color: #6c4a09;
  border-color: #eac16e;
  background: #fff5dc;
}

.hero-main h1 {
  margin: 0;
  font-size: clamp(31px, 4vw, 49px);
  line-height: 0.95;
  letter-spacing: -2.3px;
}

.hero-main p {
  margin: 12px 0 0;
  color: #747970;
  font-size: 12px;
}

.hero-scores {
  display: flex;
  border: 1px solid #d9dcd2;
  border-radius: 10px;
  background: rgba(255,255,255,0.65);
  box-shadow: 0 12px 40px rgba(36, 40, 31, 0.04);
}

.hero-scores > div {
  min-width: 104px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: center;
  padding: 17px 14px;
  border-right: 1px solid #e0e2da;
}

.hero-scores > div:last-child {
  border-right: 0;
}

.hero-scores small {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: #868b81;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-scores strong {
  font-family: var(--font-geist-mono), monospace;
  font-size: 22px;
}

.hero-scores span {
  color: #969b91;
  font-size: 8px;
}

.tabbar {
  min-height: 52px;
  display: flex;
  gap: 27px;
  align-items: flex-end;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.42);
}

.tabbar button {
  position: relative;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #858980;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
}

.tabbar button.active {
  color: #1b1e18;
}

.tabbar button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--lime-strong);
}

.research-drawer {
  margin: 20px 34px 0;
  padding: 16px 18px;
  border: 1px solid #ccd2c0;
  border-radius: 10px;
  background: #faffee;
  box-shadow: 0 12px 35px rgba(59, 68, 44, 0.05);
}

.research-drawer.needs-key,
.research-drawer.error {
  border-color: #e7c382;
  background: #fff9ed;
}

.research-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.research-drawer-head div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.research-drawer-head strong {
  font-size: 12px;
}

.research-drawer-head > span {
  color: #788168;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: 1px;
}

.research-drawer > p {
  margin: 9px 0 0 17px;
  color: #62695b;
  font-size: 11px;
}

.research-drawer > a {
  display: inline-block;
  margin: 12px 0 0 17px;
  color: #66501e;
  font-size: 10px;
  font-weight: 700;
}

.tool-plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.tool-plan > div {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #dce2d2;
  border-radius: 6px;
  background: rgba(255,255,255,0.72);
}

.tool-plan > div > span {
  color: #93a66e;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.tool-plan > div div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tool-plan strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: capitalize;
}

.tool-plan small {
  overflow: hidden;
  color: #858b7d;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-plan b {
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.approve-button {
  margin-top: 12px;
  border: 1px solid #303625;
  background: #303625;
  color: #f6faee;
}

.run-results {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.run-results > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  font-size: 9px;
}

.run-results span {
  padding: 3px 6px;
  border-radius: 4px;
  background: #f6e0db;
  color: #9b4a3a;
  text-align: center;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.run-results span.done {
  background: #e4f2d2;
  color: #4f702d;
}

.run-results small {
  color: #858b7d;
}

.content-area {
  padding: 22px 34px 0;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.58fr);
  gap: 14px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 11px 30px rgba(25, 29, 22, 0.025);
}

.wide-card {
  grid-column: 1 / -1;
}

.card-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7df;
  color: #747a70;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.card-eyebrow span {
  color: #a3aa9c;
  font-family: var(--font-geist-mono), monospace;
}

.signal-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.signal-layout > div {
  min-width: 0;
  padding: 25px 26px;
}

.signal-layout > div:first-child {
  border-right: 1px solid #e5e7df;
}

.signal-layout small,
.entry-callout > span {
  color: #969c91;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.signal-layout h2 {
  max-width: 760px;
  margin: 9px 0 11px;
  font-size: clamp(19px, 2.3vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.signal-layout > div:first-child p {
  margin: 0;
  color: #70766c;
  line-height: 1.55;
}

.entry-callout {
  position: relative;
  background:
    linear-gradient(135deg, rgba(201, 242, 124, 0.2), transparent 56%),
    #f9fbf4;
}

.entry-callout::after {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 22px;
  height: 22px;
  border-top: 1px solid #b8c4a2;
  border-right: 1px solid #b8c4a2;
  content: "";
}

.entry-callout h3 {
  margin: 10px 0 8px;
  font-size: 16px;
}

.entry-callout p {
  margin: 0;
  color: #6f766a;
  font-size: 11px;
  line-height: 1.55;
}

.entry-callout > div {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #dee4d5;
  color: #42493d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.brief-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #293019;
  font-size: 11px;
}

.fact-stack {
  display: grid;
  grid-template-columns: 1fr;
}

.fact-stack > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 78px;
  justify-content: center;
  padding: 15px 18px;
  border-bottom: 1px solid #e7e9e2;
}

.fact-stack > div:last-child {
  border-bottom: 0;
}

.fact-stack small {
  color: #90958c;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fact-stack strong {
  padding-right: 65px;
  font-size: 12px;
  line-height: 1.4;
}

.fact-stack em {
  position: absolute;
  top: 16px;
  right: 14px;
  padding: 3px 5px;
  border: 1px solid #e1c79e;
  border-radius: 3px;
  color: #957039;
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}

.fact-stack em.verified {
  border-color: #c8dcab;
  color: #5c793c;
}

.ai-summary {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px;
}

.score-ring {
  --score: 0deg;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--lime-strong) 0 var(--score), #e7e9e1 var(--score) 360deg);
}

.score-ring::before {
  grid-area: 1 / 1;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.score-ring > div {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-ring strong {
  font-family: var(--font-geist-mono), monospace;
  font-size: 21px;
}

.score-ring span {
  color: #8c9287;
  font-size: 7px;
  text-transform: uppercase;
}

.ai-summary h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.ai-summary p {
  margin: 0;
  color: #72776e;
  font-size: 10px;
  line-height: 1.5;
}

.readiness-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  padding: 2px 18px 18px;
}

.readiness-row {
  min-width: 0;
}

.readiness-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #777c73;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.readiness-label strong {
  color: #373b34;
  font-family: var(--font-geist-mono), monospace;
}

.bar-track {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8eae4;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7fa63d, var(--lime-strong));
}

.adoption-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 18px;
  border-top: 1px solid #e4e6df;
  background: #f8f9f5;
}

.adoption-note span {
  color: #94998f;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.adoption-note strong {
  font-size: 9px;
}

.referral-card {
  padding-bottom: 20px;
}

.referral-score {
  display: flex;
  align-items: baseline;
  padding: 17px 18px 0;
}

.referral-score strong {
  font-family: var(--font-geist-mono), monospace;
  font-size: 42px;
  letter-spacing: -2px;
}

.referral-score span {
  color: #8f958a;
  font-size: 9px;
}

.referral-card h3 {
  margin: 5px 18px 7px;
  font-size: 12px;
}

.referral-card > p {
  margin: 0 18px;
  color: #73786e;
  font-size: 10px;
  line-height: 1.5;
}

.signal-dots {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin: 17px 18px 0;
}

.signal-dots span {
  height: 8px;
  border-radius: 2px;
  background: #e5e7e0;
}

.signal-dots span.active {
  background: var(--sun);
}

.mesh-card {
  background:
    linear-gradient(120deg, rgba(201, 242, 124, 0.05), transparent),
    #1a1d17;
  color: #f1f3eb;
  border-color: #2e3328;
}

.mesh-card .card-eyebrow {
  color: #8c9584;
  border-color: #30342b;
}

.mesh-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mesh-grid > div {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-right: 1px solid #30342b;
}

.mesh-grid > div:last-child {
  border-right: 0;
}

.mesh-grid > div > span {
  margin-bottom: 27px;
  color: var(--lime);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.mesh-grid strong {
  font-size: 12px;
}

.mesh-grid small {
  margin: 5px 0 12px;
  color: #858e7e;
  font-size: 8px;
}

.mesh-grid em {
  margin-top: auto;
  color: #bbc4b1;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
  font-style: normal;
}

.source-card > a,
.source-card > .evidence-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-bottom: 1px solid #e7e9e2;
  color: inherit;
  text-decoration: none;
}

.source-card > a:hover {
  background: #fbfcf9;
}

.source-card > a > span,
.source-card > .evidence-row > span {
  color: #9ba196;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.coverage-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid #dfe8d4;
}

.coverage-strip > div {
  padding: 11px 15px;
  border-right: 1px solid #dfe8d4;
}

.coverage-strip > div:last-child {
  border-right: 0;
}

.coverage-strip small,
.coverage-strip strong {
  display: block;
}

.coverage-strip small {
  color: #77816d;
  font-size: 7px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.coverage-strip strong {
  margin-top: 4px;
  font-size: 11px;
}

.live-evidence-card {
  border-color: #c8d7ae;
  background:
    linear-gradient(115deg, rgba(201, 242, 124, 0.14), transparent 45%),
    rgba(255,255,255,0.82);
}

.evidence-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.evidence-highlight-grid > div {
  min-height: 82px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  padding: 15px 17px;
  border-right: 1px solid #e1e7d8;
  border-bottom: 1px solid #e1e7d8;
}

.evidence-highlight-grid > div:nth-child(3n) {
  border-right: 0;
}

.evidence-highlight-grid span {
  color: #8fa56c;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.evidence-highlight-grid strong {
  font-size: 10px;
  line-height: 1.45;
}

.live-evidence-card > p {
  margin: 0;
  padding: 11px 15px;
  color: #768069;
  background: #f5f9ee;
  font-size: 8px;
}

.score-explanation-card {
  background: #fbfcf8;
}

.score-explanation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.score-explanation-grid > article {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid #e3e6dd;
}

.score-explanation-grid > article:last-child {
  border-right: 0;
}

.score-explanation-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.score-explanation-head > div {
  display: flex;
  align-items: baseline;
}

.score-explanation-head strong {
  font-family: var(--font-geist-mono), monospace;
  font-size: 30px;
  letter-spacing: -1.5px;
}

.score-explanation-head span {
  color: #969c91;
  font-size: 8px;
}

.score-explanation-head h3 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-explanation-grid > article > p {
  min-height: 58px;
  margin: 12px 0 16px;
  color: #697064;
  font-size: 10px;
  line-height: 1.55;
}

.score-factor-list {
  border-top: 1px solid #e4e7df;
}

.score-factor-list > div {
  position: relative;
  padding: 13px 0 12px;
  border-bottom: 1px solid #e4e7df;
}

.score-factor-list > div > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.score-factor-list strong {
  font-size: 9px;
}

.score-factor-list span {
  flex: 0 0 auto;
  color: #52653a;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.score-factor-list p {
  margin: 5px 0 7px;
  color: #7a8076;
  font-size: 8px;
  line-height: 1.45;
}

.score-factor-list em {
  display: inline-block;
  padding: 3px 5px;
  border-radius: 3px;
  background: #eef2e7;
  color: #657357;
  font-size: 6px;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-factor-list em.confidence-low {
  background: #f5eee3;
  color: #866940;
}

.score-formula,
.score-blind-spots {
  margin-top: 14px;
  padding: 12px;
  border-radius: 7px;
  background: #f0f3ea;
}

.score-blind-spots {
  background: #f8f1e9;
}

.score-formula small,
.score-blind-spots small {
  color: #8e9588;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.score-formula p,
.score-blind-spots p {
  margin: 6px 0 0;
  color: #697064;
  font-size: 8px;
  line-height: 1.5;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.systems-grid article {
  min-height: 132px;
  padding: 17px;
  border-right: 1px solid #e4e7df;
  border-bottom: 1px solid #e4e7df;
}

.systems-grid article:nth-child(4n) {
  border-right: 0;
}

.systems-grid span {
  color: #8b9286;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.systems-grid h3 {
  margin: 8px 0;
  font-size: 14px;
}

.systems-grid p {
  margin: 0;
  color: #737a6f;
  font-size: 8px;
  line-height: 1.5;
}

.systems-grid a {
  display: inline-block;
  margin-top: 9px;
  color: #5f763e;
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
}

.systems-caveat {
  margin: 0;
  padding: 12px 15px;
  background: #f7f8f3;
  color: #7c8278;
  font-size: 8px;
  line-height: 1.5;
}

.source-card a div,
.source-card .evidence-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.source-card a strong,
.source-card .evidence-row strong {
  font-size: 10px;
}

.source-card a small,
.source-card .evidence-row small {
  color: #83887f;
  font-size: 9px;
}

.source-card a b,
.source-card .evidence-row b {
  color: #72786d;
}

.hypothesis-note {
  margin: 0;
  padding: 12px 15px;
  color: #868b82;
  background: #f8f9f5;
  font-size: 9px;
  line-height: 1.5;
}

.power-map-header {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.power-map-header > div:first-child span,
.meeting-title span,
.objection-hero > span {
  color: #8d9388;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.power-map-header h2 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: -0.6px;
}

.power-map-header > div:first-child > p {
  max-width: 680px;
  margin: 8px 0 0;
  color: #7d8379;
  font-size: 9px;
  line-height: 1.5;
}

.sequence-line {
  display: flex;
  align-items: center;
}

.sequence-line span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd4c8;
  border-radius: 50%;
  color: #838a7e;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.sequence-line span.active {
  border-color: var(--lime-strong);
  background: var(--lime);
  color: #202519;
}

.sequence-line i {
  width: 28px;
  height: 1px;
  background: #d9ddd4;
}

.stakeholder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.stakeholder-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.stakeholder-card.role-1 {
  border-top: 4px solid var(--lime-strong);
}

.stakeholder-card.role-2 {
  border-top: 4px solid var(--sun);
}

.stakeholder-card.role-3 {
  border-top: 4px solid var(--blue);
}

.stakeholder-card.role-4 {
  border-top: 4px solid #a88adf;
}

.stakeholder-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stakeholder-top span {
  color: #a2a79e;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
}

.stakeholder-top em {
  padding: 4px 6px;
  border-radius: 4px;
  background: #f1f3ed;
  color: #7a8075;
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}

.stakeholder-card h3 {
  margin: 28px 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.stakeholder-card h4 {
  min-height: 44px;
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.stakeholder-card > p {
  margin: 0;
  color: #72776e;
  font-size: 10px;
  line-height: 1.6;
}

.stakeholder-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid #e5e7e0;
}

.stakeholder-card > div:last-child small {
  color: #9a9f96;
  font-size: 7px;
  letter-spacing: 1px;
}

.stakeholder-card > div:last-child strong {
  font-size: 9px;
  line-height: 1.45;
}

.named-contact-card {
  min-height: 540px;
}

.named-contact-card > h3 {
  margin-top: 22px;
}

.contact-confidence.verified {
  background: #e5f1d7;
  color: #4e6b2f;
}

.contact-confidence.unresolved {
  background: #f4e8df;
  color: #8a6142;
}

.contact-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.contact-identity > span {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3e2;
  color: #5c7638;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
}

.contact-identity h4 {
  min-height: 0;
  margin: 0 0 3px;
  font-size: 15px;
}

.contact-identity p {
  margin: 0;
  color: #757b71;
  font-size: 8px;
  line-height: 1.35;
}

.named-contact-card .contact-rationale {
  min-height: 60px;
  margin: 0 0 13px;
  color: #72776e;
  font-size: 9px;
  line-height: 1.5;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px;
  border: 1px solid #e3e7dd;
  border-radius: 7px;
  background: #f9faf6;
}

.contact-channels a,
.contact-channels span {
  overflow-wrap: anywhere;
  color: #5d6656;
  font-size: 8px;
  text-decoration: none;
}

.contact-channels a {
  color: #3e6725;
  font-weight: 700;
}

.contact-enrichment {
  margin-top: 11px;
}

.contact-enrichment button {
  width: 100%;
  min-height: 34px;
  padding: 8px;
  border: 1px solid #bfda91;
  border-radius: 6px;
  background: #ecf8d8;
  color: #3e5727;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.contact-enrichment button:disabled {
  border-color: #dfe2da;
  background: #f0f2ed;
  color: #979d92;
  cursor: not-allowed;
}

.contact-enrichment small,
.contact-enrichment p {
  display: block;
  margin: 6px 0 0;
  color: #7d8478;
  font-size: 7px;
  line-height: 1.4;
}

.contact-enrichment p.contact-error {
  color: #9b4938;
}

.verified-contact-note {
  margin-top: 11px;
  padding: 9px;
  border-radius: 6px;
  background: #e8f3dc;
  color: #547134;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.verified-contact-note button {
  display: block;
  margin: 7px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #657657;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.verified-contact-note p {
  margin: 5px 0 0;
  font-weight: 500;
}

.verified-contact-note small {
  display: block;
  margin-top: 6px;
  color: #657657;
  font-size: 7px;
  font-weight: 500;
  line-height: 1.45;
}

.named-contact-card > .contact-validation {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #e5e7e0;
}

.coalition-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;
  gap: 25px;
  margin-top: 14px;
  padding: 20px 24px;
  border: 1px solid #2c3127;
  border-radius: 10px;
  background: #181b16;
  color: #eef1e8;
}

.coalition-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.coalition-card > div > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.coalition-card small {
  color: #7f8978;
  font-size: 7px;
  letter-spacing: 1px;
}

.coalition-card strong {
  font-size: 10px;
}

.coalition-card p {
  margin: 0;
  color: #9ea798;
  font-size: 10px;
  line-height: 1.5;
}

.meeting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 14px;
}

.meeting-brief {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.meeting-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.meeting-title h2 {
  margin: 5px 0 2px;
  font-size: 29px;
  letter-spacing: -1px;
}

.meeting-title p {
  margin: 0;
  color: #888e84;
  font-size: 9px;
}

.meeting-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 24px 0;
  padding: 14px 16px;
  border: 1px solid #d4dfc2;
  border-radius: 8px;
  background: #f6faef;
}

.meeting-banner > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meeting-banner small {
  color: #879475;
  font-size: 7px;
  letter-spacing: 1px;
}

.meeting-banner strong {
  font-size: 11px;
}

.brief-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.brief-columns > div {
  min-height: 150px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.brief-columns > div:last-child {
  border-right: 0;
}

.brief-columns h3,
.question-list h3 {
  margin: 0 0 13px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.brief-columns p {
  display: flex;
  gap: 8px;
  margin: 0 0 9px;
  color: #6f756b;
  font-size: 9px;
  line-height: 1.4;
}

.brief-columns p span {
  color: #739d34;
  font-family: var(--font-geist-mono), monospace;
}

.brief-columns .risk-column p span {
  color: var(--danger);
}

.question-list {
  margin: 20px 24px 24px;
}

.question-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 54px;
  border-top: 1px solid var(--line);
}

.question-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.question-list span {
  color: #9da399;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.question-list p {
  margin: 0;
  font-size: 11px;
}

.meeting-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meeting-side textarea {
  width: calc(100% - 30px);
  min-height: 270px;
  margin: 15px;
  padding: 13px;
  resize: vertical;
  border: 1px solid #dfe2d9;
  border-radius: 7px;
  outline: none;
  background: #fafbf8;
  color: #30342e;
  font-size: 11px;
  line-height: 1.55;
}

.meeting-side textarea:focus {
  border-color: #a6bb81;
  background: #fff;
}

.meeting-side .card > small {
  display: block;
  margin: -5px 15px 13px;
  color: #9ca197;
  font-size: 8px;
}

.next-step-card {
  padding-bottom: 12px;
}

.next-step-card label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  color: #666c62;
  font-size: 10px;
}

.next-step-card input {
  accent-color: var(--lime-strong);
}

.objection-hero {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 38px;
  border: 1px solid #2f3329;
  border-radius: 11px;
  color: #f3f5ee;
  background:
    radial-gradient(circle at 87% 10%, rgba(246, 184, 75, 0.2), transparent 22%),
    #191c17;
  overflow: hidden;
}

.objection-hero::after {
  position: absolute;
  width: 190px;
  height: 190px;
  right: -60px;
  bottom: -90px;
  border: 1px solid rgba(201, 242, 124, 0.25);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 40px rgba(201, 242, 124, 0.02), 0 0 0 80px rgba(201, 242, 124, 0.015);
}

.objection-hero h2 {
  position: relative;
  max-width: 900px;
  margin: 12px 0 16px;
  font-size: clamp(24px, 4vw, 43px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  z-index: 1;
}

.objection-hero p {
  margin: 0;
  color: #99a092;
  font-size: 10px;
}

.response-framework {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1fr;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.response-framework > div {
  min-height: 210px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.response-framework > div:last-child {
  border-right: 0;
}

.response-framework span {
  color: #9ca397;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.response-framework h3 {
  margin: 27px 0 10px;
  font-size: 17px;
}

.response-framework p {
  margin: 0;
  color: #696f65;
  font-size: 11px;
  line-height: 1.65;
}

.battlecard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.battlecard-grid ul {
  margin: 0;
  padding: 16px 22px 20px 35px;
}

.battlecard-grid li {
  margin: 0 0 10px;
  padding-left: 4px;
  color: #62685e;
  font-size: 10px;
  line-height: 1.5;
}

.dont-list li::marker {
  color: var(--danger);
}

.one-line-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 14px;
  padding: 20px 24px;
  border: 1px solid #cad8b4;
  border-radius: 9px;
  background: #f5faec;
}

.one-line-close small {
  color: #849571;
  font-size: 8px;
  letter-spacing: 1px;
}

.one-line-close strong {
  font-size: 17px;
  letter-spacing: -0.3px;
}

.pipeline-workspace {
  min-height: 100vh;
  padding-bottom: 55px;
  background:
    radial-gradient(circle at 95% 0, rgba(201, 242, 124, 0.14), transparent 25%),
    var(--paper);
}

.pipeline-topbar {
  min-height: 195px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 40px 31px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(30,34,27,0.025) 80px),
    rgba(255,255,255,0.36);
}

.pipeline-topbar > div > span,
.board-heading > div > span {
  color: #858d7d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.pipeline-topbar h1 {
  margin: 9px 0 8px;
  font-size: clamp(34px, 4.4vw, 57px);
  line-height: 0.95;
  letter-spacing: -2.5px;
}

.pipeline-topbar p {
  max-width: 730px;
  margin: 0;
  color: #737970;
  font-size: 11px;
  line-height: 1.55;
}

.manual-add-button {
  flex: 0 0 auto;
}

.manual-add-button > span {
  color: var(--lime);
  font-size: 15px;
}

.pipeline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 34px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.72);
  overflow: hidden;
}

.pipeline-stats > div {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
}

.pipeline-stats > div:last-child {
  border-right: 0;
}

.pipeline-stats small {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: #8e948a;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pipeline-stats strong {
  font-family: var(--font-geist-mono), monospace;
  font-size: 23px;
}

.pipeline-stats span {
  align-self: center;
  margin-left: 10px;
  color: #858b81;
  font-size: 8px;
}

.generator-panel {
  margin: 14px 34px 0;
  padding: 22px;
  border: 1px solid #30352a;
  border-radius: 11px;
  color: #edf1e8;
  background:
    radial-gradient(circle at 90% 0, rgba(201, 242, 124, 0.15), transparent 28%),
    #181b16;
  box-shadow: 0 18px 45px rgba(20, 23, 18, 0.08);
}

.generator-copy {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.generator-copy .monid-pulse {
  margin-top: 5px;
}

.generator-copy small {
  color: #7f8977;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.generator-copy h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.generator-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.5fr auto;
  gap: 8px;
  margin-top: 20px;
}

.generator-form label,
.manual-grid label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.generator-form label > span {
  color: #858d7e;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.generator-form input,
.generator-form select {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  border: 1px solid #3c4235;
  border-radius: 7px;
  outline: none;
  background: #22261e;
  color: #edf1e8;
  font-size: 10px;
}

.generator-form input:focus,
.generator-form select:focus {
  border-color: #769244;
}

.generator-button {
  align-self: end;
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid var(--lime);
  border-radius: 7px;
  background: var(--lime);
  color: #20251a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.generator-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.generation-approval {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #3c4631;
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}

.generation-approval.error {
  border-color: #754d3f;
}

.generation-approval > div:first-child {
  min-width: 0;
}

.generation-approval > div:first-child > small {
  color: #869177;
  font-size: 7px;
  letter-spacing: 1px;
}

.generation-approval > div:first-child > strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generation-approval p {
  margin: 4px 0 0;
  color: #91998c;
  font-size: 9px;
}

.plan-price {
  min-width: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding-left: 18px;
  border-left: 1px solid #3a4034;
}

.plan-price span {
  grid-column: 1 / -1;
  color: var(--lime);
  font-size: 6px;
  letter-spacing: 1px;
}

.plan-price strong {
  margin-top: 4px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 16px;
}

.plan-price small {
  margin-left: 3px;
  color: #7c8476;
  font-size: 7px;
}

.pipeline-board-section {
  margin-top: 28px;
}

.board-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 0 34px 14px;
}

.board-heading h2 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.6px;
}

.board-heading > p {
  max-width: 420px;
  margin: 0;
  color: #858b81;
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

.pipeline-error {
  margin: 0 34px 12px;
  padding: 10px 12px;
  border: 1px solid #e2b39e;
  border-radius: 7px;
  background: #fff2ec;
  color: #8d4934;
  font-size: 10px;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(238px, 1fr));
  gap: 10px;
  padding: 0 34px 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.pipeline-column {
  min-height: 390px;
  border: 1px solid #dde0d7;
  border-radius: 9px;
  background: rgba(255,255,255,0.46);
}

.pipeline-column > header {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid #e0e3da;
}

.pipeline-column > header > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pipeline-column > header span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa092;
}

.stage-researching > header span {
  background: var(--blue);
}

.stage-review > header span {
  background: var(--sun);
}

.stage-qualified > header span,
.stage-added > header span {
  background: var(--lime-strong);
}

.stage-rejected > header span {
  background: var(--danger);
}

.pipeline-column > header strong {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pipeline-column > header b {
  min-width: 23px;
  padding: 3px 6px;
  border-radius: 12px;
  background: #eceee8;
  color: #747b6f;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  text-align: center;
}

.pipeline-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px;
}

.candidate-card {
  padding: 13px;
  border: 1px solid #e0e3da;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 23px rgba(32, 36, 28, 0.035);
}

.candidate-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.candidate-source span {
  color: #7a8b63;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.9px;
}

.candidate-source b {
  color: #676e62;
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
}

.candidate-card h3 {
  margin: 12px 0 7px;
  font-size: 14px;
  letter-spacing: -0.3px;
}

.candidate-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #72786d;
  font-size: 9px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.candidate-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eceee8;
}

.candidate-meta span {
  overflow: hidden;
  color: #8b9187;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-actions {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.candidate-actions button {
  min-height: 30px;
  flex: 1;
  padding: 0 8px;
  border: 1px solid #2f342a;
  border-radius: 5px;
  background: #2f342a;
  color: #f1f4ec;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.candidate-actions button.quiet-action {
  flex: 0 0 auto;
  border-color: #daddd5;
  background: transparent;
  color: #8a9086;
}

.candidate-actions button:disabled {
  opacity: 0.55;
}

.empty-lane {
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px dashed #d9ddd3;
  border-radius: 7px;
  color: #a1a69d;
  font-size: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 17, 13, 0.67);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.manual-modal {
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #daddd4;
  border-radius: 12px;
  background: #fbfcf8;
  box-shadow: 0 30px 100px rgba(0,0,0,0.28);
}

.manual-modal-head {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.manual-modal-head span {
  color: #8b9187;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.manual-modal-head h2 {
  margin: 6px 0 0;
  font-size: 27px;
  letter-spacing: -0.9px;
}

.manual-modal-head button {
  width: 34px;
  height: 34px;
  border: 1px solid #d8dbd2;
  border-radius: 50%;
  background: transparent;
  color: #6f756b;
  font-size: 20px;
  cursor: pointer;
}

.manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px 24px;
}

.manual-grid label > span {
  color: #777e72;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.manual-grid input,
.manual-grid textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid #dadfd4;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: #2d312a;
  font-size: 10px;
}

.manual-grid textarea {
  min-height: 80px;
  resize: vertical;
}

.manual-grid input:focus,
.manual-grid textarea:focus {
  border-color: #9ebd69;
}

.manual-wide {
  grid-column: 1 / -1;
}

.manual-error {
  margin: 0 24px 10px;
  color: #a34836;
  font-size: 10px;
}

.manual-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: #f4f6ef;
}

.manual-footer p {
  max-width: 440px;
  margin: 0;
  color: #7b8176;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .freshness {
    display: none;
  }

  .stakeholder-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stakeholder-card {
    min-height: 315px;
  }

  .mesh-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .systems-grid article {
    border-right: 1px solid #e4e7df;
  }

  .systems-grid article:nth-child(2n) {
    border-right: 0;
  }

  .mesh-grid > div:nth-child(2) {
    border-right: 0;
  }

  .mesh-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid #30342b;
  }

  .generator-form {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .generator-button {
    grid-column: 2 / -1;
  }

  .pipeline-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-stats > div:nth-child(2) {
    border-right: 0;
  }

  .pipeline-stats > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .lead-rail {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: min(340px, 92vw);
    transition: transform 180ms ease;
    box-shadow: 25px 0 60px rgba(0,0,0,0.26);
  }

  .lead-rail.mobile-open {
    transform: translateX(0);
  }

  .mobile-close {
    display: block;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #d8ddd0;
    font-size: 22px;
  }

  .mobile-menu {
    display: block;
    border: 0;
    background: transparent;
    color: #3f443b;
    font-size: 18px;
  }

  .topbar {
    height: 70px;
    padding: 0 18px;
  }

  .breadcrumb {
    margin-right: auto;
  }

  .lead-hero {
    padding: 25px 22px;
  }

  .hero-scores {
    display: none;
  }

  .tabbar,
  .content-area {
    padding-right: 22px;
    padding-left: 22px;
  }

  .research-drawer {
    margin-right: 22px;
    margin-left: 22px;
  }

  .meeting-grid {
    grid-template-columns: 1fr;
  }

  .meeting-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pipeline-topbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .pipeline-stats,
  .generator-panel {
    margin-right: 22px;
    margin-left: 22px;
  }

  .pipeline-board {
    padding-right: 22px;
    padding-left: 22px;
  }

  .board-heading {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 680px) {
  .top-actions .ghost-button {
    display: none;
  }

  .primary-button {
    min-width: 42px;
    padding: 0 12px;
    font-size: 0;
  }

  .button-spark {
    font-size: 16px;
  }

  .breadcrumb span,
  .breadcrumb b {
    display: none;
  }

  .lead-hero {
    min-height: 135px;
  }

  .hero-main h1 {
    font-size: 34px;
    line-height: 1;
  }

  .tabbar {
    gap: 19px;
    overflow-x: auto;
  }

  .tabbar button {
    flex: 0 0 auto;
    font-size: 9px;
  }

  .content-area {
    padding-top: 14px;
  }

  .intelligence-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }

  .signal-layout {
    grid-template-columns: 1fr;
  }

  .signal-layout > div:first-child {
    border-right: 0;
    border-bottom: 1px solid #e5e7df;
  }

  .readiness-grid {
    grid-template-columns: 1fr;
  }

  .mesh-grid,
  .tool-plan,
  .coverage-strip,
  .evidence-highlight-grid,
  .score-explanation-grid,
  .systems-grid,
  .stakeholder-grid,
  .brief-columns,
  .battlecard-grid,
  .meeting-side {
    grid-template-columns: 1fr;
  }

  .mesh-grid > div {
    border-right: 0;
    border-bottom: 1px solid #30342b;
  }

  .evidence-highlight-grid > div {
    border-right: 0;
  }

  .score-explanation-grid > article,
  .systems-grid article {
    border-right: 0;
    border-bottom: 1px solid #e4e7df;
  }

  .stakeholder-card {
    min-height: 290px;
  }

  .coalition-card {
    grid-template-columns: 1fr;
  }

  .brief-columns > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .power-map-header,
  .meeting-title,
  .one-line-close {
    align-items: flex-start;
    flex-direction: column;
  }

  .sequence-line {
    display: none;
  }

  .meeting-banner,
  .brief-columns,
  .question-list {
    margin-right: 15px;
    margin-left: 15px;
  }

  .response-framework {
    grid-template-columns: 1fr;
  }

  .response-framework > div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .run-results > div {
    grid-template-columns: 70px 1fr;
  }

  .run-results small {
    grid-column: 2;
  }

  .pipeline-topbar {
    min-height: 210px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 26px;
  }

  .pipeline-topbar h1 {
    font-size: 39px;
  }

  .pipeline-stats {
    grid-template-columns: 1fr;
  }

  .pipeline-stats > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pipeline-stats > div:last-child {
    border-bottom: 0;
  }

  .generator-form,
  .generation-approval,
  .manual-grid {
    grid-template-columns: 1fr;
  }

  .generator-button,
  .manual-wide {
    grid-column: auto;
  }

  .generation-approval {
    align-items: start;
  }

  .plan-price {
    padding-left: 0;
    border-left: 0;
  }

  .board-heading,
  .manual-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-heading > p {
    text-align: left;
  }
}

/* ============================================================
   Platform layer — Agent Factorial pages built on the SwishOS
   design system (paper surface, ink text, lime/sun accents).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.af-public { max-width: 1080px; margin: 0 auto; padding: 20px 22px 56px; }
.af-public-topbar { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 18px; }
.af-public-topbar nav { display: flex; gap: 8px; }
.af-public-topbar nav a { padding: 8px 14px; border-radius: 999px; font-size: 12px;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--card); }
.af-public-topbar nav a:hover { border-color: var(--ink); }
.af-footer { margin-top: 42px; text-align: center; color: var(--muted); font-size: 12px; }

.af-hero { padding: 46px 0 26px; max-width: 640px; }
.af-hero h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; }
.af-hero h1 em { font-style: normal; background: var(--lime); border-radius: 8px;
  padding: 0 8px; box-decoration-break: clone; }
.af-hero p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 480px; }

.af-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; margin: 14px 0; }
.af-card.narrow { max-width: 420px; margin: 56px auto; }
.af-card.center { text-align: center; max-width: 520px; margin: 56px auto; }
.af-card h1 { font-size: 22px; letter-spacing: -0.02em; }
.af-card h2 { font-size: 15px; letter-spacing: -0.01em; margin-bottom: 10px; }

form.af-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form.af-grid .wide, form.af-grid button[type="submit"] { grid-column: 1 / -1; }
form.af-stack { display: flex; flex-direction: column; gap: 10px; }
form.af-inline { display: inline; }
.af-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
label.af-field { display: flex; flex-direction: column; gap: 5px; font-size: 11px;
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.af-field input, .af-field select, .af-field textarea, .af-input {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 400;
  letter-spacing: 0; text-transform: none; }
.af-field textarea { resize: vertical; }

.af-button, .primary-button { display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 16px;
  font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid var(--ink); }
.af-button:hover { background: var(--rail-soft); }
.af-button.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.af-button.lime:hover { background: var(--lime-strong); }
.af-ghost { display: inline-flex; align-items: center; gap: 6px; background: var(--card);
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; font-size: 13px; font-weight: 600; cursor: pointer; }
.af-ghost:hover { border-color: var(--ink); }

.af-error { color: var(--danger); font-size: 13px; }
.af-muted { color: var(--muted); }
.af-note { background: rgba(201, 242, 124, 0.25); border: 1px solid var(--lime-strong);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; margin: 10px 0; }

.af-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.af-table th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 8px 10px;
  border-bottom: 1px solid var(--line); }
.af-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

.af-pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 9px;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.af-pill.good { background: var(--lime); border-color: var(--lime-strong); color: var(--ink); }
.af-pill.warn { background: rgba(246, 184, 75, 0.2); border-color: var(--sun); color: var(--ink); }
.af-pill.bad { background: rgba(223, 107, 84, 0.14); border-color: var(--danger); color: var(--danger); }

.af-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px; margin-top: 14px; }
.af-column { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; }
.af-column > h2 { display: flex; justify-content: space-between; font-size: 12px;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.af-chip { display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: 13px; }
.af-chip:hover { border-color: var(--ink); }
.af-chip strong { display: block; font-size: 14px; }
.af-chip .sub { color: var(--muted); font-size: 12px; }

.af-timeline { margin-top: 14px; }
.af-timeline li { border-left: 3px solid var(--line); padding: 5px 0 5px 12px; margin: 9px 0; }
.af-timeline li.a-client { border-color: var(--sun); }
.af-timeline li.u-status { border-color: var(--lime-strong); }
.af-timeline .meta { color: var(--muted); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 700; }
.af-timeline p { margin-top: 3px; font-size: 13px; }
.af-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.af-list li a { font-weight: 700; text-decoration: underline; }

.af-progress { display: flex; flex-wrap: wrap; gap: 6px; }
.af-progress li { padding: 6px 13px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--muted); font-size: 12px;
  text-transform: capitalize; }
.af-progress li.done { border-color: var(--lime-strong); color: var(--ink); }
.af-progress li.now { background: var(--lime); border-color: var(--lime-strong);
  color: var(--ink); font-weight: 700; }

.af-password { font-family: ui-monospace, monospace; background: var(--paper);
  padding: 12px; border-radius: 10px; border: 1px dashed var(--sun); margin: 12px 0; }
.af-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.af-code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; font-size: 12px; font-family: ui-monospace, monospace; }
.af-kv { display: grid; gap: 10px; }
.af-kv > div { display: grid; gap: 2px; }
.af-kv small { color: var(--muted); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; }
.af-kv strong { font-size: 13px; font-weight: 600; }

.google-signin { display: flex; justify-content: center; margin-bottom: 12px; }
.or-divider { text-align: center; color: var(--muted); font-size: 11px; margin: 10px 0;
  letter-spacing: 0.05em; text-transform: uppercase; }

/* Shell nav as links (server-rendered) */
.mode-switch { grid-template-columns: 1fr; }
.mode-switch a { min-height: 38px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border: 1px solid #34382e; border-radius: 10px; background: transparent;
  color: #cfd6c4; font-size: 13px; font-weight: 600; }
.mode-switch a span { color: var(--lime); }
.mode-switch a:hover { border-color: #59604e; }
.mode-switch a.active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.mode-switch a.active span { color: var(--ink); }

/* Brand lockup reused in the public header */
.af-public-topbar .brand-lockup { height: auto; padding: 0; border-bottom: none; }

/* ghost-button used as a link */
a.ghost-button { display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; }
