:root {
  --bg: #f6efe5;
  --bg-deep: #f3e4d3;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fffdfa;
  --surface-contrast: #1c2f3f;
  --text: #1f2b38;
  --muted: #67707b;
  --line: rgba(31, 43, 56, 0.12);
  --accent: #eb6e3d;
  --accent-strong: #d25424;
  --teal: #0b6a72;
  --gold: #f5c667;
  --danger: #a43c37;
  --success: #177b52;
  --shadow-xl: 0 30px 65px rgba(32, 44, 59, 0.16);
  --shadow-lg: 0 18px 40px rgba(32, 44, 59, 0.12);
  --radius-xxl: 32px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
}

.auth-pending .page-shell,
.auth-pending .login-page {
  visibility: hidden;
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.login-card {
  width: min(100%, 490px);
  padding: clamp(26px, 5vw, 42px);
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-xl);
  display: grid;
  gap: 18px;
}

.login-logo {
  width: 116px;
  height: auto;
}

.login-card h1 {
  margin: 0;
  font: 800 clamp(1.8rem, 4vw, 2.4rem)/1.12 var(--font-display);
  letter-spacing: -0.04em;
}

.login-form,
.user-form {
  display: grid;
  gap: 18px;
}

.login-form .button,
.user-form .button {
  justify-self: start;
}

.login-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--teal);
  line-height: 1.5;
}

.login-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.user-panel {
  max-width: 1040px;
  margin: 0 auto 22px;
}

.user-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  margin: 20px 0 12px;
}

.user-form .button {
  grid-column: 1 / -1;
}

.credential-result {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(11, 106, 114, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(223, 245, 243, 0.8);
}

.credential-result[hidden] {
  display: none;
}

.credential-result p {
  color: var(--muted);
  line-height: 1.5;
}

.credential-copy-row,
.user-row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.credential-copy-row input {
  flex: 1 1 220px;
}

.user-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.user-row > div:first-child {
  display: grid;
  gap: 4px;
}

.user-row span,
.user-row small {
  color: var(--muted);
}

@media (max-width: 640px) {
  .user-form {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 198, 103, 0.42), transparent 34%),
    radial-gradient(circle at top right, rgba(11, 106, 114, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.65;
  pointer-events: none;
}

.ambient-one {
  top: -80px;
  left: -30px;
  width: 260px;
  height: 260px;
  background: rgba(235, 110, 61, 0.16);
  animation: floatBlob 14s ease-in-out infinite;
}

.ambient-two {
  top: 22%;
  right: -80px;
  width: 320px;
  height: 320px;
  background: rgba(11, 106, 114, 0.14);
  animation: floatBlob 16s ease-in-out infinite reverse;
}

.ambient-three {
  bottom: -120px;
  left: 45%;
  width: 280px;
  height: 280px;
  background: rgba(245, 198, 103, 0.16);
  animation: floatBlob 18s ease-in-out infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.masthead {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 24px;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto 26px;
}

.masthead-copy {
  max-width: 1120px;
  width: 100%;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.brand-copy {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(96px, 9vw, 128px);
  height: auto;
}

.eyebrow,
.section-kicker,
.question-order {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 700;
}

.masthead h1,
.panel h2,
.experience-heading h2,
.question-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.masthead h1 {
  font-size: clamp(2rem, 2.4vw, 2.85rem);
  line-height: 1.08;
  max-width: none;
  text-wrap: balance;
}

.lead {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.masthead-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.button,
.chip-button,
.icon-button {
  border: 0;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.chip-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 24px rgba(210, 84, 36, 0.24);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 26px rgba(31, 43, 56, 0.08);
}

.button.ghost {
  color: var(--teal);
  background: rgba(223, 245, 243, 0.75);
  border: 1px solid rgba(11, 106, 114, 0.14);
}

.button:disabled,
.chip-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.builder-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.builder-sidebar-panel {
  position: static;
}

.builder-editor-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.builder-launch-state {
  width: 100%;
}

.builder-stack {
  display: grid;
  gap: 18px;
}

.builder-table-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.7fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 248, 239, 0.74) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.builder-table-filters .field {
  gap: 8px;
}

.builder-table-filters .field span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.builder-table-filters input[type="search"],
.builder-table-filters input[type="date"] {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(31, 43, 56, 0.05);
}

.builder-table-filters .button {
  min-height: 54px;
  padding-inline: 24px;
  white-space: nowrap;
}

.builder-form-list {
  margin-top: 16px;
}

.builder-form-table-shell {
  overflow: auto;
  border-radius: 24px;
  border: 1px solid rgba(31, 43, 56, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 249, 242, 0.9) 100%);
}

.builder-form-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.builder-form-table th,
.builder-form-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(31, 43, 56, 0.08);
  vertical-align: middle;
}

.builder-form-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  background: rgba(223, 245, 243, 0.46);
  font-weight: 800;
}

.builder-form-table tbody tr {
  transition: background 180ms ease, box-shadow 180ms ease;
}

.builder-form-table tbody tr:hover {
  background: rgba(223, 245, 243, 0.24);
}

.builder-form-table tbody tr.is-active {
  background: rgba(223, 245, 243, 0.34);
}

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

.builder-table-cell-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.builder-table-cell-copy strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
}

.builder-table-edit {
  min-width: 112px;
  justify-content: center;
}

.builder-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-table-delete {
  min-width: 112px;
  justify-content: center;
  color: #9d3d32;
  border-color: rgba(157, 61, 50, 0.16);
  background: rgba(255, 232, 226, 0.9);
}

.builder-table-delete:hover {
  background: rgba(255, 219, 211, 0.98);
  box-shadow: 0 10px 18px rgba(157, 61, 50, 0.1);
}

.panel,
.response-shell {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(18px);
  animation: riseIn 540ms ease;
}

.panel,
.response-shell {
  padding: 24px;
}

.response-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.preview-panel {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.panel-header,
.response-toolbar,
.question-editor-head,
.question-editor-actions,
.share-actions,
.options-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.panel-header {
  align-items: start;
}

.panel-header h2 {
  margin-top: 6px;
  font-size: 1.45rem;
}

.panel-header-tight {
  align-items: center;
  margin-bottom: 18px;
}

.draft-status,
.share-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.draft-status {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  white-space: nowrap;
}

.draft-status-soft {
  background: rgba(255, 255, 255, 0.46);
}

.share-status.warning {
  color: var(--danger);
}

.share-status.success {
  color: var(--success);
}

.share-link-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-actions {
  margin-top: 8px;
}

.chip-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, #0e7d86 100%);
  box-shadow: 0 10px 24px rgba(11, 106, 114, 0.2);
}

.field-group {
  display: grid;
  gap: 16px;
}

.field-group.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.field-group.media-settings-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr) minmax(240px, 0.95fr);
  margin-top: 16px;
  align-items: start;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text);
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.upload-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hidden-file-input {
  display: none;
}

.chip-button.subtle {
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 43, 56, 0.1);
}

input[type="text"],
input[type="search"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea,
select {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(11, 106, 114, 0.46);
  box-shadow: 0 0 0 4px rgba(11, 106, 114, 0.12);
  background: #fff;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

textarea {
  resize: vertical;
}

.question-type-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.question-type-actions-bottom {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 43, 56, 0.08);
  justify-content: flex-start;
}

.chip-button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--teal);
  font-weight: 700;
  background: rgba(223, 245, 243, 0.82);
  border: 1px solid rgba(11, 106, 114, 0.14);
}

.question-list {
  display: grid;
  gap: 14px;
}

.question-editor,
.builder-empty-state,
.response-empty-state {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 249, 242, 0.92) 100%);
  box-shadow: var(--shadow-lg);
}

.question-editor {
  padding: 20px;
}

.question-editor-head {
  align-items: start;
  margin-bottom: 16px;
}

.question-editor-title {
  margin-top: 7px;
  font-size: 1.3rem;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.type-pill.single {
  background: rgba(235, 110, 61, 0.12);
  color: var(--accent-strong);
}

.type-pill.multiple {
  background: rgba(11, 106, 114, 0.12);
  color: var(--teal);
}

.type-pill.text {
  background: rgba(245, 198, 103, 0.22);
  color: #7a5605;
}

.type-pill.scale {
  background: rgba(131, 197, 92, 0.18);
  color: #2f7b2a;
}

.question-editor-actions {
  justify-content: flex-end;
  margin-bottom: 18px;
}

.icon-button {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 43, 56, 0.1);
  font-size: 1rem;
  color: var(--text);
}

.icon-button.danger {
  color: var(--danger);
  background: rgba(255, 229, 223, 0.94);
}

.question-editor-grid {
  display: grid;
  gap: 16px;
}

.inline-fields {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.question-config-grid {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr) auto;
}

.question-config-grid-compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.question-config-grid-compact > span,
.question-config-grid-compact > input[data-field="points"] {
  display: none;
}

.compact-field input[type="number"] {
  text-align: center;
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
}

.switch-field input {
  width: 18px;
  height: 18px;
}

.options-editor {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(248, 242, 233, 0.9);
  border: 1px solid rgba(31, 43, 56, 0.08);
}

.scale-editor {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 242, 233, 0.92) 100%);
  border: 1px solid rgba(31, 43, 56, 0.08);
}

.scale-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.scale-editor-head h4 {
  margin: 0;
  font-size: 1rem;
}

.scale-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.scale-editor-preview {
  display: grid;
  gap: 10px;
}

.scale-editor-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.scale-editor-legend span:last-child {
  text-align: right;
}

.scale-editor-range,
.scale-answer-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
}

.scale-editor-step {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--scale-border, rgba(31, 43, 56, 0.12));
  background: var(--scale-soft, rgba(255, 255, 255, 0.82));
  color: var(--scale-text, var(--text));
  font-weight: 800;
  font-size: 0.88rem;
}

.options-header h4 {
  margin: 0;
  font-size: 1rem;
}

.options-list {
  display: grid;
  gap: 10px;
}

.option-row {
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, auto) auto;
  align-items: center;
}

.option-correct-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 106, 114, 0.14);
  background: rgba(223, 245, 243, 0.5);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.option-correct-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.option-correct-toggle.is-active {
  background: rgba(235, 110, 61, 0.12);
  border-color: rgba(235, 110, 61, 0.24);
  color: var(--accent-strong);
}

.option-index {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(11, 106, 114, 0.12);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.88rem;
}

.builder-empty-state,
.response-empty-state {
  padding: 26px;
  text-align: center;
}

.builder-empty-state h3,
.response-empty-state h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.builder-empty-state p,
.response-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.preview-panel {
  display: grid;
  gap: 18px;
}

.preview-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-badge,
.preview-count {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.preview-badge {
  background: rgba(235, 110, 61, 0.14);
  color: var(--accent-strong);
}

.preview-count {
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
}

.preview-canvas {
  min-height: 560px;
}

.response-toolbar {
  justify-content: flex-end;
  margin-bottom: 18px;
}

.form-experience {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fffdfb;
}

.form-experience > :not(.celebration-layer) {
  position: relative;
  z-index: 1;
}

.celebration-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.celebration-layer.is-active {
  opacity: 1;
}

.question-celebration-layer {
  border-radius: inherit;
  inset: 8px;
}

.theme-formal {
  background: linear-gradient(180deg, #fffdf9 0%, #fffaf2 100%);
}

.theme-interactive {
  background: linear-gradient(180deg, #fffaf4 0%, #fff3e7 100%);
}

.theme-enps {
  background: linear-gradient(180deg, #fffdf9 0%, #fff6ee 100%);
}

.experience-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  gap: 22px;
}

.theme-formal .experience-hero {
  background:
    linear-gradient(180deg, rgba(28, 47, 63, 0.03) 0%, rgba(255, 255, 255, 0.4) 100%),
    linear-gradient(135deg, #f8f3eb 0%, #fffdfa 100%);
}

.theme-interactive .experience-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #102e42 0%, #0b6a72 58%, #eb6e3d 100%);
  color: #fff;
}

.theme-enps .experience-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(135deg, #123646 0%, #0b6a72 35%, #f5c667 70%, #86c95b 100%);
  color: #fff;
}

.experience-heading {
  display: grid;
  align-content: start;
  gap: 12px;
}

.experience-mode {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-formal .experience-mode {
  background: rgba(28, 47, 63, 0.08);
  color: var(--surface-contrast);
}

.theme-interactive .experience-mode {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.theme-enps .experience-mode {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.experience-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  word-break: break-word;
}

.experience-heading p {
  margin: 0;
  line-height: 1.8;
  color: inherit;
}

.theme-formal .experience-heading p {
  color: var(--muted);
}

.experience-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.theme-formal .stat-chip {
  color: var(--teal);
  background: rgba(11, 106, 114, 0.08);
}

.theme-interactive .stat-chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.theme-enps .stat-chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.experience-media {
  min-height: 240px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, rgba(245, 198, 103, 0.52) 0%, rgba(235, 110, 61, 0.3) 100%);
}

.theme-interactive .experience-media {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 244, 228, 0.08) 100%);
}

.theme-enps .experience-media {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 244, 228, 0.06) 100%);
}

.experience-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-media.placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 18px;
  font-weight: 700;
}

.theme-formal .experience-media.placeholder {
  color: var(--surface-contrast);
}

.theme-enps .experience-media.placeholder {
  color: rgba(255, 255, 255, 0.92);
}

.experience-body {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.experience-progress {
  display: grid;
  gap: 10px;
  padding: 12px 24px 4px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-track {
  width: 100%;
  height: 11px;
  border-radius: 999px;
  background: rgba(31, 43, 56, 0.08);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  transition: width 220ms ease;
}

.theme-enps .progress-track span {
  background: linear-gradient(90deg, #ef4444 0%, #f97316 22%, #facc15 50%, #84cc16 76%, #22c55e 100%);
}

.question-shell {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(31, 43, 56, 0.09);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 28px rgba(31, 43, 56, 0.08);
}

.question-shell > :not(.question-celebration-layer) {
  position: relative;
  z-index: 1;
}

.theme-interactive .question-shell {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 60%), rgba(255, 255, 255, 0.92);
}

.question-shell.has-error {
  border-color: rgba(164, 60, 55, 0.35);
  box-shadow: 0 14px 26px rgba(164, 60, 55, 0.12);
}

.question-shell.is-correct {
  border-color: rgba(23, 123, 82, 0.24);
  box-shadow: 0 18px 28px rgba(23, 123, 82, 0.12);
}

.question-shell.is-incorrect {
  border-color: rgba(164, 60, 55, 0.28);
  box-shadow: 0 18px 28px rgba(164, 60, 55, 0.12);
}

.question-shell-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.question-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(11, 106, 114, 0.1);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.question-chip.is-points {
  background: rgba(235, 110, 61, 0.12);
  color: var(--accent-strong);
}

.question-title {
  font-size: 1.45rem;
}

.question-support {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.answer-grid {
  display: grid;
  gap: 12px;
}

.scale-answer-shell {
  display: grid;
  gap: 12px;
}

.scale-answer-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.scale-answer-labels span:last-child {
  text-align: right;
}

.scale-choice {
  position: relative;
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--scale-border, rgba(31, 43, 56, 0.14));
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.scale-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--scale-soft, rgba(255, 255, 255, 0.86)) 0%, rgba(255, 255, 255, 0.98) 100%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.scale-choice:hover {
  transform: translateY(-2px);
  border-color: var(--scale-border, rgba(11, 106, 114, 0.18));
  box-shadow: 0 14px 24px rgba(31, 43, 56, 0.08);
}

.scale-choice:hover::before,
.scale-choice.is-selected::before {
  opacity: 1;
}

.scale-choice.is-selected {
  border-color: var(--scale-border, rgba(11, 106, 114, 0.24));
  box-shadow:
    0 18px 30px rgba(31, 43, 56, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
  transform: translateY(-2px);
}

.theme-enps .scale-choice.is-selected {
  box-shadow:
    0 18px 34px color-mix(in srgb, var(--scale-fill, #22c55e) 26%, rgba(31, 43, 56, 0.1)),
    0 0 0 1px rgba(255, 255, 255, 0.46) inset;
}

.theme-enps .scale-choice.selection-burst {
  transform: translateY(-4px) scale(1.03);
}

.scale-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.scale-choice-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--scale-text, var(--text));
}

.scale-tone-0 {
  --scale-fill: #ef4444;
  --scale-soft: #fee2e2;
  --scale-border: #fca5a5;
  --scale-text: #991b1b;
}

.scale-tone-1 {
  --scale-fill: #f25a3d;
  --scale-soft: #ffe6df;
  --scale-border: #f7b39b;
  --scale-text: #9a3412;
}

.scale-tone-2 {
  --scale-fill: #f97316;
  --scale-soft: #ffedd5;
  --scale-border: #fdba74;
  --scale-text: #9a3412;
}

.scale-tone-3 {
  --scale-fill: #fb923c;
  --scale-soft: #ffedd9;
  --scale-border: #fdba74;
  --scale-text: #9a3412;
}

.scale-tone-4 {
  --scale-fill: #f59e0b;
  --scale-soft: #fef3c7;
  --scale-border: #fcd34d;
  --scale-text: #92400e;
}

.scale-tone-5 {
  --scale-fill: #facc15;
  --scale-soft: #fef9c3;
  --scale-border: #fde047;
  --scale-text: #854d0e;
}

.scale-tone-6 {
  --scale-fill: #c4d74b;
  --scale-soft: #f0f8c8;
  --scale-border: #d9f99d;
  --scale-text: #4d7c0f;
}

.scale-tone-7 {
  --scale-fill: #a3e635;
  --scale-soft: #ecfccb;
  --scale-border: #bef264;
  --scale-text: #3f6212;
}

.scale-tone-8 {
  --scale-fill: #84cc16;
  --scale-soft: #e7f8cc;
  --scale-border: #a3e635;
  --scale-text: #3f6212;
}

.scale-tone-9 {
  --scale-fill: #4ade80;
  --scale-soft: #dcfce7;
  --scale-border: #86efac;
  --scale-text: #166534;
}

.scale-tone-10 {
  --scale-fill: #22c55e;
  --scale-soft: #d9fbe8;
  --scale-border: #4ade80;
  --scale-text: #166534;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(31, 43, 56, 0.1);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 106, 114, 0.18);
  box-shadow: 0 14px 26px rgba(31, 43, 56, 0.08);
}

.choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.choice-card.is-selected {
  background: rgba(223, 245, 243, 0.7);
  border-color: rgba(11, 106, 114, 0.32);
}

.theme-interactive .choice-card.is-selected {
  background: rgba(255, 240, 223, 0.92);
  border-color: rgba(235, 110, 61, 0.34);
  box-shadow:
    0 18px 34px rgba(235, 110, 61, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
  transform: translateY(-3px) scale(1.01);
}

.theme-interactive .choice-card::before,
.theme-interactive .choice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.theme-interactive .choice-card::before {
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.72) 48%, transparent 80%);
  transform: translateX(-130%);
}

.theme-interactive .choice-card::after {
  inset: -28%;
  background:
    radial-gradient(circle at 16% 34%, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 84% 24%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 78%, rgba(245, 198, 103, 0.88) 0 4px, transparent 5px),
    radial-gradient(circle at 24% 76%, rgba(255, 255, 255, 0.82) 0 3px, transparent 4px),
    radial-gradient(circle at 58% 14%, rgba(255, 240, 223, 0.76) 0 5px, transparent 6px);
  transform: scale(0.72);
}

.theme-interactive .choice-card.selection-burst::before {
  animation: choiceShine 620ms ease-out;
}

.theme-interactive .choice-card.selection-burst::after {
  animation: sparkleBurst 700ms ease-out;
}

.choice-indicator {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(31, 43, 56, 0.28);
  position: relative;
  background: #fff;
}

.choice-card.is-multiple .choice-indicator {
  border-radius: 7px;
}

.choice-card.is-selected .choice-indicator {
  border-color: var(--accent);
}

.theme-interactive .choice-card.is-selected .choice-indicator {
  box-shadow: 0 0 0 6px rgba(235, 110, 61, 0.12);
}

.theme-interactive .choice-card.selection-burst .choice-indicator {
  animation: indicatorPop 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.choice-card.error-burst {
  animation: errorShake 360ms ease;
}

.question-shell.error-burst {
  animation: errorShake 420ms ease;
}

.choice-card.is-selected .choice-indicator::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
}

.choice-copy {
  font-weight: 600;
}

.choice-card.is-correct-answer {
  border-color: rgba(23, 123, 82, 0.32);
  background: rgba(225, 246, 234, 0.9);
}

.choice-card.is-incorrect-answer {
  border-color: rgba(164, 60, 55, 0.3);
  background: rgba(255, 229, 223, 0.94);
}

.choice-card.is-expected-answer {
  border-color: rgba(23, 123, 82, 0.2);
  background: rgba(232, 247, 238, 0.86);
}

.report-answer-row.is-scale {
  border-color: rgba(245, 198, 103, 0.26);
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96) 0%, rgba(255, 247, 236, 0.98) 100%);
}

.text-answer {
  min-height: 160px;
  border-radius: 22px;
  border: 1px solid rgba(31, 43, 56, 0.1);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.text-answer.single-line-answer {
  min-height: 56px;
}

.system-question-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(223, 245, 243, 0.54);
  border: 1px solid rgba(11, 106, 114, 0.12);
}

.error-text {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feedback-text {
  margin: 12px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
}

.feedback-text.correct,
.feedback-text.answered {
  color: var(--success);
}

.feedback-text.incorrect {
  color: var(--danger);
}

.experience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.experience-footnote {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.flow-actions {
  margin-top: 2px;
}

.flow-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.completion-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 250, 242, 0.98) 100%);
  border: 1px solid rgba(31, 43, 56, 0.08);
  box-shadow: 0 16px 30px rgba(31, 43, 56, 0.08);
}

.completion-card h3 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.04em;
}

.completion-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.completion-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.status-banner {
  margin: 16px 24px 0;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 600;
  line-height: 1.7;
}

.status-banner.success {
  color: var(--success);
  background: rgba(225, 246, 234, 0.92);
  border: 1px solid rgba(23, 123, 82, 0.16);
}

.status-banner.warning {
  color: var(--danger);
  background: rgba(255, 229, 223, 0.94);
  border: 1px solid rgba(164, 60, 55, 0.16);
}

.celebration-piece,
.firework-burst,
.balloon-drop {
  position: absolute;
}

.confetti-piece {
  left: var(--left);
  top: -24px;
  width: var(--width);
  height: var(--height);
  border-radius: var(--radius);
  background: var(--color);
  box-shadow: 0 8px 18px rgba(31, 43, 56, 0.12);
  opacity: 0;
  animation: confettiRain var(--duration) ease-out var(--delay) forwards;
}

.firework-burst {
  left: var(--x);
  top: var(--y);
  width: 12px;
  height: 12px;
}

.firework-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  margin-left: calc(var(--size) * -0.5);
  margin-top: calc(var(--size) * -0.5);
  border-radius: 999px;
  background: var(--color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--color) 78%, white);
  opacity: 0;
  animation: fireworkBurst 1.2s ease-out var(--delay) forwards;
  transform:
    rotate(var(--angle))
    translateX(0);
}

.balloon-drop {
  left: var(--left);
  top: -110px;
  width: 46px;
  height: 58px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.75), transparent 24%),
    var(--color);
  box-shadow: 0 14px 30px rgba(31, 43, 56, 0.16);
  opacity: 0;
  animation: balloonFall var(--duration) ease-in var(--delay) forwards;
}

.balloon-knot {
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%);
}

.balloon-string {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  width: 2px;
  height: 84px;
  background: rgba(31, 43, 56, 0.24);
  transform: translateX(-50%);
  border-radius: 999px;
}

.hidden {
  display: none !important;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
  align-items: start;
}

.report-sidebar,
.report-main {
  display: grid;
  gap: 18px;
  align-content: start;
}

.report-sidebar > .panel,
.report-main > .panel {
  height: fit-content;
}

.report-form-list,
.report-respondent-list,
.report-answer-list,
.report-summary-grid {
  display: grid;
  gap: 14px;
}

.report-form-card,
.report-summary-card,
.report-insight-card,
.report-detail-card,
.report-respondent-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(31, 43, 56, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 248, 241, 0.98) 100%);
  box-shadow: 0 16px 28px rgba(31, 43, 56, 0.08);
}

.report-form-card {
  text-align: left;
  width: 100%;
}

.report-form-card.is-active,
.report-respondent-card.is-active {
  border-color: rgba(11, 106, 114, 0.28);
  box-shadow: 0 18px 32px rgba(11, 106, 114, 0.14);
}

.report-form-card h3,
.report-summary-card h3,
.report-insight-card h3,
.report-detail-card h3,
.report-respondent-card h3 {
  margin: 0;
  font-family: var(--font-display);
}

.report-form-card p,
.report-summary-card p,
.report-insight-card p,
.report-detail-card p,
.report-respondent-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.report-meta .stat-chip {
  background: rgba(11, 106, 114, 0.08);
  color: var(--teal);
}

.report-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-summary-empty {
  grid-column: 1 / -1;
}

.report-summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-family: var(--font-display);
}

.report-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.report-insight-card {
  display: grid;
  gap: 14px;
  align-self: start;
}

.report-chart-shell,
.report-selected-shell {
  min-height: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}

.report-chart-list,
.report-ranking-list {
  display: grid;
  gap: 12px;
}

.report-chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 43, 56, 0.08);
}

.report-chart-copy {
  min-width: 0;
}

.report-chart-copy strong,
.report-ranking-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.report-chart-copy span,
.report-ranking-copy p,
.report-subsection-head p,
.report-respondent-date {
  color: var(--muted);
  font-size: 0.95rem;
}

.report-chart-track {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 43, 56, 0.08);
}

.report-chart-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(11, 106, 114, 0.88) 0%, rgba(238, 116, 55, 0.92) 100%);
  box-shadow: 0 8px 18px rgba(238, 116, 55, 0.18);
}

.report-chart-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.report-scale-gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.report-scale-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(31, 43, 56, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 248, 241, 0.98) 100%);
  box-shadow: 0 20px 34px rgba(31, 43, 56, 0.1);
}

.report-scale-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}

.report-scale-card-head strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
}

.report-scale-gauge {
  position: relative;
  width: min(100%, 320px);
  height: 212px;
  margin: 0 auto;
  overflow: hidden;
}

.report-scale-arc {
  position: absolute;
  inset: 0;
}

.report-scale-arc::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    conic-gradient(
      from 180deg,
      #ef4444 0deg 24deg,
      rgba(255, 255, 255, 0) 24deg 28deg,
      #f97316 28deg 52deg,
      rgba(255, 255, 255, 0) 52deg 56deg,
      #fb923c 56deg 80deg,
      rgba(255, 255, 255, 0) 80deg 84deg,
      #facc15 84deg 108deg,
      rgba(255, 255, 255, 0) 108deg 112deg,
      #b7d84d 112deg 136deg,
      rgba(255, 255, 255, 0) 136deg 140deg,
      #82ca62 140deg 160deg,
      rgba(255, 255, 255, 0) 160deg 164deg,
      #40bf60 164deg 180deg
    );
  box-shadow: inset 0 -10px 24px rgba(255, 255, 255, 0.22);
}

.report-scale-arc::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: 68%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 253, 250, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(31, 43, 56, 0.06),
    0 -8px 24px rgba(255, 255, 255, 0.86);
}

.report-scale-needle {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 44%;
  height: 18px;
  transform-origin: 0 50%;
  transform: rotate(var(--needle-angle, 0deg));
}

.report-scale-needle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #223453;
  clip-path: polygon(0 50%, 12% 8%, 100% 42%, 100% 58%, 12% 92%);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(34, 52, 83, 0.18);
}

.report-scale-needle::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #223453;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.92);
}

.report-scale-center {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 2px;
  text-align: center;
  width: 120px;
}

.report-scale-center strong {
  font-family: var(--font-display);
  font-size: 2.15rem;
  line-height: 1;
}

.report-scale-center span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.report-scale-legend {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: -4px;
}

.report-scale-legend span:last-child {
  text-align: right;
}

.report-rankings-grid {
  display: grid;
  gap: 18px;
  align-content: start;
  align-self: start;
}

.report-ranking-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 43, 56, 0.08);
}

.report-ranking-copy {
  min-width: 0;
}

.report-ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 106, 114, 0.1);
  color: var(--teal);
  font-weight: 800;
}

.stat-chip.stat-chip-warm {
  background: rgba(238, 116, 55, 0.12);
  color: var(--orange);
}

.report-response-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.report-response-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.report-subsection-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-subsection-head h3 {
  margin: 0;
  font-family: var(--font-display);
}

.report-respondent-list {
  max-height: min(72vh, 760px);
  overflow: auto;
  padding-right: 4px;
}

.report-respondent-card {
  text-align: left;
  width: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.report-respondent-card:hover,
.report-form-card:hover {
  transform: translateY(-2px);
}

.report-respondent-head,
.report-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: start;
}

.report-respondent-date {
  white-space: nowrap;
}

.report-detail-card {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.report-detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.report-detail-stat {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 43, 56, 0.08);
}

.report-detail-stat .section-kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.report-detail-stat strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.report-answer-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 43, 56, 0.08);
}

.report-answer-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  flex-wrap: wrap;
}

.report-answer-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-answer-row.is-correct {
  border-color: rgba(23, 123, 82, 0.2);
  background: rgba(232, 247, 238, 0.9);
}

.report-answer-row.is-incorrect {
  border-color: rgba(164, 60, 55, 0.18);
  background: rgba(255, 236, 232, 0.92);
}

.report-answer-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  overflow-wrap: anywhere;
}

.report-answer-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11, 106, 114, 0.1);
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.report-answer-status.is-correct {
  background: rgba(23, 123, 82, 0.12);
  color: #177b52;
}

.report-answer-status.is-incorrect {
  background: rgba(164, 60, 55, 0.12);
  color: #a43c37;
}

.report-answer-status.is-neutral {
  background: rgba(31, 43, 56, 0.08);
  color: var(--muted-strong);
}

.report-answer-value {
  font-weight: 600;
  line-height: 1.6;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.response-empty-state.compact {
  min-height: 0;
  padding: 18px;
}

.report-form-list > .builder-empty-state,
.report-summary-grid > .response-empty-state,
.report-chart-shell > .response-empty-state,
.report-ranking-list > .response-empty-state,
.report-respondent-list > .response-empty-state,
.report-selected-shell > .response-empty-state {
  min-height: 0;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(12px, -18px, 0) scale(1.05);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes choiceShine {
  0% {
    opacity: 0;
    transform: translateX(-130%);
  }

  25% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateX(135%);
  }
}

@keyframes sparkleBurst {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes indicatorPop {
  0% {
    transform: scale(0.9);
  }

  55% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes errorShake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

@keyframes confettiRain {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg) scale(0.72);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(calc((var(--left) - 50%) * 0.35), 110vh, 0) rotate(var(--rotation)) scale(1.08);
  }
}

@keyframes fireworkBurst {
  0% {
    opacity: 0;
    transform:
      rotate(var(--angle))
      translateX(0)
      scale(0.3);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      rotate(var(--angle))
      translateX(var(--distance))
      scale(1);
  }
}

@keyframes balloonFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -30px, 0) rotate(-3deg) scale(0.86);
  }

  12% {
    opacity: 1;
  }

  50% {
    transform: translate3d(var(--drift), 48vh, 0) rotate(4deg) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--drift) * -0.35), 112vh, 0) rotate(-6deg) scale(1.04);
  }
}

@media (max-width: 1080px) {
  .builder-grid {
    grid-template-columns: 1fr;
  }

  .report-layout,
  .report-summary-grid,
  .report-overview-grid,
  .report-response-grid,
  .report-detail-stats {
    grid-template-columns: 1fr;
  }

  .brand-lockup {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
  }

  .field-group.media-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-group.media-settings-grid > :first-child {
    grid-column: 1 / -1;
  }

  .question-config-grid {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.42fr);
  }

  .question-config-grid .switch-field {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .preview-panel {
    position: static;
  }

  .report-respondent-list {
    max-height: none;
  }
}

@media (min-width: 1180px) {
  .masthead h1 {
    white-space: normal;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 24px;
  }

  .masthead {
    align-items: start;
  }

  .brand-lockup {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand-logo {
    width: 108px;
  }

  .masthead h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.8rem);
    white-space: normal;
    text-wrap: balance;
  }

  .lead {
    max-width: 100%;
    font-size: 1rem;
  }

  .panel,
  .preview-panel,
  .response-shell {
    padding: 18px;
  }

  .form-experience {
    border-radius: 22px;
  }

  .experience-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .experience-heading {
    gap: 10px;
  }

  .experience-heading h2 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
    line-height: 1;
  }

  .experience-heading p {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .experience-stats {
    gap: 8px;
  }

  .experience-stats .stat-chip {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .experience-media {
    min-height: 0;
    height: clamp(240px, 68vw, 340px);
    border-radius: 20px;
  }

  .experience-media img {
    object-position: center top;
  }

  .question-type-actions,
  .share-actions,
  .response-toolbar,
  .flow-buttons,
  .report-actions {
    width: 100%;
  }

  .button,
  .chip-button {
    width: 100%;
    justify-content: center;
  }

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

  .field-group.two-up,
  .field-group.media-settings-grid,
  .question-config-grid,
  .builder-table-filters {
    grid-template-columns: 1fr;
  }

  .scale-editor-grid {
    grid-template-columns: 1fr;
  }

  .builder-table-filters {
    padding: 16px;
    gap: 12px;
  }

  .builder-table-filters .button {
    width: 100%;
  }

  .builder-form-table {
    min-width: 100%;
  }

  .builder-form-table thead {
    display: none;
  }

  .builder-form-table,
  .builder-form-table tbody,
  .builder-form-table tr,
  .builder-form-table td {
    display: block;
    width: 100%;
  }

  .builder-form-table-shell {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .builder-form-table tbody {
    display: grid;
    gap: 14px;
  }

  .builder-form-table tbody tr {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(31, 43, 56, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 248, 241, 0.98) 100%);
    box-shadow: 0 16px 28px rgba(31, 43, 56, 0.08);
  }

  .builder-form-table td {
    padding: 0;
    border: 0;
  }

  .builder-form-table td + td {
    margin-top: 12px;
  }

  .builder-form-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    font-weight: 800;
  }

  .builder-table-edit {
    width: 100%;
  }

  .builder-table-actions {
    flex-direction: column;
  }

  .builder-table-delete {
    width: 100%;
  }

  .flow-actions {
    align-items: stretch;
  }

  .flow-buttons .button {
    width: 100%;
  }

  .report-chart-row,
  .report-ranking-item {
    grid-template-columns: 1fr;
  }

  .report-subsection-head,
  .report-respondent-head,
  .report-detail-head {
    align-items: stretch;
  }

  .report-respondent-date,
  .report-chart-value {
    white-space: normal;
  }

  .question-shell {
    padding: 18px;
    border-radius: 20px;
  }

  .scale-answer-grid,
  .scale-editor-range {
    gap: 6px;
  }

  .scale-choice {
    min-height: 52px;
    border-radius: 14px;
  }

  .report-scale-gauge-grid {
    grid-template-columns: 1fr;
  }

  .report-scale-gauge {
    width: min(100%, 280px);
    height: 164px;
  }

  .question-title {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .question-chip {
    min-height: 30px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .choice-card {
    padding: 14px 16px;
  }

  .option-index {
    width: 100%;
    border-radius: 12px;
  }

  .experience-body,
  .experience-progress {
    padding-left: 18px;
    padding-right: 18px;
  }

  .experience-progress {
    padding-top: 14px;
    gap: 8px;
  }

  .progress-copy {
    font-size: 0.88rem;
  }

  .experience-actions {
    align-items: stretch;
  }

  .experience-footnote {
    width: 100%;
    font-size: 0.94rem;
  }

  .status-banner {
    margin-left: 18px;
    margin-right: 18px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: calc(100% - 16px);
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .panel,
  .preview-panel,
  .response-shell {
    padding: 14px;
    border-radius: 24px;
  }

  .brand-logo {
    width: 96px;
  }

  .masthead h1 {
    font-size: clamp(1.85rem, 11vw, 2.45rem);
    line-height: 1.05;
  }

  .lead {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .form-experience {
    border-radius: 20px;
  }

  .experience-hero {
    padding: 16px;
    gap: 14px;
  }

  .experience-heading h2 {
    font-size: clamp(1.8rem, 12vw, 2.3rem);
  }

  .experience-heading p {
    font-size: 0.94rem;
  }

  .experience-media {
    height: clamp(220px, 74vw, 300px);
    border-radius: 18px;
  }

  .experience-body,
  .experience-progress {
    padding-left: 14px;
    padding-right: 14px;
  }

  .status-banner {
    margin-left: 14px;
    margin-right: 14px;
    padding: 14px 16px;
  }

  .question-shell {
    padding: 16px;
  }

  .scale-answer-labels,
  .scale-editor-legend,
  .report-scale-legend {
    font-size: 0.74rem;
  }

  .scale-answer-grid,
  .scale-editor-range {
    gap: 4px;
  }

  .scale-editor-step,
  .scale-choice {
    min-height: 46px;
    border-radius: 12px;
  }

  .scale-choice-value,
  .scale-editor-step {
    font-size: 0.82rem;
  }

  .report-scale-gauge {
    width: min(100%, 240px);
    height: 144px;
  }

  .report-scale-center strong {
    font-size: 1.72rem;
  }

  .question-meta {
    gap: 8px;
  }

  .question-chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.67rem;
  }

  .question-title {
    font-size: 1.08rem;
  }

  .choice-card {
    gap: 12px;
    padding: 13px 14px;
    border-radius: 18px;
  }

}
