/* V4 baseline module styles; existing app stylesheet is retained. */


.projects-list-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


.projects-list-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.projects-list-heading {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
}


.projects-list-history {
  margin-top: 4px;
  border: 1.5px solid rgba(45, 156, 74, 0.22);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.9);
  overflow: hidden;
}


.projects-list-history__summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  user-select: none;
}


.projects-list-history__summary::-webkit-details-marker {
  display: none;
}


.projects-list-history__summary::after {
  content: "▾";
  float: right;
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s ease;
}


.projects-list-history:not([open]) .projects-list-history__summary::after {
  transform: rotate(-90deg);
}


.projects-list-history__body {
  padding: 0 12px 12px;
}


.projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.projects-row {
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 88px;
  padding: 22px 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}


.projects-row:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(45, 156, 74, 0.1);
}


.projects-row.is-active {
  border-color: var(--accent);
  background: rgba(45, 156, 74, 0.05);
  box-shadow: 0 4px 14px rgba(45, 156, 74, 0.1);
}


.projects-row__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex: 0 1 280px;
  min-width: 170px;
  max-width: 320px;
}


.projects-row__toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  justify-content: stretch;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  padding-right: 44px;
}


.projects-hub-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  line-height: 1.2;
  background-color: var(--accent);
  background-image: none;
  color: #fff;
  filter: none;
}


.projects-hub-btn:hover:not(:disabled) {
  background-color: var(--accent-hover);
  filter: none;
}


.projects-hub-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


.projects-row__action-store {
  display: none !important;
}


.projects-row__toolbar .projects-action-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 9px 14px;
  font-size: 12px;
}


.projects-row__toolbar .projects-hub-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  padding: 16px 28px;
  font-size: 15px;
  background-color: var(--accent);
  background-image: none;
  color: #fff;
}


.projects-modal--hub .projects-hub-modal__panel {
  width: min(560px, 100%);
  max-height: none;
  overflow: visible;
  padding: 28px;
  border-radius: 20px;
  border-color: rgba(45, 156, 74, 0.28);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(45, 156, 74, 0.08), transparent 55%),
    #fff;
  animation: projects-hub-modal-in 180ms ease-out;
}


@keyframes projects-hub-modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.projects-hub-modal__header {
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}


.projects-hub-modal__heading h2 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--text-strong);
}


.projects-hub-modal__heading .projects-modal__subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}


.projects-hub-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.projects-hub-modal__actions[hidden] {
  display: none !important;
}


.projects-hub-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid rgba(45, 156, 74, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%);
  color: var(--text-strong);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(45, 156, 74, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}


.projects-hub-action:hover:not(:disabled) {
  border-color: rgba(45, 156, 74, 0.5);
  background: linear-gradient(180deg, #ffffff 0%, #eaf8ee 100%);
  box-shadow: 0 10px 24px rgba(45, 156, 74, 0.14);
  transform: translateY(-1px);
}


.projects-hub-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.projects-hub-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #f8fafc;
  border-color: var(--border);
}


.projects-hub-action.projects-action-btn--pending:disabled {
  opacity: 0.62;
  background: #f1f5f9;
}


.projects-hub-action__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(45, 156, 74, 0.28);
}


.projects-hub-action__icon svg {
  width: 20px;
  height: 20px;
}


.projects-hub-action__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}


.projects-hub-action__label {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: var(--text-strong);
}


.projects-hub-action__meta {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
}


.projects-hub-action__chevron {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.7;
}


.projects-hub-action:disabled .projects-hub-action__icon {
  background: #94a3b8;
  box-shadow: none;
}


.projects-hub-action:disabled .projects-hub-action__chevron {
  color: #94a3b8;
}


.projects-hub-action-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.projects-hub-inline-hint {
  margin: 0;
  padding: 0 4px 2px 62px;
  font-size: 12px;
  line-height: 1.35;
  color: #92600a;
}


.projects-hub-inline-hint[hidden] {
  display: none !important;
}


.projects-row > .projects-action-hint,
.projects-action-hint--run,
.projects-action-hint--view {
  display: none !important;
}


.projects-row__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}


.projects-row__name {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.projects-row-btn[data-action="dashboard"] {
  /* inherits toolbar pill sizing */
}


.projects-row-delete {
  flex-shrink: 0;
  border: 1px solid #fecaca;
  background: #fff;
  color: #dc2626;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  line-height: 1;
  font-size: 15px;
  padding: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.projects-row__toolbar .projects-row-delete {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}


.projects-row-delete:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #f87171;
}


.projects-row__toolbar .projects-row-delete:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05);
}


.projects-row-delete:focus-visible {
  outline: 2px solid #f87171;
  outline-offset: 2px;
}


.projects-row-delete:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}


.projects-row .projects-action-btn:not(.projects-hub-btn):not(.projects-hub-action) {
  width: auto;
  min-width: 0;
  padding: 9px 14px;
  text-align: center;
  font-size: 12px;
}


.projects-row .projects-hub-btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 16px 28px;
  font-size: 15px;
  text-align: center;
  background-color: var(--accent);
  background-image: none;
  color: #fff;
}


.projects-row--hint-info .projects-action-hint--run {
  color: var(--text-strong, #1a1a1a);
  font-weight: 500;
}


.projects-row:not([data-status-loaded="true"]) .projects-action-hint {
  display: none !important;
}


.projects-row .projects-action-btn[data-action="run-sentiment"] {
  transition: opacity 0.2s ease, filter 0.2s ease;
}


.projects-row--analyzing .projects-action-btn[data-action="run-sentiment"]:disabled,
.projects-row--run-pending .projects-action-btn[data-action="run-sentiment"]:disabled {
  opacity: 0.88;
  cursor: wait;
}


.projects-row--survey-running .projects-action-btn[data-action="run-survey"]:disabled {
  opacity: 0.88;
  cursor: wait;
}


.projects-row--validation-running .projects-action-btn[data-action="run-validation"]:disabled {
  opacity: 0.88;
  cursor: wait;
}


.projects-row__date {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.projects-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  font: inherit;
  color: inherit;
}


.projects-list-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(45, 156, 74, 0.1);
}


.projects-list-item.is-active {
  border-color: var(--accent);
  background: rgba(45, 156, 74, 0.06);
  box-shadow: 0 4px 14px rgba(45, 156, 74, 0.12);
}


.projects-list-item__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}


.projects-list-item__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
}


.projects-list-item__meta {
  font-size: 12px;
  color: var(--muted);
}


.projects-list-item__date {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}


.projects-list-panel,
.projects-create-panel {
  padding: clamp(12px, 1.5vh, 16px) clamp(12px, 1.5vw, 16px);
  border: 1.5px solid rgba(45, 156, 74, 0.32);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
}


.projects-form input:not([type="radio"]):not([type="checkbox"]),
.projects-form select,
.projects-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  box-sizing: border-box;
}


.projects-form.is-submitting input:not([type="radio"]):not([type="checkbox"]),
.projects-form.is-submitting textarea,
.projects-form.is-submitting select {
  pointer-events: none;
}


.projects-modal__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}


.projects-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}


.survey-mode-section {
  margin: 0 0 14px;
}


.survey-mode-legend {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong, #1a1a1a);
}


.projects-form .survey-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}


.projects-form .survey-mode-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}


.projects-form .survey-mode-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.projects-form .survey-mode-option__radio {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid #c5cdd8;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  position: relative;
}


.projects-form .survey-mode-option input[type="radio"]:checked + .survey-mode-option__radio {
  border-color: var(--accent, #2f9e44);
}


.projects-form .survey-mode-option input[type="radio"]:checked + .survey-mode-option__radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #2f9e44);
  transform: translate(-50%, -50%);
}


.projects-form .survey-mode-option__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}


.projects-form .survey-mode-option__card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong, #1a1a1a);
  line-height: 1.3;
}


.projects-form .survey-mode-option__hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}


.projects-form .survey-mode-option:has(input[type="radio"]:checked) {
  border-color: var(--accent, #2f9e44);
  box-shadow: 0 0 0 1px rgba(47, 158, 68, 0.18);
  background: rgba(47, 158, 68, 0.04);
}


.projects-form .survey-mode-option input[type="radio"]:focus-visible + .survey-mode-option__radio {
  outline: 2px solid var(--accent, #2f9e44);
  outline-offset: 2px;
}


.survey-mode-summary {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}


.survey-manual-panel {
  margin-bottom: 8px;
}


.survey-demographic-fields {
  display: contents;
}


.survey-manual-note {
  margin: 0 0 14px;
}


.toast-area .toast {
  pointer-events: auto;
}


.sentiment-topbar__actions .primary-action--pending:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


.sentiment-topbar__actions button.primary-action {
  border: none;
  cursor: pointer;
  font-family: inherit;
}


.survey-metrics {
  margin-top: 16px;
}


.survey-executive {
  padding: 22px 24px;
}


.survey-executive__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}


.survey-executive__head h3 {
  margin: 0;
}


.survey-executive__headline {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-strong, #1a1a1a);
}


.survey-executive__setup {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}


.survey-overview__demographics {
  margin: 16px 0 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}


.survey-overview__demographics h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-family: Sora, sans-serif;
}


.survey-overview__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}


.survey-overview__chart {
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}


.survey-overview__chart h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-family: Sora, sans-serif;
}


.survey-executive__para {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}


.survey-executive__para:last-of-type {
  margin-bottom: 18px;
}


.survey-fit-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}


.survey-fit-badge--strong {
  background: rgba(47, 158, 68, 0.12);
  color: #1f7a35;
  border: 1px solid rgba(47, 158, 68, 0.22);
}


.survey-fit-badge--moderate {
  background: rgba(245, 158, 11, 0.12);
  color: #9a6700;
  border: 1px solid rgba(245, 158, 11, 0.22);
}


.survey-fit-badge--weak {
  background: rgba(220, 38, 38, 0.08);
  color: #b42318;
  border: 1px solid rgba(220, 38, 38, 0.18);
}


.survey-fit-badge--unknown {
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  border: 1px solid var(--border);
}


.survey-snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}


.survey-snapshot-tile {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fafbfc;
}


.survey-snapshot-tile__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}


.survey-snapshot-tile__value {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  font-family: Sora, sans-serif;
  color: var(--text-strong, #1a1a1a);
  margin-bottom: 4px;
}


.survey-snapshot-tile__hint {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}


.survey-insight-block .survey-insight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}


.survey-insight-block .survey-insight {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-strong, #1a1a1a);
}


.survey-insight-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}


.survey-insight {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
}


.survey-insight strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}


.survey-insight p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-strong, #1a1a1a);
}


.survey-insight--gap {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.03);
}


.survey-insight--gap strong {
  color: #b42318;
}


.survey-insight--aligned {
  border-color: rgba(47, 158, 68, 0.2);
  background: rgba(47, 158, 68, 0.04);
}


.survey-insight--aligned strong {
  color: #1f7a35;
}


.survey-gap {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}


.survey-gap--low {
  background: rgba(47, 158, 68, 0.12);
  color: #1f7a35;
}


.survey-gap--medium {
  background: rgba(245, 158, 11, 0.14);
  color: #9a6700;
}


.survey-gap--high {
  background: rgba(220, 38, 38, 0.1);
  color: #b42318;
}


.survey-intro-panel {
  margin-bottom: 0;
}


.survey-chart-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}


.survey-chart-overview {
  margin-bottom: 0;
}


.survey-chart-overview__summary {
  cursor: pointer;
  list-style: none;
}


.survey-chart-overview__summary::-webkit-details-marker {
  display: none;
}


.survey-chart-overview__summary h3 {
  display: inline;
  margin: 0;
  font-size: 16px;
}


.survey-utility-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.survey-utility-panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
}


.survey-utility-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}


.survey-utility-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}


.survey-utility-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}


.survey-corr-panel {
  margin-top: 8px;
}


.survey-corr-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}


.survey-corr-zoom-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong);
}


.survey-corr-zoom {
  width: 140px;
  accent-color: #4c6ef5;
}


.survey-corr-toolbar__hint,
.survey-corr-scroll-status {
  font-size: 11px;
  color: var(--muted);
  flex: 1 1 180px;
}


.survey-corr-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  overflow: auto;
  max-height: min(75vh, 780px);
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  --corr-font-size: 12px;
  --corr-col-scale: 1;
  --corr-row-label-width: 240px;
  position: relative;
}


.survey-corr-table-wrap.is-scrollable-x {
  box-shadow: inset -14px 0 14px -14px rgba(0, 0, 0, 0.1);
}


.survey-corr-table-wrap.is-scrollable-x.is-scrolled-x {
  box-shadow:
    inset 14px 0 14px -14px rgba(0, 0, 0, 0.08),
    inset -14px 0 14px -14px rgba(0, 0, 0, 0.1);
}


.survey-corr-table-wrap.is-scrollable-x.is-scrolled-x-end {
  box-shadow: inset 14px 0 14px -14px rgba(0, 0, 0, 0.08);
}


.survey-corr-scroll-hint {
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}


.survey-corr-pairs {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 4px;
}


.survey-corr-pairs .survey-insight {
  overflow-wrap: anywhere;
}


.survey-utility-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}


.survey-corr-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--corr-font-size, 12px);
}


.survey-utility-table th,
.survey-utility-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}


.survey-corr-table th,
.survey-corr-table td {
  border: 1px solid var(--border);
  padding: 6px 8px;
  text-align: center;
  vertical-align: middle;
}


.survey-corr-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-muted);
  font-weight: 600;
}


.survey-corr-table thead th.survey-corr-col-label {
  writing-mode: horizontal-tb;
  transform: none;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: center;
  vertical-align: bottom;
  line-height: 1.3;
  padding: 10px 8px 8px;
  font-size: calc(var(--corr-font-size, 12px) * 0.95);
}


.survey-corr-table tbody th,
.survey-corr-table .survey-corr-row-label {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--surface);
  font-weight: 600;
  text-align: left;
  width: var(--corr-row-label-width, 240px);
  min-width: var(--corr-row-label-width, 240px);
  max-width: var(--corr-row-label-width, 240px);
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  padding: 8px 12px 8px 10px;
  box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.12);
}


.survey-corr-table thead th.survey-corr-corner,
.survey-corr-table thead th:first-child {
  left: 0;
  z-index: 4;
  background: var(--surface-muted);
  width: var(--corr-row-label-width, 240px);
  min-width: var(--corr-row-label-width, 240px);
  max-width: none;
}


.survey-corr-table .survey-corr-cell {
  min-width: 52px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}


.survey-segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 12px;
}


.survey-segment-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 14px 16px;
  background: var(--surface-alt);
}


.survey-segment-card__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}


.survey-segment-card__head span {
  color: var(--muted);
  font-size: 12px;
}


.survey-segment-card__block {
  margin-top: 14px;
}


.survey-segment-card__block + .survey-segment-card__block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}


.survey-segment-card__label {
  margin: 0 0 8px;
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-strong);
}


.survey-segment-card ul,
.survey-corr-pairs ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}


.survey-segment-card li span,
.survey-corr-pairs li span {
  color: var(--muted);
}


.survey-demo-dimension {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--surface-alt);
}


.survey-demo-dimension summary {
  cursor: pointer;
  font-size: 13px;
}


.survey-demo-question {
  margin-top: 10px;
}


.survey-demo-question > p {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text);
}


.survey-demo-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.survey-demo-bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  max-width: 100%;
  min-width: 0;
}


.survey-demo-bar-row__label {
  color: var(--muted);
}


.survey-demo-bar-row__track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}


.survey-demo-bar-row__fill {
  height: 100%;
  border-radius: 999px;
  background: #4c6ef5;
}


.survey-demo-bar-row__value {
  text-align: right;
  font-weight: 600;
}


.survey-corr-cell {
  text-align: center;
  font-size: 10px;
  min-width: 42px;
}


.survey-corr-cell--strong-pos {
  background: rgba(47, 158, 68, 0.35);
}


.survey-corr-cell--moderate-pos {
  background: rgba(47, 158, 68, 0.18);
}


.survey-corr-cell--strong-neg {
  background: rgba(220, 38, 38, 0.28);
}


.survey-corr-cell--moderate-neg {
  background: rgba(220, 38, 38, 0.14);
}


.survey-corr-cell--weak {
  background: transparent;
}


.survey-corr-pairs {
  margin-top: 12px;
}


.survey-question-results {
  margin-bottom: 0;
}


.survey-charts-panel {
  margin-bottom: 0;
}


.survey-charts-panel h3 {
  margin-bottom: 6px;
}


.survey-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}


.survey-charts-grid--single {
  grid-template-columns: 1fr;
}


.survey-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}


.survey-chart-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fafbfc;
  padding: 14px 16px;
}


.survey-chart-card--wide {
  grid-column: 1 / -1;
}


.survey-chart-card h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-family: Sora, sans-serif;
}


.survey-chart-card__hint {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}


.survey-chart-card__body--donut {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}


.survey-donut__seg--same {
  stroke: #2f9e44;
}


.survey-donut__seg--diff {
  stroke: #868e96;
}


.survey-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}


.survey-donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}


.survey-donut-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}


.survey-donut-legend__swatch--same {
  background: #2f9e44;
}


.survey-donut-legend__swatch--diff {
  background: #868e96;
}


.survey-section-bar {
  margin-bottom: 12px;
}


.survey-section-bar:last-child {
  margin-bottom: 0;
}


.survey-section-bar__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
}


.survey-section-bar__label {
  font-weight: 600;
  color: var(--text-strong, #1a1a1a);
}


.survey-section-bar__count {
  color: var(--muted);
  white-space: nowrap;
}


.survey-section-bar__track {
  display: flex;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}


.survey-section-bar__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  min-width: 2px;
}


.survey-section-bar__seg--same {
  background: #2f9e44;
}


.survey-section-bar__seg--diff {
  background: #868e96;
}


.survey-top-share-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.survey-top-share-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


.survey-top-share-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}


.survey-top-share-row__meta {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}


.survey-top-share-row__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong, #1a1a1a);
  line-height: 1.35;
}


.survey-top-share-row__badge {
  display: inline-flex;
  align-self: start;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}


.survey-top-share-row__badge--same {
  background: rgba(47, 158, 68, 0.1);
  color: #1f7a35;
}


.survey-top-share-row__badge--diff {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-strong, #1a1a1a);
}


.survey-top-share-row__bars {
  display: grid;
  gap: 6px;
}


.survey-top-share-row__barline {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: center;
}


.survey-top-share-row__who {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}


.survey-q-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 14px;
}


.survey-q-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}


.survey-q-legend__item::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
}


.survey-q-legend__item--synth::before {
  background: #f76707;
}


.survey-q-legend__item--real::before {
  background: #4c6ef5;
}


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


.survey-q-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}


.survey-q-card__summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  position: relative;
}


.survey-q-card__summary::-webkit-details-marker {
  display: none;
}


.survey-q-card__summary::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 18px;
  color: var(--muted);
  font-size: 14px;
}


.survey-q-card[open] .survey-q-card__summary::after {
  content: "▴";
}


.survey-q-card__head {
  display: grid;
  gap: 6px;
  padding-right: 28px;
}


.survey-q-card__peek {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 4px;
}


.survey-q-peek-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fafbfc;
  border: 1px solid rgba(0, 0, 0, 0.06);
}


.survey-q-peek-line__who {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}


.survey-q-peek-line--synth .survey-q-peek-line__pct {
  color: #c2410c;
  font-weight: 700;
}


.survey-q-peek-line--real .survey-q-peek-line__pct {
  color: #364fc7;
  font-weight: 700;
}


.survey-q-peek-line__answer {
  color: var(--text-strong, #1a1a1a);
  line-height: 1.35;
}


.survey-q-badge {
  display: inline-flex;
  align-self: start;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}


.survey-q-badge--same {
  background: rgba(47, 158, 68, 0.1);
  color: #1f7a35;
  border: 1px solid rgba(47, 158, 68, 0.18);
}


.survey-q-badge--diff {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-strong, #1a1a1a);
  border: 1px solid var(--border);
}


.survey-q-card__body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}


.survey-q-card__note {
  margin: 12px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}


.survey-q-dist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.survey-q-dist__head,
.survey-q-dist__row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 1fr 1fr;
  gap: 12px;
  align-items: center;
}


.survey-q-dist__head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


.survey-q-dist__label {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-strong, #1a1a1a);
}


.survey-q-dist__label--top {
  font-weight: 600;
}


.survey-q-dist__tag {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}


.survey-dist-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}


.survey-dist-bar__track {
  height: 10px;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}


.survey-dist-bar__fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}


.survey-dist-bar--synth .survey-dist-bar__fill {
  background: #f76707;
}


.survey-dist-bar--real .survey-dist-bar__fill {
  background: #4c6ef5;
}


.survey-dist-bar__pct {
  font-size: 12px;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
  color: var(--text-strong, #1a1a1a);
}


@media (max-width: 760px) {
  .survey-q-card__peek {
    grid-template-columns: 1fr;
  }

  .survey-q-dist__head {
    display: none;
  }

  .survey-q-dist__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
}


.survey-chart-lazy {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 8px;
}


.survey-question-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}


.survey-question-table th,
.survey-question-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}


.survey-q-section {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
}


.survey-q-text {
  display: block;
  margin-top: 2px;
}


.survey-cohort-panel {
  margin-top: 0;
}


.survey-cohort-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}


.survey-cohort-member {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}


.survey-cohort-member__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}


.survey-cohort-member__summary::-webkit-details-marker {
  display: none;
}


.survey-cohort-member__index {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(45, 156, 74, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.survey-cohort-member__name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
}


.survey-cohort-member__count {
  font-size: 11px;
  color: var(--muted);
}


.survey-cohort-member__body {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}


.survey-member-answers {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}


.survey-member-answers th,
.survey-member-answers td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  vertical-align: top;
}


.survey-member-answers th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}


.survey-answer-source {
  font-size: 10px;
  color: var(--muted);
}


.survey-demographics-banner {
  margin-top: 0;
}


.survey-member-demographics {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


.survey-member-demographics__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}


.survey-member-demographics__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.survey-demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(47, 158, 68, 0.08);
  border: 1px solid rgba(47, 158, 68, 0.16);
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-strong, #1a1a1a);
}


.survey-demo-chip strong {
  font-weight: 600;
}


.survey-topbar-hint,
.validation-topbar-hint {
  margin-top: 4px;
}


.projects-modal--wide .projects-modal__panel {
  max-width: 760px;
}


.projects-modal--survey .projects-survey-modal__panel {
  width: min(1040px, 100%);
  max-width: none;
  max-height: min(92dvh, 900px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(45, 156, 74, 0.28);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.16);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(45, 156, 74, 0.08), transparent 55%),
    #fff;
}


.projects-survey-modal__header {
  flex-shrink: 0;
  margin: 0;
  padding: 22px 28px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}


.projects-survey-modal__header h2 {
  font-size: 22px;
}


.projects-survey-modal__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}


.survey-wizard-steps {
  flex-shrink: 0;
  padding: 16px 28px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, rgba(247, 252, 248, 0.9), rgba(255, 255, 255, 0.96));
}


.survey-wizard-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}


.survey-wizard-step {
  position: relative;
  min-width: 0;
}


.survey-wizard-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: rgba(45, 156, 74, 0.22);
  pointer-events: none;
}


.survey-wizard-step.is-complete:not(:last-child)::after,
.survey-wizard-step.is-active:not(:last-child)::after {
  background: rgba(45, 156, 74, 0.55);
}


.survey-wizard-step__btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 6px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  text-align: center;
}


.survey-wizard-step__bubble {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(45, 156, 74, 0.35);
  background: #fff;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}


.survey-wizard-step.is-active .survey-wizard-step__bubble {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px var(--accent-soft);
}


.survey-wizard-step.is-complete .survey-wizard-step__bubble {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}


.survey-wizard-step__label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
}


.survey-wizard-step.is-active .survey-wizard-step__label {
  color: var(--text-strong);
}


.survey-wizard-step.is-complete .survey-wizard-step__label {
  color: var(--accent-hover);
}


.projects-survey-modal__body {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 20px 28px;
}


.survey-wizard-panel[hidden] {
  display: none !important;
}


.survey-wizard-panel {
  min-width: 0;
}


.survey-wizard-panel__intro {
  margin-bottom: 18px;
}


.survey-wizard-panel__title {
  margin: 0 0 8px;
  font-family: Sora, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
}


.survey-wizard-panel__lede,
.projects-field-hint--emphasis {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #334155;
}


.survey-wizard-panel__lede {
  max-width: 62ch;
}


.survey-wizard-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}


.survey-wizard-panel__modules {
  margin: 0;
}


.survey-wizard-panel__inputs {
  position: sticky;
  top: 0;
}


.survey-wizard-preview {
  margin: 0;
  min-height: 280px;
  max-height: min(52dvh, 460px);
  overflow: auto;
}


.survey-wizard-ready {
  padding: 20px 22px;
  border: 1.5px solid rgba(45, 156, 74, 0.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
}


.survey-wizard-ready__list {
  margin: 0 0 14px;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-strong);
}


.survey-wizard-ready__list li + li {
  margin-top: 8px;
}


.projects-survey-modal__sample {
  margin-bottom: 14px;
}


.projects-survey-modal__sample .projects-field {
  max-width: 320px;
}


.projects-survey-modal__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 28px 20px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.96);
}


.projects-survey-modal__footer-spacer {
  flex: 1 1 auto;
}


.survey-wizard-nav {
  min-width: 120px;
  margin: 0;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(45, 156, 74, 0.35);
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}


.survey-wizard-nav:hover {
  background: var(--accent-soft);
}


.survey-wizard-nav--next {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}


.survey-wizard-nav--next:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}


.survey-wizard-nav[hidden],
.projects-survey-modal__footer .projects-submit[hidden] {
  display: none !important;
}


/* ---- Questionnaire builder (wizard step 2) ---- */
.survey-qbuilder {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.survey-qbuilder__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}


.survey-qbuilder__btn {
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(45, 156, 74, 0.35);
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}


.survey-qbuilder__btn:hover {
  background: var(--accent-soft);
}


.survey-qbuilder__btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}


.survey-qbuilder__btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}


.survey-qbuilder__btn--ghost {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}


.survey-qbuilder__btn--ghost:hover {
  background: var(--accent-soft);
}


.survey-qbuilder__btn--danger {
  border-color: rgba(220, 38, 38, 0.45);
  background: #dc2626;
  color: #fff;
}


.survey-qbuilder__btn--danger:hover {
  background: #b91c1c;
}


.survey-qbuilder__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}


.survey-qbuilder__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.survey-qbuilder__empty {
  margin: 8px 0 0;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1.5px dashed rgba(45, 156, 74, 0.35);
  background: #f7fbf8;
}


.survey-qcard {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(45, 156, 74, 0.22);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}


.survey-qcard.is-dragging {
  opacity: 0.55;
}


.survey-qcard__order {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
}


.survey-qcard__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}


.survey-qcard__reorder {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


.survey-qcard__body {
  min-width: 0;
}


.survey-qcard__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #eef2f7;
  color: #334155;
}


.survey-qcard__badge--rating {
  background: rgba(45, 156, 74, 0.14);
  color: #1b6b33;
}


.survey-qcard__badge--nominal {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}


.survey-qcard__badge--ordinal {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}


.survey-qcard__text {
  margin: 8px 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-strong);
}


.survey-qcard__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}


.survey-qcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}


.survey-qcard__icon-btn {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}


.survey-qcard__icon-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}


.survey-qcard__icon-btn--danger:hover:not(:disabled) {
  border-color: rgba(220, 38, 38, 0.45);
  color: #dc2626;
  background: #fef2f2;
}


.survey-qcard__icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}


.survey-qcard__text-btn {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}


.survey-qcard__text-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}


.survey-qcard__text-btn--danger:hover {
  border-color: rgba(220, 38, 38, 0.45);
  color: #dc2626;
  background: #fef2f2;
}


.projects-modal--survey-nested {
  z-index: 3200;
}


.projects-modal--survey-nested .survey-qeditor__panel,
.projects-modal--survey-nested .survey-import__panel,
.projects-modal--survey-nested .survey-bank__panel {
  width: min(560px, 100%);
  max-height: min(88dvh, 760px);
  overflow-y: auto;
}


.survey-qeditor__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


.survey-qeditor__types {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.survey-qeditor__type {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}


.survey-qeditor__type:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}


.survey-qeditor__labels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.survey-qeditor__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  font-size: 14px;
}


.survey-qeditor__bank-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}


.survey-qeditor__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}


.survey-import__body {
  margin-bottom: 14px;
}


.survey-import__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(48dvh, 360px);
  overflow: auto;
}


.survey-import__item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 14px;
  line-height: 1.4;
}


.survey-import__item--ok {
  border-color: rgba(45, 156, 74, 0.3);
  background: #f7fbf8;
}


.survey-import__item--err {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fef2f2;
  color: #991b1b;
}


.survey-import__labels {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}


.survey-bank__filters {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}


.survey-bank__filters input[type="search"],
.survey-bank__filters select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.45);
  font: inherit;
  font-size: 14px;
}


.survey-bank__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(52dvh, 420px);
  overflow: auto;
  margin-bottom: 12px;
}


.survey-bank__item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(45, 156, 74, 0.2);
  background: #fff;
}


.survey-bank__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}


.survey-bank__text {
  margin: 8px 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}


.survey-bank__meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}


.survey-bank__remove {
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #dc2626;
  cursor: pointer;
}


.survey-bank__remove:hover {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.55);
}


.survey-bank__empty {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}


.survey-respondent-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.survey-respondent-preview__empty {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}


.survey-respondent-q {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(45, 156, 74, 0.18);
  background: #fff;
}


.survey-respondent-q__num {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}


.survey-respondent-q__type {
  color: var(--accent);
}


.survey-respondent-q__text {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-strong);
}


.survey-respondent-q__note {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}


.survey-respondent-q__scale {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}


.survey-respondent-q__scale-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
}


.survey-respondent-q__scale-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}


.survey-respondent-q__options {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.survey-respondent-q__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  font-size: 14px;
  color: var(--text-strong);
  pointer-events: none;
  user-select: none;
}


.survey-respondent-q__radio {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(100, 116, 139, 0.7);
  flex-shrink: 0;
}


@media (max-width: 700px) {
  .survey-qcard {
    grid-template-columns: auto 1fr;
  }

  .survey-qcard__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .survey-bank__filters {
    flex-direction: column;
  }
}


.projects-survey-modal__footer .projects-submit {
  width: auto;
  min-width: 180px;
  margin: 0;
  padding: 12px 28px;
  border-radius: 999px;
  background-color: var(--accent);
  background-image: none;
  color: #fff;
}


.survey-demo-balance {
  margin-top: 8px;
  padding: 16px;
  border: 1.5px solid rgba(45, 156, 74, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
}


.survey-demo-balance__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}


.survey-demo-balance__head .survey-mode-legend {
  margin-bottom: 4px;
}


.survey-demo-balance__head .projects-field-hint {
  margin: 0;
}


.survey-demo-balance__reset {
  flex-shrink: 0;
  border: 1.5px solid rgba(45, 156, 74, 0.35);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}


.survey-demo-balance__reset:hover {
  background: var(--accent-soft);
}


.survey-demo-balance__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}


.survey-demo-dim {
  padding: 12px;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}


.survey-demo-dim.is-invalid {
  border-color: rgba(185, 28, 28, 0.55);
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.14);
  background: #fffafa;
}


.survey-demo-dim__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}


.survey-demo-dim__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}


.survey-demo-dim__total {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}


.survey-demo-dim__total.is-valid {
  color: var(--accent);
}


.survey-demo-dim__total.is-invalid {
  color: #b91c1c;
}


.survey-demo-dim__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.survey-demo-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-weight: 400;
}


.survey-demo-option__label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-strong);
}


.survey-demo-option__input {
  width: 100%;
  padding: 7px 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  text-align: center;
}


.survey-demo-option__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}


.survey-demo-balance__status {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}


.survey-demo-balance__status.is-valid {
  color: var(--accent-hover);
}


.survey-demo-balance__status.is-invalid {
  color: #b91c1c;
  font-weight: 600;
}


.survey-demo-balance.is-error {
  border-color: rgba(180, 83, 9, 0.45);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.12);
  animation: survey-demo-balance-shake 320ms ease;
}


@keyframes survey-demo-balance-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}


.projects-survey-modal__side-card {
  padding: 18px;
  border: 1.5px solid rgba(45, 156, 74, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
  box-shadow: 0 8px 22px rgba(45, 156, 74, 0.08);
}


.projects-survey-modal__side-title {
  margin: 0 0 10px;
  font-family: Sora, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}


.survey-wizard-panel__inputs .survey-config-dynamic,
.projects-survey-modal__side .survey-config-dynamic {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.survey-wizard-panel__inputs .projects-field,
.projects-survey-modal__side .projects-field {
  margin: 0;
}


.survey-wizard-panel__inputs textarea,
.projects-survey-modal__side textarea {
  min-height: 64px;
  resize: vertical;
}


.projects-survey-modal__footer .projects-submit {
  width: auto;
  min-width: 180px;
  margin: 0;
  padding: 12px 28px;
  border-radius: 999px;
  background-color: var(--accent);
  background-image: none;
  color: #fff;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}


.projects-survey-modal__footer .projects-submit:hover:not(:disabled) {
  background-color: var(--accent-hover);
  filter: none;
}


.projects-survey-modal__footer .projects-submit:disabled,
.projects-survey-modal__footer .projects-submit.is-locked {
  background-color: #94a3b8;
  background-image: none;
  color: #f8fafc;
  opacity: 1;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}


.projects-survey-modal__form.is-submitting .projects-survey-modal__footer .projects-submit:disabled {
  background-color: var(--accent);
  cursor: wait;
  opacity: 0.88;
}


.survey-config-intro {
  margin-bottom: 16px;
  padding: 14px 16px;
}


.survey-config-section {
  margin: 14px 0 0;
}


.survey-mode-legend {
  margin: 0 0 8px;
  font-family: Sora, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}


.survey-wizard-panel__modules .projects-field-hint--emphasis,
.survey-wizard-panel__inputs .projects-field-hint--emphasis {
  margin-bottom: 14px;
}


.survey-module-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.survey-module-core {
  padding: 16px 18px;
  border: 1.5px solid rgba(47, 158, 68, 0.24);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(47, 158, 68, 0.1), rgba(47, 158, 68, 0.04));
  box-shadow: 0 4px 14px rgba(45, 156, 74, 0.06);
}


.survey-module-core__label,
.survey-module-group__label {
  margin: 0 0 12px;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f6212;
}


.survey-module-core__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.survey-module-core__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(47, 158, 68, 0.28);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}


.survey-module-core__chip-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: rgba(47, 158, 68, 0.14);
}


.survey-module-core__chip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong, #1a1a1a);
}


.survey-module-group {
  margin: 0;
  padding: 16px;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  background: #fff;
  min-width: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}


.survey-module-group:first-of-type {
  padding-top: 16px;
  border-top: 1.5px solid rgba(226, 232, 240, 0.95);
}


.projects-form .survey-module-group__label {
  float: none;
  width: 100%;
}


.survey-module-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}


.projects-form .survey-module-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 15px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer;
  font-weight: 400;
  line-height: 1.35;
  min-width: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}


.projects-form .survey-module-option:hover {
  border-color: rgba(47, 158, 68, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f2faf4 100%);
  box-shadow: 0 6px 16px rgba(45, 156, 74, 0.1);
  transform: translateY(-1px);
}


.projects-form .survey-module-option:has(.survey-module-option__input:checked) {
  border-color: #2f9e44;
  background: linear-gradient(180deg, #ffffff 0%, #eaf8ee 100%);
  box-shadow: 0 0 0 1px rgba(47, 158, 68, 0.14), 0 8px 18px rgba(45, 156, 74, 0.12);
}


.projects-form .survey-module-option__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.projects-form .survey-module-option__dot {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #c5cdd8;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}


.projects-form .survey-module-option:has(.survey-module-option__input:checked) .survey-module-option__dot {
  border-color: #2f9e44;
  background: rgba(47, 158, 68, 0.08);
}


.projects-form .survey-module-option:has(.survey-module-option__input:checked) .survey-module-option__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9e44;
  transform: translate(-50%, -50%);
}


.projects-form .survey-module-option__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}


.projects-form .survey-module-option__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


.projects-form .survey-module-option__id {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2f9e44;
}


.projects-form .survey-module-option__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong, #1a1a1a);
  line-height: 1.3;
}


.projects-form .survey-module-option__hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted, #64748b);
  line-height: 1.35;
}


@media (max-width: 1100px) {
  .survey-module-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 640px) {
  .survey-module-list {
    grid-template-columns: 1fr;
  }

  .projects-survey-modal__header,
  .projects-survey-modal__body,
  .projects-survey-modal__footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}


.survey-config-preview__title {
  font-weight: 600;
  margin-bottom: 8px;
}


.survey-config-preview__meta {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}


.survey-config-preview__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 360px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.survey-config-preview__list li,
.survey-config-preview__item {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 4px 8px;
  align-items: start;
}


.survey-config-preview__item--disabled {
  opacity: 0.55;
}


.survey-config-preview__item--blocked {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(251, 191, 36, 0.08);
}


.survey-config-preview__item--included {
  border-color: rgba(47, 158, 68, 0.28);
}


.survey-config-preview__id {
  font-weight: 700;
  font-family: Sora, sans-serif;
  font-size: 11px;
}


.survey-config-preview__badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 999px;
  width: fit-content;
}


.survey-config-preview__badge--included {
  color: #2f9e44;
  background: rgba(47, 158, 68, 0.12);
}


.survey-config-preview__badge--blocked {
  color: #b45309;
  background: rgba(251, 191, 36, 0.2);
}


.survey-config-preview__badge--disabled {
  color: var(--muted);
  background: var(--surface-muted);
}


.survey-config-preview__title-inline {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-strong);
}


.survey-config-preview__text {
  grid-column: 1 / -1;
  color: var(--text);
}


.survey-module-panel {
  margin-top: 16px;
}


.survey-funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 520px;
}


.survey-funnel__stage {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 56px;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}


.survey-funnel__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}


.survey-funnel__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f76707, #ff922b);
}


.survey-funnel__arrow {
  text-align: center;
  color: var(--text-muted, #64748b);
  font-size: 18px;
  line-height: 1;
}


.survey-ranked-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.survey-ranked-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.survey-ranked-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}


.survey-ranked-row__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(22, 101, 52, 0.1);
  color: #166534;
  font-family: Sora, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}


.survey-ranked-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.survey-ranked-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}


.survey-ranked-row__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-strong);
}


.survey-ranked-row__score {
  flex-shrink: 0;
  font-family: Sora, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-strong);
  white-space: nowrap;
}


.survey-ranked-row__scale {
  margin-left: 1px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}


.survey-ranked-row__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}


.survey-ranked-row__track {
  height: 10px;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}


.survey-ranked-row__fill {
  height: 100%;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8590c, #ff922b);
}


.survey-ranked-row__pct {
  min-width: 40px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  color: var(--text-strong);
}


.survey-ranked-row__meta {
  font-size: 11px;
  color: var(--muted);
}


.projects-field-hint-inline {
  font-weight: 400;
  color: var(--text-muted, #64748b);
  font-size: 12px;
}


.survey-report-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  position: sticky;
  top: 8px;
  z-index: 5;
  backdrop-filter: blur(8px);
}


.survey-report-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}


.survey-report-nav__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.survey-report-nav__btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-strong, #1a1a1a);
  cursor: pointer;
}


.survey-report-nav__btn:hover {
  border-color: rgba(47, 158, 68, 0.45);
  color: #166534;
}


.survey-report-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-strong, #1a1a1a);
  background: rgba(0, 0, 0, 0.04);
}


.survey-report-nav__link:hover {
  background: rgba(247, 103, 7, 0.12);
  color: #c2410c;
}


.survey-report-section {
  margin-top: 12px;
  padding: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}


.survey-report-section__body {
  padding: 0 16px 16px 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}


#surveyResults.sentiment-results {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}


.survey-report-section__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}


.survey-report-section__summary::-webkit-details-marker {
  display: none;
}


.survey-report-section__chevron {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(47, 158, 68, 0.1);
  position: relative;
  transition: transform 0.15s ease, background 0.15s ease;
}


.survey-report-section__chevron::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #2f9e44;
  border-bottom: 2px solid #2f9e44;
  transform: translate(-60%, -70%) rotate(45deg);
  transition: transform 0.15s ease;
}


.survey-report-section[open] .survey-report-section__chevron::before {
  transform: translate(-50%, -35%) rotate(-135deg);
}


.survey-report-section[open] .survey-report-section__chevron {
  background: rgba(47, 158, 68, 0.18);
}


.survey-report-section__head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}


.survey-report-section__title {
  font-size: 15px;
  font-weight: 700;
  font-family: Sora, sans-serif;
  color: var(--text-strong, #1a1a1a);
  line-height: 1.25;
}


.survey-report-section__sub {
  font-size: 12px;
  color: var(--muted, #64748b);
  line-height: 1.35;
}


.survey-report-section__summary:hover .survey-report-section__title {
  color: #166534;
}


@media (max-width: 720px) {
  .survey-report-section__body {
    padding-left: 16px;
  }

  .survey-report-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-report-nav__actions {
    justify-content: flex-end;
  }
}


.survey-meta-line {
  margin-top: 12px;
}


.survey-insight-block {
  margin-top: 16px;
  max-width: 100%;
  min-width: 0;
}


.survey-insight-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-family: Sora, sans-serif;
}


.survey-radar-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.survey-radar-row {
  display: grid;
  grid-template-columns: minmax(100px, 28%) minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}


.survey-radar-row__label,
.survey-radar-row__value {
  font-size: 12px;
}


.survey-persona-var {
  margin-top: 18px;
}


.survey-persona-var h4 {
  margin: 0 0 10px;
  font-size: 14px;
}


.survey-persona-dist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.survey-persona-dist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(52px, auto) minmax(96px, auto);
  grid-template-areas:
    "label label label"
    "bar pct count";
  gap: 6px 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
}


.survey-persona-dist-row:nth-child(even) {
  background: rgba(0, 0, 0, 0.04);
}


.survey-persona-dist-row__label {
  grid-area: label;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-word;
}


.survey-persona-dist-row__bar {
  grid-area: bar;
  min-width: 0;
}


.survey-persona-dist-row__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}


.survey-persona-dist-row__fill {
  height: 100%;
  border-radius: 999px;
  background: #4c6ef5;
  min-width: 2px;
}


.survey-persona-dist-row__pct {
  grid-area: pct;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}


.survey-persona-dist-row__count {
  grid-area: count;
  font-size: 11px;
  color: var(--text-muted, #64748b);
  text-align: right;
  white-space: nowrap;
}


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


.survey-rating-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}


.survey-rating-card__summary {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}


.survey-rating-card__summary::-webkit-details-marker {
  display: none;
}


.survey-rating-card__family {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c2410c;
}


.survey-rating-card__text {
  font-size: 13px;
  line-height: 1.4;
}


.survey-rating-card__mean {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-strong, #1a1a1a);
}


.survey-rating-card__body {
  padding: 0 14px 14px;
}


.survey-rating-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted, #64748b);
}


.survey-histogram {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  align-items: end;
  height: 88px;
  padding-top: 8px;
}


.survey-histogram__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}


.survey-histogram__bar {
  width: 100%;
  min-height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #ff922b, #f76707);
}


.survey-histogram__label {
  font-size: 10px;
  color: var(--text-muted, #64748b);
}


.survey-demo-bar-row__rank {
  width: 24px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}


.survey-demo-bar-row__meta {
  font-size: 11px;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}


.survey-choice-block__q {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}


.survey-demo-dimension {
  margin-top: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}


.survey-demo-dimension summary {
  cursor: pointer;
  font-size: 13px;
}


.survey-corr-cell--pos {
  background: rgba(47, 158, 68, 0.15);
}


.survey-corr-cell--pos-strong {
  background: rgba(47, 158, 68, 0.32);
  font-weight: 700;
}


.survey-corr-cell--neg {
  background: rgba(250, 82, 82, 0.12);
}


.survey-corr-cell--neg-strong {
  background: rgba(250, 82, 82, 0.28);
  font-weight: 700;
}


.survey-segment-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
}


.survey-segment-card .survey-ranked-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.survey-report-section__body > .sentiment-scope-hint,
.survey-overview__chart .sentiment-scope-hint {
  margin-bottom: 14px;
}


@media (max-width: 720px) {
  .survey-ranked-row__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .survey-ranked-row__score {
    font-size: 16px;
  }

  .survey-rating-card__summary {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .survey-radar-row {
    grid-template-columns: 1fr;
  }

  .survey-funnel__stage {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* ---- Custom questionnaire survey results (spec §5) ---- */
.survey-qresults-header {
  margin-bottom: 18px;
}


.survey-qresults-header__title {
  margin: 0 0 8px;
  font-family: Sora, sans-serif;
  font-size: 22px;
  color: var(--text-strong);
}


.survey-qresults-header__lede {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}


.survey-qresults-header__meta {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}


.survey-qresults-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.survey-qresults-header__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}


.survey-qresults-export {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.survey-qresult__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}


.survey-qresult__chart-toggle {
  margin-left: auto;
  display: inline-flex;
  border: 1.5px solid rgba(45, 156, 74, 0.28);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}


.survey-qresult__toggle-btn {
  margin: 0;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}


.survey-qresult__toggle-btn.is-active {
  background: var(--accent);
  color: #fff;
}


.survey-qresult__chart-host {
  display: block;
}


.survey-qresult-chart--pie {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 12px 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
}


.survey-qresult-chart--pie[hidden],
.survey-qresult-chart--rows[hidden] {
  display: none !important;
}


.survey-qresult-pie-wrap {
  position: relative;
  width: min(210px, 100%);
  margin: 0 auto;
}


.survey-qresult-pie-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.08));
}


.survey-qresult-pie__slice {
  stroke: #fff;
  stroke-width: 1.5;
  transform-origin: 100px 100px;
  transition: transform 160ms ease, filter 160ms ease;
  cursor: default;
}


.survey-qresult-pie__slice:hover {
  transform: scale(1.035);
  filter: brightness(1.05);
}


.survey-qresult-pie__pct {
  fill: #0f172a;
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
}


.survey-qresult-pie__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}


.survey-qresult-pie__center-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}


.survey-qresult-pie__center-label {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


.survey-qresult-pie-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.survey-qresult-pie-legend__item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
}


.survey-qresult-pie-legend__swatch {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}


.survey-qresult-pie-legend__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}


.survey-qresult-pie-legend__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}


.survey-qresult-pie-legend__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
}


.survey-qresult-pie-legend__meta strong {
  color: var(--text-strong);
  font-weight: 800;
}


.survey-qresult-pie-legend__meta span:last-child {
  color: var(--accent);
  font-weight: 700;
}


@media (max-width: 720px) {
  .survey-qresult-chart--pie {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .survey-qresults-export {
    width: 100%;
  }

  .survey-qresults-export .survey-qbuilder__btn {
    flex: 1 1 auto;
  }
}


.survey-qresult__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}


.survey-qresult__badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}


.survey-qresult__badge--rating {
  background: rgba(45, 156, 74, 0.14);
  color: #1b6b33;
}


.survey-qresult__badge--nominal {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}


.survey-qresult__badge--ordinal {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}


.survey-qresult__text {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text-strong);
}


.survey-qresult-chart--columns {
  display: grid;
  grid-template-columns: repeat(var(--qresult-cols, 5), minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 180px;
  padding: 8px 4px 0;
  border-radius: 12px;
  background: #f8fafc;
}


.survey-qresult-chart__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  height: 100%;
}


.survey-qresult-chart__value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-bottom: 2px;
  text-align: center;
  line-height: 1.2;
}


.survey-qresult-chart__count {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-strong);
  white-space: nowrap;
}


.survey-qresult-chart__count-unit {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}


.survey-qresult-chart__pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}


.survey-qresult-chart__bar {
  width: 100%;
  min-height: 6px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--accent), #1b6b33);
}


.survey-qresult-chart__point {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}


.survey-qresult-chart__label {
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
  word-break: break-word;
}


.survey-qresult-chart--rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.survey-qresult-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(140px, 2fr) auto;
  gap: 10px;
  align-items: center;
}


.survey-qresult-row__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}


.survey-qresult-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
  line-height: 1.2;
}


.survey-qresult-row__count {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-strong);
}


.survey-qresult-row__pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}


.survey-qresults-stats {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted);
}


.survey-qresults-note,
.survey-qresults-empty {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}


@media (max-width: 720px) {
  .survey-qresult-chart--columns {
    min-height: 160px;
  }

  .survey-qresult-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* —— Validation report —— */
.validation-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}


.validation-pill--pass {
  background: var(--accent-soft);
  color: #1f7a35;
}


.validation-pill--review {
  background: rgba(247, 103, 7, 0.12);
  color: #c2410c;
}


.validation-badge {
  display: inline-flex;
  margin: 4px 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}


.validation-badge--ok {
  background: var(--accent-soft);
  color: #1f7a35;
}


.validation-badge--warn {
  background: rgba(247, 103, 7, 0.12);
  color: #c2410c;
}


.validation-badge--neutral {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}


.validation-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-alt);
}


.validation-note--warn {
  border-color: rgba(247, 103, 7, 0.22);
  background: rgba(247, 103, 7, 0.05);
}


.validation-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-strong);
}


.validation-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}


.validation-meter {
  margin: 2px 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 156, 74, 0.2);
  background: linear-gradient(135deg, rgba(45, 156, 74, 0.07), #fff 60%);
}


.validation-meter__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
}


.validation-meter__top strong {
  font-family: Sora, sans-serif;
  font-size: 22px;
  color: var(--accent);
}


.validation-meter__track {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}


.validation-meter__track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #248a3f, #2d9c4a 45%, #86efac);
}


.validation-meter__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}


.validation-subcard {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}


.validation-subcard > h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}


.validation-subcard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}


.validation-subcard__head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}


.survey-persona-dist-row__fill.validation-fill--synth {
  background: #2d9c4a;
}


.survey-persona-dist-row__fill.validation-fill--real {
  background: #3b82f6;
}


.survey-persona-dist-row__fill.validation-fill--warn {
  background: #f76707;
}


.validation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 12px;
}


.validation-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}


.validation-legend__item i,
.validation-legend__item--synth::before,
.validation-legend__item--real::before {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}


.validation-legend__item--synth::before {
  content: "";
  background: #2d9c4a;
}


.validation-legend__item--real::before {
  content: "";
  background: #3b82f6;
}


.validation-dual {
  display: grid;
  gap: 12px;
}


.validation-dual__item {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.02);
}


.validation-dual__item h5 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}


.validation-effect {
  margin: 12px 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}


.validation-effect__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}


.validation-effect__top strong {
  font-family: Sora, sans-serif;
  font-size: 16px;
  color: var(--text-strong);
}


.validation-effect__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
}


.validation-effect__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}


.validation-effect__fill--pass {
  background: linear-gradient(90deg, #248a3f, #2d9c4a);
}


.validation-effect__fill--review {
  background: linear-gradient(90deg, #d97706, #f76707);
}


.validation-effect__track > i {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 16px;
  background: var(--text-strong);
  transform: translateX(-50%);
}


.validation-effect__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}


.validation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}


.validation-filter {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
  cursor: pointer;
}


.validation-filter.is-active {
  background: var(--accent-soft);
  border-color: rgba(45, 156, 74, 0.28);
  color: #1f7a35;
}


.validation-varcard {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}


.validation-varcard__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  border-left: 3px solid transparent;
}


.validation-varcard__summary--pass {
  border-left-color: var(--accent);
}


.validation-varcard__summary--review {
  border-left-color: #f76707;
  background: linear-gradient(90deg, rgba(247, 103, 7, 0.05), transparent 50%);
}


.validation-varcard__summary::-webkit-details-marker {
  display: none;
}


.validation-varcard__titles {
  min-width: 0;
}


.validation-varcard__titles strong {
  display: block;
  font-size: 15px;
  color: var(--text-strong);
}


.validation-varcard__titles span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}


.validation-varcard__body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}


.validation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}


.validation-stats__item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}


.validation-stats__item span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}


.validation-stats__item strong {
  display: block;
  font-size: 14px;
  color: var(--text-strong);
  text-transform: capitalize;
}


.validation-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}


.validation-split > .validation-subcard {
  margin-top: 0;
}


.validation-chart-card {
  width: 100%;
}


.validation-scatter {
  width: 100%;
  height: auto;
  display: block;
}


.validation-scatter__bg {
  fill: rgba(45, 156, 74, 0.04);
  stroke: var(--border);
}


.validation-scatter__grid {
  stroke: rgba(148, 163, 184, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}


.validation-scatter__diag {
  stroke: #94a3b8;
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
}


.validation-scatter__axis {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 600;
}


.validation-importance {
  display: grid;
  gap: 12px;
}


.validation-importance__block {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.02);
}


.validation-importance__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
}


.validation-importance__title span {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-content: center;
  font-size: 11px;
  background: var(--accent-soft);
  color: #1f7a35;
}


.validation-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}


.validation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}


.validation-table th,
.validation-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


.validation-table th {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  background: var(--surface-alt);
}


.validation-table td {
  color: var(--text-strong);
}


.validation-table tbody tr:hover {
  background: rgba(45, 156, 74, 0.03);
}


.validation-table tbody tr:last-child td {
  border-bottom: 0;
}


.validation-table th:nth-child(3),
.validation-table th:nth-child(4),
.validation-table th:nth-child(5),
.validation-table td:nth-child(3),
.validation-table td:nth-child(4),
.validation-table td:nth-child(5) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}


@media (max-width: 720px) {
  .validation-varcard__summary {
    flex-direction: column;
    align-items: flex-start;
  }
}