:root {
  --bg: #ffffff;
  --bg-soft: #f0f2f5;
  --panel: #ffffff;
  --panel-strong: #f0f2f5;
  --border: rgba(17, 27, 33, 0.08);
  --text: #111b21;
  --muted: #667781;
  --accent: #25d366;
  --accent-strong: #21c063;
  --accent-soft: rgba(37, 211, 102, 0.12);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #f97316;
  --radius: 24px;
  --shadow: 0 6px 24px rgba(17, 27, 33, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #00a884 0 128px, #ffffff 128px 100%);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  height: 100%;
}

body {
  height: 100%;
}

body.workspace-body {
  overflow: hidden;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

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

.btn-pill {
  border-radius: 999px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  border: none;
  color: #ffffff;
  font-weight: 800;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34dd76 0%, #21c063 100%);
  color: #ffffff;
}

.btn-ghost {
  background: #f0f2f5;
  border: 1px solid rgba(17, 27, 33, 0.08);
  color: var(--text);
}

.btn-ghost:hover {
  background: #e9edef;
  color: var(--text);
}

.brand-mark,
.display-title,
.section-title,
.workspace-title {
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 60px;
  max-width: min(340px, 55vw);
  filter: brightness(0) invert(1);
}

.landing-shell,
.page-shell {
  position: relative;
  z-index: 1;
}

.hero-section,
.info-section,
.use-case-section {
  padding: 2rem 1rem 4rem;
}

.info-section,
.use-case-section,
.pricing-card,
.respondent-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.hero-section {
  padding-top: 2.4rem;
}

.landing-hero {
  padding-top: 3.7rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: #667781;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.landing-shell {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 0 28rem),
    linear-gradient(180deg, #2563eb 0 112px, #f7faff 112px 100%);
}

.landing-shell .navbar {
  position: relative;
  z-index: 1;
}

.landing-shell .navbar .container-xxl,
.respondents-shell .navbar .container-xxl,
.pricing-shell .navbar .container-xxl {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.landing-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.landing-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.landing-nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.landing-nav-link:hover,
.landing-nav-link.active {
  color: #ffffff;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.25rem 1rem;
  background: #2563eb;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container-xxl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  text-align: center;
}

.site-footer-copy {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.92rem;
}

.site-footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.site-footer-links a:hover {
  color: #dbeafe;
  text-decoration: underline;
}

.seo-shell {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 0 28rem),
    linear-gradient(180deg, #2563eb 0 112px, #f7faff 112px 100%);
}

.seo-hero,
.seo-content-section,
.seo-article-shell {
  padding: 2rem 1rem 4rem;
}

.seo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  color: rgba(17, 27, 33, 0.66);
  font-size: 0.92rem;
}

.seo-section-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.seo-section-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: #1f3f8f;
  font-weight: 700;
  font-size: 0.92rem;
}

.seo-section-pill.active,
.seo-section-pill:hover {
  background: #ffffff;
  color: #0f172a;
}

.seo-intro {
  max-width: 820px;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.seo-card,
.seo-content-card,
.seo-side-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.seo-card h2,
.seo-content-card h2,
.seo-side-card h2 {
  margin-bottom: 0.85rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.25rem;
}

.seo-card p,
.seo-content-card p,
.seo-related-link span {
  color: #4b5563;
}

.seo-card .btn {
  margin-top: 0.75rem;
}

.seo-article-header {
  margin-bottom: 1.5rem;
}

.seo-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.seo-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
}

.seo-main-column,
.seo-side-column {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.seo-faq-list {
  display: grid;
  gap: 0.85rem;
}

.seo-faq-item {
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(17, 27, 33, 0.08);
  padding: 0.9rem 1rem;
}

.seo-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item p {
  margin: 0.8rem 0 0;
}

.seo-related-list {
  display: grid;
  gap: 0.9rem;
}

.seo-related-link {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(17, 27, 33, 0.08);
}

.seo-related-link:hover {
  background: #ffffff;
}

.science-publication-list {
  display: grid;
  gap: 1rem;
}

.science-publication-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px solid rgba(17, 27, 33, 0.08);
}

.science-publication-card:hover {
  background: #ffffff;
}

.science-publication-card p {
  margin: 0;
}

.science-publication-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: #5b6474;
  font-size: 0.85rem;
  font-weight: 700;
}

.public-page-shell {
  min-height: 100vh;
}

.public-page-hero {
  padding-bottom: 1.5rem;
}

.public-page-hero .section-title {
  max-width: 820px;
}

.public-page-hero .muted-copy {
  max-width: 820px;
}

.public-page-content {
  padding: 0 1rem 2rem;
}

.public-page-card {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

.public-info-section + .public-info-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.public-info-section h2 {
  margin-bottom: 0.85rem;
  color: #0f172a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.public-info-section p {
  margin-bottom: 0.75rem;
  color: #475569;
  line-height: 1.7;
}

.public-external-link {
  margin-top: 0.5rem;
  margin-right: 0.6rem;
}

.email-link {
  margin-top: 0.5rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.76);
}

.language-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
}

.language-switch a.active,
.language-switch a:hover {
  opacity: 1;
  color: #ffffff;
}

.glass-card .language-switch {
  color: #5d6f92;
}

.glass-card .language-switch a.active,
.glass-card .language-switch a:hover {
  color: #163b7a;
}

.landing-nav-actions .btn {
  white-space: nowrap;
}

.landing-mobile-menu {
  display: none;
  position: relative;
}

.landing-mobile-menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.26rem;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 38px rgba(7, 24, 68, 0.16);
  cursor: pointer;
  list-style: none;
}

.landing-mobile-menu-toggle::-webkit-details-marker {
  display: none;
}

.landing-mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.landing-mobile-menu-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid rgba(19, 47, 99, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(12, 35, 84, 0.18);
}

.landing-mobile-menu-link {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  color: #183b7a;
  font-weight: 600;
  text-decoration: none;
}

.landing-mobile-menu-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #132f63;
}

.landing-shell .btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(37, 99, 235, 0.12);
  color: #183b7a;
}

.landing-shell .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.88);
  color: #132f63;
}

.landing-shell .eyebrow,
.landing-shell .section-kicker {
  background: rgba(37, 99, 235, 0.08);
  color: #2557c8;
}

.account-shell {
  max-width: 980px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.35rem;
}

.account-hero-card,
.account-status-card {
  height: 100%;
}

.account-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

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

.account-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-status-pill.is-active {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.account-status-pill.is-inactive {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.account-status-copy {
  margin-bottom: 1.25rem;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.account-actions form {
  margin: 0;
}

.account-promo-box {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(17, 27, 33, 0.08);
}

.account-promo-box h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.05rem;
}

.account-promo-display {
  margin-bottom: 0.95rem;
}

.account-promo-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.account-promo-form .form-control {
  max-width: 280px;
}

.display-title {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 800;
  line-height: 0.98;
  margin-top: 1.35rem;
  max-width: 12ch;
}

.landing-hero .eyebrow {
  position: relative;
  z-index: 1;
}

.hero-copy,
.muted-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.landing-shell .display-title,
.landing-shell .section-title {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #163b7a;
  letter-spacing: -0.055em;
}

.landing-shell .hero-copy,
.landing-shell .muted-copy {
  color: #5d6f92;
}

.hero-offer-note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-top: 1rem;
  padding: 0.56rem 0.74rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: #183b7a;
  box-shadow: 0 16px 38px rgba(12, 35, 84, 0.08);
}

.promo-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.22rem 0.28rem 0.22rem 0.44rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1945a3;
}

.hero-offer-note strong,
.pricing-promo-code strong,
.account-promo-display strong {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.46rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.promo-copy-button {
  border: none;
  background: transparent;
  color: #1945a3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.72rem;
  height: 1.72rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.promo-copy-button:hover {
  background: rgba(25, 69, 163, 0.12);
  color: #123579;
}

.promo-copy-button.is-copied {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.promo-copy-button i {
  font-size: 0.95rem;
}

.hero-offer-note a {
  color: #2557c8;
  font-weight: 700;
}

.hero-offer-note a:hover {
  color: #183b7a;
}

.landing-shell .eyebrow,
.landing-shell .section-kicker,
.landing-shell .btn,
.landing-shell .panel-title,
.landing-shell h3,
.landing-shell h4 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.hero-tags,
.tag-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tags span,
.tag-pill,
.starter-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 0.85rem;
}

.landing-shell .hero-tags span,
.landing-shell .starter-pill,
.landing-shell .tag-pill,
.landing-shell .status-pill {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(37, 99, 235, 0.1);
  color: #234d96;
}

.status-pill.muted {
  color: var(--muted);
}

.hero-preview-card,
.glass-card,
.panel-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.landing-shell .hero-preview-card,
.landing-shell .glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
  border-color: rgba(37, 99, 235, 0.1);
  box-shadow: 0 10px 30px rgba(22, 59, 122, 0.08);
}

.respondents-shell .section-title,
.respondents-shell .panel-title,
.respondents-shell h3,
.respondents-shell h4,
.respondents-shell .btn {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.respondents-shell .section-title {
  color: #163b7a;
  letter-spacing: -0.055em;
}

.respondents-shell .muted-copy {
  color: #5d6f92;
}

.respondents-shell .landing-nav-link,
.pricing-shell .landing-nav-link {
  color: #dbe7ff;
}

.respondents-shell .landing-nav-link:hover,
.respondents-shell .landing-nav-link.active,
.pricing-shell .landing-nav-link:hover,
.pricing-shell .landing-nav-link.active {
  color: #ffffff;
}

.respondents-hero {
  padding-top: 2.75rem;
}

.respondent-detail-hero {
  padding-bottom: 3rem;
}

.respondents-header {
  align-items: end;
  margin-bottom: 1.5rem;
}

.respondent-detail-header {
  margin-bottom: 2rem;
}

.respondents-filter-card {
  padding: 1.15rem;
}

.respondents-filter-card .form-control {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(37, 99, 235, 0.12);
  color: #163b7a;
  border-radius: 14px;
  min-height: 48px;
}

.respondents-filter-card .form-control::placeholder {
  color: #6b84b5;
}

.hero-preview-card {
  padding: 1.4rem;
}

.preview-topbar,
.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-preview-image-shell {
  margin-top: 1rem;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.92), rgba(245, 249, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  position: relative;
}

.hero-preview-image,
.hero-preview-video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-preview-fallback {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 180ms ease;
}

.hero-preview-fallback.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  z-index: 2;
  background: #eef4ff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.hero-preview-video.is-playing {
  opacity: 1;
  visibility: visible;
}

.preview-chat,
.preview-analytics,
.insight-card,
.metric-card,
.metric-box {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(17, 27, 33, 0.08);
}

.preview-chat,
.preview-analytics {
  padding: 1rem;
}

.mini-message {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.mini-message.user {
  background: #dbeafe;
  margin-left: auto;
}

.mini-message.persona {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.metric-card,
.metric-box,
.insight-card {
  padding: 1rem;
}

.landing-shell .metric-card strong,
.landing-shell .metric-box strong {
  color: #2563eb;
}

.landing-shell .insight-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.08));
  border-color: rgba(37, 99, 235, 0.12);
}

.metric-card strong,
.metric-box strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.glass-card,
.panel-card {
  padding: 1.35rem;
}

.starter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.starter-pill {
  background: #ffffff;
}

.pricing-hero {
  padding-bottom: 4rem;
}

.pricing-header {
  margin-bottom: 1.6rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 1.25rem;
  align-items: start;
}

.pricing-card h2,
.pricing-card h3 {
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
}

.pricing-card-primary {
  border-width: 1px;
}

.pricing-card-secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.96));
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.pricing-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.pricing-plan-option {
  position: relative;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.pricing-plan-option-featured {
  background: linear-gradient(180deg, rgba(231, 242, 255, 0.96), rgba(255, 255, 255, 0.96));
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: 0 18px 40px rgba(22, 59, 122, 0.1);
}

.pricing-plan-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #365486;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pricing-plan-badge {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.24rem 0.56rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #163b7a;
  font-size: 0.78rem;
  font-weight: 800;
}

.pricing-plan-note {
  margin: -0.25rem 0 0;
  color: #365486;
  font-size: 0.92rem;
}

.pricing-amount strong {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: #163b7a;
}

.pricing-amount span {
  color: #5d6f92;
  font-weight: 700;
}

.pricing-feature-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #365486;
}

.pricing-feature-list li + li {
  margin-top: 0.45rem;
}

@media (max-width: 767px) {
  .pricing-plan-options {
    grid-template-columns: 1fr;
  }
}

.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.pricing-promo-code {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.9rem;
}

.workspace-shell {
  position: relative;
  z-index: 1;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 380px minmax(860px, 1fr);
  gap: 0;
  height: 100vh;
  overflow: hidden;
}

.left-rail,
.chat-stage {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  border-left: none;
}

.workspace-title {
  font-size: 1.02rem;
  margin: 0.15rem 0 0;
  font-weight: 800;
  line-height: 1.2;
}

.workspace-brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(280px, 100%);
  margin-top: 0.18rem;
  filter: brightness(0) invert(1);
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
  line-height: 1.15;
}

.mode-toggle,
.action-grid,
.session-list,
.crowd-stack,
.list-panel {
  display: grid;
  gap: 0.7rem;
}

.mode-chip,
.starter-chip,
.quick-link {
  border: none;
  color: var(--text);
  background: #f0f2f5;
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  text-align: left;
  font-size: 0.76rem;
}

.mode-chip.active {
  background: #d9fdd3;
  border: 1px solid rgba(37, 211, 102, 0.18);
}

.crowd-chip,
.session-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0;
  background: #ffffff;
}

.session-link {
  flex-direction: column;
  align-items: flex-start;
}

.discussion-link {
  gap: 0.55rem;
  padding: 0.72rem 0.85rem;
  border-radius: 0;
  border-bottom: none;
  background: transparent;
}

.discussion-meta {
  min-width: 0;
  flex: 1;
}

.discussion-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.88rem;
}

.discussion-preview {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-author {
  color: #111b21;
  font-weight: 700;
}

.discussion-kind {
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.discussion-section-label {
  color: #667781;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0.85rem;
}

.sidebar-search-wrap {
  padding: 0 0.75rem 0.65rem;
}

.sidebar-search {
  background: transparent;
  border: none;
  color: var(--text);
  border-radius: 10px;
  padding: 0;
}

.panel-kind {
  color: #00a884;
}

.direct-kind {
  color: #3b82f6;
}

.crowd-chip-button {
  width: 100%;
  border: none;
  text-align: left;
  color: inherit;
}

.session-link.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.08));
  box-shadow: inset 3px 0 0 #2563eb;
}

.session-link:hover {
  background: #f7f8fa;
}

.crowd-chip-button.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.08));
  box-shadow: inset 3px 0 0 #2563eb;
}

.session-link.active .discussion-topline strong,
.crowd-chip-button.active strong {
  color: #163b7a;
}

.session-link.active .discussion-kind,
.crowd-chip-button.active small {
  color: #2557c8;
}

.avatar-badge {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.avatar-badge.lg {
  width: 2.45rem;
  height: 2.45rem;
  font-size: 0.92rem;
}

.persona-photo {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 2.45rem;
  background: #e5e7eb;
}

.chat-header-photo {
  width: 2.45rem;
  height: 2.45rem;
}

.respondent-photo {
  width: 3.4rem;
  height: 3.4rem;
  flex-basis: 3.4rem;
  box-shadow: 0 2px 10px rgba(17, 27, 33, 0.12);
}

.group-avatar {
  position: relative;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 2.45rem;
}

.group-avatar-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.group-header-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  text-align: left;
}

.group-header-faces {
  display: inline-flex;
  align-items: center;
  padding-left: 0.1rem;
  flex-shrink: 0;
}

.group-header-face {
  width: 2.4rem;
  height: 2.4rem;
  margin-left: -0.58rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(22, 59, 122, 0.16);
  background: #dbe5f5;
}

.group-header-face:first-child {
  margin-left: 0;
}

.group-header-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.group-header-extra {
  color: #5d6f92;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.group-avatar-main {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ecfeff;
  background: linear-gradient(135deg, #0f766e, #0ea5a6);
}

.group-avatar-mini {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #25d366;
  color: #06250f;
  font-size: 0.58rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  border: 2px solid #ffffff;
}

.chat-thread {
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-top: 1rem;
  padding-bottom: 0.95rem;
  scroll-behavior: smooth;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.28rem;
  padding: 0 5.5%;
  min-width: 0;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-row.system {
  justify-content: center;
}

.chat-row.search-match .chat-bubble {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.14), 0 12px 28px rgba(22, 59, 122, 0.12);
}

.chat-row.search-current .chat-bubble {
  border-color: rgba(14, 165, 233, 0.64);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.18), 0 16px 34px rgba(37, 99, 235, 0.16);
}

.chat-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  font-size: 0.68rem;
  box-shadow: 0 1px 2px rgba(17, 27, 33, 0.14);
}

.user-avatar {
  background: linear-gradient(135deg, #00a884, #21c063);
}

.system-avatar {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.chat-bubble {
  max-width: min(66%, 640px);
  padding: 0.55rem 0.72rem 0.62rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.98));
  border: 1px solid rgba(37, 99, 235, 0.1);
  color: #111b21;
  box-shadow: 0 10px 24px rgba(22, 59, 122, 0.08);
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
}

.chat-row.system .chat-bubble {
  max-width: min(84%, 920px);
}

.chat-row.persona .chat-bubble::before,
.chat-row.user .chat-bubble::before {
  content: "";
  position: absolute;
  top: 12px;
  width: 6px;
  height: 7px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.chat-row.persona .chat-bubble::before {
  left: 0;
}

.chat-row.user .chat-bubble::before {
  right: 0;
  transform: scaleX(-1);
}

.chat-row.user .chat-bubble {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.12));
  border-color: rgba(37, 99, 235, 0.16);
}

.chat-row.user .chat-avatar {
  order: 2;
}

.chat-row.system .chat-bubble {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.08));
  border-color: rgba(37, 99, 235, 0.14);
}

.chat-row.system .chat-avatar {
  align-self: center;
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.32rem;
  color: #6b84b5;
  font-size: 0.72rem;
  align-items: baseline;
}

.chat-author-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-persona-detail {
  color: #6b84b5;
  font-size: 0.7rem;
  line-height: 1.2;
}

.chat-bubble > div:last-child {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #233b67;
}

.attachment-card {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 0.45rem;
  padding: 0.55rem;
  border: 1px solid rgba(17, 27, 33, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  color: inherit;
}

.attachment-card.document {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.attachment-card.image {
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
}

.attachment-card.image .attachment-card-meta {
  display: none;
}

.attachment-card-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.attachment-card-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: rgba(17, 27, 33, 0.06);
  color: #54656f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 2.4rem;
}

.attachment-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.attachment-card-meta strong,
.composer-attachment-meta strong {
  font-size: 0.82rem;
  color: #111b21;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-card-meta small,
.composer-attachment-meta small {
  color: var(--muted);
  font-size: 0.72rem;
}

.chat-row.system .markdown-content h1,
.chat-row.system .markdown-content h2,
.chat-row.system .markdown-content h3 {
  line-height: 1.2;
  margin: 0 0 0.45rem;
}

.chat-row.system .markdown-content h1 {
  font-size: 1.02rem;
}

.chat-row.system .markdown-content h2 {
  font-size: 0.94rem;
}

.chat-row.system .markdown-content h3 {
  font-size: 0.88rem;
}

.chat-row.system .markdown-content p,
.chat-row.system .markdown-content ul,
.chat-row.system .markdown-content ol {
  margin-bottom: 0.5rem;
}

.chat-row.system .markdown-content ul,
.chat-row.system .markdown-content ol {
  padding-left: 1.15rem;
}

.chat-persona-link {
  color: inherit;
  text-decoration: none;
}

.chat-persona-link:hover {
  opacity: 0.9;
}

.chat-persona-name strong {
  text-decoration: underline;
  text-decoration-color: rgba(17, 27, 33, 0.2);
  text-underline-offset: 0.12em;
}

.chat-header-subline {
  color: #6b84b5;
  font-size: 0.77rem;
  margin-top: 0.08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-context-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
}

.channel-context-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.14);
  color: #148043;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.channel-context-list {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.channel-context-chip {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #f0f2f5;
  border: 1px solid rgba(17, 27, 33, 0.08);
  color: #41525d;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-context-chip.more {
  background: rgba(17, 27, 33, 0.05);
  color: #667781;
}

.pollitics-summary-block {
  display: grid;
  gap: 0.7rem;
}

.indicator-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  min-width: 0;
}

.summary-headline {
  font-weight: 700;
  color: #111b21;
}

.summary-chart-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17, 27, 33, 0.08);
  min-width: 0;
}

.summary-chart-card-indicator {
  background: linear-gradient(180deg, rgba(227, 247, 239, 0.96), rgba(214, 240, 247, 0.92));
  border-color: rgba(15, 118, 110, 0.18);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.indicator-chart-card {
  display: grid;
  grid-template-rows: auto minmax(220px, 280px);
}

.indicator-chart-wrap {
  position: relative;
  min-height: 220px;
  height: 220px;
  min-width: 0;
}

.llm-indicator-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.summary-metrics span {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(17, 27, 33, 0.08);
  font-size: 0.75rem;
}

.summary-detail {
  font-size: 0.8rem;
  color: #3b4a54;
}

.pollitics-system-extras {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.65rem;
}

.pollitics-action-stack,
.pollitics-prompt-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pollitics-action-btn,
.pollitics-prompt-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: left;
}

.pollitics-action-btn.primary {
  background: #0f766e;
  color: #ffffff;
}

.pollitics-action-btn.secondary {
  background: rgba(17, 27, 33, 0.06);
  color: #111b21;
}

.pollitics-action-btn:disabled {
  opacity: 0.65;
}

.pollitics-prompt-btn {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.channel-search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.channel-search-count {
  color: #6b84b5;
  font-size: 0.8rem;
}

.channel-search-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.channel-search-nav {
  min-width: 2.5rem;
  padding-inline: 0.7rem;
}

.direct-persona-hero {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0.55rem;
}

.direct-persona-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: min(560px, 92%);
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 10px 24px rgba(17, 27, 33, 0.05);
  backdrop-filter: blur(4px);
}

.direct-persona-photo {
  width: 4rem;
  height: 4rem;
  flex-basis: 4rem;
  box-shadow: 0 6px 18px rgba(17, 27, 33, 0.12);
}

.direct-persona-meta {
  min-width: 0;
}

.direct-persona-meta h3 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.15;
}

.direct-persona-meta p {
  margin: 0.22rem 0 0;
  color: #4b5d79;
  font-size: 0.88rem;
}

.direct-persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.direct-persona-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #234d96;
  font-size: 0.74rem;
  font-weight: 700;
}

.group-persona-hero {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0.55rem;
}

.group-persona-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(640px, 94%);
  padding: 0.95rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(17, 27, 33, 0.05);
  backdrop-filter: blur(4px);
  text-align: left;
  cursor: pointer;
}

.group-persona-faces {
  display: inline-flex;
  align-items: center;
  padding-left: 0.1rem;
  flex-shrink: 0;
}

.group-persona-face {
  width: 3rem;
  height: 3rem;
  margin-left: -0.72rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 22px rgba(22, 59, 122, 0.16);
  background: #dbe5f5;
}

.group-persona-face:first-child {
  margin-left: 0;
}

.group-persona-meta {
  min-width: 0;
}

.group-persona-meta h3 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.15;
  color: #163b7a;
}

.group-persona-meta p {
  margin: 0.24rem 0 0;
  color: #4b5d79;
  font-size: 0.88rem;
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.empty-state-card {
  max-width: 30rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 27, 33, 0.06);
  box-shadow: 0 10px 26px rgba(17, 27, 33, 0.05);
  backdrop-filter: blur(3px);
}

.empty-state-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.empty-state-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.typing-strip {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.22rem;
  padding-bottom: 0.22rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-top: 1px solid rgba(17, 27, 33, 0.05);
  background: linear-gradient(180deg, rgba(240, 242, 245, 0.92), #f0f2f5);
}

.typing-label {
  color: var(--muted);
  font-size: 0.8rem;
  min-width: 0;
}

.typing-stop-btn {
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(17, 27, 33, 0.08);
  color: var(--muted);
  transition: background 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.typing-stop-btn[hidden] {
  display: none;
}

.typing-stop-btn span {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 2px;
  background: currentColor;
}

.typing-stop-btn:hover,
.typing-stop-btn:focus-visible {
  background: rgba(17, 27, 33, 0.16);
  color: var(--text);
}

.typing-stop-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.composer-card {
  margin-top: auto;
}

.chip-row,
.quick-actions,
.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.composer-form {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.composer-attachment-preview {
  display: none;
}

.composer-attachment-preview.has-attachment {
  display: block;
}

.composer-attachment-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: #f7f9fa;
  border: 1px solid rgba(17, 27, 33, 0.08);
}

.composer-attachment-image-wrap {
  position: relative;
  width: min(240px, 100%);
  border-radius: 16px;
  overflow: hidden;
  background: #f7f9fa;
  border: 1px solid rgba(17, 27, 33, 0.08);
}

.composer-attachment-image {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.composer-attachment-thumb {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.composer-attachment-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.composer-attachment-remove {
  width: 2rem;
  height: 2rem;
}

.composer-attachment-remove-floating {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  background: rgba(17, 27, 33, 0.72);
  color: #fff;
}

.composer-input {
  background: #ffffff;
  border: none;
  color: var(--text);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  resize: none;
  min-height: 42px;
  width: 100%;
  min-width: 0;
}

.composer-input:focus,
.form-control:focus {
  background: #ffffff;
  color: var(--text);
  border-color: transparent;
  box-shadow: none;
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0 0.2rem 0.1rem;
}

.compact-toggle {
  gap: 0.45rem;
}

.compact-actions {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.compact-actions .btn,
.compact-toggle .mode-chip {
  font-size: 0.72rem;
}

.analytics-card canvas {
  width: 100% !important;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.list-panel {
  min-height: 52px;
}

.list-item {
  background: #f7f8fa;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  color: var(--muted);
}

.whatsapp-sidebar .panel-card,
.whatsapp-chat-shell .panel-card {
  border-radius: 0;
  box-shadow: none;
}

.whatsapp-sidebar {
  background: #ffffff;
  border-right: none;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-shell,
.sidebar-section {
  background: #ffffff;
  flex: 0 0 auto;
}

.sidebar-shell {
  padding-bottom: 0.85rem;
}

.sidebar-section {
  padding-left: 0;
  padding-right: 0;
  border-top: none;
}

.sidebar-section > .d-flex {
  padding-left: 1rem;
  padding-right: 1rem;
  margin-bottom: 0.55rem !important;
}

.sidebar-topbar,
.whatsapp-chat-header {
  background: #f0f2f5;
}

.sidebar-topbar {
  margin: -1.35rem -1.35rem 0;
  padding: 0.62rem 1rem;
  background: #2563eb;
  border-bottom: none;
}

.sidebar-topbar .section-kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #dbeafe;
}

.sidebar-topbar .text-secondary {
  color: rgba(255, 255, 255, 0.78) !important;
}

.sidebar-topbar .icon-btn {
  color: #ffffff;
}

.workspace-mobile-menu-toggle {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.95rem;
}

.workspace-mobile-menu-toggle i {
  font-size: 1.2rem;
}

.workspace-mobile-menu-toggle-light {
  color: #ffffff;
}

.sidebar-new-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.48rem 0.82rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.mobile-back-btn {
  display: none;
}

.whatsapp-chat-shell {
  background: linear-gradient(180deg, #edf4ff, #f7faff);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  border-left: none;
  box-shadow: none;
}

.whatsapp-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 59px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  padding: 0.62rem 1rem;
  box-shadow: 0 10px 30px rgba(22, 59, 122, 0.08);
  position: relative;
  z-index: 2;
}

.whatsapp-chat-header .panel-title,
.whatsapp-chat-header .section-kicker {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.whatsapp-chat-header .panel-title {
  color: #163b7a;
}

.whatsapp-chat-header .section-kicker {
  background: rgba(37, 99, 235, 0.08);
  color: #2557c8;
}

.whatsapp-chat-header .group-header-stack .section-kicker {
  padding: 0;
  background: transparent;
  color: #2557c8;
}

.whatsapp-thread {
  flex: 1;
  max-height: none;
  min-height: 0;
  background:
    linear-gradient(rgba(247, 250, 255, 0.96), rgba(247, 250, 255, 0.96)),
    radial-gradient(circle at 28px 28px, rgba(37, 99, 235, 0.06) 2px, transparent 0),
    radial-gradient(circle at 84px 84px, rgba(14, 165, 233, 0.05) 1.6px, transparent 0),
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: auto, 104px 104px, 104px 104px, 26px 26px, 26px 26px;
}

.whatsapp-composer-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
  border-top: 1px solid rgba(37, 99, 235, 0.1);
  padding: 0.55rem 0.72rem 0.5rem;
  box-shadow: 0 -8px 20px rgba(22, 59, 122, 0.05);
}

.sidebar-search-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0f2f5;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  color: #667781;
}

.icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.icon-btn {
  width: 1.95rem;
  height: 1.95rem;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: #5d6f92;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}

.whatsapp-self-avatar {
  background: linear-gradient(135deg, #00a884, #21c063);
}

.whatsapp-micro-label {
  font-size: 0.63rem;
  letter-spacing: 0.06em;
}

.composer-shell {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.45rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  border-radius: 16px;
  padding: 0.18rem 0.34rem;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 24px rgba(22, 59, 122, 0.06);
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.composer-icon {
  align-self: center;
}

.emoji-picker-shell {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
}

.emoji-picker-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.6rem);
  width: min(320px, 78vw);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.65rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 27, 33, 0.08);
  box-shadow: 0 16px 40px rgba(17, 27, 33, 0.14);
  z-index: 20;
}

.mention-menu {
  position: absolute;
  left: 5.1rem;
  right: 3rem;
  bottom: calc(100% + 0.6rem);
  display: grid;
  gap: 0.25rem;
  max-height: min(280px, 38vh);
  overflow: auto;
  padding: 0.45rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(17, 27, 33, 0.08);
  box-shadow: 0 16px 40px rgba(17, 27, 33, 0.14);
  z-index: 21;
}

.mention-option {
  display: grid;
  gap: 0.1rem;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  background: transparent;
  color: #111b21;
}

.mention-option:hover,
.mention-option.active {
  background: rgba(37, 99, 235, 0.08);
}

.mention-option strong {
  font-size: 0.9rem;
}

.mention-option small {
  color: #5d6f92;
  font-size: 0.75rem;
}

.emoji-choice-btn {
  border: 0;
  background: transparent;
  border-radius: 12px;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.45rem 0;
}

.emoji-choice-btn:hover {
  background: rgba(17, 27, 33, 0.06);
}

.send-icon-btn {
  background: #00a884;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 168, 132, 0.22);
}

.send-icon-btn:hover {
  background: #008f72;
}

.whatsapp-suggestion-row {
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 0.15rem;
  padding-left: 0.2rem;
}

.whatsapp-suggestion-row::-webkit-scrollbar {
  height: 4px;
}

.chat-stage {
  min-width: 0;
}

.chat-stage.whatsapp-chat-shell {
  min-height: 0;
}

.search-bar {
  display: flex;
  gap: 1rem;
}

.respondent-card .persona-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.respondent-card .persona-meta-grid span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #234d96;
  font-size: 0.85rem;
}

.respondent-link {
  display: block;
}

.respondent-link:hover .respondent-card {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(22, 59, 122, 0.14);
}

.respondent-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.respondents-shell .respondent-card p {
  color: #4b5d79;
}

.respondent-detail-card,
.respondent-detail-head {
  display: grid;
  gap: 1rem;
}

.respondent-detail-card,
.respondent-detail-main-card {
  padding: 1.45rem;
}

.respondent-detail-head {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.respondent-public-id {
  color: #5d6f92;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.respondent-detail-photo {
  width: 6.25rem;
  height: 6.25rem;
  flex-basis: 6.25rem;
  box-shadow: 0 12px 28px rgba(22, 59, 122, 0.18);
}

.respondent-detail-grid {
  display: grid;
  gap: 0.9rem;
}

.respondent-detail-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.respondent-detail-grid div {
  display: grid;
  gap: 0.22rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 10px 30px rgba(22, 59, 122, 0.06);
}

.respondent-detail-grid strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b84b5;
}

.respondent-detail-grid span {
  color: #163b7a;
  font-weight: 600;
}

.pollitics-modal {
  border: 1px solid rgba(17, 27, 33, 0.08);
  border-radius: 22px;
  overflow: hidden;
}

.pollitics-modal .modal-header,
.pollitics-modal .modal-footer {
  background: #f7f8fa;
  border-color: rgba(17, 27, 33, 0.06);
}

.pollitics-modal .modal-body {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.attachment-detail-preview {
  margin-bottom: 1rem;
}

.attachment-detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 16px;
  background: #f7f9fa;
}

.attachment-detail-document {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #f7f9fa;
  border: 1px solid rgba(17, 27, 33, 0.08);
}

.attachment-description {
  color: #233138;
}

.group-members-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.group-members-list {
  display: grid;
  gap: 0.45rem;
  max-height: 60vh;
  overflow: auto;
}

.group-member-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 0.82rem;
  border-radius: 14px;
  background: #f7f8fa;
  border: 1px solid rgba(17, 27, 33, 0.06);
}

.group-member-row:hover {
  background: #f0f2f5;
}

.group-member-meta {
  min-width: 0;
  flex: 1;
}

.group-member-meta small {
  display: block;
  color: #667781;
}

.group-member-trait {
  color: #667781;
  font-size: 0.78rem;
  text-transform: capitalize;
}

.pollitics-dropdown {
  border: 1px solid rgba(17, 27, 33, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(17, 27, 33, 0.12);
  padding: 0.35rem;
}

.pollitics-dropdown .dropdown-item,
.pollitics-dropdown .dropdown-item-text {
  border-radius: 10px;
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
}

.audience-mode-grid {
  display: grid;
  gap: 0.75rem;
}

.audience-mode-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 27, 33, 0.08);
  background: #ffffff;
  cursor: pointer;
}

.audience-mode-card input {
  margin-top: 0.2rem;
}

.audience-mode-card small {
  display: block;
  color: #667781;
  margin-top: 0.15rem;
}

.audience-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.audience-filters[data-mode="all"] {
  opacity: 0.82;
}

.report-thread,
.snapshot-pre {
  max-height: 70vh;
  overflow: auto;
}

.report-item {
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.snapshot-pre {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

@media (max-width: 1199px) {
  body {
    overflow: auto;
  }

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

  .account-promo-form {
    flex-direction: column;
    align-items: stretch;
  }

  .account-promo-form .form-control {
    max-width: none;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    border: none;
    box-shadow: none;
    height: auto;
  }

  .workspace-shell {
    height: auto;
    padding: 1rem;
    overflow: visible;
  }

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

  .left-rail,
  .chat-stage {
    gap: 1rem;
  }

  .whatsapp-sidebar .panel-card,
  .whatsapp-chat-shell .panel-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .whatsapp-sidebar {
    overflow: visible;
  }

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

  .seo-article-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 767px) {
  .brand-logo {
    height: 46px;
    max-width: min(260px, 66vw);
  }

  .landing-shell .navbar .container-xxl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .landing-nav-actions {
    gap: 0.35rem;
    flex: 0 0 auto;
  }

  .landing-nav-links {
    display: none;
  }

  .seo-section-nav,
  .seo-cta-row {
    gap: 0.5rem;
  }

  .seo-card-grid {
    grid-template-columns: 1fr;
  }

  .landing-mobile-menu {
    display: block;
    flex: 0 0 auto;
  }

  .landing-nav-actions .btn {
    padding-inline: 0.7rem;
    font-size: 0.82rem;
  }

  .landing-hero {
    padding-top: 3.25rem;
  }

  .hero-offer-note {
    display: flex;
    align-items: flex-start;
  }

  .landing-hero .eyebrow {
    margin-top: 0.35rem;
  }

  body.workspace-body {
    overflow: hidden;
  }

  .workspace-shell {
    height: 100vh;
    padding: 0;
    overflow: hidden;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
    gap: 0;
    height: 100vh;
  }

  .left-rail,
  .chat-stage {
    min-height: 0;
    height: 100vh;
    overflow: hidden;
    gap: 0;
  }

  .whatsapp-sidebar {
    display: flex;
  }

  .workspace-shell .chat-stage {
    display: none;
  }

  .workspace-shell.mobile-show-chat .left-rail {
    display: none;
  }

  .workspace-shell.mobile-show-chat .chat-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  .sidebar-shell,
  .sidebar-section,
  .chat-header,
  .typing-strip,
  .whatsapp-composer-card,
  .whatsapp-thread {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .left-rail {
    overflow-y: auto;
    background: #ffffff;
  }

  .chat-stage {
    background: #efeae2;
    width: 100%;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-back-btn {
    display: inline-flex;
  }

  .icon-actions,
  .sidebar-new-chat-btn,
  .sidebar-new-chat-btn span,
  .discussion-kind,
  .section-kicker:not(.whatsapp-micro-label) {
    display: none;
  }

  .sidebar-topbar {
    margin: 0;
    padding: 0.7rem 0.9rem;
  }

  .sidebar-shell {
    padding: 0;
  }

  .sidebar-section > .d-flex {
    padding-top: 0.75rem;
  }

  .crowd-stack {
    gap: 0;
  }

  .crowd-chip {
    border-bottom: 1px solid rgba(17, 27, 33, 0.06);
    border-radius: 0;
  }

  .discussion-link {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .chat-header {
    padding: 0.7rem 0.75rem;
  }

  .chat-thread {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .chat-row {
    padding: 0 0.8rem;
  }

  .chat-bubble {
    max-width: calc(100% - 3rem);
  }

  .chat-row.system .chat-bubble,
  .chat-row.persona .chat-bubble,
  .chat-row.user .chat-bubble {
    max-width: 100%;
  }

  .chat-meta {
    min-width: 0;
  }

  .chat-meta > span:last-child {
    flex: 0 0 auto;
  }

  .chat-author-block {
    min-width: 0;
  }

  .indicator-charts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .summary-chart-card,
  .indicator-chart-card,
  .indicator-chart-wrap,
  .pollitics-summary-block,
  .pollitics-system-extras {
    width: 100%;
    min-width: 0;
  }

  .chat-row.system .markdown-content,
  .chat-row.system .markdown-content p,
  .chat-row.system .markdown-content li,
  .chat-bubble > div:last-child {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .whatsapp-composer-card {
    padding: 0.45rem 0.5rem max(0.45rem, env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .composer-form,
  .composer-shell,
  .composer-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .whatsapp-chat-shell .panel-card,
  .whatsapp-chat-shell .chat-header,
  .whatsapp-chat-shell .whatsapp-thread,
  .whatsapp-chat-shell .typing-strip,
  .whatsapp-chat-shell .whatsapp-composer-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .chat-header > .d-flex,
  .chat-header .d-flex.align-items-center.gap-3 {
    min-width: 0;
    width: 100%;
  }

  .chat-header .panel-title,
  .chat-header-subline {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .group-header-stack {
    display: none;
  }

  .group-header-face {
    width: 2rem;
    height: 2rem;
    margin-left: -0.48rem;
  }

  .group-header-extra {
    font-size: 0.74rem;
  }

  .group-persona-card {
    width: 100%;
    gap: 0.8rem;
    padding: 0.85rem 0.9rem;
  }

  .group-persona-face {
    width: 2.4rem;
    height: 2.4rem;
    margin-left: -0.58rem;
  }

  .group-persona-meta h3 {
    font-size: 0.94rem;
  }

  .group-persona-meta p {
    font-size: 0.8rem;
  }

  .emoji-picker-panel {
    left: -0.15rem;
    width: min(288px, 82vw);
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .display-title {
    max-width: none;
  }

  .page-header-row,
  .composer-actions,
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-bubble {
    max-width: 100%;
  }

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