@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-latin.9fea608a947e.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hedvig Letters Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/hedvig-letters-serif-latin.23f595c947a3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-synthesis: none;
  color-scheme: light;
  color: #282828;
  background: #fbf9f4;
  --green: #263d2a;
  --ink: #282828;
  --muted: #64675f;
  --line: #e9e7e0;
  --surface: #f5f3ee;
  --lime: #e8eddf;
  --white: #fbf9f4;
  --serif: 'Hedvig Letters Serif', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --positive: #31513b;
  --negative: #a15846;
  --matrix-rgb: 131,157,105;
  --chart-area: #e9eddf;
  --chart-flat: #b7bbae;
  --chart-line: #69834e;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: wait; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #69834e;
  outline-offset: 4px;
}
input { min-width: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--serif); font-size: 32px; line-height: 1.2; font-weight: 400; letter-spacing: -.8px; }
h2 { font-size: 14px; line-height: 1.5; font-weight: 500; letter-spacing: -.2px; }
h3 { font-size: 17px; font-weight: 500; letter-spacing: -.3px; }
p { line-height: 1.65; }
small { font-size: 11px; }
.skip { position: fixed; top: -80px; left: 20px; z-index: 20; background: var(--white); padding: 15px; }
.skip:focus { top: 15px; }

/* Compact exchange-style navigation, with a visible label for each destination. */
.sidebar {
  width: 72px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fbf9f4;
  border-right: 1px solid var(--line);
  padding: 19px 4px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-mark { display: block; width: 36px; height: 36px; color: var(--green); }
.footer-mark { width: 14px; height: 14px; vertical-align: -3px; color: var(--green); }
.brand-sub { font-size: 9px; color: #505c4d; letter-spacing: 1px; }
.sidebar nav { width: 100%; margin-top: 33px; }
.sidebar .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 59px;
  margin: 10px 0;
  padding: 8px 2px;
  border-radius: 11px;
  color: #63665e;
  font-size: 10px;
  font-weight: 400;
}
.sidebar .nav-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; stroke-linecap: round; }
.sidebar .nav-link:hover { background: #eeede7; }
.sidebar .nav-link.active { background: #e5e7dd; color: var(--green); }
.sidebar-status { margin-top: auto; display: grid; gap: 5px; color: #63675b; font-size: 9px; }
.sidebar-status b { font-size: 10px; font-weight: 400; color: #485442; }
.sidebar-status i, .local-badge i, .tiny-dot, .green-dot { display: inline-block; width: 5px; height: 5px; background: #7a9853; border-radius: 50%; margin-right: 4px; }
.shell { margin-left: 72px; }
.topbar {
  height: 53px;
  padding: 0 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #efede7;
}
.breadcrumb { font-size: 11px; color: #63665e; }
.breadcrumb span { margin: 0 12px; color: #63665b; }
.breadcrumb b { font-weight: 400; color: #5b6255; }
.top-actions { display: flex; align-items: center; gap: 22px; }
.theme-toggle { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 6px; background: transparent; color: #63665e; }
.theme-toggle:hover { background: #ecebe5; color: var(--green); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.theme-moon { display: none; }
[data-theme="dark"] .theme-sun { display: none; }
[data-theme="dark"] .theme-moon { display: block; }
.local-badge { font-size: 11px; color: #5f6853; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e4e3dc;
  background: #ecebe5;
  color: #3d4438;
  border-radius: 6px;
  padding: 9px 13px;
  min-height: 34px;
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}
.button:hover { background: #e4e5da; }
.button.small { padding: 8px 12px; }
.button.primary { background: var(--green); color: #fbf9f4; border-color: var(--green); }
.button.primary:hover { background: #354d36; }
main { max-width: 1200px; margin: 0 auto; padding: 47px 48px 0; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.independent-label { font-size: 11px; color: #63665c; }
.page-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 27px; }
.page-tabs .nav-link {
  position: relative;
  padding: 12px 15px 13px;
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
  color: #66665e;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
}
.page-tabs .nav-link.active { border-bottom-color: var(--green); color: var(--green); }
.page-tabs .nav-link:hover { color: var(--green); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.page-heading h2 { font-size: 16px; }
.page-heading p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.page-heading .eyebrow { display: none; }
.eyebrow { font-size: 10px; font-weight: 400; letter-spacing: .6px; color: #616857; margin-bottom: 12px; }
.data-line { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; font-size: 10px; color: #64665e; margin-bottom: 13px; }
.data-line a { margin-left: auto; color: #5a6b45; }
.data-chip { color: #616855; background: #eeeee6; font-size: 8px; letter-spacing: .5px; padding: 4px 6px; border-radius: 4px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-bottom: 19px; }
.metric { background: var(--surface); border: 1px solid #f0eee8; border-radius: 10px; padding: 18px 19px 15px; position: relative; overflow: hidden; }
.metric-label { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: #63675c; font-weight: 400; letter-spacing: .3px; }
.metric-label > span { font-size: 14px; color: #63675a; }
.metric-number { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: -.7px; margin: 15px 0 9px; color: #31382d; font-variant-numeric: tabular-nums; }
.number-unit { font-size: 25px; margin-left: 1px; }
.date-number { font-size: 27px; line-height: 1.35; }
.metric-footer { font-size: 10px; color: #63675c; line-height: 1.5; }
.callout { display: flex; gap: 11px; align-items: flex-start; background: #f1f2e9; border: 1px solid #e8ebdf; border-radius: 7px; padding: 12px 14px; font-size: 11px; color: #5f6851; line-height: 1.8; margin-bottom: 25px; }
.callout strong { color: #536245; font-weight: 500; }
.callout a { flex: none; margin-left: auto; white-space: nowrap; color: #576c40; }
.info-icon { display: grid; place-items: center; flex: none; width: 15px; height: 15px; border: 1px solid #929c83; border-radius: 50%; font-size: 10px; margin-top: 3px; }

/* Muted panels and restrained result typography mirror the rewards UI. */
.calculator-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,1fr); gap: 30px; }
.card { border: 1px solid #eeece5; background: var(--surface); border-radius: 11px; padding: 23px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.card-heading p { font-size: 11px; color: #62675a; margin-top: 6px; }
.tag { display: inline-block; font-size: 8px; letter-spacing: .4px; font-weight: 400; color: #616856; border: 1px solid #e3e5d9; background: #ebece4; border-radius: 4px; padding: 4px 6px; white-space: nowrap; }
.field { display: block; }
.field > span { display: block; font-size: 11px; font-weight: 400; color: #565e4e; margin-bottom: 8px; }
.field small { display: block; font-size: 9px; color: #63675b; font-weight: 400; margin-top: 4px; line-height: 1.6; }
.input-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid #e1e2d7; border-radius: 6px; background: #fbfaf6; height: 40px; padding: 0 11px; transition: border-color .15s; }
.input-wrap:focus-within { border-color: #83936a; box-shadow: 0 0 0 2px #83936a12; }
.input-wrap > span { font-size: 12px; color: #616855; flex: none; }
.input-wrap .input-suffix { font-size: 10px; color: #616759; }
.input-wrap input { width: 100%; border: 0; background: transparent; outline: 0; padding: 8px 0; font-size: 13px; font-weight: 400; color: #3b4633; font-variant-numeric: tabular-nums; }
.input-wrap select { width: 100%; border: 0; outline: 0; background: transparent; color: #3b4633; font-size: 11px; }
.large-field .input-wrap { height: 55px; }
.large-field input { font-family: var(--serif); font-size: 26px; letter-spacing: -.4px; }
.large-field .input-wrap > span:first-child { font-size: 23px; font-family: var(--serif); }
.large-field > span { font-size: 12px; }
.volume-period-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; font-size: 11px; color: var(--muted); }
.volume-period-toggle { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.volume-period-toggle button { border-radius: 4px; padding: 7px 13px; background: transparent; color: var(--muted); font-size: 11px; }
.volume-period-toggle button:hover { color: var(--ink); }
.volume-period-toggle button.selected { background: var(--lime); color: var(--positive); }
.volume-equivalent { margin: -10px 0 22px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.quick-values { display: flex; gap: 7px; margin: 10px 0 23px; }
.quick-values button { flex: 1; font-size: 10px; border: 1px solid #e1e3d7; background: #eeeee7; border-radius: 5px; padding: 7px; color: #616854; }
.quick-values button:hover { background: #e6e9dc; }
.quick-values button.selected { background: #e2e8d7; border-color: #c3cdb4; color: #485d35; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px 15px; }
.assumption-box { margin-top: 23px; border: 1px solid #e2e6d6; border-radius: 7px; padding: 15px; background: #edeee5; }
.assumption-label { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .4px; color: #5f6850; }
.assumption-label > span { font-size: 13px; font-family: var(--mono); color: #556941; }
.assumption-box label { display: block; font-size: 11px; color: #5f6950; margin: 11px 0 12px; }
.assumption-box input { width: 100%; accent-color: #738a54; height: 4px; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: 9px; color: #606853; margin-top: 10px; }
.assumption-box p { font-size: 10px; color: #606853; margin-top: 13px; }
.advanced { border-top: 1px solid #e4e6db; margin-top: 23px; padding-top: 18px; }
.advanced summary { cursor: pointer; font-size: 12px; color: #57664b; font-weight: 400; list-style: none; display: flex; align-items: center; gap: 8px; }
.advanced summary::before { content: '+'; font-size: 15px; }
.advanced[open] summary::before { content: '−'; }
.advanced summary > span { font-size: 9px; color: #606854; margin-left: auto; }
.advanced .field-grid { margin-top: 19px; }
.field-help { font-size: 10px; color: #5e6853; line-height: 1.7; margin-top: 15px; }
.validation { font-size: 11px; color: #9a513f; margin-top: 10px; }
.validation:empty { display: none; }
.result-stack { display: flex; flex-direction: column; gap: 13px; }
.result-card { background: var(--surface); color: #424d38; padding: 22px; border: 1px solid #eeece5; border-radius: 11px; }
.result-top { display: flex; justify-content: space-between; gap: 10px; }
.result-top .eyebrow { color: #5d6952; font-size: 10px; letter-spacing: .4px; margin: 0; }
.dark-tag { border-color: #dde2d1; color: #5a6a43; background: #e8ecdf; }
.points-total { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }
.reward-symbol { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border: 1px solid #9aaa80; border-radius: 50%; background: #d5dfa5; color: #4c6833; font-size: 25px; line-height: 1; }
.points-number { font-family: var(--serif); font-size: 39px; letter-spacing: -.7px; line-height: 1.1; font-weight: 400; color: #2b422e; overflow-wrap: anywhere; min-width: 0; }
.result-caption { font-size: 11px; color: #5e6852; line-height: 1.6; }
.result-rule { height: 1px; background: #e3e5db; margin: 20px 0 13px; }
.result-pair { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: #5f6854; line-height: 2.6; }
.result-pair strong { font-size: 12px; font-weight: 400; color: #4c5f3a; text-align: right; }
.result-small { border-top: 1px solid #e3e5db; font-size: 10px; color: #606853; padding-top: 13px; margin-top: 14px; }
.reward-card { padding: 22px; }
.reward-card .card-heading { margin-bottom: 16px; }
.reward-card h2 { font-size: 13px; }
.reward-card .card-heading > span { color: #5f6951; }
.reward-number { font-family: var(--serif); font-size: 36px; letter-spacing: -.8px; color: #2d452d; font-weight: 400; }
.subtle { font-size: 10px; color: #5f6950; margin: 8px 0 17px; }
.result-pair.light { color: #5f6852; }
.result-pair.light strong { color: #576c3f; }
.result-pair.light strong.negative { color: #9a513f; }
.scenario-link { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #e3e5db; padding-top: 15px; margin-top: 17px; color: #566c3c; font-size: 11px; }
.quiet-note { display: flex; gap: 11px; padding: 11px 4px; font-size: 11px; color: #606854; }
.quiet-note > span { color: #586c3a; font-size: 19px; }
.quiet-note b { color: #596b42; font-weight: 400; }
.quiet-note p { line-height: 1.8; }

.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 16px; }
.section-heading h2 { font-size: 14px; }
.section-heading p { font-size: 11px; color: #616857; margin-top: 6px; }
.sensitivity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.sensitivity-card { padding: 19px 21px; }
.sensitivity-card.featured { background: #eeefe5; border-color: #e0e5d4; }
.sensitivity-card > span { font-size: 9px; letter-spacing: .3px; color: #5f6950; }
.sensitivity-number { font-family: var(--serif); font-size: 27px; letter-spacing: -.5px; margin: 13px 0 6px; color: #526b3c; }
.sensitivity-card p, .sensitivity-card small { font-size: 10px; color: #5f684f; }
.sensitivity-card small { display: block; margin-top: 11px; }
.market-breakdown { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.market-item { border: 1px solid #eeece5; background: var(--surface); border-radius: 9px; padding: 17px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #5e694e; }
.market-item b { display: block; font-size: 13px; margin: 8px 0 4px; color: #52643f; font-weight: 400; }
.market-item small { font-size: 9px; color: #616855; }
.market-item > span { font-size: 19px; color: #5c694c; }
.valuation-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,1fr); gap: 30px; }
.valuation-output .eyebrow { margin-bottom: 17px; }
.value-number { font-family: var(--serif); font-size: 44px; letter-spacing: -1px; color: #344f30; }
.valuation-output > p { font-size: 11px; color: #5e694f; margin-top: 8px; }
dl { margin: 25px 0; }
dl > div { display: flex; justify-content: space-between; gap: 14px; margin: 16px 0; font-size: 11px; color: #5e694f; }
dd { margin: 0; color: #566c3d; font-weight: 400; text-align: right; }
.formula { background: #eaece1; border-radius: 5px; padding: 13px; color: #556c3a; font-family: var(--mono); font-size: 10px; line-height: 1.9; overflow-wrap: anywhere; }
.segmented { display: flex; gap: 3px; background: #eceee3; padding: 4px; border-radius: 6px; }
.segmented button { background: transparent; border-radius: 4px; padding: 7px 10px; font-size: 10px; color: #5f694f; }
.segmented button.selected { background: #fbfaf6; color: #566c3e; box-shadow: 0 1px 2px #424a2410; }
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
th { font-size: 10px; color: #606853; font-weight: 400; text-align: left; padding: 15px 21px; background: #f3f2eb; border-bottom: 1px solid #e4e6db; }
td { padding: 18px 21px; border-bottom: 1px solid #eaeae1; color: #5e694f; font-variant-numeric: tabular-nums; }
td small { display: block; font-size: 9px; color: #5f6950; margin-top: 5px; }
tr:last-child td { border-bottom: 0; }
.matrix-cell { text-align: center; font-family: var(--mono); }
.matrix-head { text-align: center; }
.table-note { padding: 14px 21px; background: #f1f2e9; border-top: 1px solid var(--line); font-size: 10px; color: #5d694e; }
.chart-card { padding: 25px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 25px; font-size: 10px; color: #5c6a4a; justify-content: center; margin-top: 18px; }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { display: block; width: 18px; height: 3px; }
.legend-green { background: var(--chart-line); }
.legend-gray { background: var(--chart-flat); }
.benchmark-controls { display: flex; gap: 30px; align-items: center; margin: 22px 0; }
.inline-field { width: 270px; flex: none; }
.benchmark-controls p { font-size: 11px; color: #5c6a4a; }
.benchmark-sandbox { margin-top: 24px; }
.protocol-name { display: flex; gap: 12px; align-items: center; }
.protocol-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--protocol-color); font-size: 16px; color: #324d39; }
.protocol-name b { font-size: 12px; font-weight: 500; color: #4c6840; }
.research-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.research-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.research-card-header h3 { font-family: var(--serif); font-size: 20px; }
.research-card-header .tag { margin-left: auto; font-size: 7px; }
.research-card > p { font-size: 12px; line-height: 1.9; color: #5c694b; margin: 12px 0; }
.research-card .research-label { font-size: 9px; color: #586b43; letter-spacing: .5px; display: block; margin-top: 18px; }
.lesson { font-size: 11px; color: #576b3f; padding: 14px; border-left: 2px solid #a9bc8d; background: #ecefe3; margin-top: 20px; line-height: 1.8; }
.source-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: 10px; color: #566c3c; }
.source-links a:hover, .source-item a:hover { text-decoration: underline; }
.personal-cost { margin-top: 25px; }
.personal-cost .field-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.actual-cost-output { display: flex; flex-direction: column; justify-content: center; }
.actual-cost-output span { font-size: 9px; letter-spacing: .4px; color: #576b41; }
.actual-cost-output strong { font-family: var(--serif); font-size: 29px; font-weight: 400; color: #526d39; margin-top: 10px; }
.method-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px; }
.prose h2 { margin-bottom: 20px; }
.prose p { font-size: 12px; color: #5c694c; margin: 14px 0; line-height: 1.9; }
.prose .formula { margin: 15px 0; }
.prose a, .quiet-note a, .footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.editorial-block { margin-top: 24px; }
#about .source-item h3 { font-size: 13px; margin-top: 12px; }
#about time { font-size: 11px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.official-rules { margin-top: 24px; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.rule-label { font-size: 9px; letter-spacing: .5px; color: #516e2e; }
.rule-label.muted { color: #5d694c; }
.rules-grid ul { padding-left: 16px; font-size: 12px; color: #5c6a4b; line-height: 1.9; }
.rules-grid li { margin-bottom: 8px; }
.source-library { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.source-item { padding: 21px; }
.source-item a { font-size: 12px; font-weight: 500; color: #506d3c; }
.source-item > div { display: flex; justify-content: space-between; gap: 15px; }
.source-item p { font-size: 11px; color: #5b6a4a; margin-top: 12px; }
.source-item small { color: #5d694c; font-size: 9px; display: block; margin-top: 12px; }
footer { border-top: 1px solid var(--line); margin-top: 38px; padding: 23px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 9px; color: #606856; }
footer b { font-weight: 400; color: #586a4b; }
.footer-divider { padding: 0 10px; color: #616855; }
dialog { border: 1px solid #e4e5db; border-radius: 12px; max-width: 680px; width: calc(100% - 30px); padding: 0; color: var(--ink); background: #fbf9f4; max-height: 90vh; box-shadow: 0 20px 90px #283d2425; }
dialog::backdrop { background: #28352a55; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 24px 27px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-family: var(--serif); font-size: 23px; }
.dialog-heading .eyebrow { display: block; margin-bottom: 9px; }
.close-button { background: #eceee3; color: #596b47; border-radius: 6px; height: 28px; width: 28px; font-size: 19px; }
.dialog-body { padding: 25px 27px; }
.dialog-body > p { font-size: 12px; color: #5b6a4a; margin-bottom: 23px; }
.dialog-divider { height: 1px; background: var(--line); margin: 26px 0; }
.check-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #566b42; margin: 18px 0; }
.check-label input { accent-color: var(--green); }
pre { font-size: 10px; line-height: 1.8; background: #f0f1e7; color: #576b3f; padding: 15px; border-radius: 6px; overflow: auto; }
.dialog-body .button { margin-top: 6px; margin-right: 6px; }
#data-message { font-size: 11px; color: #4d6e30; line-height: 1.8; margin: 18px 0 0; }
#data-message.error { color: #9a513f; }
#toast { position: fixed; bottom: 24px; left: calc(50% + 36px); transform: translateX(-50%); z-index: 40; background: #263d2a; color: #f3f4e9; border-radius: 7px; padding: 13px 22px; font-size: 11px; box-shadow: 0 6px 30px #263d2a20; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; }
#toast.visible { opacity: 1; }
[hidden] { display: none !important; }

/* OTC research uses the same panels, with room for provenance rather than tiny footnotes. */
.benchmark-table { min-width: 1030px; table-layout: fixed; }
.benchmark-table td { white-space: normal; line-height: 1.6; vertical-align: top; }
.benchmark-table th:first-child { width: 24%; }
.benchmark-table th:nth-child(2) { width: 14%; }
.benchmark-table th:nth-child(3) { width: 21%; }
.benchmark-table th:nth-child(4) { width: 19%; }
.benchmark-table th:nth-child(5) { width: 22%; }
.protocol-mark { flex: none; }
.otc-comparison { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 24px; }
.otc-context { font-size: 11px; color: var(--muted); line-height: 1.8; margin-bottom: 22px; }
.otc-context b { font-weight: 500; color: var(--green); }
.otc-context .source-links { display: inline; margin: 0; }
.otc-results { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; border-block: 1px solid var(--line); margin: 25px 0 17px; padding: 20px 0; }
.otc-results > div { min-width: 0; }
.otc-results span { display: block; font-size: 10px; color: var(--muted); line-height: 1.6; margin-bottom: 9px; }
.otc-results strong { font-family: var(--serif); font-size: 27px; color: var(--green); font-weight: 400; overflow-wrap: anywhere; }
.otc-table td:last-child { white-space: normal; min-width: 300px; max-width: 500px; line-height: 1.8; }
.otc-table .source-links { margin-top: 8px; }
.table-link { color: inherit; background: transparent; font-size: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) { .otc-results { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 370px) { .otc-results strong { font-size: 23px; } }

/* The dark palette also covers generated tables, charts and volume settings. */
:root[data-theme="dark"] {
  color-scheme: dark;
  color: #e8eadf;
  background: #131713;
  --green: #bed49e;
  --ink: #e8eadf;
  --muted: #9aa18f;
  --line: #2b3228;
  --surface: #1b201b;
  --lime: #2a3422;
  --white: #131713;
  --positive: #bfd99b;
  --negative: #df9c86;
  --matrix-rgb: 164,193,125;
  --chart-area: #28351f;
  --chart-flat: #778169;
  --chart-line: #b1cc87;
}
[data-theme="dark"] .sidebar { background: var(--white); }
[data-theme="dark"] .topbar,
[data-theme="dark"] .card,
[data-theme="dark"] .metric,
[data-theme="dark"] .result-card,
[data-theme="dark"] .market-item,
[data-theme="dark"] .advanced,
[data-theme="dark"] .result-small,
[data-theme="dark"] .scenario-link,
[data-theme="dark"] td { border-color: var(--line); }
[data-theme="dark"] .brand-sub,
[data-theme="dark"] .sidebar .nav-link,
[data-theme="dark"] .sidebar-status,
[data-theme="dark"] .sidebar-status b,
[data-theme="dark"] .breadcrumb,
[data-theme="dark"] .breadcrumb b,
[data-theme="dark"] .local-badge,
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .result-top .eyebrow,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .independent-label,
[data-theme="dark"] .page-tabs .nav-link,
[data-theme="dark"] .data-line,
[data-theme="dark"] .metric-label,
[data-theme="dark"] .metric-footer,
[data-theme="dark"] .card-heading p,
[data-theme="dark"] .field small,
[data-theme="dark"] .input-wrap > span,
[data-theme="dark"] .input-wrap .input-suffix,
[data-theme="dark"] .range-labels,
[data-theme="dark"] .assumption-box p,
[data-theme="dark"] .advanced summary > span,
[data-theme="dark"] .field-help,
[data-theme="dark"] .result-caption,
[data-theme="dark"] .result-pair,
[data-theme="dark"] .result-pair.light,
[data-theme="dark"] .result-small,
[data-theme="dark"] .subtle,
[data-theme="dark"] .quiet-note,
[data-theme="dark"] .section-heading p,
[data-theme="dark"] .sensitivity-card > span,
[data-theme="dark"] .sensitivity-card p,
[data-theme="dark"] .sensitivity-card small,
[data-theme="dark"] .market-item,
[data-theme="dark"] .market-item small,
[data-theme="dark"] .valuation-output > p,
[data-theme="dark"] dl > div,
[data-theme="dark"] td small,
[data-theme="dark"] .table-note,
[data-theme="dark"] .chart-legend,
[data-theme="dark"] .benchmark-controls p,
[data-theme="dark"] .research-card > p,
[data-theme="dark"] .prose p,
[data-theme="dark"] .rules-grid ul,
[data-theme="dark"] .source-item p,
[data-theme="dark"] .source-item small,
[data-theme="dark"] footer,
[data-theme="dark"] footer b,
[data-theme="dark"] .dialog-body > p,
[data-theme="dark"] .check-label { color: var(--muted); }
[data-theme="dark"] .field > span,
[data-theme="dark"] .input-wrap input,
[data-theme="dark"] .input-wrap select,
[data-theme="dark"] .result-card,
[data-theme="dark"] th,
[data-theme="dark"] td { color: #c1c9b6; }
[data-theme="dark"] .sidebar .nav-link.active,
[data-theme="dark"] .page-tabs .nav-link.active,
[data-theme="dark"] .page-tabs .nav-link:hover,
[data-theme="dark"] .metric-number,
[data-theme="dark"] .points-number,
[data-theme="dark"] .reward-number,
[data-theme="dark"] .value-number { color: #dbe6cb; }
[data-theme="dark"] .data-line a,
[data-theme="dark"] .callout strong,
[data-theme="dark"] .callout a,
[data-theme="dark"] .assumption-label > span,
[data-theme="dark"] .advanced summary,
[data-theme="dark"] .result-pair strong,
[data-theme="dark"] .result-pair.light strong,
[data-theme="dark"] .scenario-link,
[data-theme="dark"] .quiet-note b,
[data-theme="dark"] .sensitivity-number,
[data-theme="dark"] .market-item b,
[data-theme="dark"] dd,
[data-theme="dark"] .protocol-name b,
[data-theme="dark"] .research-label,
[data-theme="dark"] .source-links,
[data-theme="dark"] .actual-cost-output strong,
[data-theme="dark"] .rule-label,
[data-theme="dark"] .source-item a,
[data-theme="dark"] #data-message { color: var(--positive); }
[data-theme="dark"] .sidebar .nav-link:hover,
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .button:hover { background: #303a2a; }
[data-theme="dark"] .sidebar .nav-link.active { background: #2b3427; }
[data-theme="dark"] .button { background: #272e24; border-color: #343d2e; color: #c9d1bd; }
[data-theme="dark"] .button.primary { background: #bed49e; border-color: #bed49e; color: #192316; }
[data-theme="dark"] .button.primary:hover { background: #cde0b2; }
[data-theme="dark"] .data-chip,
[data-theme="dark"] .tag,
[data-theme="dark"] .quick-values button,
[data-theme="dark"] .segmented,
[data-theme="dark"] .close-button { background: #293123; border-color: #36412c; color: #adb99a; }
[data-theme="dark"] .input-wrap { background: #171c16; border-color: #3a4331; }
[data-theme="dark"] .input-wrap:focus-within { border-color: #91a470; }
[data-theme="dark"] .quick-values button.selected,
[data-theme="dark"] .quick-values button:hover,
[data-theme="dark"] .segmented button.selected { background: #3c4a2d; border-color: #63794a; color: #dce8cb; }
[data-theme="dark"] .segmented button { color: #9baa87; }
[data-theme="dark"] .callout,
[data-theme="dark"] .assumption-box,
[data-theme="dark"] .sensitivity-card.featured { background: #222b1d; border-color: #35412a; color: #a2b28a; }
[data-theme="dark"] .assumption-label,
[data-theme="dark"] .assumption-box label,
[data-theme="dark"] .actual-cost-output span { color: #a2b28a; }
[data-theme="dark"] .result-rule { background: var(--line); }
[data-theme="dark"] .formula,
[data-theme="dark"] .lesson,
[data-theme="dark"] pre { background: #26311f; color: #b4c997; }
[data-theme="dark"] th,
[data-theme="dark"] .table-note { background: #20271d; border-color: var(--line); }
[data-theme="dark"] .info-icon { border-color: #87966f; }
[data-theme="dark"] .reward-symbol { background: #7c914e; border-color: #acc17f; color: #ecf5d1; }
[data-theme="dark"] .validation,
[data-theme="dark"] .result-pair.light strong.negative,
[data-theme="dark"] #data-message.error { color: var(--negative); }
[data-theme="dark"] dialog { background: #1b201b; border-color: #3d4735; }
[data-theme="dark"] #toast { background: #bed49e; color: #192316; }

@media (max-width: 1150px) {
  main { padding: 37px 32px 0; }
  .calculator-layout, .valuation-layout { gap: 22px; grid-template-columns: minmax(0,1.45fr) minmax(300px,1fr); }
  .metric { padding: 16px; }
  .metric-number { font-size: 27px; }
  .date-number { font-size: 25px; }
  .metric-label { font-size: 8px; }
  .source-item > div, .research-card-header { flex-wrap: wrap; }
  .research-card-header .tag { margin-left: 0; }
}
@media (max-width: 950px) {
  main { padding: 31px 25px 0; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-number { font-size: 30px; }
  .calculator-layout, .valuation-layout { gap: 18px; grid-template-columns: minmax(0,1.15fr) minmax(270px,1fr); }
  .card, .result-card { padding: 19px; }
  .card-heading { flex-wrap: wrap; }
  .points-number { font-size: 35px; }
  .table-card { padding: 0; }
  .research-grid, .source-library { grid-template-columns: 1fr; }
  .rules-grid { gap: 18px; }
  .market-item > span { display: none; }
}
@media (max-width: 800px) {
  main { padding: 30px 23px 0; }
  .topbar { padding: 0 23px; }
  .top-actions .local-badge { display: none; }
  .calculator-layout, .valuation-layout, .method-grid { grid-template-columns: 1fr; }
  .result-stack { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .result-stack .quiet-note { grid-column: 1 / -1; }
  .points-number { font-size: 35px; }
  .callout a { display: none; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .sensitivity-card { padding: 16px; }
  .sensitivity-number { font-size: 24px; }
  .market-breakdown { grid-template-columns: 1fr; }
  .market-item > span { display: block; }
  .rules-grid { grid-template-columns: 1fr; gap: 10px; }
  .benchmark-controls { align-items: flex-start; flex-direction: column; gap: 10px; }
  .personal-cost .field-grid { grid-template-columns: 1fr 1fr; }
  .actual-cost-output { grid-column: 1 / -1; }
  footer { flex-direction: column; gap: 10px; }
  .page-tabs { gap: 5px; }
  .page-tabs .nav-link { padding-inline: 12px; font-size: 17px; }
  .independent-label { font-size: 10px; }
}
@media (max-width: 600px) {
  .sidebar { inset: 0 0 auto; width: 100%; height: 63px; flex-direction: row; padding: 7px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-mark { width: 28px; height: 28px; }
  .brand-sub { font-size: 7px; }
  .sidebar nav { width: auto; display: flex; gap: 7px; margin: 0 0 0 auto; }
  .sidebar .nav-link { min-height: 48px; margin: 0; padding: 6px 8px; font-size: 8px; gap: 3px; border-radius: 7px; }
  .sidebar .nav-link svg { width: 17px; height: 17px; }
  .sidebar-status { display: none; }
  .shell { margin-left: 0; padding-top: 63px; }
  .topbar { height: 46px; padding: 0 17px; }
  .top-actions { gap: 9px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb span { margin: 0 6px; }
  .breadcrumb b { display: none; }
  .breadcrumb span { display: none; }
  .button.small { font-size: 10px; min-height: 29px; padding: 6px 10px; }
  main { padding: 29px 17px 0; }
  h1 { font-size: 30px; }
  .workspace-heading { align-items: baseline; margin-bottom: 14px; }
  .independent-label { font-size: 9px; max-width: 100px; text-align: right; line-height: 1.6; }
  .page-tabs { justify-content: space-between; gap: 0; margin-bottom: 23px; }
  .page-tabs .nav-link { font-size: 15px; padding: 10px 7px 12px; }
  .page-heading { gap: 12px; align-items: flex-start; }
  .page-heading h2 { font-size: 14px; }
  .page-heading p { font-size: 11px; }
  .page-heading > .button { font-size: 10px; padding: 8px 10px; }
  .page-heading > .tag { white-space: normal; max-width: 85px; text-align: right; }
  .data-line { font-size: 9px; gap: 8px; }
  .data-line a { margin-left: 0; }
  .metric { padding: 15px; }
  .metric-label { font-size: 8px; }
  .metric-label > span { font-size: 12px; }
  .metric-number { font-size: 28px; }
  .date-number { font-size: 25px; }
  .metric-footer { font-size: 9px; }
  .callout { font-size: 10px; padding: 12px; gap: 10px; }
  .card { padding: 20px; }
  .card-heading { gap: 10px; }
  .field-grid { gap: 18px 12px; }
  .field small { font-size: 9px; }
  .advanced summary > span { font-size: 8px; }
  .result-stack { grid-template-columns: 1fr; }
  .result-stack .quiet-note { grid-column: auto; }
  .result-card { padding: 22px; }
  .points-number { font-size: 39px; }
  .sensitivity-grid { grid-template-columns: 1fr; }
  .sensitivity-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; padding: 18px; }
  .sensitivity-number { margin: 0; grid-row: 1 / 3; grid-column: 2; }
  .sensitivity-card small { margin-top: 4px; }
  .table-card { padding: 0; }
  th, td { padding: 16px; }
  .benchmark-controls .inline-field { width: 100%; }
  .personal-cost .field-grid { grid-template-columns: 1fr; }
  .actual-cost-output { grid-column: auto; }
  .chart-card { padding: 16px; }
  .chart-legend { gap: 15px; font-size: 9px; }
  .dialog-heading, .dialog-body { padding: 20px; }
  .dialog-heading h2 { font-size: 21px; }
  #toast { left: 50%; width: max-content; }
}
@media (max-width: 370px) {
  .page-tabs .nav-link { font-size: 13px; padding-inline: 4px; }
  .sidebar nav { gap: 3px; }
  .sidebar .nav-link { padding-inline: 6px; }
  .metric { padding: 13px; }
  .metric-number { font-size: 25px; }
  .metric-label { font-size: 7px; }
  .card { padding: 17px; }
  .quick-values { gap: 5px; }
  .quick-values button { padding-inline: 4px; }
  .table-card { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.planner-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin: 32px 0; }
.planner-intro h2 { font: 400 clamp(34px, 4vw, 56px)/1.08 var(--serif); letter-spacing: -1.8px; margin: 12px 0 18px; }
.planner-intro h2 em { font-style: normal; color: var(--positive); }
.planner-intro p { color: var(--muted); max-width: 520px; font-size: 14px; }
.research-stamp { border-left: 1px solid var(--line); padding: 8px 0 8px 22px; flex: 0 0 260px; font-size: 11px; color: var(--muted); line-height: 1.8; }
.research-stamp b, .research-stamp > span:last-child { display: block; }
.research-stamp b { color: var(--ink); font-weight: 500; }
.planner-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.plan-inputs { padding: 28px; }
.plan-inputs .card-heading { margin-bottom: 24px; }
.plan-inputs .card-heading h2 { font-size: 19px; }
.plan-inputs .field { margin: 0; }
.plan-primary { margin-top: 24px; }
.plan-primary .field > span { min-height: 40px; }
.plan-inputs select, .pair-toolbar select, .pair-search input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); padding: 12px; font-size: 13px; min-height: 44px; }
.plan-inputs .input-wrap { min-height: 48px; }
.plan-inputs .input-wrap input { font-size: 20px; }
.plan-inputs .field small { font-size: 10px; line-height: 1.5; }
.plan-inputs .advanced summary { font-size: 12px; }
.plan-inputs .advanced > .field-help { margin: 14px 0; }
.plan-wide { grid-column: 1 / -1; }
.plan-derived { background: var(--lime); border-radius: 8px; padding: 13px; font-size: 12px; line-height: 1.7; margin: 22px 0; color: var(--positive); }
.plan-presets { display: flex; gap: 6px; margin: 18px 0; }
.plan-presets button { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 9px 5px; background: var(--white); color: var(--ink); font-size: 11px; }
.plan-presets button.selected { background: var(--green); color: #f3f5e8; border-color: var(--green); }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.plan-results { display: grid; gap: 18px; }
.plan-forecast { border-radius: 15px; padding: 30px; background: #233c2e; color: #eff2df; overflow: hidden; }
.plan-forecast .eyebrow { color: #ced6b9; font-size: 10px; }
.plan-forecast > p { font-size: 12px; color: #c8d1c2; }
.plan-range { font: 400 clamp(35px, 4.4vw, 60px)/1.2 var(--serif); letter-spacing: -1px; margin: 22px 0 8px; overflow-wrap: anywhere; }
.plan-contributions { margin: 25px 0; }
.contribution-bar { display: flex; gap: 3px; height: 7px; border-radius: 8px; overflow: hidden; background: #36513b; }
.contribution-oi { background: #bdcf97; }
.contribution-collateral { background: #82ada2; }
.contribution-volume { background: #e2bb84; }
.contribution-referrals { background: #c4acd3; }
.contribution-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 10px; margin-top: 14px; }
.contribution-labels span { display: flex; align-items: center; gap: 6px; }
.contribution-labels i { width: 6px; height: 6px; border-radius: 50%; }
.contribution-labels b { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.plan-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #4a5c46; padding-top: 18px; gap: 8px; }
.plan-cases span { display: block; font-size: 10px; color: #c8d1c2; margin-bottom: 5px; }
.plan-cases b { font: 400 25px var(--serif); }
.plan-forecast .plan-range-note { font-size: 10px; line-height: 1.6; margin-top: 20px; }
.plan-value-button { width: 100%; margin-top: 20px; background: #e8eddf; color: #20362a; border: 0; justify-content: center; }
.plan-costs { padding: 25px; }
.plan-cost-total { font: 400 32px var(--serif); margin-bottom: 6px; }
.plan-costs .result-pair { font-size: 11px; gap: 12px; }
.plan-costs .result-pair strong { white-space: nowrap; }
.plan-costs .field-help { margin-top: 18px; }
.plan-flags { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 17px 20px; font-size: 11px; line-height: 1.7; }
.plan-flags b { font-weight: 500; }
.plan-flags ul { margin: 8px 0 0; padding-left: 16px; }
.pair-explorer { margin-top: 44px; }
.pair-explorer .section-heading { margin-bottom: 15px; }
.pair-explorer h2 { font: 400 29px var(--serif); margin-top: 7px; }
.plan-feed { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); }
#plan-network-message { min-height: 20px; margin-top: 6px; }
.pair-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.pair-search { flex: 1 1 200px; }
.pair-thin { display: flex; align-items: center; gap: 7px; font-size: 11px; padding: 8px 2px; }
.pair-thin input { accent-color: var(--green); }
.pair-table { width: 100%; min-width: 980px; }
.pair-table th, .pair-table td { text-align: left; vertical-align: middle; padding: 17px 13px; font-size: 12px; border-bottom: 1px solid var(--line); }
.pair-table thead th { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; }
.pair-table tbody th { min-width: 130px; font-weight: 400; }
.pair-table b { font-weight: 500; }
.pair-table small { display: block; color: var(--muted); font-size: 9px; margin-top: 5px; max-width: 160px; line-height: 1.5; white-space: normal; }
.pair-table .pair-checks { max-width: 175px; font-size: 10px; color: var(--muted); white-space: normal; line-height: 1.6; }
.pair-selected { background: var(--lime); }
.pair-badge { display: inline-block; background: var(--lime); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; font-size: 9px; color: var(--positive); }
.pair-pagination { display: flex; gap: 8px; align-items: center; padding: 14px 18px; }
.pair-pagination > span { flex: 1; font-size: 11px; color: var(--muted); }
.plan-method { margin-top: 24px; }
.plan-method summary, .legacy-model > summary { cursor: pointer; font-size: 14px; line-height: 1.7; }
.plan-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
.plan-method-grid h3 { font-size: 15px; margin-bottom: 10px; }
.plan-method-grid p { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.legacy-model { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 36px; }
.legacy-model > summary { color: var(--muted); }
.legacy-model > summary span { float: right; font-size: 10px; }
.legacy-model[open] > summary { margin-bottom: 30px; }
@media (max-width: 1050px) {
  .planner-layout { gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .plan-inputs, .plan-forecast { padding: 22px; }
  .research-stamp { flex-basis: 220px; }
}
@media (max-width: 760px) {
  .planner-intro { display: block; margin-top: 25px; }
  .planner-intro h2 { font-size: 42px; }
  .research-stamp { padding: 12px 0 0; border: 0; margin-top: 14px; }
  .research-stamp > span:last-child { display: inline; margin-left: 6px; }
  .planner-layout, .plan-method-grid { grid-template-columns: 1fr; }
  .plan-range { font-size: 49px; }
  .plan-inputs .input-wrap input { font-size: 19px; }
  .pair-toolbar > label:not(.pair-search) { flex: 1; }
  .pair-toolbar .pair-thin { flex-basis: 100%; }
  .pair-explorer .section-heading { align-items: start; gap: 12px; }
  .pair-explorer h2 { font-size: 25px; }
  .pair-explorer .section-heading > button { font-size: 10px; padding: 10px; }
  .legacy-model > summary span { display: block; float: none; }
}

/* Beginner-friendly planner: steps, honesty note, glossary and plain-English summary. */
.planner-intro { margin-bottom: 26px; }
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; }
.how-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.step-number { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--white); font: 400 15px var(--serif); }
.how-steps b { display: block; font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.how-steps p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.honesty { display: flex; gap: 12px; align-items: flex-start; background: var(--lime); border-radius: 10px; padding: 14px 18px; margin-bottom: 14px; color: var(--positive); }
.honesty p { font-size: 12px; line-height: 1.7; }
.honesty b { font-weight: 600; }
.glossary { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.glossary > summary { cursor: pointer; font-size: 13px; }
.glossary > summary span { float: right; font-size: 10px; color: var(--muted); }
.glossary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin: 18px 0 4px; }
.glossary dt { font-weight: 500; font-size: 12px; margin-bottom: 3px; }
.glossary dd { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.plan-range-label { margin-top: 20px; font-size: 11px; color: #ced6b9; letter-spacing: .4px; text-transform: uppercase; }
.plan-range-label + .plan-range { margin-top: 4px; }
.plan-story { background: #2d4a38; border-radius: 10px; padding: 14px 16px; margin-top: 18px; font-size: 13px !important; line-height: 1.7; color: #eff2df !important; }
.plan-story:empty { display: none; }
.plan-rate { font-size: 12px !important; line-height: 1.6; opacity: .85; margin-top: 6px; }
.plan-rate:empty { display: none; }
.plan-breakdown { margin-top: 18px; border-top: 1px solid #4a5c46; padding-top: 14px; }
.plan-breakdown > summary { cursor: pointer; font-size: 12px; color: #ced6b9; }
.plan-breakdown .plan-contributions { margin: 18px 0; }
.plan-cases-title { font-size: 10px; color: #c8d1c2; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 10px; }
.plan-breakdown .plan-cases { border-top: 0; padding-top: 0; }
.plan-breakdown .plan-cases b { font-size: 22px; }
.pair-table abbr { text-decoration: underline dotted; cursor: help; }
@media (max-width: 860px) {
  .how-steps { grid-template-columns: 1fr; gap: 10px; }
  .glossary dl { grid-template-columns: 1fr; }
}
.plan-budgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.plan-budgets span { display: block; font-size: 10px; color: #c8d1c2; margin-bottom: 5px; line-height: 1.4; }
.plan-budgets b { font: 400 22px var(--serif); }
.plan-breakdown .plan-cases { margin-bottom: 18px; }

/* Claims checked against measured accounts. */
.plan-claims { margin-top: 24px; }
.plan-claims > summary { cursor: pointer; font-size: 14px; line-height: 1.7; }
.plan-claims > summary span { float: right; font-size: 10px; color: var(--muted); }
.plan-claims .field-help { margin: 14px 0 6px; }
.claims-list { display: grid; gap: 12px; margin-top: 14px; }
.claim { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); }
.claim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.claim-head b { font-weight: 500; font-size: 13px; }
.claim p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.verdict { flex: none; font-size: 10px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line); }
.verdict.yes { background: var(--lime); color: var(--positive); }
.verdict.no { color: var(--negative); }
.verdict.maybe { color: var(--muted); }
@media (max-width: 760px) { .claim-head { flex-direction: column; gap: 6px; } }
