/* ═══════════════════════════════════════════════════════════════
   SURVEY — Design System
   Cardskipper brand · Typeform editorial aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ──────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --cs-dark:           #07131c;
  --cs-dark-2:         #0a1e2d;
  --cs-primary:        #0d5068;
  --cs-primary-light:  #1a6a85;
  --cs-primary-dark:   #082f3d;
  --cs-accent:         #2ab4d0;
  --cs-accent-light:   #4ec9e2;
  --cs-cta:            #e82535;
  --cs-cta-hover:      #c91f2d;
  --cs-cta-glow:       rgba(232, 37, 53, 0.35);

  /* Surfaces */
  --cs-surface:        #f5f8fa;
  --cs-surface-2:      #edf2f6;
  --cs-white:          #ffffff;

  /* Text */
  --cs-text:           #0a1a24;
  --cs-text-secondary: #3d5a6b;
  --cs-text-muted:     #6b8899;
  --cs-text-on-dark:   #ffffff;
  --cs-text-on-dark-2: rgba(255, 255, 255, 0.70);
  --cs-text-on-dark-3: rgba(255, 255, 255, 0.45);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', sans-serif;

  /* Spacing tokens */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Radius */
  --radius-sm:   0.5rem;
  --radius-md:   0.875rem;
  --radius-lg:   1.25rem;
  --radius-xl:   2rem;
  --radius-pill: 50rem;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(7,19,28,0.06), 0 2px 12px rgba(7,19,28,0.06);
  --shadow-md:  0 4px 16px rgba(7,19,28,0.10), 0 1px 4px rgba(7,19,28,0.06);
  --shadow-lg:  0 8px 32px rgba(7,19,28,0.14), 0 2px 8px rgba(7,19,28,0.08);
  --shadow-cta: 0 4px 20px var(--cs-cta-glow), 0 1px 4px rgba(232,37,53,0.2);

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;

  /* Bootstrap overrides via CSS vars */
  --bs-body-font-family:    var(--font-body);
  --bs-body-color:          var(--cs-text);
  --bs-body-bg:             var(--cs-white);
  --bs-primary:             var(--cs-primary);
  --bs-primary-rgb:         13, 80, 104;
  --bs-border-radius:       var(--radius-sm);
  --bs-border-radius-lg:    var(--radius-md);
  --bs-border-radius-xl:    var(--radius-lg);
  --bs-border-radius-pill:  var(--radius-pill);
  --bs-link-color:          var(--cs-accent);
  --bs-link-hover-color:    var(--cs-accent-light);
  --bs-btn-border-radius:   var(--radius-pill);
}

/* ── 2. Base ────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--cs-text);
  background-color: var(--cs-white);
  font-size: 1rem;
  line-height: 1.65;
}

::selection {
  background: var(--cs-accent);
  color: var(--cs-white);
}

/* ── 3. Typography ──────────────────────────────────────────── */
h1, h2, h3, .display-heading {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--cs-text);
}

h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-section {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-accent);
}

.eyebrow-dark {
  color: var(--cs-text-muted);
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--cs-text-secondary);
  font-weight: 400;
}

/* ── 4. Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: background var(--duration-base) var(--ease-out),
              transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-out),
              color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
}

.btn:active { transform: translateY(1px) scale(0.98); }

/* Primary — petrol teal */
.btn-primary {
  background: var(--cs-primary);
  border-color: var(--cs-primary);
  color: var(--cs-white);
  box-shadow: 0 2px 10px rgba(13, 80, 104, 0.30);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--cs-primary-light);
  border-color: var(--cs-primary-light);
  color: var(--cs-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(13, 80, 104, 0.40);
}

/* CTA — red */
.btn-cta {
  background: var(--cs-cta);
  border: none;
  color: var(--cs-white);
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover, .btn-cta:focus-visible {
  background: var(--cs-cta-hover);
  color: var(--cs-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--cs-cta-glow);
}

/* Ghost on dark */
.btn-ghost-dark {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--cs-white);
}
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.65);
  color: var(--cs-white);
  transform: translateY(-1px);
}

/* Outline accent */
.btn-outline-primary {
  border-color: var(--cs-primary);
  color: var(--cs-primary);
}
.btn-outline-primary:hover, .btn-outline-primary:focus-visible {
  background: var(--cs-primary);
  border-color: var(--cs-primary);
  color: var(--cs-white);
  transform: translateY(-1px);
}

.btn-outline-secondary {
  border-color: var(--cs-surface-2);
  color: var(--cs-text-secondary);
  background: var(--cs-white);
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus-visible {
  background: var(--cs-surface);
  border-color: var(--cs-text-muted);
  color: var(--cs-text);
}

/* Size variants */
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }

/* ── 5. Forms ───────────────────────────────────────────────── */
.form-control,
.form-select {
  font-family: var(--font-body);
  border: 1.5px solid #d4dde4;
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--cs-text);
  background: var(--cs-white);
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42, 180, 208, 0.18);
  outline: none;
}
.form-control::placeholder { color: var(--cs-text-muted); }

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cs-text-secondary);
  margin-bottom: 0.375rem;
}

/* Dark form fields */
.form-control-dark {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--cs-white);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.25rem;
}
.form-control-dark::placeholder { color: var(--cs-text-on-dark-2); }
.form-control-dark:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42, 180, 208, 0.20);
  color: var(--cs-white);
  outline: none;
}

/* ── 6. Cards ───────────────────────────────────────────────── */
.cs-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) ease;
}
.cs-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--cs-accent-light);
}

.cs-card-flat {
  background: var(--cs-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

/* ── 7. Badges ──────────────────────────────────────────────── */
.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cs-badge-draft   { background: #f0f4f7; color: var(--cs-text-secondary); }
.cs-badge-active  { background: #d6f5eb; color: #0d6e47; }
.cs-badge-closed  { background: #e8edf2; color: var(--cs-text-muted); }
.cs-badge-pro     { background: var(--cs-cta); color: var(--cs-white); }
.cs-badge-free    { background: var(--cs-surface-2); color: var(--cs-text-secondary); }

/* ── 8. Section helpers ─────────────────────────────────────── */
.section-dark {
  background: var(--cs-dark);
  color: var(--cs-text-on-dark);
}
.section-primary {
  background: var(--cs-primary);
  color: var(--cs-text-on-dark);
}
.section-surface {
  background: var(--cs-surface);
}
.section-pad {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}
.section-pad-md {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

/* ── 9. Public Navbar ───────────────────────────────────────── */
.cs-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration-base) ease,
              box-shadow var(--duration-base) ease,
              padding var(--duration-base) ease;
}
.cs-navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.875rem 2rem;
}
.cs-navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cs-white);
  text-decoration: none;
  letter-spacing: -0.03em;
  transition: color var(--duration-fast) ease;
}
.cs-navbar.scrolled .cs-navbar-brand { color: var(--cs-text); }

.cs-navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-navbar-links a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--cs-text-on-dark-2);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}
.cs-navbar-links a:hover { color: var(--cs-white); }
.cs-navbar.scrolled .cs-navbar-links a { color: var(--cs-text-secondary); }
.cs-navbar.scrolled .cs-navbar-links a:hover { color: var(--cs-text); }

/* Scrolled navbar (light mode): ghost-dark button becomes dark */
.cs-navbar.scrolled .btn-ghost-dark {
  color: var(--cs-text);
  border-color: rgba(0,0,0,0.22);
}
.cs-navbar.scrolled .btn-ghost-dark:hover,
.cs-navbar.scrolled .btn-ghost-dark:focus-visible {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.40);
  color: var(--cs-text);
  transform: translateY(-1px);
}

/* ── 10. Admin Layout ───────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--cs-surface);
}

.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--cs-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.admin-sidebar-brand {
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-sidebar-brand a {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--cs-white);
  text-decoration: none;
  letter-spacing: -0.025em;
}
.admin-sidebar-brand a span {
  color: var(--cs-accent);
}

.admin-sidebar-section {
  padding: 1.25rem 1rem 0.5rem;
}
.admin-sidebar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cs-text-on-dark-3);
  padding: 0 0.5rem;
  margin-bottom: 0.375rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--cs-text-on-dark-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease;
  margin-bottom: 0.125rem;
}
.admin-nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: var(--cs-white);
}
.admin-nav-item.active {
  background: var(--cs-primary);
  color: var(--cs-white);
}
.admin-nav-item i {
  font-size: 1rem;
  width: 1.125rem;
  text-align: center;
  opacity: 0.85;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--cs-text-on-dark-2);
}
.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cs-white);
  flex-shrink: 0;
}
.admin-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-text-on-dark);
  line-height: 1.2;
}
.admin-user-org {
  font-size: 0.75rem;
  color: var(--cs-text-on-dark-3);
  line-height: 1.2;
}

.admin-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Floating controls */
.admin-float-burger,
.admin-float-theme {
  position: fixed;
  top: 1rem;
  z-index: 110;
}
.admin-float-burger {
  left: 1rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.12);
  background: rgba(18,28,40,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  font-size: 1.0625rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.25);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.admin-float-burger:hover {
  background: rgba(42,180,208,.18);
  border-color: var(--cs-accent);
  color: var(--cs-accent);
  transform: scale(1.07);
}
.admin-float-burger:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 3px; }
.admin-float-burger:active { transform: scale(.95); }
.admin-float-theme {
  right: 1rem;
}

.admin-page-content {
  padding: 4rem 2rem 2rem;
  flex: 1;
}

/* ── 11. Page headers ───────────────────────────────────────── */
.page-header {
  margin-bottom: 2rem;
}
.page-header h1,
.page-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cs-text);
  font-family: var(--font-display);
  margin: 0;
}
.page-header-sub {
  font-size: 0.9375rem;
  color: var(--cs-text-muted);
  margin-top: 0.25rem;
}

/* ── 12. Table ──────────────────────────────────────────────── */
.cs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.cs-table th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cs-surface-2);
  text-align: left;
  white-space: nowrap;
}
.cs-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--cs-surface-2);
  vertical-align: middle;
  font-size: 0.9375rem;
}
.cs-table tbody tr {
  transition: background var(--duration-fast) ease;
}
.cs-table tbody tr:hover {
  background: var(--cs-surface);
}
.cs-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── 13. Wizard steps ───────────────────────────────────────── */
.wizard-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.wizard-connector {
  flex: 1;
  height: 1.5px;
  background: var(--cs-surface-2);
  margin: 0 .625rem;
  border-radius: 1px;
  transition: background .35s ease;
}
.wizard-connector.done { background: var(--cs-accent); }

.wizard-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background var(--duration-base) ease,
              color var(--duration-base) ease;
}
.wizard-step.pending .wizard-step-number {
  background: var(--cs-surface-2);
  color: var(--cs-text-muted);
}
.wizard-step.active .wizard-step-number {
  background: var(--cs-primary);
  color: var(--cs-white);
  box-shadow: 0 0 0 4px rgba(13, 80, 104, 0.15);
}
.wizard-step.done .wizard-step-number {
  background: var(--cs-accent);
  color: var(--cs-white);
}
.wizard-step-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-text-muted);
}
.wizard-step.active .wizard-step-label { color: var(--cs-text); }
.wizard-step.done .wizard-step-label { color: var(--cs-accent); }

/* ── 14. Survey question card ───────────────────────────────── */
.question-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}
.question-card:focus-within {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42, 180, 208, 0.12);
}

.scale-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--cs-surface-2);
  background: var(--cs-white);
  color: var(--cs-text-secondary);
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-spring);
}
.scale-btn:hover {
  border-color: var(--cs-accent);
  color: var(--cs-primary);
  background: rgba(42, 180, 208, 0.08);
  transform: scale(1.05);
}
.scale-btn.selected {
  background: var(--cs-primary);
  border-color: var(--cs-primary);
  color: var(--cs-white);
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(13, 80, 104, 0.35);
}

/* ── 15. Alert / notification ───────────────────────────────── */
.cs-alert-warning {
  background: #fff8e7;
  border: 1px solid #ffd970;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #7a5c00;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.cs-alert-success {
  background: #f0faf5;
  border: 1px solid #6dd9a8;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #0d6e47;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── 16. Public footer ──────────────────────────────────────── */
.cs-footer {
  background: var(--cs-dark);
  color: var(--cs-text-on-dark-2);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.cs-footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cs-white);
  letter-spacing: -0.025em;
  text-decoration: none;
}
.cs-footer-divider {
  border-color: rgba(255,255,255,0.10);
  margin: var(--space-lg) 0 var(--space-md);
}
.cs-footer a {
  color: var(--cs-text-on-dark-2);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--duration-fast) ease;
}
.cs-footer a:hover { color: var(--cs-white); }

/* ── 17. Pricing cards ──────────────────────────────────────── */
.pricing-card {
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  background: var(--cs-white);
  transition: box-shadow var(--duration-base) ease,
              transform var(--duration-base) ease;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.pricing-card.featured {
  background: var(--cs-primary);
  border-color: var(--cs-primary);
  color: var(--cs-white);
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.pricing-card.featured .pricing-feature {
  border-bottom-color: rgba(255,255,255,0.15);
}
.pricing-check {
  color: var(--cs-accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}
.pricing-card.featured .pricing-check { color: #7de8f8; }

/* ── 18. Feature grid ───────────────────────────────────────── */
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(42, 180, 208, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--cs-accent);
  margin-bottom: 1.25rem;
}

/* ── 19. FAQ accordion ──────────────────────────────────────── */
.cs-accordion .accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--cs-text);
  background: transparent;
  box-shadow: none;
  padding: 1.25rem 0;
  border: none;
  border-bottom: 1px solid var(--cs-surface-2);
}
.cs-accordion .accordion-button:not(.collapsed) {
  color: var(--cs-primary);
  background: transparent;
  box-shadow: none;
}
.cs-accordion .accordion-button::after {
  filter: none;
  opacity: 0.5;
}
.cs-accordion .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--cs-surface-2);
}
.cs-accordion .accordion-item:last-child { border-bottom: none; }
.cs-accordion .accordion-body {
  padding: 0 0 1.25rem;
  color: var(--cs-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── 20. Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.6s var(--ease-out) both;
}
.animate-fade-up-delay-1 { animation-delay: 0.1s; }
.animate-fade-up-delay-2 { animation-delay: 0.2s; }
.animate-fade-up-delay-3 { animation-delay: 0.3s; }
.animate-fade-up-delay-4 { animation-delay: 0.4s; }

/* ── 21. Drag handle ────────────────────────────────────────── */
.drag-handle {
  cursor: grab;
  color: var(--cs-text-muted);
  font-size: 1.125rem;
  user-select: none;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) ease;
}
.drag-handle:hover { color: var(--cs-text-secondary); }
.drag-handle:active { cursor: grabbing; }

/* ── 22. Question Builder (Step 2) ─────────────────────────── */

/* Empty state */
.qb-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--cs-white);
  border: 2px dashed var(--cs-surface-2);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration-base) ease;
}
.qb-empty-state:hover { border-color: var(--cs-accent); }
.qb-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(42,180,208,0.12), rgba(13,80,104,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--cs-accent);
}
.qb-empty-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cs-text);
  margin-bottom: 0.375rem;
}
.qb-empty-sub {
  color: var(--cs-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

/* Question card */
.qb-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}
.qb-card:focus-within {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,0.10);
}

.qb-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}
.qb-card-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cs-surface);
  border: 1.5px solid var(--cs-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cs-text-secondary);
  flex-shrink: 0;
}
.qb-question-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cs-text);
  font-family: var(--font-body);
  padding: 0;
}
.qb-question-input::placeholder { color: var(--cs-text-muted); font-weight: 400; }
.qb-delete-btn {
  background: transparent;
  border: none;
  color: var(--cs-text-muted);
  cursor: pointer;
  padding: 0.25rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.qb-delete-btn:hover { color: var(--cs-cta); background: rgba(232,37,53,0.07); }

/* Type picker chips */
.qb-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1.5px solid var(--cs-surface-2);
}
.qb-type-chip {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--cs-surface-2);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cs-text-secondary);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              color var(--duration-fast) ease;
  font-family: var(--font-body);
}
.qb-type-chip:hover {
  border-color: var(--cs-accent);
  color: var(--cs-primary);
  background: rgba(42,180,208,0.06);
}
.qb-type-chip.active {
  border-color: var(--cs-primary);
  background: var(--cs-primary);
  color: var(--cs-white);
}

/* Card body */
.qb-card-body {
  padding: 1rem 1.5rem 1.25rem;
}
.qb-required-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cs-text-muted);
  cursor: pointer;
  user-select: none;
}

/* Multiple choice options */
.qb-options-list { display: flex; flex-direction: column; gap: 0.5rem; }
.qb-option-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.qb-option-bullet {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--cs-surface-2);
  flex-shrink: 0;
}
.qb-option-input {
  flex: 1;
  border: none;
  border-bottom: 1.5px solid var(--cs-surface-2);
  background: transparent;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--cs-text);
  padding: 0.25rem 0;
  outline: none;
  transition: border-color var(--duration-fast) ease;
}
.qb-option-input:focus { border-color: var(--cs-accent); }
.qb-option-remove {
  background: transparent;
  border: none;
  color: var(--cs-text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color var(--duration-fast) ease;
}
.qb-option-remove:hover { color: var(--cs-cta); }
.qb-add-option-btn {
  background: transparent;
  border: none;
  color: var(--cs-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: var(--font-body);
  transition: color var(--duration-fast) ease;
}
.qb-add-option-btn:hover { color: var(--cs-primary); }

/* Preview hints for non-editable types */
.qb-preview-hint {
  display: flex;
  align-items: center;
  color: var(--cs-text-muted);
  font-size: 0.875rem;
  font-style: italic;
}
.qb-preview-pill {
  padding: 0.375rem 1.125rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--cs-surface-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-text-secondary);
  background: var(--cs-surface);
}
.qb-preview-scale {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cs-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cs-text-secondary);
  background: var(--cs-surface);
}

/* Opinion scale config */
.qb-scale-config { display: flex; flex-direction: column; gap: .75rem; }
.qb-scale-range { display: flex; align-items: center; gap: .75rem; }
.qb-scale-field { display: flex; flex-direction: column; gap: .25rem; }
.qb-scale-field-label {
  font-size: .6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--cs-text-muted);
}
.qb-scale-num-input {
  width: 72px; padding: .5rem .625rem;
  border: 1.5px solid var(--cs-surface-2);
  border-radius: 8px; background: var(--cs-surface);
  color: var(--cs-text); font-family: inherit;
  font-size: .9375rem; font-weight: 700; text-align: center;
  outline: none;
  transition: border-color .15s ease;
  /* hide spinner */
  -moz-appearance: textfield;
}
.qb-scale-num-input::-webkit-outer-spin-button,
.qb-scale-num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qb-scale-num-input:focus { border-color: var(--cs-accent); }
.qb-scale-range-sep {
  font-size: 1.25rem; font-weight: 300;
  color: var(--cs-text-muted); padding-top: 1.25rem;
}
.qb-scale-labels-row { display: flex; gap: .625rem; }
.qb-scale-label-input {
  flex: 1; padding: .5rem .75rem;
  border: 1.5px solid var(--cs-surface-2);
  border-radius: 8px; background: var(--cs-surface);
  color: var(--cs-text); font-family: inherit; font-size: .875rem;
  outline: none;
  transition: border-color .15s ease;
}
.qb-scale-label-input:focus { border-color: var(--cs-accent); }
.qb-scale-label-input::placeholder { color: var(--cs-text-muted); }
.qb-scale-preview { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .25rem; }

/* Add question card */
.qb-add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  border: 2px dashed var(--cs-surface-2);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--cs-text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              background var(--duration-fast) ease;
}
.qb-add-card:hover {
  border-color: var(--cs-accent);
  color: var(--cs-primary);
  background: rgba(42,180,208,0.04);
}

/* ── 23. Publish Step (Step 3) ──────────────────────────────── */

.pub-review-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.pub-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.75rem 1.25rem;
}
.pub-survey-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--cs-text);
  margin: 0.25rem 0 0.375rem;
  letter-spacing: -0.02em;
}
.pub-survey-desc {
  color: var(--cs-text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.6;
}
.pub-preview-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  background: var(--cs-surface);
  color: var(--cs-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              background var(--duration-fast) ease;
}
.pub-preview-btn i { font-size: 1.25rem; }
.pub-preview-btn:hover {
  border-color: var(--cs-accent);
  color: var(--cs-primary);
  background: rgba(42,180,208,0.06);
}

.pub-question-list {
  border-top: 1.5px solid var(--cs-surface-2);
}
.pub-question-list-header {
  padding: 0.75rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cs-surface);
}
.pub-question-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1.75rem;
  border-bottom: 1px solid var(--cs-surface-2);
}
.pub-question-row:last-child { border-bottom: none; }
.pub-q-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cs-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--cs-text-muted);
  flex-shrink: 0;
}
.pub-q-text {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cs-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-q-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cs-text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* CSV upload drop zone */
.pub-csv-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  border: 2px dashed var(--cs-surface-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease;
  text-align: center;
}
.pub-csv-dropzone:hover {
  border-color: var(--cs-accent);
  background: rgba(42,180,208,0.04);
}
.pub-csv-icon {
  font-size: 1.5rem;
  color: var(--cs-text-muted);
}
.pub-csv-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cs-text-secondary);
}
.pub-csv-hint {
  font-size: 0.8125rem;
  color: var(--cs-text-muted);
}

.pub-csv-result {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.pub-csv-success {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: rgba(109,217,168,0.1);
  border: 1.5px solid rgba(109,217,168,0.3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: #2a9464;
}
.pub-csv-success i { font-size: 1rem; }

/* Publish button */
.pub-publish-btn {
  border-radius: var(--radius-xl) !important;
  padding: 1rem !important;
  font-size: 1rem !important;
  letter-spacing: -0.01em;
  font-weight: 700 !important;
}

/* ── 24. Misc utilities ─────────────────────────────────────── */
.text-accent { color: var(--cs-accent); }
.text-cs-muted { color: var(--cs-text-muted); }
.bg-cs-dark { background: var(--cs-dark); }
.bg-cs-surface { background: var(--cs-surface); }
.rounded-cs { border-radius: var(--radius-lg); }

/* ── 25. Survey Display — Preview & SurveyPage shared ───────── */

.sq-page-wrap {
  padding: 3rem 1rem 5rem;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 75% 45% at 8% -5%,  rgba(42,180,208,0.09) 0%, transparent 58%),
    radial-gradient(ellipse 55% 38% at 92% 108%, rgba(13,80,104,0.07) 0%, transparent 52%);
}

.sq-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Sticky progress bar */
.sq-sticky-progress {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(237,242,246,0.80);
  padding: .5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sq-sticky-progress-track {
  flex: 1;
  height: 6px;
  background: #edf2f6;
  background: var(--cs-surface-2, #edf2f6);
  border-radius: 999px;
  overflow: hidden;
}
.sq-sticky-progress-bar {
  height: 100%;
  background: #2ab4d0;
  background: var(--cs-accent, #2ab4d0);
  border-radius: 999px;
  transition: width .4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 0;
}
.sq-sticky-progress-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--cs-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Answered card state */
.sq-card-answered {
  border-color: rgba(42,180,208,.28) !important;
  border-left-color: #2ab4d0 !important;
  background: #e8f4f8 !important;
  box-shadow: 0 6px 24px rgba(13,80,104,.11), 0 1px 4px rgba(13,80,104,.06) !important;
}
.sq-answered-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e6f9f2;
  border: 1.5px solid #6dd9a8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6875rem;
  color: #2a9464;
  flex-shrink: 0;
  animation: popIn .32s var(--ease-spring) both;
}

/* Survey hero header */
.sq-header {
  background: linear-gradient(135deg, var(--cs-primary) 0%, var(--cs-primary-light) 60%, #1e8aaa 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem clamp(1.25rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.sq-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.sq-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.sq-header-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--cs-white);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 .625rem;
  position: relative;
  z-index: 1;
}
.sq-header-desc {
  color: rgba(255,255,255,.75);
  font-size: .9375rem;
  line-height: 1.65;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Meta strip */
.sq-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .75rem 0 1.25rem;
}
.sq-meta-item {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--cs-text-muted);
}
.sq-meta-item i { font-size: .875rem; color: var(--cs-accent); }

/* Question card */
.sq-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-left: 4px solid var(--cs-surface-2);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: border-color var(--duration-fast) ease,
              border-left-color var(--duration-base) var(--ease-out),
              background var(--duration-base) ease,
              box-shadow var(--duration-fast) ease;
}
.sq-card:focus-within {
  border-color: rgba(42,180,208,.35);
  border-left-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.07);
}

.sq-q-eyebrow {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cs-accent);
  margin-bottom: .5rem;
}
.sq-q-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cs-text);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.sq-q-required {
  color: var(--cs-cta);
  margin-left: .2rem;
}

/* Radio option (flerval) */
.sq-radio-label {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .75rem 1rem;
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}
.sq-radio-label:hover {
  border-color: var(--cs-accent);
  background: rgba(42,180,208,.04);
}
.sq-radio-label.selected {
  border-color: var(--cs-accent);
  background: linear-gradient(90deg, rgba(42,180,208,.10) 0%, rgba(42,180,208,.03) 100%);
  box-shadow: inset 3px 0 0 var(--cs-accent);
}
.sq-radio-label.selected .sq-radio-text {
  color: var(--cs-primary);
  font-weight: 700;
}
.sq-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--cs-surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast) ease;
}
.sq-radio-label.selected .sq-radio-dot {
  border-color: var(--cs-accent);
  background: var(--cs-accent);
}
.sq-radio-label.selected .sq-radio-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}
.sq-radio-text {
  font-size: .9375rem;
  color: var(--cs-text);
  font-weight: 500;
}

/* Yes/No pill */
.sq-yesno-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--cs-text-secondary);
  text-align: center;
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              color var(--duration-fast) ease;
}
.sq-yesno-label:hover {
  border-color: var(--cs-accent);
  color: var(--cs-primary);
  background: rgba(42,180,208,.04);
}
.sq-yesno-label.selected {
  border-color: var(--cs-primary);
  background: var(--cs-primary);
  color: var(--cs-white);
}

/* Scale buttons */
.sq-scale-btn {
  flex: 1;
  min-width: 0;
  padding: .875rem 0;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--cs-surface-2);
  background: var(--cs-white);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--cs-text-secondary);
  cursor: pointer;
  text-align: center;
  line-height: 1;
  transition: border-color var(--duration-fast) ease,
              background var(--duration-fast) ease,
              color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
  font-family: var(--font-body);
}
.sq-scale-btn:hover {
  border-color: var(--cs-accent);
  color: var(--cs-primary);
  background: rgba(42,180,208,.08);
}
.sq-scale-btn.selected {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cs-primary) 0%, var(--cs-primary-light) 100%);
  color: var(--cs-white);
  box-shadow: 0 4px 14px rgba(13,80,104,.35), 0 1px 3px rgba(13,80,104,.20);
}

/* Preview mode banner */
.sq-preview-banner {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem 1rem;
  background: rgba(42,180,208,.1);
  border: 1.5px solid rgba(42,180,208,.25);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--cs-primary);
}

/* Textarea */
.sq-textarea {
  width: 100%;
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  padding: .875rem 1rem;
  font-size: .9375rem;
  font-family: var(--font-body);
  color: var(--cs-text);
  background: var(--cs-surface);
  resize: vertical;
  min-height: 100px;
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  outline: none;
}
.sq-textarea:focus {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.1);
  background: var(--cs-white);
}
.sq-number-input {
  width: 100%;
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-size: .9375rem;
  font-family: var(--font-body);
  color: var(--cs-text);
  background: var(--cs-surface);
  outline: none;
  transition: border-color var(--duration-fast) ease;
}
.sq-number-input:focus {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.1);
}

/* Submit button */
.sq-submit-btn {
  border-radius: var(--radius-xl) !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

/* Animate in */
.sq-card { animation: fadeUp .35s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.4); }
  65%  { transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Survey page theme tokens ─────────────────────────────────── */
:root {
  --sq-tf-bg:        #eef5f8;
  --sq-tf-bg-g1:     radial-gradient(ellipse 65% 50% at 12% 18%, rgba(42,180,208,0.07) 0%, transparent 60%);
  --sq-tf-bg-g2:     radial-gradient(ellipse 50% 40% at 88% 85%, rgba(42,180,208,0.04) 0%, transparent 55%);
  --sq-tf-text:      #07131c;
  --sq-tf-text-2:    rgba(7,19,28,0.65);
  --sq-tf-text-3:    rgba(7,19,28,0.45);
  --sq-tf-muted:     rgba(7,19,28,0.30);
  --sq-tf-border:    rgba(7,19,28,0.10);
  --sq-tf-border-lt: rgba(7,19,28,0.18);
  --sq-tf-surface-2: rgba(7,19,28,0.03);
  --sq-tf-input-bg:  rgba(255,255,255,0.85);
  --sq-tf-input-f:   #ffffff;
  --sq-tf-ph:        rgba(7,19,28,0.28);
  --sq-tf-star-0:    rgba(7,19,28,0.12);
  --sq-tf-kbd-bdr:   rgba(7,19,28,0.22);
  --sq-tf-kbd-bg:    rgba(7,19,28,0.07);
  --sq-tf-kbd-fg:    rgba(7,19,28,0.50);
  --sq-tf-prog-bg:   rgba(7,19,28,0.08);
  --sq-tf-date-sep:  rgba(7,19,28,0.25);
  --sq-tf-back-hbg:  rgba(7,19,28,0.06);
  --sq-tf-back-hbdr: rgba(7,19,28,0.28);
  --sq-tf-back-hfg:  #07131c;
  --sq-tf-skip-hbg:  rgba(7,19,28,0.05);
}
html.dark {
  --sq-tf-bg:        #07131c;
  --sq-tf-bg-g1:     radial-gradient(ellipse 65% 50% at 12% 18%, rgba(42,180,208,0.09) 0%, transparent 60%);
  --sq-tf-bg-g2:     radial-gradient(ellipse 50% 40% at 88% 85%, rgba(13,80,104,0.11) 0%, transparent 55%);
  --sq-tf-text:      #ffffff;
  --sq-tf-text-2:    rgba(255,255,255,0.75);
  --sq-tf-text-3:    rgba(255,255,255,0.45);
  --sq-tf-muted:     rgba(255,255,255,0.28);
  --sq-tf-border:    rgba(255,255,255,0.10);
  --sq-tf-border-lt: rgba(255,255,255,0.20);
  --sq-tf-surface-2: rgba(255,255,255,0.03);
  --sq-tf-input-bg:  rgba(255,255,255,0.04);
  --sq-tf-input-f:   rgba(42,180,208,0.05);
  --sq-tf-ph:        rgba(255,255,255,0.22);
  --sq-tf-star-0:    rgba(255,255,255,0.32);
  --sq-tf-kbd-bdr:   rgba(255,255,255,0.28);
  --sq-tf-kbd-bg:    rgba(255,255,255,0.09);
  --sq-tf-kbd-fg:    rgba(255,255,255,0.60);
  --sq-tf-prog-bg:   rgba(255,255,255,0.07);
  --sq-tf-date-sep:  rgba(255,255,255,0.25);
  --sq-tf-back-hbg:  rgba(255,255,255,0.06);
  --sq-tf-back-hbdr: rgba(255,255,255,0.30);
  --sq-tf-back-hfg:  #ffffff;
  --sq-tf-skip-hbg:  rgba(255,255,255,0.05);
}

/* ── 25b. Survey Page — Typeform-style one-at-a-time (sq-tf-*) ── */

/* Root */
.sq-tf-root {
  min-height: 100vh;
  background: var(--sq-tf-bg);
  background-image:
    radial-gradient(ellipse 80% 65% at 5% 10%, color-mix(in srgb, var(--survey-accent, #2ab4d0) 55%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 65% 55% at 95% 92%, color-mix(in srgb, var(--survey-accent, #2ab4d0) 38%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 52% 50%, color-mix(in srgb, var(--survey-accent, #2ab4d0) 18%, transparent) 0%, transparent 68%);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   BACKGROUND THEMES — luxury quality
   Uses ::before / ::after pseudo-elements for layered decoration.
   isolation: isolate scopes z-index: -1/-2 inside the root so
   decoration sits above background but below actual content.
   ══════════════════════════════════════════════════════════════ */

.sq-tf-root[class*="sq-bg-"] {
  isolation: isolate;
}

/* ─── 1. TOPO — organic topographic contour lines ─── */
/* Dark: deep navy base, white sine curves, twin accent glows */
.sq-tf-root.sq-bg-topo {
  background: #07131c;
  background-image:
    radial-gradient(ellipse 65% 55% at 10% 5%,  color-mix(in srgb, var(--survey-accent, #2ab4d0) 32%, transparent), transparent 62%),
    radial-gradient(ellipse 48% 40% at 92% 95%,  color-mix(in srgb, var(--survey-accent, #2ab4d0) 24%, transparent), transparent 55%);
}
.sq-tf-root.sq-bg-topo::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900'%3E%3Cg fill='none' stroke='rgba(255,255,255,.22)' stroke-width='1.3'%3E%3Cpath d='M0 820 C240 784 480 855 720 814 S1200 755 1440 798'/%3E%3Cpath d='M0 720 C262 680 498 750 742 704 S1202 648 1440 692'/%3E%3Cpath d='M0 625 C284 576 522 652 768 602 S1228 542 1440 588'/%3E%3Cpath d='M0 532 C306 478 546 558 796 504 S1255 440 1440 486'/%3E%3Cpath d='M0 442 C330 382 568 468 824 410 S1282 342 1440 386'/%3E%3Cpath d='M0 358 C356 292 590 382 854 320 S1310 248 1440 290'/%3E%3Cpath d='M0 278 C382 206 614 300 882 234 S1336 160 1440 200'/%3E%3Cpath d='M0 204 C408 126 640 228 910 158 S1360 82 1440 118'/%3E%3Cpath d='M0 136 C434 52 668 162 938 88 S1384 12 1440 46'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
}
/* Light variant */
html:not(.dark) .sq-tf-root.sq-bg-topo {
  background: #f8f6f2;
  background-image:
    radial-gradient(ellipse 65% 55% at 10% 5%,  color-mix(in srgb, var(--survey-accent, #2ab4d0) 13%, transparent), transparent 62%),
    radial-gradient(ellipse 48% 40% at 92% 95%,  color-mix(in srgb, var(--survey-accent, #2ab4d0) 9%,  transparent), transparent 55%);
}
html:not(.dark) .sq-tf-root.sq-bg-topo::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900'%3E%3Cg fill='none' stroke='rgba(0,0,0,.12)' stroke-width='1.3'%3E%3Cpath d='M0 820 C240 784 480 855 720 814 S1200 755 1440 798'/%3E%3Cpath d='M0 720 C262 680 498 750 742 704 S1202 648 1440 692'/%3E%3Cpath d='M0 625 C284 576 522 652 768 602 S1228 542 1440 588'/%3E%3Cpath d='M0 532 C306 478 546 558 796 504 S1255 440 1440 486'/%3E%3Cpath d='M0 442 C330 382 568 468 824 410 S1282 342 1440 386'/%3E%3Cpath d='M0 358 C356 292 590 382 854 320 S1310 248 1440 290'/%3E%3Cpath d='M0 278 C382 206 614 300 882 234 S1336 160 1440 200'/%3E%3Cpath d='M0 204 C408 126 640 228 910 158 S1360 82 1440 118'/%3E%3Cpath d='M0 136 C434 52 668 162 938 88 S1384 12 1440 46'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  opacity: 0.55;
}

/* ─── 2. HALVTON — halftone dot clusters ─── */
/* Light: warm parchment, accent dots masked to bottom-left + top-right */
.sq-tf-root.sq-bg-halftone {
  background: #0d1117;
}
/* Soft accent glow behind dots */
.sq-tf-root.sq-bg-halftone::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 12% 90%, color-mix(in srgb, var(--survey-accent, #2ab4d0) 20%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 45% at 90% 10%, color-mix(in srgb, var(--survey-accent, #2ab4d0) 14%, transparent), transparent 52%);
}
/* Dot grid masked to the two glow corners */
.sq-tf-root.sq-bg-halftone::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, var(--survey-accent, #2ab4d0) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  mask-image:
    radial-gradient(ellipse 80% 68% at 12% 90%, black 0%, transparent 62%),
    radial-gradient(ellipse 62% 50% at 90% 10%, black 0%, transparent 52%);
  -webkit-mask-image:
    radial-gradient(ellipse 80% 68% at 12% 90%, black 0%, transparent 62%),
    radial-gradient(ellipse 62% 50% at 90% 10%, black 0%, transparent 52%);
  mask-composite: add;
  -webkit-mask-composite: source-over;
  opacity: 0.30;
}
/* Light variant */
html:not(.dark) .sq-tf-root.sq-bg-halftone {
  background: #f9f7f4;
}
html:not(.dark) .sq-tf-root.sq-bg-halftone::before {
  opacity: 0.55;
}
html:not(.dark) .sq-tf-root.sq-bg-halftone::after {
  background:
    radial-gradient(ellipse 70% 60% at 12% 90%, color-mix(in srgb, var(--survey-accent, #2ab4d0) 12%, transparent), transparent 62%),
    radial-gradient(ellipse 55% 45% at 90% 10%, color-mix(in srgb, var(--survey-accent, #2ab4d0) 8%,  transparent), transparent 52%);
}

/* ─── 3. SPOTLIGHT — theatrical radial glow ─── */
/* Dark mode: near-black theatrical stage with bright central glow */
.sq-tf-root.sq-bg-spotlight {
  background: #020408;
}
/* Dark: bright centered spotlight + scanlines + floor vignette */
.sq-tf-root.sq-bg-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse 68% 62% at 50% 38%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 55%, #fff) 0%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 30%, transparent) 28%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 8%,  transparent) 52%,
    transparent 68%
  );
  filter: blur(2px);
}
.sq-tf-root.sq-bg-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 39px,
      rgba(255,255,255,.015) 39px,
      rgba(255,255,255,.015) 40px
    ),
    linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 28%);
}
/* Light mode: warm gallery white — overhead soft beam from above center */
html:not(.dark) .sq-tf-root.sq-bg-spotlight {
  background: #f5f3ee;
}
html:not(.dark) .sq-tf-root.sq-bg-spotlight::before {
  background: radial-gradient(ellipse 60% 55% at 50% -8%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 40%, #fff) 0%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 18%, transparent) 40%,
    transparent 65%
  );
  filter: blur(4px);
}
html:not(.dark) .sq-tf-root.sq-bg-spotlight::after {
  background:
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(0,0,0,.06) 0%, transparent 70%);
}

/* ─── 4. GLASFÖNSTER — clip-path diagonal panels ─── */
/* Light: warm beige + SVG grain texture + 2 bold angled color slabs */
.sq-tf-root.sq-bg-panels {
  background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 6%, #f0eee9);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  background-size: 200px;
}
/* Left angled panel */
.sq-tf-root.sq-bg-panels::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  clip-path: polygon(0 0, 42% 0, 27% 100%, 0 100%);
  background: var(--survey-accent, #2ab4d0);
  opacity: 0.20;
}
/* Right angled panel */
.sq-tf-root.sq-bg-panels::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  clip-path: polygon(65% 0, 100% 0, 100% 100%, 51% 100%);
  background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 60%, #fff);
  opacity: 0.22;
}
/* Dark variant */
html.dark .sq-tf-root.sq-bg-panels {
  background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 8%, #0d1117);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
}
html.dark .sq-tf-root.sq-bg-panels::before { opacity: 0.18; }
html.dark .sq-tf-root.sq-bg-panels::after {
  background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 40%, rgba(255,255,255,.05));
  opacity: 0.20;
}

/* ─── 5. DIAGONAL — bold rotated stripe + dot raster + corner glow ─── */
/* Dark: dramatic angled bands crossing the viewport */
.sq-tf-root.sq-bg-diagonal {
  background: #07131c;
  overflow: hidden;
}
/* The rotating oversized stripe element */
.sq-tf-root.sq-bg-diagonal::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: -1;
  /* Oversized so rotation doesn't expose corners */
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  transform: rotate(-22deg);
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 36%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 14%, transparent) 36%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 14%, transparent) 52%,
    transparent 52%,
    transparent 63%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 7%, transparent) 63%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 7%, transparent) 70%,
    transparent 70%
  );
}
/* Fine dot raster + corner glow */
.sq-tf-root.sq-bg-diagonal::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.065) 1px, transparent 1px),
    radial-gradient(ellipse 52% 47% at 100% 100%,
      color-mix(in srgb, var(--survey-accent, #2ab4d0) 45%, transparent),
      transparent 62%
    );
  background-size: 20px 20px, 100% 100%;
  background-repeat: repeat, no-repeat;
}
/* Light variant */
html:not(.dark) .sq-tf-root.sq-bg-diagonal {
  background: #f2f0ee;
  overflow: hidden;
}
html:not(.dark) .sq-tf-root.sq-bg-diagonal::before {
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 36%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 9%, transparent) 36%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 9%, transparent) 52%,
    transparent 52%,
    transparent 63%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 5%, transparent) 63%,
    color-mix(in srgb, var(--survey-accent, #2ab4d0) 5%, transparent) 70%,
    transparent 70%
  );
}
html:not(.dark) .sq-tf-root.sq-bg-diagonal::after {
  background-image:
    radial-gradient(circle, rgba(0,0,0,.07) 1px, transparent 1px),
    radial-gradient(ellipse 52% 47% at 100% 100%,
      color-mix(in srgb, var(--survey-accent, #2ab4d0) 18%, transparent),
      transparent 62%
    );
  background-size: 20px 20px, 100% 100%;
  background-repeat: repeat, no-repeat;
}

/* ─── 6. SOLID — full accent color dominates ─── */
/* The entire background is the accent color.
   A centered radial vignette adds depth.
   The intro card is forced opaque white so text is always readable. */
.sq-tf-root.sq-bg-solid {
  background: var(--survey-accent, #2ab4d0);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 85% 75% at 50% 40%,
      color-mix(in srgb, var(--survey-accent, #2ab4d0) 100%, #fff 0%) 0%,
      color-mix(in srgb, var(--survey-accent, #2ab4d0) 72%, #000) 100%
    );
  background-size: 200px, 100% 100%;
  background-repeat: repeat, no-repeat;
}
/* Light vignette highlight at top-center for depth */
.sq-tf-root.sq-bg-solid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse 60% 40% at 50% 0%,
    rgba(255,255,255,.18) 0%,
    transparent 70%
  );
}
/* Dark-mode: deepen the accent with the dark brand color */
html.dark .sq-tf-root.sq-bg-solid {
  background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 65%, #07131c);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 85% 75% at 50% 40%,
      color-mix(in srgb, var(--survey-accent, #2ab4d0) 80%, #07131c) 0%,
      color-mix(in srgb, var(--survey-accent, #2ab4d0) 40%, #07131c) 100%
    );
  background-size: 200px, 100% 100%;
  background-repeat: repeat, no-repeat;
}
/* Force the intro card to be opaque white — readable on any accent color */
.sq-tf-root.sq-bg-solid .sq-tf-intro {
  background: rgba(255,255,255,0.93) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255,255,255,0.7) !important;
  box-shadow:
    0 4px 6px rgba(0,0,0,.06),
    0 12px 40px rgba(0,0,0,.18),
    0 32px 80px rgba(0,0,0,.12) !important;
  color: #07131c !important;
}
html.dark .sq-tf-root.sq-bg-solid .sq-tf-intro {
  background: rgba(7,19,28,0.88) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
}
/* Ensure text inside card is always dark (light bg) or light (dark bg) */
.sq-tf-root.sq-bg-solid .sq-tf-intro .sq-tf-eyebrow,
.sq-tf-root.sq-bg-solid .sq-tf-intro .sq-tf-intro-title,
.sq-tf-root.sq-bg-solid .sq-tf-intro .sq-tf-intro-desc,
.sq-tf-root.sq-bg-solid .sq-tf-intro .sq-tf-intro-meta {
  color: #07131c;
}
html.dark .sq-tf-root.sq-bg-solid .sq-tf-intro .sq-tf-eyebrow,
html.dark .sq-tf-root.sq-bg-solid .sq-tf-intro .sq-tf-intro-title,
html.dark .sq-tf-root.sq-bg-solid .sq-tf-intro .sq-tf-intro-desc,
html.dark .sq-tf-root.sq-bg-solid .sq-tf-intro .sq-tf-intro-meta {
  color: rgba(255,255,255,.9);
}

/* ── Solid-bakgrund: kontrast baserat på accentfärgens luminans ──────────────
   sq-accent-on-light = ljus accent  → mörk text (svart)
   sq-accent-on-dark  = mörk accent  → ljus text (vit)
   Klassen sätts av surveySetAccentContrast() i survey.js
   ────────────────────────────────────────────────────────────────────────── */

/* LJUS ACCENT → mörk text */
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-eyebrow { color: rgba(0,0,0,0.55); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-eyebrow-line { background: rgba(0,0,0,0.35); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-q-text { color: rgba(0,0,0,0.88); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-counter { color: rgba(0,0,0,0.40); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-back { color: rgba(0,0,0,0.45); border-color: rgba(0,0,0,0.18); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-option { border-color: rgba(0,0,0,0.15); background: rgba(255,255,255,0.45); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-option-text { color: rgba(0,0,0,0.75); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-option-letter { color: rgba(0,0,0,0.50); border-color: rgba(0,0,0,0.20); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-yesno-btn,
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-scale-btn,
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-nps-btn,
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-opinion-btn { border-color: rgba(0,0,0,0.18); background: rgba(255,255,255,0.45); color: rgba(0,0,0,0.70); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-textarea,
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-text-input,
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-email-input,
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-number-input { background: rgba(255,255,255,0.70); border-color: rgba(0,0,0,0.15); color: #07131c; }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-scale-label,
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-nps-label,
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-skip { color: rgba(0,0,0,0.45); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-ok-btn,
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-submit-btn { background: rgba(0,0,0,0.75); color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.sq-tf-root.sq-bg-solid.sq-accent-on-light .sq-tf-progress-fill { background: rgba(0,0,0,0.40); }

/* MÖRK ACCENT → ljus text */
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-eyebrow { color: rgba(255,255,255,0.75); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-eyebrow-line { background: rgba(255,255,255,0.55); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-q-text { color: #fff; }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-counter { color: rgba(255,255,255,0.55); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-back { color: rgba(255,255,255,0.70); border-color: rgba(255,255,255,0.35); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-option { border-color: rgba(255,255,255,0.40); background: rgba(255,255,255,0.12); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-option-text { color: rgba(255,255,255,0.92); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-option-letter { color: rgba(255,255,255,0.70); border-color: rgba(255,255,255,0.40); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-yesno-btn,
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-scale-btn,
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-nps-btn,
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-opinion-btn { border-color: rgba(255,255,255,0.40); background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.95); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-textarea,
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-text-input,
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-email-input,
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-number-input { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); color: #fff; }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-scale-label,
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-nps-label,
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-skip { color: rgba(255,255,255,0.65); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-ok-btn,
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-submit-btn { background: rgba(255,255,255,0.95); color: #07131c; box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
.sq-tf-root.sq-bg-solid.sq-accent-on-dark .sq-tf-progress-fill { background: rgba(255,255,255,0.65); }

/* Wizard thumbnail */
.wz-bg-thumb--solid {
  background: var(--wz-accent, #2ab4d0);
  background-image: radial-gradient(ellipse 80% 70% at 50% 40%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 100%, transparent) 0%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 70%, #000) 100%
  );
}

/* ── Settings page ──────────────────────────────────────────── */
.settings-logo-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--cs-border); border-radius: 12px;
  padding: 2.5rem 1.5rem; cursor: pointer; gap: .25rem;
  transition: border-color .15s ease, background .15s ease;
}
.settings-logo-dropzone:hover {
  border-color: var(--cs-accent);
  background: color-mix(in srgb, var(--cs-accent) 5%, transparent);
}
.settings-logo-preview {
  display: inline-flex; flex-direction: column;
}
.settings-logo-img {
  max-height: 80px; max-width: 280px;
  object-fit: contain; border-radius: 8px;
  padding: .75rem; background: var(--cs-bg);
  border: 1px solid var(--cs-border);
}

/* Top progress line */
.sq-tf-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: var(--sq-tf-prog-bg);
}
.sq-tf-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--survey-accent, #2ab4d0) 0%, color-mix(in srgb, var(--survey-accent, #2ab4d0) 70%, #fff) 100%);
  border-radius: 0 2px 2px 0;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Nav bar */
.sq-tf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 199;
  pointer-events: none;
}
.sq-tf-nav > * { pointer-events: auto; }
.sq-tf-back {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--sq-tf-border);
  background: transparent;
  color: var(--sq-tf-text-3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.sq-tf-back:hover { border-color: var(--sq-tf-back-hbdr); color: var(--sq-tf-back-hfg); background: var(--sq-tf-back-hbg); }
.sq-tf-back:disabled { opacity: 0.2; cursor: not-allowed; pointer-events: none; }
.sq-tf-counter {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .06em;
  color: var(--sq-tf-muted);
}

/* Stage — centers content */
.sq-tf-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 1.5rem 100px;
  min-height: 100vh;
}
.sq-tf-question-wrap {
  width: 100%;
  max-width: 680px;
}

/* Question entry/exit animations */
.sq-tf-q {
  animation: sqTfEnterUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sq-tf-q.sq-tf-exiting {
  animation: sqTfExitUp 0.26s ease-in both !important;
  pointer-events: none;
}
.sq-tf-q.sq-tf-exiting-down {
  animation: sqTfExitDown 0.26s ease-in both !important;
  pointer-events: none;
}
.sq-tf-q.sq-tf-entering-back {
  animation: sqTfEnterDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

@keyframes sqTfEnterUp {
  from { opacity: 0; transform: translateY(52px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sqTfExitUp {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-52px); }
}
@keyframes sqTfEnterDown {
  from { opacity: 0; transform: translateY(-52px); }
  to   { opacity: 1; transform: none; }
}
@keyframes sqTfExitDown {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(52px); }
}

/* Question eyebrow */
.sq-tf-eyebrow {
  display: flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--survey-accent, #2ab4d0); margin-bottom: 1rem;
}
.sq-tf-eyebrow-line {
  width: 18px; height: 2px;
  background: var(--survey-accent, #2ab4d0); border-radius: 1px; flex-shrink: 0;
}

/* Question text */
.sq-tf-q-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  color: var(--sq-tf-text);
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 1.875rem;
}

/* Controls wrapper */
.sq-tf-controls { margin-bottom: 2rem; }

/* Textarea */
.sq-tf-textarea {
  width: 100%; min-height: 120px;
  background: var(--sq-tf-input-bg);
  border: 2px solid var(--sq-tf-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--sq-tf-text); font-family: inherit; font-size: 1.0625rem;
  line-height: 1.6; resize: vertical; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.sq-tf-textarea:focus { border-color: var(--survey-accent, #2ab4d0); background: var(--sq-tf-input-f); }
.sq-tf-textarea::placeholder { color: var(--sq-tf-ph); }

/* Text / number inputs */
.sq-tf-text-input, .sq-tf-number-input {
  background: var(--sq-tf-input-bg);
  border: 2px solid var(--sq-tf-border);
  border-radius: 12px;
  padding: .9375rem 1.25rem;
  color: var(--sq-tf-text); font-family: inherit; font-size: 1.0625rem;
  outline: none; width: 100%;
  transition: border-color .2s ease, background .2s ease;
}
.sq-tf-number-input { max-width: 100%; }
.sq-tf-number-input::-webkit-outer-spin-button,
.sq-tf-number-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sq-tf-number-input { -moz-appearance: textfield; }
.sq-tf-text-input:focus, .sq-tf-number-input:focus {
  border-color: var(--survey-accent, #2ab4d0); background: var(--sq-tf-input-f);
}
.sq-tf-text-input::placeholder, .sq-tf-number-input::placeholder { color: var(--sq-tf-ph); }

/* Input validation error */
.sq-tf-input-error {
  margin: .5rem 0 0; font-size: .8125rem; color: #e82535;
  display: flex; align-items: center; gap: .3rem;
}

/* Email input with icon */
.sq-tf-input-wrap { position: relative; }
.sq-tf-input-icon {
  position: absolute; left: 1.125rem; top: 50%;
  transform: translateY(-50%);
  color: var(--sq-tf-muted); font-size: .9375rem; pointer-events: none;
}
.sq-tf-email-input {
  background: var(--sq-tf-input-bg);
  border: 2px solid var(--sq-tf-border);
  border-radius: 12px;
  padding: 1.375rem 1.25rem 1.375rem 3.25rem;
  color: var(--sq-tf-text); font-family: inherit; font-size: 1.25rem;
  outline: none; width: 100%;
  transition: border-color .2s ease, background .2s ease;
}
.sq-tf-input-icon { font-size: 1.125rem; left: 1.25rem; }
.sq-tf-email-input:focus { border-color: var(--survey-accent, #2ab4d0); background: var(--sq-tf-input-f); }
.sq-tf-email-input::placeholder { color: var(--sq-tf-ph); }

/* Multiple choice */
.sq-tf-options { display: flex; flex-direction: column; gap: .5rem; }
.sq-tf-option {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1.125rem;
  border: 2px solid var(--sq-tf-border);
  border-radius: 10px; cursor: pointer;
  background: var(--sq-tf-surface-2);
  transition: border-color .13s ease, background .13s ease, transform .18s cubic-bezier(0.34,1.56,0.64,1);
}
.sq-tf-option:hover { border-color: color-mix(in srgb, var(--survey-accent, #2ab4d0) 45%, transparent); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 7%, transparent); transform: translateX(4px); }
.sq-tf-option:active { transform: translateX(2px) scale(0.975); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 18%, transparent); border-color: var(--survey-accent, #2ab4d0); transition: transform .07s ease, background .07s ease; }
.sq-tf-option.selected { border-color: var(--survey-accent, #2ab4d0); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 12%, transparent); transform: translateX(4px); }
.sq-tf-option-letter {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1.5px solid var(--sq-tf-border-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--sq-tf-text-3);
  flex-shrink: 0;
  transition: border-color .13s ease, background .13s ease, color .13s ease;
}
.sq-tf-option.selected .sq-tf-option-letter { border-color: var(--survey-accent, #2ab4d0); background: var(--survey-accent, #2ab4d0); color: #fff; }
.sq-tf-option-text { font-size: .9375rem; font-weight: 500; color: var(--sq-tf-text-2); }
.sq-tf-option.selected .sq-tf-option-text { color: var(--sq-tf-text); }

/* Yes / No */
.sq-tf-yesno { display: flex; gap: .75rem; }
.sq-tf-yesno-btn {
  flex: 1; padding: 1.125rem 1rem;
  border-radius: 12px; border: 2px solid var(--sq-tf-border);
  background: var(--sq-tf-surface-2);
  color: var(--sq-tf-text-2); font-family: inherit;
  font-size: 1.0625rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  transition: border-color .13s ease, background .13s ease, color .13s ease,
              transform .18s cubic-bezier(0.34,1.56,0.64,1);
}
.sq-tf-yesno-btn:hover { border-color: color-mix(in srgb, var(--survey-accent, #2ab4d0) 45%, transparent); transform: translateY(-2px); }
.sq-tf-yesno-btn:active { transform: scale(0.96); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 22%, transparent); border-color: var(--survey-accent, #2ab4d0); transition: transform .07s ease, background .07s ease; }
.sq-tf-yesno-btn.selected { border-color: var(--survey-accent, #2ab4d0); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 14%, transparent); color: var(--sq-tf-text); transform: translateY(-2px); }

/* Scale 1–5 */
.sq-tf-scale { display: flex; gap: .5rem; }
.sq-tf-scale-btn {
  flex: 1; aspect-ratio: 1; min-width: 0;
  border-radius: 10px; border: 2px solid var(--sq-tf-border);
  background: var(--sq-tf-surface-2);
  color: var(--sq-tf-text-2); font-family: inherit;
  font-size: 1.125rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .12s ease, background .12s ease, color .12s ease,
              transform .18s cubic-bezier(0.34,1.56,0.64,1);
}
.sq-tf-scale-btn:hover { border-color: color-mix(in srgb, var(--survey-accent, #2ab4d0) 45%, transparent); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 8%, transparent); transform: translateY(-3px); }
.sq-tf-scale-btn:active { transform: scale(0.92); background: var(--survey-accent, #2ab4d0); border-color: var(--survey-accent, #2ab4d0); color: #fff; transition: transform .07s ease, background .07s ease; }
.sq-tf-scale-btn.selected { border-color: var(--survey-accent, #2ab4d0); background: var(--survey-accent, #2ab4d0); color: #fff; transform: translateY(-3px); }
.sq-tf-scale-labels { display: flex; justify-content: space-between; margin-top: .5rem; }
.sq-tf-scale-label { font-size: .75rem; color: var(--sq-tf-muted); }

/* Stars */
.sq-tf-stars {
  display: flex; gap: 1rem; justify-content: center;
  padding: .875rem 0;
}
.sq-tf-star {
  background: none; border: none; padding: .25rem;
  font-size: 5rem; cursor: pointer;
  color: var(--sq-tf-star-0);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .12s ease, transform .22s cubic-bezier(0.34,1.56,0.64,1), filter .15s ease;
  line-height: 1; user-select: none;
}
.sq-tf-star.lit {
  color: #f59e0b;
  filter: drop-shadow(0 2px 10px rgba(245,158,11,0.55));
}
.sq-tf-star:hover { transform: scale(1.3); color: #fbbf24; }
.sq-tf-star:active { transform: scale(0.9); }

/* Date — unified card, full-width like other inputs */
.sq-tf-date {
  display: flex; align-items: center; gap: 0;
  width: 100%;
  background: var(--sq-tf-input-bg);
  border: 2px solid var(--sq-tf-border);
  border-radius: 18px;
  padding: .25rem .875rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.sq-tf-date:focus-within {
  border-color: var(--survey-accent, #2ab4d0);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--survey-accent, #2ab4d0) 18%, transparent);
}
.sq-tf-date-num {
  background: none; border: none; border-radius: 0;
  padding: 1rem .5rem;
  color: var(--sq-tf-text); font-family: inherit;
  font-size: 2.5rem; font-weight: 800;
  text-align: center; outline: none;
  caret-color: var(--survey-accent, #2ab4d0);
  transition: color .2s ease;
}
.sq-tf-date-num:focus { color: var(--survey-accent, #2ab4d0); background: none; }
.sq-tf-date-num::placeholder { color: var(--sq-tf-ph); font-size: 1rem; font-weight: 400; }
.sq-tf-date-dd, .sq-tf-date-mm, .sq-tf-date-yyyy { flex: 1; min-width: 0; }
.sq-tf-date-sep {
  color: var(--sq-tf-date-sep); font-size: 2rem; font-weight: 200;
  user-select: none; flex-shrink: 0;
}

/* NPS (0–10) */
.sq-tf-nps { display: flex; gap: .375rem; flex-wrap: wrap; }
.sq-tf-nps-btn {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 10px; border: 2px solid var(--sq-tf-border);
  background: var(--sq-tf-surface-2);
  color: var(--sq-tf-text-2); font-family: inherit;
  font-size: .9375rem; font-weight: 700; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease,
              transform .18s cubic-bezier(0.34,1.56,0.64,1);
}
.sq-tf-nps-btn:hover { border-color: color-mix(in srgb, var(--survey-accent, #2ab4d0) 45%, transparent); transform: translateY(-3px); }
.sq-tf-nps-btn:active { transform: scale(0.90); background: var(--survey-accent, #2ab4d0); border-color: var(--survey-accent, #2ab4d0); color: #fff; transition: transform .07s ease, background .07s ease; }
.sq-tf-nps-btn.selected { border-color: var(--survey-accent, #2ab4d0); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 18%, transparent); color: var(--sq-tf-text); transform: translateY(-3px); }
.sq-tf-nps-labels { display: flex; justify-content: space-between; margin-top: .5rem; }
.sq-tf-nps-label { font-size: .75rem; color: var(--sq-tf-muted); }
/* NPS zone tints */
.sq-tf-nps-btn.nps-detractor { border-color: rgba(232,37,53,0.22); }
.sq-tf-nps-btn.nps-passive   { border-color: rgba(245,158,11,0.22); }
.sq-tf-nps-btn.nps-promoter  { border-color: rgba(34,197,94,0.22);  }
.sq-tf-nps-btn.selected { border-color: var(--survey-accent, #2ab4d0) !important; background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 18%, transparent); color: var(--sq-tf-text); }

/* Opinion Scale */
.sq-tf-opinion {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center;
}
.sq-tf-opinion-btn {
  width: 56px; height: 52px; padding: 0; flex-shrink: 0;
  border-radius: 10px; border: 2px solid var(--sq-tf-border);
  background: var(--sq-tf-surface-2);
  color: var(--sq-tf-text-2); font-family: inherit;
  font-size: .9375rem; font-weight: 700; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease,
              transform .18s cubic-bezier(0.34,1.56,0.64,1);
}
.sq-tf-opinion-btn:hover { border-color: color-mix(in srgb, var(--survey-accent, #2ab4d0) 45%, transparent); transform: translateY(-3px); }
.sq-tf-opinion-btn:active { transform: scale(0.90); background: var(--survey-accent, #2ab4d0); border-color: var(--survey-accent, #2ab4d0); color: #fff; transition: transform .07s ease, background .07s ease; }
.sq-tf-opinion-btn.selected { border-color: var(--survey-accent, #2ab4d0); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 18%, transparent); color: var(--sq-tf-text); transform: translateY(-3px); }
/* Labels row — always visible, anchors the scale endpoints */
.sq-tf-opinion-labels {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .625rem; padding: 0 .125rem;
}
.sq-tf-opinion-label-end {
  display: flex; align-items: center; gap: .375rem;
  font-size: .8rem; color: var(--sq-tf-muted);
}
.sq-tf-opinion-label-num {
  font-size: 1.0625rem; font-weight: 800;
  color: var(--sq-tf-text-2); font-family: inherit;
  line-height: 1;
}

/* Ranking */
.sq-tf-ranking { display: flex; flex-direction: column; gap: .5rem; }
.sq-tf-rank-item {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem;
  border-radius: 12px; border: 2px solid var(--sq-tf-border);
  background: var(--sq-tf-surface-2);
  color: var(--sq-tf-text-2);
  font-size: .9375rem; font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
.sq-tf-rank-item:hover { border-color: color-mix(in srgb, var(--survey-accent, #2ab4d0) 30%, transparent); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 5%, transparent); }
.sq-tf-rank-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 14%, transparent); border: 1.5px solid color-mix(in srgb, var(--survey-accent, #2ab4d0) 28%, transparent);
  color: var(--survey-accent, #2ab4d0); font-size: .75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sq-tf-rank-text { flex: 1; }
.sq-tf-rank-arrows { display: flex; flex-direction: column; gap: 2px; }
.sq-tf-rank-arrow {
  width: 28px; height: 24px; border-radius: 6px;
  border: 1.5px solid var(--sq-tf-border);
  background: transparent;
  color: var(--sq-tf-text-3);
  font-size: .65rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.sq-tf-rank-arrow:hover:not(:disabled) { border-color: color-mix(in srgb, var(--survey-accent, #2ab4d0) 50%, transparent); color: var(--survey-accent, #2ab4d0); background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 8%, transparent); }
.sq-tf-rank-arrow:disabled { opacity: 0.2; cursor: not-allowed; }

/* Footer */
.sq-tf-footer { display: flex; align-items: center; gap: .875rem; flex-wrap: wrap; }
.sq-tf-ok-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .75rem 1.5rem; border-radius: 8px; border: none;
  background: var(--survey-accent, #2ab4d0); color: #fff;
  font-family: inherit; font-size: .9375rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--survey-accent, #2ab4d0) 40%, transparent);
  transition: opacity .15s ease, transform .18s cubic-bezier(0.34,1.56,0.64,1), box-shadow .15s ease;
}
.sq-tf-ok-btn:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--survey-accent, #2ab4d0) 50%, transparent); }
.sq-tf-ok-btn:active { transform: none; }
.sq-tf-ok-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.sq-tf-keyboard-hint {
  display: flex; align-items: center; gap: .35rem;
}
.sq-tf-kbd-plus {
  font-size: .75rem; color: var(--sq-tf-muted); line-height: 1;
  font-size: .8rem; color: var(--sq-tf-muted);
}
.sq-tf-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem .45rem;
  border-radius: 4px;
  border: 1px solid var(--sq-tf-kbd-bdr);
  border-bottom: 2px solid var(--sq-tf-kbd-bdr);
  background: var(--sq-tf-kbd-bg);
  font-size: .7rem; font-weight: 600; font-family: inherit;
  line-height: 1;
  color: var(--sq-tf-kbd-fg);
  white-space: nowrap;
}
.sq-tf-skip {
  font-size: .8125rem; color: var(--sq-tf-muted);
  background: transparent; border: none; cursor: pointer;
  padding: .375rem .5rem; border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.sq-tf-skip:hover { color: var(--sq-tf-text-2); background: var(--sq-tf-skip-hbg); }

/* Submit */
.sq-tf-submit-btn {
  display: inline-flex; align-items: center; gap: .625rem;
  padding: 1rem 2.5rem; border-radius: 12px; border: none;
  background: var(--survey-accent, #2ab4d0); color: #fff;
  font-family: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--survey-accent, #2ab4d0) 45%, transparent);
  transition: opacity .15s ease, transform .18s cubic-bezier(0.34,1.56,0.64,1), box-shadow .15s ease;
}
.sq-tf-submit-btn:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 28px color-mix(in srgb, var(--survey-accent, #2ab4d0) 55%, transparent); }
.sq-tf-submit-btn:active { transform: none; }
.sq-tf-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Intro — liquid glass card */
.sq-tf-intro {
  animation: sqTfEnterUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 10%, rgba(255,255,255,0.55));
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1.5px solid color-mix(in srgb, var(--survey-accent, #2ab4d0) 28%, rgba(255,255,255,0.6));
  border-radius: 20px;
  padding: 2.5rem 2.75rem;
  box-shadow:
    0 8px 40px color-mix(in srgb, var(--survey-accent, #2ab4d0) 16%, transparent),
    0 2px 8px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.7);
  max-width: 600px;
}
html.dark .sq-tf-intro {
  background: color-mix(in srgb, var(--survey-accent, #2ab4d0) 12%, rgba(7,19,28,0.55));
  border-color: color-mix(in srgb, var(--survey-accent, #2ab4d0) 30%, rgba(255,255,255,0.08));
  box-shadow:
    0 8px 40px color-mix(in srgb, var(--survey-accent, #2ab4d0) 20%, transparent),
    0 2px 8px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.sq-tf-intro-label {
  display: inline-block; font-size: .6875rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--survey-accent, #2ab4d0); margin-bottom: 1.125rem;
}
.sq-tf-intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 700; color: var(--sq-tf-text);
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1.125rem;
  overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.sq-tf-intro-desc {
  color: var(--sq-tf-text-2); font-size: .9375rem;
  line-height: 1.7; margin-bottom: 1.875rem; max-width: 520px;
}
.sq-tf-intro-meta {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap; margin-bottom: 2.25rem;
}
.sq-tf-intro-meta-item {
  display: flex; align-items: center; gap: .375rem;
  font-size: .875rem; color: var(--sq-tf-muted);
}
.sq-tf-intro-meta-item i { color: var(--survey-accent, #2ab4d0); }
.sq-tf-org-logo {
  max-height: 52px; max-width: 180px; width: auto;
  object-fit: contain; margin-bottom: 1.75rem;
  opacity: 0.92; display: block;
}
.sq-tf-start-btn {
  display: inline-flex; align-items: center; gap: .625rem;
  padding: .9375rem 2rem; border-radius: 10px; border: none;
  background: var(--survey-accent, #2ab4d0); color: #fff;
  font-family: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--survey-accent, #2ab4d0) 45%, transparent);
  transition: opacity .15s ease, transform .18s cubic-bezier(0.34,1.56,0.64,1), box-shadow .15s ease;
}
.sq-tf-start-btn:hover { opacity: .88; transform: translateY(-2px); box-shadow: 0 8px 28px color-mix(in srgb, var(--survey-accent, #2ab4d0) 55%, transparent); }

/* Preview banner */
.sq-tf-preview-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 36px;
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: var(--survey-accent, #2ab4d0);
  color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.sq-tf-preview-back {
  position: absolute; right: 1rem;
  color: rgba(255,255,255,0.85); font-size: .75rem; font-weight: 600;
  text-decoration: none; display: flex; align-items: center;
  transition: color .15s ease;
}
.sq-tf-preview-back:hover { color: #fff; }

/* Start row — button + privacy stacked */
.sq-tf-start-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: .875rem;
}

/* Privacy */
.sq-tf-privacy {
  display: flex; align-items: center; gap: .35rem;
  font-size: .75rem; color: var(--sq-tf-muted); margin: 0;
}
.sq-tf-privacy i { font-size: .7rem; }

/* ── 26. Blazor error UI ────────────────────────────────────── */
#blazor-error-ui {
  background: var(--cs-cta);
  bottom: 0;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.2);
  display: none;
  left: 0;
  padding: 0.75rem 1.5rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  color: white;
  font-family: var(--font-body);
  font-size: 0.875rem;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  font-size: 1.25rem;
}

/* ── 24. Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cs-surface-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cs-text-muted); }


/* Mobile overlay */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99;
  animation: adminOverlayIn .2s ease;
}
@keyframes adminOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── 25. Responsive ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.admin-sidebar-open { transform: translateX(0); }
  .admin-sidebar-overlay { display: block; }
  .admin-float-burger { display: flex; }
  .admin-content { margin-left: 0; }
  .admin-page-content { padding: 3.5rem 1.25rem 1.25rem; }
  .section-pad { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
  .cs-navbar { padding: 1rem 1.25rem; }
}

/* ── 27. Theme Toggle Button ────────────────────────────────── */
.cs-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--cs-surface-2);
  background: var(--cs-white);
  color: var(--cs-text-secondary);
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              box-shadow var(--duration-base) ease,
              transform var(--duration-fast) var(--ease-spring);
}
.cs-theme-btn:hover {
  border-color: var(--cs-accent);
  color: var(--cs-primary);
  background: rgba(42,180,208,0.07);
  transform: scale(1.08);
}
.cs-theme-btn:focus-visible {
  outline: 2px solid var(--cs-accent);
  outline-offset: 2px;
}
.cs-theme-btn:active { transform: scale(0.94); }

/* Sun icon — visible in light mode, hidden in dark */
.cs-theme-btn .icon-sun {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transform-origin: 12px 12px;
  transition: opacity 0.25s ease,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cs-theme-btn.is-dark .icon-sun {
  opacity: 0;
  transform: scale(0.3) rotate(-45deg);
}

/* Moon icon — hidden in light mode, visible in dark */
.cs-theme-btn .icon-moon {
  opacity: 0;
  transform: scale(0.3) rotate(45deg);
  transform-origin: 12px 12px;
  transition: opacity 0.25s ease,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cs-theme-btn.is-dark .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Floating wrapper in SurveyLayout */
.cs-theme-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
}

/* ── 28. Dark Mode ──────────────────────────────────────────── */
html.dark {
  --cs-surface:        #0d1b26;
  --cs-surface-2:      #1a2f42;
  --cs-white:          #162535;
  --cs-text:           #d4e8f5;
  --cs-text-secondary: #7ab0c8;
  --cs-text-muted:     #6a9db5;
  --bs-body-bg:        #0d1b26;
  --bs-body-color:     #d4e8f5;
  --bs-border-color:   #1a2f42;
}

html.dark body {
  background-color: var(--cs-surface);
  color: var(--cs-text);
}

/* Admin layout */
html.dark .admin-layout { background: var(--cs-surface); }


html.dark .admin-page-content {
  background: var(--cs-surface);
}

/* Theme toggle button in dark mode */
html.dark .cs-theme-btn {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text-secondary);
}
html.dark .cs-theme-btn:hover {
  background: rgba(42,180,208,0.12);
  border-color: var(--cs-accent);
  color: var(--cs-accent);
}

/* Tables */
html.dark .cs-table td,
html.dark .cs-table th { border-color: var(--cs-surface-2); }
html.dark .cs-table tbody tr:hover { background: var(--cs-surface-2); }

/* Form controls */
html.dark .form-control,
html.dark .form-select {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text);
}
html.dark .form-control:focus,
html.dark .form-select:focus {
  background: #1e374e;
  border-color: var(--cs-accent);
  color: var(--cs-text);
}
html.dark .form-control::placeholder,
html.dark input::placeholder,
html.dark select::placeholder { color: var(--cs-text-muted); }

/* Cards */
html.dark .cs-card {
  background: var(--cs-white);
  border-color: var(--cs-surface-2);
}
html.dark .cs-card:hover { border-color: var(--cs-accent-light); }

html.dark .cs-card-flat { background: var(--cs-surface-2); }

/* Badges */
html.dark .cs-badge-active  { background: rgba(13,110,71,0.25); color: #6dd9a8; }
html.dark .cs-badge-draft   { background: var(--cs-surface-2); color: var(--cs-text-secondary); }
html.dark .cs-badge-closed  { background: var(--cs-surface-2); color: var(--cs-text-muted); }

/* Alerts */
html.dark .cs-alert-warning {
  background: rgba(122, 92, 0, 0.15);
  border-color: rgba(255, 217, 112, 0.3);
  color: #f5d87a;
}
html.dark .cs-alert-success {
  background: rgba(13, 110, 71, 0.15);
  border-color: rgba(109, 217, 168, 0.3);
  color: #6dd9a8;
}

/* Question builder */
html.dark .qb-card {
  background: var(--cs-white);
  border-color: var(--cs-surface-2);
}
html.dark .qb-card:focus-within {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,0.10);
}
html.dark .qb-empty-state {
  background: var(--cs-white);
  border-color: var(--cs-surface-2);
}
html.dark .qb-question-input { color: var(--cs-text); }
html.dark .qb-question-input::placeholder { color: var(--cs-text-muted); }
html.dark .qb-type-row { border-bottom-color: var(--cs-surface-2); }
html.dark .qb-type-chip {
  border-color: var(--cs-surface-2);
  color: var(--cs-text-secondary);
}
html.dark .qb-type-chip:hover {
  border-color: var(--cs-accent);
  color: var(--cs-text);
  background: rgba(42,180,208,0.08);
}
html.dark .qb-option-input {
  color: var(--cs-text);
  border-bottom-color: var(--cs-surface-2);
}
html.dark .qb-preview-pill,
html.dark .qb-preview-scale {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text-secondary);
}
html.dark .qb-add-card {
  border-color: var(--cs-surface-2);
  color: var(--cs-text-muted);
}
html.dark .qb-add-card:hover {
  border-color: var(--cs-accent);
  color: var(--cs-accent);
  background: rgba(42,180,208,0.06);
}
html.dark .qb-card-number {
  background: var(--cs-surface-2);
  border-color: #243f55;
}

/* Publish step */
html.dark .pub-review-card {
  background: var(--cs-white);
  border-color: var(--cs-surface-2);
}
html.dark .pub-question-list-header {
  background: var(--cs-surface-2);
  color: var(--cs-text-muted);
}
html.dark .pub-question-row { border-bottom-color: var(--cs-surface-2); }
html.dark .pub-q-text { color: var(--cs-text); }
html.dark .pub-preview-btn {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text-secondary);
}
html.dark .pub-preview-btn:hover {
  border-color: var(--cs-accent);
  color: var(--cs-accent);
  background: rgba(42,180,208,0.08);
}
html.dark .pub-csv-dropzone {
  border-color: var(--cs-surface-2);
}
html.dark .pub-csv-dropzone:hover {
  border-color: var(--cs-accent);
  background: rgba(42,180,208,0.05);
}

/* Survey page (SurveyPage / public survey) */
html.dark .sq-page-wrap {
  background:
    radial-gradient(ellipse 75% 45% at 8% -5%,  rgba(42,180,208,0.05) 0%, transparent 58%),
    radial-gradient(ellipse 55% 38% at 92% 108%, rgba(13,80,104,0.05) 0%, transparent 52%),
    var(--cs-surface);
}

html.dark .sq-sticky-progress {
  background: rgba(13,27,38,0.92);
  border-bottom-color: var(--cs-surface-2);
}

html.dark .sq-sticky-progress-track { background: var(--cs-surface-2); }

html.dark .sq-card {
  background: var(--cs-white);
  border-color: var(--cs-surface-2);
}
html.dark .sq-card:focus-within {
  border-color: rgba(42,180,208,0.5);
  border-left-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,0.07);
}

html.dark .sq-card-answered {
  background: #1a3044 !important;
  border-left-color: #2ab4d0 !important;
  border-color: rgba(42,180,208,0.25) !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.15) !important;
}

html.dark .sq-answered-badge {
  background: rgba(109,217,168,0.15);
  border-color: rgba(109,217,168,0.3);
  color: #6dd9a8;
}

html.dark .sq-q-text { color: var(--cs-text); }
html.dark .sq-meta-item { color: var(--cs-text-muted); }

html.dark .sq-radio-label {
  border-color: var(--cs-surface-2);
  color: var(--cs-text);
}
html.dark .sq-radio-label:hover {
  border-color: var(--cs-accent);
  background: rgba(42,180,208,0.06);
}
html.dark .sq-radio-label.selected {
  border-color: var(--cs-accent);
  background: linear-gradient(90deg, rgba(42,180,208,0.12) 0%, rgba(42,180,208,0.04) 100%);
}
html.dark .sq-radio-label.selected .sq-radio-text { color: var(--cs-accent-light); }
html.dark .sq-radio-dot { border-color: var(--cs-surface-2); }
html.dark .sq-radio-text { color: var(--cs-text); }

html.dark .sq-yesno-label {
  border-color: var(--cs-surface-2);
  color: var(--cs-text-secondary);
  background: transparent;
}
html.dark .sq-yesno-label:hover {
  border-color: var(--cs-accent);
  background: rgba(42,180,208,0.06);
  color: var(--cs-text);
}
html.dark .sq-yesno-label.selected {
  border-color: var(--cs-primary);
  background: var(--cs-primary);
  color: var(--cs-white);
}

html.dark .sq-scale-btn {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text-secondary);
}
html.dark .sq-scale-btn:hover {
  border-color: var(--cs-accent);
  color: var(--cs-text);
  background: rgba(42,180,208,0.10);
}

html.dark .sq-textarea,
html.dark .sq-number-input {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text);
}
html.dark .sq-textarea:focus,
html.dark .sq-number-input:focus {
  background: #1e374e;
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,0.10);
}

/* Scrollbar in dark mode */
html.dark ::-webkit-scrollbar-thumb { background: var(--cs-surface-2); }
html.dark ::-webkit-scrollbar-thumb:hover { background: #243f55; }

/* ── Fix: --cs-white is remapped to dark card bg in dark mode.
   Anywhere it's used as TEXT color, force to actual white. ── */
html.dark .btn-primary,
html.dark .btn-primary:hover,
html.dark .btn-primary:focus-visible { color: #fff; }

html.dark .btn-cta,
html.dark .btn-cta:hover,
html.dark .btn-cta:focus-visible { color: #fff; }

html.dark .btn-ghost-dark,
html.dark .btn-ghost-dark:hover,
html.dark .btn-ghost-dark:focus-visible { color: #fff; }

html.dark .sq-yesno-label.selected { color: #fff; }
html.dark .sq-scale-btn.selected   { color: #fff; }

html.dark .admin-sidebar-brand a { color: #fff; }
html.dark .admin-nav-item.active  { color: #fff; }

/* ── Navbar in dark mode ────────────────────────────────────── */

/* Non-scrolled state: navbar sits on dark hero — brand & hover colours
   use var(--cs-white) which remaps to dark in dark mode → fix to real white */
html.dark .cs-navbar:not(.scrolled) .cs-navbar-brand { color: #ffffff; }
html.dark .cs-navbar:not(.scrolled) .cs-navbar-links a:hover { color: #ffffff; }

/* Scrolled state */
html.dark .cs-navbar.scrolled {
  background: rgba(13,27,38,0.95);
  box-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
html.dark .cs-navbar.scrolled .cs-navbar-brand { color: var(--cs-text); }
html.dark .cs-navbar.scrolled .cs-navbar-links a { color: var(--cs-text-secondary); }
html.dark .cs-navbar.scrolled .cs-navbar-links a:hover { color: var(--cs-text); }

/* ── Survey header title (--cs-white is now dark bg, not white) ─ */
html.dark .sq-header-title { color: #ffffff; }

/* ── Public page surface sections ────────────────────────────── */

/* "How it works" section uses inline background:var(--cs-white) which becomes
   dark card bg — text colors are already token-driven and remap fine.
   The big step numbers use color:var(--cs-surface-2) — give them more contrast. */
html.dark .section-surface {
  background: var(--cs-surface);
}
html.dark .section-surface h2,
html.dark .section-surface h3,
html.dark .section-surface .display-section { color: var(--cs-text); }
html.dark .section-surface .lead-text { color: var(--cs-text-secondary); }
html.dark .section-surface .eyebrow-dark { color: var(--cs-text-muted); }
html.dark .section-surface .accordion-button { color: var(--cs-text); }
html.dark .section-surface .accordion-button:not(.collapsed) { color: var(--cs-accent-light); }
html.dark .section-surface .accordion-body { color: var(--cs-text-secondary); }
html.dark .section-surface .accordion-item,
html.dark .section-surface .accordion-button { border-bottom-color: var(--cs-surface-2); }
html.dark .section-surface .accordion-button::after { filter: invert(0.7); }

/* "How it works" inline white-background section */
html.dark [style*="background:var(--cs-white)"] .h5,
html.dark [style*="background:var(--cs-white)"] h3 { color: var(--cs-text); }

/* "How it works" step numbers use color:var(--cs-surface-2) inline.
   In dark mode --cs-surface-2 = #1a2f42 (nearly invisible on dark bg).
   Remap to a subtle teal glow so they remain decorative but legible. */
html.dark [style*="color:var(--cs-surface-2)"] {
  color: rgba(42,180,208,0.28) !important;
}

/* Pricing cards — non-featured card on dark section background.
   Inline color:var(--cs-white) has higher specificity than class rules,
   so !important is required to override it. */
html.dark .pricing-card:not(.featured) {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: var(--cs-text) !important;
}
html.dark .pricing-card:not(.featured) .pricing-price { color: var(--cs-text) !important; }
html.dark .pricing-card:not(.featured) .pricing-feature {
  border-bottom-color: rgba(255,255,255,0.08) !important;
  color: var(--cs-text-secondary) !important;
}

/* Featured pricing card — .pricing-card.featured { color: var(--cs-white) }
   which in dark mode = #162535 (dark bg), making all text invisible.
   Force the entire card to white text. */
html.dark .pricing-card.featured {
  color: #ffffff;
}
html.dark .pricing-card.featured .pricing-price { color: #ffffff; }
html.dark .pricing-card.featured .pricing-feature { color: rgba(255,255,255,0.85); }

/* Featured pricing card CTA button — always white bg with primary text.
   Inline style now uses #ffffff directly, no CSS variable remapping needed. */

/* ── Admin action buttons (ManageSurveys) ────────────────────── */
html.dark .btn-outline-secondary {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text-secondary);
}
html.dark .btn-outline-secondary:hover,
html.dark .btn-outline-secondary:focus-visible {
  background: rgba(42,180,208,0.10);
  border-color: var(--cs-accent);
  color: var(--cs-text);
}
html.dark .btn-outline-secondary:disabled {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text-muted);
  opacity: 0.5;
}

html.dark .btn-outline-primary {
  background: transparent;
  border-color: var(--cs-accent);
  color: var(--cs-accent);
}
html.dark .btn-outline-primary:hover,
html.dark .btn-outline-primary:focus-visible {
  background: var(--cs-primary);
  border-color: var(--cs-primary);
  color: #ffffff;
}

/* Delete button inline style (red ghost) — already readable, but ensure
   the inline border color stays distinct on dark bg */
html.dark [style*="border:1.5px solid #ffd0d4"] {
  border-color: rgba(232,37,53,0.45) !important;
  color: var(--cs-cta) !important;
  background: transparent !important;
}
html.dark [style*="border:1.5px solid #ffd0d4"]:hover {
  background: rgba(232,37,53,0.10) !important;
  border-color: var(--cs-cta) !important;
}

/* ── Survey response page: radio/dot contrast ────────────────── */
/* .sq-radio-dot border uses --cs-surface-2 which is already overridden
   above, but make it even more visible */
html.dark .sq-radio-dot {
  border-color: #3a6070;
}
html.dark .sq-radio-label {
  background: transparent;
}

/* ── Login page: form input/label dark mode ─────────────────── */
/* Signin uses form-control-dark — those rules are light-agnostic.
   The labels use var(--cs-text-on-dark-2) inline so they are already
   white-ish. Nothing extra needed for the form itself.
   The right panel uses background:var(--cs-dark-2) which is always
   dark — no token remap risk there. */

/* ThemeToggler on public navbar: on dark section bg the button
   needs to look good against the transparent/dark navbar */
html.dark .cs-navbar:not(.scrolled) .cs-theme-btn {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.80);
}
html.dark .cs-navbar:not(.scrolled) .cs-theme-btn:hover {
  background: rgba(42,180,208,0.18);
  border-color: var(--cs-accent);
  color: var(--cs-accent);
}

/* ── 29. Checkout / Upgrade page ─────────────────────────────── */
.checkout-page {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

/* Hero section */
.checkout-hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  margin-bottom: 0.5rem;
  position: relative;
}
.checkout-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(42,180,208,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 100%, rgba(13,80,104,0.07) 0%, transparent 60%);
  border-radius: var(--radius-xl);
  pointer-events: none;
}
.checkout-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-accent);
  margin-bottom: 0.625rem;
  position: relative;
}
.checkout-headline {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--cs-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  position: relative;
}
.checkout-sub {
  color: var(--cs-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

/* Gradient-border card wrapper */
.checkout-card-wrap {
  position: relative;
  padding: 3px;
  border-radius: calc(var(--radius-xl) + 3px);
  background: linear-gradient(135deg,
    var(--cs-accent-light) 0%,
    var(--cs-primary) 45%,
    var(--cs-primary-dark) 100%);
  box-shadow:
    0 24px 64px rgba(13,80,104,0.22),
    0 4px 16px rgba(13,80,104,0.14),
    0 0 0 1px rgba(42,180,208,0.08);
  animation: checkoutFadeUp 0.45s var(--ease-out) 0.08s both;
}
.checkout-card {
  background: var(--cs-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.5rem 2rem;
}

/* Price display */
.checkout-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}
.checkout-amount {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--cs-text);
  line-height: 1;
  letter-spacing: -0.05em;
}
.checkout-price-meta {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.625rem;
  gap: 0.1rem;
}
.checkout-currency {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cs-text);
  line-height: 1;
}
.checkout-period {
  font-size: 0.875rem;
  color: var(--cs-text-muted);
  font-weight: 600;
  line-height: 1.4;
}
.checkout-billing-note {
  color: var(--cs-text-muted);
  font-size: 0.8125rem;
  margin: 0 0 2rem;
  font-weight: 500;
}

/* Feature list */
.checkout-features {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--cs-surface-2);
  padding-top: 1.375rem;
  margin-bottom: 2rem;
  gap: 0;
}
.checkout-feature {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--cs-surface-2);
  font-size: 0.9375rem;
  color: var(--cs-text);
  font-weight: 500;
}
.checkout-feature:last-child { border-bottom: none; }
.checkout-feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(42,180,208,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cs-accent);
  font-size: 0.875rem;
  transition: background var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-spring);
}
.checkout-feature:hover .checkout-feature-icon {
  background: rgba(42,180,208,0.18);
  transform: scale(1.1);
}

/* CTA button */
.checkout-cta-btn {
  width: 100%;
  padding: 1.125rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--cs-cta);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--cs-cta-glow),
              0 1px 4px rgba(232,37,53,0.2);
  transition: background var(--duration-fast) ease,
              box-shadow var(--duration-base) ease,
              transform var(--duration-fast) var(--ease-spring);
  margin-bottom: 1rem;
}
.checkout-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.checkout-cta-btn:hover:not(:disabled) {
  background: var(--cs-cta-hover);
  box-shadow: 0 8px 32px var(--cs-cta-glow),
              0 2px 8px rgba(232,37,53,0.3);
  transform: translateY(-2px);
}
.checkout-cta-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 12px var(--cs-cta-glow);
}
.checkout-cta-btn:focus-visible {
  outline: 2px solid var(--cs-cta);
  outline-offset: 3px;
}
.checkout-cta-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Trust note */
.checkout-trust {
  text-align: center;
  color: var(--cs-text-muted);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}
.checkout-trust i { color: var(--cs-accent); }

/* Guarantee strip */
.checkout-guarantee-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 1.5rem 0;
  margin-top: 0.25rem;
  animation: checkoutFadeUp 0.45s var(--ease-out) 0.18s both;
}
.checkout-guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cs-text-muted);
  padding: 0 1.375rem;
  position: relative;
}
.checkout-guarantee-item + .checkout-guarantee-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1rem;
  background: var(--cs-surface-2);
}
.checkout-guarantee-item i { color: var(--cs-accent); }

/* Entrance animation */
.checkout-hero {
  animation: checkoutFadeUp 0.45s var(--ease-out) both;
}
@keyframes checkoutFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dark mode overrides */
html.dark .checkout-card {
  background: var(--cs-white); /* = #162535 in dark */
}
html.dark .checkout-headline { color: #ffffff; }
html.dark .checkout-amount   { color: var(--cs-text); }
html.dark .checkout-currency  { color: var(--cs-text); }
html.dark .checkout-feature   {
  color: var(--cs-text);
  border-bottom-color: var(--cs-surface-2);
}
html.dark .checkout-features  { border-top-color: var(--cs-surface-2); }
html.dark .checkout-feature-icon {
  background: rgba(42,180,208,0.12);
}
html.dark .checkout-guarantee-item + .checkout-guarantee-item::before {
  background: var(--cs-surface-2);
}

/* ── Pricing grid (4-plans) ──────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.pricing-card {
  position: relative;
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .2s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.pricing-card--featured {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 1px var(--cs-accent), 0 8px 32px rgba(42,180,208,.15);
}
.pricing-card--current {
  opacity: .75;
  pointer-events: none;
}

.pricing-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  margin-bottom: .25rem;
}
.pricing-badge--popular {
  color: var(--cs-accent);
}

.pricing-plan-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cs-text);
  letter-spacing: -.02em;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: .375rem;
  margin-bottom: .25rem;
}
.pricing-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--cs-text);
  letter-spacing: -.04em;
  line-height: 1;
}
.pricing-currency {
  font-size: .875rem;
  color: var(--cs-text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: .5rem 0 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--cs-text);
}
.pricing-features li i {
  color: var(--cs-accent);
  font-size: 1rem;
  flex-shrink: 0;
}
.pricing-feature--muted {
  color: var(--cs-text-muted) !important;
}
.pricing-feature--muted i {
  color: var(--cs-text-muted) !important;
}

.pricing-cta-btn {
  display: block;
  width: 100%;
  padding: .6875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--cs-border);
  background: var(--cs-surface-2);
  color: var(--cs-text);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pricing-cta-btn:hover:not(:disabled) {
  background: var(--cs-accent);
  border-color: var(--cs-accent);
  color: #fff;
}
.pricing-cta-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.pricing-cta-btn--featured {
  background: var(--cs-accent);
  border-color: var(--cs-accent);
  color: #fff;
}
.pricing-cta-btn--featured:hover:not(:disabled) {
  background: var(--color-accent-hover, #1e9ab8);
  border-color: var(--color-accent-hover, #1e9ab8);
}

.pricing-cta-placeholder {
  font-size: .8125rem;
  color: var(--cs-text-muted);
  text-align: center;
  padding: .5rem 0;
}

/* ── 30. Dashboard ───────────────────────────────────────────── */

@keyframes dashFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dashPulse {
  0%, 100% { opacity: .2; }
  50%       { opacity: .5; }
}

/* ── KPI Grid — asymmetric: hero (double) + 3 compact ── */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.dash-kpi-grid > *:nth-child(1) { animation: dashFadeUp .42s .04s cubic-bezier(.34,1.56,.64,1) both; }
.dash-kpi-grid > *:nth-child(2) { animation: dashFadeUp .42s .11s cubic-bezier(.34,1.56,.64,1) both; }
.dash-kpi-grid > *:nth-child(3) { animation: dashFadeUp .42s .18s cubic-bezier(.34,1.56,.64,1) both; }
.dash-kpi-grid > *:nth-child(4) { animation: dashFadeUp .42s .25s cubic-bezier(.34,1.56,.64,1) both; }

@media (max-width: 1399px) {
  .dash-kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .dash-kpi-grid { grid-template-columns: 1fr; }
}

/* Base card */
.dash-kpi-card {
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* ── Hero card ── */
.dash-kpi-hero {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: box-shadow .25s ease,
              transform .25s cubic-bezier(.34,1.56,.64,1);
}

.dash-kpi-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #2ab4d0 0%, #22c55e 100%);
}

.dash-kpi-hero:hover {
  box-shadow: 0 12px 40px rgba(42,180,208,.12), 0 4px 14px rgba(0,0,0,.05);
  transform: translateY(-2px);
}

.dash-hero-deco {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,180,208,.07) 0%, transparent 70%);
  pointer-events: none;
}

.dash-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #2ab4d0;
}

.dash-hero-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cs-text);
}

.dash-hero-link {
  font-size: .8125rem;
  font-weight: 600;
  color: #2ab4d0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  transition: gap .2s cubic-bezier(.34,1.56,.64,1);
}
.dash-hero-link:hover {
  gap: .625rem;
  color: #2ab4d0;
  text-decoration: none;
}

/* ── Compact cards ── */
.dash-kpi-compact {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  padding: 1.25rem 1.375rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  transition: box-shadow .25s ease,
              transform .25s cubic-bezier(.34,1.56,.64,1);
}

.dash-kpi-compact::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--kpi-accent, #2ab4d0);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transform: scaleY(.3);
  transition: opacity .22s ease,
              transform .22s cubic-bezier(.34,1.56,.64,1);
}
.dash-kpi-compact:hover::before {
  opacity: 1;
  transform: scaleY(1);
}
.dash-kpi-compact:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.04);
  transform: translateY(-2px);
}

.dash-compact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.dash-compact-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dash-compact-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cs-text);
}

.dash-pct {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cs-text-muted);
}

.dash-compact-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--cs-text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dash-compact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-top: auto;
}

.dash-compact-link {
  font-size: .75rem;
  font-weight: 600;
  color: var(--cs-accent);
  text-decoration: none;
  margin-top: auto;
}
.dash-compact-link:hover { color: var(--cs-accent); text-decoration: underline; }

.dash-compact-sub {
  font-size: .75rem;
  color: var(--cs-text-muted);
  margin-top: auto;
}

/* ── Status chips ── */
.dash-kpi-chip {
  font-size: .6875rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: var(--radius-pill);
}
.dash-kpi-chip-active {
  background: rgba(34,197,94,.12);
  color: #16a34a;
}
.dash-kpi-chip-draft {
  background: rgba(100,116,139,.1);
  color: var(--cs-text-muted);
}

/* ── Chart card ── */
.dash-chart-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  animation: dashFadeUp .42s .3s cubic-bezier(.34,1.56,.64,1) both;
}

.dash-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dash-chart-subtitle {
  font-size: .75rem;
  color: var(--cs-text-muted);
  font-weight: 500;
  margin-top: .2rem;
}

.dash-chart-total { text-align: right; }

.dash-chart-total-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cs-text);
  letter-spacing: -.03em;
  display: block;
  line-height: 1;
}

.dash-chart-total-lbl {
  font-size: .75rem;
  color: var(--cs-text-muted);
  font-weight: 600;
}

/* Empty chart state */
.dash-chart-empty {
  position: relative;
  height: 220px;
}

.dash-chart-empty-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding-bottom: 2px;
}

.dash-chart-empty-bar {
  flex: 1;
  background: var(--cs-surface-2);
  border-radius: 4px 4px 0 0;
  animation: dashPulse 2.4s ease-in-out infinite;
}
.dash-chart-empty-bar:nth-child(odd)  { animation-delay: 0s; }
.dash-chart-empty-bar:nth-child(even) { animation-delay: .5s; }
.dash-chart-empty-bar:nth-child(3n)   { animation-delay: 1s; }
.dash-chart-empty-bar:nth-child(5n)   { animation-delay: 1.5s; }

.dash-chart-empty-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--cs-text-muted);
  font-size: .875rem;
  font-weight: 600;
  pointer-events: none;
}
.dash-chart-empty-msg i {
  font-size: 1.75rem;
  opacity: .4;
}

/* ── Rankings card ── */
.dash-rankings-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  animation: dashFadeUp .42s .37s cubic-bezier(.34,1.56,.64,1) both;
}

.dash-rankings-sub {
  font-size: .75rem;
  color: var(--cs-text-muted);
  font-weight: 500;
  margin: .125rem 0 1.25rem;
}

.dash-rankings-list {
  display: flex;
  flex-direction: column;
}

.dash-rank-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--cs-surface-2);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.dash-rank-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-rank-row:first-child { padding-top: 0; }
.dash-rank-row:hover { transform: translateX(4px); }

.dash-rank-medal {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.dash-rank-info {
  flex: 1;
  min-width: 0;
}

.dash-rank-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--cs-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .25rem;
}

.dash-rank-score { text-align: right; flex-shrink: 0; }

.dash-rank-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cs-text);
  letter-spacing: -.03em;
  line-height: 1;
}

.dash-rank-lbl {
  font-size: .6875rem;
  color: var(--cs-text-muted);
  font-weight: 600;
}

.dash-rankings-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2.5rem 0;
  color: var(--cs-text-muted);
  font-size: .875rem;
}
.dash-rankings-empty i { font-size: 2.25rem; opacity: .25; }

/* ── Section title ── */
.dash-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cs-text);
  margin: 0;
  letter-spacing: -.015em;
}

/* ── Action cards ── */
.dash-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  animation: dashFadeUp .42s .44s cubic-bezier(.34,1.56,.64,1) both;
}
@media (max-width: 575px) {
  .dash-actions-row { grid-template-columns: 1fr; }
}

.dash-action-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: box-shadow .25s ease,
              transform .25s cubic-bezier(.34,1.56,.64,1),
              border-color .2s ease;
}
.dash-action-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  transform: translateY(-2px);
  border-color: var(--cs-accent);
  text-decoration: none;
}
.dash-action-card:active { transform: translateY(0); }

.dash-action-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.dash-action-card:hover .dash-action-icon { transform: scale(1.1); }

.dash-action-text { flex: 1; }

.dash-action-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--cs-text);
  line-height: 1.2;
}

.dash-action-sub {
  font-size: .8rem;
  color: var(--cs-text-muted);
  margin-top: .2rem;
}

.dash-action-arrow {
  color: var(--cs-text-muted);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1),
              color .2s ease;
}
.dash-action-card:hover .dash-action-arrow {
  transform: translateX(5px);
  color: var(--cs-accent);
}

/* ── Dark mode ── */
html.dark .dash-kpi-hero,
html.dark .dash-kpi-compact,
html.dark .dash-chart-card,
html.dark .dash-rankings-card,
html.dark .dash-action-card {
  background: var(--cs-white);
  border-color: var(--cs-surface-2);
}

html.dark .dash-kpi-chip-active {
  background: rgba(34,197,94,.15);
  color: #4ade80;
}
html.dark .dash-kpi-chip-draft {
  background: rgba(100,116,139,.18);
}
html.dark .dash-chart-empty-bar {
  background: var(--cs-surface-2);
}
html.dark .dash-rank-row {
  border-bottom-color: var(--cs-surface-2);
}

/* ── Star rating button (SurveyPage) ── */
.sq-star-btn {
  background: none;
  border: none;
  padding: 0 .1rem;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--cs-text-muted);
  transition: color .12s ease,
              transform .15s cubic-bezier(.34,1.56,.64,1);
  user-select: none;
}
.sq-star-btn:hover  { transform: scale(1.2); }
.sq-star-btn:active { transform: scale(.95); }
.sq-star-btn.active { color: #f59e0b; }
html.dark .sq-star-btn.active { color: #fbbf24; }

/* ══════════════════════════════════════════════
   31. Share Modal
   ══════════════════════════════════════════════ */

.sv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  padding: 1rem;
  animation: svFadeIn .18s ease;
}

@keyframes svFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sv-modal {
  background: var(--cs-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  box-shadow:
    0 24px 64px rgba(0,0,0,.18),
    0 4px  12px rgba(0,0,0,.08);
  animation: svSlideUp .22s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}

@keyframes svSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.sv-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  gap: 1rem;
}

.sv-modal-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cs-text);
  margin: 0 0 .2rem;
  font-family: var(--font-display);
}

.sv-modal-subtitle {
  font-size: .8125rem;
  color: var(--cs-text-muted);
  margin: 0;
}

.sv-modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease;
}
.sv-modal-close:hover  { background: var(--cs-surface); color: var(--cs-text); }
.sv-modal-close:active { background: var(--cs-surface-2); }

.sv-modal-tabs {
  display: flex;
  gap: .25rem;
  padding: 0 1.5rem;
  border-bottom: 1.5px solid var(--cs-surface-2);
}

.sv-modal-tab {
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: .625rem .875rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--cs-text-muted);
  cursor: pointer;
  margin-bottom: -1.5px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color .15s ease, border-color .15s ease;
}
.sv-modal-tab:hover        { color: var(--cs-text); }
.sv-modal-tab.active       { color: var(--cs-accent); border-bottom-color: var(--cs-accent); }
.sv-modal-tab:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }

.sv-modal-body {
  padding: 1.5rem;
}

/* QR tab */
.sv-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--cs-surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--cs-surface-2);
}
.sv-qr-wrap canvas { border-radius: var(--radius-md); }

/* Link tab */
.sv-copy-row {
  display: flex;
  gap: .5rem;
  align-items: stretch;
}

.sv-copy-input {
  flex: 1;
  font-size: .8125rem;
  background: var(--cs-surface);
  border-color: var(--cs-surface-2);
  color: var(--cs-text);
}

.sv-copy-btn {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  background: var(--cs-white);
  color: var(--cs-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}
.sv-copy-btn:hover  { border-color: var(--cs-accent); color: var(--cs-accent); }
.sv-copy-btn.copied {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34,197,94,.07);
}

/* Embed tab */
.sv-embed-wrap {
  background: var(--cs-surface);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
}

.sv-embed-code {
  font-size: .75rem;
  color: var(--cs-text-secondary);
  font-family: 'Courier New', monospace;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Dark mode */
html.dark .sv-modal        { border: 1px solid var(--cs-surface-2); }
html.dark .sv-copy-input   { background: var(--cs-surface-2); border-color: rgba(255,255,255,.1); }
html.dark .sv-copy-btn     { background: var(--cs-white); border-color: var(--cs-surface-2); }
html.dark .sv-embed-wrap   { background: var(--cs-surface-2); }

/* ══════════════════════════════════════════════
   32. Template Picker
   ══════════════════════════════════════════════ */

.tpl-section {
  max-width: 780px;
  margin: 0 auto;
}

.tpl-intro {
  margin-bottom: 1.75rem;
}
.tpl-intro h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cs-text);
  margin-bottom: .35rem;
  font-family: var(--font-display);
}
.tpl-intro p {
  font-size: .875rem;
  color: var(--cs-text-muted);
  margin: 0;
}

.tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) {
  .tpl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .tpl-grid { grid-template-columns: 1fr; }
}

.tpl-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.125rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition:
    border-color .18s ease,
    box-shadow   .18s ease,
    transform    .18s cubic-bezier(.34,1.56,.64,1);
}
.tpl-card:hover {
  border-color: var(--cs-accent);
  box-shadow: 0 8px 24px rgba(42,180,208,.13);
  transform: translateY(-2px);
}
.tpl-card:active { transform: translateY(0); }
.tpl-card:focus-visible {
  outline: 2px solid var(--cs-accent);
  outline-offset: 2px;
}

.tpl-card-blank {
  border-style: dashed;
  background: transparent;
}
.tpl-card-blank:hover {
  border-style: solid;
  background: rgba(42,180,208,.03);
}

.tpl-card-icon {
  font-size: 1.625rem;
  line-height: 1;
  margin-bottom: .2rem;
}
.tpl-card-blank .tpl-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--cs-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--cs-text-muted);
}

.tpl-card-name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--cs-text);
  line-height: 1.2;
}

.tpl-card-desc {
  font-size: .8rem;
  color: var(--cs-text-muted);
  line-height: 1.45;
}

.tpl-card-count {
  font-size: .75rem;
  font-weight: 600;
  color: var(--cs-accent);
  margin-top: auto;
  padding-top: .625rem;
}

/* Dark mode */
html.dark .tpl-card       { background: var(--cs-white); border-color: var(--cs-surface-2); }
html.dark .tpl-card-blank { background: transparent; }
html.dark .tpl-card-blank .tpl-card-icon { background: var(--cs-surface-2); }

/* ══════════════════════════════════════════════
   33. New Answer Type Inputs (Email/7, Datum/8, Betyg/9)
   ══════════════════════════════════════════════ */

/* ── Wizard previews ─────────────────────────── */

/* Email mock input */
.qb-mock-input {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--cs-surface);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  padding: .625rem .875rem;
  max-width: 320px;
}
.qb-mock-input-icon {
  color: var(--cs-accent);
  font-size: .9375rem;
  flex-shrink: 0;
  opacity: .65;
}
.qb-mock-input-text {
  font-size: .875rem;
  color: var(--cs-text-muted);
  font-style: italic;
  opacity: .8;
}

/* Date mock slots */
.qb-date-slots {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 280px;
}
.qb-date-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cs-surface);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  padding: .5rem .375rem .375rem;
  gap: .125rem;
}
.qb-date-slot-val {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--cs-text-muted);
  letter-spacing: .06em;
  font-family: var(--font-display);
}
.qb-date-slot-label {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--cs-text-muted);
  opacity: .65;
}
.qb-date-sep {
  font-size: 1.125rem;
  color: var(--cs-text-muted);
  font-weight: 300;
  opacity: .4;
  flex-shrink: 0;
}

/* Star preview (wizard) */
.qb-star-preview {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.qb-star-preview-item {
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: .05em;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1);
  cursor: default;
}
/* Staggered fill: first 3 gold, last 2 fade out */
.qb-star-1 { color: #f59e0b; }
.qb-star-2 { color: #f59e0b; }
.qb-star-3 { color: #f59e0b; }
.qb-star-4 { color: #f8c94a; opacity: .45; }
.qb-star-5 { color: #f8d57a; opacity: .25; }
.qb-star-preview-label {
  font-size: .75rem;
  color: var(--cs-text-muted);
  font-weight: 600;
  margin-left: .5rem;
  white-space: nowrap;
}

/* ── Participant view: email ─────────────────── */

.sq-icon-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sq-icon-input-prefix {
  position: absolute;
  left: .875rem;
  color: var(--cs-accent);
  font-size: .9375rem;
  pointer-events: none;
  opacity: .6;
  z-index: 1;
  transition: opacity .18s ease;
}
.sq-icon-input-wrap:focus-within .sq-icon-input-prefix { opacity: 1; }
.sq-icon-input {
  width: 100%;
  padding: .75rem .875rem .75rem 2.625rem;
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  font-size: .9375rem;
  color: var(--cs-text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color .18s ease,
              box-shadow   .18s ease,
              background   .18s ease;
}
.sq-icon-input::placeholder { color: var(--cs-text-muted); }
.sq-icon-input:hover  { border-color: rgba(42,180,208,.5); }
.sq-icon-input:focus  {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.12);
}

/* ── Participant view: date ──────────────────── */

.sq-date-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 240px;
}
.sq-date-icon {
  position: absolute;
  left: .875rem;
  color: var(--cs-accent);
  font-size: .9375rem;
  pointer-events: none;
  opacity: .6;
  z-index: 1;
  transition: opacity .18s ease;
}
.sq-date-wrap:focus-within .sq-date-icon { opacity: 1; }
.sq-date-input {
  width: 100%;
  padding: .75rem .875rem .75rem 2.625rem;
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  font-size: .9375rem;
  color: var(--cs-text);
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  transition: border-color .18s ease,
              box-shadow   .18s ease;
}
.sq-date-input:hover { border-color: rgba(42,180,208,.5); }
.sq-date-input:focus {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.12);
}
.sq-date-input::-webkit-calendar-picker-indicator {
  opacity: .45;
  cursor: pointer;
  transition: opacity .15s ease;
}
.sq-date-input:hover::-webkit-calendar-picker-indicator,
.sq-date-input:focus::-webkit-calendar-picker-indicator { opacity: .85; }

/* ── Participant view: interactive date slots ── */

.sq-date-slots {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sq-date-slot-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  padding: .5rem .375rem .375rem;
  gap: .125rem;
  cursor: text;
  transition: border-color .18s ease,
              box-shadow   .18s ease;
}
.sq-date-slot-input:hover:not(:focus-within) { border-color: rgba(42,180,208,.5); }
.sq-date-slot-input:focus-within {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.12);
}
.sq-date-slot-num {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  text-align: center;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--cs-text);
  font-family: var(--font-display);
  letter-spacing: .04em;
  padding: 0;
}
.sq-date-slot-num::placeholder {
  color: var(--cs-text-muted);
  font-weight: 700;
  opacity: .5;
}

/* ── Participant view: star rating ───────────── */

/* Full-width row; row-reverse keeps the CSS ~ hover-fill trick working */
.sq-star-row {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  gap: .375rem;
}

/* Each star fills equal space */
.sq-star-row .sq-star-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 0;
}

/* On row hover: reset all to muted */
.sq-star-row:hover .sq-star-btn { color: var(--cs-text-muted); transform: none; }

/* Fill hovered star + all DOM-later siblings (= lower star values) */
.sq-star-row .sq-star-btn:hover,
.sq-star-row .sq-star-btn:hover ~ .sq-star-btn { color: #f59e0b; }

/* Hovered star gets a slight pop */
.sq-star-row .sq-star-btn:hover { transform: scale(1.15); }

/* ── Dark mode overrides ──────────────────────── */

html.dark .qb-mock-input,
html.dark .qb-date-slot {
  background: var(--cs-surface-2);
  border-color: #243f55;
}

html.dark .sq-icon-input,
html.dark .sq-date-slot-input {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text);
}
html.dark .sq-date-slot-num { color: var(--cs-text); }
html.dark .sq-date-slot-input:hover:not(:focus-within) { border-color: rgba(42,180,208,.4); }
html.dark .sq-date-slot-input:focus-within {
  background: #1e374e;
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.10);
}
html.dark .sq-icon-input::placeholder { color: var(--cs-text-muted); }
html.dark .sq-icon-input:hover  { border-color: rgba(42,180,208,.4); }
html.dark .sq-icon-input:focus  {
  background: #1e374e;
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.10);
}

html.dark .sq-star-btn.active { color: #fbbf24; }
html.dark .sq-star-row .sq-star-btn:hover,
html.dark .sq-star-row .sq-star-btn:hover ~ .sq-star-btn { color: #fbbf24; }

/* ── Disabled state (preview mode) ──────────── */
.sq-icon-input:disabled,
.sq-date-input:disabled {
  opacity: .55;
  cursor: default;
  background: var(--cs-surface);
}
html.dark .sq-icon-input:disabled,
html.dark .sq-date-input:disabled {
  background: var(--cs-surface-2);
  opacity: .5;
}

/* ══════════════════════════════════════════════
   34. Survey List / Grid Toggle (ManageSurveys)
   ══════════════════════════════════════════════ */

/* ── Segmented view toggle pill ── */
.sv-view-toggle {
  display: inline-flex;
  background: var(--cs-surface);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}
.sv-view-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3125rem .75rem;
  border: none;
  border-radius: var(--radius-pill);
  font-size: .8rem;
  font-weight: 600;
  color: var(--cs-text-muted);
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease,
              color       .15s ease,
              box-shadow  .15s ease;
}
.sv-view-btn.active {
  background: var(--cs-white);
  color: var(--cs-text);
  box-shadow: 0 1px 4px rgba(0,0,0,.09), 0 0 0 1px rgba(0,0,0,.04);
}
.sv-view-btn:not(.active):hover {
  color: var(--cs-text-secondary);
  background: rgba(0,0,0,.04);
}
.sv-view-btn:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }

/* ── Survey grid ── */
@keyframes svCardIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.sv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 991px) { .sv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sv-grid { grid-template-columns: 1fr; } }

/* ── Survey card ── */
.sv-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-lg);
  overflow: visible;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: svCardIn .38s cubic-bezier(.34,1.56,.64,1) both;
  transition: box-shadow  .22s ease,
              transform   .22s cubic-bezier(.34,1.56,.64,1),
              border-color .2s ease;
}
.sv-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.05);
  transform: translateY(-3px);
  border-color: rgba(42,180,208,.4);
}
.sv-card:active { transform: translateY(-1px); }

/* Status accent stripe — border-top respects border-radius without overflow:hidden */
.sv-card::before { content: none; }

.sv-card-active  { border-top: 3px solid #2ab4d0; }
.sv-card-active:hover { border-color: rgba(42,180,208,.55); border-top-width: 3px; border-top-color: #2ab4d0; }

/* Card body */
.sv-card-body {
  padding: 1.25rem 1.375rem 1.125rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .875rem;
}

/* Top row */
.sv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.sv-card-date {
  font-size: .75rem;
  color: var(--cs-text-muted);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Active pulse dot */
.sv-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: svPulseDot 2.2s ease-in-out infinite;
}
@keyframes svPulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  60%     { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Title */
.sv-card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cs-text);
  line-height: 1.3;
  margin: 0;
  letter-spacing: -.025em;

  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stats panel */
.sv-card-stats {
  display: flex;
  align-items: stretch;
  background: var(--cs-surface);
  border-radius: var(--radius-md);
  padding: .75rem .875rem;
  border: 1px solid var(--cs-surface-2);
}
.sv-card-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.sv-card-stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cs-text);
  line-height: 1;
  letter-spacing: -.03em;
}
.sv-card-stat-highlight { color: var(--cs-accent); }
.sv-card-stat-closeat   { font-size: 1rem; letter-spacing: -.01em; }
.sv-card-stat-lbl {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cs-text-muted);
}
.sv-card-stat-div {
  width: 1px;
  background: var(--cs-surface-2);
  margin: 0 .125rem;
  flex-shrink: 0;
}

/* Card actions */
.sv-card-actions {
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-wrap: nowrap;
  overflow: visible;
  margin-top: auto;
}

/* ── Dark mode ── */
html.dark .sv-view-toggle {
  background: var(--cs-surface-2);
  border-color: #243f55;
}
html.dark .sv-view-btn.active {
  background: var(--cs-white);
  color: var(--cs-text);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
html.dark .sv-view-btn:not(.active):hover { background: rgba(255,255,255,.06); }

/* ── Custom sort dropdown ── */
.sv-sort-dropdown { position: relative; }

.sv-sort-trigger {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--cs-surface);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-pill);
  padding: .3125rem .625rem .3125rem .75rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--cs-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.sv-sort-trigger:hover,
.sv-sort-dropdown.open .sv-sort-trigger {
  border-color: var(--cs-accent);
  color: var(--cs-text);
}
.sv-sort-trigger:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }
.sv-sort-trigger-icon { font-size: .8rem; }
.sv-sort-trigger-chevron {
  font-size: .65rem;
  opacity: .6;
  transition: transform .2s ease;
}
.sv-sort-dropdown.open .sv-sort-trigger-chevron { transform: rotate(180deg); }

/* Backdrop — catches outside clicks */
.sv-sort-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: transparent;
}

/* Panel */
.sv-sort-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  z-index: 1000;
  overflow: hidden;
  animation: svSortIn .15s cubic-bezier(.34,1.56,.64,1);
}
@keyframes svSortIn {
  from { opacity: 0; transform: translateY(-6px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* Option rows */
.sv-sort-option {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  padding: .5625rem 1rem;
  border: none;
  background: transparent;
  font-size: .875rem;
  font-weight: 500;
  color: var(--cs-text-secondary);
  cursor: pointer;
  text-align: left;
  transition: background .1s ease, color .1s ease;
}
.sv-sort-option:hover { background: var(--cs-surface); color: var(--cs-text); }
.sv-sort-option.active { color: var(--cs-accent); font-weight: 700; }
.sv-sort-option.active:hover { background: rgba(42,180,208,.07); }
.sv-sort-option-icon { font-size: .875rem; width: 1rem; text-align: center; flex-shrink: 0; }
.sv-sort-option-check { font-size: .8rem; margin-left: auto; color: var(--cs-accent); }

/* ── Dark mode ── */
html.dark .sv-sort-trigger {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: rgba(255,255,255,.5);
}
html.dark .sv-sort-trigger:hover,
html.dark .sv-sort-dropdown.open .sv-sort-trigger { color: rgba(255,255,255,.85); }
html.dark .sv-sort-panel {
  background: var(--cs-white);
  border-color: #243f55;
  box-shadow: 0 8px 28px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.2);
}
html.dark .sv-sort-option { color: rgba(255,255,255,.5); }
html.dark .sv-sort-option:hover { background: var(--cs-surface-2); color: rgba(255,255,255,.85); }
html.dark .sv-sort-option.active { color: var(--cs-accent); }
html.dark .sv-sort-option.active:hover { background: rgba(42,180,208,.12); }

html.dark .sv-card {
  background: var(--cs-white);
  border-color: var(--cs-surface-2);
}
html.dark .sv-card:hover { border-color: rgba(42,180,208,.4); }
html.dark .sv-card-active     { border-top-color: #2ab4d0; }
html.dark .sv-card-active:hover { border-top-color: #2ab4d0; }
html.dark .sv-card-draft::before  { background: #243f55; }
html.dark .sv-card-closed::before { background: #243f55; opacity: .4; }

html.dark .sv-card-stats {
  background: var(--cs-surface-2);
  border-color: #243f55;
}
html.dark .sv-card-stat-div { background: #243f55; }

/* ══════════════════════════════════════════════
   34b. Gradient Pill Buttons  (gpill-*)
   ══════════════════════════════════════════════ */

/* ── Base circle ── */
.gpill-btn {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--cs-surface-2);
  background: var(--cs-surface);
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  text-decoration: none;
  transition:
    width 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    min-width 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-radius 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

/* Gradient fill overlay */
.gpill-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 0;
  border-radius: inherit;
}

/* Icon — visible by default */
.gpill-icon {
  position: relative;
  font-size: .9375rem;
  color: var(--cs-text-secondary);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

/* Label — hidden by default */
.gpill-label {
  position: absolute;
  white-space: nowrap;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 0.18s ease 0.1s,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s;
  z-index: 1;
  pointer-events: none;
}

/* ── Hover: expand to pill ── */
.gpill-btn:hover {
  width: 144px;
  min-width: 144px;
  border-radius: 40px;
  border-color: transparent;
}
.gpill-btn:hover::before { opacity: 1; }
.gpill-btn:hover .gpill-icon {
  opacity: 0;
  transform: scale(0.15);
}
.gpill-btn:hover .gpill-label {
  opacity: 1;
  transform: scale(1);
}

.gpill-btn:active { transform: translateY(1px); }
.gpill-btn:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 2px; }

/* ── Disabled ── */
.gpill-btn:disabled,
.gpill-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Gradient variants ── */
.gpill-edit::before   { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }
.gpill-stats::before  { background: linear-gradient(135deg, #0e7490 0%, #2ab4d0 100%); }
.gpill-copy::before   { background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%); }
.gpill-send::before   { background: linear-gradient(135deg, #065f46 0%, #34d399 100%); }
.gpill-share::before  { background: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%); }
.gpill-delete::before  { background: linear-gradient(135deg, #9f1239 0%, #e82535 100%); }
.gpill-revert::before  { background: linear-gradient(135deg, #065f46 0%, #2ab4d0 100%); }

/* ── Glow on hover ── */
.gpill-edit:hover    { box-shadow: 0 6px 20px rgba(139,92,246,0.42), 0 2px 6px rgba(0,0,0,0.10); }
.gpill-stats:hover   { box-shadow: 0 6px 20px rgba(42,180,208,0.42), 0 2px 6px rgba(0,0,0,0.10); }
.gpill-copy:hover    { box-shadow: 0 6px 20px rgba(245,158,11,0.42), 0 2px 6px rgba(0,0,0,0.10); }
.gpill-send:hover    { box-shadow: 0 6px 20px rgba(52,211,153,0.42), 0 2px 6px rgba(0,0,0,0.10); }
.gpill-share:hover   { box-shadow: 0 6px 20px rgba(96,165,250,0.42), 0 2px 6px rgba(0,0,0,0.10); }
.gpill-delete:hover  { box-shadow: 0 6px 20px rgba(232,37,53,0.42), 0 2px 6px rgba(0,0,0,0.10); }
.gpill-revert:hover  { box-shadow: 0 6px 20px rgba(42,180,208,0.42), 0 2px 6px rgba(0,0,0,0.10); }

/* ── Dark mode ── */
html.dark .gpill-btn { background: var(--cs-white); border-color: #243f55; }
html.dark .gpill-icon { color: rgba(255,255,255,0.55); }

/* ══════════════════════════════════════════════
   35. Wizard Step 1 Form  (wz-*)
   ══════════════════════════════════════════════ */

@keyframes wzFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.wz-card {
  background: var(--cs-white);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem 1.75rem;
  box-shadow:
    0 8px 32px rgba(13,80,104,.08),
    0 2px  8px rgba(0,0,0,.04);
  animation: wzFadeUp .32s cubic-bezier(.34,1.56,.64,1) both;
}

.wz-form-group {
  margin-bottom: 1.75rem;
}

.wz-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cs-text-secondary);
  margin-bottom: .5rem;
}
.wz-required {
  color: var(--cs-cta);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}
.wz-optional {
  font-size: .6875rem;
  font-weight: 600;
  color: var(--cs-text-muted);
  text-transform: none;
  letter-spacing: .03em;
  background: var(--cs-surface);
  border: 1px solid var(--cs-surface-2);
  padding: .1rem .45rem;
  border-radius: var(--radius-pill);
}

.wz-input,
.wz-textarea {
  width: 100%;
  background: var(--cs-surface);
  border: 1.5px solid var(--cs-surface-2);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-size: .9375rem;
  color: var(--cs-text);
  font-family: var(--font-body);
  line-height: 1.6;
  outline: none;
  transition: border-color .18s ease,
              box-shadow   .18s ease,
              background   .18s ease;
}
.wz-textarea { resize: vertical; }
.wz-input::placeholder,
.wz-textarea::placeholder {
  color: var(--cs-text-muted);
  opacity: .65;
}
.wz-input:hover,
.wz-textarea:hover { border-color: rgba(42,180,208,.5); }
.wz-input:focus,
.wz-textarea:focus {
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.12);
  background: var(--cs-white);
}

.wz-hint {
  font-size: .8rem;
  color: var(--cs-text-muted);
  margin: .4rem 0 0;
  line-height: 1.55;
}

.wz-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: 1.5rem;
  margin-top: .25rem;
  border-top: 1px solid var(--cs-surface-2);
}

/* ── Dark mode ── */
html.dark .wz-card {
  background: var(--cs-white);
  border-color: var(--cs-surface-2);
  box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.12);
}
html.dark .wz-input,
html.dark .wz-textarea {
  background: var(--cs-surface-2);
  border-color: #243f55;
  color: var(--cs-text);
}
html.dark .wz-input:hover,
html.dark .wz-textarea:hover  { border-color: rgba(42,180,208,.4); }
html.dark .wz-input:focus,
html.dark .wz-textarea:focus  {
  background: #1e374e;
  border-color: var(--cs-accent);
  box-shadow: 0 0 0 3px rgba(42,180,208,.10);
}
html.dark .wz-optional { background: var(--cs-surface-2); border-color: #243f55; }
html.dark .wz-footer   { border-top-color: var(--cs-surface-2); }

/* ── Color palette picker ───────────────────────────────────────── */
.wz-palette {
  display:   flex;
  flex-wrap: wrap;
  gap:       .5rem;
  margin-top: .375rem;
}
.wz-palette-swatch {
  width:         32px;
  height:        32px;
  border-radius: 50%;
  border:        2.5px solid transparent;
  cursor:        pointer;
  padding:       0;
  transition:    transform .18s cubic-bezier(0.34,1.56,0.64,1), box-shadow .15s ease, border-color .15s;
  box-shadow:    0 2px 6px rgba(0,0,0,0.18);
}
.wz-palette-swatch:hover {
  transform:  scale(1.18);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.wz-palette-swatch--active {
  border-color: #fff;
  transform:    scale(1.18);
  box-shadow:   0 0 0 3px var(--swatch-color), 0 4px 12px rgba(0,0,0,0.25);
}
html.dark .wz-palette-swatch--active { border-color: #07131c; }

/* Custom color swatch (visar vald fri färg med ×) */
.wz-palette-swatch--custom {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* + knapp för att öppna fri color picker */
.wz-palette-custom-btn {
  position: relative;
  width:  32px;
  height: 32px;
  border-radius: 50%;
  border: 2px dashed rgba(42,180,208,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--cs-accent, #2ab4d0);
  font-size: .875rem;
  background: transparent;
  transition: border-color .18s, background .18s, transform .18s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}
.wz-palette-custom-btn:hover {
  border-color: var(--cs-accent, #2ab4d0);
  background: rgba(42,180,208,0.08);
  transform: scale(1.15);
}
html.dark .wz-palette-custom-btn {
  border-color: rgba(42,180,208,0.35);
}
html.dark .wz-palette-custom-btn:hover {
  border-color: var(--cs-accent, #2ab4d0);
  background: rgba(42,180,208,0.12);
}

/* ── Wizard background theme picker ──────────────────────────── */
.wz-bg-grid {
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.wz-bg-btn {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: none; border: 2px solid var(--cs-border);
  border-radius: 10px; padding: .5rem .5rem .625rem;
  cursor: pointer; transition: border-color .15s, transform .18s cubic-bezier(0.34,1.56,0.64,1);
  color: var(--cs-text-secondary); font-size: .7rem; font-weight: 700;
  font-family: inherit; letter-spacing: .03em;
}
.wz-bg-btn:hover { border-color: var(--cs-accent); transform: translateY(-2px); }
.wz-bg-btn--active { border-color: var(--cs-accent); color: var(--cs-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cs-accent) 22%, transparent); }

.wz-bg-thumb {
  width: 90px; height: 56px; border-radius: 6px; overflow: hidden; position: relative;
  isolation: isolate;
}
.wz-bg-thumb::before,
.wz-bg-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Standard (default gradient) ── */
.wz-bg-thumb--default {
  background:
    radial-gradient(ellipse 80% 65% at 5% 10%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 55%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 65% 55% at 95% 92%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 38%, transparent) 0%, transparent 60%),
    #eef5f8;
}
html.dark .wz-bg-thumb--default {
  background:
    radial-gradient(ellipse 80% 65% at 5% 10%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 55%, transparent) 0%, transparent 65%),
    radial-gradient(ellipse 65% 55% at 95% 92%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 38%, transparent) 0%, transparent 60%),
    #07131c;
}

/* ── Topografi — SVG sine-wave paths at thumbnail scale ── */
.wz-bg-thumb--topo {
  background: #07131c;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 56'%3E%3Cg fill='none' stroke='rgba(255,255,255,.22)' stroke-width='.8'%3E%3Cpath d='M0 51 C15 49 30 53 45 51 S75 47 90 50'/%3E%3Cpath d='M0 45 C15 43 30 47 45 44 S75 41 90 43'/%3E%3Cpath d='M0 39 C16 37 31 41 46 38 S76 34 90 37'/%3E%3Cpath d='M0 33 C16 30 31 35 47 31 S77 28 90 30'/%3E%3Cpath d='M0 27 C17 24 32 29 48 25 S77 22 90 24'/%3E%3Cpath d='M0 21 C17 18 33 23 50 19 S78 16 90 18'/%3E%3Cpath d='M0 16 C18 13 34 17 51 13 S78 10 90 12'/%3E%3Cpath d='M0 11 C18 8 35 12 52 8 S79 5 90 7'/%3E%3Cpath d='M0 6 C19 3 36 7 53 3 S79 0 90 2'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 100% 80% at 10% 5%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 35%, transparent), transparent 65%),
    radial-gradient(ellipse 70% 55% at 92% 95%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 25%, transparent), transparent 60%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
}
html:not(.dark) .wz-bg-thumb--topo {
  background-color: #f8f6f2;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 56'%3E%3Cg fill='none' stroke='rgba(0,0,0,.14)' stroke-width='.8'%3E%3Cpath d='M0 51 C15 49 30 53 45 51 S75 47 90 50'/%3E%3Cpath d='M0 45 C15 43 30 47 45 44 S75 41 90 43'/%3E%3Cpath d='M0 39 C16 37 31 41 46 38 S76 34 90 37'/%3E%3Cpath d='M0 33 C16 30 31 35 47 31 S77 28 90 30'/%3E%3Cpath d='M0 27 C17 24 32 29 48 25 S77 22 90 24'/%3E%3Cpath d='M0 21 C17 18 33 23 50 19 S78 16 90 18'/%3E%3Cpath d='M0 16 C18 13 34 17 51 13 S78 10 90 12'/%3E%3Cpath d='M0 11 C18 8 35 12 52 8 S79 5 90 7'/%3E%3Cpath d='M0 6 C19 3 36 7 53 3 S79 0 90 2'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 100% 80% at 10% 5%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 14%, transparent), transparent 65%);
  background-size: 100% 100%, 100% 100%;
}

/* ── Halvton — dot grid masked to two corners (matches real mask-composite) ── */
.wz-bg-thumb--halftone {
  background: #f9f7f4;
}
.wz-bg-thumb--halftone::before {
  background-image: radial-gradient(circle, var(--wz-accent, #2ab4d0) 1px, transparent 1px);
  background-size: 8px 8px;
  mask-image:
    radial-gradient(ellipse 100% 90% at 10% 90%, black 0%, transparent 65%),
    radial-gradient(ellipse 80%  70% at 90% 10%, black 0%, transparent 60%);
  -webkit-mask-image:
    radial-gradient(ellipse 100% 90% at 10% 90%, black 0%, transparent 65%),
    radial-gradient(ellipse 80%  70% at 90% 10%, black 0%, transparent 60%);
  mask-composite: add;
  -webkit-mask-composite: source-over;
  opacity: 0.55;
}
.wz-bg-thumb--halftone::after {
  background:
    radial-gradient(ellipse 85% 75% at 10% 92%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 12%, transparent), transparent 65%),
    radial-gradient(ellipse 70% 60% at 92% 8%,  color-mix(in srgb, var(--wz-accent, #2ab4d0) 8%,  transparent), transparent 60%);
}
html.dark .wz-bg-thumb--halftone { background: #0d1117; }
html.dark .wz-bg-thumb--halftone::before { opacity: 0.28; }

/* ── Spotlight — dark: centered bright glow / light: overhead soft beam ── */
.wz-bg-thumb--spotlight {
  background: #020408;
}
.wz-bg-thumb--spotlight::before {
  background: radial-gradient(ellipse 70% 70% at 50% 35%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 58%, #fff) 0%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 22%, transparent) 42%,
    transparent 62%
  );
  filter: blur(1px);
}
.wz-bg-thumb--spotlight::after {
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 30%);
}
html:not(.dark) .wz-bg-thumb--spotlight {
  background: #f5f3ee;
}
html:not(.dark) .wz-bg-thumb--spotlight::before {
  background: radial-gradient(ellipse 60% 55% at 50% -5%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 42%, #fff) 0%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 16%, transparent) 45%,
    transparent 65%
  );
  filter: blur(2px);
}
html:not(.dark) .wz-bg-thumb--spotlight::after {
  background: radial-gradient(ellipse 90% 45% at 50% 100%, rgba(0,0,0,.05) 0%, transparent 70%);
}

/* ── Glasfönster — real clip-path diagonal panels ── */
.wz-bg-thumb--panels {
  background: color-mix(in srgb, var(--wz-accent, #2ab4d0) 6%, #f0eee9);
}
.wz-bg-thumb--panels::before {
  clip-path: polygon(0 0, 42% 0, 27% 100%, 0 100%);
  background: var(--wz-accent, #2ab4d0);
  opacity: 0.20;
  z-index: 1;
}
.wz-bg-thumb--panels::after {
  clip-path: polygon(65% 0, 100% 0, 100% 100%, 51% 100%);
  background: color-mix(in srgb, var(--wz-accent, #2ab4d0) 60%, #fff);
  opacity: 0.22;
  z-index: 2;
}
html.dark .wz-bg-thumb--panels {
  background: color-mix(in srgb, var(--wz-accent, #2ab4d0) 8%, #0d1117);
}
html.dark .wz-bg-thumb--panels::before { opacity: 0.18; }
html.dark .wz-bg-thumb--panels::after {
  background: color-mix(in srgb, var(--wz-accent, #2ab4d0) 40%, rgba(255,255,255,.05));
  opacity: 0.20;
}

/* ── Diagonal — rotated oversized stripe (matches real ::before transform) ── */
.wz-bg-thumb--diagonal {
  background: #07131c;
}
.wz-bg-thumb--diagonal::before {
  top: -60%; left: -60%;
  inset: unset;
  width: 220%; height: 220%;
  transform: rotate(-22deg);
  background: linear-gradient(
    to right,
    transparent 36%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 22%, transparent) 36%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 22%, transparent) 52%,
    transparent 52%,
    transparent 63%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 11%, transparent) 63%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 11%, transparent) 70%,
    transparent 70%
  );
  z-index: 1;
}
.wz-bg-thumb--diagonal::after {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px),
    radial-gradient(ellipse 55% 50% at 100% 100%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 50%, transparent), transparent 65%);
  background-size: 10px 10px, 100% 100%;
  background-repeat: repeat, no-repeat;
  z-index: 0;
}
html:not(.dark) .wz-bg-thumb--diagonal {
  background: #f2f0ee;
}
html:not(.dark) .wz-bg-thumb--diagonal::before {
  background: linear-gradient(
    to right,
    transparent 36%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 12%, transparent) 36%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 12%, transparent) 52%,
    transparent 52%,
    transparent 63%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 6%, transparent) 63%,
    color-mix(in srgb, var(--wz-accent, #2ab4d0) 6%, transparent) 70%,
    transparent 70%
  );
}
html:not(.dark) .wz-bg-thumb--diagonal::after {
  background-image:
    radial-gradient(circle, rgba(0,0,0,.07) 1px, transparent 1px),
    radial-gradient(ellipse 55% 50% at 100% 100%, color-mix(in srgb, var(--wz-accent, #2ab4d0) 20%, transparent), transparent 65%);
  background-size: 10px 10px, 100% 100%;
  background-repeat: repeat, no-repeat;
}

/* ── 37. AuroraBackground ─────────────────────────────────────── */
:root {
  --aurora-dark-1: #07131c;
  --aurora-c1:     #2ab4d0;
  --aurora-c2:     #0a5068;
  --aurora-c3:     #1a9ab8;
  --aurora-c4:     #68d4e8;
}

.aurora-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.aurora-layer {
  position: absolute;
  inset: -10px;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(
      100deg,
      var(--aurora-dark-1) 0%,  var(--aurora-dark-1) 7%,
      transparent          10%, transparent          12%,
      var(--aurora-dark-1) 16%
    ),
    repeating-linear-gradient(
      100deg,
      var(--aurora-c1) 10%,
      var(--aurora-c2) 15%,
      var(--aurora-c3) 20%,
      var(--aurora-c4) 25%,
      var(--aurora-c1) 30%
    );
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px);
  animation: auroraShift 60s linear infinite;
}

.aurora-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      100deg,
      var(--aurora-dark-1) 0%,  var(--aurora-dark-1) 7%,
      transparent          10%, transparent          12%,
      var(--aurora-dark-1) 16%
    ),
    repeating-linear-gradient(
      100deg,
      var(--aurora-c1) 10%,
      var(--aurora-c2) 15%,
      var(--aurora-c3) 20%,
      var(--aurora-c4) 25%,
      var(--aurora-c1) 30%
    );
  background-size: 200%, 100%;
  background-position: 50% 50%, 50% 50%;
  mix-blend-mode: difference;
  animation: auroraShift 30s linear infinite;
}

.aurora-mask {
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, black 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 80% 0%, black 10%, transparent 70%);
}

@keyframes auroraShift {
  from { background-position: 50% 50%, 50% 50%; }
  to   { background-position: 350% 50%, 350% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer,
  .aurora-layer::after { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   38. Statistics Page  (st-*)  —  Premium Analytics (light + dark)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Light mode tokens ───────────────────────────────────────────── */
.st-page {
  --st-bg:             #f0f5f8;
  --st-surface:        #ffffff;
  --st-surface-2:      #f5f8fa;
  --st-surface-3:      #edf2f6;
  --st-border:         rgba(0, 0, 0, 0.07);
  --st-border-hover:   rgba(42, 180, 208, 0.35);
  --st-text:           #0f1a22;
  --st-text-muted:     #6b8899;
  --st-accent:         #2ab4d0;
  --st-accent-bright:  #3dd5f3;
  --st-accent-dim:     rgba(42, 180, 208, 0.10);
  --st-green:          #22c55e;
  --st-red:            #e82535;
  --st-gold:           #f59e0b;
  --st-silver:         #94a3b8;
  --st-shadow:         0 1px 3px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.08);
  --st-glow:           0 0 0 1px rgba(42,180,208,0.22), 0 6px 24px rgba(0,0,0,0.12);
  --st-glow-card:      0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.07);

  background: var(--st-bg);
  min-height: calc(100vh - 4rem);
}

/* ── Dark mode tokens ────────────────────────────────────────────── */
html.dark .st-page {
  --st-bg:             #07131c;
  --st-surface:        #0d1e2c;
  --st-surface-2:      #122334;
  --st-surface-3:      #162d3f;
  --st-border:         rgba(42, 180, 208, 0.09);
  --st-border-hover:   rgba(42, 180, 208, 0.38);
  --st-text:           #cce4f0;
  --st-text-muted:     #4d87a3;
  --st-accent-dim:     rgba(42, 180, 208, 0.10);
  --st-shadow:         0 1px 3px rgba(0,0,0,0.4), 0 6px 24px rgba(0,0,0,0.45);
  --st-glow:           0 0 0 1px rgba(42,180,208,0.28), 0 8px 32px rgba(0,0,0,0.55);
  --st-glow-card:      0 0 0 1px rgba(42,180,208,0.13), 0 2px 8px rgba(0,0,0,0.3), 0 8px 32px rgba(0,0,0,0.35);

  background:
    radial-gradient(ellipse 65% 55% at 78% -10%, rgba(42,180,208,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 10% 90%,  rgba(42,180,208,0.04) 0%, transparent 60%),
    #07131c;
}

/* page-header typography */
.st-page .page-header h2,
.st-page .page-header-sub { color: var(--st-text); }

.st-page .page-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.st-page .page-header a {
  color: var(--st-accent);
  opacity: .75;
  transition: opacity .15s;
}
.st-page .page-header a:hover { opacity: 1; }

.st-kpi-card {
  background: var(--st-surface);
  border-color: var(--st-border);
}

html.dark .st-star-empty { color: rgba(255,255,255,0.12); }

html.dark .st-nps-gauge-dot { background: var(--st-surface); }

/* Override cs-card within st-page — dark glass, compact, flex-column */
.st-page .cs-card {
  background:    var(--st-surface);
  border:        1px solid var(--st-border);
  border-radius: 14px;
  padding:       1.25rem 1.375rem;
  box-shadow:    var(--st-glow-card);
  transition:    border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  display:       flex;
  flex-direction: column;
  position:      relative;
  overflow:      hidden;
}

/* subtle teal sheen at top edge */
.st-page .cs-card::before {
  content:    '';
  position:   absolute;
  inset:      0 0 auto 0;
  height:     1px;
  background: linear-gradient(90deg, transparent 0%, rgba(42,180,208,0.35) 40%, rgba(42,180,208,0.15) 70%, transparent 100%);
  pointer-events: none;
}

/* Grid cell wrapper fills the fixed row height */
.st-col-half,
.st-col-full {
  display: flex;
  flex-direction: column;
}
.st-col-half > .cs-card,
.st-col-full > .cs-card {
  flex: 1;
  overflow: hidden;
}

/* Chart grows to fill available card height */
.st-chart-fill {
  flex:        1;
  min-height:  0;
  position:    relative;
}
.st-chart-fill canvas {
  position: absolute;
  inset:    0;
  width:    100% !important;
  height:   100% !important;
}
.st-page .cs-card:hover {
  border-color: var(--st-border-hover);
  box-shadow:   var(--st-glow);
  transform:    translateY(-1px);
}

/* ── KPI Row ─────────────────────────────────────────────────────── */
.st-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .875rem;
  margin-bottom: 1rem;
}
.st-kpi-card {
  background:    var(--st-surface);
  border:        1px solid var(--st-border);
  border-radius: 16px;
  padding:       1.25rem 1.375rem;
  box-shadow:    var(--st-glow-card);
  position:      relative;
  overflow:      hidden;
  transition:    border-color .22s ease, box-shadow .22s ease, transform .22s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Luminous teal top-edge highlight */
.st-kpi-card::before {
  content:    '';
  position:   absolute;
  inset:      0 0 auto 0;
  height:     1px;
  background: linear-gradient(90deg, transparent 0%, rgba(42,180,208,0.6) 30%, rgba(61,213,243,0.4) 60%, transparent 100%);
  pointer-events: none;
}
/* Completion KPI: brighter highlight */
.st-kpi-row .st-kpi-card:last-child::before {
  background: linear-gradient(90deg, transparent, rgba(42,180,208,0.8) 35%, rgba(61,213,243,0.55) 65%, transparent);
}
/* Ambient teal orb — larger, more dramatic */
.st-kpi-card::after {
  content:        '';
  position:       absolute;
  bottom: -36px;  right: -28px;
  width:  130px;  height: 130px;
  border-radius:  50%;
  background:     radial-gradient(circle, rgba(42,180,208,0.10) 0%, transparent 68%);
  pointer-events: none;
}
.st-kpi-card:hover {
  border-color: var(--st-border-hover);
  box-shadow:   var(--st-glow);
  transform:    translateY(-2px);
}

.st-kpi-value {
  font-size:      2.25rem;
  font-weight:    700;
  font-family:    var(--font-display);
  color:          var(--st-text);
  line-height:    1;
  margin-bottom:  .25rem;
  letter-spacing: -.03em;
  text-shadow:    0 0 28px rgba(204,228,240,0.12);
}
/* Completion-rate KPI: glowing teal number */
.st-kpi-row .st-kpi-card:last-child .st-kpi-value {
  color: var(--st-accent);
  text-shadow: 0 0 24px rgba(42,180,208,0.45);
}

.st-kpi-label {
  font-size:      .625rem;
  font-weight:    700;
  color:          var(--st-text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Completion progress bar */
.st-completion-bar {
  height:     3px;
  background: var(--st-accent-dim, var(--cs-surface-2));
  border-radius: 999px;
  margin-top: 1rem;
  overflow:   hidden;
}
.st-completion-fill {
  height:     100%;
  background: linear-gradient(90deg, var(--st-accent, #2ab4d0), var(--st-accent-bright, #3dd5f3));
  border-radius: 999px;
  transition: width .85s cubic-bezier(0.34, 1.56, 0.64, 1);
  position:   relative;
}
.st-completion-fill::after {
  content:    '';
  position:   absolute;
  top: 0; right: 0;
  width: 55px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
  animation:  stShimmer 2.8s ease-in-out infinite 1s;
}
@keyframes stShimmer {
  0%, 65%, 100% { opacity: 0; transform: translateX(15px); }
  40%           { opacity: 1; transform: translateX(-15px); }
}

/* ── Bento grid ─────────────────────────────────────────────────── */
.st-questions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  column-gap: .875rem;
  row-gap:    .875rem;
  align-items: stretch;   /* cards in same row are always equal height */
}
.st-col-full { grid-column: span 12; }

/* Half-width cards: natural height, min floor */
.st-col-half > .cs-card { min-height: 220px; }
/* Full-width cards (NPS, Ranking) need more room */
.st-col-full > .cs-card { min-height: 320px; }
.st-col-half { grid-column: span 6; }

/* ── Card entrance animation ─────────────────────────────────────── */
@keyframes stCardEnter {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.st-card-anim {
  animation: stCardEnter .5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@media (prefers-reduced-motion: reduce) { .st-card-anim { animation: none !important; } }

/* ── Card meta bar (answer-count eyebrow + type badge) ────────────── */
.st-card-meta {
  display:   flex;
  align-items: center;
  gap:       .4rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}
.eyebrow        { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-dark   { color: var(--cs-text-muted); }

/* ── Answer-type badge ───────────────────────────────────────────── */
.st-type-badge {
  display:     inline-flex;
  align-items: center;
  gap:         .3rem;
  font-size:   .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color:       var(--st-accent, var(--cs-accent));
  background:  var(--st-accent-dim, rgba(42,180,208,.10));
  border:      1px solid rgba(42,180,208,.22);
  padding:     .2rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.st-type-badge i { font-size: .65rem; }

/* ── Numeric stat blocks ─────────────────────────────────────────── */
.st-stat-block {
  background:    var(--st-surface-2);
  border-radius: 10px;
  padding:       .875rem .625rem;
  border:        1px solid var(--st-border);
  text-align:    center;
}
.st-stat-value {
  font-size:     1.5rem;
  font-weight:   700;
  font-family:   var(--font-display);
  color:         var(--st-accent, var(--cs-accent));
  line-height:   1;
  margin-bottom: .2rem;
  letter-spacing: -.025em;
}
.st-stat-label {
  font-size:      .6875rem;
  color:          var(--st-text-muted, var(--cs-text-muted));
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Average pill ────────────────────────────────────────────────── */
.st-avg-pill {
  display:     inline-flex;
  align-items: center;
  gap:         .35rem;
  background:  var(--st-accent-dim, rgba(42,180,208,.10));
  border:      1px solid rgba(42,180,208,.22);
  color:       var(--st-accent, var(--cs-accent));
  font-size:   .75rem;
  font-weight: 700;
  padding:     .25rem .75rem;
  border-radius: 999px;
  margin-bottom: .625rem;
}

/* ── Stars ───────────────────────────────────────────────────────── */
.st-star-avg {
  display:     flex;
  align-items: center;
  gap:         .15rem;
  margin-bottom: .625rem;
}
.st-star-filled {
  color:       var(--st-gold, #f59e0b);
  font-size:   1.25rem;
  line-height: 1;
  filter:      drop-shadow(0 0 4px rgba(245,158,11,.35));
}
.st-star-empty  { font-size: 1.25rem; line-height: 1; color: #dde4ea; }
.st-star-num {
  font-family:    var(--font-display);
  font-size:      1.25rem;
  font-weight:    700;
  color:          var(--st-gold, var(--cs-text));
  margin-left:    .35rem;
  letter-spacing: -.025em;
  line-height:    1;
}

/* ── Text / email list ───────────────────────────────────────────── */
.st-text-list {
  display:        flex;
  flex-direction: column;
  gap:            .4rem;
  flex:           1;          /* fills card height */
  overflow-y:     auto;
  scrollbar-width: thin;
  scrollbar-color: var(--st-border, rgba(42,180,208,.15)) transparent;
}
.st-text-list::-webkit-scrollbar { width: 3px; }
.st-text-list::-webkit-scrollbar-thumb { background: var(--st-border, rgba(42,180,208,.2)); border-radius: 999px; }
.st-text-item {
  display:     flex;
  align-items: flex-start;
  gap:         .625rem;
  background:  var(--st-surface-2);
  border-left: 2px solid rgba(42,180,208,0.35);
  border-radius: 0 8px 8px 0;
  padding:     .5rem .875rem;
  font-size:   .875rem;
  color:       var(--st-text);
  line-height: 1.5;
  transition:  border-color .15s, background .15s;
}
.st-text-item:hover { background: var(--st-surface-3); }
.st-text-item:hover { border-left-color: var(--st-accent-bright, #3dd5f3); }
.st-text-num {
  flex-shrink:  0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background:   var(--st-accent, #2ab4d0);
  color:        #fff;
  font-size:    .6rem;
  font-weight:  800;
  display:      flex;
  align-items:  center;
  justify-content: center;
  margin-top:   2px;
}

/* ── Numeric range bar ───────────────────────────────────────────── */
.st-range-row {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  font-size:       .6875rem;
  font-weight:     600;
  color:           var(--st-text-muted, var(--cs-text-muted));
  margin-top:      1rem;
}
.st-range-avg { color: var(--st-accent, var(--cs-accent)); font-weight: 800; font-size: .75rem; }
.st-range-track {
  position:      relative;
  height:        5px;
  background:    var(--st-accent-dim, var(--cs-surface-2));
  border-radius: 999px;
  margin:        .5rem 0 0;
  overflow:      visible;
}
.st-range-fill {
  position:   absolute;
  inset:      0;
  background: linear-gradient(90deg, rgba(42,180,208,.20), rgba(42,180,208,.55));
  border-radius: 999px;
}
.st-range-dot {
  position:      absolute;
  width: 13px;   height: 13px;
  background:    var(--st-accent, var(--cs-accent));
  border:        2.5px solid var(--st-surface, var(--cs-white));
  border-radius: 50%;
  top: 50%;
  transform:     translate(-50%, -50%);
  box-shadow:    0 0 0 3px rgba(42,180,208,.22), 0 2px 6px rgba(0,0,0,.3);
}

/* ── NPS ──────────────────────────────────────────────────────────── */
.st-nps-layout {
  display:     grid;
  grid-template-columns: 180px 1fr;
  gap:         1.5rem;
  align-items: center;
  flex:        1;           /* grows inside flex-column cs-card */
}
.st-nps-big { display: flex; flex-direction: column; }
.st-nps-label {
  font-size:      .6875rem;
  font-weight:    700;
  color:          var(--st-text-muted, var(--cs-text-muted));
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom:  .2rem;
}
.st-nps-num {
  font-size:      3rem;
  font-weight:    700;
  font-family:    var(--font-display);
  line-height:    1;
  letter-spacing: -.04em;
}
.st-nps-num.positive { color: var(--st-green,  #22c55e); }
.st-nps-num.warning  { color: var(--st-gold,   #f59e0b); }
.st-nps-num.neutral  { color: var(--st-silver, #94a3b8); }
.st-nps-num.negative { color: var(--st-red,    #e82535); }

.st-nps-avg-note {
  font-size:   .8125rem;
  color:       var(--st-text-muted, var(--cs-text-muted));
  font-weight: 600;
  margin-top:  .45rem;
}

/* NPS gauge: coloured track from -100 → +100 */
.st-nps-gauge {
  width:         100%;
  height:        5px;
  border-radius: 999px;
  background:    linear-gradient(to right,
    #e82535 0%,   #e82535 33.3%,
    #94a3b8 33.3%,#94a3b8 50%,
    #22c55e 50%,  #22c55e 100%
  );
  position:   relative;
  margin-top: .9rem;
}
.st-nps-gauge-dot {
  position:      absolute;
  top:           50%;
  width: 14px;   height: 14px;
  border-radius: 50%;
  background:    #fff;
  border:        2.5px solid;
  transform:     translate(-50%, -50%);
  box-shadow:    0 2px 8px rgba(0,0,0,.35);
  transition:    left .6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.st-nps-gauge-dot.positive { border-color: #22c55e; }
.st-nps-gauge-dot.warning  { border-color: #f59e0b; }
.st-nps-gauge-dot.neutral  { border-color: #94a3b8; }
.st-nps-gauge-dot.negative { border-color: #e82535; }

/* NPS zone breakdown */
.st-nps-zones-row {
  display:     grid;
  grid-template-columns: repeat(3, 1fr);
  gap:         .625rem;
  margin-top:  1rem;
  padding-top: 1rem;
  border-top:  1px solid var(--st-border, var(--cs-surface-2));
}
.st-nps-zone-item {
  border-radius: 10px;
  padding:       .625rem .875rem;
  display:       flex;
  flex-direction: column;
  gap:           .1rem;
  border:        1px solid transparent;
}
.st-nps-zone-item-d  { background: rgba(232, 37,53, .07); border-color: rgba(232, 37,53, .20); }
.st-nps-zone-item-p  { background: rgba(148,163,184,.07); border-color: rgba(148,163,184,.18); }
.st-nps-zone-item-pr { background: rgba( 34,197,94, .07); border-color: rgba( 34,197,94, .20); }

.st-nps-zone-count {
  font-size:      1.375rem;
  font-weight:    700;
  font-family:    var(--font-display);
  line-height:    1;
  letter-spacing: -.025em;
}
.st-nps-zone-item-d  .st-nps-zone-count { color: #e82535; }
.st-nps-zone-item-p  .st-nps-zone-count { color: #94a3b8; }
.st-nps-zone-item-pr .st-nps-zone-count { color: #22c55e; }

.st-nps-zone-name {
  font-size:      .7rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color:          var(--st-text, var(--cs-text));
  margin-top:     .1rem;
}
.st-nps-zone-range { font-size: .625rem; color: var(--st-text-muted, var(--cs-text-muted)); font-weight: 500; }
.st-nps-zone-pct   { font-size: .75rem; font-weight: 800; margin-top: .3rem; letter-spacing: .02em; }
.st-nps-zone-item-d  .st-nps-zone-pct { color: #e82535; }
.st-nps-zone-item-p  .st-nps-zone-pct { color: #94a3b8; }
.st-nps-zone-item-pr .st-nps-zone-pct { color: #22c55e; }

/* ── Ranking hint ────────────────────────────────────────────────── */
.st-rank-hint {
  font-size:   .75rem;
  color:       var(--st-text-muted, var(--cs-text-muted));
  font-weight: 600;
  margin-bottom: .75rem;
  letter-spacing: .02em;
}

/* ── Ja/Nej split visualization ──────────────────────────────────── */
.st-yesno {
  display:        flex;
  flex-direction: column;
  flex:           1;
  gap:            .75rem;
}
.st-yesno-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:     .625rem;
  flex:    1;
}
.st-yesno-tile {
  border-radius: 12px;
  padding:       1rem .875rem;
  display:       flex;
  flex-direction: column;
  justify-content: center;
  gap:           .2rem;
  border:        1px solid transparent;
  transition:    border-color .15s;
}
.st-yesno-tile-yes {
  background:   rgba(34, 197, 94,  .08);
  border-color: rgba(34, 197, 94,  .22);
}
.st-yesno-tile-no {
  background:   rgba(232, 37, 53,  .08);
  border-color: rgba(232, 37, 53,  .20);
}
.st-yesno-pct {
  font-size:      2rem;
  font-weight:    700;
  font-family:    var(--font-display);
  line-height:    1;
  letter-spacing: -.03em;
}
.st-yesno-tile-yes .st-yesno-pct { color: var(--st-green, #22c55e); }
.st-yesno-tile-no  .st-yesno-pct { color: var(--st-red,   #e82535); }
.st-yesno-label {
  font-size:      .7rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color:          var(--st-text-muted);
}
.st-yesno-count {
  font-size:   .8125rem;
  font-weight: 600;
  color:       var(--st-text-muted);
  margin-top:  .1rem;
}
/* Split bar */
.st-yesno-bar {
  height:        6px;
  border-radius: 999px;
  overflow:      hidden;
  background:    var(--st-surface-2);
  display:       flex;
}
.st-yesno-bar-yes {
  background:    linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 999px 0 0 999px;
  transition:    width .7s cubic-bezier(.34,1.56,.64,1);
}
.st-yesno-bar-no {
  background:    linear-gradient(90deg, #f87171, #e82535);
  flex:          1;
  border-radius: 0 999px 999px 0;
  transition:    width .7s cubic-bezier(.34,1.56,.64,1);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .st-nps-layout { grid-template-columns: 175px 1fr; gap: 1.25rem; }
}
@media (max-width: 767px) {
  .st-col-half, .st-col-full { grid-column: span 12; }
  .st-kpi-row  { grid-template-columns: repeat(2,1fr); }
  .st-kpi-row .st-kpi-card:last-child { grid-column: span 2; }
  .st-nps-layout    { grid-template-columns: 1fr; }
  .st-nps-zones-row { grid-template-columns: 1fr; }
  .st-nps-num       { font-size: 3.5rem; }
}
@media (max-width: 479px) {
  .st-kpi-row { grid-template-columns: 1fr; }
  .st-kpi-row .st-kpi-card:last-child { grid-column: span 1; }
}

/* ── 3-D tilt support ───────────────────────────────────────────── */
.st-page .cs-card,
.st-page .st-kpi-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Completion KPI card with SVG ring ──────────────────────────── */
.st-kpi-completion {
  display:         flex;
  align-items:     center;
  gap:             1rem;
}

/* SVG progress ring wrapper */
.st-ring-wrap {
  position:   relative;
  width:       58px;
  height:      58px;
  flex-shrink: 0;
}
.st-ring-inner {
  position: absolute;
  inset:    0;
  display:  flex;
  align-items:     center;
  justify-content: center;
  font-size:   .625rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--st-accent, #2ab4d0);
}
.st-ring-path {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) .3s;
}

/* ── 38. Sysadmin ─────────────────────────────────────────────── */

.sa-table {
  width: 100%;
  border-collapse: collapse;
}
.sa-table th {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  padding: .625rem 1rem;
  border-bottom: 1px solid var(--cs-surface-2);
  text-align: left;
  white-space: nowrap;
}
.sa-table td {
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--cs-surface-2);
  font-size: .9rem;
  color: var(--cs-text);
  vertical-align: middle;
}
.sa-table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}
.sa-table tbody tr:hover {
  background: var(--cs-surface);
}
.sa-table tbody tr:last-child td {
  border-bottom: none;
}

.sa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .7rem;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.sa-status-badge--free     { background: rgba(107,136,153,.12); color: var(--cs-text-muted); }
.sa-status-badge--standard { background: rgba(42,180,208,.12);  color: var(--cs-accent); }
.sa-status-badge--pro      { background: rgba(99,102,241,.12);  color: #6366f1; }
.sa-status-badge--business { background: rgba(245,158,11,.12);  color: #d97706; }
.sa-status-badge--expired  { background: rgba(232,37,53,.10);   color: var(--cs-cta); }

.sa-key-dot {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
}
.sa-key-dot::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.sa-key-dot--active   { color: #22c55e; }
.sa-key-dot--active::before  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.5); }
.sa-key-dot--inactive { color: var(--cs-text-muted); }
.sa-key-dot--inactive::before { background: var(--cs-text-muted); }

.sa-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .8125rem;
  font-weight: 600;
  background: var(--cs-surface-2);
  color: var(--cs-text);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.sa-edit-btn:hover {
  background: var(--cs-accent);
  color: #fff;
  text-decoration: none;
}

.sa-card {
  background: var(--cs-surface);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 600px;
}
.sa-section {
  margin-bottom: 1.75rem;
}
.sa-section:last-child { margin-bottom: 0; }
.sa-section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  margin-bottom: .5rem;
}
.sa-divider {
  border: none;
  border-top: 1px solid var(--cs-surface-2);
  margin: 1.75rem 0;
}

.sa-key-reveal {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--cs-dark);
  border: 1px solid rgba(42,180,208,.25);
  border-radius: var(--radius-md);
  padding: .875rem 1.25rem;
  margin-top: 1rem;
  animation: saFadeIn .3s var(--ease-out);
}
.sa-key-value {
  font-family: 'Courier New', monospace;
  font-size: .875rem;
  color: var(--cs-accent);
  letter-spacing: .04em;
  word-break: break-all;
  flex: 1;
}
.sa-key-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .8rem;
  border-radius: var(--radius-sm);
  background: rgba(42,180,208,.15);
  color: var(--cs-accent);
  border: 1px solid rgba(42,180,208,.3);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast);
}
.sa-key-copy-btn:hover { background: rgba(42,180,208,.25); }
.sa-key-warning {
  font-size: .8125rem;
  color: #f59e0b;
  margin-top: .625rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.sa-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}
.sa-action-btn:active { transform: scale(.97); }
.sa-action-btn--generate { background: var(--cs-accent); color: #fff; }
.sa-action-btn--generate:hover { opacity: .9; }
.sa-action-btn--revoke   { background: rgba(232,37,53,.10); color: var(--cs-cta); border: 1px solid rgba(232,37,53,.2); }
.sa-action-btn--revoke:hover { background: rgba(232,37,53,.18); }
.sa-action-btn--save     { background: var(--cs-primary); color: #fff; }
.sa-action-btn--save:hover { opacity: .9; }
.sa-action-btn:disabled  { opacity: .45; cursor: not-allowed; }

.sa-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--cs-text-muted);
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color var(--duration-fast);
}
.sa-back-link:hover { color: var(--cs-accent); text-decoration: none; }

@keyframes saFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 39. Help / Docs ─────────────────────────────────────────── */

@keyframes hdFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shell */
.hd-shell {
  min-height: 100vh;
  background: var(--cs-dark);
  display: flex;
  flex-direction: column;
}

/* Header */
.hd-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 19, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 180, 208, 0.10);
}
.hd-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hd-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.hd-brand span { color: var(--cs-accent); }
.hd-brand:hover { color: #fff; text-decoration: none; }

.hd-header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hd-header-link {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: color var(--duration-fast);
}
.hd-header-link:hover { color: #fff; text-decoration: none; }
.hd-header-link--cta {
  background: var(--cs-accent);
  color: #fff;
  padding: .35rem .9rem;
  border-radius: var(--radius-pill);
  font-size: .8125rem;
}
.hd-header-link--cta:hover { opacity: .88; color: #fff; }

/* Body layout */
.hd-body {
  flex: 1;
  display: flex;
  position: relative;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  gap: 0;
}

/* Sidebar */
.hd-sidebar {
  width: 256px;
  flex-shrink: 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 1.5rem 0;
  border-right: 1px solid rgba(255,255,255,.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(42,180,208,.2) transparent;
}
.hd-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding-right: 1rem;
}

/* Search */
.hd-search-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}
.hd-search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.35);
  font-size: .875rem;
  pointer-events: none;
}
.hd-search-input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: .875rem;
  font-family: 'Nunito', sans-serif;
  padding: .55rem .75rem .55rem 2.1rem;
  outline: none;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.hd-search-input::placeholder { color: rgba(255,255,255,.35); }
.hd-search-input:focus {
  border-color: rgba(42,180,208,.45);
  background: rgba(255,255,255,.09);
}

/* Search results */
.hd-search-results {
  background: #0d2030;
  border: 1px solid rgba(42,180,208,.18);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.hd-search-empty {
  padding: .75rem 1rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.4);
}
.hd-search-result {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none;
  transition: background var(--duration-fast);
}
.hd-search-result:last-child { border-bottom: none; }
.hd-search-result:hover { background: rgba(42,180,208,.08); text-decoration: none; }
.hd-search-result-title {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--cs-accent);
}
.hd-search-result-excerpt {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

/* Nav */
.hd-nav-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: .5rem 0 .4rem;
  margin-bottom: .125rem;
}
.hd-nav-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .75rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  position: relative;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.hd-nav-item:hover { color: #fff; background: rgba(255,255,255,.05); text-decoration: none; }
.hd-nav-item--active {
  color: var(--cs-accent) !important;
  background: rgba(42,180,208,.10) !important;
}
.hd-nav-item--active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--cs-accent);
}
.hd-nav-icon {
  font-size: .9rem;
  opacity: .8;
}

/* Sidebar footer */
.hd-sidebar-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.hd-sidebar-contact {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.hd-sidebar-contact:hover { color: var(--cs-accent); text-decoration: none; }

/* Mobile sidebar */
.hd-sidebar-overlay {
  display: none;
}
.hd-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 300;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cs-accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(42,180,208,.4);
  cursor: pointer;
  transition: transform var(--duration-fast), opacity var(--duration-fast);
}
.hd-mobile-toggle:hover { opacity: .9; transform: scale(1.05); }

@media (max-width: 767px) {
  .hd-body { padding: 0; }
  .hd-mobile-toggle { display: flex; }
  .hd-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 280px;
    height: auto;
    z-index: 250;
    background: #0a1e2d;
    border-right: 1px solid rgba(42,180,208,.15);
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.34,1.56,.64,1);
    padding: 1.5rem 1.25rem;
  }
  .hd-sidebar--open { transform: translateX(0); }
  .hd-sidebar-inner { padding-right: 0; }
  .hd-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 240;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
  }
}

/* Main content area */
.hd-main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 2rem 4rem;
}

/* Article content */
.hd-article-fade {
  animation: hdFadeUp .38s cubic-bezier(.34,1.56,.64,1) both;
}

.hd-content {
  max-width: 720px;
}

/* Markdown typography */
.hd-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(42,180,208,.15);
}
.hd-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: -0.02em;
  margin: 2.25rem 0 .75rem;
}
.hd-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cs-accent);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .8125rem;
  margin: 1.75rem 0 .5rem;
}
.hd-content p {
  color: rgba(255,255,255,.72);
  font-size: .9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.hd-content a {
  color: var(--cs-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(42,180,208,.4);
  transition: color var(--duration-fast), text-decoration-color var(--duration-fast);
}
.hd-content a:hover {
  color: var(--cs-accent-light);
  text-decoration-color: var(--cs-accent);
}
.hd-content ul,
.hd-content ol {
  color: rgba(255,255,255,.72);
  font-size: .9375rem;
  line-height: 1.75;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.hd-content li { margin-bottom: .25rem; }
.hd-content strong { color: rgba(255,255,255,.9); font-weight: 700; }
.hd-content em { color: rgba(255,255,255,.8); }

/* Blockquotes */
.hd-content blockquote {
  border-left: 3px solid var(--cs-accent);
  background: rgba(42,180,208,.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.25rem 0;
  padding: .75rem 1.25rem;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  font-style: normal;
}
.hd-content blockquote p { margin: 0; color: inherit; }

/* Code */
.hd-content code {
  background: rgba(42,180,208,.10);
  color: var(--cs-accent-light);
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: .82em;
  padding: .15em .45em;
  border-radius: 4px;
}
.hd-content pre {
  background: #040e16;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  position: relative;
}
.hd-content pre code {
  background: none;
  color: rgba(255,255,255,.8);
  padding: 0;
  font-size: .875rem;
  line-height: 1.65;
}

/* Tables */
.hd-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin: 1.25rem 0;
  color: rgba(255,255,255,.72);
}
.hd-content thead th {
  background: rgba(42,180,208,.08);
  color: rgba(255,255,255,.85);
  font-weight: 700;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .6rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(42,180,208,.2);
}
.hd-content tbody td {
  padding: .6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
}
.hd-content tbody tr:last-child td { border-bottom: none; }
.hd-content tbody tr:hover td { background: rgba(255,255,255,.025); }

/* Hr */
.hd-content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 2rem 0;
}

/* ── 39. Contacts (cn-*) ───────────────────────────────────── */

.cn-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--cs-text-muted);
  display: block;
  margin-bottom: .3rem;
}

.cn-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--cs-surface-2);
  color: var(--cs-text-muted);
  border: 1.5px solid transparent;
  cursor: default;
  transition: background .15s, border-color .15s, color .15s;
}
.cn-tag--active {
  background: rgba(42, 180, 208, .12);
  border-color: var(--cs-accent);
  color: var(--cs-accent);
}
.cn-tag--sm {
  padding: .1rem .45rem;
  font-size: .7rem;
}
.cn-tag-del {
  background: none;
  border: none;
  padding: 0 .1rem;
  cursor: pointer;
  color: inherit;
  opacity: .55;
  font-size: .85em;
  line-height: 1;
}
.cn-tag-del:hover { opacity: 1; color: var(--cs-cta); }

.cn-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cn-modal {
  background: var(--cs-white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}

