/* Pipeline Engine Styles */

.nav-link {
  color: var(--cyan); text-decoration: none; font-size: 13px; font-weight: 500;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--gold); }

/* FIRM SELECTOR */
.pipe-selector { padding: 20px 24px 0; max-width: 1600px; margin: 0 auto; }
.pipe-selector-inner {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.selector-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 300px; }
.selector-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.firm-select {
  background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 14px; color: var(--text-primary); font-size: 14px; font-family: var(--font);
  flex: 1; cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239ca3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.firm-select:focus { border-color: var(--gold-dim); }
.selector-right { display: flex; gap: 16px; flex-wrap: wrap; }
.quick-stat { text-align: center; }
.quick-stat-value { font-size: 18px; font-weight: 700; }
.quick-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* STAGE TABS */
.pipe-main { padding: 20px 24px; max-width: 1600px; margin: 0 auto; }
.stage-tabs {
  display: flex; align-items: center; gap: 4px;
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 8px; overflow-x: auto;
}
.stage-tab {
  flex: 1; padding: 12px 16px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent;
  cursor: pointer; text-align: center; transition: all var(--transition);
  font-family: var(--font); min-width: 140px;
}
.stage-tab:hover { background: var(--navy-3); }
.stage-tab.active { background: rgba(255, 200, 87, 0.06); border-color: rgba(255, 200, 87, 0.2); }
.stage-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy-4); color: var(--text-secondary);
  font-size: 12px; font-weight: 700; margin-bottom: 4px;
}
.stage-tab.active .stage-num { background: var(--gold); color: var(--navy); }
.stage-name { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-top: 4px; }
.stage-sub { display: block; font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.stage-arrow { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }

/* STAGE CONTENT */
.stage-content {
  background: var(--navy-2); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 24px; min-height: 400px;
}
.stage-empty { text-align: center; color: var(--text-muted); padding: 80px 20px; font-size: 14px; }

/* STAGE HEADER */
.stage-header-bar { margin-bottom: 20px; }
.stage-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0; }
.stage-desc { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.stage-desc strong { color: var(--gold); }

/* OUTREACH SEQUENCE */
.sequence-list { display: flex; flex-direction: column; gap: 12px; }
.touch-card {
  background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color var(--transition);
}
.touch-card:hover { border-color: var(--border-light); }
.touch-header {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  cursor: pointer; user-select: none;
}
.touch-num {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  font-size: 12px; font-weight: 700;
}
.touch-email .touch-num { background: rgba(0, 212, 255, 0.12); color: var(--cyan); }
.touch-linkedin .touch-num { background: rgba(167, 139, 250, 0.12); color: var(--purple); }
.touch-phone .touch-num { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.touch-content .touch-num { background: rgba(245, 158, 11, 0.12); color: var(--orange); }
.touch-event .touch-num { background: rgba(255, 200, 87, 0.12); color: var(--gold); }
.touch-breakup .touch-num { background: rgba(239, 68, 68, 0.12); color: var(--red); }

.touch-info { flex: 1; }
.touch-type { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.touch-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-top: 2px; }
.touch-timing { font-size: 11px; color: var(--text-secondary); }
.touch-expand { color: var(--text-muted); transition: transform 0.2s; }
.touch-card.open .touch-expand { transform: rotate(180deg); }

.touch-body {
  display: none; padding: 0 16px 16px;
  border-top: 1px solid var(--border); margin-top: 0;
}
.touch-card.open .touch-body { display: block; padding-top: 14px; }

.touch-subject { font-size: 12px; color: var(--gold-dim); font-weight: 600; margin-bottom: 8px; }
.touch-text {
  font-size: 13px; line-height: 1.7; color: var(--text-secondary);
  white-space: pre-wrap;
}
.touch-text strong { color: var(--text-primary); font-weight: 600; }

.copy-btn {
  margin-top: 10px; padding: 6px 14px; border-radius: var(--radius);
  background: rgba(255, 200, 87, 0.08); border: 1px solid rgba(255, 200, 87, 0.2);
  color: var(--gold); font-size: 11px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: all var(--transition);
}
.copy-btn:hover { background: rgba(255, 200, 87, 0.15); }

/* MEETING AGENDA */
.agenda-section { margin-bottom: 20px; }
.agenda-section-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold-dim); margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.agenda-items { display: flex; flex-direction: column; gap: 8px; }
.agenda-item {
  display: flex; gap: 10px; padding: 10px 14px;
  background: var(--navy-3); border-radius: var(--radius); border: 1px solid var(--border);
}
.agenda-bullet {
  width: 6px; height: 6px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
}
.agenda-text { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
.agenda-text strong { color: var(--text-primary); }
.agenda-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; margin-left: auto; }

/* FOLLOW-UP */
.followup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.followup-card {
  background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px;
}
.followup-card-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.followup-card-title .icon { margin-right: 6px; }
.followup-list { display: flex; flex-direction: column; gap: 6px; }
.followup-item { font-size: 12px; color: var(--text-secondary); line-height: 1.6; padding-left: 14px; position: relative; }
.followup-item::before { content: '→'; position: absolute; left: 0; color: var(--gold-dim); }

/* CLOSE / ALLOCATION */
.close-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.close-panel {
  background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px;
}
.close-panel-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold-dim); margin-bottom: 12px;
}
.alloc-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.alloc-row:last-child { border-bottom: none; }
.alloc-label { font-size: 12px; color: var(--text-secondary); }
.alloc-value { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.alloc-value.gold { color: var(--gold); }

.timeline { display: flex; flex-direction: column; gap: 12px; }
.timeline-item { display: flex; gap: 12px; align-items: flex-start; }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0;
  border: 2px solid;
}
.timeline-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.timeline-text strong { color: var(--text-primary); }

/* ROSTER */
.roster-section { padding: 0 24px 24px; max-width: 1600px; margin: 0 auto; }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.roster-card {
  background: var(--navy-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px;
  transition: all 0.25s ease;
}
.roster-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Advisor name as clickable link */
.roster-name { font-size: 14px; font-weight: 600; }
.roster-name-link {
  color: var(--text-primary); text-decoration: none;
  transition: color 0.2s;
}
.roster-name-link:hover { color: var(--gold); text-decoration: underline; }

.roster-title { font-size: 12px; color: var(--text-secondary); }
.roster-meta { font-size: 11px; color: var(--text-muted); }

/* Clickable email row */
.roster-email-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; margin: 2px 0;
  background: rgba(0, 212, 255, 0.06); border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius); transition: all 0.2s;
}
.roster-email-row:hover {
  background: rgba(0, 212, 255, 0.12); border-color: rgba(0, 212, 255, 0.25);
}
.roster-email-link {
  color: var(--cyan); text-decoration: none; font-size: 12px; font-weight: 500;
  flex: 1; transition: color 0.2s;
}
.roster-email-link:hover { color: #5de5ff; text-decoration: underline; }
.roster-copy-email {
  padding: 2px 10px; border-radius: 4px; font-size: 10px; font-weight: 600;
  background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--cyan); cursor: pointer; font-family: var(--font);
  transition: all 0.2s; white-space: nowrap;
}
.roster-copy-email:hover { background: rgba(0, 212, 255, 0.2); }

/* Link action buttons */
.roster-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.roster-link {
  padding: 4px 10px; border-radius: 5px; font-size: 10px; font-weight: 600;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.roster-link:hover { transform: translateY(-1px); filter: brightness(1.3); }
.roster-link:active { transform: translateY(0px); }
.link-sec { background: rgba(0, 212, 255, 0.1); color: var(--cyan); border: 1px solid rgba(0, 212, 255, 0.2); }
.link-sec:hover { background: rgba(0, 212, 255, 0.2); border-color: rgba(0, 212, 255, 0.4); }
.link-finra { background: rgba(16, 185, 129, 0.1); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.2); }
.link-finra:hover { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); }
.link-linkedin { background: rgba(167, 139, 250, 0.1); color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.15); }
.link-linkedin:hover { background: rgba(167, 139, 250, 0.2); border-color: rgba(167, 139, 250, 0.35); }
.link-sf { background: rgba(255, 200, 87, 0.1); color: var(--gold); border: 1px solid rgba(255, 200, 87, 0.2); }
.link-sf:hover { background: rgba(255, 200, 87, 0.2); border-color: rgba(255, 200, 87, 0.4); }
.link-google { background: rgba(239, 68, 68, 0.08); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.15); }
.link-google:hover { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.35); }

/* SEARCHABLE FIRM DROPDOWN */
.firm-search-wrapper { position: relative; flex: 1; }
.firm-search-input {
  width: 100%; box-sizing: border-box;
  background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; color: var(--text-primary); font-size: 14px; font-family: var(--font);
  outline: none; transition: border-color 0.2s;
}
.firm-search-input:focus { border-color: var(--gold-dim); }
.firm-search-input::placeholder { color: var(--text-muted); }
.firm-dropdown {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: var(--navy-3); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  max-height: 400px; overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--border);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover, .dropdown-highlight { background: rgba(255, 200, 87, 0.06); }
.dd-score {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.dd-name { font-size: 13px; font-weight: 600; color: var(--text-primary); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.dropdown-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* CONTACT INTELLIGENCE PANEL */
.contact-intel { padding: 0 24px; max-width: 1600px; margin: 0 auto; }
.contact-intel-inner {
  background: var(--navy-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; margin-top: 12px;
}
.intel-header { margin-bottom: 16px; }
.intel-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.intel-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0; }
.firm-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
  border: 1px solid; text-transform: uppercase; letter-spacing: 0.04em;
}
.intel-desc { font-size: 12px; color: var(--text-secondary); margin: 6px 0 0; line-height: 1.5; }
.intel-meta { display: flex; gap: 20px; margin-top: 10px; flex-wrap: wrap; }
.intel-stat { font-size: 12px; color: var(--text-muted); }
.intel-stat strong { color: var(--text-primary); }

/* ROLE MAP GRID */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.role-card {
  background: var(--navy-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color 0.2s;
}
.role-found { border-left: 3px solid var(--green); }
.role-uncertain { border-left: 3px solid var(--orange); }
.role-missing { border-left: 3px solid var(--red); background: rgba(239, 68, 68, 0.03); }
.role-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.role-icon { font-size: 16px; }
.role-label { font-size: 12px; font-weight: 600; color: var(--text-primary); flex: 1; }
.role-status { font-size: 14px; }
.role-body { font-size: 12px; }
.role-person { color: var(--text-primary); font-weight: 500; margin-bottom: 4px; }
.role-person-title { color: var(--text-muted); font-weight: 400; font-size: 11px; }
.role-email { color: var(--cyan); text-decoration: none; font-size: 11px; }
.role-email:hover { text-decoration: underline; }
.role-no-data { color: var(--text-muted); font-style: italic; font-size: 11px; }
.role-search-links { display: flex; gap: 6px; }
.role-search-btn {
  padding: 4px 10px; border-radius: 5px; font-size: 10px; font-weight: 600;
  text-decoration: none; transition: all 0.2s; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.role-search-btn:hover { transform: translateY(-1px); filter: brightness(1.3); }

/* CLICKABLE CONTACT CARDS */
.role-card-clickable { cursor: pointer; transition: all 0.2s; }
.role-card-clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); border-color: var(--gold-dim); }
.role-card-selected {
  border-color: var(--gold) !important; border-left-color: var(--gold) !important;
  box-shadow: 0 0 12px rgba(255, 200, 87, 0.15), inset 0 0 0 1px rgba(255, 200, 87, 0.1);
  background: rgba(255, 200, 87, 0.06);
}

/* TARGETING INDICATOR */
.targeting-indicator {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px; border-radius: var(--radius);
  background: rgba(255, 200, 87, 0.06); border: 1px solid rgba(255, 200, 87, 0.2);
  margin-top: 10px;
}
.targeting-badge {
  font-size: 12px; color: var(--gold); font-weight: 500;
}
.targeting-badge strong { color: var(--text-primary); }
.targeting-reset {
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 10px; font-size: 11px; color: var(--text-muted); cursor: pointer;
  font-family: var(--font-sans); transition: all 0.2s;
}
.targeting-reset:hover { color: var(--text-primary); border-color: var(--text-secondary); }

/* CONTACT CARD PERSON LINKS */
.role-person-link { color: var(--text-primary); text-decoration: none; font-weight: 600; transition: color 0.15s; }
.role-person-link:hover { color: var(--gold); text-decoration: underline; }

/* AI SEARCH */
.ai-search-btn { background: rgba(255, 200, 87, 0.1) !important; color: var(--gold) !important; border: 1px solid rgba(255, 200, 87, 0.3) !important; }
.ai-search-btn:hover { background: rgba(255, 200, 87, 0.2) !important; }
.ai-search-results { margin-top: 8px; }
.ai-search-loading { font-size: 11px; color: var(--gold); padding: 6px 0; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.ai-search-result-card {
  background: rgba(255, 200, 87, 0.04); border: 1px solid rgba(255, 200, 87, 0.15);
  border-radius: var(--radius); padding: 10px 12px; margin-top: 6px;
}
.ai-result-role { font-size: 11px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.ai-result-links { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.ai-result-links .role-search-btn { font-size: 9px; }
.ai-result-angle { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }
.ai-search-error { font-size: 11px; color: var(--red); padding: 6px 0; }

/* ADD CONTACT BUTTON */
.add-contact-btn {
  background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green); padding: 4px 12px; border-radius: var(--radius);
  font-size: 11px; font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: all 0.2s;
}
.add-contact-btn:hover { background: rgba(16, 185, 129, 0.2); transform: translateY(-1px); }

/* MANUAL BADGE */
.manual-badge {
  display: inline-block; font-size: 8px; font-weight: 700; padding: 1px 5px;
  border-radius: 3px; background: rgba(167, 139, 250, 0.15); color: #a78bfa;
  letter-spacing: 0.04em; vertical-align: middle; margin-left: 4px;
}

/* MANUAL CONTACT MODAL */
.manual-contact-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.manual-contact-modal {
  background: var(--navy-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 520px; max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.manual-contact-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.manual-contact-header h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0; }
.manual-close-btn {
  background: none; border: none; color: var(--text-muted); font-size: 18px;
  cursor: pointer; padding: 4px; line-height: 1;
}
.manual-close-btn:hover { color: var(--text-primary); }
.manual-contact-form { padding: 20px; }
.mc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.mc-field label {
  display: block; font-size: 11px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px;
}
.mc-field input, .mc-field select {
  width: 100%; padding: 8px 10px; border-radius: var(--radius);
  background: var(--navy-3); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 13px; font-family: var(--font);
  outline: none; box-sizing: border-box;
}
.mc-field input:focus, .mc-field select:focus { border-color: var(--gold-dim); }
.mc-field input::placeholder { color: var(--text-muted); }
.mc-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: 4px;
}
.mc-cancel {
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 16px; color: var(--text-muted); cursor: pointer; font-family: var(--font);
  font-size: 12px;
}
.mc-cancel:hover { color: var(--text-primary); border-color: var(--text-secondary); }
.mc-save {
  background: var(--gold); border: none; border-radius: var(--radius);
  padding: 8px 20px; color: var(--navy); font-weight: 700; cursor: pointer;
  font-family: var(--font); font-size: 12px; transition: all 0.2s;
}
.mc-save:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* LEAD QUALITY WARNING */
.lead-warning {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px;
  border-radius: var(--radius); margin-bottom: 14px;
}
.lead-warning-caution { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.2); }
.lead-warning-danger { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); }
.lead-warning-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.lead-warning-text { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.lead-warning-text strong { color: var(--text-primary); }

@media (max-width: 900px) {
  .stage-tabs { flex-direction: column; }
  .stage-arrow { transform: rotate(90deg); }
  .close-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
}

/* TOUCH COMPLETION */
.touch-check-label {
  display: flex; align-items: center; cursor: pointer; flex-shrink: 0;
  z-index: 2;
}
.touch-check {
  width: 18px; height: 18px; accent-color: var(--gold);
  cursor: pointer; margin: 0;
}
.touch-card.touch-completed {
  opacity: 0.55; border-color: rgba(16, 185, 129, 0.3);
}
.touch-card.touch-completed .touch-title {
  text-decoration: line-through; color: var(--text-muted);
}
.touch-card.touch-completed .touch-num {
  background: rgba(16, 185, 129, 0.2); color: var(--green);
}
.touch-progress {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.touch-progress-bar-bg {
  flex: 1; height: 6px; background: var(--navy-4); border-radius: 3px; overflow: hidden;
  max-width: 300px;
}
.touch-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 3px; transition: width 0.3s ease;
}
.touch-progress-text {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  white-space: nowrap;
}

/* PERPLEXITY ATTRIBUTION */
.perplexity-footer {
  text-align: center; padding: 16px 24px; font-size: 11px;
  color: var(--text-muted); border-top: 1px solid var(--border);
  margin-top: 32px;
}
.perplexity-footer a {
  color: var(--gold-dim); text-decoration: none;
}
.perplexity-footer a:hover { text-decoration: underline; }
