:root {
  color-scheme: light;
  --ink: #16201c;
  --muted: #5f6f68;
  --line: #d9e2dc;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --surface-2: #edf4f0;
  --teal: #087c6b;
  --teal-dark: #05584c;
  --coral: #cc5a43;
  --amber: #b87918;
  --green: #3f7f44;
  --blue: #356ca3;
  --violet: #7256a5;
  --shadow: 0 18px 55px rgba(31, 48, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f2efe9;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: 0;
  background-image: url("./doodle-bg2.jpg");
  background-repeat: repeat;
  background-size: 512px;
}

body::after {
  z-index: 0;
  background: rgba(242, 239, 233, 0.45);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px;
}

.eyebrow,
.label {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.view-panel {
  display: none;
}

.view-panel.is-active {
  display: block;
}

.case-list-panel,
.case-landing-panel,
.case-action-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(31, 48, 42, 0.08);
}

.case-list-panel {
  max-width: 620px;
  margin: 0 auto;
  padding: 12px;
}

.case-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-group {
  display: grid;
  gap: 5px;
}

.case-industry {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-button-stack {
  display: grid;
  gap: 5px;
}

.case-card {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.92rem;
  text-align: left;
  font-weight: 900;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.case-card:hover,
.case-card:focus {
  border-color: rgba(8, 124, 107, 0.5);
  box-shadow: 0 8px 18px rgba(31, 48, 42, 0.1);
  transform: translateY(-1px);
}

.case-card.is-selected {
  border-color: var(--teal);
  background: #f2faf7;
}

.case-landing-panel {
  margin-bottom: 18px;
  background: var(--surface);
}

.case-landing-main {
  padding: 28px;
}

.case-landing-main h2 {
  margin-bottom: 12px;
}

.case-landing-main p:last-child {
  margin-bottom: 0;
}

.case-action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 18px;
}

.case-action-button {
  border: 1px solid rgba(8, 124, 107, 0.45);
  border-radius: 8px;
  background: var(--teal);
  padding: 12px 16px;
  color: #fff;
  font-weight: 900;
}

.case-action-button.secondary {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.compact-back {
  margin-bottom: 18px;
}

.deal-view {
  display: none;
}

.deal-view.is-active {
  display: grid;
  gap: 16px;
}

.deal-hero,
.deal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(31, 48, 42, 0.08);
}

.deal-hero {
  padding: 26px;
}

.deal-hero h1 {
  max-width: 920px;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.25rem);
}

.deal-hero p {
  max-width: 880px;
  margin-bottom: 18px;
}

.deal-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.deal-metric-strip div {
  min-height: 92px;
  background: #fbfdfb;
  padding: 16px;
}

.deal-metric-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1;
}

.deal-metric-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.deal-section {
  padding: 24px;
}

.goal-section,
.commercial-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: center;
}

.goal-section h2,
.path-section h2,
.capability-section h2,
.commercial-section h2 {
  font-size: clamp(1.35rem, 2.25vw, 2.2rem);
}

.mix-shift-visual {
  overflow: hidden;
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  background: #f3faf7;
  padding: 10px;
}

.mix-shift-svg {
  display: block;
  width: 100%;
  height: auto;
}

.mix-title {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.mix-delta-badge rect {
  fill: #e8f5f1;
  stroke: var(--teal);
  stroke-width: 2.5;
  rx: 10;
}

.mix-delta-badge text {
  fill: var(--teal-dark);
  font-size: 23px;
  font-weight: 950;
  text-anchor: middle;
}

.mix-track-bg {
  fill: #ffffff;
  stroke: rgba(22, 32, 28, 0.14);
  stroke-width: 1.5;
  rx: 8;
}

.mix-fill-current,
.mix-fill-target {
  rx: 7;
}

.mix-fill-current {
  fill: var(--amber);
}

.mix-fill-target {
  fill: var(--teal);
}

.mix-row-kicker {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mix-row-value {
  fill: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.mix-end-marker {
  stroke: rgba(22, 32, 28, 0.42);
  stroke-dasharray: 3 4;
  stroke-width: 2;
}

.mix-delta-line,
.mix-bridge-line {
  fill: none;
  marker-end: url("#mixArrow");
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 2.5;
}

#mixArrow path {
  fill: var(--teal);
}

.mix-small-label {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-anchor: middle;
  text-transform: uppercase;
}

.mix-equation-node rect {
  fill: #ffffff;
  stroke: rgba(8, 124, 107, 0.18);
  stroke-width: 1.5;
  rx: 10;
}

.mix-equation-node text {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
}

.mix-equation-node.result rect {
  fill: var(--teal);
  stroke: var(--teal-dark);
}

.mix-equation-node.result text {
  fill: #ffffff;
  font-size: 21px;
  font-weight: 950;
}

.mix-symbol {
  fill: var(--muted);
  font-size: 22px;
  font-weight: 950;
}

.mix-footnote {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-anchor: middle;
}

.path-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.path-column {
  display: grid;
  align-content: start;
  gap: 14px;
  border-top: 5px solid var(--line);
  background: #fbfdfb;
  padding: 18px;
}

.wrong-path {
  border-color: var(--coral);
}

.better-path {
  border-color: var(--teal);
}

.path-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-steps li {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 12px;
}

.path-steps strong {
  font-size: 0.92rem;
}

.path-steps span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
}

.capability-section {
  display: grid;
  gap: 16px;
}

.capability-section > div:first-child {
  max-width: 820px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.capability-grid div {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 14px;
}

.capability-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.95rem;
  line-height: 1.2;
}

.capability-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.42;
}

.commercial-section {
  align-items: start;
  grid-template-columns: minmax(0, 0.85fr) minmax(460px, 0.85fr);
}

.value-ramp {
  border-left: 4px solid var(--blue);
  background: #f4f8fc;
  padding: 18px;
}

.value-ramp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.value-ramp-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.value-ramp-head strong {
  color: var(--blue);
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1;
}

.value-ramp-graphic {
  overflow: hidden;
  border: 1px solid rgba(53, 108, 163, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.ramp-svg {
  display: block;
  width: 100%;
  height: auto;
}

.ramp-zone {
  fill: url("#rampFill");
  opacity: 0.26;
}

.ramp-line {
  fill: none;
  marker-end: url("#rampArrow");
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 5;
}

#rampArrow path {
  fill: var(--blue);
}

.ramp-axis,
.ramp-baseline {
  fill: none;
  stroke: rgba(22, 32, 28, 0.22);
  stroke-width: 2;
}

.ramp-point circle {
  fill: #ffffff;
  stroke: var(--blue);
  stroke-width: 4;
}

.ramp-point.high circle {
  fill: var(--blue);
  stroke: #ffffff;
  stroke-width: 4;
}

.ramp-point rect,
.ramp-note rect {
  fill: #ffffff;
  stroke: rgba(53, 108, 163, 0.18);
  stroke-width: 1.5;
  rx: 8;
}

.ramp-point.high rect {
  fill: var(--blue);
}

.ramp-point text {
  text-anchor: middle;
}

.ramp-point .value {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.ramp-point .stage {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ramp-point.high .value,
.ramp-point.high .stage {
  fill: #ffffff;
}

.ramp-point .year {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ramp-note text {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-anchor: middle;
}

.pnl-section {
  display: grid;
  gap: 16px;
}

.pnl-header {
  max-width: 900px;
}

.pnl-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pnl-metrics div {
  min-height: 92px;
  background: #fbfdfb;
  padding: 16px;
}

.pnl-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1;
}

.pnl-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.pnl-visual-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
}

.pnl-value-tree {
  display: block;
  min-width: 1080px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(53, 108, 163, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 124, 107, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f7faf8);
  background-size: 34px 34px, 34px 34px, auto;
}

.pnl-svg-section {
  fill: var(--muted);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.pnl-svg-edge {
  fill: none;
  marker-end: url("#pnlArrow");
  stroke: #8ea19a;
  stroke-width: 2.5;
}

#pnlArrow path {
  fill: #8ea19a;
}

.cube-edge {
  stroke: var(--blue);
}

.trade-edge {
  stroke: var(--teal);
  stroke-width: 3.5;
}

.pnl-svg-node rect,
.pnl-svg-callout rect {
  fill: #ffffff;
  stroke: rgba(22, 32, 28, 0.2);
  stroke-width: 1.5;
  rx: 10;
}

.pnl-svg-node text,
.pnl-svg-callout text {
  fill: var(--ink);
}

.pnl-svg-node .kicker,
.pnl-svg-callout .kicker {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pnl-svg-node .big,
.pnl-svg-callout .big {
  font-size: 17px;
  font-weight: 900;
}

.pnl-svg-node .huge {
  font-size: 31px;
  font-weight: 950;
}

.pnl-svg-node .small,
.pnl-svg-callout .small {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.cube-node rect {
  fill: #f4f8fc;
  stroke: rgba(53, 108, 163, 0.25);
}

.cube-node.channel rect {
  fill: #f3faf7;
  stroke: rgba(8, 124, 107, 0.3);
}

.sales-node rect {
  fill: #fbfdfb;
}

.trade-highlight rect {
  fill: #e8f5f1;
  stroke: var(--teal);
  stroke-width: 3;
  filter: drop-shadow(0 12px 20px rgba(8, 124, 107, 0.18));
}

.trade-highlight .kicker,
.trade-highlight .big {
  fill: var(--teal-dark);
}

.net-sales-node rect {
  fill: #eef6fb;
  stroke: var(--blue);
  stroke-width: 2.5;
}

.net-sales-node .huge {
  fill: var(--blue);
}

.cost-node rect {
  fill: #f7f4ef;
}

.margin-node rect {
  fill: #fff9ec;
  stroke: rgba(184, 121, 24, 0.35);
}

.margin-node .huge {
  fill: var(--amber);
}

.it-highlight rect {
  fill: #fff3ef;
  stroke: var(--coral);
  stroke-width: 3;
  filter: drop-shadow(0 12px 20px rgba(204, 90, 67, 0.16));
}

.it-highlight .kicker,
.it-highlight .big {
  fill: #963a2b;
}

.earnings-node rect {
  fill: #f1f1ee;
}

.pnl-svg-callout rect {
  fill: #fbfdfb;
  stroke: rgba(8, 124, 107, 0.3);
}

.mix-dashboard,
.commercial-visual {
  overflow: hidden;
  border: 1px solid rgba(8, 124, 107, 0.16);
  border-radius: 8px;
  background: #f6faf7;
}

.mix-dashboard-svg,
.run-rate-svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-paper {
  fill: #ffffff;
  stroke: rgba(22, 32, 28, 0.12);
  stroke-width: 1.4;
}

.diagram-title,
.pnl-board-title {
  fill: var(--ink);
  font-size: 24px;
  font-weight: 950;
}

.diagram-subtitle,
.pnl-board-subtitle {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.ring-track {
  fill: #f7faf8;
  stroke: rgba(22, 32, 28, 0.1);
  stroke-width: 18;
}

.ring-fill {
  fill: none;
  stroke-linecap: round;
  stroke-width: 18;
  transform: rotate(-90deg);
  transform-origin: center;
}

.mix-ring.current .ring-fill {
  stroke: var(--amber);
}

.mix-ring.target .ring-fill {
  stroke: var(--teal);
}

.ring-value {
  fill: var(--ink);
  font-size: 31px;
  font-weight: 950;
  text-anchor: middle;
}

.ring-label {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
  text-transform: uppercase;
}

.mix-shift-arrow path {
  fill: none;
  marker-end: url("#mixArrow");
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 4;
}

#mixArrow path {
  fill: var(--teal);
}

.revenue-engine rect {
  fill: #e8f5f1;
  stroke: rgba(8, 124, 107, 0.34);
  stroke-width: 2;
}

.engine-kicker,
.source-kicker,
.result-kicker {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.engine-main {
  fill: var(--teal-dark);
  font-size: 28px;
  font-weight: 950;
}

.engine-chip-row rect {
  fill: #ffffff;
  stroke: rgba(8, 124, 107, 0.22);
  stroke-width: 1.2;
}

.engine-chip-row text {
  fill: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
  text-transform: uppercase;
}

.growth-flow {
  fill: none;
  marker-end: url("#mixArrow");
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 3.4;
}

.result-flow {
  stroke: #8ea19a;
  stroke-width: 2.6;
}

.revenue-source rect {
  fill: #fbfdfb;
  stroke: rgba(22, 32, 28, 0.15);
  stroke-width: 1.5;
}

.revenue-source.online rect {
  fill: #eef6fb;
  stroke: rgba(53, 108, 163, 0.28);
}

.revenue-source.store rect {
  fill: #fff9ec;
  stroke: rgba(184, 121, 24, 0.3);
}

.source-main {
  fill: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.revenue-result rect {
  fill: var(--teal);
  stroke: var(--teal-dark);
  stroke-width: 2;
}

.revenue-result .result-kicker,
.revenue-result .result-main {
  fill: #ffffff;
}

.result-main {
  fill: var(--ink);
  font-size: 25px;
  font-weight: 950;
}

.revenue-footnote text {
  fill: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.mix-shift-arrow rect {
  fill: #e8f5f1;
  stroke: rgba(8, 124, 107, 0.3);
  stroke-width: 1.5;
}

.mix-shift-arrow text {
  fill: var(--teal-dark);
  font-size: 16px;
  font-weight: 950;
  text-anchor: middle;
}

.bridge-card rect {
  fill: #fbfdfb;
  stroke: rgba(22, 32, 28, 0.14);
  stroke-width: 1.4;
}

.bridge-card.result rect {
  fill: var(--teal);
  stroke: var(--teal-dark);
}

.bridge-kicker {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bridge-main {
  fill: var(--ink);
  font-size: 19px;
  font-weight: 950;
}

.bridge-card.result .bridge-kicker,
.bridge-card.result .bridge-main {
  fill: #ffffff;
}

.bridge-symbol {
  fill: var(--muted);
  font-size: 24px;
  font-weight: 950;
  text-anchor: middle;
}

.path-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.path-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.path-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.path-lane {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 14px;
}

.path-lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.path-lane-head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.path-lane-head strong {
  font-size: 1.25rem;
}

.wrong-path {
  border-top: 5px solid var(--coral);
}

.better-path {
  border-top: 5px solid var(--teal);
}

.path-steps {
  counter-reset: path-step;
}

.path-steps li {
  position: relative;
  min-height: 82px;
  border: 1px solid rgba(22, 32, 28, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 12px 12px 48px;
}

.path-steps li::before {
  position: absolute;
  top: 13px;
  left: 13px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #f1f1ee;
  color: var(--muted);
  content: counter(path-step);
  counter-increment: path-step;
  font-size: 0.72rem;
  font-weight: 950;
}

.wrong-path .path-end {
  background: #fff3ef;
  border-color: rgba(204, 90, 67, 0.28);
}

.better-path .path-end {
  background: #f0faf6;
  border-color: rgba(8, 124, 107, 0.26);
}

.pivot-card {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(184, 121, 24, 0.26);
  border-radius: 8px;
  background: #fff9ec;
  padding: 16px;
  text-align: center;
}

.pivot-card span {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pivot-card strong {
  font-size: 1.05rem;
  line-height: 1.15;
}

.pivot-card p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.capability-system {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.6fr);
  gap: 14px;
  align-items: stretch;
}

.capability-core {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(8, 124, 107, 0.22);
  border-radius: 8px;
  background: #e8f5f1;
  padding: 18px;
}

.capability-core span {
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.capability-core strong {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-grid div {
  min-height: 96px;
  background: #ffffff;
}

.commercial-visual {
  background: #f4f8fc;
}

.run-rate-total-chip rect {
  fill: #eef6fb;
  stroke: rgba(53, 108, 163, 0.26);
  stroke-width: 1.5;
}

.run-rate-total-chip text {
  fill: var(--blue);
  font-size: 24px;
  font-weight: 950;
  text-anchor: middle;
}

.run-rate-total-chip .chip-subline {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.value-total-chip rect {
  fill: #fff9ec;
  stroke: rgba(184, 121, 24, 0.3);
  stroke-width: 1.5;
}

.value-total-chip text {
  fill: var(--amber);
  font-size: 21px;
  font-weight: 950;
}

.value-total-chip .chip-subline {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.run-rate-legend text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.legend-bar {
  fill: #9bc4e5;
}

.legend-line {
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 3.5;
}

.chart-grid {
  stroke: rgba(22, 32, 28, 0.08);
  stroke-width: 1.5;
}

.chart-axis {
  stroke: rgba(22, 32, 28, 0.28);
  stroke-width: 2;
}

.quarter-bar {
  fill: url("#runRateFill");
}

.quarter-bar.y1 {
  opacity: 0.5;
}

.quarter-bar.y2 {
  opacity: 0.72;
}

.quarter-bar.y3 {
  opacity: 0.96;
}

.run-rate-line {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.milestone-dot circle {
  fill: #ffffff;
  stroke: var(--blue);
  stroke-width: 3.5;
}

.milestone-dot.final circle {
  fill: var(--blue);
  stroke: #ffffff;
}

.milestone-dot text {
  text-anchor: middle;
}

.milestone-value {
  fill: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.milestone-stage {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.milestone-year {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.quarter-labels text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-anchor: middle;
}

.run-rate-bar rect {
  fill: url("#runRateFill");
}

.run-rate-bar.prove rect {
  opacity: 0.52;
}

.run-rate-bar.expand rect {
  opacity: 0.75;
}

.run-rate-bar.operate rect {
  opacity: 1;
}

.bar-value {
  fill: var(--ink);
  font-size: 22px;
  font-weight: 950;
  text-anchor: middle;
}

.bar-value-inside {
  fill: #ffffff;
}

.bar-year {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 950;
  text-anchor: middle;
  text-transform: uppercase;
}

.bar-stage {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-anchor: middle;
  text-transform: uppercase;
}

.basis-chip rect {
  fill: #ffffff;
  stroke: rgba(53, 108, 163, 0.18);
  stroke-width: 1.5;
}

.basis-chip.steady rect {
  fill: #eef6fb;
  stroke: rgba(53, 108, 163, 0.3);
}

.basis-chip.avoided rect {
  fill: #fff3ef;
  stroke: rgba(204, 90, 67, 0.26);
}

.basis-chip text {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
}

.pnl-value-tree {
  min-width: 980px;
  background: #f8faf7;
}

.pnl-board-title {
  font-size: 25px;
}

.pnl-zone-label text {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.pnl-node rect,
.deal-implication rect {
  fill: #ffffff;
  stroke: rgba(22, 32, 28, 0.15);
  stroke-width: 1.5;
}

.pnl-node text,
.deal-implication text {
  fill: var(--ink);
}

.node-kicker {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.node-main {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.node-huge {
  fill: var(--ink);
  font-size: 34px;
  font-weight: 950;
}

.node-small {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.cube-node rect {
  fill: #f4f8fc;
  stroke: rgba(53, 108, 163, 0.24);
}

.cube-node.channel rect {
  fill: #f3faf7;
  stroke: rgba(8, 124, 107, 0.26);
}

.engine-node rect {
  fill: #fbfdfb;
  stroke: rgba(8, 124, 107, 0.2);
}

.trade-highlight rect {
  fill: #e8f5f1;
  stroke: var(--teal);
  stroke-width: 2.5;
}

.trade-highlight .node-kicker,
.trade-highlight .node-main {
  fill: var(--teal-dark);
}

.net-sales-node rect {
  fill: #eef6fb;
  stroke: var(--blue);
  stroke-width: 2.2;
}

.net-sales-node .node-huge {
  fill: var(--blue);
}

.cogs-node rect {
  fill: #f7f4ef;
}

.margin-node rect {
  fill: #fff9ec;
  stroke: rgba(184, 121, 24, 0.38);
}

.margin-node .node-huge {
  fill: var(--amber);
}

.it-highlight rect {
  fill: #fff3ef;
  stroke: var(--coral);
  stroke-width: 2.5;
}

.it-highlight .node-kicker,
.it-highlight .node-main {
  fill: #963a2b;
}

.earnings-node rect {
  fill: #f1f1ee;
}

.pnl-edge {
  fill: none;
  marker-end: url("#pnlArrow");
  stroke: #8ea19a;
  stroke-linecap: round;
  stroke-width: 2.5;
}

#pnlArrow path {
  fill: #8ea19a;
}

.cube-edge {
  stroke: var(--blue);
  stroke-width: 2.7;
}

.trade-edge {
  stroke: var(--teal);
  stroke-width: 3.2;
}

.ladder-edge {
  stroke: rgba(22, 32, 28, 0.32);
}

.pivot-swoop {
  fill: none;
  marker-end: url("#pnlArrow");
  stroke: var(--amber);
  stroke-linecap: round;
  stroke-width: 4;
}

.pivot-swoop-label {
  fill: var(--amber);
  font-size: 13px;
  font-weight: 950;
  text-anchor: middle;
  text-transform: uppercase;
}

.deal-implication rect {
  fill: #fff9ec;
  stroke: rgba(184, 121, 24, 0.32);
}

.pnl-mobile-tree {
  display: none;
}

.mobile-tree-group {
  border: 1px solid rgba(22, 32, 28, 0.14);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.mobile-tree-group span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mobile-tree-group strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.mobile-tree-group p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.42;
}

.mobile-tree-arrow {
  width: 2px;
  height: 24px;
  margin: 0 auto;
  background: var(--line);
  position: relative;
}

.mobile-tree-arrow::after {
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.mobile-tree-split {
  display: grid;
  gap: 10px;
}

.mobile-trade {
  background: #e8f5f1;
  border-color: rgba(8, 124, 107, 0.34);
}

.mobile-trade span,
.mobile-trade strong {
  color: var(--teal-dark);
}

.mobile-value {
  background: #eef6fb;
  border-color: rgba(53, 108, 163, 0.3);
}

.mobile-value strong {
  color: var(--blue);
}

.mobile-it {
  background: #fff3ef;
  border-color: rgba(204, 90, 67, 0.28);
}

.mobile-it span,
.mobile-it strong {
  color: #963a2b;
}

.mobile-deal {
  margin-top: 10px;
  background: #fff9ec;
  border-color: rgba(184, 121, 24, 0.32);
}

.pnl-tree-v2 {
  display: grid;
  gap: 14px;
}

.pnl-scale-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.pnl-scale-row div {
  display: grid;
  gap: 5px;
  min-height: 78px;
  background: #fbfdfb;
  padding: 13px 14px;
}

.pnl-scale-row span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pnl-scale-row strong {
  font-size: clamp(1.25rem, 2.2vw, 1.95rem);
  line-height: 1;
}

.pnl-tree-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(260px, 0.82fr) minmax(260px, 0.78fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.pnl-column {
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid rgba(22, 32, 28, 0.12);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.pnl-column header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.pnl-column header span,
.pnl-line span,
.dimension-grid span,
.tree-fork span,
.funding-shift span,
.flow-step span,
.flow-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pnl-column h3 {
  margin: 4px 0 0;
  font-size: 0.98rem;
  line-height: 1.15;
}

.pnl-line {
  display: grid;
  grid-template-columns: minmax(98px, 0.42fr) minmax(82px, 0.3fr) minmax(0, 0.92fr);
  gap: 9px;
  align-items: start;
  border: 1px solid rgba(22, 32, 28, 0.1);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 9px;
}

.pnl-line strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.2;
}

.pnl-line p,
.dimension-grid p,
.tree-fork p,
.funding-shift p,
.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.36;
}

.original-line {
  border-color: rgba(204, 90, 67, 0.34);
  background: #fff3ef;
}

.original-line span,
.original-line strong {
  color: #963a2b;
}

.moved-line {
  border-color: rgba(8, 124, 107, 0.34);
  background: #e8f5f1;
}

.moved-line span,
.moved-line strong {
  color: var(--teal-dark);
}

.value-line {
  border-color: rgba(53, 108, 163, 0.3);
  background: #eef6fb;
}

.value-line strong {
  color: var(--blue);
}

.dimension-grid {
  display: grid;
  gap: 9px;
}

.dimension-grid div,
.tree-fork,
.funding-shift,
.flow-step,
.flow-summary {
  border: 1px solid rgba(22, 32, 28, 0.1);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.dimension-grid strong,
.tree-fork strong,
.funding-shift strong,
.flow-step strong,
.flow-summary strong {
  display: block;
  margin: 4px 0 5px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.18;
}

.tree-fork {
  border-color: rgba(53, 108, 163, 0.24);
  background: #f4f8fc;
}

.funding-shift,
.flow-step.moved {
  border-color: rgba(8, 124, 107, 0.34);
  background: #e8f5f1;
}

.funding-shift span,
.funding-shift strong,
.flow-step.moved span,
.flow-step.moved strong {
  color: var(--teal-dark);
}

.flow-step.original {
  border-color: rgba(204, 90, 67, 0.34);
  background: #fff3ef;
}

.flow-step.original span,
.flow-step.original strong {
  color: #963a2b;
}

.flow-step.realized {
  border-color: rgba(53, 108, 163, 0.34);
  background: #eef6fb;
}

.flow-step.realized span,
.flow-step.realized strong {
  color: var(--blue);
}

.flow-arrow {
  position: relative;
  display: grid;
  min-height: 28px;
  place-items: center;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.flow-arrow::before,
.flow-arrow::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.flow-arrow::before {
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.flow-arrow::after {
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}

.flow-summary {
  border-color: rgba(184, 121, 24, 0.34);
  background: #fff9ec;
}

.flow-summary span,
.flow-summary strong {
  color: var(--amber);
}

.summary-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.summary-band article,
.metric-grid,
.controls,
.graph-panel,
.flow-table,
.readiness-panel,
.question-toolbar,
.question-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.summary-band article {
  padding: 28px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.metric {
  min-height: 122px;
  background: var(--surface);
  padding: 22px;
}

.metric strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.8vw, 2.4rem);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.workbench {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.controls {
  position: sticky;
  top: 84px;
  padding: 18px;
}

.filter-list,
.lens-list {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.filter,
.lens {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 800;
}

.filter::after,
.lens::after {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
  content: "";
}

.filter.is-active::after,
.lens.is-active::after {
  background: var(--teal);
}

.lens.is-active {
  border-color: rgba(8, 124, 107, 0.45);
  background: #e8f5f1;
}

.detail-panel {
  border-left: 4px solid var(--teal);
  background: #f6fbf9;
  padding: 14px;
}

.detail-panel h3 {
  margin-bottom: 6px;
}

.detail-panel p {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.detail-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-panel dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-panel dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 750;
}

.graph-panel {
  overflow: hidden;
}

.graph-header {
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) minmax(280px, 0.5fr);
  gap: 18px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
}

.graph-header h2 {
  margin-bottom: 0;
}

.graph-header p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

#ontologyGraph {
  display: block;
  width: 100%;
  min-height: 560px;
  background:
    radial-gradient(circle at 25% 15%, rgba(8, 124, 107, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #f6faf7);
}

.edge {
  stroke: #aebbb5;
  stroke-width: 2;
  opacity: 0.32;
  fill: none;
}

.region rect {
  fill-opacity: 0.78;
  stroke: rgba(22, 32, 28, 0.12);
  stroke-width: 1;
}

.region .region-label {
  fill: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.region .region-title {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.region .region-copy {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.edge.is-flow {
  stroke: var(--teal);
  stroke-width: 4;
  opacity: 0.9;
  stroke-dasharray: 11 9;
  animation: dash 1s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -20;
  }
}

.node {
  outline: none;
}

.node rect {
  stroke: rgba(22, 32, 28, 0.2);
  stroke-width: 1.5;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.node text {
  pointer-events: none;
  fill: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.node .subtext {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.node:hover rect,
.node:focus rect,
.node.is-selected rect {
  filter: drop-shadow(0 10px 18px rgba(8, 124, 107, 0.24));
  stroke: var(--teal);
  stroke-width: 3;
}

.node.is-muted,
.edge.is-muted {
  opacity: 0.16;
}

.risk-ring {
  fill: none;
  stroke: var(--coral);
  stroke-dasharray: 4 5;
  stroke-width: 2;
}

.flow-table {
  margin-top: 18px;
  padding: 24px;
}

.flow-table ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.flow-table li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 14px;
}

.flow-table strong {
  display: block;
  margin-bottom: 8px;
}

.flow-table span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.question-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
}

.search-wrap label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 13px 14px;
  color: var(--ink);
}

.question-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.question-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.question-tab.is-active {
  border-color: rgba(8, 124, 107, 0.45);
  background: #e8f5f1;
  color: var(--ink);
}

.value-tree-panel {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.value-tree-header {
  display: grid;
  grid-template-columns: minmax(300px, 0.55fr) minmax(320px, 0.45fr);
  gap: 18px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.value-tree-header h2,
.value-tree-header p {
  margin-bottom: 0;
}

.tree-scroll {
  overflow-x: auto;
  padding: 18px 18px 8px;
}

.value-tree {
  display: block;
  min-width: 1080px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 124, 107, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 124, 107, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f6faf7);
  background-size: 34px 34px, 34px 34px, auto;
}

.tree-edge {
  fill: none;
  stroke: #9eaca6;
  stroke-width: 2.25;
  marker-end: url("#treeArrow");
}

.tree-edge.main {
  stroke: var(--teal);
  stroke-width: 4;
}

.tree-edge.revenue {
  stroke: var(--blue);
}

.tree-edge.cost {
  stroke: var(--coral);
}

.tree-node rect,
.mismatch-callout rect {
  stroke: rgba(22, 32, 28, 0.22);
  stroke-width: 1.5;
  fill: #ffffff;
}

.tree-node text,
.mismatch-callout text {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.tree-node .big {
  font-size: 18px;
}

.tree-node .small,
.mismatch-callout .small {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tree-node.root rect {
  fill: #e8f5f1;
  stroke: var(--teal);
  stroke-width: 2.5;
}

.tree-node.revenue-node rect {
  fill: #e7f0fb;
}

.tree-node.cost-node rect {
  fill: #f9e6df;
}

.tree-node.metric-node rect {
  fill: #fbfdfb;
}

.tree-node.outcome-node rect {
  fill: #fff9ec;
}

.tree-node.hot rect {
  stroke: var(--teal);
  stroke-width: 3;
  filter: drop-shadow(0 10px 18px rgba(8, 124, 107, 0.18));
}

.mismatch-callout rect {
  fill: #fff3ef;
  stroke: var(--coral);
  stroke-width: 2.5;
}

.value-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.value-metrics div {
  min-height: 108px;
  background: #fbfdfb;
  padding: 18px;
}

.value-metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.value-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.question-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.readiness-panel {
  position: sticky;
  top: 84px;
  padding: 20px;
}

.readiness-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.readiness-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.readiness-score {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.readiness-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.92rem;
}

.readiness-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.question-card {
  display: grid;
  gap: 12px;
  min-height: 280px;
  padding: 20px;
}

.question-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.priority {
  min-width: 72px;
  border-radius: 999px;
  background: var(--ink);
  padding: 7px 9px;
  color: #fff;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 900;
}

.question-card h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
  padding: 10px;
}

.card-meta span,
.assumption span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-meta strong,
.assumption strong {
  font-size: 0.86rem;
  line-height: 1.35;
}

.assumption {
  border-left: 4px solid var(--amber);
  background: #fff9ec;
  padding: 10px 12px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 28px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .summary-band,
  .workbench,
  .question-layout,
  .question-toolbar,
  .value-tree-header,
  .case-landing-panel,
  .goal-section,
  .commercial-section,
  .path-intro,
  .path-map,
  .capability-system,
  .pnl-tree-board,
  .path-section {
    grid-template-columns: 1fr;
  }

  .controls,
  .readiness-panel {
    position: static;
  }

  .filter-list,
  .lens-list,
  .readiness-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-panel {
    grid-column: 1 / -1;
  }

  .flow-table ol,
  .question-grid,
  .value-metrics,
  .deal-metric-strip,
  .capability-grid,
  .pnl-scale-row,
  .pnl-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding: 10px;
  }

  .summary-band article,
  .flow-table,
  .question-toolbar,
  .readiness-panel,
  .question-card,
  .value-tree-header,
  .case-list-panel,
  .case-landing-main,
  .case-action-panel,
  .deal-hero,
  .deal-section,
  .pnl-visual-scroll {
    padding: 12px;
  }

  .metric-grid,
  .filter-list,
  .lens-list,
  .readiness-list,
  .flow-table ol,
  .question-grid,
  .value-metrics,
  .deal-metric-strip,
  .capability-grid,
  .pnl-metrics,
  .pnl-scale-row,
  .pnl-tree-board,
  .pnl-line,
  .path-intro,
  .path-map,
  .capability-system,
  .case-list,
  .card-meta,
  .graph-header {
    grid-template-columns: 1fr;
  }

  .deal-hero h1 {
    font-size: clamp(1.8rem, 12vw, 2.7rem);
  }

  #ontologyGraph {
    min-height: 520px;
  }

  .question-tabs {
    justify-content: flex-start;
  }

  .pnl-visual-scroll {
    overflow-x: hidden;
  }

  .pnl-value-tree {
    display: none;
  }

  .pnl-mobile-tree {
    display: grid;
    gap: 10px;
  }
}

.property-view {
  display: none;
}

.property-view.is-active {
  display: block;
}

.property-hero,
.property-architecture-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(31, 48, 42, 0.08);
}

.property-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: clamp(18px, 4vw, 34px);
}

.property-hero .compact-back {
  justify-self: start;
}

.property-hero h1 {
  max-width: 900px;
  text-transform: none;
}

.property-hero p:not(.label) {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 650;
}

.property-architecture-card {
  padding: clamp(10px, 2vw, 18px);
  overflow: hidden;
}

.property-architecture-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(22, 32, 28, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 32, 28, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(22, 32, 28, 0.045) 1px, transparent 1px),
    #fffaf1;
  background-size: 34px 34px;
}

.property-architecture-svg text {
  fill: var(--muted);
  font-size: 22px;
  font-weight: 650;
}

.pm-board {
  fill: rgba(255, 255, 255, 0.4);
  stroke: rgba(22, 32, 28, 0.12);
}

.pm-node rect,
.pm-actor rect {
  fill: #fff;
  stroke: rgba(22, 32, 28, 0.16);
  stroke-width: 2;
}

.pm-human rect {
  stroke: var(--coral);
}

.pm-fde rect {
  stroke: var(--amber);
}

.pm-workers rect,
.pm-models rect,
.pm-app rect {
  stroke: var(--blue);
}

.pm-ontology rect {
  stroke: var(--teal);
  stroke-width: 4;
}

.pm-disposable rect {
  fill: #fffaf1;
  stroke: var(--ink);
  stroke-dasharray: 8 8;
  stroke-width: 3;
}

.pm-gate rect {
  fill: #fffdf8;
  stroke: var(--violet);
  stroke-width: 5;
}

.pm-gate line {
  stroke: var(--line);
  stroke-width: 2;
}

.property-architecture-svg .pm-node-title,
.property-architecture-svg .pm-actor text:first-of-type {
  fill: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.property-architecture-svg .pm-gate .pm-node-title {
  fill: var(--violet);
}

.property-architecture-svg .pm-gate-label {
  fill: var(--ink);
  font-size: 21px;
  font-weight: 850;
}

.pm-chip {
  fill: #eef5ff;
  stroke: rgba(53, 108, 163, 0.4);
  stroke-width: 1.5;
}

.property-architecture-svg .pm-chip-text,
.property-architecture-svg .pm-read-label,
.property-architecture-svg .pm-row-label {
  font-size: 16px;
  font-weight: 850;
}

.property-architecture-svg .pm-chip-text {
  fill: var(--blue);
}

.property-architecture-svg .pm-read-label {
  fill: var(--teal);
}

.property-architecture-svg .pm-row-label {
  fill: var(--coral);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pm-case-badge rect {
  fill: #fff7ed;
  stroke: rgba(204, 90, 67, 0.45);
  stroke-width: 2;
}

.pm-case-badge text {
  fill: var(--coral);
  font-size: 18px;
  font-weight: 900;
}

.pm-after-badge rect {
  fill: #eef7f5;
  stroke: rgba(8, 124, 107, 0.45);
}

.pm-after-badge text {
  fill: var(--teal);
}

.pm-human-fde-line,
.pm-input-line,
.pm-change-line,
.pm-model-line,
.pm-worker-line,
.pm-disposable-return-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  marker-end: url("#propertyArrow");
}

.pm-human-fde-line {
  marker-start: url("#propertyArrow");
}

.pm-input-line {
  stroke: var(--amber);
}

.pm-model-line,
.pm-worker-line {
  stroke: var(--blue);
}

.pm-read-line {
  fill: none;
  stroke: var(--teal);
  stroke-dasharray: 8 9;
  stroke-width: 3.5;
  marker-end: url("#propertyArrowMuted");
}

.pm-disposable-line {
  fill: none;
  stroke: var(--ink);
  stroke-dasharray: 8 9;
  stroke-width: 3;
  marker-end: url("#propertyArrow");
}

.pm-disposable-return-line {
  stroke-dasharray: 8 9;
  stroke-width: 3;
}

#propertyArrow path {
  fill: var(--ink);
}

#propertyArrowMuted path {
  fill: var(--teal);
}

.pm-callout rect {
  fill: var(--ink);
}

.pm-callout text {
  fill: #fff;
  font-size: 18px;
  font-weight: 900;
}

.pm-open-source rect {
  fill: var(--teal);
}

.pm-guardrail rect {
  fill: #313337;
}

.pm-guardrail text {
  font-size: 17px;
}
