@import "https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap";

/* public/styles/main.css */
:root {
  --primary: #6065f0;
  --primary-glow: #6065f04d;
  --primary-hover: #3238ec;
  --bg: #0f1729;
  --card-bg: #141f38b3;
  --text: #f8fafc;
  --text-muted: #8fa2bc;
  --border: #f8fafc1a;
  --accent: #16da92;
  --error: #ef4343;
  --radius: 1.25rem;
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
  --nav-bg: #0b111ed9;
  --nav-border: var(--border);
}

[x-cloak] {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Outfit, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  background-image: radial-gradient(circle at 10% 20%, #6065f00d 0%, #0000 40%), radial-gradient(circle at 90% 80%, #16da9208 0%, #0000 40%);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

h1, h2, h3 {
  letter-spacing: -.02em;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.glass {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.glass:hover {
  background: #f8fafc0d;
  box-shadow: 0 8px 32px #00000026;
}

.breadcrumbs {
  display: flex;
  color: var(--text-muted);
  white-space: nowrap;
  align-items:  center;
  gap: .75rem;
  font-size: .85rem;
}

.breadcrumb-item {
  cursor: pointer;
  transition: color .2s;
}

.breadcrumb-item:hover {
  color: var(--primary);
}

.breadcrumb-active {
  color: var(--text);
  cursor: default;
  font-weight: 500;
}

.breadcrumb-separator {
  opacity: .3;
  font-size: .75rem;
}

.btn {
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  position: relative;
  overflow: hidden;
  border: 1px solid #0000;
  border-radius: 1rem;
  justify-content: center;
  align-items:  center;
  gap: .6rem;
  padding: .875rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px 0 var(--primary-glow);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: #f8fafc08;
}

.btn-outline:hover {
  background: #f8fafc14;
  border-color: #f8fafc4d;
  transform: translateY(-1px);
}

.btn-outline.active {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-danger {
  background: var(--error);
  color: #fff;
  box-shadow: 0 4px 14px #ef434333;
}

.btn-danger:hover {
  background: #eb1414;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #ef434366;
}

input, select, textarea {
  border: 1px solid var(--border);
  color: #fff;
  transition: var(--transition);
  outline: none;
  background: #0003;
  border-radius: .6rem;
  padding: .8rem 1rem;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.animate-fade {
  animation: fadeIn .6s ease-out forwards;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2.5rem !important;
  }
}

.badge-live {
  color: var(--accent);
  text-transform: uppercase;
  background: #16da921a;
  border: 1px solid #16da924d;
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .7rem;
  font-weight: 800;
}

.badge-draft {
  color: var(--text-muted);
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: #8fa2bc1a;
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .7rem;
  font-weight: 800;
}

.modal-overlay {
  position: fixed;
  z-index: 5000;
  display: flex;
  background: #070a13eb;
  justify-content: center;
  align-items:  center;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
}

.modal {
  background: var(--bg);
  border: 1px solid var(--primary-glow);
  position: relative;
  animation: modalScale .3s cubic-bezier(.34, 1.56, .64, 1);
  border-radius: 2.5rem;
  width: 100%;
  max-width: 480px;
  padding: 3rem;
  box-shadow: 0 40px 100px -20px #0009;
}

@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(.9)translateY(10px);
  }

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

.confirm-modal {
  text-align: center;
}

.confirm-modal-icon {
  display: flex;
  border-radius: 1.5rem;
  justify-content: center;
  align-items:  center;
  width: 72px;
  height: 72px;
  margin: 0 auto 2rem;
}

.confirm-modal-icon--danger {
  background: #ef43431a;
}

.confirm-modal-icon--primary {
  background: var(--primary-glow);
}

.icon-danger {
  color: var(--error);
}

.icon-primary {
  color: var(--primary);
}

.icon-accent {
  color: var(--accent);
}

.toast-container {
  position: fixed;
  z-index: 9000;
  display: flex;
  pointer-events: none;
  flex-direction: column;
  gap: 1rem;
  bottom: 2.5rem;
  right: 2.5rem;
}

.toast {
  pointer-events: auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  will-change: transform, opacity;
  animation: toastSlide .4s cubic-bezier(.16, 1, .3, 1);
  border-radius: 1.25rem;
  align-items:  center;
  gap: 1.25rem;
  min-width: 320px;
  padding: 1.25rem 2rem;
  box-shadow: 0 15px 45px -10px #0006;
}

.toast-success {
  border-color: var(--accent);
}

.toast-error {
  border-color: var(--error);
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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

.action-icon {
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-flex;
  text-decoration: none;
  border: 1px solid #0000;
  border-radius: .6rem;
  justify-content: center;
  align-items:  center;
  padding: .4rem;
}

.action-icon:hover {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary-glow);
}

.action-delete:hover {
  color: var(--error);
  background: #ef43431a;
}

.action-pdf:hover {
  background: var(--primary-glow);
  color: var(--primary);
}

.admin-nav {
  display: flex;
  position: sticky;
  z-index: 1000;
  border-radius: 1.5rem;
  justify-content: space-between;
  align-items:  center;
  margin: 1rem;
  padding: 1rem 2.5rem;
  top: 1rem;
  box-shadow: 0 10px 50px -10px #00000080;
}

.admin-nav-brand {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.admin-nav-icon {
  color: var(--primary);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.admin-nav-title {
  letter-spacing: .18em;
  color: var(--text);
  font-size: .9rem;
  font-weight: 900;
}

.admin-nav-actions {
  display: flex;
  gap: 1rem;
}

.builder-nav {
  display: flex;
  position: sticky;
  z-index: 1000;
  border-radius: 1.5rem;
  justify-content: space-between;
  align-items:  center;
  margin: 1rem;
  padding: 1rem 2.5rem;
  top: 1rem;
  box-shadow: 0 10px 50px -10px #00000080;
}

.builder-nav-left {
  display: flex;
  align-items:  center;
  gap: 1.5rem;
}

.builder-nav-right {
  display: flex;
  gap: 1rem;
}

.nav-title-input {
  flex: 1;
  width: auto;
  min-width: 100px;
}

.nav-sep {
  background: var(--border);
  width: 1px;
  height: 24px;
}

.btn-icon {
  border-radius: .6rem;
  padding: .5rem;
}

.builder-layout {
  display: flex;
  align-items:  flex-start;
  gap: 3rem;
}

.builder-sidebar {
  position: sticky;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  order: 2;
  width: 300px;
  height: calc(100vh - 8rem);
  padding: 1.5rem;
  top: 7rem;
}

.builder-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  order: 1;
  gap: 2rem;
}

.sb-group-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: .75rem;
  font-size: .68rem;
  font-weight: 800;
}

.sb-btn-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.sb-divider {
  border-top: 1px solid var(--border);
  margin-bottom: .75rem;
  padding-top: 1rem;
}

.sb-add-btn {
  justify-content: flex-start;
  padding: .65rem 1rem;
  font-size: .88rem;
}

.sb-stat {
  color: var(--primary);
  font-size: 1.75rem;
  font-weight: 800;
}

.sb-stat-label {
  color: var(--text-muted);
  margin-top: .1rem;
  font-size: .78rem;
}

.question-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.q-card-header {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  margin-bottom: 2rem;
}

.q-card-header-left {
  display: flex;
  align-items:  center;
  gap: 1.5rem;
}

.q-card-header-right {
  display: flex;
  gap: .5rem;
}

.q-type-icon {
  background: var(--primary-glow);
  display: flex;
  color: var(--primary);
  border-radius: .6rem;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
}

.q-type-label {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 800;
}

.q-position-label {
  color: var(--text-muted);
  font-size: .8rem;
}

.q-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.q-label-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.q-label-heading {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
}

.q-label-input {
  width: 100%;
  font-size: 1.25rem;
}

.q-options-panel {
  border: 1px solid var(--border);
  background: #ffffff05;
  border-radius: 1rem;
  padding: 1.5rem;
}

.q-option-row {
  display: flex;
  align-items:  center;
  gap: 1rem;
}

.q-radio-dot {
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.q-option-input {
  background: none;
  flex: 1;
}

.q-remove-icon {
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  width: 16px;
}

.q-add-btn {
  border-style: dashed;
  margin-top: .5rem;
}

.q-star-preview {
  display: flex;
  color: #fbbf24;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
}

.q-scale-row {
  display: flex;
  overflow-x: auto;
  justify-content: space-between;
  gap: .5rem;
  padding: 1rem 0;
}

.q-scale-cell {
  border: 1px solid var(--border);
  display: flex;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 40px;
  height: 40px;
  font-weight: 700;
}

.q-scale-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.q-scale-label {
  color: var(--text-muted);
  display: block;
  margin-bottom: .25rem;
  font-size: .75rem;
}

.q-scale-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.q-empty-state {
  text-align: center;
  border: 2px dashed var(--border);
  color: var(--text-muted);
  border-radius: 2rem;
  padding: 4rem;
}

.q-empty-icon {
  color: var(--border);
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

.drag-handle {
  cursor: grab;
  color: var(--text-muted);
  opacity: .5;
  padding: .5rem;
  transition: all .2s;
}

.drag-handle:hover {
  opacity: 1;
}

.q-likert-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}

.q-likert-preset-btn {
  padding: .35rem .8rem;
  font-size: .78rem;
}

.q-likert-row {
  display: flex;
  align-items:  center;
  gap: 1rem;
}

.q-likert-num {
  border: 2px solid var(--border);
  display: flex;
  color: var(--text-muted);
  border-radius: 4px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
  font-size: .7rem;
  font-weight: 700;
}

.q-nps-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem;
  margin-bottom: 1.5rem;
}

.q-nps-cell {
  border: 1px solid var(--border);
  display: flex;
  border-radius: 10px;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 44px;
  height: 44px;
  font-size: .95rem;
  font-weight: 700;
}

.q-nps-cell--detractor {
  color: #f15b5b;
  border-color: #ef434366;
}

.q-nps-cell--passive {
  color: #fab338;
  border-color: #f9a91f66;
}

.q-nps-cell--promoter {
  color: #17e89b;
  border-color: #16da9266;
}

.q-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.q-sub-label {
  color: var(--text-muted);
  display: block;
  margin-bottom: .25rem;
  font-size: .75rem;
}

.q-dicho-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.q-dicho-row {
  display: flex;
  align-items:  center;
  gap: 1rem;
}

.q-dicho-badge {
  border: 2px solid var(--border);
  display: flex;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
  font-size: .75rem;
  font-weight: 800;
}

.q-dicho-input {
  background: none;
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
}

.q-rank-hint {
  color: var(--text-muted);
  margin-bottom: .75rem;
  font-size: .82rem;
}

.q-rank-item {
  display: flex;
  border: 1px solid var(--border);
  background: #f8fafc05;
  border-radius: .6rem;
  align-items:  center;
  gap: 1rem;
  padding: .75rem 1rem;
}

.q-rank-badge {
  background: var(--primary-glow);
  display: flex;
  color: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 24px;
  height: 24px;
  font-size: .75rem;
  font-weight: 800;
}

.q-matrix-section-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: .75rem;
  font-size: .78rem;
  font-weight: 700;
}

.q-matrix-row-item {
  display: flex;
  align-items:  center;
  gap: 1rem;
  margin-bottom: .5rem;
}

.q-matrix-row-dot {
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}

.q-matrix-cols {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .75rem;
}

.q-matrix-col-chip {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: .6rem;
  align-items:  center;
  gap: .5rem;
  padding: .4rem .75rem;
}

.q-matrix-col-input {
  background: none;
  width: 90px;
  font-size: .85rem;
}

.q-matrix-preview {
  overflow-x: auto;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.q-matrix-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .8rem;
}

.q-matrix-th {
  text-align: center;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: .5rem;
  font-weight: 600;
}

.q-matrix-th--left {
  text-align: left;
}

.q-matrix-td {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  padding: .5rem;
}

.q-matrix-td--center {
  text-align: center;
}

.q-matrix-radio {
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  margin: 0 auto;
}

.q-demo-hint {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: .82rem;
}

.q-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.q-demo-field {
  display: flex;
  border: 1px solid var(--border);
  cursor: pointer;
  background: #f8fafc05;
  border-radius: .6rem;
  align-items:  center;
  gap: .75rem;
  padding: .75rem 1rem;
}

.q-demo-field-label {
  text-transform: capitalize;
  font-size: .85rem;
  font-weight: 500;
}

.q-upload-info {
  display: flex;
  color: var(--text-muted);
  background: #6065f00f;
  border: 1px solid #6065f033;
  border-radius: .75rem;
  align-items:  center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  font-size: .88rem;
}

.upload-zone {
  border: 2px dashed var(--border);
  text-align: center;
  cursor: pointer;
  background: #ffffff03;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  transition: all .2s;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.upload-zone-icon {
  color: var(--text-muted);
  opacity: .6;
  width: 40px;
  height: 40px;
  margin: 0 auto .75rem;
}

.upload-zone-text {
  color: var(--text-muted);
  margin-bottom: .25rem;
  font-size: .9rem;
}

.upload-zone-hint {
  color: var(--text-muted);
  opacity: .7;
  font-size: .78rem;
}

.upload-progress {
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
  height: 4px;
  margin-top: 1rem;
}

.upload-progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  height: 100%;
  transition: width .3s;
}

.upload-done {
  display: flex;
  background: #16da9214;
  border: 1px solid #16da9240;
  border-radius: .75rem;
  align-items:  center;
  gap: .75rem;
  padding: .875rem 1rem;
  font-size: .88rem;
}

.upload-done-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.upload-error {
  color: var(--error);
  margin-top: .5rem;
  font-size: .82rem;
}

.q-img-item {
  display: flex;
  border: 1px solid var(--border);
  background: #f8fafc05;
  border-radius: .6rem;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .75rem;
  padding: 1rem;
}

.q-img-item-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: .25rem;
}

.q-img-item-label {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
}

.q-img-preview {
  object-fit: cover;
  border-radius: .5rem;
  width: 100%;
  height: 100px;
  margin-top: .5rem;
}

@media (max-width: 1024px) {
  .builder-layout {
    flex-direction: column;
  }

  .builder-sidebar {
    position: relative;
    border: 1px solid var(--border);
    width: 100%;
    height: auto;
    top: 0;
  }

  .q-demo-grid {
    grid-template-columns: 1fr;
  }
}

.limit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.limit-modal-title-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.limit-modal-title-row {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.limit-modal-icon {
  background: var(--primary-glow);
  display: flex;
  color: var(--primary);
  border-radius: .6rem;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 40px;
  height: 40px;
}

.limit-modal-heading {
  font-size: 1.5rem;
  font-weight: 800;
}

.limit-modal-subtitle {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.4;
}

.modal-close-btn {
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  transition: var(--transition);
  background: none;
  border: none;
  border-radius: .5rem;
  flex-shrink: 0;
  align-items:  center;
  padding: .25rem;
}

.modal-close-btn:hover {
  color: var(--text);
  background: #f8fafc14;
}

.limit-tenant-info {
  border: 1px solid var(--border);
  background: #f8fafc08;
  border-radius: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
}

.limit-tenant-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: .4rem;
  font-size: .7rem;
  font-weight: 700;
}

.limit-tenant-name {
  font-size: 1rem;
  font-weight: 700;
}

.limit-tenant-email {
  color: var(--text-muted);
  margin-top: .15rem;
  font-size: .85rem;
}

.limit-field-label {
  display: block;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
  font-size: .75rem;
  font-weight: 700;
}

.limit-stepper {
  display: flex;
  align-items:  center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.limit-stepper-btn {
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  transition: var(--transition);
  background: #f8fafc0a;
  border-radius: .6rem;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 44px;
  height: 44px;
}

.limit-stepper-btn:hover:not(:disabled) {
  background: #f8fafc1a;
  border-color: #f8fafc4d;
}

.limit-stepper-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.limit-stepper-input {
  text-align: center;
  letter-spacing: -.02em;
  border: 1px solid var(--border);
  background: #f8fafc0a;
  border-radius: .6rem;
  flex: 1;
  padding: .5rem;
  font-size: 2rem;
  font-weight: 800;
}

.limit-modal-actions {
  display: flex;
  gap: 1rem;
}

.limit-modal-actions .btn, .confirm-modal-actions .btn {
  flex: 1;
}

.modal--sm {
  max-width: 420px;
}

.modal-overlay-raised {
  z-index: 9999;
}

[data-lucide], .lucide {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}

.icon-xs, .icon-sm {
  width: 14px;
  min-width: 14px;
  height: 14px;
}

.icon-md {
  width: 16px;
  min-width: 16px;
  height: 16px;
}

.icon-lg {
  width: 20px;
  min-width: 20px;
  height: 20px;
}

.icon-xl {
  width: 40px;
  min-width: 40px;
  height: 40px;
}

.icon-sm-action {
  width: 18px;
  min-width: 18px;
  height: 18px;
}

.setup-modal {
  max-width: 500px;
  padding: 4rem 3rem;
}

.setup-header {
  text-align: center;
  margin-bottom: 3rem;
}

.setup-icon-wrap {
  background: var(--primary-glow);
  display: flex;
  border-radius: 2rem;
  justify-content: center;
  align-items:  center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.setup-title {
  margin-bottom: .5rem;
  font-size: 2.5rem;
}

.setup-subtitle {
  color: var(--text-muted);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-label {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
}

.form-divider {
  background: var(--border);
  height: 1px;
  margin: .5rem 0;
}

.form-error {
  color: var(--error);
  text-align: center;
  font-size: .9rem;
}

.input-readonly {
  color: var(--text-muted);
  cursor: not-allowed;
  background: #f8fafc0d;
}

.input-otp {
  text-align: center;
  letter-spacing: .5em;
  font-size: 1.5rem;
  font-weight: 800;
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
}

.confirm-modal-title {
  margin-bottom: 1rem;
  font-size: 1.85rem;
  font-weight: 800;
}

.confirm-modal-body {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 1.25rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 2rem;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
}

.modal-close {
  cursor: pointer;
  color: var(--text-muted);
  transition: color .2s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-centered {
  text-align: center;
}

.modal-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.modal-error {
  color: var(--error);
  margin-bottom: 1rem;
  font-size: .9rem;
}

.modal-submit {
  width: 100%;
  margin-top: 1rem;
}

.otp-input {
  text-align: center;
  letter-spacing: .5em;
  font-size: 2rem;
  font-weight: 800;
}

.modal-footer {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-size: .9rem;
}

.modal-footer-link {
  color: var(--primary);
}

.modal-title--spaced {
  margin-bottom: 1rem;
}

.site-nav {
  position: sticky;
  z-index: 1000;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--nav-border);
  overflow: hidden;
  border-radius: 1.5rem;
  margin: 1rem;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  top: 1rem;
  box-shadow: 0 10px 40px -10px #00000080;
}

.site-nav.menu-open {
  background: #0b111efa;
}

.nav-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items:  center;
  gap: 2rem;
  max-width: 1400px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.nav-brand {
  display: flex;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
  align-items:  center;
  gap: 1rem;
}

.nav-logo {
  white-space: nowrap;
  font-size: 1.25rem;
  font-weight: 800;
}

.nav-desktop-content {
  display: flex;
  flex: 1;
  align-items:  center;
  min-width: 0;
}

.desktop-only {
  display: flex;
}

.nav-mobile-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
  color: var(--text);
  background: none;
  border: none;
  justify-content: center;
  align-items:  center;
  padding: .5rem;
}

@media (max-width: 1024px) {
  .nav-desktop-content {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

  .site-nav {
    margin: .5rem !important;
  }
}

.nav-links {
  display: flex;
  align-items:  center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: .5rem 0;
  transition: all .3s;
  font-size: .95rem;
  font-weight: 500;
}

.nav-link:after {
  content: "";
  position: absolute;
  background: var(--primary);
  width: 0;
  height: 2px;
  transition: width .3s;
  bottom: 0;
  left: 0;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover:after {
  width: 100%;
}

.nav-spacer {
  flex: 1;
}

.nav-spacer--sm {
  flex: none;
  width: 1rem;
}

.nav-actions {
  display: flex;
  align-items:  center;
  gap: 1.5rem;
}

.nav-btn-group {
  display: flex;
  align-items:  center;
  gap: .75rem;
}

.nav-user-info {
  display: flex;
  flex-direction: column;
  align-items:  flex-end;
  margin-right: .5rem;
}

.nav-username {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
}

.nav-user-badge {
  color: var(--primary);
  letter-spacing: .05em;
  font-size: .65rem;
  font-weight: 800;
}

.nav-admin-pill {
  border-color: var(--error) !important;
  color: var(--error) !important;
  gap: .4rem !important;
}

.nav-admin-pill:hover {
  background: #ef43431a !important;
}

.btn-icon-sm {
  display: flex;
  justify-content: center;
  align-items:  center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
}

.hamburger-box {
  position: relative;
  width: 24px;
  height: 18px;
}

.hamburger-inner {
  display: block;
  margin-top: -1px;
  top: 50%;
}

.hamburger-inner, .hamburger-inner:before, .hamburger-inner:after {
  background-color: var(--text);
  position: absolute;
  border-radius: 4px;
  width: 24px;
  height: 2px;
  transition-property: transform;
  transition-duration: .3s;
  transition-timing-function: ease;
}

.hamburger-inner:before, .hamburger-inner:after {
  content: "";
  display: block;
}

.hamburger-inner:before {
  top: -8px;
}

.hamburger-inner:after {
  bottom: -8px;
}

.hamburger-inner.active {
  transform: rotate(45deg);
}

.hamburger-inner.active:before {
  opacity: 0;
  top: 0;
}

.hamburger-inner.active:after {
  bottom: 0;
  transform: rotate(-90deg);
}

.nav-mobile-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}

[x-show].nav-mobile-menu {
  overflow-y: auto;
  max-height: 90vh;
}

.nav-mobile-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 1.75rem 2.5rem;
}

.nav-mobile-section {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.nav-mobile-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-mobile-divider {
  background: var(--border);
  height: 1px;
  margin: .5rem 0;
}

.nav-mobile-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile-user-card {
  display: flex;
  border: 1px solid var(--border);
  background: #f8fafc0a;
  border-radius: 1.25rem;
  align-items:  center;
  gap: 1.25rem;
  padding: 1.25rem;
}

.user-avatar {
  background: var(--primary);
  color: #fff;
  display: flex;
  border-radius: 1rem;
  justify-content: center;
  align-items:  center;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  font-weight: 800;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.user-role {
  color: var(--primary);
  letter-spacing: .1em;
  font-size: .75rem;
  font-weight: 800;
}

.nav-mobile-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nav-mobile-grid-link {
  border: 1px solid var(--border);
  display: flex;
  color: var(--text-muted);
  text-decoration: none;
  background: #f8fafc08;
  border-radius: 1rem;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  transition: all .3s;
  font-size: .9rem;
  font-weight: 600;
}

.nav-mobile-grid-link i {
  color: var(--primary);
  width: 20px;
  height: 20px;
}

.nav-mobile-grid-link.admin {
  border-color: #ef434333;
}

.nav-mobile-grid-link.admin i {
  color: var(--error);
}

.nav-mobile-grid-link.danger {
  border-color: #ef43431a;
}

.nav-mobile-grid-link.danger i {
  color: var(--error);
  opacity: .7;
}

@media (max-width: 480px) {
  .nav-container {
    padding: .8rem 1.25rem;
  }

  .nav-mobile-links-grid {
    grid-template-columns: 1fr;
  }

  .nav-logo {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .modal {
    border-radius: 1.5rem;
    max-width: calc(100vw - 2rem);
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .toast-container {
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
  }

  .toast {
    min-width: unset;
    width: 100%;
  }

  .builder-nav {
    flex-wrap: wrap;
    gap: .75rem;
    margin: .5rem !important;
    padding: .8rem 1rem !important;
  }

  .builder-nav-left {
    flex: 1;
    min-width: 0;
  }

  .builder-nav-right {
    width: 100%;
  }

  .builder-nav-right .btn {
    flex: 1;
    justify-content: center;
  }

  .admin-nav {
    flex-wrap: wrap;
    gap: .75rem;
    margin: .5rem !important;
    padding: .8rem 1rem !important;
  }

  .admin-nav-title {
    font-size: .78rem;
  }

  .admin-nav-actions {
    width: 100%;
  }

  .admin-nav-actions .btn {
    flex: 1;
    justify-content: center;
  }

  th {
    padding: 1rem .75rem;
    font-size: .7rem;
  }

  td {
    padding: 1rem .75rem;
  }

  .dashboard-header {
    gap: 1.25rem;
    flex-direction: column !important;
    align-items:  flex-start !important;
  }

  .stat-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .nav-user-label, .nav-btn-text, .admin-nav-user, .builder-nav-user {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem .75rem;
  }

  .nav-title-input {
    width: 140px !important;
    font-size: .95rem !important;
  }

  .demo-grid {
    grid-template-columns: 1fr !important;
  }

  .nps-grid {
    gap: .15rem;
  }

  .nps-btn {
    border-radius: 6px !important;
    width: 28px !important;
    height: 36px !important;
    font-size: .8rem !important;
  }

  .image-grid {
    justify-content: center;
  }

  .img-thumb, .img-placeholder {
    max-width: 300px;
    width: 100% !important;
  }

  .admin-header h1 {
    font-size: 2.5rem !important;
  }

  .steps-grid:before {
    display: none;
  }

  .features-grid, .steps-grid, .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

.nav-org-logo {
  object-fit: contain;
  object-position: left center;
  display: block;
  border-radius: 6px;
  width: auto;
  max-width: 140px;
  height: 36px;
}

.profile-modal {
  overflow-y: auto;
  max-width: 520px;
  max-height: 90vh;
}

.profile-section-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin: 1.5rem 0 1rem;
  font-size: .75rem;
  font-weight: 700;
}

.profile-section-label:first-of-type {
  margin-top: 0;
}

.profile-logo-row {
  display: flex;
  justify-content: center;
  align-items:  center;
  min-height: 60px;
  margin-bottom: 1.25rem;
}

.profile-logo-preview {
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--border);
  display: block;
  background: #f8fafc0a;
  border-radius: 8px;
  width: auto;
  max-width: 220px;
  height: 56px;
  padding: 6px;
}

.profile-logo-placeholder {
  font-size: 1.5rem;
  font-weight: 800;
}

.profile-verification-row {
  display: flex;
  border: 1px solid var(--border);
  background: #f8fafc08;
  border-radius: .6rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
}

.profile-verify-item {
  display: flex;
  align-items:  center;
  gap: .5rem;
  font-size: .9rem;
}

.profile-verify-item i {
  width: 18px;
  height: 18px;
}

.profile-verify-status {
  font-size: .8rem;
  font-weight: 600;
}

.profile-verify-ok {
  color: var(--accent);
}

.profile-verify-warn {
  color: var(--error);
}

.profile-save-hint {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: .8rem;
}

.survey-org-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.survey-org-logo {
  object-fit: contain;
  object-position: left center;
  display: block;
  border-radius: 8px;
  width: auto;
  max-width: 200px;
  height: 56px;
}

.btn-sm {
  border-radius: .6rem;
  padding: .5rem 1rem;
  font-size: .85rem;
}

.nav-row--wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.report-main {
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items:  flex-start;
  margin-bottom: 3rem;
}

.report-title {
  margin-bottom: .5rem;
  font-size: 2.5rem;
}

.report-meta {
  color: var(--text-muted);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.stat-value {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
}

.stat-label {
  color: var(--text-muted);
  margin-top: .25rem;
  font-size: .85rem;
}

.report-trend-panel {
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
}

.report-trend-header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 1.5rem;
}

.report-section-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.report-section-subtitle {
  color: var(--text-muted);
  font-size: .8rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all .3s;
}

.chart-header {
  margin-bottom: 1.5rem;
}

.chart-title {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
}

.chart-type {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .75rem;
}

.chart-container {
  position: relative;
  width: 100%;
  min-height: 80px;
}

.d3-fill {
  width: 100%;
  height: 100%;
}

.stat-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  height: 100%;
}

.stat-stats-row {
  display: flex;
  justify-content: space-between;
  align-items:  center;
}

.stat-big-value {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
}

.stat-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-mini-card {
  background: #f8fafc08;
  border-radius: 1rem;
  padding: 1rem;
}

.stat-mini-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: .7rem;
}

.stat-mini-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.answer-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.answer-item {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: #f8fafc08;
  border-radius: .6rem;
  padding: 1rem;
  font-size: .9rem;
}

.empty-text {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
  font-style: italic;
}

.report-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: .75rem;
}

.sync-btn {
  display: flex;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  background: #f8fafc0d;
  border-radius: .6rem;
  align-items:  center;
  gap: .5rem;
  padding: .5rem 1rem;
  transition: all .2s;
  font-size: .85rem;
}

.sync-btn:hover {
  color: var(--text);
  background: #f8fafc1a;
}

.pdf-btn {
  display: flex;
  border: 1px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  background: #6065f01f;
  border-radius: .6rem;
  align-items:  center;
  gap: .5rem;
  padding: .5rem 1rem;
  transition: all .2s;
  font-size: .85rem;
  font-weight: 600;
}

.pdf-btn:hover {
  background: #6065f038;
}

.pdf-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.csv-btn {
  display: flex;
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  background: #16da921a;
  border-radius: .6rem;
  align-items:  center;
  gap: .5rem;
  padding: .5rem 1rem;
  transition: all .2s;
  font-size: .85rem;
  font-weight: 600;
}

.csv-btn:hover {
  background: #16da9233;
}

.csv-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.chart-header-top {
  display: flex;
  align-items:  center;
  gap: .6rem;
  margin-bottom: .4rem;
}

.chart-question-num {
  color: var(--primary);
  letter-spacing: .03em;
  background: #6065f01f;
  border: 1px solid #6065f04d;
  border-radius: .4rem;
  padding: .1rem .45rem;
  font-size: .75rem;
  font-weight: 800;
}

.syncing {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

.d3-tooltip {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--primary);
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  border-radius: .5rem;
  padding: .5rem 1rem;
  transition: opacity .2s;
  font-size: .8rem;
  box-shadow: 0 10px 30px #00000080;
}

.report-loading {
  text-align: center;
  padding: 6rem 0;
}

.report-loading-icon {
  display: inline-block;
  margin-bottom: 1rem;
}

.report-loading-text {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.report-error-panel {
  text-align: center;
  border-color: var(--error);
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem;
}

.report-error-icon {
  color: var(--error);
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

.report-error-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.report-error-body {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.dist-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-top: 1rem;
}

.dist-row {
  display: flex;
  align-items:  center;
  gap: .6rem;
  font-size: .82rem;
}

.dist-label {
  text-align: right;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 2rem;
  font-weight: 600;
}

.dist-bar-wrap {
  overflow: hidden;
  background: #f8fafc0d;
  border-radius: 4px;
  flex: 1;
  height: 8px;
}

.dist-bar {
  background: var(--primary);
  opacity: .7;
  border-radius: 4px;
  height: 100%;
}

.dist-count {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 1.5rem;
  font-size: .75rem;
}

.nps-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: .5rem 0;
}

.nps-score-display {
  text-align: center;
}

.nps-score-label {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .5rem;
  font-size: .7rem;
  font-weight: 700;
}

.nps-big-score {
  color: var(--primary);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.nps-score-sub {
  color: var(--text-muted);
  margin-top: .25rem;
  font-size: .8rem;
}

.nps-segments {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .75rem;
}

.nps-segment {
  text-align: center;
  border-radius: 1rem;
  padding: 1rem .75rem;
}

.nps-segment--detractor {
  background: #ef434314;
  border: 1px solid #ef434333;
}

.nps-segment--passive {
  background: #f9a91f14;
  border: 1px solid #f9a91f33;
}

.nps-segment--promoter {
  background: #16da9214;
  border: 1px solid #16da9233;
}

.nps-segment-value {
  font-size: 1.75rem;
  font-weight: 800;
}

.nps-segment--detractor .nps-segment-value {
  color: #f15b5b;
}

.nps-segment--passive .nps-segment-value {
  color: #fab338;
}

.nps-segment--promoter .nps-segment-value {
  color: var(--accent);
}

.nps-segment-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: .25rem 0;
  font-size: .7rem;
  font-weight: 700;
}

.nps-segment-pct {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
}

.matrix-report {
  overflow-x: auto;
}

.matrix-report-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .82rem;
}

.matrix-report-table th {
  text-align: center;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: .6rem .75rem;
  font-size: .75rem;
  font-weight: 600;
}

.matrix-report-table th:first-child {
  text-align: left;
}

.matrix-report-table td {
  text-align: center;
  color: var(--text-muted);
  border-bottom: 1px solid #f8fafc0d;
  padding: .6rem .75rem;
}

.matrix-report-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}

.matrix-report-table tr:last-child td {
  border-bottom: none;
}

.matrix-count-zero {
  opacity: .3;
}

.demo-report {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-field-title {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: .5rem;
  font-size: .72rem;
  font-weight: 700;
}

.rank-chart {
  overflow: hidden;
  width: 100%;
}

@media (max-width: 600px) {
  .report-main {
    padding: 1rem .75rem;
  }

  .report-header {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .report-title {
    font-size: 2rem;
  }

  .report-header-actions {
    width: 100%;
  }

  .report-header-actions button {
    flex: 1;
    justify-content: center;
    padding: .75rem;
    font-size: .85rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .report-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .chart-card {
    border-radius: 1rem;
    padding: 1.25rem;
  }

  .chart-title {
    font-size: 1rem;
  }

  .nps-segments {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .nps-big-score {
    font-size: 2.5rem;
  }

  .matrix-report-table {
    font-size: .75rem;
  }

  .matrix-report-table th, .matrix-report-table td {
    padding: .4rem;
  }
}

.survey-org-brand {
  font-size: 1.35rem;
  font-weight: 800;
}

.survey-org-name {
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 600;
}

.report-page {
  --bg: #f1f5f9;
  --card-bg: #fff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #0000001a;
}

.report-page .glass {
  background: #fffffff7;
  border-color: #00000014;
  box-shadow: 0 2px 16px #0000000f;
}

.report-page .chart-card, .report-page .stat-card {
  background: #fff;
  border-color: #00000014;
  box-shadow: 0 2px 12px #0000000f;
}

.report-page .stat-mini-card {
  background: #f8fafc;
}

.report-page .answer-item {
  background: #f8fafc;
  border-color: #00000014;
}

.report-page .dist-bar-wrap {
  background: #00000012;
}

.report-page .nps-segment--detractor {
  background: #ef434314;
}

.report-page .nps-segment--passive {
  background: #f59f0a14;
}

.report-page .nps-segment--promoter {
  background: #178c6114;
}

.report-page .matrix-report-table th, .report-page .matrix-report-table td {
  border-color: #00000014;
}

.report-page .sync-btn {
  color: var(--text-muted);
  background: #0000000a;
  border-color: #0000001f;
}

.report-page .sync-btn:hover {
  color: var(--text);
  background: #00000014;
}

.report-page .d3-tooltip {
  border-color: var(--primary);
  color: var(--text);
  background: #fff;
  box-shadow: 0 4px 20px #0000001f;
}

.report-page .gradient-text {
  background: linear-gradient(135deg, #1016b1 0%, #4e53ef 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.report-page .chart-question-num {
  background: #1f26ea1a;
  border-color: #1f26ea40;
}

.report-page .site-nav {
  background: #ffffffe6;
  border-color: #00000014;
  box-shadow: 0 10px 40px -10px #0000001a;
}

.report-page .site-nav.menu-open, .report-page .nav-mobile-menu {
  background: #fffffffa;
}

.report-page .breadcrumb-item {
  color: #64748b;
}

.report-page .breadcrumb-item:hover {
  color: var(--primary);
}

.report-page .breadcrumb-separator {
  color: #94a3b8;
}

.report-page .breadcrumb-active, .report-page .nav-mobile-toggle, .report-page .nav-mobile-link {
  color: #1e293b;
}

.modal-wide {
  max-width: 520px;
}

.share-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

.share-upgrade {
  text-align: center;
  padding: 1.5rem 0;
}

.share-upgrade-icon {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.share-upgrade-title {
  margin-bottom: .5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.share-upgrade-sub {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.share-input-row {
  display: flex;
  align-items:  center;
  gap: .5rem;
}

.share-input-hint {
  color: var(--text-muted);
  margin-top: .35rem;
  font-size: .78rem;
}

.share-dates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.share-date-hint {
  color: var(--text-muted);
  margin-top: .25rem;
  font-size: .75rem;
}

.share-save-btn {
  width: 100%;
  margin-bottom: 1.25rem;
}

.share-data-section {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.share-no-token {
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  font-size: .82rem;
}

.nav-actions--row {
  display: flex;
  align-items:  center;
  gap: 2rem;
}

.display-contents {
  display: contents;
}

.nav-divider {
  background: var(--border);
  opacity: .3;
  width: 1px;
  height: 1.5rem;
}

.action-icon i, .action-icon svg, .action-icon [data-lucide] {
  pointer-events: none !important;
}

@media print {
  @page {
    margin: 18mm 15mm;
    size: A4 portrait;
  }

  .site-nav, .report-header-actions, #d3-tooltip, .breadcrumbs {
    display: none !important;
  }

  html, body {
    color: #1e293b !important;
    background: #fff !important;
  }

  *, *:before, *:after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    background-image: none !important;
    transition: none !important;
  }

  .report-main {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .report-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: .75rem;
    margin-bottom: 1rem !important;
  }

  .gradient-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #3730a3 !important;
    color: #3730a3 !important;
  }

  .stat-grid {
    display: flex !important;
    gap: .75rem !important;
    margin-bottom: 1rem !important;
  }

  .stat-card {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: .5rem !important;
    flex: 1 !important;
    padding: .75rem 1rem !important;
  }

  .stat-value {
    color: #1e293b !important;
    font-size: 1.6rem !important;
  }

  .stat-label {
    color: #64748b !important;
  }

  .report-trend-panel, .chart-card {
    break-inside: avoid;
    page-break-inside: avoid;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: .5rem !important;
    padding: 1rem !important;
  }

  .report-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: .75rem !important;
  }

  .chart-card {
    break-inside: avoid;
    page-break-inside: avoid;
    width: 100% !important;
    margin-bottom: .5rem !important;
  }

  .chart-container svg {
    max-height: 280px !important;
  }

  .chart-header {
    margin-bottom: .5rem !important;
  }

  .chart-question-num {
    color: #6366f1 !important;
  }

  .chart-type {
    color: #64748b !important;
  }

  .chart-title {
    color: #1e293b !important;
    font-size: .875rem !important;
  }

  .report-section-title {
    color: #1e293b !important;
  }

  .report-section-subtitle, .report-meta {
    color: #64748b !important;
  }

  .stat-stats {
    color: #1e293b !important;
  }

  .stat-big-value {
    color: #3730a3 !important;
  }

  .stat-mini-card {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: .375rem !important;
  }

  .stat-mini-label {
    color: #64748b !important;
  }

  .stat-mini-value {
    color: #1e293b !important;
  }

  .dist-bar-wrap {
    background: #e2e8f0 !important;
  }

  .dist-bar {
    background: #6366f1 !important;
  }

  .dist-label, .dist-count {
    color: #475569 !important;
  }

  .answer-item {
    color: #334155 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: .375rem !important;
  }

  .nps-panel {
    color: #1e293b !important;
  }

  .nps-big-score {
    color: #3730a3 !important;
  }

  .nps-segment--detractor {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
  }

  .nps-segment--passive {
    background: #fef9c3 !important;
    border-color: #fde68a !important;
  }

  .nps-segment--promoter {
    background: #dcfce7 !important;
    border-color: #86efac !important;
  }

  .nps-segment-value, .nps-segment-label, .nps-segment-pct, .nps-score-label, .nps-score-sub {
    color: #1e293b !important;
  }

  .matrix-report-table th, .matrix-report-table td {
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
  }

  .matrix-report-table th {
    background: #f1f5f9 !important;
  }

  .matrix-count-zero {
    color: #94a3b8 !important;
  }

  .demo-field-title {
    font-weight: 600;
    color: #334155 !important;
  }

  svg text {
    fill: #334155 !important;
  }

  svg .domain, svg .tick line {
    stroke: #94a3b8 !important;
  }

  svg .grid line {
    stroke: #e2e8f0 !important;
  }

  .empty-text {
    color: #94a3b8 !important;
  }
}
