:root {
  --bg: #f5f7f3;
  --surface: #ffffff;
  --surface-soft: #eef4ef;
  --ink: #142019;
  --muted: #607068;
  --line: #d9e0d8;
  --green: #2f7d59;
  --green-dark: #1d5d43;
  --blue: #2e5f9e;
  --gold: #b88125;
  --red: #b64d42;
  --shadow: 0 14px 40px rgba(25, 39, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100%;
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.workspace {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.brand-block {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.meta,
.product-line,
.kpi-note,
.sub-row,
.metrics-row span,
.target-table span,
.product-stats span {
  color: var(--muted);
}

.meta {
  margin: 8px 0 0;
  font-size: 0.98rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button {
  width: 42px;
}

.primary-button {
  gap: 8px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  font-weight: 800;
}

.icon-button svg,
.primary-button svg {
  width: 18px;
  height: 18px;
}

.kpi-grid,
.main-grid,
.secondary-grid {
  display: grid;
  gap: 14px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.kpi-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kpi-card {
  min-height: 132px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kpi-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.status-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.is-short {
  background: #fff1ee;
  color: var(--red);
}

.main-grid {
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.85fr);
  align-items: start;
}

.secondary-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr) minmax(300px, 0.75fr);
  margin-top: 14px;
}

.simple-section {
  margin-bottom: 14px;
  padding: 18px;
}

.simple-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.simple-main-card,
.simple-card,
.simple-chart-card,
.simple-decision {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.simple-main-card,
.simple-card {
  padding: 14px;
}

.simple-main-card {
  background: #f5fbf7;
  border-color: rgba(47, 125, 89, 0.24);
}

.simple-main-card span,
.simple-card span,
.simple-decision span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.simple-main-card strong,
.simple-card strong,
.simple-decision strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.simple-main-card strong {
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  line-height: 1.05;
}

.simple-card strong {
  font-size: 1.12rem;
}

.simple-main-card p,
.simple-card p,
.simple-decision p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.38;
}

.simple-graph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.simple-chart-card {
  padding: 14px;
}

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

.simple-decision {
  padding: 12px;
}

.simple-decision.safe {
  border-color: rgba(47, 125, 89, 0.28);
  background: #f5fbf7;
}

.simple-decision.growth {
  border-color: rgba(46, 95, 158, 0.24);
  background: #f8fbff;
}

.simple-decision.watch {
  border-color: rgba(184, 129, 37, 0.34);
  background: #fff8ea;
}

.weekly-watch-section {
  margin-bottom: 14px;
  padding: 18px;
}

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

.weekly-graph-panel .decision-canvas {
  height: 300px;
}

.crawler-section {
  margin-bottom: 14px;
}

.crawler-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.crawler-summary,
.signal-grid,
.intelligence-grid,
.telemetry-grid,
.macro-model-grid {
  display: grid;
  gap: 10px;
}

.crawler-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.crawler-summary div,
.signal-card,
.suggestion-card,
.history-entry {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.crawler-summary div {
  padding: 12px;
}

.crawler-summary span,
.signal-card span,
.suggestion-card span,
.history-entry span,
.subhead-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.crawler-summary strong,
.signal-card strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.signal-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
}

.telemetry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.macro-model-grid {
  grid-template-columns: 1.1fr 1fr 1fr;
  margin-bottom: 12px;
}

.telemetry-panel,
.telemetry-flag,
.news-group {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.telemetry-panel {
  padding: 12px;
}

.telemetry-list,
.news-list,
.predictor-list,
.indicator-list,
.sentiment-list,
.ci-model-list {
  display: grid;
  gap: 8px;
}

.indicator-card,
.sentiment-card,
.ci-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.indicator-card.is-high,
.sentiment-card.is-negative {
  border-color: rgba(182, 77, 66, 0.34);
  background: #fff1ee;
}

.indicator-card.is-medium {
  border-color: rgba(184, 129, 37, 0.38);
  background: #fff8ea;
}

.indicator-card span,
.sentiment-card span,
.ci-card span,
.component-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.indicator-card strong,
.sentiment-card strong,
.ci-card strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.indicator-card p,
.sentiment-card p,
.ci-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.sentiment-card.is-positive {
  border-color: rgba(47, 125, 89, 0.28);
  background: #f5fbf7;
}

.sentiment-card.is-neutral {
  background: #fbfcfa;
}

.component-grid {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.component-row {
  display: grid;
  grid-template-columns: 128px 1fr 30px;
  align-items: center;
  gap: 8px;
}

.component-row strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: right;
}

.component-track {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.component-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.telemetry-flag {
  padding: 10px;
  background: var(--surface);
}

.telemetry-flag.is-high {
  border-color: rgba(182, 77, 66, 0.4);
  background: #fff1ee;
}

.telemetry-flag.is-medium {
  border-color: rgba(184, 129, 37, 0.42);
  background: #fff8ea;
}

.telemetry-flag span,
.news-group header span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.telemetry-flag strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.telemetry-flag p,
.predictor-note p,
.muted-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.predictor-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.predictor-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.predictor-note span {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.predictor-note strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.news-group {
  padding: 10px;
}

.news-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.news-link {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.news-link:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.news-link strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  line-height: 1.28;
}

.news-link span,
.empty-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.empty-note {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  line-height: 1.35;
}

.level-pill {
  border-radius: 999px;
  padding: 4px 7px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.level-pill.is-medium {
  background: #fff8ea;
  color: var(--gold);
}

.level-pill.is-high {
  background: #fff1ee;
  color: var(--red);
}

.level-pill.is-unknown {
  color: var(--muted);
}

.signal-card {
  padding: 11px;
}

.signal-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.intelligence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.subhead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.subhead-row h3 {
  margin: 0;
  font-size: 0.98rem;
}

.suggestion-list,
.history-list {
  display: grid;
  gap: 8px;
}

.suggestion-card,
.history-entry {
  padding: 12px;
}

.suggestion-card header,
.history-entry header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.suggestion-card strong,
.history-entry strong {
  display: block;
  overflow-wrap: anywhere;
}

.suggestion-card p,
.history-entry p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.38;
}

.ai-card {
  border-color: rgba(46, 95, 158, 0.28);
  background: #f8fbff;
}

.openclaw-card {
  border-color: rgba(47, 125, 89, 0.28);
  background: #f5fbf7;
}

.openclaw-card.ai-summary {
  background: #eef8f1;
}

.openclaw-history {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(47, 125, 89, 0.18);
}

.openclaw-history span {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.openclaw-history p {
  margin-top: 5px;
}

.ai-card.is-error {
  border-color: rgba(182, 77, 66, 0.35);
  background: #fff1ee;
}

.ai-summary {
  background: #f3f8ff;
}

.confidence-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.history-entry ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.history-entry li {
  margin: 4px 0;
}

.panel {
  overflow: hidden;
}

.accordion-body {
  display: block;
}

.panel.is-collapsed > .accordion-body,
.graph-panel.is-collapsed > .accordion-body,
.telemetry-panel.is-collapsed > .accordion-body {
  display: none;
}

.accordion-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fbfcfa;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
}

.projection-panel,
.controls-panel,
.allocation-panel,
.tracker-panel,
.investment-section,
.progress-section,
.crawler-section,
.stress-section {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head.compact {
  margin-bottom: 14px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot,
.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.fund-dot,
.boring {
  background: var(--green);
}

.target-dot,
.growth {
  background: var(--blue);
}

.experiment {
  background: var(--gold);
}

#projectionChart {
  display: block;
  width: 100%;
  height: 310px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.metrics-row,
.product-stats,
.target-table {
  display: grid;
  gap: 10px;
}

.metrics-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.metrics-row div,
.product-stats div,
.target-table div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.metrics-row strong,
.product-stats strong,
.target-table strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.control-form {
  display: grid;
  gap: 13px;
}

.field,
.range-field {
  display: grid;
  gap: 7px;
}

.field span,
.range-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.range-field strong {
  color: var(--ink);
}

.field input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfcfa;
  color: var(--ink);
}

.field input:focus,
.range-field input:focus {
  outline: 3px solid rgba(47, 125, 89, 0.18);
  border-color: var(--green);
}

.range-field input {
  width: 100%;
  accent-color: var(--green);
}

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

.product-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  align-items: stretch;
}

.product-panel img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  background: var(--surface-soft);
}

.product-copy {
  padding: 18px;
}

.product-line {
  margin: 8px 0 16px;
  font-weight: 700;
}

.product-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-stats div {
  padding: 10px;
}

.product-stats strong {
  font-size: clamp(0.88rem, 1vw, 1rem);
  white-space: nowrap;
}

.clinic-flow {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.clinic-flow li {
  margin: 8px 0;
  padding-left: 3px;
}

.donut {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 42%, transparent 43%),
    conic-gradient(var(--green) 0 70%, var(--blue) 70% 95%, var(--gold) 95% 100%);
  border: 1px solid var(--line);
}

.allocation-list {
  display: grid;
  gap: 8px;
}

.allocation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.allocation-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.allocation-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.allocation-row strong {
  overflow-wrap: anywhere;
  text-align: right;
}

.sub-row {
  margin-bottom: 4px;
  font-size: 0.86rem;
  line-height: 1.35;
}

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

.market-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.market-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.investment-section,
.progress-section,
.stress-section {
  margin-top: 14px;
}

.stress-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stress-summary div,
.audit-note,
.stress-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.stress-summary div,
.audit-note {
  padding: 12px;
}

.stress-summary span,
.audit-note span,
.stress-head span,
.stress-check span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stress-summary strong,
.audit-note strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.stress-summary p,
.audit-note p,
.stress-regime,
.stress-footer p,
.stress-check p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.stress-graph-grid {
  margin-bottom: 12px;
}

.audit-notes {
  display: grid;
  gap: 8px;
}

.audit-note.is-gap {
  border-color: rgba(184, 129, 37, 0.42);
  background: #fff8ea;
}

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

.stress-card {
  overflow: hidden;
}

.stress-card.is-collapsed > .accordion-body {
  display: none;
}

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

.stress-head strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.score-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.score-pill.is-medium {
  background: #fff8ea;
  color: var(--gold);
}

.score-pill.is-low {
  background: #fff1ee;
  color: var(--red);
}

.stress-body {
  padding: 12px;
}

.shock-bars {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.shock-row {
  display: grid;
  grid-template-columns: 84px 1fr 22px;
  align-items: center;
  gap: 8px;
}

.shock-row span,
.shock-row strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shock-track {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.shock-track b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.stress-checks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.stress-check {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.stress-check.pass {
  border-color: rgba(47, 125, 89, 0.28);
}

.stress-check.partial {
  border-color: rgba(184, 129, 37, 0.36);
  background: #fffdfa;
}

.stress-check.gap {
  border-color: rgba(182, 77, 66, 0.3);
  background: #fff8f6;
}

.stress-check strong {
  display: block;
  margin-top: 4px;
}

.stress-footer {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.june-plan,
.decision-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.june-plan div,
.decision-cards div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.june-plan span,
.decision-cards span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.june-plan strong,
.decision-cards strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 1.04rem;
}

.june-plan p,
.decision-cards p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.investment-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.investment-row {
  display: grid;
  grid-template-columns: 0.78fr 1.05fr 1.42fr 1.35fr;
  gap: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.investment-row:first-child {
  border-top: 0;
}

.investment-row span {
  min-width: 0;
  padding: 12px;
  border-left: 1px solid var(--line);
  line-height: 1.35;
}

.investment-row span:first-child {
  border-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.investment-head {
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.watch-row {
  background: #fbfcfa;
}

.graph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.graph-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.graph-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.graph-head span {
  display: block;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.graph-head strong {
  display: block;
  margin-top: 3px;
  font-size: 1.02rem;
}

.graph-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: right;
}

.decision-canvas {
  display: block;
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mini-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.score-panel {
  margin-bottom: 12px;
}

.parameter-panel {
  margin-bottom: 12px;
}

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

.score-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.score-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.score-title strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

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

.score-bars {
  display: grid;
  gap: 8px;
}

.score-bar {
  display: grid;
  grid-template-columns: 86px 1fr 26px;
  align-items: center;
  gap: 8px;
}

.score-bar span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.score-track {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  border-radius: inherit;
}

.parameter-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.parameter-row {
  display: grid;
  grid-template-columns: 0.82fr 0.72fr 0.72fr 1.3fr;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.parameter-row:first-child {
  border-top: 0;
}

.parameter-row span,
.parameter-row p {
  min-width: 0;
  margin: 0;
  padding: 11px 12px;
  border-left: 1px solid var(--line);
  line-height: 1.35;
}

.parameter-row span:first-child,
.parameter-row p:first-child {
  border-left: 0;
}

.parameter-head {
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.parameter-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.progress-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 14px;
  background: #fbfcfa;
  color: var(--muted);
}

.progress-note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--green);
}

.progress-note p {
  margin: 0;
  line-height: 1.45;
}

.progress-table {
  display: grid;
  gap: 10px;
}

.progress-item {
  display: grid;
  grid-template-columns: 1fr 1.16fr 0.88fr 0.88fr 1.08fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.progress-cell {
  min-width: 0;
  padding: 12px;
  border-left: 1px solid var(--line);
  line-height: 1.35;
}

.progress-cell:first-child {
  border-left: 0;
}

.progress-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-cell strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.progress-cell p {
  margin: 5px 0 0;
  color: var(--muted);
}

.progress-name {
  background: #fbfcfa;
}

.progress-name strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1120px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-grid,
  .secondary-grid,
  .product-panel,
  .simple-graph-grid,
  .weekly-watch-grid,
  .simple-decision-grid {
    grid-template-columns: 1fr;
  }

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

  .simple-main-card {
    grid-column: span 2;
  }

  .crawler-summary,
  .signal-grid,
  .intelligence-grid,
  .telemetry-grid,
  .macro-model-grid,
  .stress-summary,
  .stress-grid {
    grid-template-columns: 1fr;
  }

  .june-plan,
  .decision-cards {
    grid-template-columns: 1fr;
  }

  .graph-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .investment-row,
  .progress-item,
  .parameter-row {
    grid-template-columns: 1fr;
  }

  .investment-row span,
  .progress-cell,
  .parameter-row span,
  .parameter-row p {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .investment-row span:first-child,
  .progress-cell:first-child,
  .parameter-row span:first-child,
  .parameter-row p:first-child {
    border-top: 0;
  }

  .investment-head,
  .parameter-head {
    display: none;
  }

  .product-panel img {
    max-height: 420px;
  }
}

@media (max-width: 680px) {
  .workspace {
    padding: 14px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .kpi-grid,
  .metrics-row,
  .product-stats,
  .target-table,
  .split-fields,
  .simple-hero-grid,
  .simple-decision-grid {
    grid-template-columns: 1fr;
  }

  .simple-main-card {
    grid-column: auto;
  }

  .kpi-card {
    min-height: 116px;
  }

  .panel-head {
    flex-direction: column;
  }

  #projectionChart {
    height: 250px;
  }

  .product-panel img {
    min-height: 240px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .workspace {
    padding: 0;
  }

  .top-actions {
    display: none;
  }

  .panel,
  .kpi-card {
    box-shadow: none;
  }
}
