.calc-layout { row-gap: clamp(22px, 2.8vw, 44px); }
.calc-layout [hidden] { display: none !important; }
.calc-layout fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.calc-layout .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.turnover-mode { display: inline-flex; padding: 3px; margin-top: 16px; border-radius: 6px; border: 1px solid #c9ccbd; background: #e8e9df; }
.turnover-mode label { cursor: pointer; position: relative; }
.turnover-mode input { position: absolute; opacity: 0; }
.turnover-mode span { display: block; padding: 7px 13px; border-radius: 4px; color: #525949; font-size: 13px; font-weight: 550; }
.turnover-mode input:checked + span { color: #253022; background: #fbfaf5; box-shadow: 0 1px 3px #26322120; }
.turnover-mode input:focus-visible + span { outline: 2px solid #1678ad; }
.calc-layout .assumptions .field-row { padding-block: 8px; }
.mix-heading { margin: 22px 0 10px; }
.mix-heading h4 { font-size: clamp(16px,1.25vw,20px); letter-spacing: -.035em; margin: 0 0 5px; font-weight: 590; }
.mix-heading p, .calc-method p, .growth-scenario > p { color: var(--muted); font-size: 13px; line-height: 1.48; }
.mix-table, .fee-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mix-table th, .fee-table th { text-align: left; font-weight: 500; }
.mix-table thead th, .fee-table thead th { padding: 4px 0 7px; color: #57604f; font: 500 12px/1.35 Onest,Arial,sans-serif; }
.mix-table tbody tr, .fee-table tbody tr { border-top: 1px solid var(--line); }
.mix-table tbody th { font-size: 14px; line-height: 1.3; padding: 7px 4px 7px 0; }
.mix-table tbody th small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.3; font-weight: 450; }
.mix-table td { width: 23%; padding: 5px 0 5px 6px; }
.mix-table thead th:not(:first-child), .fee-table :is(th,td):not(:first-child) { text-align: right; }
.mix-input { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; max-width: 108px; margin-left: auto; padding: 6px 8px; border: 1px solid #c9ccbd; border-radius: 5px; background: #faf9f3; }
.mix-input:focus-within { outline: 2px solid #1678ad; }
.mix-input input { min-width: 0; width: 100%; border: none; padding: 0; background: transparent; text-align: right; font: inherit; font-weight: 570; outline: 0; appearance: textfield; }
.mix-input input::-webkit-inner-spin-button { appearance: none; }
.mix-input > span:last-child { color: var(--muted); font: 12px/1.2 var(--mono); }
.sbp-limit { border-top: 1px solid var(--line); }
.sbp-limit.field-row { grid-template-columns: minmax(0,1fr) minmax(147px,43%); }
.sbp-limit label, .sbp-limit select { font-size: 13px; }
.sbp-limit select { min-width: 0; width: 100%; padding: 7px 4px; border: 1px solid #c9ccbd; border-radius: 5px; background: #faf9f3; color: var(--ink); }
.mix-preset { display: flex; flex-wrap: wrap; gap: 5px 12px; justify-content: space-between; align-items: center; padding: 3px 0 10px; }
.mix-preset label, .mix-preset select { font-size: 13px; }
.mix-preset select { min-height: 31px; max-width: 100%; border: 1px solid #c9ccbd; border-radius: 5px; padding: 4px 6px; background: #faf9f3; color: var(--ink); }
.rate-control { margin-top: 15px; }
.rate-control label, .range-ends { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rate-control label { font-size: 15px; font-weight: 550; }
.rate-control label b { font-variant-numeric: tabular-nums; font-size: 20px; letter-spacing: -.05em; }
.rate-control input { display: block; width: 100%; margin: 6px 0 2px; accent-color: #ae4218; cursor: pointer; min-height: 22px; }
.range-ends { font: 11px/1.35 var(--mono); color: var(--muted); }
.calc-error { color: #972e17; font-size: 13px; line-height: 1.45; }
.calc-error:not(:empty) { margin-top: 10px; }
.fee-result { align-self: start; }
.fee-result p.eyebrow { margin: 0; font: 500 clamp(10px,.84vw,13px)/1.4 var(--mono); }
.fee-result > output { margin: 12px 0 20px; }
.fee-totals, .loyalty-numbers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px,1.5vw,25px); }
.fee-totals > div, .loyalty-numbers > div { min-width: 0; padding-top: 9px; border-top: 2px solid #58634f; }
.fee-totals > div:last-child { border-color: #b84b24; }
.fee-totals > div { display: flex; flex-direction: column; }
.fee-totals span, .loyalty-numbers dt { display: block; color: #53594d; font-size: 13px; line-height: 1.4; }
.fee-totals b, .loyalty-numbers dd { display: block; margin-top: 3px; font: 570 clamp(18px,1.7vw,28px)/1.15 Onest,Arial,sans-serif; letter-spacing: -.05em; overflow-wrap: anywhere; }
.fee-totals b { margin-top: auto; padding-top: 3px; }
.fee-result .fee-volume { margin: 12px 0 24px; font-size: 13px; }
.fee-table caption { text-align: left; font-weight: 600; letter-spacing: -.028em; padding-bottom: 7px; }
.fee-table { table-layout: fixed; }
.fee-table th:first-child { width: 22%; }
.fee-table thead th { vertical-align: bottom; }
.fee-table td, .fee-table tbody th { padding: 8px 0; font-size: clamp(11px,.91vw,15px); line-height: 1.4; overflow-wrap: anywhere; }
.fee-table td { padding-left: 4px; }
.fee-table [data-sign="plus"] { color: #325334; font-weight: 650; }
.fee-table [data-sign="minus"] { color: #943e26; font-weight: 650; }
.fee-result #model-note { margin-top: 9px; }
.calc-method { margin-top: 18px; border-top: 1px solid #bcc2b1; }
.calc-method summary, .feedback-terms summary { padding-top: 11px; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; font-size: 13px; }
.calc-method p { margin-top: 8px; }
.calc-method a { text-decoration: underline; text-underline-offset: 2px; }
.loyalty-panel, .growth-scenario { grid-column: 1 / -1; }
.loyalty-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.88fr); align-items: center; gap: clamp(24px,5vw,90px); padding: clamp(23px,3vw,46px); background: #283b32; color: #f7f6ee; }
.loyalty-story .eyebrow { color: #e3e9dc; }
.loyalty-story h3 { margin: 12px 0 13px; font-weight: 550; font-size: clamp(32px,3.35vw,57px); line-height: 1.02; letter-spacing: -.068em; text-wrap: balance; }
.loyalty-story > p:last-child, .loyalty-allocation > p { color: #d8e0d2; font-size: 15px; line-height: 1.5; }
.loyalty-allocation .rate-control input { accent-color: #ff8756; }
.loyalty-allocation .range-ends, .loyalty-numbers dt { color: #ced9ca; }
.loyalty-numbers { margin-top: 19px; }
.loyalty-numbers > div { border-color: #768a77; }
.loyalty-numbers dd { color: #f9f8ee; }
.loyalty-allocation > p { margin-top: 12px; font-size: 13px; }
.growth-scenario { border-block: 1px solid var(--line); }
.growth-scenario summary { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding-block: 15px; cursor: pointer; font-weight: 560; }
.growth-scenario summary .icon { width: 16px; height: 16px; }
.growth-scenario[open] summary .icon { transform: rotate(180deg); }
.growth-scenario > p { max-width: 85ch; margin-bottom: 14px; }
.growth-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px,5vw,90px); margin-bottom: 15px; }
.growth-grid .field-row { padding-block: 6px; }
@media (min-width: 700px) and (max-width: 980px) {
  .fee-result { padding: 20px 14px; }
  .fee-table thead th { font-size: 11px; }
}
@media (max-width: 699px) {
  .loyalty-panel, .growth-grid { grid-template-columns: minmax(0,1fr); }
  .loyalty-panel { gap: 24px; }
  .fee-result { padding: 20px clamp(10px,3vw,20px); }
  .fee-table th:first-child { width: 20%; }
  .fee-table thead th { font-size: 11px; }
  .mix-table tbody th, .rate-control label { font-size: 14px; }
  .loyalty-numbers dt { font-size: 12px; }
}
