/* BrandScout - additional screen CSS (Investigate, Report, Login, Agents) */

/* ===== Investigate screen ===== */
.invest {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 32px 24px 48px;
  overflow-y: auto;
}
.invest-inner { width: 100%; max-width: 720px; }

.invest-head {
  text-align: center;
  margin-bottom: 24px;
}
.invest-head h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--n-900);
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.invest-head p {
  color: var(--n-500);
  font-size: 14px;
  margin: 0;
}

.start-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
}

/* Two-step wizard: thin progress bar with caption above. Subtle and
   not visually heavy like the old pill-style indicator. */
.wizard-progress {
  margin: 0 0 28px;
}
.wizard-progress-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}
.wizard-progress-step {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-500);
}
.wizard-progress-divider {
  color: var(--n-300);
  font-size: 12px;
}
.wizard-progress-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dp-navy);
  letter-spacing: -0.01em;
}
.wizard-progress-track {
  display: flex;
  gap: 4px;
  height: 4px;
}
.wizard-progress-seg {
  flex: 1;
  background: var(--n-100, #F1F3F7);
  border-radius: 2px;
  transition: background 0.18s;
}
.wizard-progress-seg--active {
  background: var(--dp-navy);
}

.wizard-pane { display: none; }
.wizard-pane--active { display: block; }

/* "What this scan does" intro block under the domain input. Numbered
   four-step rundown so the page has body without overwhelming. */
.wizard-intro {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.wizard-intro-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-500);
  margin-bottom: 14px;
}
.wizard-intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wizard-intro-list > li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.wizard-intro-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--n-50);
  color: var(--dp-navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  border: 1px solid var(--border);
}
.wizard-intro-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.wizard-intro-body strong {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dp-navy);
  letter-spacing: -0.01em;
}
.wizard-intro-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--n-600);
}

.wizard-back-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}
.wizard-domain-recap {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--n-500);
  letter-spacing: 0.005em;
}
.wizard-domain-recap strong {
  color: var(--dp-navy);
  font-weight: 700;
}

.wizard-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Disabled (Coming soon) track variant. */
.track-option--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.track-soon {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--n-100, #F1F3F7);
  color: var(--n-600);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Subtle error state on the domain input when wizard-next blocks empty. */
.input--error {
  border-color: #B3261E !important;
  background: #FDF5F4;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--n-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.domain-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.domain-row .input { flex: 1; font-size: 15px; padding: 12px 14px; }
.domain-row .btn.lg { padding: 0 18px; }

.try-links {
  margin-top: 8px;
  font-size: 12px;
  color: var(--n-400);
  display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
}
.try-links a {
  color: var(--dp-blue);
  text-decoration: none;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
}
.try-links a:hover { background: var(--s-info-bg); }

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.track-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  cursor: pointer;
  background: var(--surface);
  transition: border-color 0.12s, background 0.12s;
}
.track-option:hover { border-color: var(--dp-blue); background: var(--n-25); }
.track-option.selected {
  border-color: var(--dp-navy);
  background: linear-gradient(180deg, var(--dp-bg), #ffffff);
  box-shadow: inset 0 0 0 1px var(--dp-navy);
}
.track-option .label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--n-900);
  font-size: 13px;
}
.track-option .desc { color: var(--n-500); font-size: 11.5px; line-height: 1.4; }
.track-option .chip {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 2px;
}

.phases {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.phases-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}
.phases-head .section-label { flex: 1; }
.phases-nav { display: flex; gap: 4px; }
.phases-nav .btn {
  width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center;
}

.phase-card {
  background: linear-gradient(180deg, var(--n-25), var(--n-50));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.phase-label {
  font-size: 10px; font-weight: 700;
  color: var(--dp-blue);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.phase-title {
  font-size: 16px; font-weight: 700;
  color: var(--n-900);
  margin: 2px 0 6px;
}
.phase-desc { font-size: 12.5px; color: var(--n-500); line-height: 1.55; }
.phase-progress {
  margin-top: 10px;
  height: 3px; background: var(--n-100);
  border-radius: 3px; overflow: hidden;
}
.phase-progress-bar {
  height: 100%; background: var(--dp-navy);
  transition: width 0.3s var(--ease-out);
}
.phase-dots {
  display: flex; gap: 5px; justify-content: center;
  margin-top: 10px;
}
.phase-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--n-150); transition: all 0.2s; }
.phase-dot.active { width: 16px; border-radius: 3px; background: var(--dp-navy); }

/* Recent analyses */
.recent-card { padding: 16px 20px; }
.recent-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--n-800);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.recent-head .count {
  font-family: var(--font-mono);
  background: var(--n-50);
  color: var(--n-500);
  padding: 1px 7px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
  text-transform: none; letter-spacing: 0;
}

.recent-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 13px;
  margin: 0 -8px;
  transition: background 0.1s;
}
.recent-row:hover { background: var(--n-25); }
.recent-row .identity .brand { font-weight: 600; color: var(--n-900); }
.recent-row .identity .domain { color: var(--n-400); font-family: var(--font-mono); font-size: 11.5px; margin-left: 6px; }
.recent-row .identity .meta { font-size: 11px; color: var(--n-400); margin-top: 2px; }
.recent-row .agents {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--n-500);
  min-width: 52px;
  text-align: right;
}
.recent-row .track-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}
.recent-row .track-pill.bp  { background: var(--s-crit-bg); color: var(--s-crit); }
.recent-row .track-pill.sal { background: var(--s-info-bg); color: var(--s-info); }
.recent-row .track-pill.sec { background: var(--s-ok-bg);   color: var(--s-ok); }


/* ===== Report screen - Investigate-style minimalist look ===== */
.report-view {
  flex: 1;
  overflow-y: auto;
  padding: 56px 32px 80px;
  display: flex;
  justify-content: center;
  background: var(--dp-bg, #F9FAFB);
}
.report-doc {
  max-width: 760px;
  width: 100%;
}
.report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

/* Document header - centered, lighter, echoes Investigate's .invest-head */
.report-head {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 24px;
  margin-bottom: 28px;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.report-head .breadcrumb {
  font-size: 11px; font-weight: 600;
  color: var(--dp-blue); letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.report-head h1 {
  margin: 0;
  font-size: 30px; font-weight: 700;
  color: var(--dp-navy);
  letter-spacing: -0.022em;
  line-height: 1.15;
}
.report-head .meta {
  margin-top: 10px;
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  font-size: 12px; color: var(--n-500);
}
.report-head .meta span { display: inline-flex; align-items: center; gap: 4px; }

/* KPI summary - minimalist inline row, no card wrappers */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.kpi {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 4px 18px;
  transition: none;
}
.kpi:first-child { border-left: 0; padding-left: 0; }
.kpi:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}
.kpi .label {
  font-size: 10.5px; font-weight: 600;
  color: var(--n-500);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.kpi .value {
  font-size: 28px; font-weight: 700;
  color: var(--dp-navy);
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.kpi .trend { font-size: 11.5px; color: var(--n-500); margin-top: 6px; }
.kpi.crit { background: transparent; }
.kpi.crit .value { color: var(--s-crit); }
.kpi.warn { background: transparent; }
.kpi.warn .value { color: var(--s-warn); }
.kpi.ok   { background: transparent; }
.kpi.ok   .value { color: var(--s-ok); }

/* Section blocks - flat, separator-driven */
.report-section {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 0 4px;
  margin: 0;
  box-shadow: none;
}
.report-section:first-of-type { border-top: 0; padding-top: 36px; }
.report-section h2 {
  font-size: 18px; font-weight: 700;
  color: var(--dp-navy);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.report-section h2 .num {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  background: transparent;
  color: #6D28D9;
  border: 1px solid #D9CFFB;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  flex: none;
}

/* Lede paragraph */
.rp-lede {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--n-600);
  margin: 0 0 18px;
  max-width: 68ch;
}
.rp-lede strong { color: var(--n-900); font-weight: 600; }
.rp-lede code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: transparent;
  padding: 0;
  border: 0;
  color: var(--dp-navy);
}

/* Executive-summary bullets - hanging violet marker, no card wrap */
.exec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 0;
}
.exec-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--n-700);
}
.exec-list li:last-child { border-bottom: 0; }
.exec-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 19px;
  width: 10px; height: 2px;
  border-radius: 1px;
  background: #6D28D9;
}
.exec-list li strong { color: var(--n-900); font-weight: 600; }
.exec-list li code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: transparent;
  padding: 0;
  border: 0;
  color: var(--dp-navy);
}

/* Action list - Investigate track-option row, but flat */
.action-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.action-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-size: 13px;
  transition: none;
}
.action-list li:last-child { border-bottom: 0; }
.action-list li:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}
.action-list .num {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid #D9CFFB;
  color: #6D28D9;
  font-weight: 700; font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
  flex: none;
}
.action-list .num.crit { background: transparent; border-color: rgba(194,62,38,0.35); color: var(--s-crit); }
.action-list .num.warn { background: transparent; border-color: rgba(194,131,10,0.35); color: var(--s-warn); }
.action-list .num.info { background: transparent; border-color: #D9CFFB; color: #6D28D9; }
.action-list .text { color: var(--n-700); line-height: 1.6; }
.action-list .text .em { color: var(--dp-navy); font-weight: 600; }
.action-list .text code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: transparent;
  padding: 0;
  border: 0;
  color: var(--dp-navy);
}
.action-list .owner {
  font-size: 10.5px; color: var(--n-500);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Table caption + collapsible details - flat */
.rt-caption {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--n-500);
  margin: 0 0 10px;
}
.rp-details {
  margin-top: 18px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.rp-details > summary {
  list-style: none;
  padding: 14px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dp-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-details > summary::-webkit-details-marker { display: none; }
.rp-details > summary::before {
  content: '›';
  display: inline-block;
  color: var(--n-400);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.15s;
}
.rp-details[open] > summary::before { transform: rotate(90deg); }
.rp-details > summary code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: transparent;
  padding: 0;
  border: 0;
  color: var(--dp-navy);
  font-weight: 500;
}
.rp-details > summary:hover { background: transparent; color: #6D28D9; }
.rp-details > .rtable { border-top: 0; margin-bottom: 6px; }

/* Tables - borderless, rule-driven */
.rtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.rtable th {
  text-align: left;
  font-size: 10.5px; font-weight: 600;
  color: var(--n-500);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.rtable th:last-child { padding-right: 0; }
.rtable td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--n-700);
  font-variant-numeric: tabular-nums;
}
.rtable td:last-child { padding-right: 0; }
.rtable tr:last-child td { border-bottom: 0; }
.rtable tr:hover td { background: transparent; color: var(--n-900); }
.rtable td.mono { font-family: var(--font-mono); font-size: 11.5px; }
.rtable td.domain { color: var(--dp-navy); font-weight: 500; font-family: var(--font-mono); }
.rtable td.num { text-align: right; font-family: var(--font-mono); }

/* Trust pills stay - small semantic markers */
.pill {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  font-family: var(--font-mono);
}
.pill.crit { background: var(--s-crit-bg, #FEF0ED); color: var(--s-crit); }
.pill.warn { background: var(--s-warn-bg, #FEF6E7); color: var(--s-warn); }
.pill.ghost { background: transparent; color: var(--n-500); border: 1px solid var(--border); }

.sev-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
}
.sev-dot.crit { background: var(--s-crit); }
.sev-dot.warn { background: var(--s-warn); }
.sev-dot.info { background: var(--s-info); }
.sev-dot.ok   { background: var(--s-ok); }


/* ===== Login screen ===== */
.login-view {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 20%, rgba(36, 60, 204, 0.08), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(255, 199, 1, 0.08), transparent 50%),
    var(--surface-3);
}
.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(960px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.login-left { padding: 48px 44px; }
.login-left .brand-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.login-left .brand-row .mark {
  width: 28px; height: 28px;
  background: var(--dp-navy);
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--dp-cta); font-weight: 700;
  font-size: 13px;
}
.login-left .brand-row .name {
  font-weight: 700; color: var(--n-900); font-size: 15px;
}
.login-left h1 {
  font-size: 22px; font-weight: 700;
  color: var(--n-900);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.login-left .tag {
  color: var(--n-500); font-size: 13.5px;
  margin-bottom: 24px;
}
.login-left .form-row { margin-bottom: 14px; }
.login-left .form-row label { display: block; font-weight: 600; font-size: 12px; color: var(--n-700); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.login-left .submit-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px;
}
.login-left .help { font-size: 12px; color: var(--n-400); }

.login-right {
  background: linear-gradient(160deg, var(--n-900), var(--n-800) 60%, var(--dp-navy));
  color: var(--n-100);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.login-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 20%, rgba(255, 199, 1, 0.15), transparent 40%),
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  opacity: 0.7;
}
.login-right .section-label {
  position: relative; color: var(--dp-cta);
}
.login-right h2 {
  position: relative;
  margin: 8px 0 16px;
  font-size: 22px; font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}
.login-right ul {
  position: relative;
  list-style: none; padding: 0; margin: 0;
}
.login-right ul li {
  display: flex; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13.5px;
  color: var(--n-100);
}
.login-right ul li::before {
  content: '';
  width: 4px; height: 4px;
  margin-top: 9px;
  background: var(--dp-cta);
  border-radius: 50%;
  flex: none;
}
.login-right .stats {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 22px;
}
.login-right .stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 12px;
}
.login-right .stat-box .v {
  font-size: 18px; font-weight: 700; color: white;
  font-family: var(--font-mono);
}
.login-right .stat-box .k {
  font-size: 10px; color: var(--n-300);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ===== Agents documentation ===== */
.agents-view {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 64px;
  display: flex;
  justify-content: center;
}
.agents-doc {
  max-width: 920px;
  width: 100%;
}
.agents-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.agents-hero h1 {
  font-size: 26px; font-weight: 700;
  margin: 6px 0 8px;
  letter-spacing: -0.015em;
  color: var(--n-900);
}
.agents-hero p {
  font-size: 14px; color: var(--n-500);
  line-height: 1.6; max-width: 640px;
  margin: 0;
}

.arch-diagram {
  background: var(--n-25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 18px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--n-700);
  line-height: 1.6;
  white-space: pre;
  overflow-x: auto;
}
.arch-diagram .step-head { color: var(--dp-navy); font-weight: 700; }
.arch-diagram .muted { color: var(--n-400); }

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.agent-card-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, var(--n-300));
  border-radius: 10px;
  padding: 14px 16px;
}
.agent-card-doc h4 {
  margin: 0 0 4px; font-size: 14px; font-weight: 600;
  color: var(--n-900);
  display: flex; align-items: center; gap: 8px;
}
.agent-card-doc .meta {
  font-size: 10px; color: var(--n-400);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex; gap: 10px;
  font-family: var(--font-mono);
}
.agent-card-doc p {
  font-size: 12.5px; color: var(--n-500);
  line-height: 1.55;
  margin: 0 0 8px;
}
.agent-card-doc .tool-tags {
  display: flex; flex-wrap: wrap; gap: 3px;
}
.agent-card-doc .tool-tag {
  font-size: 10.5px;
  font-family: var(--font-mono);
  background: var(--n-50); color: var(--n-600);
  padding: 1px 6px; border-radius: 3px;
}

.track-section {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.track-section .track-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.track-section .track-head h2 {
  margin: 0; font-size: 16px; font-weight: 700; color: var(--n-900);
}
.track-section .track-head p {
  margin: 0; font-size: 12.5px; color: var(--n-500); flex: 1;
}

/* Phase dot in carousel */
.phase-dots { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }


/* ============================================================
   INVESTIGATE SHELL (sidebar + form canvas)
   ============================================================ */
.invest-shell {
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: var(--surface-3, #F4F6FB);
}

/* ---- Sidebar ---- */
.invest-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

/* ============================================================
   COLLAPSIBLE WRAPPER (open ↔ rail ↔ hidden)
   Same module used on Investigate, Live and Report.
   ============================================================ */
.invest-rail {
  display: flex;
  min-height: 0;
  position: relative;
}
.invest-rail > .invest-sidebar {
  display: none;
  flex: 1;
  width: 340px;
  min-height: 0;
}
.invest-rail > .invest-rail-collapsed { display: none; }
.invest-rail > .invest-reopen { display: none; }

.invest-rail.state-open > .invest-sidebar { display: flex; }
.invest-rail.state-rail > .invest-rail-collapsed { display: flex; }
.invest-rail.state-hidden > .invest-reopen { display: inline-flex; }

/* Hidden state: zero-width column, floating reopener button */
.invest-rail.state-hidden { width: 0; overflow: visible; }
.invest-rail > .invest-reopen {
  position: absolute;
  top: 18px; left: 12px;
  z-index: 40;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--n-500);
  box-shadow: 0 2px 6px rgba(15, 16, 48, 0.06);
  cursor: pointer;
}
.invest-rail > .invest-reopen:hover { color: var(--n-800); border-color: var(--n-300); }

.invest-rail-collapsed {
  width: 46px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0 16px;
  background: var(--surface-2, #FAFBFE);
  border-right: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  min-height: 0;
  overflow: hidden;
}

.invest-rail-collapsed .irc-toggle {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--n-500);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
}
.invest-rail-collapsed .irc-toggle:hover { color: var(--n-800); background: var(--surface-3); }
.invest-rail-collapsed:hover .irc-toggle { color: var(--n-800); }
.invest-rail-collapsed .irc-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--n-400);
  margin: 4px 0 10px;
}
.invest-rail-collapsed .irc-stack {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%; align-items: center;
  overflow-y: auto;
  padding: 4px 0;
}

/* Brand chip in the collapsed rail - no track-colour strips */
.irc-chip {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .12s, border-color .12s;
}
.irc-chip:hover { background: var(--surface-3); border-color: var(--n-300); }
.irc-chip .irc-init {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--n-700);
  letter-spacing: -0.01em;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.irc-chip.is-current {
  background: var(--dp-blue-soft);
  border-color: var(--dp-blue);
}
.irc-chip.is-current .irc-init { color: var(--dp-blue); }
.irc-chip .irc-live-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--s-ok, #10b981);
  box-shadow: 0 0 0 2px var(--surface-2, #FAFBFE), 0 0 0 3px rgba(16,185,129,.45);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Head-action row in the expanded sidebar */
.is-head-actions { display: inline-flex; gap: 4px; margin-left: 6px; }
.is-collapse, .is-hide {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--n-400);
  cursor: pointer;
}
.is-collapse:hover, .is-hide:hover {
  color: var(--n-800);
  background: var(--surface-3);
  border-color: var(--border);
}

.is-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.is-title {
  font-size: 13px; font-weight: 700;
  color: var(--n-900);
  letter-spacing: -0.005em;
  flex: 1;
}
.is-new { padding: 6px 10px; font-size: 12px; }
.is-new .icon { width: 12px; height: 12px; }

.is-search-row {
  display: flex; gap: 6px;
  padding: 10px 14px 8px;
  align-items: center;
  flex: none;
}
.is-search {
  position: relative;
  flex: 1;
  display: flex; align-items: center;
  background: var(--n-25, #F8FAFC);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 10px;
  height: 30px;
  transition: border-color 0.12s, background 0.12s;
}
.is-search:focus-within {
  border-color: var(--dp-blue);
  background: var(--surface);
}
.is-search svg { color: var(--n-400); flex: none; }
.is-search input {
  flex: 1;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 12.5px;
  color: var(--n-900);
  padding: 0 8px;
}
.is-search input::placeholder { color: var(--n-400); }
.is-iconbtn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--n-500);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.is-iconbtn:hover { color: var(--n-900); border-color: var(--border-strong); background: var(--n-25); }
.is-iconbtn[aria-expanded="true"] {
  color: var(--dp-blue, #243CCC);
  border-color: var(--dp-blue, #243CCC);
  background: rgba(36, 60, 204, 0.06);
}

/* Popover wrapper - anchors popover below its button */
.is-btn-wrap { position: relative; display: flex; }

/* Dropdown popover (shared for filter and sort) */
.is-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 44px -20px rgba(15, 23, 42, 0.28), 0 2px 6px -2px rgba(15, 23, 42, 0.08);
  padding: 6px;
  font-size: 12.5px;
  animation: is-pop-in 140ms cubic-bezier(.2,.9,.3,1.2);
  transform-origin: top right;
}
.is-popover[hidden] { display: none; }
.is-popover-sm { min-width: 190px; }
@keyframes is-pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.is-pop-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--n-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px 8px;
}

.is-pop-section {
  padding: 4px 8px 10px;
  border-top: 1px solid var(--border-subtle, var(--border));
}
.is-pop-section:first-of-type { border-top: 0; }
.is-pop-label {
  font-size: 11px;
  color: var(--n-600);
  font-weight: 600;
  padding: 4px 2px 6px;
}
.is-pop-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.is-chip {
  font: inherit; font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--n-700);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.is-chip:hover { background: var(--n-25); color: var(--n-900); }
.is-chip.is-active {
  background: var(--dp-blue, #243CCC);
  border-color: var(--dp-blue, #243CCC);
  color: #fff;
}

.is-pop-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 12.5px;
  color: var(--n-800);
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, color 0.1s;
}
.is-pop-item:hover { background: var(--n-25); color: var(--n-900); }
.is-pop-item .is-pop-check { opacity: 0; color: var(--dp-blue, #243CCC); flex: none; }
.is-pop-item.is-active { color: var(--dp-blue, #243CCC); font-weight: 600; }
.is-pop-item.is-active .is-pop-check { opacity: 1; }
.is-pop-divider { height: 1px; background: var(--border-subtle, var(--border)); margin: 4px 6px; }

.is-pop-foot {
  padding: 8px 6px 4px;
  border-top: 1px solid var(--border-subtle, var(--border));
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}
.is-pop-reset {
  font: inherit;
  font-size: 11.5px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  color: var(--n-700);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.is-pop-reset:hover { background: var(--n-25); color: var(--n-900); }

/* Sidebar rows hidden by filter */
.is-row[data-filtered="true"] { display: none; }
.is-group[data-empty="true"] { display: none; }

.is-filters {
  display: flex; gap: 5px;
  padding: 2px 14px 10px;
  flex: none;
  overflow-x: auto;
}
.is-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px; font-weight: 500;
  color: var(--n-600);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.is-chip:hover { background: var(--n-25); color: var(--n-900); }
.is-chip.active {
  background: var(--dp-navy);
  border-color: var(--dp-navy);
  color: #fff;
}
.is-chip .c {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.75;
}
.is-chip.active .c { opacity: 0.85; }

/* List area */
.is-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 12px;
  border-top: 1px solid var(--border);
}

/* Empty state (shown when body[data-invest-state="empty"]) ------------------- */
.is-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px 32px;
  gap: 10px;
  border-top: 1px solid var(--border);
  color: var(--n-600);
  flex: 1;
  min-height: 0;
}
.is-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--n-50);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--n-500);
  margin-bottom: 4px;
}
.is-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--n-900);
  letter-spacing: -0.01em;
}
.is-empty-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--n-600);
  max-width: 240px;
}
.is-empty-arrow {
  margin-top: 14px;
  color: var(--dp-blue);
  opacity: 0.7;
  animation: empty-arrow 1.6s ease-in-out infinite;
}
@keyframes empty-arrow {
  0%,100% { transform: translateX(0); opacity: 0.5; }
  50%     { transform: translateX(6px); opacity: 1; }
}

/* Toggle when in empty state: hide populated UI, show empty block */
body[data-invest-state="empty"] .is-list,
body[data-invest-state="empty"] .is-filters,
body[data-invest-state="empty"] .is-search-row,
body[data-invest-state="empty"] .is-list-foot {
  display: none !important;
}
body[data-invest-state="empty"] .is-empty {
  display: flex;
}
body[data-invest-state="empty"] .is-new {
  /* keep New button prominent on empty */
  box-shadow: 0 0 0 3px rgba(43, 58, 228, 0.12);
}

/* Welcome pill on the right pane, only in empty mode */
.invest-welcome {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(43, 58, 228, 0.08);
  color: var(--dp-blue);
  border: 1px solid rgba(43, 58, 228, 0.18);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  margin: 0 auto 20px;
  width: fit-content;
  letter-spacing: -0.005em;
}
body[data-invest-state="empty"] .invest-welcome {
  display: inline-flex;
}

/* ================================================================
   State toggle floating control (shared with Report)
   ================================================================ */
.state-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.state-toggle .st-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--n-500);
  padding: 2px 2px 4px;
}
.state-toggle .st-opts {
  display: flex;
  gap: 4px;
  background: var(--n-25);
  padding: 2px;
  border-radius: 6px;
}
.state-toggle .st-opts button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--n-600);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.state-toggle .st-opts button.active {
  background: var(--dp-navy);
  color: #fff;
}
.is-group { }
.is-group-head {
  padding: 12px 16px 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--n-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  background: var(--surface);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.is-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  padding: 10px 14px 10px 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.1s;
}
.is-row:hover { background: var(--n-25); }

/* Delete button on sidebar rows. The base rule deliberately targets .is-del
   bare (not .is-brand-row .is-del): the button moved from the brand row to
   the meta line, and a placement-scoped selector silently stopped matching -
   the button fell back to default <button> chrome (grey box) and was always
   visible. Hidden by default, revealed on row hover or keyboard focus. */
.is-del {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  color: var(--n-400);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s, color 0.12s, background 0.12s, border-color 0.12s;
  padding: 0;
  flex: none;
}
.is-brand-row .is-del { margin-left: auto; }
.is-row:hover .is-del,
.is-del:focus-visible { opacity: 1; }
.is-del:hover {
  background: #FFF1F0;
  color: #B91C1C;
  border-color: #FECACA;
}
.is-del:disabled { opacity: 0.4; cursor: wait; }
/* Trash on the meta line, next to the version chip: tiny + hover-revealed so
   it can't be hit by accident when opening a row. Overrides the brand-row size. */
.is-meta .is-del {
  margin-left: 4px;
  width: 16px; height: 16px;
  flex: none;
}
.is-row:last-child { border-bottom: none; }

/* Currently-open investigation in the right pane */
.is-row.is-selected {
  background: var(--dp-blue-soft, #EEF0FF);
}
.is-row.is-selected::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--dp-navy);
  border-radius: 2px;
}
.is-row.is-selected .is-brand { color: var(--dp-navy); }

.is-track { display: none; }   /* colour bars removed - findings carry the colour */

.is-main { min-width: 0; }
.is-brand-row {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px;
}
.is-brand {
  font-weight: 600;
  font-size: 13px;
  color: var(--n-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}
/* Track label sits inline next to the brand (line 1), muted so the brand
   stays the dominant anchor of the row. */
.is-brand-row .is-sep {
  color: var(--n-200);
  font-size: 12px;
  flex: none;
}
.is-track-label {
  font-size: 12px;
  color: var(--n-500);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}
.is-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 3px;
  flex: none;
}
.is-pill.live {
  background: var(--s-info-bg); color: var(--s-info);
}
.is-pill.live .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--s-info);
  animation: is-pulse 1.4s ease-in-out infinite;
}
.is-pill.fail {
  background: var(--s-crit-bg); color: var(--s-crit);
}
@keyframes is-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.is-domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--n-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-meta {
  font-size: 11px;
  color: var(--n-400);
  margin-top: 3px;
  display: flex; gap: 5px; align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-meta .sep { color: var(--n-200); }
.is-meta .is-ver {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--n-500);
  background: var(--n-50);
  border: 1px solid var(--border);
  padding: 0 5px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Findings column: single-line "NN findings" right-aligned against the
   row edge. One baseline per row so every row's end-of-text lines up
   cleanly down the page - no centered stack wobbling between 1, 2 and
   3-digit counts. Tabular-nums keeps 7 and 93 the same width so the
   numeric column never jitters. */
.is-findings {
  /* Two-row column to match the two-line left side: big count aligns
     with the brand name (top), small "findings" label aligns with the
     meta row (bottom). align-items on .is-row is 'stretch' so this
     column fills the full row height, and we space-between the two
     children so they land on the brand/meta baselines. */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2px;
  padding: 1px 0 2px;
  flex: none;
  min-width: 72px;
}
.is-findings .n {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--n-900);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.is-findings .l {
  font-size: 10px;
  color: var(--n-500);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  line-height: 1;
  font-weight: 500;
}
.is-findings.muted .n { color: var(--n-300); }
.is-findings .crit-dot {
  /* Inline above the count so two-digit critical-counts don't overlap the
     findings number. Stays right-aligned with the column. */
  order: -1;
  margin-bottom: 4px;
  min-width: 18px; height: 16px;
  border-radius: 9px;
  background: var(--s-crit);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  display: inline-grid; place-items: center;
  padding: 0 6px;
  line-height: 1;
}

.is-row.live {
  background: #fff;
}
.is-row.live:hover {
  background: var(--n-25);
}
.is-row.failed .is-brand { color: var(--n-600); }
.is-row.failed .is-domain { color: var(--n-400); }

.is-list-foot {
  padding: 14px 16px;
  text-align: center;
}
.is-list-foot a {
  font-size: 12px;
  color: var(--dp-blue);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.is-list-foot a:hover { text-decoration: underline; }

/* Footer: quota */
.is-foot {
  flex: none;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--n-25, #F8FAFC);
}
.is-quota-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: var(--n-600);
  margin-bottom: 5px;
  white-space: nowrap;
  gap: 8px;
}
.is-quota-row .mono {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--n-900);
}
.is-quota-bar {
  height: 4px;
  background: var(--n-100, #E5E9F0);
  border-radius: 999px;
  overflow: hidden;
}
.is-quota-bar > div {
  height: 100%;
  background: var(--dp-blue);
  border-radius: 999px;
}

/* Right canvas: looser padding when inside the two-pane shell */
.invest-shell .invest {
  overflow-y: auto;
  padding: 48px 32px 56px;
  /* grid default align-content: start keeps content anchored at the top
     so overflow is scrollable. Horizontal centering comes from justify-items
     on the base .invest rule plus margin:0 auto on .invest-inner. */
  align-content: start;
}
.invest-shell .invest-inner {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Disabled nav links in the topbar (when no matching investigation exists) */
.topbar-nav a[data-disabled="1"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Responsive: shrink sidebar slightly on medium screens */
@media (max-width: 1100px) {
  .invest-shell { grid-template-columns: 300px minmax(0, 1fr); }
  .invest-shell .invest { padding: 36px 24px 48px; }
}
/* Responsive: stack only on genuinely narrow viewports */
@media (max-width: 720px) {
  .invest-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .invest-sidebar { max-height: 44vh; }
}

/* ============================================================
   TOPBAR ACCOUNT MENU (injected on every topbar by app.js)
   ============================================================ */
.topbar-account {
  position: relative;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
  height: 52px;
  display: flex;
  align-items: center;
  flex: none;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 4px 8px 4px 4px;
  cursor: pointer;
  color: var(--n-800);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s;
}
.account-btn:hover { background: var(--n-25); border-color: var(--border); }
.topbar-account.open .account-btn {
  background: var(--n-25);
  border-color: var(--border);
}
.account-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dp-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
  flex: none;
}
.account-name {
  white-space: nowrap;
  color: var(--n-800);
  font-weight: 500;
}
.account-chev {
  color: var(--n-400);
  transition: transform 0.15s;
  flex: none;
}
.topbar-account.open .account-chev {
  transform: rotate(180deg);
  color: var(--n-700);
}
@media (max-width: 900px) {
  .account-name { display: none; }
  .account-btn { padding: 4px; }
  .topbar-account { padding-left: 6px; }
}

.account-menu {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 4px;
  z-index: 100;
  animation: am-in 0.14s var(--ease-out);
}
@keyframes am-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.am-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 12px;
}
.am-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--dp-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
.am-id { min-width: 0; flex: 1; }
.am-name {
  font-size: 13px; font-weight: 600;
  color: var(--n-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.am-email {
  font-size: 11.5px;
  color: var(--n-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.am-org {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 6px 4px;
  padding: 8px 10px;
  background: var(--dp-blue-soft, #F1ECFF);
  border-radius: 7px;
}
.am-org-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--n-500);
}
.am-org-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-navy);
}
.am-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 6px;
}
.am-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--n-800);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}
.am-item:hover {
  background: var(--dp-blue-soft, #F1ECFF);
  color: var(--n-900);
}
.am-item svg {
  color: var(--n-400);
  flex: none;
}
.am-item:hover svg {
  color: var(--dp-blue);
}
.am-item.danger {
  color: var(--s-crit);
}
.am-item.danger svg { color: var(--s-crit); opacity: 0.7; }
.am-item.danger:hover {
  background: var(--s-crit-bg);
  color: var(--s-crit);
}
.am-item.danger:hover svg { color: var(--s-crit); opacity: 1; }

/* ============================================================
   INVESTIGATE - Dataprovider-native polish
   ============================================================ */
.invest-shell { background: var(--dp-bg); }

/* ============================================================
   INVESTIGATE \u2014 Right pane (form OR inline report view)
   ============================================================ */
.invest-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--dp-bg);
}
/* Default: show form, hide report */
.invest-right [data-pane-target="report"] { display: none; }
.invest-right [data-pane-target="new"]    { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* Report pane active */
.invest-right[data-pane="report"] [data-pane-target="report"] {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
}
.invest-right[data-pane="report"] [data-pane-target="new"] { display: none; }

/* --- inline report pane --- */
.invest-report-pane {
  background: var(--dp-bg);
}
.irp-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex: none;
}
.irp-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--n-600);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.irp-back:hover { background: var(--n-25); color: var(--dp-navy); border-color: var(--dp-navy); }
.irp-back svg { color: currentColor; }
.irp-bar-meta {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--n-500);
}
.irp-brand {
  font-weight: 600;
  color: var(--dp-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.irp-domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--n-500);
}
.irp-sep { color: var(--n-300); }
.irp-agents {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--n-600);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.irp-agents:hover { background: var(--n-25); color: var(--dp-navy); border-color: var(--dp-navy); }
.irp-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--dp-bg);
  min-height: 0;
}

.invest-head h1 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--dp-navy);
  font-weight: 700;
  margin-bottom: 8px;
}
.invest-head p {
  color: var(--n-500);
  font-size: 14px;
  max-width: 540px;
  margin: 0 auto;
}

/* Ask-style prompt card (echoes Dataprovider "Ask AI Navigator") */
.start-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.start-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 48px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, var(--dp-blue-soft, #F1ECFF), transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}
.start-card > * { position: relative; }

.field-label {
  color: var(--n-600);
  font-weight: 600;
}
.domain-row .input {
  border-radius: 9px;
  border-color: var(--border-strong);
}
.domain-row .input:focus {
  border-color: var(--dp-blue);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
  outline: none;
}
.domain-row .btn.primary.lg {
  border-radius: 9px;
  background: var(--dp-navy);
  border-color: var(--dp-navy);
}
.domain-row .btn.primary.lg:hover {
  background: var(--dp-navy-2);
  border-color: var(--dp-navy-2);
}

/* Track cards - Dataprovider-style tiles with lavender icon badges */
.tracks-block {
  margin-top: 22px;
}
.tracks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tracks-hint {
  font-size: 11.5px;
  color: var(--n-500);
}
.track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.track-option {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
}
.track-option:hover {
  border-color: var(--dp-blue);
  box-shadow: 0 4px 14px -6px rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
}
.track-option.selected {
  border-color: var(--dp-navy);
  box-shadow: inset 0 0 0 1px var(--dp-navy), 0 4px 14px -6px rgba(17, 24, 53, 0.18);
  background: linear-gradient(180deg, #FAF8FF, #FFFFFF);
}
.track-badge {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dp-blue-soft, #F1ECFF);
  color: var(--dp-blue);
}
.track-badge svg { width: 18px; height: 18px; }
.track-badge[data-tone="violet"] { background: #F1ECFF; color: #6D28D9; }
.track-badge[data-tone="blue"]   { background: #E8F0FF; color: #2563EB; }
.track-badge[data-tone="teal"]   { background: #E2F5EE; color: #0F766E; }
.track-badge[data-tone="ghost"]  { background: transparent; color: var(--n-500); border: 1.5px dashed var(--border-strong, #D7D4E4); }
.track-body { min-width: 0; }
.track-title {
  font-size: 13px;
  color: var(--dp-navy);
  font-weight: 600;
  margin-bottom: 2px;
}
.track-desc {
  font-size: 11.5px;
  color: var(--n-500);
  line-height: 1.45;
  margin-bottom: 8px;
}
.track-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--n-500);
  font-variant-numeric: tabular-nums;
}
.track-meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--n-300, #C9C6D8);
}
.track-request-cta {
  color: var(--dp-blue);
  font-weight: 600;
  font-size: 11px;
}
.track-check {
  width: 16px; height: 16px;
  color: var(--dp-navy);
  opacity: 0;
  transition: opacity 0.15s;
  align-self: center;
}
.track-option.selected .track-check { opacity: 1; }

/* Request tile - dashed to signal extensibility */
.track-option.track-request {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}
.track-option.track-request:hover {
  background: var(--dp-blue-soft, #F1ECFF);
  border-color: var(--dp-blue);
  border-style: dashed;
}

/* Roadmap pills - hints at extensibility */
.tracks-roadmap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tracks-roadmap-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--n-500);
  margin-right: 4px;
}
.roadmap-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--n-600);
  background: var(--n-50, #F3F1F8);
  border: 1px solid var(--border);
}
.roadmap-pill::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--dp-blue);
  opacity: 0.55;
}

/* Request-a-track modal */
.tr-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
.tr-modal[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
}
.tr-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(17, 24, 53, 0.42);
  backdrop-filter: blur(4px);
}
.tr-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 60px -20px rgba(17, 24, 53, 0.35);
  border: 1px solid var(--border);
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s;
}
.tr-modal[aria-hidden="false"] .tr-modal-card { transform: translateY(0) scale(1); }
.tr-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--n-500);
  cursor: pointer;
}
.tr-modal-close:hover { background: var(--n-50); color: var(--dp-navy); }
.tr-modal-head {
  padding: 24px 24px 4px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
}
.tr-modal-badge {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dp-blue-soft, #F1ECFF);
  color: var(--dp-blue);
}
.tr-modal-badge svg { width: 22px; height: 22px; }
.tr-modal-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dp-blue);
  margin-bottom: 2px;
}
.tr-modal-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--dp-navy);
  letter-spacing: -0.01em;
}
.tr-modal-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--n-600);
  line-height: 1.5;
}
.tr-modal-body {
  padding: 18px 24px 8px;
  display: grid;
  gap: 14px;
}
.tr-field { display: grid; gap: 6px; }
.tr-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--n-500);
}
.tr-field input,
.tr-field textarea {
  width: 100%;
  font: inherit;
  font-size: 13px;
  color: var(--dp-navy);
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  resize: vertical;
}
.tr-field input:focus,
.tr-field textarea:focus {
  outline: none;
  border-color: var(--dp-blue);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}
.tr-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tr-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tr-chip {
  font: inherit;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--n-600);
  cursor: pointer;
  transition: all 0.12s;
}
.tr-chip:hover { border-color: var(--dp-blue); color: var(--dp-blue); }
.tr-chip.is-on {
  background: var(--dp-navy);
  border-color: var(--dp-navy);
  color: #fff;
}
.tr-modal-foot {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tr-foot-note { font-size: 11.5px; color: var(--n-500); }
.tr-foot-actions { display: flex; gap: 8px; }

/* Phase carousel - calmer */
.phases { border-top-color: var(--border); }
.phase-card {
  background: var(--dp-blue-soft, #F1ECFF);
  border-color: transparent;
}
.phase-label { color: var(--dp-blue); font-weight: 700; }
.phase-title { color: var(--dp-navy); }
.phase-desc { color: var(--n-600); }
.phase-progress-bar { background: var(--dp-navy); }
.phase-dot.active { background: var(--dp-navy); }

/* Sidebar tweak: cleaner title */
.is-title {
  color: var(--dp-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.is-chip.active {
  background: var(--dp-navy);
  border-color: var(--dp-navy);
}
.is-brand { color: var(--dp-navy); }
.is-quota-bar > div { background: var(--dp-navy); }

/* Wordmark weight tweak - matches Dataprovider feel */
.topbar-brand .brand-name {
  color: var(--dp-navy);
}


/* ==================================================================== *
 *  Start-card style variants (Tweak: Default / Editorial / Minimal)     *
 * ==================================================================== */
.invest-head { position: relative; }
.style-switch {
  position: static;
  margin-top: 10px;
  display: inline-flex;
  padding: 3px;
  background: var(--n-25);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 2px;
  align-self: flex-start;
}
.style-switch .ss-btn {
  font: inherit; font-size: 11.5px; font-weight: 600;
  padding: 5px 11px; border: 0; border-radius: 999px;
  background: transparent; color: var(--n-600); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.style-switch .ss-btn:hover { color: var(--n-900); }
.style-switch .ss-btn.is-active {
  background: #fff; color: var(--n-900);
  box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 1px var(--border);
}

/* ---------- Editorial ---------- */
.start-card[data-style="editorial"] {
  background: #FBF8F2; border-color: #0B1220;
  border-radius: 4px; padding: 0; overflow: hidden;
  box-shadow: 6px 6px 0 0 #0B1220;
}
.start-card[data-style="editorial"]::before { display: none; }
.start-card[data-style="editorial"] > * { padding-left: 26px; padding-right: 26px; }
.start-card[data-style="editorial"] .field-label:first-of-type {
  background: #0B1220; color: #FFC701;
  margin: 0 -26px; padding: 14px 26px 12px;
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; border-bottom: 3px solid #FFC701;
}
.start-card[data-style="editorial"] .domain-row { margin-top: 16px; gap: 8px; }
.start-card[data-style="editorial"] .domain-row .input {
  background: transparent; border: 0; border-bottom: 2px solid #0B1220;
  border-radius: 0; padding-left: 2px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 22px; font-weight: 600; color: #0B1220;
}
.start-card[data-style="editorial"] .domain-row .input:focus {
  border-bottom-color: #FFC701; box-shadow: 0 2px 0 0 #FFC701;
}
.start-card[data-style="editorial"] .domain-row .btn.primary.lg {
  background: #FFC701; border: 2px solid #0B1220; color: #0B1220;
  font-weight: 700; border-radius: 0; padding: 0 18px; height: 46px;
  box-shadow: 3px 3px 0 0 #0B1220;
  transition: transform .1s, box-shadow .1s;
}
.start-card[data-style="editorial"] .domain-row .btn.primary.lg:hover {
  background: #FFD72E; transform: translate(-1px,-1px); box-shadow: 4px 4px 0 0 #0B1220;
}
.start-card[data-style="editorial"] .domain-row .btn.primary.lg:active {
  transform: translate(2px,2px); box-shadow: 1px 1px 0 0 #0B1220;
}
.start-card[data-style="editorial"] .try-links {
  margin-top: 10px; font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11.5px; color: rgba(11,18,32,.6);
}
.start-card[data-style="editorial"] .try-links a {
  color: #0B1220; text-decoration: underline;
  text-decoration-color: #FFC701; text-underline-offset: 3px; text-decoration-thickness: 2px;
}
.start-card[data-style="editorial"] .tracks-block { margin-top: 22px; }
.start-card[data-style="editorial"] .tracks-head .field-label {
  background: transparent; color: #0B1220;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  border: 0; padding: 0; margin: 0 !important;
}
.start-card[data-style="editorial"] .tracks-hint {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px; color: rgba(11,18,32,.55);
}
.start-card[data-style="editorial"] .track-grid {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid rgba(11,18,32,.15); counter-reset: track;
}
.start-card[data-style="editorial"] .track-option {
  background: transparent; border: 0;
  border-bottom: 1px solid rgba(11,18,32,.15);
  border-radius: 0; padding: 14px 10px 14px 56px;
  display: grid; grid-template-columns: 1fr auto; position: relative;
  gap: 12px; counter-increment: track; box-shadow: none;
  transition: background .1s;
}
.start-card[data-style="editorial"] .track-option::before {
  content: counter(track, decimal-leading-zero);
  position: absolute; left: 10px; top: 14px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 22px; font-weight: 700; color: #0B1220; line-height: 1;
}
.start-card[data-style="editorial"] .track-option .track-badge { display: none; }
.start-card[data-style="editorial"] .track-option:hover { background: rgba(255,199,1,.1); }
.start-card[data-style="editorial"] .track-option.selected { background: #0B1220; }
.start-card[data-style="editorial"] .track-option.selected::before { color: #FFC701; }
.start-card[data-style="editorial"] .track-option.selected .track-title { color: #FFC701; }
.start-card[data-style="editorial"] .track-option.selected .track-desc,
.start-card[data-style="editorial"] .track-option.selected .track-meta { color: rgba(255,255,255,.7); }
.start-card[data-style="editorial"] .track-option.selected .track-check { color: #FFC701; background: transparent; box-shadow: none; }
.start-card[data-style="editorial"] .track-title { font-size: 15px; font-weight: 700; color: #0B1220; }
.start-card[data-style="editorial"] .track-desc { font-size: 12.5px; color: rgba(11,18,32,.7); margin-top: 2px; }
.start-card[data-style="editorial"] .track-meta {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px; color: rgba(11,18,32,.55); margin-top: 6px;
}
.start-card[data-style="editorial"] .track-check { width: 16px; height: 16px; color: #0B1220; align-self: center; }
.start-card[data-style="editorial"] .tracks-roadmap { padding: 18px 26px; border-top: 1px solid rgba(11,18,32,.1); margin: 14px -26px 0; }
.start-card[data-style="editorial"] .tracks-roadmap-label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(11,18,32,.55);
}
.start-card[data-style="editorial"] .roadmap-pill {
  background: transparent; border: 1px solid #0B1220; color: #0B1220;
  border-radius: 0; font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px; padding: 3px 8px;
}
.start-card[data-style="editorial"] .phases {
  margin: 0 -26px; padding: 20px 26px 22px; background: #0B1220; color: #fff;
}
.start-card[data-style="editorial"] .phases-head .section-label { color: #FFC701; font-family: var(--font-mono, ui-monospace, monospace); }
.start-card[data-style="editorial"] .phase-card { background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 0; }
.start-card[data-style="editorial"] .phase-label { color: #FFC701; font-family: var(--font-mono, ui-monospace, monospace); }
.start-card[data-style="editorial"] .phase-title { color: #fff; }
.start-card[data-style="editorial"] .phase-desc { color: rgba(255,255,255,.7); }
.start-card[data-style="editorial"] .phase-progress { background: rgba(255,255,255,.15); }
.start-card[data-style="editorial"] .phase-progress-bar { background: #FFC701; }
.start-card[data-style="editorial"] .phases-nav .btn {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.25);
}
.start-card[data-style="editorial"] .phases-nav .btn:hover { background: rgba(255,255,255,.08); }

/* ---------- Minimal ---------- */
.start-card[data-style="minimal"] {
  background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 8px 0 0;
}
.start-card[data-style="minimal"]::before { display: none; }
.start-card[data-style="minimal"] .field-label {
  color: var(--n-500); font-weight: 500; font-size: 11.5px;
  letter-spacing: .04em; text-transform: uppercase;
}
.start-card[data-style="minimal"] .domain-row {
  margin-top: 8px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border); align-items: end; gap: 14px;
}
.start-card[data-style="minimal"] .domain-row .input {
  background: transparent; border: 0; border-bottom: 1px solid var(--border-strong);
  border-radius: 0; padding: 4px 0 8px; font-size: 28px; font-weight: 500;
  color: var(--n-900); letter-spacing: -.02em;
}
.start-card[data-style="minimal"] .domain-row .input:focus {
  border-bottom-color: var(--dp-blue); box-shadow: 0 1px 0 0 var(--dp-blue);
}
.start-card[data-style="minimal"] .domain-row .btn.primary.lg {
  background: transparent; color: var(--dp-blue); border: 0; padding: 0 4px 8px;
  font-weight: 600; font-size: 14px; border-bottom: 1px solid transparent;
  border-radius: 0; height: auto; box-shadow: none;
}
.start-card[data-style="minimal"] .domain-row .btn.primary.lg:hover {
  color: var(--dp-navy); border-bottom-color: var(--dp-navy); background: transparent;
}
.start-card[data-style="minimal"] .try-links { padding-top: 10px; font-size: 12px; color: var(--n-500); }
.start-card[data-style="minimal"] .tracks-block { margin-top: 34px; padding-top: 0; }
.start-card[data-style="minimal"] .tracks-head { margin-bottom: 16px; }
.start-card[data-style="minimal"] .track-grid {
  grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--border); display: grid;
}
.start-card[data-style="minimal"] .track-option {
  background: transparent; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; padding: 16px 4px 16px 0; box-shadow: none;
  display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start;
  transition: background .12s, padding .12s;
}
.start-card[data-style="minimal"] .track-option:hover { background: linear-gradient(90deg, var(--n-25), transparent 70%); }
.start-card[data-style="minimal"] .track-option.selected {
  background: transparent; box-shadow: inset 3px 0 0 0 var(--dp-blue); padding-left: 14px;
}
.start-card[data-style="minimal"] .track-badge {
  width: 28px; height: 28px; border-radius: 0; background: transparent; color: var(--n-700); box-shadow: none;
}
.start-card[data-style="minimal"] .track-option.selected .track-badge { color: var(--dp-blue); }
.start-card[data-style="minimal"] .track-title { font-size: 14.5px; font-weight: 600; color: var(--n-900); }
.start-card[data-style="minimal"] .track-desc { font-size: 12.5px; color: var(--n-500); margin-top: 2px; }
.start-card[data-style="minimal"] .track-meta { font-size: 11px; color: var(--n-500); margin-top: 4px; }
.start-card[data-style="minimal"] .track-check { color: var(--dp-blue); align-self: center; }
.start-card[data-style="minimal"] .tracks-roadmap { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.start-card[data-style="minimal"] .roadmap-pill {
  background: transparent; border: 1px solid var(--border); color: var(--n-600); font-weight: 500;
}
.start-card[data-style="minimal"] .phases { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); background: transparent; }
.start-card[data-style="minimal"] .phase-card { background: transparent; border: 1px solid var(--border); box-shadow: none; }
