.portfolio-page {
  --studio: #071f1b;
  --studio-2: #0b2d27;
  --studio-line: rgba(134, 224, 191, .14);
  background: #f7fbf9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.studio-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(circle at 83% 24%, rgba(24, 167, 119, .24), transparent 29%),
    radial-gradient(circle at 8% 90%, rgba(74, 205, 158, .11), transparent 24%),
    var(--studio);
  color: #fff;
}

.studio-hero::before {
  content: "";
  position: absolute;
  width: 530px;
  height: 530px;
  right: -180px;
  top: -240px;
  border: 1px solid rgba(110, 224, 184, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(71, 202, 157, .035), 0 0 0 144px rgba(71, 202, 157, .02);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image: linear-gradient(var(--studio-line) 1px, transparent 1px), linear-gradient(90deg, var(--studio-line) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to right, transparent, #000 34%, #000 80%, transparent);
}

.studio-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: .96fr 1.04fr;
  gap: 64px;
  align-items: center;
}

.signal-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
  color: #8ddfc2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.signal-label i,
.dataset-stamp i,
.coverage-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #44d59f;
  box-shadow: 0 0 0 5px rgba(68, 213, 159, .12), 0 0 20px rgba(68, 213, 159, .8);
}

.studio-copy h1 {
  max-width: 650px;
  margin: 0;
  font: 800 clamp(45px, 5.3vw, 70px)/1.01 var(--display);
  letter-spacing: -.058em;
}

.studio-copy h1 span { color: #5cdbad; }
.studio-copy .lead { max-width: 620px; margin: 25px 0 0; color: #b7cbc4; }
.studio-copy .hero-actions { margin-top: 33px; }

.button-ghost-light {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
}

.button-ghost-light:hover { border-color: #6fdbb5; background: rgba(255, 255, 255, .05); }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 27px;
  color: #8fa8a0;
  font-size: 11px;
  font-weight: 700;
}

.hero-proof span::before { content: "✓"; margin-right: 7px; color: #5cdbad; }

.ownership-preview {
  position: relative;
  padding: 21px;
  border: 1px solid rgba(161, 228, 205, .18);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .035));
  box-shadow: 0 40px 100px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.preview-head,
.preview-person,
.preview-alert { display: flex; align-items: center; }

.preview-head {
  justify-content: space-between;
  padding: 0 3px 17px;
  color: #69d9b1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

.preview-head span { display: flex; align-items: center; gap: 7px; }
.preview-head i { width: 6px; height: 6px; border-radius: 50%; background: #69d9b1; }
.preview-head small { color: #829c94; font-weight: 700; letter-spacing: 0; }

.preview-person {
  gap: 12px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 17px;
  background: rgba(2, 17, 14, .35);
}

.person-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #55d8aa;
  color: #06231c;
  font: 800 12px var(--display);
}

.preview-person small,
.preview-person strong { display: block; }
.preview-person small { color: #7e9990; font-size: 10px; }
.preview-person strong { margin-top: 2px; font-size: 13px; }
.preview-person b { margin-left: auto; color: #76e1ba; font: 800 20px var(--display); }

.preview-flow {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0;
  align-items: stretch;
  padding: 23px 4px 18px;
}

.flow-funds,
.flow-companies { display: grid; gap: 8px; }

.flow-funds article,
.flow-companies article {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.flow-funds article > span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin-right: 9px;
  border-radius: 9px;
  background: rgba(86, 217, 171, .12);
  color: #69d9b1;
  font-size: 9px;
  font-weight: 800;
}

.flow-funds strong,
.flow-funds small { display: block; }
.flow-funds strong,
.flow-companies strong { font-size: 11px; }
.flow-funds small { margin-top: 2px; color: #78958b; font-size: 9px; }
.flow-companies article { justify-content: space-between; }
.flow-companies span { color: #69d9b1; font-size: 11px; font-weight: 800; }
.flow-companies .muted-row { color: #819a91; }

.flow-rail { display: grid; align-content: space-around; padding: 19px 0; }
.flow-rail i { position: relative; display: block; height: 1px; background: linear-gradient(90deg, #4bc898, #4bc898 44%, transparent 44%); background-size: 8px 1px; }
.flow-rail i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border: solid #4bc898; border-width: 1px 1px 0 0; transform: rotate(45deg); }

.preview-alert {
  gap: 13px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255, 187, 82, .09);
  color: #d9e7e2;
}

.preview-alert > span { color: #ffc66f; font: 800 26px var(--display); }
.preview-alert p { margin: 0; font-size: 10px; line-height: 1.5; }
.preview-alert strong { display: block; font-size: 11px; }

.lab-section { padding: 100px 0 110px; background: #f4f9f7; }
.lab-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.lab-title-row h2 { margin: 0; font: 800 clamp(34px, 4.2vw, 52px)/1.05 var(--display); letter-spacing: -.045em; }

.dataset-stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
}

.dataset-stamp span,
.dataset-stamp strong { display: block; }
.dataset-stamp strong { margin-bottom: 2px; color: var(--ink); font-size: 11px; }

.portfolio-console {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  overflow: hidden;
  min-height: 900px;
  border: 1px solid #cfe1da;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(11, 45, 39, .13);
}

.builder-panel {
  padding: 23px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background: var(--studio-2);
  color: #fff;
}

.console-head,
.console-head > div,
.profile-chip,
.analysis-topline,
.fund-builder-head { display: flex; align-items: center; }
.console-head { justify-content: space-between; margin-bottom: 27px; }
.console-head > div { gap: 10px; }
.console-head > div > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 10px; color: #6fdbb5; font-size: 10px; font-weight: 800; }
.console-head small,
.console-head strong { display: block; }
.console-head small { color: #77958b; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.console-head strong { margin-top: 2px; font: 800 14px var(--display); }
.reset-button { padding: 7px 8px; border: 0; background: transparent; color: #7f9d93; font-size: 10px; }
.reset-button:hover { color: #fff; }

.profile-fields { display: grid; grid-template-columns: 1fr 88px; gap: 10px; }
.console-field { display: flex; flex-direction: column; gap: 6px; }
.console-field.full { grid-column: 1 / -1; }
.console-field > span { color: #8eaaa1; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.console-field input,
.console-field select {
  width: 100%;
  height: 43px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 600 12px var(--body);
}

.console-field input:focus,
.console-field select:focus,
.fund-row select:focus,
.fund-row input:focus { border-color: #4ad3a2; box-shadow: 0 0 0 3px rgba(74, 211, 162, .12); }
.console-field select option,
.fund-row select option { color: var(--ink); }

.money-input { position: relative; }
.money-input b,
.money-input em { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; font-size: 11px; font-style: normal; }
.money-input b { left: 12px; color: #6fdbb5; }
.money-input em { right: 12px; color: #739187; }
.money-input input { padding-left: 28px; padding-right: 48px; }

.fund-builder-head { justify-content: space-between; margin: 29px 0 12px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .11); }
.fund-builder-head small,
.fund-builder-head strong { display: block; }
.fund-builder-head small { color: #78958b; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.fund-builder-head strong { margin-top: 3px; font-size: 12px; }
.allocation-total { text-align: right; }
.allocation-total span { display: block; color: #6fdbb5; font: 800 16px var(--display); }
.allocation-total.invalid span { color: #ff9b8f; }

.fund-rows { display: grid; gap: 8px; }
.fund-row { display: grid; grid-template-columns: 1fr 62px 27px; gap: 7px; }
.fund-row select,
.fund-row input {
  min-width: 0;
  height: 43px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, .055);
  color: #e9f5f1;
  font: 600 10px var(--body);
}

.fund-row .allocation-input { padding-right: 4px; text-align: right; }
.remove-fund { border: 0; background: transparent; color: #6d8a80; font-size: 17px; }
.remove-fund:hover { color: #ff9b8f; }
.add-fund { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding: 0; border: 0; background: transparent; color: #76d8b7; font-size: 10px; font-weight: 800; }
.add-fund span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(118, 216, 183, .28); border-radius: 7px; }
.add-fund:disabled { opacity: .35; cursor: not-allowed; }
.form-message { min-height: 19px; margin-top: 9px; color: #ffb0a8; font-size: 10px; line-height: 1.45; }

.run-analysis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 49px;
  padding: 0 9px 0 16px;
  border: 0;
  border-radius: 12px;
  background: #35c994;
  color: #06281f;
  font-weight: 800;
  box-shadow: 0 16px 35px rgba(53, 201, 148, .16);
}
.run-analysis i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(7, 42, 33, .13); font-style: normal; }
.run-analysis:hover { background: #49d5a3; }
.privacy-note { display: flex; gap: 7px; margin: 14px 0 0; color: #6f8d83; font-size: 9px; line-height: 1.45; }
.privacy-note span { color: #6fdbb5; font-weight: 800; }

.analysis-panel { min-width: 0; padding: 25px; background: #fbfdfc; }
.analysis-topline { justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.profile-chip { gap: 10px; }
.profile-chip > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: #fff; font: 800 10px var(--display); }
.profile-chip p { margin: 0; }
.profile-chip small,
.profile-chip strong { display: block; }
.profile-chip small { color: var(--muted); font-size: 10px; }
.profile-chip strong { margin-top: 2px; font-size: 12px; }
.coverage-note { display: flex; align-items: center; gap: 11px; margin: 0; color: var(--muted); text-align: right; }
.coverage-note span,
.coverage-note strong { display: block; }
.coverage-note span { font-size: 9px; }
.coverage-note strong { margin-bottom: 2px; color: var(--ink); font-size: 10px; }

.pulse-grid { display: grid; grid-template-columns: 1.45fr repeat(3, 1fr); gap: 9px; }
.pulse-card {
  min-height: 120px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.pulse-card > small { color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.pulse-card > strong { display: block; margin-top: 25px; font: 800 24px var(--display); letter-spacing: -.03em; }
.pulse-card > em { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-style: normal; }
.health-card { display: flex; align-items: center; gap: 15px; background: var(--ink); color: #fff; }
.health-card > div > small { color: #7e9b91; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.health-card > div > strong { display: block; max-width: 155px; margin-top: 5px; font: 800 14px/1.25 var(--display); }

.score-ring {
  --score: 67%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: conic-gradient(#55d8aa var(--score), rgba(255, 255, 255, .1) 0);
}
.score-ring > span { display: grid; place-items: baseline center; grid-template-columns: auto auto; width: 60px; height: 60px; padding-top: 17px; border-radius: 50%; background: var(--ink); }
.score-ring strong { font: 800 22px var(--display); }
.score-ring small { color: #79968c; font-size: 8px; }
.why-button { padding: 0; border: 0; background: transparent; color: var(--green-dark); font-size: 9px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.health-card .why-button { margin-top: 7px; color: #73dcb7; }

.primary-insight {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  padding: 15px 17px;
  border: 1px solid #c9ebde;
  border-radius: 15px;
  background: linear-gradient(90deg, #e9faf3, #f6fcf9);
}
.insight-status { padding: 7px 9px; border-radius: 8px; background: var(--green); color: #fff; font-size: 9px; font-weight: 800; text-align: center; }
.primary-insight p { margin: 0; }
.primary-insight small,
.primary-insight strong,
.primary-insight p > span { display: block; }
.primary-insight small { color: var(--green-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.primary-insight strong { margin-top: 3px; font-size: 12px; }
.primary-insight p > span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.primary-insight > button { border: 0; background: transparent; color: var(--green-dark); font-size: 10px; font-weight: 800; }

.analysis-tabs { display: flex; gap: 4px; margin: 24px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.analysis-tab { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.analysis-tab span { color: #9eb1aa; font-size: 8px; }
.analysis-tab:hover { background: var(--mist); color: var(--ink); }
.analysis-tab.active { background: var(--ink); color: #fff; }
.analysis-tab.active span { color: #65d9b0; }
.analysis-view { animation: reveal .28s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.analysis-view-head,
.viz-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.analysis-view-head { margin-bottom: 13px; }
.analysis-view-head small { color: var(--green-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.analysis-view-head h3 { margin: 3px 0 0; font: 800 20px var(--display); letter-spacing: -.025em; }
.ownership-grid,
.overlap-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 9px; }
.viz-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.viz-head { color: var(--muted); font-size: 8px; }
.viz-head strong { color: var(--ink); font-size: 10px; }
.viz-head div small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }

.holding-bars { display: grid; gap: 10px; margin-top: 17px; }
.holding-row { display: grid; grid-template-columns: 100px 1fr 42px; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: var(--ink); text-align: left; }
.holding-row > span { overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.holding-track { height: 7px; overflow: hidden; border-radius: 7px; background: #edf3f0; }
.holding-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #12845f, #56d9aa); transition: width .35s ease; }
.holding-row b { color: var(--green-dark); font-size: 9px; text-align: right; }
.holding-row:hover > span { color: var(--green-dark); }

.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 188px; padding-top: 10px; }
.allocation-donut { display: grid; place-items: center; flex: 0 0 auto; width: 122px; height: 122px; border-radius: 50%; background: conic-gradient(#18a777 0 50%, #5bd6ad 50% 80%, #9fe9cf 80%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
.allocation-donut > span { display: grid; place-items: center; width: 79px; height: 79px; border-radius: 50%; background: #fff; box-shadow: 0 5px 15px rgba(11, 45, 39, .07); }
.allocation-donut strong,
.allocation-donut small { display: block; }
.allocation-donut strong { font: 800 22px var(--display); }
.allocation-donut small { color: var(--muted); font-size: 7px; }
.donut-legend { display: grid; gap: 9px; }
.legend-item { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; }
.legend-item i { width: 7px; height: 7px; border-radius: 3px; }
.legend-item span { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-item b { color: var(--ink); }

.source-card { margin-top: 9px; }
.source-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 13px; }
.source-path { position: relative; padding: 12px; border-radius: 11px; background: var(--mist); }
.source-path::after { content: "→"; position: absolute; right: 10px; top: 10px; color: #7fc9ae; }
.source-path span,
.source-path strong,
.source-path small { display: block; }
.source-path span { color: var(--green-dark); font-size: 8px; font-weight: 800; }
.source-path strong { max-width: 80%; margin-top: 6px; font-size: 9px; }
.source-path small { margin-top: 4px; color: var(--muted); font-size: 8px; }

.overlap-grid { grid-template-columns: 1.1fr .9fr; }
.overlap-matrix { max-width: 100%; margin-top: 14px; overflow-x: auto; }
.overlap-matrix:focus-visible { outline: 3px solid #2875aa; outline-offset: 2px; }
.overlap-matrix .matrix-table { width: 100%; min-width: 390px; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.overlap-matrix .matrix-label-column { width: 82px; }
.overlap-matrix .matrix-cell { height: 40px; padding: 5px; border: 0; border-radius: 8px; background: #edf5f1; color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.4; text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.overlap-matrix .matrix-cell.label { background: transparent; color: var(--muted); text-align: left; }
.overlap-matrix .matrix-cell.header { background: transparent; color: var(--muted); font-weight: 700; vertical-align: bottom; }
.overlap-matrix .matrix-cell.diagonal { background: #e8eeeb; color: #9aaca6; }
.overlap-matrix .matrix-cell.low { background: #e7f7f1; color: #147354; }
.overlap-matrix .matrix-cell.mid { background: #fff0d9; color: #8e5e17; }
.overlap-matrix .matrix-cell.high { background: #ffe1dd; color: #a94339; }

.repeat-list { display: grid; gap: 5px; margin-top: 14px; }
.repeat-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 9px; border-radius: 10px; background: #f5f9f7; }
.repeat-item > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #e1f7ef; color: var(--green-dark); font-size: 8px; font-weight: 800; }
.repeat-item strong,
.repeat-item small { display: block; }
.repeat-item strong { font-size: 9px; }
.repeat-item small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.repeat-item b { color: var(--green-dark); font-size: 9px; }
.explanation-strip { display: grid; grid-template-columns: 95px 1fr; gap: 14px; margin-top: 9px; padding: 15px; border-radius: 13px; background: var(--ink); color: #b8ccc5; }
.explanation-strip > span { color: #6bd9b1; font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.explanation-strip p { margin: 0; font-size: 9px; line-height: 1.5; }
.explanation-strip strong { color: #fff; }

.saving-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px; border-radius: 15px; background: var(--ink); color: #fff; }
.saving-banner > div > small { color: #7f9b92; font-size: 8px; }
.saving-banner > div > strong { display: block; margin-top: 4px; color: #62deb2; font: 800 27px var(--display); }
.saving-banner p { margin: 3px 0 0; color: #829c93; font-size: 8px; }
.cost-shift { display: flex; align-items: center; gap: 12px; }
.cost-shift span { min-width: 87px; padding: 10px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 10px; background: rgba(255, 255, 255, .04); }
.cost-shift small,
.cost-shift strong { display: block; }
.cost-shift small { color: #739087; font-size: 7px; }
.cost-shift strong { margin-top: 3px; font: 800 16px var(--display); }
.cost-shift i { color: #61dcb0; font-style: normal; }

.candidate-list { display: grid; gap: 8px; margin-top: 9px; }
.candidate-card { display: grid; grid-template-columns: 1fr 30px 1fr 110px; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.candidate-fund small,
.candidate-fund strong { display: block; }
.candidate-fund small { color: var(--muted); font-size: 7px; }
.candidate-fund strong { margin-top: 3px; font-size: 9px; line-height: 1.3; }
.candidate-fund .fund-facts { display: flex; gap: 6px; margin-top: 7px; }
.fund-facts span { padding: 4px 5px; border-radius: 5px; background: var(--mist); color: var(--muted); font-size: 7px; }
.candidate-arrow { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--mint); color: var(--green-dark); font-size: 10px; }
.candidate-result { text-align: right; }
.candidate-result span,
.candidate-result strong,
.candidate-result small { display: block; }
.candidate-result span { color: var(--green-dark); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.candidate-result strong { margin-top: 3px; font: 800 12px var(--display); }
.candidate-result small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.candidate-disclosure { margin: 10px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.no-candidate { margin-top: 10px; padding: 18px; border: 1px dashed #cadbd5; border-radius: 13px; text-align: center; }
.no-candidate strong { font-size: 11px; }
.no-candidate p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }

.method-section { padding: 110px 0; background: #fff; }
.method-head { align-items: end; }
.method-flow { display: grid; grid-template-columns: 1fr 25px 1fr 25px 1fr 25px 1fr; align-items: stretch; margin-top: 45px; }
.method-flow > article { min-height: 290px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdfc; }
.method-flow > b { display: grid; place-items: center; color: #61cba6; font-weight: 400; }
.method-flow article > span { color: var(--green-dark); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.method-flow article > i { display: grid; place-items: center; width: 46px; height: 46px; margin-top: 42px; border-radius: 14px; background: var(--mint); color: var(--green-dark); font: 800 11px var(--display); font-style: normal; }
.method-flow h3 { margin: 27px 0 9px; font: 800 18px/1.2 var(--display); }
.method-flow p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.guardrail-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 11px; margin-top: 65px; }
.guardrail-card { min-height: 265px; padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.guardrail-card.dark { background: var(--ink); color: #fff; }
.guardrail-card > span { display: inline-block; padding: 6px 8px; border-radius: 7px; background: var(--mint); color: var(--green-dark); font-size: 9px; font-weight: 800; }
.guardrail-card h2 { margin: 58px 0 10px; font: 800 29px/1.1 var(--display); }
.guardrail-card h3 { margin: 89px 0 10px; font: 800 18px/1.2 var(--display); }
.guardrail-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.guardrail-card.dark p { color: #a9beb7; }

.review-conversation { padding: 0 0 100px; background: #fff; }
.conversation-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 52px; border-radius: 27px; background: linear-gradient(135deg, var(--ink), #17614f); color: #fff; }
.conversation-card h2 { max-width: 700px; margin: 0; font: 800 clamp(30px, 3.5vw, 45px)/1.08 var(--display); letter-spacing: -.04em; }
.conversation-card p { max-width: 720px; margin: 14px 0 0; color: #b4c9c2; line-height: 1.6; }
.conversation-actions { flex: 0 0 auto; text-align: center; }
.conversation-actions small { display: block; margin-top: 11px; color: #9ab2aa; }

.explain-dialog { width: min(500px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 35px 100px rgba(4, 28, 23, .34); }
.explain-dialog::backdrop { background: rgba(4, 24, 20, .74); backdrop-filter: blur(6px); }
.explain-inner { display: flex; justify-content: space-between; gap: 24px; padding: 28px; }
.explain-inner span { color: var(--green-dark); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.explain-inner h2 { margin: 7px 0 10px; font: 800 27px var(--display); }
.explain-inner p { margin: 0; color: var(--muted); line-height: 1.65; }

@media (max-width: 1080px) {
  .studio-hero-grid { grid-template-columns: 1fr; }
  .studio-copy { max-width: 760px; }
  .ownership-preview { max-width: 720px; }
  .portfolio-console { grid-template-columns: 310px minmax(0, 1fr); }
  .pulse-grid { grid-template-columns: 1fr 1fr; }
  .health-card { grid-row: span 2; }
  .ownership-grid,
  .overlap-grid { grid-template-columns: 1fr; }
  .source-paths { grid-template-columns: 1fr 1fr; }
  .candidate-card { grid-template-columns: 1fr 27px 1fr; }
  .candidate-result { grid-column: 3; text-align: left; }
  .guardrail-grid { grid-template-columns: 1fr 1fr; }
  .guardrail-card.dark { grid-column: 1 / -1; min-height: 235px; }
}

@media (max-width: 840px) {
  .portfolio-console { grid-template-columns: 1fr; }
  .builder-panel { border-right: 0; }
  .analysis-panel { padding: 20px; }
  .method-flow { grid-template-columns: 1fr 1fr; gap: 10px; }
  .method-flow > b { display: none; }
  .conversation-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .studio-hero { padding: 60px 0 68px; }
  .studio-copy h1 { font-size: 43px; }
  .preview-flow { grid-template-columns: 1fr 28px 1fr; }
  .preview-person b { font-size: 16px; }
  .flow-funds strong,
  .flow-companies strong { font-size: 9px; }
  .lab-section,
  .method-section { padding: 74px 0; }
  .lab-title-row { align-items: flex-start; flex-direction: column; }
  .portfolio-console { border-radius: 20px; }
  .profile-fields { grid-template-columns: 1fr 80px; }
  .analysis-topline { align-items: flex-start; flex-direction: column; }
  .coverage-note { text-align: left; }
  .pulse-grid { grid-template-columns: 1fr 1fr; }
  .health-card { grid-column: 1 / -1; grid-row: auto; }
  .pulse-card { min-height: 108px; }
  .primary-insight { grid-template-columns: 1fr; }
  .insight-status { width: max-content; }
  .analysis-tabs { overflow-x: auto; }
  .analysis-tab { flex: 0 0 auto; }
  .analysis-view-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .donut-wrap { align-items: flex-start; flex-direction: column; }
  .source-paths { grid-template-columns: 1fr; }
  .saving-banner { align-items: flex-start; flex-direction: column; }
  .candidate-card { grid-template-columns: 1fr; }
  .candidate-arrow { transform: rotate(90deg); }
  .candidate-result { grid-column: auto; }
  .method-flow,
  .guardrail-grid { grid-template-columns: 1fr; }
  .guardrail-card.dark { grid-column: auto; }
  .conversation-card { padding: 34px 23px; }
  .conversation-actions,
  .conversation-actions .button { width: 100%; }
  .holding-row { grid-template-columns: 82px 1fr 35px; }
}

@media (prefers-reduced-motion: reduce) {
  .analysis-view,
  .holding-track i { animation: none; transition: none; }
}

/* One computed sample drives the preview and the detailed report. */
.lab-tools { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.share-sample { max-width: 320px; }
.share-sample input { margin-top: 10px; }
.fit-note, .analysis-update { padding: 14px 16px; border-radius: 12px; font-size: 13px; line-height: 1.6; background: #edf7f2; color: #214f41; }
.analysis-update { background: #fff2d9; color: #735416; border: 1px solid #efcf90; }
.fund-cost-summary { margin: 24px 0; }
.fund-cost-summary > h3 { font-size: 17px; }
.fund-costs { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; }
.fund-cost-card { padding: 17px; border: 1px solid #dce9e3; border-radius: 14px; background: white; }
.fund-cost-card h4 { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.fund-cost-card dl { margin: 0; }
.fund-cost-card dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; margin: 10px 0; font-size: 12px; }
.fund-cost-card dt { color: #587067; }
.fund-cost-card dd { margin: 0; font-weight: 700; }
.fund-cost-card p { font-size: 12px; color: #537267; margin: 14px 0 0; }
.preview-alert p > span { display: block; color: #b9cfc6; font: inherit; }
.analysis-tabs { scroll-margin-top: 94px; }
@media (max-width: 620px) {
  .fund-costs { grid-template-columns: 1fr; }
  .lab-tools { gap: 14px; align-items: flex-start; }
  .studio-copy .hero-actions { align-items: stretch; }
  .studio-copy .hero-actions > * { width: 100%; text-align: center; }
}
