.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:50px;
  max-width:100%;
  border:1px solid transparent;
  border-radius:var(--radius-sm);
  padding:13px 24px;
  font-weight:600;
  font-size:.9rem;
  line-height:1.5;
  text-decoration:none;
  text-align:center;
  transition:background-color var(--duration) var(--ease),border-color var(--duration) var(--ease);
  overflow-wrap:anywhere;
  background:var(--champagne);
  color:var(--night);
  box-shadow:var(--shadow-action)
}

.button:hover:not(:disabled) {
  background:#ffe4b4
}

.button.primary {
  background:var(--champagne);
  color:var(--night)
}

.button.primary:hover:not(:disabled) {
  background:#ffe4b4
}

.button.secondary {
  background:transparent;
  color:inherit;
  border-color:var(--control-line);
  box-shadow:none
}

.button.secondary:hover {
  background:#a57b4610;
  border-color:currentColor
}

.button.dark {
  background:var(--night);
  color:var(--light)
}

.button:disabled {
  background:var(--disabled);
  color:var(--disabled-text);
  border-color:var(--disabled);
  box-shadow:none;
  cursor:not-allowed
}

.text-link {
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  font-weight:600;
  font-size:.86rem
}

.text-link.light {
  color:var(--light)
}

.link-button {
  padding:8px 0;
  color:var(--ink);
  background:transparent;
  border:0;
  text-decoration:underline;
  text-underline-offset:.25em;
  font-size:.82rem;
  min-height:44px
}

.paper {
  background:var(--paper);
  color:var(--ink);
  border:1px solid #fffc;
  border-radius:var(--radius-lg);
  padding:clamp(24px,3.5vw,48px);
  box-shadow:var(--shadow-panel)
}

.paper .eyebrow {
  color:#725327
}

.paper h2 {
  font-size:2.2rem
}

.choice-group {
  border:0;
  padding:0;
  margin:0;
  min-width:0
}

.choice-group legend {
  font-family:var(--font-display);
  font-size:2rem;
  letter-spacing:-.025em;
  line-height:1.2;
  padding:0;
  width:100%
}

.required {
  display:block;
  font-family:var(--font-body);
  font-weight:400;
  color:var(--muted);
  font-size:.65rem;
  line-height:1.5;
  letter-spacing:0;
  margin-top:.5rem
}

.choice-list {
  display:flex;
  flex-direction:column;
  gap:10px
}

.choice {
  display:flex;
  align-items:center;
  gap:15px;
  border:1px solid var(--control-line);
  padding:16px 18px;
  border-radius:var(--radius-md);
  background:transparent;
  cursor:pointer;
  transition:background-color var(--duration),border-color var(--duration);
  line-height:1.45;
  min-width:0
}

.choice:hover {
  background:#f6e8d3
}

.choice:has(input:checked) {
  background:#f5e8d0;
  border-color:#76562e;
  box-shadow:0 0 0 1px #76562e inset
}

.choice:has(input:focus-visible) {
  outline:3px solid var(--focus);
  outline-offset:3px
}

.choice input {
  width:19px;
  height:19px;
  flex:0 0 19px;
  margin:0;
  accent-color:var(--ink);
  cursor:pointer
}

.choice input:focus-visible {
  outline:0
}

.choice span {
  min-width:0;
  overflow-wrap:anywhere
}

.choice strong {
  font-size:.89rem
}

.choice small {
  display:block;
  color:var(--muted);
  font-size:.74rem;
  margin-top:3px
}

.choice-advice {
  padding:13px 18px;
  background:#eee7dc55
}

.choice-advice strong {
  font-weight:400;
  font-size:.84rem
}

.field {
  margin-bottom:24px
}

.field>label {
  font-size:.95rem;
  font-weight:600;
  display:block;
  line-height:1.5
}

.field input,.field textarea {
  width:100%;
  display:block;
  border:1px solid var(--control-line);
  border-radius:var(--radius-sm);
  padding:13px 14px;
  background:#fffefa;
  color:var(--ink);
  line-height:1.6;
  transition:border-color var(--duration)
}

.field textarea {
  resize:vertical;
  min-height:150px;
  max-width:100%
}

.field input:focus-visible,.field textarea:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:3px
}

.field input[aria-invalid="true"],.field textarea[aria-invalid="true"] {
  border:2px solid var(--error);
  background:var(--error-bg)
}

.field-error {
  color:var(--error);
  font-size:.82rem;
  margin:.75rem 0 0;
  font-weight:600
}

.choice:has([aria-invalid="true"]) {
  border-color:var(--error)
}

.counter {
  font-size:.7rem;
  color:var(--muted);
  text-align:right;
  margin:7px 0 0
}

.notice {
  background:#eaeff0;
  border:1px solid #acbfc5;
  border-left:3px solid #4a6772;
  border-radius:var(--radius-sm);
  padding:14px 16px;
  color:var(--ink);
  font-size:.82rem;
  line-height:1.6;
  margin:1rem 0;
  overflow-wrap:anywhere
}

.notice.error {
  background:var(--error-bg);
  border-color:#b35c4a;
  color:var(--error)
}

.notice.warning {
  background:#f8edd7;
  border-color:#9d763b;
  color:#67471d
}

.notice a {
  font-weight:600
}

.progress {
  margin-bottom:25px
}

.progress>div {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:.69rem;
  line-height:1.5;
  color:var(--muted);
  margin-bottom:9px
}

.progress strong {
  white-space:nowrap;
  color:var(--ink)
}

progress {
  display:block;
  width:100%;
  height:4px;
  border:0;
  border-radius:4px;
  appearance:none;
  background:#ded6c8;
  accent-color:#8c6633
}

progress::-webkit-progress-bar {
  background:#ded6c8;
  border-radius:4px
}

progress::-webkit-progress-value {
  background:#8c6633;
  border-radius:4px
}

progress::-moz-progress-bar {
  background:#8c6633;
  border-radius:4px
}

.summary-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:20px 0;
  border-block:1px solid var(--line)
}

.summary-row>div {
  min-width:0
}

.summary-row dt {
  color:var(--muted);
  font-size:.74rem;
  line-height:1.6
}

.summary-row dd {
  font-weight:600;
  font-size:.88rem;
  margin-top:5px;
  overflow-wrap:anywhere
}

.summary-row button {
  flex-shrink:0
}

.step-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:30px
}

.spinner {
  width:17px;
  height:17px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:spin 800ms linear infinite;
  flex-shrink:0
}

.motion-control {
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:.85rem;
  cursor:pointer;
  margin-top:28px
}

.motion-control input {
  width:18px;
  height:18px;
  flex-shrink:0;
  accent-color:var(--ink);
  margin-top:4px
}

@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}

@media(max-width:520px) {
  .paper {
    padding:24px 20px;
    border-radius:20px
  }
  .choice-group legend {
    font-size:1.8rem
  }
  .choice {
    padding:14px;
    gap:12px
  }
  .choice strong {
    font-size:.85rem
  }
  .choice small {
    font-size:.73rem
  }
  .choice-advice strong {
    font-size:.8rem
  }
  .summary-row {
    gap:14px
  }
  .step-actions {
    gap:12px
  }
  .step-actions .button {
    padding-inline:20px
  }
}
