.investment-calculator { min-width: 0; }
.investment-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 8px 0 24px; }
.investment-intro h3 { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; margin: 8px 0; }
.investment-intro p { color: #5c6d82; max-width: 46rem; line-height: 1.7; margin: 0; }
.investment-method-tag { padding: 8px 13px; border: 1px solid #d5be92; color: #765d2f; background: #faf6ed; border-radius: 6px; font-size: .875rem; flex-shrink: 0; }
.investment-reference-note { padding: 13px 16px; border-left: 3px solid #c8ad77; background: #faf6ed; color: #715d3b; font-size: .875rem; line-height: 1.7; margin: 0 0 24px; }
.investment-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.investment-input-panel { margin: 0; min-width: 0; }
.investment-panel-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.investment-panel-heading h4, .investment-fee-breakdown h4 { margin: 0; font-size: 1.1rem; }
.investment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.investment-fields label { display: flex; flex-direction: column; gap: 8px; color: #354d66; font-size: .95rem; line-height: 1.6; min-width: 0; }
.investment-fields input, .investment-fields select { font: inherit; font-size: 1rem; color: #162d46; background: #fbfcfe; border: 1px solid #bac8d6; border-radius: 6px; padding: 12px; min-height: 48px; width: 100%; min-width: 0; box-sizing: border-box; }
.investment-fields input:focus-visible, .investment-fields select:focus-visible { outline: 2px solid #aa8546; outline-offset: 3px; }
.investment-fields input[aria-invalid=true] { border-color: #b14d40; background: #fff8f5; }
.investment-wide { grid-column: 1 / -1; }
.investment-fields small, .investment-form-note, .investment-dividends p, .investment-scope, .investment-source { font-size: .875rem; color: #66778b; line-height: 1.7; }
.investment-fields small { display: block; margin-top: 5px; }
.investment-form-note { margin: 18px 0; }
.investment-dividends { border-block: 1px solid #dce4ec; padding: 18px 0; }
.investment-dividends summary, .investment-formulas summary { cursor: pointer; color: #304a64; font-weight: 600; font-size: 1rem; line-height: 1.6; }
.investment-dividends summary:focus-visible, .investment-formulas summary:focus-visible { outline: 2px solid #aa8546; outline-offset: 5px; }
.investment-dividend-note { padding: 12px; border-left: 3px solid #ccb17b; background: #faf7ef; }
.investment-dividend-total { display: flex; justify-content: space-between; gap: 15px; align-items: center; flex-wrap: wrap; color: #354c63; }
.investment-dividend-total output { font-weight: 600; font-variant-numeric: tabular-nums; }
.investment-form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.investment-form-actions > span { font-size: .875rem; color: #66778b; }
.investment-result-panel { border: 1px solid #d1dce6; border-radius: 10px; background: white; overflow: hidden; min-width: 0; }
.investment-result-hero { padding: 27px; background: var(--navy); color: #f9f5ee; }
.investment-result-hero > span { font-size: 1rem; color: #dac59e; }
.investment-result-hero > output { display: block; font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 500; line-height: 1.35; margin: 12px 0 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.investment-result-hero[data-tone=positive] > output { color: #a9e6cb; }
.investment-result-hero[data-tone=negative] > output { color: #ffc1b7; }
.investment-return { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid #425066; }
.investment-return span { font-size: .875rem; color: #ced7e3; }
.investment-return strong { font-size: 1.4rem; font-weight: 500; overflow-wrap: anywhere; }
.investment-result-hero p { color: #bdc9d8; font-size: .875rem; margin: 14px 0 0; line-height: 1.7; }
.investment-message { margin: 0; padding: 18px 24px 0; color: #60748a; font-size: .875rem; line-height: 1.7; }
.investment-totals { margin: 8px 24px 20px; }
.investment-totals > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding: 13px 0; border-bottom: 1px solid #e6ecf2; }
.investment-totals dt { color: #5a6e84; font-size: .95rem; }
.investment-totals dd { margin: 0; color: #213951; font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.investment-fee-breakdown { padding: 0 24px 24px; }
.investment-fee-breakdown h4 { margin: 22px 0 15px; }
.investment-fee-head, .investment-fee-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1.05fr)); gap: 8px; padding: 12px 0; align-items: start; }
.investment-fee-head { color: #60748a; font-size: .8rem; border-bottom: 1px solid #d8e2eb; }
.investment-fee-row { border-bottom: 1px solid #e5ebf1; font-size: .8rem; line-height: 1.7; }
.investment-fee-row strong { font-weight: 500; color: #52677c; }
.investment-fee-row span { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.investment-fee-head span:not(:first-child) { text-align: right; }
.investment-formulas { margin-top: 24px; }
.investment-formulas p, .investment-formulas dl { font-size: .95rem; color: #5c7085; line-height: 1.75; }
.investment-formulas dl > div { display: grid; grid-template-columns: minmax(140px, .35fr) minmax(0, 1fr); gap: 18px; border-bottom: 1px solid #e5ebf1; padding: 13px 0; }
.investment-formulas dt { font-weight: 600; color: #304b64; }
.investment-formulas dd { margin: 0; }
.investment-source { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-bottom: 10px; }
.investment-source a { color: #7d6234; text-decoration: underline; }
.investment-scope { margin: 8px 0 0; }
@media (max-width: 1300px) { .investment-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1020px) and (min-width: 851px) { .investment-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; } }
@media (max-width: 650px) {
  .investment-intro { flex-direction: column; }
  .investment-intro h3 { font-size: 1.55rem; }
  .investment-fields { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .investment-result-hero { padding: 24px 18px; }
  .investment-message { padding-inline: 18px; }
  .investment-totals { margin-inline: 18px; }
  .investment-fee-breakdown { padding-inline: 18px; }
  .investment-fee-head, .investment-fee-row { gap: 6px; font-size: .8rem; }
  .investment-formulas dl > div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .investment-form-actions .secondary-button { width: 100%; justify-content: center; }
}
