.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 26px; }
.back-link .icon { width: 13px; height: 13px; }
.company-heading-group { display: flex; align-items: center; gap: 19px; }
.company-page-heading { margin-bottom: 28px; }
.company-page-heading h1 { font-size: var(--text-3xl); margin-bottom: 8px; }
.company-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.company-meta > span:first-child { color: var(--ink-2); font-weight: 600; }
.detail-quote { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.detail-quote > strong { font-size: var(--text-3xl); font-weight: 600; font-stretch: 78%; line-height: 1; }
.detail-quote > span { font-size: 12px; color: var(--muted); }
.detail-quote .text-link { font-size: 12px; }
.detail-tabs { display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.detail-tabs > [role=tab] { padding: 13px 0 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; white-space: nowrap; color: var(--muted); }
.detail-tabs > [role=tab]:hover { color: var(--ink); }
.detail-tabs > [role=tab].selected { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.export-link { margin-left: auto; font-size: 12px; white-space: nowrap; padding-bottom: 2px; }
.export-link .icon { width: 12px; height: 12px; }
.detail-content > .panel { margin-bottom: 22px; }
.source-thesis-panel { margin-bottom: 22px; }
.source-assumptions { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px 24px; padding: 7px 26px 22px; }
.source-assumptions span, .source-return-bridge > div > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.source-assumptions strong { color: var(--ink); font-size: var(--text-2xl); font-weight: 600; font-stretch: 78%; }
.source-return-bridge { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 0 26px; gap: 24px; padding: 20px 0 2px; }
.source-return-bridge strong { display: block; font-size: var(--text-3xl); color: var(--ink); font-weight: 650; font-stretch: 72%; margin-bottom: 8px; }
.source-return-bridge small { display: block; font-size: 12px; line-height: 1.7; }
.author-card-reference { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 10px 0 0; }
.company-overview-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 22px; margin-bottom: 22px; }
.chart-note { font-size: 12px; text-align: center; color: var(--muted); padding: 4px 20px 14px; margin: 0; }
.projection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 22px; margin-bottom: 22px; }
.projection-chart { min-width: 0; }
.projection-definition { font-size: 12px; color: var(--muted); padding: 0 26px 20px; }
.projection-definition summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.projection-definition summary:hover { color: var(--ink); }
.projection-definition p { margin: 10px 0 0; line-height: 1.65; }
.baseline-panel > .projection-grid { padding: 0 20px; }
.return-panel { padding: 25px; }
.return-panel h2 { font-size: var(--text-l); line-height: 1.25; margin-bottom: 14px; }
.return-case { width: 100%; padding: 13px 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--soft-line); font-size: 12px; border-radius: 6px; }
.return-case strong { font-size: var(--text-2xl); font-weight: 500; font-stretch: 72%; }
.return-case.selected strong { font-weight: 700; }
.return-case.selected { color: var(--forest); background: var(--soft-green); border-color: transparent; }
.hurdle-price { border-top: 1px solid var(--soft-line); margin-top: 12px; padding-top: 20px; }
.hurdle-price > span { display: block; font-size: 12px; color: var(--muted); }
.hurdle-price > strong { display: block; font-size: var(--text-2xl); font-weight: 600; font-stretch: 78%; margin-top: 8px; }
.hurdle-price > small { display: block; font-size: 12px; line-height: 1.6; margin-top: 7px; }
.return-panel > .text-link { margin-top: 22px; font-size: 12px; }
.thesis-panel > p { font-size: var(--text-m); line-height: 1.65; color: var(--ink-2); max-width: 68ch; margin: 0 26px 20px; }
.thesis-panel > .text-link { margin: 20px 26px 25px; font-size: 12px; }
.watch-list { margin: 0 26px; padding: 0; list-style: none; }
.watch-list > li { position: relative; padding: 12px 0 12px 18px; border-top: 1px solid var(--soft-line); font-size: 13px; line-height: 1.55; }
.watch-list > li::before { content: ''; position: absolute; left: 2px; top: 20px; width: 6px; height: 6px; border: 1.5px solid var(--forest); border-radius: 50%; }
.model-status-panel { padding: 25px; }
.model-status-panel h2 { font-size: var(--text-l); margin-bottom: 14px; }
.model-status-panel dl { margin: 0; }
.model-status-panel dl div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--soft-line); font-size: 12px; }
.model-status-panel dt { color: var(--muted); }
.model-status-panel dd { margin-left: 0; text-align: right; }
.model-status-panel > p.warning-text { font-size: 12px; margin: 20px 0; }
.model-status-panel .text-link { font-size: 12px; }
.assumption-rationale { margin: 0 26px 24px; color: var(--muted); font-size: 12px; }
.assumptions-panel form { padding: 0 26px 26px; }
.driver-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 24px; padding-top: 8px; }
.driver-field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 9px; }
.input-unit { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-control); background: #fff; overflow: hidden; }
.input-unit input { border: 0; min-width: 0; background: transparent; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.input-unit span { color: var(--muted); font-size: 12px; padding-right: 12px; }
.driver-explanation { margin-top: 8px; font-size: 12px; color: var(--muted); }
.driver-explanation summary { display: inline-flex; gap: 7px; }
.driver-explanation p { font-size: 12px; margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.revision-label { display: block; font-size: 12px; margin: 28px 0 9px; font-weight: 500; }
.assumptions-panel textarea { font-size: 12px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 17px; }
.form-actions .muted { font-size: 12px; }
.baseline-panel > .table-note { padding-top: 0; }
.baseline-panel > .table-scroll + .table-note { padding-top: 14px; }
.baseline-panel > p:not(.table-note), .baseline-panel > ul { margin: 0 26px 18px; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.baseline-panel > ul { padding-left: 18px; }
.baseline-row { margin: 0 26px; padding: 17px 0; border-top: 1px solid var(--soft-line); }
.baseline-row:last-child { margin-bottom: 10px; }
.baseline-value { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.baseline-value > strong { margin-left: auto; font-size: 14px; color: var(--forest); }
.baseline-row p { font-size: 12px; color: var(--muted); margin: 9px 0 6px; }
.baseline-row small { font-size: 12px; }
.capital-metrics { margin: 0 26px 18px; }
.capital-metrics > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--soft-line); font-size: 12px; }
.capital-metrics dt { color: var(--muted); }
.capital-metrics dd { margin: 0; text-align: right; max-width: 60%; font-variant-numeric: tabular-nums; }
.capital-efficiency-panel > details { margin: 18px 26px; font-size: 12px; }
.capital-efficiency-panel > details > summary { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 500; color: var(--ink-2); }
.capital-efficiency-panel > details > summary:hover { color: var(--ink); }
.capital-efficiency-panel > h3 { margin: 20px 26px 10px; font-size: 13px; }
.capital-efficiency-panel ul { padding-left: 18px; color: var(--muted); line-height: 1.65; }
.capital-efficiency-panel li + li { margin-top: 8px; }
.baseline-row a, table a, .source-row a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.table-note { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; padding: 17px 26px 23px; }
.return-inline { color: var(--ink); font-size: var(--text-3xl); font-weight: 700; font-stretch: 72%; }
.sensitivity { text-align: center; }
.sensitivity th:first-child { text-align: left; }
.sensitivity tbody th { background: var(--sunk); }
.sensitivity td { font-size: 13px; padding: 17px; }
.sensitivity .above-hurdle { background: var(--soft-green); color: var(--forest); }
.sensitivity .base-cell { box-shadow: inset 0 0 0 2px var(--forest); font-weight: 600; }
.limitations-panel ul { margin: 0 27px 26px 43px; padding: 0; font-size: 12px; line-height: 1.9; color: var(--ink-2); }
.limitations-panel li { padding-left: 5px; margin-bottom: 7px; }
.source-list { padding: 0 26px 8px; }
/* A fixed label column: long source kinds wrap inside it instead of running into the title. */
.source-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 17px; align-items: start; border-top: 1px solid var(--soft-line); padding: 20px 0; }
.source-row h3 { margin: 0 0 8px; font-weight: 500; font-size: 12px; }
.source-row p { margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.source-row small { font-size: 12px; line-height: 1.7; }
.source-row .pill { justify-self: start; max-width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.revision-entry { border-top: 1px solid var(--soft-line); }
.revision-entry > summary { display: flex; align-items: center; gap: 16px; padding: 18px 26px; font-size: 12px; line-height: 1.7; transition: background 120ms ease; }
.revision-entry > summary:hover { background: var(--sunk); }
.revision-entry > summary:focus-visible { outline-offset: -4px; }
.revision-entry > summary > span { color: var(--muted); }
.history-chart { margin-bottom: 22px; }
.forward-bridge-panel { margin-bottom: 22px; }
.forward-gap-list { padding: 0 26px 20px; }
.forward-gap-list details { border-top: 1px solid var(--soft-line); }
.forward-gap-list summary { display: flex; align-items: center; gap: 12px; padding: 15px 0; font-size: 12px; }
.forward-gap-list summary:hover { color: var(--forest); }
.forward-gap-list p { max-width: 900px; font-size: 12px; color: var(--muted); }
.calculation-trail > summary { display: flex; align-items: center; gap: 12px; padding: 16px 26px; font-size: 12px; font-weight: 500; color: var(--ink-2); border-top: 1px solid var(--soft-line); transition: background 120ms ease; }
.calculation-trail > summary:hover { background: var(--sunk); }
.calculation-trail > summary:focus-visible { outline-offset: -4px; }
.calculation-trail td details { min-width: 200px; max-width: 460px; white-space: normal; }
.calculation-trail td details p { margin: 12px 0; }
.calculation-summary td:last-child { min-width: 220px; max-width: 440px; white-space: normal; line-height: 1.7; }
dialog { width: min(510px, calc(100vw - 32px)); max-height: calc(100vh - 70px); border: 1px solid var(--line); border-radius: var(--radius-sheet); padding: 26px; color: var(--ink); background: #fff; box-shadow: 0 25px 90px #16202a26; }
dialog::backdrop { background: #16202a52; backdrop-filter: blur(3px); }
dialog.wide-dialog { width: min(780px, calc(100vw - 32px)); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.dialog-heading h2 { font-size: var(--text-xl); margin: 0; }
.dialog-intro { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 23px; }
dialog form label { display: block; font-size: 12px; margin-top: 18px; }
dialog form label > input, dialog form label > .input-unit { margin-top: 8px; }
dialog input { font-size: 12px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.prompt-text { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px; line-height: 1.7; background: var(--sunk); min-height: 300px; }
.method-steps { display: grid; grid-template-columns: repeat(3,1fr); background: var(--sunk); border-radius: var(--radius); gap: 20px; padding: 20px; margin: 24px 0; }
.method-steps strong { display: block; color: var(--ink); font-size: var(--text-l); font-weight: 600; margin-bottom: 6px; }
.method-steps span { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
#toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--radius-control); box-shadow: 0 8px 30px #16202a26; font-size: 12px; max-width: calc(100vw - 32px); text-align: center; line-height: 1.6; display: none; }
#toast.visible { display: block; }
#toast.error { background: var(--negative); }
@media (max-width: 1150px) { .company-overview-grid { grid-template-columns: 1.4fr 1fr; gap: 18px; } .return-panel { padding: 23px; } .return-panel h2 { font-size: 22px; } .detail-tabs { gap: 20px; } .export-link { display: none; } .driver-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 950px) { .company-overview-grid { grid-template-columns: 1fr; } .return-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; } .return-panel > h2, .hurdle-price, .return-panel > .text-link { grid-column: 1 / -1; } .return-panel > h2 { margin: 0 0 8px; } .return-case { flex-direction: column; gap: 9px; text-align: center; padding: 15px 5px; border: 1px solid var(--soft-line); } .hurdle-price { margin-top: 8px; padding-top: 15px; } .return-panel > .text-link { margin-top: 7px; } }
@media (max-width: 600px) {
  .company-page-heading { flex-direction: column; align-items: flex-start; gap: 22px; }
  .detail-quote { align-items: flex-start; }
  .detail-tabs { gap: 23px; }
  .detail-tabs > [role=tab] { font-size: 12px; min-height: 44px; }
  .driver-grid { gap: 20px 17px; }
  .assumptions-panel form { padding: 0 21px 23px; }
  .assumption-rationale { margin: 0 21px 22px; font-size: 12px; }
  .driver-field label { min-height: 28px; line-height: 1.6; }
  .source-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .baseline-panel > summary { flex-wrap: wrap; gap: 8px; }
  .baseline-row { margin-left: 20px; margin-right: 20px; }
  .baseline-value { flex-wrap: wrap; gap: 8px; }
  .baseline-value .pill { font-size: 12px; }
  .thesis-panel > p { margin: 0 20px 18px; }
  .watch-list { margin: 0 20px; }
  .thesis-panel > .text-link { margin: 18px 20px 22px; }
  .method-steps { gap: 13px; padding: 17px; }
  .method-steps span { font-size: 12px; }
  .revision-entry > summary { flex-wrap: wrap; padding: 16px 20px; }
  .calculation-trail > summary { padding: 14px 20px; }
}

/* Model sheet: a spreadsheet-like path from reported statements to the exit price. */
.model-sheet th, .model-sheet td { padding: 8px 12px; text-align: right; }
.model-sheet th:first-child { width: 240px; min-width: 200px; max-width: 260px; white-space: normal; text-align: left; position: sticky; left: 0; background: var(--paper); z-index: 1; }
.model-sheet thead th:first-child { background: var(--sunk); }
.model-sheet th small { display: block; font-weight: 400; color: var(--muted); }
.model-sheet .sheet-groups th { text-align: center; color: var(--muted); font-weight: 450; }
.model-sheet .sheet-section th { width: auto; min-width: 0; max-width: none; text-align: left; background: var(--sunk); color: var(--ink); font-weight: 600; }
.model-sheet .sheet-reported { color: var(--ink); cursor: help; }
.model-sheet .sheet-gap { color: var(--faint); }
.model-sheet .sheet-anchor { background: var(--sunk); color: var(--ink); font-weight: 600; }
.model-sheet .sheet-forecast { color: var(--ink-2); font-style: italic; }
.model-sheet tr.sheet-total > th, .model-sheet tr.sheet-total > td { border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); background: #fafbfa; }
.model-sheet tr.sheet-total:hover > th, .model-sheet tr.sheet-total:hover > td { background: #f3f6f4; }
.sheet-subhead { font-size: 13px; font-weight: 600; margin: 18px 26px 8px; color: var(--ink); }

/* Scenario comparison: inputs side by side, the selected case highlighted. */
.scenario-compare td, .scenario-compare thead th:not(:first-child) { text-align: right; }
.scenario-compare .selected-case { background: var(--sunk); color: var(--ink); font-weight: 600; }
.scenario-why { color: var(--muted); font-size: 13px; line-height: 1.65; }
.scenario-why > summary { display: flex; align-items: center; gap: 10px; padding: 14px 26px; font-size: 12px; font-weight: 500; color: var(--ink-2); border-top: 1px solid var(--soft-line); transition: background 120ms ease; }
.scenario-why > summary:hover { background: var(--sunk); }
.scenario-why > summary:focus-visible { outline-offset: -4px; }
.scenario-why ul { margin: 4px 26px 20px; padding-left: 18px; }
.assumption-reasons-details > summary { padding: 14px 26px; font-size: 12px; font-weight: 500; color: var(--ink-2); border-top: 1px solid var(--soft-line); display: flex; align-items: center; gap: 10px; transition: background 120ms ease; }
.assumption-reasons-details > summary:hover { background: var(--sunk); }
.assumption-reasons-details > summary:focus-visible { outline-offset: -4px; }
.assumption-reasons { padding: 4px 26px 20px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.assumption-reasons h3 { font-size: 13px; margin: 14px 0 4px; color: var(--ink); }
.assumption-reasons ul { margin: 0; padding-left: 18px; }
.assumption-reasons small { color: var(--muted); }
/* Model-sheet guide: a compact walkthrough above the tables; the rows it explains are tinted. */
.sheet-guide { margin: 4px 0 18px; padding: 18px 20px; border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--sunk); font-size: 12px; line-height: 1.75; color: var(--ink-2); }
.sheet-guide.closed { padding: 10px 16px; }
.sheet-guide h3 { margin: 10px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.sheet-guide p { margin: 0 0 9px; max-width: 760px; }
.sheet-guide cite { display: block; margin-top: 4px; font-style: normal; color: var(--faint); }
.guide-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.guide-count { color: var(--muted); }
.guide-steps { display: flex; gap: 5px; flex: 1; }
.guide-dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.guide-dot.selected { background: var(--forest); border-color: var(--forest); color: #fff; }
.guide-example { padding: 8px 12px; border-left: 3px solid var(--forest); background: var(--paper); }
.guide-why { color: var(--muted); }
.guide-actions { display: flex; gap: 8px; margin-top: 12px; }
.model-sheet tr.guide-row > *, .model-sheet tr.guide-row:hover > * { background: var(--soft-green); }
@media (max-width: 600px) {
  .model-sheet th:first-child { width: 150px; min-width: 140px; max-width: 170px; }
  .model-sheet .sheet-section th { width: auto; min-width: 0; max-width: none; }
  .scenario-why > summary, .assumption-reasons-details > summary { padding: 14px 20px; }
  .scenario-why ul { margin: 4px 20px 18px; }
  .assumption-reasons { padding: 4px 20px 18px; }
  .sheet-guide { padding: 15px; }
  .guide-steps { order: 3; flex-basis: 100%; }
}
