main:has(> .sp-page) { padding: 0; background: #0c0b1c; }
.sp-page { display: flex; flex-direction: column; width: 100%; max-width: 640px; margin: 0 auto; padding: 0 20px;
  min-height: calc(100dvh - var(--mast)); color: #fafafa; background: #0c0b1c; font-family: Manrope,sans-serif; }
.sp-page [hidden] { display: none !important; }
.sp-header { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center; padding-top: 12px; }
.sp-header h1 { margin: 0; text-align: center; font: 700 22px/30px Manrope,sans-serif; }
.sp-back { display: grid; place-items: center; width: 44px; height: 44px; color: inherit; font-size: 33px; text-decoration: none; }
.sp-steps { display: flex; grid-column: 1/-1; gap: 8px; margin: 8px 0 18px; }
.sp-steps i { flex: 1; height: 3px; border-radius: 3px; background: #9693fa; }
.sp-page .model-form,.sp-page .controls { display: flex; flex-direction: column; flex: 1; gap: 0; min-width: 0;
  margin: 0; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.sp-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sp-picker { position: relative; }
.sp-trigger,.sp-option { display: flex; align-items: center; width: 100%; gap: 16px; color: inherit; cursor: pointer; text-align: start; }
.sp-trigger { min-height: 66px; padding: 16px; border: 1px solid #9693fa; border-radius: 16px; background: #1b192f; }
.sp-trigger[aria-expanded=true] { position: relative; z-index: 4; }
.sp-icon { flex: none; width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sp-description { display: grid; flex: 1; gap: 2px; }
.sp-description strong { font-size: 16px; font-weight: 600; line-height: 22px; }
.sp-description small { font-size: 14px; font-weight: 500; line-height: 20px; color: #b4b1c2; }
.sp-chevron { width: 9px; height: 9px; margin: 0 5px; border-right: 2px solid #aaa6b8; border-bottom: 2px solid #aaa6b8; transform: rotate(45deg); }
.sp-backdrop { position: fixed; inset: 0; z-index: 3; background: #0006; }
.sp-list { position: absolute; z-index: 5; top: calc(100% + 4px); inset-inline: 0; padding: 6px; border: 1px solid #ffffff1a;
  border-radius: 16px; background: #24223d; box-shadow: 0 8px 24px #0005; }
.sp-option { padding: 10px; min-height: 44px; background: transparent; border: 0; border-radius: 10px; font: 600 15px/21px Manrope,sans-serif; }
.sp-option .sp-icon { width: 24px; height: 24px; }
.sp-option[aria-selected=true]::after { content: '✓'; margin-left: auto; color: #b8b5ff; }
.sp-option:focus-visible,.sp-option:hover { background: #ffffff0e; }
.sp-summary { border: 1px solid #ffffff1a; border-radius: 16px; background: #18172d; }
.sp-total,.sp-eligible { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 16px; line-height: 22px; }
.sp-total { padding: 16px; border-bottom: 1px solid #ffffff1a; }
.sp-notes { display: grid; gap: 4px; padding: 16px; }
.sp-notes p { margin: 0; color: #b7b4c8; font-size: 13px; line-height: 18px; }
.sp-notes .sp-eligible + p { margin-top: 4px; }
.sp-notes a,.sp-recovery-link { color: #cbc9ef; text-decoration: underline; }
.sp-footer { position: sticky; bottom: 0; margin-top: 24px; padding: 14px 0 max(16px,env(safe-area-inset-bottom)); background: #0c0b1c; }
.sp-footer .actions { display: block; margin: 0; padding: 0; }
.sp-footer .button { width: 100%; min-height: 50px; border: 0; border-radius: 999px; background: #f0eef9; color: #171527; font: 700 16px/22px Manrope,sans-serif; }
.sp-footer .form-status:empty { display: none; }
.sp-footer .button:disabled,.sp-page fieldset:disabled .sp-footer .button { opacity: .48; }
.sp-recovery p { margin: 0 0 12px; color: #c5c2d2; }
.sp-recovery-link { display: inline-flex; align-items: center; min-height: 44px; margin-right: 16px; }
.sp-page :is(a,button):focus-visible { outline: 2px solid #b4a8ff; outline-offset: 2px; }
@media (max-width:760px) {
  .sp-page { min-height: calc(100dvh - var(--mast) - 62px - env(safe-area-inset-bottom)); }
  .sp-footer { bottom: calc(62px + env(safe-area-inset-bottom)); }
}
