.history-intro { max-width: 760px; margin-bottom: 38px; }
.history-calculator { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.history-input-panel, .history-results { padding: 30px; }
.history-input-panel { border-right: 1px solid var(--line); }
.history-input-panel h2 { margin-bottom: 22px; }
.history-search-field { position: relative; }
#history-ticker, .history-date { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #b9c9c1; border-radius: 9px; background: transparent; color: var(--ink); outline: 0; font: 500 13px Manrope, sans-serif; }
#history-ticker:focus, .history-date:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(12,138,97,.13); }
.history-search-results { position: absolute; top: calc(100% + 4px); left: 0; width: 100%; z-index: 10; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.history-search-results button { display: flex; width: 100%; gap: 10px; align-items: center; border-radius: 0; padding: 10px 12px; text-align: left; background: var(--surface) !important; color: var(--ink) !important; white-space: normal; transform: none; }
.history-search-results button:hover, .history-search-results button:focus { background: var(--green-soft) !important; }
.history-search-results strong { font: 700 12px "DM Mono", monospace; }
.history-search-results span { color: var(--muted); font-size: 11px; }
.history-hint, .history-note, .history-status { font-size: 11px; line-height: 1.6; }
.history-hint { margin: 7px 0 19px; color: var(--muted); }
.history-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.history-input-grid label { font-size: 11px; }
.history-submit { width: 100%; height: 43px; margin-top: 20px; }
.history-demo { width: 100%; height: 40px; margin-top: 8px; }
.history-status { min-height: 17px; margin: 8px 0 0; color: var(--red); }
.history-status[data-kind="loading"] { color: var(--muted); }
.history-note { color: var(--muted); margin: 15px 0 0; }
.history-results { background: color-mix(in srgb, var(--green-soft) 34%, var(--surface)); }
.history-results > p { margin: 7px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.history-result-list { display: grid; gap: 10px; margin: 0; }
.history-result-list div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid var(--line); }
.history-result-list dt { color: var(--muted); font-size: 11px; }
.history-result-list dd { margin: 0; color: var(--ink); font: 500 15px "DM Mono", monospace; text-align: right; }
.history-result-list .history-total dd { color: var(--green); font-size: 23px; }
.history-chart-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.history-chart-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.history-chart-heading p, .history-chart-empty { color: var(--muted); font-size: 11px; line-height: 1.6; }
.history-ranges { display: flex; gap: 5px; }
.history-ranges[hidden] { display: none; }
.history-ranges button { height: 34px; padding: 0 11px; }
.history-ranges button[aria-pressed="true"] { background: var(--green); color: #fff; }
.history-chart-empty { padding: 45px 12px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
.history-chart { display: block; width: 100%; height: 260px; touch-action: pan-y; }
.history-chart:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.history-chart-selection { min-height: 20px; color: var(--muted); font: 11px "DM Mono", monospace; }
.history-table-details { margin-top: 18px; color: var(--muted); font-size: 12px; }
.history-table-details summary { cursor: pointer; font-weight: 700; }
.history-table-wrap { max-height: 300px; overflow: auto; margin-top: 10px; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { padding: 9px 0; border-top: 1px solid var(--line); text-align: right; }
.history-table th:first-child, .history-table td:first-child { text-align: left; }
.history-table td { font-family: "DM Mono", monospace; }
.history-information { margin-top: 10px; }
@media (prefers-color-scheme: dark) { #history-ticker, .history-date { background: #112019; border-color: #466055; } }
@media (max-width: 760px) {
  .history-calculator { grid-template-columns: 1fr; }
  .history-input-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .history-input-panel, .history-results { padding: 23px 20px; }
  .history-input-grid { grid-template-columns: 1fr; }
  .history-chart-heading { flex-direction: column; }
  .history-chart { height: 210px; }
}

/* What if I invested it instead */
.purchase-intro { max-width:760px; margin:35px auto 39px; text-align:center; }
.purchase-intro h1 { max-width:760px; margin:0 auto 15px; }
.purchase-intro .intro-copy { max-width:650px; margin:0 auto; }
.purchase-calculator { background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); overflow:hidden; }
.purchase-inputs { padding:29px 30px 22px; }
.purchase-fields { display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr; gap:13px; }
.purchase-fields label { font-size:11px; }
.purchase-text-input,.purchase-rate-input,.purchase-fields select { display:flex; align-items:center; height:43px; padding:0 11px; border:1px solid #b9c9c1; border-radius:9px; background:transparent; color:var(--ink); }
.purchase-text-input input,.purchase-rate-input input { min-width:0; width:100%; border:0; outline:0; background:transparent; color:var(--ink); font:500 13px Manrope,sans-serif; }
.purchase-rate-input span { color:var(--muted); font:13px "DM Mono",monospace; }
.purchase-text-input:focus-within,.purchase-rate-input:focus-within,.purchase-fields select:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(12,138,97,.13); outline:0; }
.purchase-helper { margin:13px 0 0; color:var(--muted); font-size:11px; line-height:1.6; }
.purchase-outcomes { display:grid; grid-template-columns:repeat(3,1fr); gap:11px; padding:24px 30px; border-top:1px solid var(--line); background:color-mix(in srgb,var(--green-soft) 34%,var(--surface)); }
.purchase-outcomes article { padding:17px; border:1px solid var(--line); border-radius:12px; text-align:center; }
.purchase-outcomes p { margin:0 0 8px; color:var(--muted); font-size:12px; font-weight:700; }
.purchase-outcomes strong { color:var(--green); font:500 clamp(25px,3vw,38px) "DM Mono",monospace; letter-spacing:-.08em; }
.purchase-disclaimer { margin:0; padding:0 30px 24px; color:var(--muted); font-size:11px; line-height:1.6; background:color-mix(in srgb,var(--green-soft) 34%,var(--surface)); }
.purchase-presets { margin-top:47px; padding-top:25px; border-top:1px solid var(--line); }
.purchase-presets h2 { margin:0 0 6px; }
.purchase-presets > div > p { margin:0; color:var(--muted); font-size:13px; }
.preset-list { display:grid; grid-template-columns:repeat(7,1fr); gap:9px; margin-top:22px; }
.preset-list button { min-height:75px; padding:11px 8px; border:1px solid var(--line); border-radius:11px; background:var(--surface); color:var(--ink); font:700 12px Manrope,sans-serif; }
.preset-list button span { display:block; margin-top:5px; color:var(--muted); font:11px "DM Mono",monospace; }
.preset-list button:hover,.preset-list button:focus-visible { background:var(--green-soft); color:var(--green); outline:none; }
.preset-list button[aria-pressed="true"] { background:var(--green); border-color:var(--green); color:#fff; }
.preset-list button[aria-pressed="true"] span { color:color-mix(in srgb,#fff 72%,transparent); }
.purchase-information { margin-top:8px; }
@media (prefers-color-scheme:dark) { .purchase-text-input,.purchase-rate-input,.purchase-fields select { background:#112019; border-color:#466055; } .preset-list button { background:var(--surface) !important; color:var(--ink) !important; } .preset-list button:hover,.preset-list button:focus-visible { background:var(--green-soft) !important; color:var(--green) !important; } .preset-list button[aria-pressed="true"] { background:var(--green) !important; border-color:var(--green); color:#fff !important; } }
@media (max-width:760px) { .purchase-intro { margin:23px 0 30px; text-align:left; }.purchase-fields { grid-template-columns:1fr; gap:12px; }.purchase-inputs { padding:23px 20px 18px; }.purchase-outcomes { grid-template-columns:1fr; padding:20px; gap:8px; }.purchase-outcomes article { display:flex; justify-content:space-between; align-items:baseline; padding:15px; text-align:left; }.purchase-outcomes p { margin:0; }.purchase-outcomes strong { font-size:26px; }.purchase-disclaimer { padding:0 20px 21px; }.purchase-presets { margin-top:37px; }.preset-list { grid-template-columns:repeat(2,1fr); }.preset-list button { min-height:63px; } }
