.result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.interest-action {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--signal);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--signal);
  font-size: 12px;
  font-weight: 700;
}

.interest-action:hover {
  background: #f8c45f;
}

.interest-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--radius-panel);
  color: var(--ink);
  background: transparent;
}

.interest-dialog::backdrop {
  background: rgb(17 21 19 / 68%);
}

.interest-form {
  max-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  overflow: auto;
  border-radius: var(--radius-panel);
  background: var(--canvas);
  box-shadow: 0 28px 80px rgb(0 0 0 / 28%);
}

.interest-header {
  padding: 28px 28px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.interest-header > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.interest-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.03em;
}

.dialog-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}

.dialog-close:hover {
  border-color: var(--ink);
}

.reuse-choices {
  margin: 0;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
}

.reuse-choices label {
  position: relative;
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.reuse-choices label:has(input:checked) {
  border-color: var(--graphite);
  color: var(--surface);
  background: var(--graphite);
}

.reuse-choices input,
.monthly-value input,
.support-signal input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-dot {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--muted);
  border-radius: 999px;
  pointer-events: none;
}

.reuse-choices label:has(input:checked) .choice-dot {
  border: 5px solid var(--signal);
}

.reuse-choices strong {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
}

.reuse-choices small {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reuse-choices label:has(input:checked) small {
  color: var(--dark-muted);
}

.reuse-choices label:has(input:focus-visible),
.monthly-value label:has(input:focus-visible),
.support-signal:has(input:focus-visible) {
  outline: 3px solid rgb(243 180 63 / 45%);
  outline-offset: 2px;
}

.monthly-value {
  margin: 0;
  padding: 0 28px 24px;
  display: flex;
  gap: 8px;
  border: 0;
}

.monthly-value[hidden] {
  display: none;
}

.monthly-value legend {
  width: 100%;
  padding: 0 0 10px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monthly-value label {
  position: relative;
  cursor: pointer;
}

.monthly-value label span {
  min-width: 56px;
  min-height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  pointer-events: none;
}

.monthly-value label:has(input:checked) span {
  border-color: var(--signal);
  background: var(--signal);
  font-weight: 700;
}

.support-signal {
  position: relative;
  min-height: 66px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  cursor: pointer;
}

.switch {
  position: relative;
  width: 60px;
  height: 34px;
  flex: 0 0 60px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  pointer-events: none;
}

.switch::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--graphite);
  content: "";
  transition: transform 140ms ease;
}

.support-signal input:checked + .switch {
  border-color: var(--signal);
  background: var(--signal);
}

.support-signal input:checked + .switch::after {
  transform: translateX(26px);
}

.interest-footer {
  padding: 20px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.interest-footer > span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.interest-footer button {
  min-height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--surface);
  background: var(--graphite);
  font-weight: 500;
}

.interest-footer button:hover {
  color: var(--signal);
}

.interest-footer button:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .result-actions {
    flex-direction: row;
  }

  .interest-action {
    min-height: 48px;
  }

  .interest-dialog {
    width: 100%;
    max-height: calc(100svh - 84px);
    margin: auto 0 0;
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  }

  .interest-form {
    max-height: calc(100svh - 84px);
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
    box-shadow: 0 -18px 60px rgb(0 0 0 / 20%);
  }

  .interest-header {
    padding: 20px 20px 18px;
  }

  .interest-header h2 {
    font-size: 24px;
    line-height: 30px;
  }

  .dialog-close {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .reuse-choices {
    padding: 16px 20px;
    gap: 8px;
  }

  .reuse-choices label {
    min-height: 50px;
    padding: 0 14px;
    gap: 10px;
  }

  .reuse-choices small {
    font-size: 10px;
  }

  .monthly-value {
    padding: 0 20px 18px;
    gap: 6px;
  }

  .monthly-value label span {
    min-width: 0;
    min-height: 44px;
    padding: 0 13px;
  }

  .support-signal {
    min-height: 62px;
    padding: 0 20px;
  }

  .interest-footer {
    padding: 16px 20px 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .interest-footer button {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .switch::after {
    transition: none;
  }
}
