/*
 * The house UI kit. Every colour, radius and font comes from tokens each app defines on :root (console: violet
 * accent on cool neutrals, PRD A.1; respondent: warm neutrals, overridden by the customer's brand, A.2 and §9.15).
 */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --control-height: 40px;
  --focus-ring: 0 0 0 3px
    color-mix(in srgb, var(--color-primary) 35%, transparent);
  --shadow-card: 0 1px 2px rgb(15 23 42 / 4%);
  --shadow-pop: 0 12px 32px rgb(15 23 42 / 16%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Buttons: pill, 40 px (A.1) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-height);
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-button, 999px);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.btn--sm {
  height: 32px;
  padding: 0 var(--space-4);
  font-size: 13px;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.btn--primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
}
.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover:not(:disabled) {
  border-color: var(--color-text-muted);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--color-hover);
}
.btn--danger {
  background: var(--color-danger);
  color: #fff;
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--icon {
  width: var(--control-height);
  padding: 0;
}
.btn--icon.btn--sm {
  width: 32px;
}

/* Cards: white, 14 px radius, thin border (A.1) */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card__body {
  padding: var(--space-5);
}
.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Page header */
.page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid
    color-mix(in srgb, var(--color-border) 70%, transparent);
}
.page-header__text {
  min-width: 0;
}
.page-header__crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.page-header__crumb,
.page-header__back {
  padding: 2px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.page-header__back {
  display: inline-flex;
  margin-left: -4px;
}
.page-header__crumb:hover,
.page-header__back:hover {
  background: var(--color-bg);
  color: var(--color-text);
}
.page-header__current {
  padding: 2px 4px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.page-header__title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-text);
}
.page-header__crumbs + .page-header__title {
  margin-top: 6px;
}
.page-header__subtitle {
  margin: var(--space-1) 0 0;
  color: var(--color-text-muted);
  font-size: 13px;
}
.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-width: 0;
  max-width: 100%;
}
@media (width >= 768px) {
  .page-header {
    flex-flow: row wrap;
    align-items: flex-end;
    justify-content: space-between;
    column-gap: var(--space-5);
  }
  .page-header__actions {
    margin-left: auto;
  }
}

/* Form fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.field__required {
  color: var(--color-danger);
  margin-left: 2px;
}
.field__hint {
  font-size: 12px;
  color: var(--color-text-muted);
}
.field__error {
  font-size: 12px;
  color: var(--color-danger);
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-input-bg, var(--color-surface));
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
}
.textarea {
  padding: var(--space-2) var(--space-3);
  resize: vertical;
  line-height: 1.5;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
  outline: none;
}
.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--color-danger);
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  cursor: pointer;
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

/* Toggle (switch) */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}
.toggle__track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--color-border);
  transition: background 0.15s;
  flex: none;
}
.toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.toggle[aria-checked='true'] .toggle__track {
  background: var(--color-primary);
}
.toggle[aria-checked='true'] .toggle__track::after {
  transform: translateX(16px);
}
.toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Badges: text always, colour never alone */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--color-hover);
  color: var(--color-text);
}
.badge--accent {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong, var(--color-primary));
}
.badge--success {
  background: color-mix(in srgb, var(--color-success) 14%, transparent);
  color: color-mix(in srgb, var(--color-success) 80%, #000);
}
.badge--warning {
  background: color-mix(in srgb, var(--color-warning) 18%, transparent);
  color: color-mix(in srgb, var(--color-warning) 60%, #000);
}
.badge--danger {
  background: color-mix(in srgb, var(--color-danger) 12%, transparent);
  color: color-mix(in srgb, var(--color-danger) 85%, #000);
}

/* Progress bar */
.progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--color-hover);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
  transition: width 0.3s;
}
.progress--warning .progress__bar {
  background: var(--color-warning);
}
.progress--danger .progress__bar {
  background: var(--color-danger);
}
.progress--success .progress__bar {
  background: var(--color-success);
}

/* Tables */
/* Positioned, so a visually hidden header label stays inside the scroll box instead of widening the page. */
.table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover td {
  background: var(--color-hover);
}
.table__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-1);
}

/* Empty / error states */
.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-7) var(--space-5);
}
.state__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.state__body {
  margin: 0;
  max-width: 420px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.state__action {
  margin-top: var(--space-3);
}

/* Spinner and skeleton */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-hover),
    var(--color-border),
    var(--color-hover)
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* Tabs */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-5);
  overflow-x: auto;
}
.tabs__tab {
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--color-text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.tabs__tab[aria-selected='true'] {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgb(15 23 42 / 45%);
}
.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  /* Like shadcn's DialogContent: a dialog scrolls down when tall, never sideways. */
  overflow: hidden auto;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
}
.modal--wide {
  max-width: 760px;
}
.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) 0;
}
.modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.modal__body {
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  font-size: 14px;
  color: var(--color-text);
}
.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  padding: 0 var(--space-5) var(--space-5);
}

/* Toasts */
.toasts {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  box-shadow: var(--shadow-pop);
  font-size: 14px;
}
.toast--success {
  border-left-color: var(--color-success);
}
.toast--error {
  border-left-color: var(--color-danger);
}
.toast--warning {
  border-left-color: var(--color-warning);
}
.toast--info {
  border-left-color: var(--color-primary);
}
.toast__text {
  flex: 1;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
  font-size: 13px;
  color: var(--color-text-muted);
}
.pagination__pages {
  display: flex;
  gap: var(--space-1);
}
.pagination__page[aria-current='page'] {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong, var(--color-primary));
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.filter-bar .select,
.filter-bar .input {
  width: auto;
}
.search {
  position: relative;
  flex: 1 1 240px;
  max-width: 360px;
}
.search .input {
  padding-left: 36px;
  width: 100%;
}
.search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Combobox: a select you can type in */
.combobox {
  position: relative;
  flex: 0 1 220px;
}
.filter-bar .combobox .input,
.combobox .input {
  width: 100%;
  padding-right: 36px;
}
.combobox__input[data-active] {
  border-color: var(--color-primary);
}
.combobox__clear,
.combobox__chevron {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--color-text-muted);
}
.combobox__chevron {
  pointer-events: none;
}
.combobox__clear {
  cursor: pointer;
}
.combobox__clear:hover {
  background: var(--color-bg);
  color: var(--color-text);
}
.combobox__clear:focus-visible {
  box-shadow: var(--focus-ring);
  outline: none;
}
.combobox__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  box-shadow: var(--shadow-pop);
}
.combobox__option {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.combobox__option[data-active],
.combobox__option:hover {
  background: var(--color-bg);
}
.combobox__option[aria-selected='true'] {
  font-weight: 600;
  color: var(--color-primary);
}
.combobox__none {
  padding: 7px 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-flex;
}
.tooltip__bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: max-content;
  max-width: 260px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #13111d;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  pointer-events: none;
  /* Out of the layout until shown: a hidden bubble near an edge would widen its scroll container (a table's). */
  display: none;
}
.tooltip:hover .tooltip__bubble,
.tooltip:focus-within .tooltip__bubble {
  display: block;
}
/* In a table's last column (the row actions) the bubble opens leftwards, inside the table's scroll box. */
.table td:last-child .tooltip__bubble {
  left: auto;
  right: 0;
  transform: none;
}

/* Choice cards (radio-like cards) */
.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}
.choice-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.choice-card[aria-checked='true'] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.choice-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.choice-card__title {
  font-weight: 600;
  font-size: 15px;
}
.choice-card__body {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Layout helpers */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.muted {
  color: var(--color-text-muted);
}

/*
 * The respondent app's default look (PRD Appendix A.2), used until the customer's brand is applied (§9.15 maps the
 * brand's styles onto these same tokens at runtime): warm off-white background, zinc-900 text and primary, white
 * cards, zinc-200 borders, a terracotta accent, Montserrat for text and a serif for headings.
 */
:root {
  --color-bg: hsl(40deg 30% 96%);
  --color-surface: #ffffff;
  --color-input-bg: #ffffff;
  --color-text: #18181b;
  --color-text-muted: #71717a;
  --color-border: #e4e4e7;
  --color-hover: #f4f4f5;
  /* Muted surfaces follow the brand's 10 % text-on-background mix (§9.15). */
  --color-muted: var(--color-hover);
  --color-primary: #18181b;
  --color-primary-hover: color-mix(
    in srgb,
    var(--color-primary) 90%,
    transparent
  );
  --color-primary-soft: color-mix(
    in srgb,
    var(--color-primary) 10%,
    transparent
  );
  --color-primary-strong: #18181b;
  --color-primary-contrast: #ffffff;
  --color-accent: #c45a3d;
  --color-success: hsl(142deg 76% 36%);
  --color-warning: hsl(38deg 92% 50%);
  --color-danger: #ef4444;
  --radius-card: 1rem;
  --radius-input: 0.5rem;
  --radius-button: 9999px;
  --shadow-card: 0 1px 3px rgb(0 0 0 / 4%), 0 1px 2px rgb(0 0 0 / 3%);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 10%), 0 8px 10px -6px rgb(0 0 0 / 10%);
  --focus-ring: 0 0 0 2px
    color-mix(in srgb, var(--color-primary) 20%, transparent);
  --font-body: 'Montserrat', sans-serif;
  --font-heading: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

.serif-heading {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* The neutral skeleton shown until the brand is applied (PRD §9.2 "Global"). */
.boot-skeleton {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #fafafa;
}

/* Chart series (the AI profile's dimensions): the brand's primary and accent, then neutral steps. */
:root {
  --chart-1: var(--color-primary);
  --chart-2: var(--color-accent);
  --chart-3: #0e7490;
  --chart-4: #7c3aed;
  --chart-5: #a16207;
}

/* Shared respondent pieces used by several slices. */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  justify-self: center;
  border: 0;
  background: none;
  padding: var(--space-1);
  color: var(--color-text-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}
.link-button:hover {
  color: var(--color-text);
}
.link-button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* The brand's mark: its logo, or a square monogram (40 px, 44 px from 640 px). */
.brand-logo {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-monogram {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: calc(var(--radius-input) - 2px);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
@media (min-width: 640px) {
  .brand-logo,
  .brand-monogram {
    width: 44px;
    height: 44px;
  }
  .brand-monogram {
    font-size: 18px;
  }
}
/* The simple header (landing, sign-in, results) uses the smaller mark: 32 px, 36 px from 640 px. */
.runner__header--simple .brand-logo,
.runner__header--simple .brand-monogram {
  width: 32px;
  height: 32px;
}
@media (min-width: 640px) {
  .runner__header--simple .brand-logo,
  .runner__header--simple .brand-monogram {
    width: 36px;
    height: 36px;
  }
}

/* The language dropdown: globe, short code and chevron; the list opens under it. */
.language-select {
  position: relative;
  flex: none;
}
.language-select__button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  cursor: pointer;
  transition: color 0.15s;
}
.language-select__button:hover {
  color: var(--color-text);
}
.language-select__button:focus-visible {
  box-shadow: 0 0 0 2px
    color-mix(in srgb, var(--color-primary) 30%, transparent);
}
.language-select__button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}
.language-select__chevron {
  display: inline-flex;
  transition: transform 0.15s;
}
.language-select__button[aria-expanded='true'] .language-select__chevron {
  transform: rotate(180deg);
}
.language-select__list {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  min-width: 144px;
  margin: 8px 0 0;
  padding: 4px 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  list-style: none;
}
.language-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.language-select__option:hover {
  background: var(--color-muted);
}
.language-select__option[aria-selected='true'] {
  color: var(--color-text);
  font-weight: 600;
}
.language-select__option svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.respondent-page {
  min-height: 100vh;
  min-height: 100dvh;
}

@keyframes respondent-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes respondent-pulse {
  50% {
    opacity: 0.5;
  }
}
@keyframes respondent-bounce {
  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}
@keyframes respondent-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.spin {
  animation: respondent-spin 1s linear infinite;
}

