@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #dbe3ef;
  --primary: #0f766e;
  --primary-strong: #115e59;
  --accent: #0ea5e9;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --draft: #64748b;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 14px 38px rgba(15, 23, 42, 0.13);
}

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

html,
body,
#root {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  position: relative;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(64px);
  pointer-events: none;
}

.bg-orb-a {
  top: -120px;
  right: -100px;
  width: 340px;
  height: 340px;
  background: rgba(14, 165, 233, 0.26);
}

.bg-orb-b {
  bottom: -160px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: rgba(15, 118, 110, 0.2);
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
}

.app-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(130deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-soft);
}

.main-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.main-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.44rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: 160ms ease;
}

.main-nav-link.active {
  color: var(--primary);
  background: rgba(15, 118, 110, 0.13);
}

.nav-link-cta {
  color: #fff;
  background: var(--primary);
}

.nav-link-cta:hover {
  background: var(--primary-strong);
}

.auth-slot {
  min-width: 84px;
  display: flex;
  justify-content: flex-end;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.44rem 0.88rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
}

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

.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 2.2rem;
}

.page-section {
  display: grid;
  gap: 1rem;
}

.hero {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.95));
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.2rem;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  margin: 0.35rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.72rem;
}

.hero-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-metrics {
  display: grid;
  gap: 0.65rem;
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.2rem;
}

.metric-card span {
  color: var(--text-muted);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.metric-card strong {
  font-size: 0.94rem;
}

.section-header {
  display: grid;
  gap: 0.2rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.38rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.section-head-row h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  letter-spacing: -0.015em;
}

.section-head-row p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.section-head-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  border-radius: 10px;
  display: inline-flex;
  gap: 0.44rem;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.56rem 0.95rem;
  font-weight: 800;
  font-size: 0.84rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  color: var(--text);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(14, 165, 233, 0.18),
    0 10px 30px rgba(15, 23, 42, 0.08);
}

.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-primary {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.button-primary:hover:not(:disabled) {
  color: #fff;
  border-color: #020617;
  background: #020617;
}

.button-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.button-secondary:hover:not(:disabled) {
  border-color: #c7d2e5;
}

.button-danger {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

.button-danger:hover:not(:disabled) {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.button-small {
  min-height: 34px;
  padding: 0.36rem 0.72rem;
  font-size: 0.75rem;
}

.alert {
  border-radius: 14px;
  padding: 0.82rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.alert-danger {
  color: #7f1d1d;
  background: #fee2e2;
  border-color: #fecaca;
}

.alert-warning {
  color: #7c2d12;
  background: #ffedd5;
  border-color: #fed7aa;
}

.card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.loading-block {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

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

.empty-state {
  border-radius: 18px;
  border: 1px dashed var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 1.2rem;
  text-align: center;
}

.empty-state h1 {
  margin: 0.1rem 0 0.55rem;
  color: var(--text);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.88rem;
}

.example-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.example-top h3 {
  margin: 0;
  font-size: 1.02rem;
}

.example-top p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.example-poll-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.question-link {
  font-weight: 700;
  line-height: 1.42;
}

.question-link:hover {
  color: var(--primary);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-chip {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.icon-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.icon-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #c7d2e5;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

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

.icon-danger:hover:not(:disabled) {
  border-color: #fca5a5;
  background: #fef2f2;
  color: var(--danger);
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 12px;
  background: #f1f5f9;
}

.tab {
  border: none;
  cursor: pointer;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.47rem 0.95rem;
  background: transparent;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 800;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.tab:hover:not(.tab-active) {
  color: var(--text);
}

.tab-active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.tab-count {
  border-radius: 999px;
  min-width: 22px;
  padding: 0.06rem 0.3rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.tab-active .tab-count {
  border-color: rgba(15, 118, 110, 0.2);
  color: var(--primary);
}

.poll-dashboard-page {
  gap: 1.05rem;
}

.poll-dashboard-controls {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 0.55rem;
  display: flex;
  gap: 0.55rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.poll-dashboard-filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #f1f5f9;
  padding: 0.22rem;
  border-radius: 12px;
}

.poll-dashboard-filter-pill {
  border: none;
  background: transparent;
  cursor: pointer;
  min-height: 36px;
  padding: 0.45rem 0.88rem;
  border-radius: 10px;
  color: #475569;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.poll-dashboard-filter-pill:hover {
  color: #0f172a;
}

.poll-dashboard-filter-pill-active {
  color: #0f766e;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.poll-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.poll-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.poll-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.poll-card-main {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.poll-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.poll-card-context {
  margin: 0;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
}

.poll-card-draft-options {
  display: grid;
  gap: 0.44rem;
}

.poll-card-draft-option {
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  padding: 0.5rem 0.6rem;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.poll-card-draft-more {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
}

.poll-card-top-list {
  display: grid;
  gap: 0.58rem;
}

.poll-card-top-item {
  display: grid;
  gap: 0.32rem;
}

.poll-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.poll-card-top-label {
  color: #1e293b;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.poll-card-top-value {
  color: #0f766e;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.poll-card-top-track {
  height: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.poll-card-top-fill {
  height: 100%;
  border-radius: 999px;
  background: #0f766e;
}

.poll-card-top-fill-muted {
  opacity: 0.36;
}

.poll-card-image-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.poll-card-image-top-item {
  display: grid;
  gap: 0.32rem;
}

.poll-card-image-top-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #e2e8f0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.poll-card-image-top-value {
  color: #0f766e;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

.poll-card-foot {
  border-top: 1px solid #dbe3ef;
  margin-top: auto;
  padding-top: 0.68rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
}

.poll-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
}

.poll-dashboard-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-soft);
  padding: 0.9rem;
  display: grid;
  gap: 0.72rem;
}

.poll-dashboard-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid #dbe3ef;
  padding-bottom: 0.6rem;
}

.poll-dashboard-sidebar-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.poll-dashboard-sidebar-head span {
  color: #64748b;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.poll-dashboard-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  border: 1px solid #d7dfed;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0 0.7rem;
  color: #94a3b8;
  flex: 1 1 320px;
  max-width: 440px;
}

.poll-dashboard-search:focus-within {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  background: #fff;
}

.poll-dashboard-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  min-height: 38px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
}

.poll-dashboard-search input::placeholder {
  color: #94a3b8;
}

.poll-dashboard-sidebar .tabs {
  width: 100%;
}

.poll-dashboard-sidebar .tab {
  flex: 1;
  justify-content: center;
  text-transform: capitalize;
}

.poll-dashboard-main {
  min-width: 0;
}

.poll-list {
  display: grid;
  gap: 0.55rem;
}

.poll-row {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: block;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.poll-row:hover {
  transform: translateY(-2px);
}

.poll-row-selected {
  border-color: rgba(15, 118, 110, 0.4);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.94));
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.12);
}

.poll-row-selected .poll-row-title-wrap h3 {
  color: #0f766e;
}

.poll-row-main {
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.poll-row-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: space-between;
}

.poll-row-title-wrap h3 {
  margin: 0;
  font-size: 0.95rem;
}

.poll-row-meta {
  color: var(--text-muted);
  display: grid;
  gap: 0.24rem;
  font-size: 0.78rem;
}

.poll-row-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.poll-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.poll-status-dot-completed {
  background: #16a34a;
}

.poll-status-dot-failed {
  background: #dc2626;
}

.poll-status-dot-neutral {
  background: #94a3b8;
}

.poll-status-dot-running {
  background: #0ea5e9;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.55);
  animation: poll-dot-pulse 1.35s ease-out infinite;
}

.poll-row-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
}

.poll-row-choice-thumb {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #e2e8f0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.badge {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.56rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.badge-success {
  color: #166534;
  background: #dcfce7;
}

.badge-running {
  color: #0c4a6e;
  background: #e0f2fe;
}

.badge-warning {
  color: #92400e;
  background: #fef3c7;
}

.badge-danger {
  color: #991b1b;
  background: #fee2e2;
}

.badge-draft {
  color: #334155;
  background: #e2e8f0;
}

.editor-form {
  display: grid;
  gap: 0.9rem;
}

.field-label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 800;
}

.field-input {
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.66rem 0.74rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  color: var(--text);
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.area-lg {
  min-height: 118px;
  resize: vertical;
}

.area-md {
  min-height: 96px;
  resize: vertical;
}

.editor-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 0.82rem;
  display: grid;
  gap: 0.72rem;
}

.editor-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-card-head h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.category-list {
  display: grid;
  gap: 0.58rem;
}

.category-row {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 0.8fr 1fr auto;
}

.hint-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.79rem;
}

.stats-band {
  border-radius: 15px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(15, 118, 110, 0.1), rgba(14, 165, 233, 0.07));
  padding: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.stats-band span {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-band strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.poll-builder {
  display: grid;
  gap: 1rem;
}

.poll-builder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.poll-builder-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.poll-builder-back:hover {
  color: var(--text);
}

.poll-builder-head h1 {
  margin: 0.44rem 0 0;
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  letter-spacing: -0.02em;
}

.poll-builder-head p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
}

.poll-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 1rem;
  align-items: start;
}

.poll-builder-main {
  display: grid;
  gap: 0.95rem;
}

.poll-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
}

.poll-card h2 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.poll-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.poll-card-head h2 {
  color: var(--text);
}

.poll-input {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.68rem 0.78rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
}

.poll-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.poll-question-input {
  min-height: 120px;
  resize: vertical;
}

.poll-choices-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.poll-choices-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.poll-choice-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.2rem;
  background: var(--surface-alt);
}

.poll-choice-toggle-btn {
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  padding: 0.3rem 0.58rem;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
}

.poll-choice-toggle-btn.is-active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.09);
}

.poll-choice-list {
  display: grid;
  gap: 0.6rem;
}

.poll-choice-row {
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 0.55rem;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.poll-choice-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.14);
  font-size: 0.8rem;
  font-weight: 700;
}

.poll-choice-field-wrap {
  position: relative;
}

.poll-choice-icon {
  position: absolute;
  top: 50%;
  left: 0.65rem;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.poll-choice-input {
  padding-left: 2rem;
}

.poll-choice-upload-wrap {
  padding-left: 2rem;
  display: grid;
  gap: 0.24rem;
}

.poll-choice-file-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.22rem;
}

.poll-choice-file-input::file-selector-button {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.34rem 0.64rem;
  margin-right: 0.56rem;
  cursor: pointer;
}

.poll-choice-file-input:disabled {
  opacity: 0.65;
  cursor: wait;
}

.poll-choice-upload-hint {
  color: var(--text-muted);
  font-size: 0.73rem;
}

.poll-choice-upload-error {
  grid-column: 2 / -1;
  color: var(--danger);
  font-size: 0.74rem;
  font-weight: 700;
}

.poll-remove-choice {
  width: 34px;
  height: 34px;
}

.poll-choice-image-preview {
  grid-column: 2 / -1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e2e8f0;
  aspect-ratio: 16 / 7;
}

.poll-choice-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poll-add-choice {
  border-radius: 11px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.72);
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.poll-add-choice:hover {
  border-color: rgba(15, 118, 110, 0.45);
  color: var(--primary);
  background: rgba(15, 118, 110, 0.07);
}

.poll-context-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.poll-context-head p {
  margin: 0.24rem 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.poll-category-split {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.poll-category-split-main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.poll-category-split-toggle {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  min-width: 34px;
  padding: 0.36rem 0.48rem;
}

.poll-category-split-menu {
  position: absolute;
  top: calc(100% + 0.34rem);
  right: 0;
  z-index: 30;
  min-width: 170px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  padding: 0.28rem;
  display: grid;
  gap: 0.18rem;
}

.poll-category-split-item {
  border: none;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  padding: 0.42rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.poll-category-split-item:hover {
  background: rgba(15, 118, 110, 0.08);
}

.poll-context-list {
  display: grid;
  gap: 0.72rem;
}

.poll-context-row {
  border-radius: 13px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 0.74rem;
  display: grid;
  gap: 0.6rem;
}

.poll-context-input-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(0, 1fr);
  gap: 0.62rem;
  align-items: start;
}

.poll-context-field {
  display: grid;
  gap: 0.36rem;
}

.poll-context-field-label {
  display: grid;
  gap: 0.36rem;
}

.poll-context-field span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 800;
}

.poll-context-row-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  align-items: flex-start;
}

.poll-context-values {
  display: grid;
  gap: 0.45rem;
}

.poll-context-values-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 800;
}

.poll-context-values-list {
  display: grid;
  gap: 0.45rem;
}

.poll-context-value-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.poll-context-add-value {
  justify-self: flex-start;
}

.poll-context-remove {
  border: none;
  background: transparent;
  color: #b91c1c;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.1rem;
  justify-self: flex-start;
}

.poll-context-remove:hover {
  text-decoration: underline;
}

.poll-builder-side {
  display: grid;
  gap: 0.82rem;
  position: sticky;
  top: 84px;
  align-self: start;
}

.poll-side-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: auto;
  max-height: calc(100vh - 110px);
}

.poll-side-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--primary);
  background: linear-gradient(140deg, rgba(15, 118, 110, 0.11), rgba(14, 165, 233, 0.08));
  border-bottom: 1px solid var(--border);
  padding: 0.78rem 0.9rem;
}

.poll-side-head h3 {
  margin: 0;
  font-size: 0.96rem;
}

.poll-side-metrics {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem 0.4rem;
}

.poll-side-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.poll-side-metrics span {
  color: var(--text-muted);
  font-size: 0.79rem;
}

.poll-side-metrics strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--text);
}

.poll-cost-box {
  margin: 0.6rem 0.9rem 0;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.poll-cost-box span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.poll-cost-box strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 1.35rem;
}

.poll-cost-box p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.poll-speed-group {
  display: grid;
  gap: 0.4rem;
  margin: 0.8rem 0.9rem 0;
}

.poll-speed-group h4 {
  margin: 0 0 0.1rem;
  font-size: 0.81rem;
}

.poll-speed-option {
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 0.55rem 0.6rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
  cursor: pointer;
}

.poll-speed-option input {
  margin-top: 0.15rem;
}

.poll-speed-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--text);
}

.poll-speed-option small {
  margin-top: 0.1rem;
  display: block;
  color: var(--text-muted);
  font-size: 0.69rem;
}

.poll-side-actions {
  border-top: 1px solid var(--border);
  margin-top: 0.8rem;
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.52rem;
  background: rgba(248, 250, 252, 0.9);
}

.poll-submit {
  width: 100%;
  min-height: 44px;
  padding: 0.64rem 1rem;
  font-size: 0.9rem;
}

.poll-help-note {
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: rgba(14, 165, 233, 0.08);
  border-radius: 16px;
  padding: 0.78rem 0.85rem;
  color: #0c4a6e;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
}

.poll-help-note h4 {
  margin: 0;
  font-size: 0.82rem;
}

.poll-help-note p {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.review-block h2 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.review-block pre {
  margin: 0.58rem 0 0;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.55;
}

.review-list {
  margin: 0.58rem 0 0;
  display: grid;
  gap: 0.44rem;
  padding-left: 1.05rem;
}

.poll-review-page {
  gap: 0.85rem;
  padding-bottom: 6.9rem;
}

.poll-review-head {
  margin-top: 0.2rem;
}

.poll-review-steps {
  display: grid;
  gap: 0.8rem;
}

.poll-review-step {
  border-radius: 20px;
  --poll-review-content-offset: calc(30px + 0.62rem);
}

.poll-review-step > :not(.poll-review-step-head) {
  margin-left: var(--poll-review-content-offset);
}

.poll-review-step > .review-list {
  margin-left: calc(var(--poll-review-content-offset) - 1.05rem);
}

.poll-review-step > .poll-prompt-choices-grid {
  margin-left: calc(var(--poll-review-content-offset) - 1rem);
}

.poll-review-step > .review-sample-list {
  margin-left: calc(var(--poll-review-content-offset) - 1.15rem);
}

.poll-review-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.62rem;
  align-items: start;
}

.poll-review-step-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.poll-review-step-note {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.poll-review-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-soft);
}

.poll-review-action-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.poll-review-submit-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.poll-review-footer-text {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.poll-review-submit-wrap .button {
  min-width: 180px;
}

.review-sample-intro {
  margin: 0.58rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.review-sample-list {
  margin: 0.58rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.58rem;
}

.review-sample-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 0.62rem 0.68rem;
}

.review-sample-item pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.89rem;
  line-height: 1.45;
}

.review-sample-question {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.review-sample-choice-grid {
  margin-top: 0.52rem;
}

.review-sample-persona {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin-bottom: 0.45rem;
}

.review-sample-persona span {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.12rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.inline-status {
  display: inline-flex;
  gap: 0.44rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.55rem;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0.74rem;
  box-shadow: var(--shadow-soft);
}

.stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 0.22rem;
  font-size: 1.02rem;
}

.table-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.table-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--surface-alt);
}

th,
td {
  text-align: left;
  padding: 0.62rem 0.7rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}

tbody tr:last-child td {
  border-bottom: none;
}

.filter-layout {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-alt);
  padding: 0.7rem;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.filter-set-list {
  display: grid;
  gap: 0.58rem;
}

.filter-set {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.58rem;
}

.filter-set-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.48rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.48rem;
}

.chart-wrap {
  min-height: 210px;
}

.chart-bar {
  animation: grow 1s ease-out forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

.poll-results-page {
  display: grid;
  gap: 1.15rem;
}

.poll-results-page-embedded {
  align-content: start;
}

.poll-results-head {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-end;
}

.poll-results-head-copy {
  max-width: 920px;
}

.poll-results-crumb {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
}

.poll-results-crumb-sep {
  color: #94a3b8;
}

.poll-results-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.poll-results-meta {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: center;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
}

.poll-results-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.poll-results-summary-line {
  margin-top: 0.38rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow-x: auto;
}

.poll-results-summary-sep {
  color: #94a3b8;
  font-weight: 700;
}

.poll-results-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.poll-results-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  width: fit-content;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 0.28rem;
}

.poll-results-tab {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #475569;
  min-height: 36px;
  border-radius: 10px;
  padding: 0.45rem 0.95rem;
  font-size: 0.77rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.poll-results-tab:hover {
  color: #0f172a;
}

.poll-results-tab-active {
  color: #0f766e;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.poll-results-insights {
  display: grid;
  gap: 0.9rem;
}

.poll-prompt-card {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.poll-prompt-head {
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ef;
  padding: 0.78rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.poll-prompt-head h2 {
  margin: 0;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.poll-prompt-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.poll-prompt-choice {
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  padding: 0.68rem 0.75rem;
  overflow: hidden;
}

.poll-prompt-choice-label {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
  font-weight: 800;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.poll-prompt-choice-text {
  min-width: 0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.poll-prompt-choice-image {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #e2e8f0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.poll-analytics-card {
  border: 1px solid #dbe3ef;
  border-radius: 24px;
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1rem;
}

.poll-analytics-head {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  padding-bottom: 0.88rem;
  border-bottom: 1px solid #dbe3ef;
}

.poll-analytics-head h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.poll-analytics-head p {
  margin: 0.26rem 0 0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.poll-analytics-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.poll-button-dashed {
  border-width: 2px;
  border-style: dashed;
}

.poll-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.68rem;
}

.poll-filter-group {
  border-radius: 16px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.poll-filter-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poll-filter-group-head span {
  color: #475569;
  font-size: 0.61rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.poll-filter-grid {
  display: grid;
  gap: 0.5rem;
}

.poll-filter-label {
  display: grid;
  gap: 0.36rem;
  color: #475569;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.poll-filter-select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 0.46rem 0.58rem;
  background: #fff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
}

.poll-filter-select:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.poll-dataset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.poll-dataset-pill {
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.poll-dataset-pill-active {
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.poll-bars-wrap {
  min-height: 290px;
  max-height: 390px;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.8rem 0.3rem 0.45rem;
  border-bottom: 1px solid #dbe3ef;
}

.poll-bar-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.poll-bar-track {
  width: 100%;
  max-width: 160px;
  height: 240px;
  display: flex;
  align-items: flex-end;
}

.poll-bar {
  width: 100%;
  min-height: 24px;
  border-radius: 12px 12px 0 0;
  background: #0f766e;
  position: relative;
  transition: filter 0.2s ease;
}

.poll-bar:hover {
  filter: brightness(1.07);
}

.poll-bar-value {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  padding: 0.35rem 0.48rem;
}

.poll-bar-label {
  margin-top: 0.34rem;
  color: #0f172a;
  font-size: 0.79rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
}

.poll-bar-label-image {
  width: min(100%, 110px);
  border-radius: 8px;
  border: 1px solid #dbe3ef;
  background: #e2e8f0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.poll-bar-choice {
  color: #475569;
  font-size: 0.59rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.poll-chart-foot {
  margin-top: 0.1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.68rem;
  flex-wrap: wrap;
  align-items: center;
}

.poll-sig-chip {
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  color: #475569;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.poll-engine-note {
  color: #475569;
  font-size: 0.73rem;
  font-style: italic;
}

.poll-batch-card {
  border: 1px solid #dbe3ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.poll-batch-card h2 {
  margin: 0;
  padding: 1rem 1rem 0.7rem;
  font-size: 1.18rem;
}

.poll-raw-results-head {
  padding: 1rem 1rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.poll-raw-results-head h2 {
  margin: 0;
  font-size: 1.18rem;
}

.poll-raw-results-download-link {
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  line-height: 1.2;
}

.poll-raw-results-download-link:hover {
  color: #0f172a;
  text-decoration: underline;
}

.poll-batch-table-wrap {
  overflow: auto;
}

.poll-batch-table {
  width: 100%;
  border-collapse: collapse;
}

.poll-batch-table thead {
  background: #f8fafc;
  border-top: 1px solid #dbe3ef;
  border-bottom: 1px solid #dbe3ef;
}

.poll-batch-table th {
  color: #475569;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.72rem 1rem;
}

.poll-batch-table td {
  padding: 0.88rem 1rem;
  border-bottom: 1px solid #dbe3ef;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.poll-raw-results-table th {
  padding: 0.56rem 0.78rem;
  line-height: 1.15;
  white-space: nowrap;
}

.poll-raw-results-table td {
  padding: 0.76rem 0.78rem;
}

.poll-batch-table tbody tr:hover {
  background: #f8fafc;
}

.poll-batch-table tbody tr:last-child td {
  border-bottom: none;
}

.poll-batch-id {
  font-family: 'IBM Plex Mono', monospace;
  color: #0f766e;
  font-size: 0.77rem;
  font-weight: 600;
}

.poll-raw-results-foot {
  border-top: 1px solid #dbe3ef;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.72rem 1rem 0.82rem;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
}

.poll-raw-results-sentinel {
  height: 1px;
}

.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.landing-header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.landing-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, var(--primary), var(--accent));
}

.landing-brand-word {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-brand-sub {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  margin-left: 0.2rem;
}

.landing-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
}

.landing-nav-link {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

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

.landing-nav-auth {
  color: var(--text);
}

.landing-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.2rem;
  display: grid;
  gap: 1.1rem;
}

.landing-section {
  border-radius: 24px;
  border: 1px solid #e6edf6;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
}

.landing-hero-content h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4.4vw, 3.15rem);
  line-height: 1.09;
  letter-spacing: -0.03em;
}

.landing-hero-content h1 span {
  color: var(--primary);
}

.landing-hero-content p {
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.62;
  margin: 0.8rem 0 0;
  max-width: 62ch;
}

.landing-muted-copy {
  font-size: 0.95rem;
}

.landing-hero-actions {
  margin-top: 1rem;
}

.landing-primary-cta {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
  border-radius: 999px;
  padding: 0.78rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  transition: 180ms ease;
}

.landing-primary-cta:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-1px);
}

.landing-hero-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.landing-stat-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 18px;
  padding: 0.86rem;
  box-shadow: var(--shadow-soft);
}

.landing-stat-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-stat-card strong {
  display: block;
  font-size: 2rem;
  margin-top: 0.4rem;
  line-height: 1;
}

.landing-stat-card p {
  margin: 0.36rem 0 0;
  color: #64748b;
  font-size: 0.76rem;
}

.landing-stat-wide {
  grid-column: 1 / -1;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, var(--primary), #0f3c5f);
}

.landing-stat-wide header,
.landing-stat-wide p {
  color: rgba(255, 255, 255, 0.8);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.landing-feature-card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.58rem;
  box-shadow: var(--shadow-soft);
}

.landing-feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.landing-feature-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.landing-mini-block {
  border: 1px solid #e5eaf3;
  background: #f8fafc;
  border-radius: 14px;
  padding: 0.7rem;
  display: grid;
  gap: 0.56rem;
}

.landing-mini-head {
  font-size: 0.77rem;
  line-height: 1.4;
  color: #334155;
  display: inline-flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.landing-mini-question {
  color: #334155;
  font-size: 0.77rem;
}

.landing-choice-bars {
  display: grid;
  gap: 0.5rem;
}

.landing-choice-bars div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: center;
}

.landing-choice-bars span {
  font-size: 0.75rem;
  color: #475569;
}

.landing-choice-bars em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f766e;
}

.landing-choice-bars i {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.landing-column-chart {
  min-height: 120px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.28rem;
  align-items: end;
}

.landing-column-chart div {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.85), rgba(15, 118, 110, 0.35));
  border-radius: 6px 6px 0 0;
  position: relative;
}

.landing-column-chart span {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  color: #94a3b8;
}

.landing-audit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  display: grid;
  gap: 0.42rem;
}

.landing-audit-bad,
.landing-audit-good {
  border-radius: 10px;
  padding: 0.55rem;
  display: grid;
  gap: 0.25rem;
  font-size: 0.7rem;
}

.landing-audit-bad {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.landing-audit-good {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.landing-audit-bad strong,
.landing-audit-good strong {
  font-size: 0.72rem;
}

.landing-audit-bad p,
.landing-audit-good p {
  margin: 0;
  font-size: 0.68rem;
}

.landing-section-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.landing-section-head p {
  margin: 0.35rem 0 0;
  color: #64748b;
}

.landing-live-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.7rem;
}

.landing-live-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.landing-live-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.landing-live-card p {
  margin: 0;
  font-size: 0.81rem;
  color: #64748b;
}

.landing-live-poll-head {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.landing-live-poll-head a {
  font-size: 0.84rem;
  font-weight: 700;
}

.landing-live-poll-head a:hover {
  color: var(--primary);
}

.landing-testimonials {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.landing-quote-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem;
  box-shadow: var(--shadow-soft);
}

.landing-quote-card header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.landing-quote-card header span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 800;
}

.landing-quote-card strong {
  display: block;
  font-size: 0.82rem;
}

.landing-quote-card header p {
  margin: 0.08rem 0 0;
  color: #64748b;
  font-size: 0.72rem;
}

.landing-quote-card blockquote {
  margin: 0.65rem 0 0;
  color: #475569;
  font-size: 0.82rem;
  line-height: 1.52;
}

.landing-pricing {
  border-radius: 24px;
  padding: 1.5rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 18% 15%, rgba(20, 184, 166, 0.55), transparent 35%),
    radial-gradient(circle at 82% 90%, rgba(59, 130, 246, 0.38), transparent 34%),
    #0f172a;
}

.landing-pricing h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.landing-pricing p {
  margin: 0.5rem auto 0;
  max-width: 62ch;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.92rem;
}

.landing-pricing-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.landing-pricing-primary,
.landing-pricing-secondary {
  border-radius: 10px;
  padding: 0.62rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.landing-pricing-primary {
  color: #0f172a;
  background: #fff;
  border: 1px solid #fff;
}

.landing-pricing-primary:hover {
  color: #fff;
  background: transparent;
}

.landing-pricing-secondary {
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: transparent;
}

.landing-pricing-secondary:hover {
  border-color: #fff;
}

.landing-pricing small {
  display: block;
  margin-top: 0.85rem;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.72rem;
}

.landing-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 1rem;
}

.landing-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.landing-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.landing-footer-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #e2e8f0;
  color: #64748b;
}

.landing-footer-brand strong {
  color: #334155;
  font-size: 0.9rem;
}

.landing-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.landing-footer-links a {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.landing-footer-links a:hover {
  color: var(--primary);
}

.landing-footer small {
  color: #94a3b8;
  font-size: 0.73rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes grow {
  to {
    transform: scaleY(1);
  }
}

@keyframes poll-dot-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

@media (max-width: 1200px) {
  .poll-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poll-dashboard-layout {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  }
}

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

  .poll-builder-grid {
    grid-template-columns: 1fr;
  }

  .poll-builder-side {
    position: static;
  }

  .poll-side-card {
    position: static;
    max-height: none;
  }

  .app-nav-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .auth-slot {
    margin-left: auto;
  }

  .landing-brand-sub {
    display: none;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  .landing-testimonials {
    grid-template-columns: 1fr;
  }

  .poll-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .poll-dashboard-sidebar {
    position: static;
    top: auto;
    max-height: none;
  }

  .poll-dashboard-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .poll-dashboard-search {
    max-width: none;
  }

  .poll-dashboard-filter-pills {
    width: 100%;
    overflow-x: auto;
  }

  .poll-dashboard-filter-pill {
    flex: 1 0 auto;
  }

  .poll-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .poll-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poll-bars-wrap {
    min-height: 250px;
  }

  .poll-bar-track {
    height: 200px;
  }
}

@media (max-width: 760px) {
  .page-body {
    padding: 1rem 0.75rem 1.8rem;
  }

  .poll-builder-head {
    flex-direction: column;
  }

  .poll-choices-head {
    align-items: flex-start;
  }

  .poll-choice-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .poll-choice-index {
    display: none;
  }

  .poll-choice-image-preview {
    grid-column: auto;
  }

  .poll-context-head {
    flex-direction: column;
  }

  .poll-category-split {
    align-self: flex-start;
  }

  .poll-context-input-grid {
    grid-template-columns: 1fr;
  }

  .poll-context-row-foot {
    flex-direction: column;
  }

  .section-head-row {
    flex-direction: column;
  }

  .poll-review-page {
    padding-bottom: 8.9rem;
  }

  .poll-review-action-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .poll-review-submit-wrap {
    justify-content: space-between;
    width: 100%;
  }

  .poll-review-footer-text {
    white-space: normal;
  }

  .poll-review-submit-wrap .button {
    min-width: 0;
  }

  .poll-dashboard-sidebar {
    padding: 0.75rem;
  }

  .poll-dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .landing-header-inner {
    height: auto;
    min-height: 64px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
  }

  .landing-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.45rem;
  }

  .landing-nav-link {
    font-size: 0.76rem;
  }

  .landing-main {
    padding: 1rem 0.75rem 1.6rem;
  }

  .landing-section {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .landing-hero-panels {
    grid-template-columns: 1fr;
  }

  .landing-audit-grid {
    grid-template-columns: 1fr;
  }

  .poll-results-title {
    font-size: 1.2rem;
  }

  .poll-results-tabs {
    width: 100%;
  }

  .poll-results-tab {
    flex: 1;
    justify-content: center;
  }

  .poll-results-summary-line {
    font-size: 0.69rem;
  }

  .poll-analytics-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .poll-filters-grid {
    grid-template-columns: 1fr;
  }

  .poll-bars-wrap {
    gap: 0.45rem;
    min-height: 220px;
  }

  .poll-bar-track {
    height: 170px;
  }

  .poll-bar-label {
    font-size: 0.69rem;
  }

  .poll-bar-label-image {
    width: min(100%, 78px);
  }

  .poll-bar-choice {
    font-size: 0.55rem;
  }
}
