/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
}
a { color: #58a6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Logo ─── */
.ob-logo {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 32px;
}
.ob-logo-mark { font-size: 28px; }
.ob-logo-name { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; color: #e6edf3; }
.ob-logo-sub  { font-size: 12px; color: #8b949e; margin-left: 4px; background: #21262d; border-radius: 4px; padding: 2px 8px; }

/* ─── ONBOARDING ─── */
.onboarding-body { display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px 80px; }
.ob-wrap  { width: 100%; max-width: 540px; display: flex; flex-direction: column; align-items: center; }
.ob-card  { background: #161b22; border: 1px solid #30363d; border-radius: 16px; padding: 40px 36px; width: 100%; }
.ob-title { font-size: 30px; font-weight: 700; line-height: 1.2; color: #e6edf3; margin-bottom: 12px; text-align: center; letter-spacing: -0.5px; }
.ob-desc  { font-size: 15px; color: #8b949e; text-align: center; margin-bottom: 32px; line-height: 1.6; }

.ob-source-group  { margin-bottom: 20px; }
.ob-source-label  { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.ob-source-icon   { font-size: 16px; }
.ob-source-hint   { font-size: 11px; font-weight: 400; background: #21262d; border-radius: 4px; padding: 1px 6px; color: #8b949e; text-transform: none; letter-spacing: 0; }

.ob-dropzone {
  border: 2px dashed #30363d; border-radius: 12px; padding: 28px 20px;
  text-align: center; cursor: pointer; transition: all .2s;
  color: #8b949e; font-size: 14px;
}
.ob-dropzone:hover, .ob-dropzone.drag-over { border-color: #58a6ff; background: #0d2136; color: #58a6ff; }
.ob-drop-icon { display: block; font-size: 24px; margin-bottom: 8px; }
#dropLabel { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.ob-file-chosen {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  color: #3fb950; font-size: 14px; font-weight: 500;
}
.ob-file-icon { font-size: 18px; }
.ob-file-remove { background: none; border: none; color: #f85149; cursor: pointer; font-size: 16px; padding: 0 4px; }

.ob-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #484f58; font-size: 13px; }
.ob-divider::before, .ob-divider::after { content: ''; flex: 1; height: 1px; background: #30363d; }

.ob-input-row   { margin-bottom: 16px; }
.ob-input-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8b949e; margin-bottom: 6px; }
.ob-input-icon  { font-size: 13px; background: #21262d; border-radius: 4px; padding: 2px 5px; font-weight: 700; color: #e6edf3; }
.ob-input {
  width: 100%; background: #0d1117; border: 1px solid #30363d; border-radius: 8px;
  color: #e6edf3; font-size: 14px; padding: 10px 14px; outline: none; transition: border-color .15s;
}
.ob-input:focus { border-color: #58a6ff; }
.ob-input::placeholder { color: #484f58; }

.ob-form-error { background: #f851491a; border: 1px solid #f85149; border-radius: 8px; color: #f85149; font-size: 13px; padding: 10px 14px; margin-bottom: 16px; }

.ob-btn-start {
  width: 100%; background: #238636; border: 1px solid #2ea043; border-radius: 10px;
  color: #fff; font-size: 16px; font-weight: 600; padding: 14px; cursor: pointer;
  transition: background .15s, transform .1s; margin-top: 8px;
}
.ob-btn-start:hover:not(:disabled)  { background: #2ea043; }
.ob-btn-start:active:not(:disabled) { transform: scale(0.98); }
.ob-btn-start:disabled { opacity: 0.6; cursor: not-allowed; }

.ob-footer-note { text-align: center; font-size: 13px; color: #484f58; margin-top: 20px; }
.ob-login-link  { margin-top: 24px; font-size: 14px; color: #8b949e; }

/* ─── PROGRESS ─── */
.progress-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 20px; }
.pr-wrap  { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; }
.pr-card  { background: #161b22; border: 1px solid #30363d; border-radius: 16px; padding: 40px 36px; width: 100%; }
.pr-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.pr-spinner {
  font-size: 28px; color: #58a6ff; animation: spin 1.2s linear infinite;
  min-width: 36px; text-align: center;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pr-title { font-size: 20px; font-weight: 700; }

.pr-bar-wrap { background: #21262d; border-radius: 8px; height: 8px; overflow: hidden; margin-bottom: 8px; }
.pr-bar { height: 100%; background: linear-gradient(90deg, #238636, #3fb950); border-radius: 8px; transition: width 0.6s ease; }
.pr-pct { font-size: 13px; color: #8b949e; margin-bottom: 28px; }

.pr-steps { display: flex; flex-direction: column; gap: 10px; }
.pr-step { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #8b949e; }
.pr-step-in { animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pr-step-icon { font-size: 16px; min-width: 24px; text-align: center; }
.pr-step-label { color: #e6edf3; }
.pr-note { font-size: 13px; color: #484f58; margin-top: 28px; text-align: center; }

/* ─── READY ─── */
.ready-body { display: flex; align-items: flex-start; justify-content: center; padding: 60px 20px 80px; }
.rd-wrap { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; }
.rd-badge-anim {
  font-size: 48px; color: #3fb950; margin-bottom: 16px;
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.rd-title { font-size: 32px; font-weight: 700; margin-bottom: 28px; text-align: center; }

.rd-agent-card {
  background: #161b22; border: 1px solid #30363d; border-radius: 14px;
  padding: 24px 28px; width: 100%; margin-bottom: 20px;
}
.rd-agent-name   { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.rd-agent-bio    { font-size: 14px; color: #8b949e; line-height: 1.6; margin-bottom: 16px; }
.rd-strength-bar-wrap { background: #21262d; border-radius: 6px; height: 6px; overflow: hidden; margin-bottom: 6px; }
.rd-strength-bar { height: 100%; background: #3fb950; border-radius: 6px; }
.rd-agent-strength { font-size: 12px; color: #8b949e; }

.rd-creds-card {
  background: #0d2136; border: 1px solid #1f6feb; border-radius: 14px;
  padding: 24px 28px; width: 100%; margin-bottom: 24px;
}
.rd-creds-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.rd-creds-warn  { font-size: 13px; color: #8b949e; margin-bottom: 18px; }
.rd-cred-row {
  display: flex; align-items: center; gap: 12px;
  background: #161b22; border: 1px solid #30363d; border-radius: 8px;
  padding: 10px 14px; margin-bottom: 10px;
}
.rd-cred-label { font-size: 12px; color: #8b949e; width: 65px; flex-shrink: 0; }
.rd-cred-val   { font-family: 'Courier New', monospace; font-size: 15px; color: #e6edf3; flex: 1; word-break: break-all; }
.rd-copy-btn   { background: #21262d; border: 1px solid #30363d; border-radius: 6px; color: #8b949e; font-size: 12px; padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.rd-copy-btn:hover { background: #30363d; color: #e6edf3; }

.rd-actions    { display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: center; }
.rd-btn-primary {
  background: #238636; border: 1px solid #2ea043; border-radius: 10px;
  color: #fff; font-size: 16px; font-weight: 600; padding: 14px 32px;
  cursor: pointer; transition: background .15s; width: 100%; text-align: center;
}
.rd-btn-primary:hover:not(:disabled) { background: #2ea043; }
.rd-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.rd-btn-secondary {
  background: transparent; border: 1px solid #30363d; border-radius: 10px;
  color: #8b949e; font-size: 15px; font-weight: 500; padding: 12px 32px;
  cursor: pointer; transition: all .15s; width: 100%; text-align: center;
  display: block;
}
.rd-btn-secondary:hover { border-color: #58a6ff; color: #58a6ff; text-decoration: none; }

.rd-bar-msg    { border-radius: 8px; font-size: 13px; padding: 10px 14px; margin-top: 12px; width: 100%; text-align: center; }
.rd-bar-ok     { background: #0d4429; border: 1px solid #2ea043; color: #3fb950; }
.rd-bar-err    { background: #3d0e0e; border: 1px solid #f85149; color: #f85149; }

/* ─── DASHBOARD NAV ─── */
.dash-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #161b22; border-bottom: 1px solid #30363d;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 56px;
}
.dash-nav-logo { display: flex; align-items: center; gap: 8px; }
.dash-nav-right { display: flex; align-items: center; gap: 16px; }
.dash-nav-user   { font-size: 13px; color: #8b949e; font-family: monospace; }
.dash-nav-logout { font-size: 13px; color: #8b949e; }
.dash-nav-logout:hover { color: #f85149; }

/* ─── DASHBOARD LAYOUT ─── */
.dash-body { padding-top: 56px; }
.dash-wrap {
  display: flex; min-height: calc(100vh - 56px);
}
.dash-sidebar {
  width: 240px; flex-shrink: 0; border-right: 1px solid #30363d;
  padding: 28px 20px; display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto;
}
.dash-main { flex: 1; padding: 36px 40px; min-width: 0; }

/* Agent thumb */
.dash-agent-thumb { display: flex; align-items: center; gap: 12px; }
.dash-agent-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: #238636;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.dash-agent-display    { font-size: 14px; font-weight: 600; }
.dash-agent-id-label   { font-size: 11px; color: #484f58; font-family: monospace; word-break: break-all; }

.dash-status-pill {
  display: flex; align-items: center; gap: 8px;
  background: #21262d; border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: 500;
}
.dash-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8b949e; flex-shrink: 0; }

/* Tabs */
.dash-tabs { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.dash-tab {
  background: transparent; border: none; color: #8b949e; font-size: 14px;
  text-align: left; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  transition: all .15s; width: 100%;
}
.dash-tab:hover   { background: #21262d; color: #e6edf3; }
.dash-tab.active  { background: #21262d; color: #e6edf3; font-weight: 600; }

/* Panel */
.dash-panel-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

/* Stats grid */
.dash-overview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.dash-stat-card {
  background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 18px 20px;
}
.dash-stat-label { font-size: 12px; color: #8b949e; margin-bottom: 8px; }
.dash-stat-val   { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.dash-mini-bar   { background: #21262d; border-radius: 4px; height: 4px; overflow: hidden; }
.dash-mini-bar div { height: 100%; background: #3fb950; border-radius: 4px; }
.dash-actions-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dash-btn-sec {
  background: transparent; border: 1px solid #30363d; border-radius: 8px;
  color: #8b949e; font-size: 14px; padding: 10px 20px; cursor: pointer;
  transition: all .15s;
}
.dash-btn-sec:hover { border-color: #58a6ff; color: #58a6ff; text-decoration: none; }

/* Profile */
.dash-field-row   { margin-bottom: 20px; }
.dash-field-row label { display: block; font-size: 12px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.dash-field-val   { font-size: 14px; line-height: 1.7; color: #e6edf3; background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 10px 14px; }
.dash-textarea    { width: 100%; background: #161b22; border: 1px solid #30363d; border-radius: 8px; color: #e6edf3; font-size: 14px; padding: 10px 14px; line-height: 1.6; resize: vertical; outline: none; }
.dash-textarea:focus { border-color: #58a6ff; }
.dash-edit-btn    { float: right; background: transparent; border: 1px solid #30363d; border-radius: 6px; color: #8b949e; font-size: 12px; padding: 4px 12px; cursor: pointer; }
.dash-edit-btn:hover { border-color: #58a6ff; color: #58a6ff; }

/* Evidence */
.dash-ev-loading    { color: #8b949e; font-size: 14px; }
.dash-ev-empty      { color: #8b949e; font-size: 14px; text-align: center; padding: 40px 0; }
.dash-ev-section-title { font-size: 13px; font-weight: 600; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.dash-ev-source {
  display: flex; align-items: flex-start; gap: 14px;
  background: #161b22; border: 1px solid #30363d; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px;
}
.dash-ev-src-icon { font-size: 18px; background: #21262d; border-radius: 6px; padding: 4px 8px; font-weight: 700; }
.dash-ev-src-name { font-size: 14px; color: #e6edf3; margin-bottom: 4px; }
.dash-ev-src-status { font-size: 12px; border-radius: 4px; padding: 2px 8px; display: inline-block; }
.dash-ev-src-status.ok    { background: #0d4429; color: #3fb950; }
.dash-ev-src-status.saved { background: #0d2136; color: #58a6ff; }
.dash-ev-doc {
  background: #161b22; border: 1px solid #30363d; border-radius: 10px;
  padding: 16px 18px; margin-bottom: 12px;
}
.dash-ev-doc-type    { font-size: 11px; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.dash-ev-doc-title   { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.dash-ev-doc-preview { font-size: 13px; color: #8b949e; line-height: 1.6; }

/* Bar Activity */
.dash-bar-report     { display: flex; flex-direction: column; gap: 16px; }
.dash-bar-field      { background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 14px 16px; }
.dash-bar-field label { font-size: 12px; color: #8b949e; display: block; margin-bottom: 6px; }
.dash-bar-section-title { font-size: 13px; font-weight: 600; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; margin: 8px 0 12px; }
.dash-coalition-card { background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 16px; margin-bottom: 12px; }
.dash-coalition-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.dash-coalition-summary { font-size: 13px; color: #8b949e; line-height: 1.6; }
.dash-coalition-score { font-size: 12px; color: #3fb950; margin-top: 8px; }

/* Export */
.dash-export-desc { font-size: 14px; color: #8b949e; margin-bottom: 24px; line-height: 1.6; }
.dash-export-pre  {
  background: #161b22; border: 1px solid #30363d; border-radius: 10px;
  padding: 20px; font-family: 'Courier New', monospace; font-size: 12px;
  color: #8b949e; overflow-x: auto; margin-top: 24px; max-height: 500px;
  overflow-y: auto; white-space: pre-wrap; line-height: 1.5;
}

/* Badge */
.dash-badge-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.dash-badge {
  background: linear-gradient(135deg, #161b22 60%, #0d2136);
  border: 1px solid #1f6feb; border-radius: 16px; padding: 28px 32px;
  min-width: 320px; max-width: 480px;
}
.dash-badge-logo   { font-size: 14px; font-weight: 700; color: #8b949e; margin-bottom: 16px; }
.dash-badge-name   { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.dash-badge-bio    { font-size: 14px; color: #8b949e; line-height: 1.6; margin-bottom: 16px; }
.dash-badge-stats  { display: flex; gap: 16px; margin-bottom: 16px; padding: 12px 0; border-top: 1px solid #21262d; border-bottom: 1px solid #21262d; }
.dash-badge-stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dash-badge-stat-item span { font-size: 20px; font-weight: 700; color: #58a6ff; }
.dash-badge-stat-item small { font-size: 10px; color: #8b949e; white-space: nowrap; }
.dash-badge-footer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-badge-status { font-size: 12px; background: #0d4429; color: #3fb950; border-radius: 20px; padding: 4px 12px; }
.dash-badge-opp    { font-size: 12px; color: #8b949e; }
.dash-badge-actions { display: flex; gap: 12px; }

/* ─── In-Bar Live Block ─── */
.inbar-wrap {
  display: flex; align-items: flex-start; gap: 20px;
  background: linear-gradient(135deg, #0d2b1a 0%, #0d1e2b 100%);
  border: 1px solid #2ea043; border-radius: 14px;
  padding: 24px 28px; margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.inbar-pulse-ring {
  position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, #2ea04330 0%, transparent 70%);
  animation: inbar-glow 2.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes inbar-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.3); opacity: 1; }
}
.inbar-content  { flex: 1; }
.inbar-header   { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.inbar-icon     { font-size: 28px; flex-shrink: 0; }
.inbar-title    { font-size: 17px; font-weight: 700; color: #3fb950; margin-bottom: 3px; }
.inbar-subtitle { font-size: 13px; color: #8b949e; }
.inbar-body     { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.inbar-fact     { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #c9d1d9; line-height: 1.6; }
.inbar-fact-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.inbar-hint     { font-size: 12px; color: #484f58; font-style: italic; border-top: 1px solid #2ea04340; padding-top: 12px; }

/* ─── Profile Completeness ─── */
.pc-wrap {
  background: #161b22; border: 1px solid #30363d; border-radius: 14px;
  padding: 22px 28px; margin-bottom: 24px;
}
.pc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.pc-title    { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.pc-subtitle { font-size: 12px; color: #8b949e; }
.pc-score-ring {
  position: relative; width: 56px; height: 56px; flex-shrink: 0;
}
.pc-score-ring svg { width: 100%; height: 100%; }
.pc-score-ring span {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; color: #e6edf3;
}
.pc-bar-row   { margin-bottom: 18px; }
.pc-bar-track { background: #21262d; border-radius: 6px; height: 6px; overflow: hidden; }
.pc-bar-fill  { height: 100%; background: linear-gradient(90deg, #238636, #3fb950); border-radius: 6px; transition: width .6s ease; }
.pc-tips-title { font-size: 12px; font-weight: 600; color: #8b949e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.pc-tips-loading { font-size: 13px; color: #484f58; }
.pc-tip {
  display: flex; align-items: center; gap: 12px;
  background: #0d1117; border: 1px solid #30363d; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 8px;
  transition: border-color .15s;
}
.pc-tip:hover { border-color: #58a6ff40; }
.pc-tip-plus {
  font-size: 11px; font-weight: 700; color: #3fb950;
  background: #0d4429; border-radius: 4px; padding: 2px 7px;
  white-space: nowrap; flex-shrink: 0;
}
.pc-tip-text { font-size: 13px; color: #c9d1d9; line-height: 1.5; flex: 1; }
.pc-tip-btn  {
  background: transparent; border: 1px solid #30363d; border-radius: 6px;
  color: #58a6ff; font-size: 12px; padding: 4px 10px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: all .15s;
}
.pc-tip-btn:hover  { background: #0d2136; border-color: #58a6ff; }
.pc-tip-done {
  font-size: 13px; color: #3fb950; background: #0d4429;
  border: 1px solid #2ea043; border-radius: 10px; padding: 12px 16px;
}

/* ─── Lifecycle ─── */
.lc-wrap {
  background: #161b22; border: 1px solid #30363d; border-radius: 14px;
  padding: 24px 28px; margin-bottom: 28px;
}
.lc-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: #484f58; text-transform: uppercase; margin-bottom: 24px;
}
.lc-track {
  display: flex; align-items: flex-start; width: 100%;
}
.lc-step-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; flex-shrink: 0; min-width: 60px;
}
.lc-node {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: all .3s;
  position: relative; z-index: 1;
}
.lc-node.lc-done {
  background: #238636; border: 2px solid #2ea043;
  color: #fff; font-size: 16px;
}
.lc-node.lc-active {
  background: #0d2136; border: 2px solid #58a6ff;
  color: #58a6ff; font-size: 13px;
  box-shadow: 0 0 0 4px #58a6ff22;
  animation: lc-pulse 1.8s ease-in-out infinite;
}
.lc-node.lc-pending {
  background: #21262d; border: 2px solid #30363d;
  color: #484f58;
}
@keyframes lc-pulse {
  0%, 100% { box-shadow: 0 0 0 4px #58a6ff22; }
  50%       { box-shadow: 0 0 0 8px #58a6ff11; }
}
.lc-label {
  font-size: 11px; color: #8b949e; text-align: center;
  white-space: nowrap; font-weight: 500;
}
.lc-conn {
  flex: 1; height: 2px; background: #30363d;
  margin-top: 17px; transition: background .4s;
  min-width: 20px;
}
.lc-conn-done { background: #2ea043; }
.lc-msg {
  margin-top: 20px; font-size: 13px; color: #8b949e;
  line-height: 1.5; min-height: 18px;
}

/* Responsive */
@media (max-width: 720px) {
  .lc-wrap     { padding: 18px 16px; }
  .lc-step-wrap{ min-width: 44px; }
  .lc-node     { width: 30px; height: 30px; font-size: 11px; }
  .lc-label    { font-size: 10px; }
  .lc-conn     { margin-top: 14px; }
  .dash-wrap    { flex-direction: column; }
  .dash-sidebar { width: 100%; position: static; height: auto; border-right: none; border-bottom: 1px solid #30363d; }
  .dash-main    { padding: 24px 20px; }
  .ob-card      { padding: 28px 20px; }
  .rd-wrap      { padding: 0; }
}

/* ─── Opportunity Preview ─────────────────────────────────────────── */
.op-wrap {
  margin-top: 28px; padding: 24px 22px;
  background: linear-gradient(160deg, #0d1f2d 0%, #161b22 80%);
  border: 1px solid #1f6feb44; border-radius: 14px;
}
.op-header { margin-bottom: 18px; }
.op-title  { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #f0f6fc; }
.op-subtitle { font-size: 13px; color: #8b949e; line-height: 1.5; margin: 0 0 4px; }
.op-summary {
  font-size: 14px; color: #c9d1d9; line-height: 1.6;
  padding: 12px 14px; background: #0d1117; border-left: 3px solid #58a6ff;
  border-radius: 6px; margin-bottom: 20px;
}
.op-section { margin-bottom: 22px; }
.op-section:last-of-type { margin-bottom: 12px; }
.op-section-title {
  font-size: 13px; font-weight: 600; color: #8b949e;
  text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px;
}
.op-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.op-card {
  background: #161b22; border: 1px solid #30363d; border-radius: 10px;
  padding: 12px 14px;
}
.op-card-format { background: #0d1117; }
.op-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.op-card-title { font-size: 14px; font-weight: 600; color: #f0f6fc; }
.op-card-desc  { font-size: 12px; color: #8b949e; line-height: 1.5; }
.op-conf {
  font-size: 10px; padding: 2px 8px; border-radius: 10px; text-transform: uppercase;
  font-weight: 600; letter-spacing: .3px; flex-shrink: 0;
}
.op-conf-low    { background: #21262d; color: #8b949e; }
.op-conf-medium { background: #1f3a5c; color: #58a6ff; }
.op-conf-high   { background: #0d4429; color: #3fb950; }
.op-ideas { display: flex; flex-direction: column; gap: 10px; }
.op-idea {
  background: #161b22; border: 1px solid #30363d; border-left: 3px solid #d29922;
  border-radius: 8px; padding: 14px 16px;
}
.op-idea-title { font-size: 14px; font-weight: 600; color: #f0f6fc; margin-bottom: 6px; }
.op-idea-desc  { font-size: 13px; color: #c9d1d9; line-height: 1.55; margin-bottom: 6px; }
.op-idea-why   { font-size: 12px; color: #8b949e; line-height: 1.5; }
.op-idea-why b { color: #d29922; font-weight: 600; }
.op-hints { display: flex; flex-direction: column; gap: 8px; }
.op-hint {
  display: flex; gap: 12px; align-items: flex-start;
  background: #161b22; border: 1px solid #30363d; border-radius: 8px;
  padding: 10px 14px;
}
.op-hint-title { font-size: 13px; font-weight: 600; color: #f0f6fc; margin-bottom: 2px; }
.op-hint-desc  { font-size: 12px; color: #8b949e; line-height: 1.5; }
.op-pri {
  font-size: 9px; padding: 2px 7px; border-radius: 8px; text-transform: uppercase;
  font-weight: 700; letter-spacing: .4px; flex-shrink: 0; margin-top: 2px;
}
.op-pri-low    { background: #21262d; color: #8b949e; }
.op-pri-medium { background: #1f3a5c; color: #58a6ff; }
.op-pri-high   { background: #4d1f1f; color: #f85149; }
.op-disclaimer {
  margin-top: 16px; padding: 10px 14px;
  background: #1c1208; border: 1px solid #6e4a1244; border-radius: 6px;
  font-size: 12px; color: #d29922; line-height: 1.5;
}

/* ─── External Agents tab ─────────────────────────────────────────── */
.ext-stats-header {
  display: flex; gap: 12px; margin-bottom: 20px;
  background: #161b22; border: 1px solid #30363d; border-radius: 10px;
  padding: 14px 18px;
}
.ext-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-right: 24px; border-right: 1px solid #21262d; }
.ext-stat:last-child { border-right: none; }
.ext-stat-num { font-size: 22px; font-weight: 700; color: #58a6ff; }
.ext-stat-lbl { font-size: 11px; color: #8b949e; }

.ext-list { display: flex; flex-direction: column; gap: 14px; }
.ext-card {
  background: #161b22; border: 1px solid #30363d; border-radius: 12px;
  padding: 18px 20px;
}
.ext-card-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid #21262d; margin-bottom: 14px;
}
.ext-id { font-size: 15px; font-weight: 700; color: #f0f6fc; font-family: monospace; }
.ext-meta { font-size: 11px; color: #8b949e; margin-top: 4px; font-family: monospace; }

.ext-score-wrap { flex-shrink: 0; }
.ext-score {
  width: 96px; padding: 10px 12px; border-radius: 10px; text-align: center;
  background: #0d1117; border: 1px solid #30363d;
}
.ext-score-num { font-size: 24px; font-weight: 700; color: #c9d1d9; line-height: 1; }
.ext-score-lbl { font-size: 9px; color: #8b949e; text-transform: uppercase; margin-top: 4px; letter-spacing: .3px; }
.ext-lvl-low      { border-color: #4d1f1f; }
.ext-lvl-low      .ext-score-num { color: #f85149; }
.ext-lvl-medium   { border-color: #5c4612; }
.ext-lvl-medium   .ext-score-num { color: #d29922; }
.ext-lvl-high     { border-color: #0d4429; }
.ext-lvl-high     .ext-score-num { color: #3fb950; }
.ext-lvl-unknown  { border-color: #21262d; }

.ext-grid {
  display: grid; gap: 8px; margin-bottom: 14px;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.ext-stat-cell {
  background: #0d1117; border: 1px solid #21262d; border-radius: 8px;
  padding: 10px 12px; text-align: center;
}
.ext-stat-cell-num { font-size: 18px; font-weight: 700; color: #c9d1d9; line-height: 1.1; }
.ext-stat-cell-lbl { font-size: 10px; color: #8b949e; margin-top: 4px; line-height: 1.3; }
.ext-stat-cell-hot { border-color: #1f6feb; background: #0d2136; }
.ext-stat-cell-hot .ext-stat-cell-num { color: #58a6ff; }
.ext-ev-yes { border-color: #0d4429; }
.ext-ev-yes .ext-stat-cell-num { color: #3fb950; }
.ext-ev-no  { border-color: #4d1f1f; }
.ext-ev-no  .ext-stat-cell-num { color: #f85149; }

.ext-bd-wrap {
  background: #0d1117; border: 1px solid #21262d; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 12px;
}
.ext-bd-title { font-size: 11px; color: #8b949e; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.ext-bd-bars { display: flex; flex-direction: column; gap: 6px; }
.ext-bd-bar  { display: grid; grid-template-columns: 70px 1fr 50px; align-items: center; gap: 10px; font-size: 11px; color: #8b949e; }
.ext-bd-track { height: 6px; background: #21262d; border-radius: 3px; overflow: hidden; }
.ext-bd-fill  { height: 100%; border-radius: 3px; transition: width .3s; }
.ext-bd-hard { background: #58a6ff; }
.ext-bd-soft { background: #d29922; }
.ext-bd-ev   { background: #3fb950; }
.ext-bd-val  { text-align: right; font-family: monospace; color: #c9d1d9; }

.ext-warn {
  background: #1c1208; border: 1px solid #6e4a1244; border-radius: 6px;
  padding: 8px 12px; font-size: 12px; color: #d29922; margin-bottom: 8px;
}
.ext-summary {
  background: #0d1117; border-left: 3px solid #58a6ff; padding: 10px 14px;
  border-radius: 4px; font-size: 12px; color: #8b949e; line-height: 1.5;
  font-style: italic;
}
