/* UX survey 2026: dates and participation panel. Built by survey-status.js, used on the landing page and in the survey. */
.survey-panel { --sp-accent: var(--text-success); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-6) var(--space-8); max-width: 640px; padding: var(--space-5) var(--space-6); border: var(--stroke-1) solid var(--border-light); border-radius: var(--radius-lg); background: var(--surface-primary-tint); color: var(--text-base); }
.survey-panel--upcoming { --sp-accent: var(--text-warning); }
.survey-panel--closed { --sp-accent: var(--border-neutral); }
.survey-panel:not(:has(.sp-people)) { grid-template-columns: minmax(0, 1fr); }
.sp-range { margin: 0; font:var(--weight-semibold) 1rem/1.5rem var(--font-heading); letter-spacing: -.005em; }
.sp-live { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-3); padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); background: color-mix(in srgb, var(--sp-accent) 18%, transparent); color: var(--sp-accent); font: var(--weight-semibold) 0.875rem/1.25rem var(--font-body); letter-spacing: .01em; }
.sp-dot { position: relative; flex: 0 0 auto; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--sp-accent); }
.survey-panel--open .sp-dot::after { position: absolute; inset: 0; border-radius: inherit; background: inherit; content: ''; animation: sp-pulse 2s var(--ease-standard) infinite; }
.sp-status { margin: var(--space-1) 0 0; color: var(--text-neutral); font: var(--weight-regular) 0.875rem/1.25rem var(--font-body); }
@keyframes sp-pulse { 0% { opacity: .55; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(2.8); } }
.sp-timeline { margin-top: var(--space-4); }
.sp-bar { display: block; height: 6px; overflow: hidden; border-radius: var(--radius-full); background: color-mix(in srgb, var(--border-neutral) 30%, transparent); }
.sp-fill { display: block; height: 100%; border-radius: inherit; background: var(--surface-primary); transition: width 900ms var(--ease-out-expo, cubic-bezier(.16, 1, .3, 1)); }
.sp-ticks { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); color: var(--text-neutral); font:var(--weight-regular) 0.875rem/1.375rem var(--font-body); }
.sp-people { display: flex; flex-direction: column; justify-content: center; padding-left: var(--space-8); border-left: var(--stroke-1) solid var(--border-light); }
.sp-count { display: flex; flex-direction: column; margin: 0; }
.sp-count__n { font:var(--weight-semibold) clamp(2.25rem, 5vw, 3rem)/1 var(--font-heading); letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.sp-count > span:not(.sp-sr) { margin-top: var(--space-2); font:var(--weight-semibold) 0.875rem/1.25rem var(--font-body); }
.sp-count--loading, .sp-count--empty { color: var(--text-neutral); font:var(--weight-regular) 0.875rem/1.375rem var(--font-body); }
.sp-count--empty { color: var(--text-base); font-weight: var(--weight-semibold); }
.sp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sp-note { margin: var(--space-3) 0 0; color: var(--text-neutral); font:var(--weight-regular) 0.875rem/1.375rem var(--font-body); }
@media (max-width: 640px) {
  .survey-panel { grid-template-columns: minmax(0, 1fr); padding: var(--space-5); }
  .sp-people { padding: var(--space-5) 0 0; border-left: 0; border-top: var(--stroke-1) solid var(--border-light); }
}
@media (prefers-reduced-motion: reduce) { .sp-dot::after { animation: none; } }

/* "Survey closed" pop-up, shown when someone tries to answer after the deadline. */
.sp-dialog { width: min(92vw, 440px); padding: 0; border: var(--stroke-1) solid var(--border-light); border-radius: var(--radius-xl); color: var(--text-base); background: var(--bg-raised, var(--bg-page)); box-shadow: var(--shadow-lg); }
.sp-dialog::backdrop { background: rgb(11 11 11 / .6); backdrop-filter: blur(4px); }
.sp-dialog__body { display: grid; justify-items: start; gap: var(--space-3); padding: var(--space-8) var(--space-6) var(--space-6); }
.sp-dialog__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: var(--radius-md); color: var(--text-on-secondary); background: var(--surface-secondary); font:var(--weight-bold) 1.25rem/1.5rem var(--font-body); }
.sp-dialog h2 { margin: var(--space-2) 0 0; font:var(--weight-semibold) 1.5rem/2rem var(--font-heading); letter-spacing: -.01em; }
.sp-dialog p { margin: 0; color: var(--text-neutral); font:var(--weight-regular) 1rem/1.5rem var(--font-body); }
.sp-dialog__btn { margin-top: var(--space-4); }
@media (prefers-reduced-motion: no-preference) { .sp-dialog[open] { animation: sp-dialog-in 220ms var(--ease-out-expo); } @keyframes sp-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } } }
