.investment-workspace { max-width: 1200px; margin: 0 auto 60px; color: var(--ink); }
.investment-intro { margin: 8px 0 24px; }
.investment-intro > p:last-child { color: var(--muted); font-size: 15px; }
.investment-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.investment-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); padding: 16px 22px; min-height: 48px; white-space: nowrap; font: inherit; font-weight: 600; }
.investment-tabs button[aria-selected=true] { color: var(--accent); border-color: var(--accent); }
.investment-workspace h2 { font-family: var(--font-display, Georgia, serif); font-size: clamp(29px, 3.2vw, 42px); font-weight: 400; letter-spacing: -.035em; margin: 6px 0 16px; }
.investment-workspace h3, .investment-budget-plan h3 { font-size: 18px; margin: 0 0 14px; }
.investment-workspace p, .investment-workspace small { line-height: 1.65; }
.investment-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 34px; border-radius: 24px; border: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 7%, var(--surface-solid)); margin-bottom: 36px; }
.investment-hero strong { font-family: var(--font-display, Georgia, serif); font-size: clamp(40px, 5vw, 64px); font-weight: 400; }
.investment-hero p { margin: 6px 0; }
.investment-hero small { display: block; margin-top: 10px; color: var(--muted); max-width: 230px; }
.investment-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.investment-workspace .button, .investment-budget-plan .button, .investment-workspace summary { min-height: 44px; }
.investment-workspace .button { white-space: normal; }
.investment-panel { padding: 26px; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 22px; margin: 0 0 24px; min-width: 0; }
.investment-section-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.investment-section-heading p { margin: 0; color: var(--muted); }
.investment-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.investment-metric { min-width: 0; border: 1px solid var(--line); background: var(--surface-solid); padding: 23px 20px; border-radius: 20px; }
.investment-metric > span { display: block; font-size: 12px; color: var(--muted); }
.investment-metric strong { display: block; font-size: clamp(23px,2.7vw,34px); font-family: var(--font-display, Georgia, serif); font-weight: 400; margin: 14px 0 7px; overflow-wrap: anywhere; }
.investment-metric small { font-size: 11px; color: var(--muted); display: block; }
.investment-muted { color: var(--muted); font-size: 12px; }
.investment-notice { font-size: 13px; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--accent) 6%, var(--surface-solid)); }
.investment-empty { text-align: center; max-width: 680px; margin: 42px auto; padding: 26px; }
.investment-empty p { color: var(--muted); }
.investment-empty .investment-actions { justify-content: center; }
.investment-empty-symbol { font-size: 54px; color: var(--accent); margin-bottom: 18px; }
.investment-empty-small { padding: 22px; margin: 12px auto 24px; }
.investment-builder-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.investment-workspace input:not([type=range]), .investment-budget-plan input { min-height: 46px; font-size: 16px; width: 100%; border-radius: 12px; }
.investment-workspace label, .investment-budget-plan label { display: grid; gap: 9px; font-size: 13px; }
.investment-search > div { display: flex; gap: 8px; margin-top: 10px; }
.investment-search input { min-width: 0; }
.investment-search-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 15px 0; }
.investment-search-row > div { min-width: 0; }
.investment-search-row span, .investment-search-row small { display: block; font-size: 12px; overflow-wrap: anywhere; }
.investment-search-row small { color: var(--muted); }
.investment-search-results { max-height: 380px; overflow-y: auto; }
.investment-direct-symbol { display: flex; align-items: end; gap: 10px; margin-top: 18px; }
.investment-direct-symbol label { flex: 1; min-width: 0; }
.investment-selected { margin-top: 24px; }
.investment-selected > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.investment-selected small { display: block; color: var(--muted); font-size: 12px; }
.investment-settings > label { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; font-weight: 600; }
.investment-settings input[type=range] { width: 100%; min-height: 44px; padding: 0; accent-color: var(--accent); }
.investment-settings > p { font-size: 13px; color: var(--muted); }
.investment-range-labels { display: flex; justify-content: space-between; font-size: 12px; }
.investment-settings details { margin-top: 24px; }
.investment-workspace summary { cursor: pointer; font-weight: 600; align-content: center; }
.investment-workspace details[open] summary { margin-bottom: 18px; }
.investment-workspace output { font-variant-numeric: tabular-nums; color: var(--accent); }
.investment-badge { font-size: 11px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; white-space: nowrap; }
.investment-weights { display: grid; gap: 18px; }
.investment-weights > div > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.investment-weight-track { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.investment-weight-track i { height: 100%; display: block; background: var(--accent); border-radius: 8px; }
.investment-table-wrap { overflow-x: auto; }
.investment-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.investment-table th, .investment-table td { text-align: right; padding: 15px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.investment-table tr > :first-child { text-align: left; }
.investment-table th small { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-weight: 400; color: var(--muted); }
.investment-table thead th { color: var(--muted); font-size: 11px; }
.investment-chart { margin: 0; }
.investment-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.investment-chart text { font-size: 11px; fill: var(--muted); }
.investment-line { stroke: var(--accent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.investment-grid { stroke: var(--line); stroke-width: 1; }
.investment-chart figcaption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.investment-definitions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.investment-definitions dt { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.investment-definitions dd { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.65; }
.investment-steps { padding-left: 22px; font-size: 13px; line-height: 1.8; }
.investment-steps li { padding-left: 5px; margin-bottom: 15px; }
.investment-import { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.investment-import label { min-width: 0; max-width: 100%; }
.investment-budget-plan { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; padding: 24px; margin-top: 28px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-solid); }
.investment-budget-plan p { margin: 0; font-size: 12px; color: var(--muted); }
.investment-budget-plan .investment-actions { grid-column: 1 / -1; margin-top: 0; }
.investment-budget-plan > small { grid-column: 1 / -1; line-height: 1.7; color: var(--muted); }
.primary-navigation { overflow-x: auto; }
@media (max-width: 760px) { .app-view .primary-navigation { grid-template-columns: repeat(6,minmax(0,1fr)); } }
@media (max-width: 800px) {
  .investment-builder-grid { grid-template-columns: 1fr; gap: 0; }
  .investment-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .investment-hero { padding: 24px; }
  .investment-budget-plan { grid-template-columns: 1fr 1fr; }
  .investment-budget-plan > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .investment-tabs button { padding: 13px 14px; font-size: 12px; }
  .investment-panel { padding: 20px 16px; border-radius: 18px; }
  .investment-hero, .investment-section-heading { flex-direction: column; align-items: stretch; }
  .investment-hero small { max-width: none; }
  .investment-metric { padding: 18px 14px; }
  .investment-weights > div > div:first-child { flex-wrap: wrap; }
  .investment-definitions { grid-template-columns: 1fr; }
  .investment-budget-plan { padding: 18px; grid-template-columns: 1fr; }
  .investment-search > div { flex-wrap: wrap; }
  .investment-search input { flex: 1 1 180px; }
  .investment-import input { max-width: 100%; }
  .investment-workspace { margin-bottom: 30px; }
}
