.stake-page { background: var(--paper); }
.stake-page .site-header.page-shell { flex-wrap: wrap; padding: 10px 0 12px; }
.stake-page .brand { display: inline-flex; align-items: center; gap: 8px; }
.stake-page .brand-symbol { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; }
.stake-page .brand-symbol svg { display: block; width: 100%; height: 100%; }
.stake-page .site-nav { gap: 4px 14px; }
.stake-skip { position: absolute; left: 12px; top: -60px; z-index: 5; padding: 10px; background: #fff; }
.stake-skip:focus { top: 8px; }
.stake-main { max-width: 960px; padding-top: 14px; }
.stake-crumb { margin: 0 0 12px; color: var(--muted); font-size: .82rem; }
.stake-main h1 { max-width: 23ch; margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3rem); }
.stake-lead { max-width: 68ch; margin-bottom: 20px; color: #53665c; }
.stake-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 22px; padding: 18px 20px; border: 2px solid var(--ink); background: #fffefa; }
.stake-result-copy { min-width: 0; }
.stake-kicker { margin: 0 0 3px; color: #53665c; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stake-result h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.45rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
#stake-total { color: var(--green-dark); }
#stake-status { max-width: 64ch; margin: 7px 0 0; color: #53665c; font-size: .88rem; line-height: 1.5; }
.stake-result-package { min-width: 135px; padding-left: 20px; border-left: 1px solid #cbd7cb; }
.stake-result-package span, .stake-result-package small { display: block; color: #53665c; font-size: .76rem; }
.stake-result-package strong { display: block; margin: 2px 0; color: var(--ink); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.stake-actions { display: flex; grid-column: 1 / -1; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid #cbd7cb; }
.stake-actions span { color: var(--green-dark); font-size: .82rem; }
#stake-copy-fallback { width: 100%; grid-column: 1 / -1; margin: 0; }
#stake-copy-fallback[hidden] { display: none; }
.stake-form { margin-top: 16px; }
.stake-product-inputs { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 4px 22px; margin: 0; padding: 17px 20px; border: 1px solid #cbd7cb; background: #f8f8f2; }
.stake-product-inputs legend { padding: 0 0 7px; font-size: 1rem; font-weight: 850; }
.stake-field { display: grid; gap: 5px; min-width: 0; font-size: .86rem; font-weight: 750; }
.stake-field > span { color: #53665c; font-size: .76rem; font-weight: 550; }
.stake-field input, .stake-run input { width: 100%; min-width: 0; min-height: 46px; padding: 8px 11px; border: 1px solid #8ea395; border-radius: 3px; background: #fff; color: var(--ink); font-size: 1rem; }
.stake-note { max-width: 70ch; margin: 4px 0 0; color: #53665c; font-size: .8rem; line-height: 1.5; }
.stake-package-field { grid-column: 1; margin-top: 8px; }
#stake-package-help { grid-column: 2; align-self: end; margin: 0 0 10px; }
.stake-runs, .stake-breakdown, .stake-notes, .stake-next { margin-top: 20px; padding: 18px 20px; border: 1px solid #cbd7cb; background: #fffefa; }
.stake-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.stake-section-heading h2, .stake-notes h2, .stake-next h2 { margin: 0 0 4px; font-size: 1.18rem; }
.stake-section-heading p { margin: 0; color: #53665c; font-size: .84rem; line-height: 1.45; }
.stake-section-heading .button { min-height: 42px; flex: 0 0 auto; }
.stake-run { display: grid; grid-template-columns: minmax(155px, .8fr) minmax(0, 1fr) auto; align-items: start; gap: 13px 16px; margin: 14px 0 0; padding: 15px; border: 1px solid #cbd7cb; background: #fbfcf8; }
.stake-run legend { grid-column: 1 / -1; padding: 0 5px; font-weight: 850; }
.stake-run-length { display: grid; gap: 5px; font-size: .83rem; font-weight: 750; }
.stake-run-length span { color: #53665c; font-size: .76rem; font-weight: 550; }
.stake-run-mode { min-width: 0; margin: 0; padding: 0; border: 0; }
.stake-run-mode legend { padding: 0 0 6px; font-size: .8rem; font-weight: 750; }
.stake-radio-options { display: flex; flex-wrap: wrap; gap: 7px; }
.stake-radio-options label { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 9px; border: 1px solid #cbd7cb; background: #fffefa; font-size: .77rem; line-height: 1.2; }
.stake-radio-options input { width: 17px; height: 17px; margin: 0; accent-color: var(--green-dark); }
.stake-run-endpoints { grid-column: 1 / 3; display: grid; gap: 5px; max-width: 420px; font-size: .8rem; font-weight: 700; }
.stake-run-endpoints[hidden] { display: none; }
.stake-run-endpoints select { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #8ea395; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; }
.stake-run-extra { display: grid; gap: 5px; max-width: 210px; font-size: .8rem; font-weight: 700; }
.stake-run-extra span { color: #53665c; font-size: .73rem; font-weight: 550; }
.stake-run-remove { min-height: 42px; align-self: end; border: 1px solid #8ea395; background: #fffefa; color: var(--green-dark); padding: 7px 10px; font-weight: 750; }
.stake-limit { margin-top: 10px; }
.stake-calculate { min-height: 48px; margin-top: 14px; padding: 10px 21px; }
.stake-error { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid #a53b3b; background: #fff3f1; color: #7f2828; font-size: .88rem; }
.stake-breakdown ol { margin: 12px 0 0; padding-left: 22px; }
.stake-breakdown li { padding: 10px 0; border-bottom: 1px solid #d7ded4; line-height: 1.5; }
.stake-breakdown li:last-child { border-bottom: 0; }
.stake-breakdown li strong { color: var(--green-dark); font-variant-numeric: tabular-nums; }
.stake-figure { margin: 20px 0 0; }
.stake-figure img { display: block; width: 100%; height: auto; border: 1px solid #cbd7cb; background: #fffefa; }
.stake-figure figcaption { margin-top: 7px; color: #53665c; font-size: .8rem; line-height: 1.45; }
.stake-notes p, .stake-next p { max-width: 78ch; line-height: 1.62; }
.stake-notes p:last-child, .stake-next p:last-child { margin-bottom: 0; }
.stake-notes details { border-top: 1px solid #d7ded4; padding: 12px 0; }
.stake-notes details:last-child { padding-bottom: 0; }
.stake-notes summary { cursor: pointer; font-weight: 750; }
.stake-notes details p { margin: 9px 0 0; }
.stake-page :focus-visible { outline: 3px solid #b57316; outline-offset: 2px; }
@media (max-width: 700px) {
  .stake-page .site-nav { display: flex; width: 100%; flex-wrap: nowrap; gap: 4px 14px; overflow-x: auto; white-space: nowrap; }
  .stake-page .site-nav a { flex: 0 0 auto; }
  .stake-main { padding-top: 6px; }
  .stake-crumb { display: none; }
  .stake-result { gap: 10px 14px; padding: 14px; }
  .stake-result-package { min-width: 112px; padding-left: 12px; }
  .stake-product-inputs { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 15px; }
  .stake-package-field, #stake-package-help { grid-column: auto; margin-top: 0; }
  .stake-run { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; }
  .stake-run legend { grid-column: 1 / -1; }
  .stake-run-length { grid-column: 1; }
  .stake-run-mode { grid-column: 1 / -1; }
  .stake-run-endpoints { grid-column: 1 / -1; }
  .stake-run-extra { grid-column: 1; }
  .stake-run-remove { grid-column: 2; justify-self: start; }
  .stake-runs, .stake-breakdown, .stake-notes, .stake-next { padding: 15px 14px; }
}
@media (max-width: 390px) {
  .stake-result { grid-template-columns: minmax(0, 1fr); }
  .stake-result-package { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 8px; min-width: 0; padding: 9px 0 0; border-top: 1px solid #cbd7cb; border-left: 0; }
  .stake-result-package span { grid-column: 1; }
  .stake-result-package strong { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .stake-result-package small { grid-column: 1; }
  .stake-section-heading { align-items: flex-start; }
  .stake-section-heading .button { min-height: 40px; padding-inline: 9px; }
  .stake-run { grid-template-columns: minmax(0, 1fr); }
  .stake-run-length, .stake-run-mode, .stake-run-endpoints, .stake-run-extra, .stake-run-remove { grid-column: 1; }
  .stake-run-remove { justify-self: start; }
  .stake-radio-options label { flex: 1 1 42%; }
  .stake-calculate { width: 100%; }
}
