.feedback-view {
  --feedback-accent: #096679;
  --feedback-tint: #e9f0ee;
  width: min(100%, 900px);
  margin-inline: auto;
  padding: 40px 48px 32px;
}
/* Keep the short feedback task clear of the floating signup action. */
body:has(#view-feedback:not([hidden])) > shape-interest { display: none; }
.feedback-heading { margin-bottom: 30px; }
.feedback-heading h1 { font-size: clamp(32px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.feedback-heading > p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.feedback-progress-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.feedback-progress { display: flex; gap: 8px; margin: 5px 0 20px; }
.feedback-progress-step { position: relative; flex: 1; min-width: 0; height: 28px; border: 0; padding: 0; background: transparent; }
.feedback-progress-step::before, .feedback-progress-fill { position: absolute; top: 12px; left: 0; right: 0; height: 3px; background: var(--line); }
.feedback-progress-step::before { content: ''; }
.feedback-progress-fill { background: var(--feedback-accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.feedback-progress-step.is-answered .feedback-progress-fill, .feedback-progress-step[aria-current="step"] .feedback-progress-fill { transform: scaleX(1); }
.feedback-progress-step[aria-current="step"] .feedback-progress-fill { background: var(--coral); }
.feedback-progress-step:disabled { cursor: default; }
.feedback-stage { animation: feedback-enter .3s cubic-bezier(.16,1,.3,1); }
.feedback-stage h2, .feedback-complete h2 { max-width: 26ch; font-size: clamp(24px, 2.5vw, 32px); font-weight: 600; line-height: 1.22; letter-spacing: -.03em; text-wrap: balance; }
.feedback-hint { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.feedback-choices { display: grid; gap: 10px; min-width: 0; padding: 0; border: 0; margin: 24px 0 0; }
.feedback-option { display: flex; align-items: center; gap: 16px; position: relative; min-height: 58px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.feedback-option:hover { border-color: var(--feedback-accent); background: var(--paper); }
.feedback-option:has(input:checked) { background: var(--feedback-tint); border-color: var(--feedback-accent); }
.feedback-option:has(input:focus-visible), .feedback-scale-option:has(input:focus-visible) { outline: 2px solid var(--feedback-accent); outline-offset: 4px; }
.feedback-option:has(input:disabled) { opacity: .52; cursor: default; }
.feedback-option:has(input:disabled):hover { border-color: var(--line); background: transparent; }
.feedback-option > input, .feedback-scale-option > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.feedback-option-copy { display: grid; gap: 4px; flex: 1; min-width: 0; }
.feedback-option-title { font-size: 14px; font-weight: 500; line-height: 1.45; }
.feedback-option-description { font-size: 12px; color: var(--muted); line-height: 1.45; }
.feedback-option-mark { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; transition: background .18s ease, border-color .18s ease; }
.feedback-option-mark svg { width: 14px; height: 14px; fill: none; stroke: var(--surface); stroke-width: 2; opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .18s ease; }
.feedback-option:has(input:checked) .feedback-option-mark { border-color: var(--feedback-accent); background: var(--feedback-accent); }
.feedback-option:has(input:checked) .feedback-option-mark svg { opacity: 1; transform: scale(1); }
.feedback-benefits { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.feedback-benefits .feedback-option { min-height: 82px; padding: 14px 16px; gap: 12px; }
.feedback-benefits .feedback-option-mark { border-radius: 4px; }
.feedback-exclusive { grid-column: 1 / -1; }
.feedback-benefits .feedback-exclusive { min-height: 48px; }
.feedback-selection-count { min-height: 19px; margin-top: 12px; font-size: 12px; color: var(--feedback-accent); }
.feedback-scale { gap: 14px; }
.feedback-scale-row { display: flex; gap: 10px; }
.feedback-scale-option { position: relative; display: grid; place-items: center; flex: 1; height: 80px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 26px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .18s, border-color .18s, color .18s; }
.feedback-scale-option:hover { background: var(--paper); border-color: var(--feedback-accent); }
.feedback-scale-option:has(input:checked) { background: var(--feedback-accent); color: var(--surface); border-color: var(--feedback-accent); }
.feedback-scale-anchors { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.feedback-scale-anchors > :last-child { text-align: right; }
.feedback-scale-value { text-align: center; min-height: 24px; font-size: 14px; color: var(--feedback-accent); }
.feedback-scale .feedback-option { margin-top: 10px; }
.feedback-comment { width: 100%; min-height: 150px; resize: vertical; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font: inherit; font-size: 16px; line-height: 1.65; caret-color: var(--feedback-accent); }
.feedback-comment::placeholder { color: var(--muted); }
.feedback-character-count { text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feedback-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--line); }
.feedback-next { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 48px; padding: 13px 22px; border: 0; border-radius: 5px; background: var(--feedback-accent); color: var(--surface); font-size: 14px; font-weight: 500; transition: background .18s ease; }
.feedback-next:hover { background: #075263; }
.feedback-next .icon { width: 18px; height: 18px; transition: transform .18s ease; }
.feedback-next:hover .icon { transform: translateX(3px); }
.feedback-next:disabled { background: var(--paper); color: var(--muted); }
.feedback-next:disabled .icon { transform: none; }
.feedback-back { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; border: 0; background: none; font-size: 14px; color: var(--muted); }
.feedback-back:hover { color: var(--feedback-accent); text-decoration: underline; text-underline-offset: 4px; }
.feedback-first-step { font-size: 12px; color: var(--muted); }
.feedback-demo-note { margin-top: 24px; font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 65ch; }
.feedback-complete { padding: 16px 0 0; animation: feedback-enter .35s cubic-bezier(.16,1,.3,1); }
.feedback-complete-mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: var(--feedback-accent); color: var(--surface); }
.feedback-complete-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; animation: feedback-check .45s ease-out; }
.feedback-complete .feedback-hint { max-width: 50ch; }
.feedback-summary { margin: 28px 0; padding-block: 16px; border-block: 1px solid var(--line); }
.feedback-summary summary { padding: 8px 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.feedback-summary summary:focus-visible { outline: 2px solid var(--feedback-accent); outline-offset: 4px; }
.feedback-summary dl { margin: 12px 0 0; }
.feedback-summary dt { font-size: 13px; color: var(--muted); margin-top: 22px; line-height: 1.5; }
.feedback-summary dd { font-size: 14px; margin: 6px 0 0; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.feedback-complete-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
@keyframes feedback-enter { from { opacity: .75; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes feedback-check { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@media (max-width: 1000px) { .feedback-view { padding: 32px 30px; } }
@media (max-width: 700px) {
  .feedback-view { padding: 28px 22px; }
  .feedback-heading { margin-bottom: 24px; }
  .feedback-stage h2 { font-size: 26px; }
  .feedback-benefits { grid-template-columns: minmax(0,1fr); }
  .feedback-benefits .feedback-option { min-height: 64px; }
  .feedback-option { padding: 14px 16px; }
  .feedback-scale-option { height: 64px; font-size: 24px; }
  .feedback-scale-row { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-view *, .feedback-view *::before, .feedback-view *::after { animation: none !important; transition: none !important; }
}

.feedback-extra { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 12px; }
.feedback-extra summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; padding: 22px; min-height: 80px; border-radius: 6px; background: var(--feedback-tint); color: var(--feedback-accent); list-style: none; transition: background .18s ease; }
.feedback-extra summary::-webkit-details-marker { display: none; }
.feedback-extra summary:hover { background: #ddebe8; }
.feedback-extra summary:focus-visible { outline: 2px solid var(--feedback-accent); outline-offset: 4px; }
.feedback-extra-invitation-copy { display: grid; gap: 7px; }
.feedback-extra-invitation-copy strong { font-size: 20px; font-weight: 600; line-height: 1.3; }
.feedback-extra-invitation-copy > span { font-size: 14px; line-height: 1.5; }
.feedback-extra-invitation-action { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.feedback-extra-disclosure { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; }
.feedback-extra-disclosure svg { width: 24px; height: 24px; transition: transform .2s cubic-bezier(.16,1,.3,1); }
.feedback-extra[open] .feedback-extra-disclosure svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .feedback-extra-disclosure svg { transition: none; } }
.feedback-extra-fields { display: grid; gap: 26px; border: 0; padding: 16px 0 0; margin: 0; min-width: 0; }
.feedback-text-field { display: grid; gap: 8px; }
.feedback-text-field > label { font-size: 16px; font-weight: 500; line-height: 1.5; }
.feedback-extra .feedback-comment { min-height: 110px; }
.feedback-status { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.feedback-status.is-error { color: #a32d25; }
.feedback-back:disabled { opacity: .5; cursor: wait; }

.feedback-optional { color: var(--muted); font-size: 14px; font-weight: 400; }
.feedback-question-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.feedback-question-note .feedback-comment { min-height: 96px; padding: 14px 16px; }
.feedback-general { margin-top: 30px; }
.feedback-general .feedback-comment { min-height: 110px; }
