:root {
  --ink: #213130;
  --muted: #60716d;
  --line: #dedfda;
  --paper: #fefdfb;
  --surface: #ffffff;
  --app-bg: #f8f7f3;
  --sidebar-bg: #fefdfb;
  --subtle-bg: #f2f4ee;
  --control-bg: #edf0e8;
  --field-bg: #ffffff;
  --field-line: #cdd3cc;
  --active-bg: #e3f3dc;
  --card-bg: #ffffff;
  --pill-ink: #315847;
  --pill-bg: #d8f1d0;
  --tag-ink: #40514d;
  --tag-bg: #edf0eb;
  --hero-bg: #213130;
  --hero-copy: #dce8e4;
  --progress-bg: #e3e7e1;
  --teal: #3b6e58;
  --teal-dark: #294f40;
  --brand-soft: #b9efad;
  --brand-pale: #e7f7e2;
  --aqua: #3b6e58;
  --coral: #d96a5f;
  --gold: #e6ae49;
  --blue: #3567a8;
  --product-social: #3b6e58;
  --product-email: #d96a5f;
  --product-analytics: #3567a8;
  --product-search: #e6ae49;
  --product-social-soft: #e6f1eb;
  --product-email-soft: #fae9e7;
  --product-analytics-soft: #e6edf7;
  --product-search-soft: #fff3d8;
  --shadow: 0 14px 36px rgba(33, 49, 48, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  letter-spacing: 0.005em;
}

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

button {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.03em;
}

strong {
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.app-loading [data-screen] {
  visibility: hidden;
}

.brand,
.nav-link,
.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand {
  justify-content: flex-start;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-wordmark {
  color: var(--ink);
  font-size: 1.36rem;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-wordmark > span {
  color: var(--product-social);
}

.primary-button,
.secondary-button,
.icon-button {
  border: 0;
  border-radius: 999px;
  min-height: 46px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}

.primary-button {
  padding: 0 16px;
  color: var(--ink);
  background: var(--brand-soft);
}

.primary-button:hover {
  background: #a6e497;
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.icon-button:focus-visible,
.nav-link:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(80, 135, 98, 0.28);
  outline-offset: 2px;
}

.secondary-button,
.icon-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.secondary-button {
  padding: 0 14px;
}

.icon-button {
  width: 42px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-site {
  min-height: 100vh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(254, 253, 251, 0.94);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-main {
  padding: 0 clamp(20px, 4vw, 64px) 80px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0 72px;
  overflow: clip;
  text-align: center;
  isolation: isolate;
}

.home-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.hero-beaver-watermark {
  position: absolute;
  z-index: 0;
  top: clamp(38px, 5vw, 64px);
  left: 50%;
  width: clamp(360px, 46vw, 580px);
  opacity: 0.045;
  pointer-events: none;
  transform: translateX(-50%);
  mask-image: radial-gradient(circle at center, #000 32%, rgba(0, 0, 0, 0.76) 62%, transparent 82%);
}

.hero-beaver-watermark img {
  display: block;
  width: 100%;
  height: auto;
}

.home-hero > .home-media {
  position: relative;
  z-index: 1;
}

.home-copy h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(3.2rem, 6.4vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.home-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.hero-value-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hero-value-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid #d7ded5;
  border-radius: 999px;
  padding: 5px 11px 5px 7px;
  color: #40514d;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-value-points i {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: var(--brand-soft);
  font-size: 0.7rem;
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
}

.home-copy > .hero-actions {
  display: none;
}

.waitlist-form {
  display: grid;
  gap: 10px;
  width: min(100%, 720px);
  max-width: 720px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid #bfc7bf;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(33, 49, 48, 0.07);
  text-align: left;
}

.waitlist-form label {
  color: var(--ink);
  font-size: 0.95rem;
}

.waitlist-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 8px;
}

.waitlist-row input {
  margin-top: 0;
}

.waitlist-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.waitlist-status {
  margin-top: 0;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 720px);
  max-width: 720px;
  margin: 22px auto 0;
}

.hero-proof div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-proof dt {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-proof dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.home-media {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #ffffff, #eef5eb);
}

.home-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.product-workspace {
  width: min(100%, 1040px);
  min-height: 390px;
  margin: 0 auto;
}

.product-workspace img {
  filter: saturate(0.95) contrast(0.96);
}

.workspace-card {
  position: absolute;
  display: grid;
  gap: 6px;
  width: min(270px, 42%);
  border: 1px solid rgba(12, 40, 36, 0.12);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(33, 49, 48, 0.12);
}

.workspace-card strong,
.workspace-card p {
  margin: 0;
}

.workspace-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.workspace-tab {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--teal-dark);
  background: var(--brand-pale);
  font-size: 0.72rem;
  font-weight: 600;
}

.composer-card {
  left: 18px;
  top: 18px;
}

.queue-card {
  right: 18px;
  bottom: 18px;
}

.omni-overview {
  display: grid;
  gap: 22px;
  width: min(100%, 1040px);
  min-height: 420px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  text-align: left;
  background:
    linear-gradient(rgba(33, 49, 48, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 49, 48, 0.035) 1px, transparent 1px),
    #f7f7f2;
  background-size: 42px 42px;
}

.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.overview-heading div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #55a36e;
  box-shadow: 0 0 0 0 rgba(85, 163, 110, 0.38);
  animation: livePulse 2s ease-out infinite;
}

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

.overview-module {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(33, 49, 48, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.overview-module:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(33, 49, 48, 0.1);
}

.overview-module:nth-child(2),
.overview-module:nth-child(4) {
  animation: moduleFloat 5s ease-in-out infinite alternate;
}

.module-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  color: var(--ink);
  background: var(--brand-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 18px rgba(33, 49, 48, 0.12);
}

.product-icon-svg { display: block; width: 68%; height: 68%; overflow: visible; }
.module-icon .product-icon-svg { width: 66%; height: 66%; }
.product-icon-tail { fill: var(--icon-accent, var(--product-social)); }
.product-icon-tail-lines { fill: none; stroke: rgba(255, 255, 255, 0.82); stroke-width: 1.05; stroke-linecap: round; }
.product-icon-tooth { fill: #f3e7cb; stroke: currentColor; stroke-width: 0.65; }
.social-module .module-icon,
.icon-social,
.product-tile-icon.social,
.auth-product-icons span:nth-child(1) { --icon-accent: var(--product-social); --icon-soft: var(--product-social-soft); }
.email-module .module-icon,
.icon-email,
.product-tile-icon.email,
.auth-product-icons span:nth-child(2) { --icon-accent: var(--product-email); --icon-soft: var(--product-email-soft); }
.analytics-module .module-icon,
.icon-analytics,
.product-tile-icon.analytics,
.auth-product-icons span:nth-child(3) { --icon-accent: var(--product-analytics); --icon-soft: var(--product-analytics-soft); }
.search-module .module-icon,
.icon-search,
.product-tile-icon.search,
.auth-product-icons span:nth-child(4) { --icon-accent: var(--product-search); --icon-soft: var(--product-search-soft); }
.social-module .module-icon,
.email-module .module-icon,
.analytics-module .module-icon,
.search-module .module-icon { border-color: color-mix(in srgb, var(--icon-accent) 28%, transparent); color: var(--teal-dark); background: linear-gradient(145deg, #ffffff, var(--icon-soft)); }

.social-module { box-shadow: inset 0 3px 0 var(--product-social), 0 12px 28px rgba(33, 49, 48, 0.06); }
.email-module { box-shadow: inset 0 3px 0 var(--product-email), 0 12px 28px rgba(33, 49, 48, 0.06); }
.analytics-module { box-shadow: inset 0 3px 0 var(--product-analytics), 0 12px 28px rgba(33, 49, 48, 0.06); }
.search-module { box-shadow: inset 0 3px 0 var(--product-search), 0 12px 28px rgba(33, 49, 48, 0.06); }

.overview-module div {
  display: grid;
  gap: 5px;
}

.overview-module small,
.overview-module strong {
  display: block;
}

.overview-module small {
  color: var(--muted);
  font-size: 0.8rem;
}

.overview-module strong {
  font-size: 1rem;
}

.module-status {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.7rem;
  font-weight: 600;
}

.module-status.beta { color: #315847; background: #d8f1d0; }
.module-status.next { color: #785822; background: #fff0bf; }
.module-status.planned { color: #596460; background: #edf0eb; }
.social-module .module-status { color: var(--product-social); background: var(--product-social-soft); }
.email-module .module-status { color: #943e36; background: var(--product-email-soft); }
.analytics-module .module-status { color: var(--product-analytics); background: var(--product-analytics-soft); }
.search-module .module-status { color: #7d5b18; background: var(--product-search-soft); }

.overview-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 28px;
}

.overview-flow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: flowDot 2.4s ease-in-out infinite;
}

.overview-flow span:nth-child(2) { animation-delay: 0.2s; }
.overview-flow span:nth-child(3) { animation-delay: 0.4s; }
.overview-flow span:nth-child(4) { animation-delay: 0.6s; }

@keyframes livePulse {
  70% { box-shadow: 0 0 0 9px rgba(85, 163, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(85, 163, 110, 0); }
}

@keyframes moduleFloat {
  to { transform: translateY(-5px); }
}

@keyframes flowDot {
  0%, 100% { opacity: 0.28; transform: scale(0.8); }
  45% { opacity: 1; transform: scale(1.25); }
}

.price-promise-section {
  display: grid;
  gap: 30px;
  margin: 8px 0 18px;
  scroll-margin-top: 96px;
  padding: clamp(28px, 4vw, 52px);
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.78), transparent 28%),
    #d8f1d0;
  box-shadow: none;
}

.price-promise-heading {
  display: grid;
  max-width: 820px;
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}

.price-promise-section .eyebrow {
  color: var(--teal-dark);
}

.price-promise-section h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.price-promise-heading > p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: #41544f;
  line-height: 1.65;
}

.price-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.price-promise-grid article {
  display: grid;
  align-content: start;
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(33, 73, 58, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.price-promise-grid .price-promise-featured {
  color: #ffffff;
  background: var(--teal-dark);
}

.price-step {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--teal-dark);
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.price-promise-grid h3 {
  margin: 24px 0 0;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.price-promise-grid p {
  margin: 10px 0 22px;
  color: #4d625c;
  font-size: 0.94rem;
  line-height: 1.58;
}

.price-promise-grid strong {
  align-self: end;
  margin-top: auto;
  color: var(--teal-dark);
  font-size: 0.82rem;
}

.price-promise-featured p,
.price-promise-featured strong {
  color: rgba(255, 255, 255, 0.82);
}

.price-comparison-note {
  margin: -8px 0 0;
  color: #52675f;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 28px 0 12px;
}

.feature-band article,
.workflow-section,
.auth-panel,
.auth-summary,
.metrics-grid article,
.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: none;
}

.feature-band article {
  min-height: 190px;
  padding: 28px;
}

.product-spaces article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 270px;
}

.feature-band span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--brand-soft);
  font-weight: 600;
}

.feature-band h2,
.workflow-section h2,
.auth-panel h1,
.panel h2 {
  margin: 0;
}

.feature-band h2 {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.product-spaces .eyebrow {
  margin: 0;
  color: var(--teal-dark);
}

.feature-band p,
.workflow-list span,
.auth-panel p,
.auth-summary li {
  color: var(--muted);
  line-height: 1.55;
}

.product-tour {
  display: grid;
  gap: 28px;
  max-width: 1180px;
  margin: 104px auto 0;
}

.product-tour-heading {
  display: grid;
  justify-items: center;
  max-width: 780px;
  margin: 0 auto 22px;
  text-align: center;
}

.product-tour-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.product-tour-heading > p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.product-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  min-height: 600px;
  padding: clamp(34px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
}

#social { background: var(--product-social-soft); }
#email-tools { background: var(--product-email-soft); }
#insights { background: var(--product-analytics-soft); }
#search-tools { background: var(--product-search-soft); }

.product-feature-reverse .product-copy { order: 2; }
.product-feature-reverse .product-demo { order: 1; }

.product-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.product-copy > p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.product-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-kicker > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--brand-soft);
  font-size: 0.72rem;
}

#social .product-kicker { color: var(--product-social); }
#email-tools .product-kicker { color: var(--product-email); }
#insights .product-kicker { color: var(--product-analytics); }
#search-tools .product-kicker { color: #8a651c; }
#social .product-kicker > span { color: #fff; background: var(--product-social); }
#email-tools .product-kicker > span { color: #fff; background: var(--product-email); }
#insights .product-kicker > span { color: #fff; background: var(--product-analytics); }
#search-tools .product-kicker > span { color: #3f3214; background: var(--product-search); }

.product-kicker em {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--tag-bg);
  font-size: 0.67rem;
  font-style: normal;
  letter-spacing: 0.03em;
}

.feature-checklist {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-checklist li {
  position: relative;
  padding-left: 27px;
  color: #40514d;
  line-height: 1.45;
}

.feature-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #315847;
  background: #d8f1d0;
  font-size: 0.68rem;
  font-weight: 700;
}

#social .feature-checklist li::before { color: #fff; background: var(--product-social); }
#email-tools .feature-checklist li::before { color: #fff; background: var(--product-email); }
#insights .feature-checklist li::before { color: #fff; background: var(--product-analytics); }
#search-tools .feature-checklist li::before { color: #3f3214; background: var(--product-search); }

.product-demo {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(33, 49, 48, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(rgba(33, 49, 48, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 49, 48, 0.03) 1px, transparent 1px),
    #f5f7f1;
  background-size: 34px 34px;
}

.demo-window-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.demo-window-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cad1ca;
}

.demo-window-bar span { margin-left: 6px; }

/* Interactive twelve-channel network */
.social-network-demo {
  min-height: 520px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(182, 234, 166, 0.34), transparent 31%),
    linear-gradient(rgba(33, 49, 48, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 49, 48, 0.025) 1px, transparent 1px),
    #f5f7f1;
  background-size: auto, 34px 34px, 34px 34px, auto;
}

.network-glow {
  position: absolute;
  inset: 20% 22%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(183, 235, 167, 0.22);
  filter: blur(38px);
  animation: networkGlow 5s ease-in-out infinite alternate;
}

.network-center-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 190px;
  min-height: 176px;
  place-items: center;
  border: 1px solid rgba(55, 83, 76, 0.14);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 55px rgba(31, 50, 45, 0.14);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(14px);
}

.network-center-card img { width: 46px; height: 46px; }
.network-center-card span { margin-top: 9px; color: var(--teal-dark); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.network-center-card strong { margin-top: -3px; font-size: 1.15rem; letter-spacing: -0.02em; }
.network-center-card small { margin-top: 8px; color: var(--muted); font-size: 0.68rem; text-align: center; }

.social-logo-field { position: absolute; inset: 0; z-index: 4; }
.network-logo {
  --push-x: 0px;
  --push-y: 0px;
  position: absolute;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(42, 62, 57, 0.12);
  border-radius: 19px;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 34px rgba(31, 50, 45, 0.12);
  cursor: pointer;
  transform: translate(var(--push-x), var(--push-y)) rotate(var(--tilt, 0deg));
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.network-logo .provider-logo { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; box-shadow: none; }
.network-logo .provider-logo svg { width: 25px; height: 25px; }
.network-logo:hover,
.network-logo:focus-visible { z-index: 8; border-color: rgba(70, 128, 104, 0.35); box-shadow: 0 20px 42px rgba(31, 50, 45, 0.2); transform: translate(var(--push-x), calc(var(--push-y) - 7px)) rotate(0deg) scale(1.12); }
.social-logo-field:has(.network-logo:hover) .network-logo:not(:hover) { opacity: 0.76; }

.network-logo:nth-child(1) { left: 7%; top: 8%; --tilt: -5deg; }
.network-logo:nth-child(2) { left: 31%; top: 6%; --tilt: 3deg; }
.network-logo:nth-child(3) { right: 27%; top: 7%; --tilt: -3deg; }
.network-logo:nth-child(4) { right: 6%; top: 13%; --tilt: 5deg; }
.network-logo:nth-child(5) { left: 5%; top: 38%; --tilt: 4deg; }
.network-logo:nth-child(6) { right: 5%; top: 41%; --tilt: -4deg; }
.network-logo:nth-child(7) { left: 8%; bottom: 9%; --tilt: -4deg; }
.network-logo:nth-child(8) { left: 29%; bottom: 6%; --tilt: 4deg; }
.network-logo:nth-child(9) { right: 29%; bottom: 7%; --tilt: -2deg; }
.network-logo:nth-child(10) { right: 7%; bottom: 10%; --tilt: 4deg; }
.network-logo:nth-child(11) { left: 16%; top: 23%; --tilt: 2deg; }
.network-logo:nth-child(12) { right: 15%; bottom: 25%; --tilt: -3deg; }

.network-activity { position: absolute; left: 50%; bottom: 22px; z-index: 5; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(55, 83, 76, 0.12); border-radius: 999px; padding: 7px 11px; color: var(--muted); background: rgba(255, 255, 255, 0.88); box-shadow: 0 8px 24px rgba(31, 50, 45, 0.08); transform: translateX(-50%); font-size: 0.7rem; backdrop-filter: blur(10px); }
.network-activity i { width: 7px; height: 7px; border-radius: 50%; background: #55a968; box-shadow: 0 0 0 4px rgba(85, 169, 104, 0.13); animation: livePulse 1.8s ease-in-out infinite; }

@keyframes networkGlow { to { opacity: 0.58; transform: scale(1.12); } }

/* Marketing email animation */
.email-flow-demo { padding: 28px; background-color: #fbf7ed; }

.email-preview-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: min(340px, 76%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(70, 58, 35, 0.1);
  animation: emailCardFloat 4s ease-in-out infinite alternate;
}

.email-preview-card > small { margin-top: 6px; color: var(--muted); }
.email-preview-card > strong { font-size: 1.08rem; }
.email-preview-card .demo-cta { width: max-content; border-radius: 999px; padding: 9px 13px; color: var(--ink); background: #ffe59a; }
.email-copy-line { width: 66%; height: 8px; border-radius: 999px; background: #ece9e0; }
.email-copy-line.wide { width: 92%; }

.delivery-progress {
  overflow: hidden;
  width: 74%;
  height: 6px;
  margin: 24px 0 18px;
  border-radius: 999px;
  background: #e3e1d9;
}

.delivery-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #d2a33f;
  animation: deliveryMove 3s ease-in-out infinite;
}

.email-events { display: grid; gap: 9px; margin-left: auto; width: min(330px, 86%); }

.mail-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(70, 58, 35, 0.06);
  animation: eventSlide 4.5s ease-in-out infinite;
}

.mail-event i { grid-row: 1 / 3; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #5b4a1d; background: #fff0bf; font-style: normal; }
.mail-event b { font-size: 0.84rem; }
.mail-event small { color: var(--muted); font-size: 0.7rem; }
.event-delivered { animation-delay: 0.35s; }
.event-opened { animation-delay: 0.7s; }

@keyframes emailCardFloat { to { transform: translateY(-7px) rotate(-0.5deg); } }
@keyframes deliveryMove { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(240%); } }
@keyframes eventSlide { 0%, 100% { transform: translateX(8px); opacity: 0.72; } 35%, 75% { transform: translateX(0); opacity: 1; } }

/* Website analytics animation */
.analytics-demo { display: grid; align-content: start; gap: 14px; padding: 24px; }

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.analytics-summary > span {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
}

.analytics-summary small { color: var(--muted); font-size: 0.67rem; }
.analytics-summary strong { font-size: 1.04rem; }
.analytics-summary .live-dot { width: 7px; height: 7px; margin-right: 3px; }

.chart-card {
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.chart-labels { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chart-labels small { border-radius: 999px; padding: 4px 7px; color: #315847; background: #d8f1d0; }
.chart-card svg { display: block; width: 100%; height: 180px; }
.chart-area { fill: url(#chartFill); }
.chart-line { fill: none; stroke: #4f9468; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 720; stroke-dashoffset: 720; animation: chartDraw 4s ease-in-out infinite alternate; }

.visitor-stream { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.visitor-stream span { display: grid; grid-template-columns: auto 1fr; gap: 2px 7px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.9); animation: visitorPop 4s ease-in-out infinite; }
.visitor-stream span:nth-child(2) { animation-delay: .4s; }
.visitor-stream span:nth-child(3) { animation-delay: .8s; }
.visitor-stream i { grid-row: 1 / 3; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; color: #315847; background: #d8f1d0; font-size: .58rem; font-style: normal; font-weight: 600; }
.visitor-stream b { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.visitor-stream small { overflow: hidden; color: var(--muted); font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }

@keyframes chartDraw { 45%, 100% { stroke-dashoffset: 0; } }
@keyframes visitorPop { 0%, 100% { transform: translateY(4px); opacity: .66; } 30%, 75% { transform: translateY(0); opacity: 1; } }

/* SEO and GEO animation */
.search-radar-demo { padding: 26px; background-color: #f7f5fa; }

.search-query-card {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: 86%;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(55, 43, 72, 0.08);
}

.search-query-card span { color: var(--muted); font-size: .72rem; }
.search-query-card strong { padding-right: 12px; font-size: .94rem; }
.query-cursor { position: absolute; right: 18px; bottom: 18px; width: 2px; height: 17px; background: #5d7169; animation: cursorBlink 1s steps(1) infinite; }

.visibility-radar {
  position: absolute;
  left: 42px;
  bottom: 42px;
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  border: 1px solid rgba(82, 69, 99, .14);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,241,208,.52), rgba(255,255,255,.12) 65%);
}

.visibility-radar::before,
.visibility-radar i {
  content: "";
  position: absolute;
  border: 1px solid rgba(82, 69, 99, .16);
  border-radius: 50%;
}

.visibility-radar::before { inset: 28px; }
.visibility-radar i:nth-child(1) { inset: 57px; }
.visibility-radar i:nth-child(2) { left: 50%; top: 0; bottom: 0; width: 1px; border: 0; border-left: 1px solid rgba(82, 69, 99, .13); border-radius: 0; }
.visibility-radar i:nth-child(3) { left: 0; right: 0; top: 50%; height: 1px; border: 0; border-top: 1px solid rgba(82, 69, 99, .13); border-radius: 0; }
.visibility-radar b { position: relative; z-index: 2; display: grid; width: 50px; height: 50px; place-items: center; border-radius: 16px; color: #fff; background: #3b5f55; box-shadow: 0 9px 22px rgba(33,49,48,.18); }
.visibility-radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 78%, rgba(91,145,108,.24)); animation: radarSpin 4.5s linear infinite; }

.search-results-stack { position: absolute; right: 24px; bottom: 32px; z-index: 3; display: grid; gap: 9px; width: min(285px, 58%); }
.search-result { display: grid; grid-template-columns: auto 1fr; gap: 2px 9px; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 20px rgba(55,43,72,.06); animation: resultReveal 5s ease-in-out infinite; }
.search-result i { grid-row: 1 / 3; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #315847; background: #d8f1d0; font-size: .7rem; font-style: normal; font-weight: 600; }
.search-result b { font-size: .78rem; }
.search-result small { color: var(--muted); font-size: .65rem; }
.result-two { animation-delay: .45s; }
.result-three { animation-delay: .9s; }

@keyframes cursorBlink { 50% { opacity: 0; } }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes resultReveal { 0%, 100% { transform: translateX(10px); opacity: .56; } 30%, 78% { transform: translateX(0); opacity: 1; } }

.connected-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.connected-flow span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  font-weight: 600;
}

.connected-flow i { color: var(--teal); font-style: normal; }

.workflow-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: 28px;
  margin-top: 16px;
  padding: clamp(28px, 4vw, 48px);
}

.workflow-section h2 {
  max-width: 520px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.workflow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-list li:last-child {
  border-bottom: 0;
}

.channel-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.channel-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--subtle-bg);
  font-weight: 500;
}

.auth-screen {
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 56px);
}

.development-banner {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  color: #493b05;
  border-bottom: 1px solid #ead789;
  background: #fff8d8;
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
}

.internal-testing-notice {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #ead789;
  border-radius: 16px;
  color: #493b05;
  background: #fff8d8;
}

.internal-testing-notice p {
  margin: 6px 0 0;
  color: #665817;
}

.auth-brand {
  width: max-content;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(280px, 420px);
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  margin-top: 9vh;
}

.auth-panel,
.auth-summary {
  padding: 28px;
}

.auth-panel h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.status-message {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  color: #155d58;
  background: #ebf8f6;
  font-weight: 600;
  line-height: 1.45;
}

.status-message:empty {
  display: none;
}

.status-message[data-type="error"] {
  color: #7d251d;
  border-color: #f0b8af;
  background: #fff0ee;
}

.status-message[data-type="warning"] {
  color: #694d00;
  border-color: #edd486;
  background: #fff8dc;
}

.app-status {
  margin-bottom: 16px;
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.auth-switch button {
  border: 0;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.auth-summary ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.auth-summary h2 { margin: 6px 0 0; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; }
.auth-product-icons { display: flex; gap: 10px; margin-top: 28px; }
.auth-product-icons span { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid color-mix(in srgb, var(--icon-accent) 28%, transparent); border-radius: 15px; color: var(--teal-dark); background: linear-gradient(145deg, #ffffff, var(--icon-soft)); box-shadow: 0 9px 20px rgba(0, 0, 0, 0.12); }

.app-shell {
  --dashboard-caption: 0.72rem;
  --dashboard-small: 0.78rem;
  --dashboard-body: 0.88rem;
  --dashboard-control: 0.82rem;
  --dashboard-section: 1.25rem;
  --dashboard-page: clamp(1.75rem, 2.6vw, 2.4rem);
  --ink: #213130;
  --muted: #60716d;
  --line: #dedfda;
  --paper: #fefdfb;
  --surface: #ffffff;
  --app-bg: #f8f7f3;
  --sidebar-bg: #fefdfb;
  --subtle-bg: #f2f4ee;
  --control-bg: #edf0e8;
  --field-bg: #ffffff;
  --field-line: #cdd3cc;
  --active-bg: #e3f3dc;
  --card-bg: #ffffff;
  --pill-ink: #315847;
  --pill-bg: #d8f1d0;
  --tag-ink: #40514d;
  --tag-bg: #edf0eb;
  --hero-bg: #213130;
  --hero-copy: #dce8e4;
  --progress-bg: #e3e7e1;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  color: var(--ink);
  background: var(--app-bg);
  color-scheme: light;
  font-size: var(--dashboard-body);
  line-height: 1.5;
}

.app-shell button,
.app-shell input,
.app-shell select,
.app-shell textarea { font-size: var(--dashboard-control); }
.app-shell .eyebrow,
.app-shell small,
.app-shell label { font-size: var(--dashboard-caption); }

.app-shell[data-theme="dark"] {
  --ink: #f3f5ef;
  --muted: #aebbb6;
  --line: #3a4b46;
  --paper: #17211f;
  --surface: #202d29;
  --app-bg: #17211f;
  --sidebar-bg: #1b2724;
  --subtle-bg: #283732;
  --control-bg: #15201d;
  --field-bg: #1b2824;
  --field-line: #445751;
  --active-bg: #315042;
  --card-bg: #202d29;
  --pill-ink: #daf5d1;
  --pill-bg: #355943;
  --tag-ink: #dce5e1;
  --tag-bg: #2b3c37;
  --hero-bg: #101917;
  --hero-copy: #cedbd6;
  --progress-bg: #34453f;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: var(--sidebar-bg);
}

.app-shell[data-theme="dark"] .brand {
  border-radius: 16px;
  padding: 8px;
  background: #fefdfb;
}

.app-shell[data-theme="dark"] .brand-wordmark { color: #213130; }
.app-shell[data-theme="dark"] .brand-wordmark > span { color: var(--product-social); }

.app-shell .primary-button {
  color: #213130;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  justify-content: flex-start;
  min-height: 42px;
  border: 0;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  text-align: left;
}

.nav-link.active,
.nav-link:hover {
  color: var(--ink);
  background: var(--active-bg);
}

.nav-feature-icon,
.product-tile-icon {
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-style: normal;
  font-weight: 700;
}

.nav-feature-icon { width: 31px; height: 31px; margin-left: -5px; font-size: 0.8rem; }
.nav-feature-icon .product-icon-svg { width: 72%; height: 72%; }
.nav-link { gap: 9px; }
.nav-product-link { gap: 9px; }
.nav-product-link > span:nth-child(2) { min-width: 0; }
.icon-home { color: #49635c; background: #edf0eb; }
.icon-social,
.icon-email,
.icon-analytics,
.icon-search,
.product-tile-icon.social,
.product-tile-icon.email,
.product-tile-icon.analytics,
.product-tile-icon.search {
  border: 1px solid color-mix(in srgb, var(--icon-accent) 28%, transparent);
  color: var(--teal-dark);
  background: linear-gradient(145deg, #ffffff, var(--icon-soft));
}

.dashboard-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.dashboard-product-grid > button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 76px; border: 1px solid var(--line); border-radius: 17px; padding: 12px; color: var(--ink); background: var(--card-bg); box-shadow: var(--shadow); cursor: pointer; font: inherit; text-align: left; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.dashboard-product-grid > button:hover { border-color: rgba(64, 104, 91, 0.32); box-shadow: 0 14px 34px rgba(33, 49, 48, 0.09); transform: translateY(-2px); }
.dashboard-product-grid > button > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.dashboard-product-grid strong,
.dashboard-product-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-product-grid small { color: var(--muted); font-size: 0.7rem; }
.dashboard-product-grid > button > i { color: var(--muted); font-size: 1.15rem; font-style: normal; }
.product-tile-icon { width: 46px; height: 46px; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 7px 16px rgba(33, 49, 48, 0.12); }
.product-tile-icon .product-icon-svg { width: 68%; height: 68%; }

.product-icon-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.module-icon[data-product-icon],
.nav-feature-icon[data-product-icon],
.product-tile-icon[data-product-icon],
.auth-product-icons [data-product-icon] {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-switcher { position: relative; margin-top: auto; }
.account-trigger { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 62px; border: 1px solid var(--line); border-radius: 15px; padding: 9px 10px; color: var(--ink); background: var(--surface); cursor: pointer; font: inherit; text-align: left; transition: border-color 160ms ease, box-shadow 160ms ease; }
.account-trigger:hover,
.account-trigger[aria-expanded="true"] { border-color: rgba(64, 104, 91, 0.35); box-shadow: 0 10px 28px rgba(31, 50, 45, 0.1); }
.account-trigger > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.account-trigger strong,
.account-trigger small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger small { color: var(--muted); font-size: 0.7rem; }
.account-trigger > i { color: var(--muted); font-style: normal; transition: transform 160ms ease; }
.account-trigger[aria-expanded="true"] > i { transform: rotate(180deg); }
.account-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #294139; background: linear-gradient(145deg, #b9edae, #8ed5bb); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; }
.account-menu { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 30; display: grid; width: 300px; border: 1px solid var(--line); border-radius: 17px; padding: 9px; color: var(--ink); background: var(--card-bg); box-shadow: 0 24px 65px rgba(24, 39, 35, 0.2); }
.account-menu.hidden { display: none; }
.account-menu > header { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 7px 10px; }
.account-menu > header > div { display: grid; min-width: 0; gap: 2px; }
.account-menu > header strong,
.account-menu > header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu > header small { color: var(--muted); font-size: 0.72rem; }
.workspace-card-mini { display: grid; gap: 3px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: var(--subtle-bg); }
.workspace-card-mini > span { color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.workspace-card-mini small { color: var(--muted); font-size: 0.7rem; }
.account-menu > button { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 48px; border: 0; border-radius: 10px; padding: 7px; color: var(--ink); background: transparent; cursor: pointer; font: inherit; text-align: left; }
.account-menu > button:hover { background: var(--active-bg); }
.account-menu > button > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--muted); background: var(--control-bg); font-size: 0.72rem; }
.account-menu > button > div { display: grid; gap: 2px; }
.account-menu > button strong { font-size: 0.78rem; }
.account-menu > button small { color: var(--muted); font-size: 0.66rem; }
.account-menu-separator { height: 1px; margin: 6px 4px; background: var(--line); }

.account-settings-dialog { width: min(520px, calc(100vw - 28px)); margin: auto; border: 1px solid var(--line); border-radius: 21px; padding: 0; color: var(--ink); background: var(--card-bg); box-shadow: 0 30px 90px rgba(20, 31, 29, 0.28); }
.account-settings-dialog::backdrop { background: rgba(24, 34, 33, 0.52); backdrop-filter: blur(4px); }
.account-settings-shell { display: grid; gap: 15px; padding: 24px; }
.account-settings-shell > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.account-settings-shell h2 { margin: 2px 0 5px; font-size: 1.4rem; }
.account-settings-shell header p:last-child { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.account-settings-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }

.dashboard-main {
  width: 100%;
  min-width: 0;
  padding: clamp(22px, 3vw, 40px);
  background: var(--app-bg);
}

.dashboard-main .panel-heading h2,
.dashboard-main .account-settings-shell h2,
.dashboard-main .channel-connect-header h2,
.dashboard-main .channel-directory-shell > header h2 {
  font-size: var(--dashboard-section);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.dashboard-view {
  display: none;
  width: 100%;
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0;
  max-width: 780px;
  font-size: var(--dashboard-page);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  font-size: 1.05rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: 26px;
  overflow: hidden;
  min-height: 350px;
  margin-bottom: 18px;
  border-radius: 24px;
  color: white;
  background: var(--hero-bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(33, 49, 48, 0.97), rgba(33, 49, 48, 0.66) 48%, rgba(33, 49, 48, 0.12));
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 610px;
  padding: 34px 44px;
}

.hero .eyebrow {
  color: #b9efad;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2rem, 3.35vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.hero p:not(.eyebrow) {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--hero-copy);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.metrics-grid,
.workspace-grid {
  display: grid;
  gap: 16px;
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metrics-grid article {
  min-height: 120px;
  padding: 18px;
}

.metrics-grid span,
.metrics-grid small {
  color: var(--muted);
}

.metrics-grid span,
.metrics-grid strong,
.metrics-grid small {
  display: block;
}

.metrics-grid strong {
  margin: 8px 0 4px;
  font-size: 2rem;
  font-weight: 500;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  align-items: start;
}

.panel {
  padding: 24px;
}

.composer-panel,
.wide-panel {
  width: 100%;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--control-bg);
}

.segmented-control button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

.segmented-control button.active {
  color: var(--ink);
  background: var(--surface);
}

.composer {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: var(--subtle-bg);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 18px;
  background: var(--subtle-bg);
}

label,
legend {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--field-line);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--field-bg);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.media-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: start;
}

.media-upload-control {
  display: grid;
  gap: 7px;
}

.media-upload-control p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.media-upload-control input[type="file"] {
  margin-top: 0;
}

.schedule-guidance {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--card-bg);
}

.schedule-guidance strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.schedule-guidance span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.ai-adapt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--card-bg);
}

.ai-adapt-bar div {
  display: grid;
  gap: 3px;
}

.ai-adapt-bar strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.ai-adapt-bar span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.adapted-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.adapted-post {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--card-bg);
}

.adapted-post-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.adapted-post-heading strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.adapted-post textarea {
  min-height: 150px;
  margin-top: 0;
}

.social-preview-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--card-bg);
}

.social-preview-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.social-preview-panel strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.social-preview-panel span,
.social-preview-panel small {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.social-preview-panel .provider-logo {
  color: white;
}

.social-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.social-preview-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--card-bg);
  box-shadow: 0 8px 20px rgba(33, 49, 48, 0.07);
}

.social-preview-card.preview-only {
  opacity: 0.72;
}

.social-preview-card.linkedin {
  border-top: 4px solid #0a66c2;
}

.social-preview-card.x {
  border-color: #d8dde2;
  border-radius: 14px;
  box-shadow: none;
}

.app-shell[data-theme="dark"] .social-preview-card.x {
  border-color: #2f3336;
}

.social-preview-card.threads {
  border-color: #202020;
  border-radius: 14px;
  box-shadow: none;
}

.social-preview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.social-preview-heading .over-limit {
  color: var(--coral);
}

.preview-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.preview-identity div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.preview-identity div strong,
.preview-identity div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.composer-field-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -7px 0 2px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.composer-field-hint > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  color: var(--teal-dark);
  background: rgba(103, 178, 158, 0.14);
  font-weight: 800;
}

.social-preview-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  white-space: pre-wrap;
}

.social-preview-card.linkedin p {
  font-size: 0.9rem;
}

.social-preview-card.x p {
  font-size: 0.94rem;
  line-height: 1.38;
}

.social-preview-card.threads p {
  font-size: 0.94rem;
  line-height: 1.42;
}

.social-preview-card img,
.social-preview-card video {
  display: block;
  width: 100%;
  max-height: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.preview-link {
  overflow: hidden;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-link-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: inherit;
  background: var(--subtle-bg);
  text-decoration: none;
}

.platform-link-visual {
  display: grid;
  min-height: 70px;
  place-items: center;
  color: var(--teal-dark) !important;
  background: linear-gradient(145deg, rgba(178, 235, 152, 0.55), rgba(155, 216, 207, 0.5));
  font-size: 1.25rem !important;
  font-weight: 800;
}

.platform-link-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
  padding: 9px 10px;
}

.platform-link-copy small { color: var(--muted); font-size: 0.65rem; text-transform: uppercase; }
.platform-link-copy strong,
.platform-link-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-link-copy strong { font-size: 0.77rem; }
.platform-link-copy span { color: var(--muted); font-size: 0.66rem; }

.platform-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.platform-preview-actions span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.social-preview-card.linkedin .platform-preview-actions span { color: #40546a; }
.social-preview-card.x .platform-preview-actions,
.social-preview-card.threads .platform-preview-actions { justify-content: space-around; }

.media-placeholder {
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-preview-card.threads .provider-logo {
  border-radius: 50%;
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  border: 0;
  padding: 0;
}

fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-bg);
}

fieldset input {
  width: auto;
  margin: 0;
}

.queue,
.segment-list,
.seo-list,
.calendar-strip,
.connection-list,
.social-account-list {
  display: grid;
  gap: 10px;
}

.queue {
  margin-top: 16px;
}

.queue-item,
.segment-item,
.seo-item,
.calendar-day,
.connection-list article,
.social-account-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--card-bg);
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.queue-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.danger-button {
  color: var(--coral);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.social-accounts-panel {
  width: 100%;
  margin-bottom: 16px;
}

.linkedin-guide-panel {
  width: 100%;
  margin-bottom: 16px;
}

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

.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--card-bg);
}

.guide-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.setup-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.setup-steps li {
  padding-left: 4px;
}

.linkedin-company-form {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.7fr) auto;
  margin: 16px 0 0;
}

.social-account-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.social-account-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.provider-logo {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: white;
  background: #171717;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(33, 49, 48, 0.12);
}

.provider-logo svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.provider-logo.linkedin {
  background: #0a66c2;
}

.provider-logo.x {
  background: #050505;
}

.provider-logo.threads {
  border-radius: 50%;
  background: #050505;
}

.provider-logo.linkedin svg {
  width: 24px;
  height: 24px;
}

.provider-logo.x svg {
  width: 21px;
  height: 21px;
}

.provider-logo.threads svg {
  width: 26px;
  height: 26px;
}

.social-account-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.social-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.queue-item strong,
.segment-item strong,
.seo-item strong,
.connection-list strong {
  display: block;
}

.queue-item p,
.segment-item p,
.seo-item p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.connection-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.connection-list span {
  color: var(--muted);
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.pill {
  color: var(--pill-ink);
  background: var(--pill-bg);
}

.tag {
  color: var(--tag-ink);
  background: var(--tag-bg);
}

.tag.linkedin {
  color: white;
  background: var(--blue);
}

.tag.x {
  color: white;
  background: #171717;
}

.tag.email {
  color: white;
  background: var(--coral);
}

.calendar-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  min-height: 112px;
}

.calendar-day strong,
.calendar-day span {
  display: block;
}

.calendar-day span {
  color: var(--muted);
  font-size: 0.82rem;
}

.calendar-dot {
  width: 9px;
  height: 9px;
  margin-top: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.segment-item,
.seo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.progress-track {
  overflow: hidden;
  width: 92px;
  height: 8px;
  border-radius: 999px;
  background: var(--progress-bg);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.status-message,
.composer,
.inline-form,
.schedule-guidance,
.ai-adapt-bar,
.adapted-post,
.social-preview-panel,
.social-preview-card,
fieldset label,
.queue-item,
.segment-item,
.seo-item,
.calendar-day,
.connection-list article,
.social-account-item,
.guide-card,
.media-placeholder {
  border-radius: 16px;
}

.pill,
.tag {
  font-weight: 600;
}

@media (max-width: 1100px) {
  .home-hero,
  .price-promise-section,
  .workflow-section,
  .auth-layout,
  .hero,
  .workspace-grid,
  .product-feature {
    grid-template-columns: 1fr;
  }

  .product-feature-reverse .product-copy,
  .product-feature-reverse .product-demo {
    order: initial;
  }

  .feature-band,
  .price-promise-grid,
  .metrics-grid,
  .guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  .topbar,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .site-nav a {
    display: none;
  }

  .site-nav a,
  .site-nav button,
  .panel-heading .secondary-button {
    width: 100%;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .primary-button {
    flex: 1;
  }

  .site-main,
  .dashboard-main {
    padding: 18px;
  }

  .home-hero {
    min-height: auto;
    gap: 34px;
    padding-top: 54px;
  }

  .hero-beaver-watermark {
    top: 34px;
    left: 50%;
    width: min(92vw, 400px);
    opacity: 0.035;
  }

  .overview-grid,
  .analytics-summary,
  .visitor-stream {
    grid-template-columns: 1fr;
  }

  .overview-module {
    min-height: 94px;
  }

  .product-tour {
    gap: 18px;
    margin-top: 72px;
  }

  .product-tour-heading {
    margin-bottom: 14px;
  }

  .product-feature {
    gap: 30px;
    min-height: 0;
    padding: 28px;
    border-radius: 24px;
  }

  .product-demo {
    min-height: 420px;
    border-radius: 22px;
  }

  .visibility-radar {
    left: 20px;
    bottom: 24px;
    width: 150px;
    height: 150px;
  }

  .search-results-stack {
    right: 14px;
    bottom: 24px;
    width: 62%;
  }

  .product-workspace {
    display: grid;
    gap: 10px;
    min-height: 0;
  }

  .workspace-card {
    position: static;
    width: 100%;
  }

  .home-copy h1 {
    font-size: 2.8rem;
  }

  .feature-band,
  .metrics-grid,
  .hero-proof,
  .calendar-strip {
    grid-template-columns: 1fr 1fr;
  }

  .price-promise-grid {
    grid-template-columns: 1fr;
  }

  .workflow-list li,
  .form-row,
  .adapted-posts,
  .social-preview-grid,
  .waitlist-row,
  .inline-form,
  .linkedin-company-form,
  .guide-grid,
  .queue-item,
  .segment-item,
  .seo-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(33, 49, 48, 0.97), rgba(33, 49, 48, 0.78) 54%, rgba(33, 49, 48, 0.22));
  }

  .hero-copy {
    padding: 28px;
  }

  .hero img {
    position: absolute;
    inset: auto 0 0;
    min-height: 250px;
  }

  .ai-adapt-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

}

@media (max-width: 480px) {
  .feature-band,
  .hero-proof,
  .metrics-grid,
  .calendar-strip,
  .segmented-control,
  .nav-list,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .home-copy h1 {
    font-size: 2.35rem;
  }

  .omni-overview {
    padding: 18px;
  }

  .overview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-feature {
    padding: 22px;
  }

  .product-copy h2 {
    font-size: 2rem;
  }

  .product-demo {
    min-height: 390px;
  }

  .email-flow-demo,
  .analytics-demo,
  .search-radar-demo {
    padding: 16px;
  }

  .email-preview-card {
    width: 88%;
  }

  .email-events {
    width: 94%;
  }

  .search-query-card {
    width: 100%;
  }

  .search-results-stack {
    width: 72%;
  }

  .brand {
    font-size: 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }
}

/* Social Studio */
.nav-product-group { display: grid; gap: 4px; }
.nav-product-link { display: grid; grid-template-columns: auto 1fr auto; width: 100%; }
.nav-product-link > i { font-style: normal; transition: transform 220ms ease; }
.nav-product-group.expanded .nav-product-link > i { transform: rotate(180deg); }
.nav-submenu {
  display: grid;
  gap: 3px;
  max-height: 0;
  margin: 0 0 0 30px;
  overflow: hidden;
  border-left: 1px solid transparent;
  padding-left: 9px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: max-height 240ms ease, margin 240ms ease, border-color 240ms ease, opacity 180ms ease, transform 240ms ease, visibility 0s linear 240ms;
}
.nav-product-group.expanded .nav-submenu {
  max-height: 220px;
  margin-bottom: 4px;
  border-left-color: var(--line);
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.nav-sublink { display: flex; align-items: center; gap: 9px; min-height: 34px; border: 0; border-radius: 9px; padding: 0 9px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 0.82rem; text-align: left; }
.nav-sublink > span { width: 16px; color: inherit; text-align: center; }
.nav-sublink:hover,
.nav-sublink.active { color: var(--ink); background: var(--active-bg); }
.nav-channel-section {
  display: grid;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  border-top: 1px solid transparent;
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: max-height 240ms ease, margin 240ms ease, padding 240ms ease, border-color 240ms ease, opacity 180ms ease, transform 240ms ease, visibility 0s linear 240ms;
}
.nav-product-group.expanded .nav-channel-section {
  max-height: 360px;
  margin-top: 7px;
  border-top-color: var(--line);
  padding-top: 10px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.nav-channel-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; color: var(--muted); font-size: 0.66rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; }
.nav-channel-actions { display: inline-flex; align-items: center; gap: 2px; }
.nav-channel-heading button { display: grid; width: 24px; height: 24px; place-items: center; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; }
.nav-channel-actions button:first-child { font-size: 0.78rem; }
.nav-channel-heading button:hover { color: var(--ink); background: var(--control-bg); }
.nav-channel-list { display: grid; gap: 3px; }
.nav-channel-list > button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 43px; border: 0; border-radius: 10px; padding: 5px 7px; color: var(--ink); background: transparent; cursor: pointer; font: inherit; text-align: left; }
.nav-channel-list > button:hover { background: var(--active-bg); }
.nav-channel-list .provider-logo { width: 29px; height: 29px; flex-basis: 29px; border-radius: 9px; box-shadow: none; }
.nav-channel-list .provider-logo svg { width: 17px; height: 17px; }
.nav-channel-list > button > span:nth-child(2) { display: grid; min-width: 0; gap: 1px; }
.nav-channel-list strong,
.nav-channel-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-channel-list strong { font-size: 0.72rem; }
.nav-channel-list small { color: var(--muted); font-size: 0.62rem; }
.nav-channel-list > button > i { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 999px; color: var(--muted); background: var(--control-bg); font-size: 0.62rem; font-style: normal; }
.nav-channel-list > .nav-connect-channel { display: flex; justify-content: center; min-height: 38px; border: 1px dashed var(--line); color: var(--muted); font-size: 0.7rem; }

.social-subview { display: none; }
.social-subview.active { display: block; }
.social-home-hero,
.social-workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 34px); background: var(--card-bg); box-shadow: var(--shadow); }
.social-home-hero h2,
.social-workspace-header h2 { margin: 3px 0 7px; font-size: clamp(1.65rem, 3vw, 2.55rem); font-weight: 550; letter-spacing: -0.04em; }
.social-home-hero p:last-child,
.social-workspace-header p:last-child { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.55; }
.social-home-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.social-home-metrics article { display: grid; gap: 4px; min-height: 112px; border: 1px solid var(--line); border-radius: 17px; padding: 17px; background: var(--card-bg); box-shadow: var(--shadow); }
.social-home-metrics span,
.social-home-metrics small { color: var(--muted); font-size: 0.78rem; }
.social-home-metrics strong { margin-top: 4px; font-size: 1.8rem; font-weight: 550; }
.social-home-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 16px; margin-bottom: 16px; }
.text-button { border: 0; padding: 0; color: var(--teal-dark); background: transparent; cursor: pointer; font: inherit; font-size: 0.8rem; font-weight: 700; }
.social-empty-compact { display: grid; justify-items: center; gap: 5px; min-height: 150px; place-content: center; border: 1px dashed var(--line); border-radius: 15px; padding: 20px; color: var(--muted); text-align: center; }
.social-empty-compact > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--teal-dark); background: var(--brand-soft); }
.social-empty-compact strong { color: var(--ink); }
.social-empty-compact p { margin: 0; font-size: 0.8rem; }
.social-empty-compact button { margin-top: 8px; }
.social-up-next-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 66px; border: 0; border-top: 1px solid var(--line); padding: 10px 2px; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.social-up-next-item:first-child { border-top: 0; }
.social-up-next-item > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.social-up-next-item strong,
.social-up-next-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-up-next-item small { color: var(--muted); }
.social-up-next-item > i { color: var(--muted); font-size: 1.25rem; font-style: normal; }

.social-header-actions { display: flex; align-items: center; gap: 10px; }
.view-toggle { display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 11px; padding: 3px; background: var(--control-bg); }
.view-toggle button { min-height: 34px; border: 0; border-radius: 8px; padding: 0 11px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 0.78rem; font-weight: 650; }
.view-toggle button.active { color: var(--ink); background: var(--card-bg); box-shadow: 0 1px 4px rgba(20, 36, 32, 0.08); }
.publish-workspace-panel { margin-bottom: 12px; padding: 0; overflow: hidden; }
.publish-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 20px; }
.publish-tabs button { position: relative; min-height: 52px; border: 0; padding: 0; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 0.84rem; font-weight: 650; white-space: nowrap; }
.publish-tabs button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: transparent; }
.publish-tabs button.active { color: var(--ink); }
.publish-tabs button.active::after { background: var(--teal); }
.publish-tabs button span { display: inline-grid; min-width: 21px; height: 21px; margin-left: 4px; place-items: center; border-radius: 999px; color: var(--muted); background: var(--control-bg); font-size: 0.7rem; }
.publish-filterbar { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 12px 16px; }
.publish-filterbar label { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 0 9px; color: var(--muted); background: var(--field-bg); font-size: 0.72rem; white-space: nowrap; }
.publish-filterbar select { width: auto; min-height: 34px; border: 0; padding: 0 22px 0 0; background-color: transparent; font-size: 0.76rem; }
.publish-filterbar.compact { margin-left: auto; padding: 0; }
.social-queue-panel { margin-top: 0; }
.publish-empty { display: grid; justify-items: center; gap: 7px; min-height: 280px; place-content: center; color: var(--muted); text-align: center; }
.publish-empty > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; color: var(--teal-dark); background: var(--brand-soft); font-size: 1.25rem; }
.publish-empty h3 { margin: 6px 0 0; color: var(--ink); font-size: 1.1rem; }
.publish-empty p { margin: 0 0 8px; }
.publish-calendar-view { padding: 0; overflow: hidden; }
.publish-calendar-heading { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line); }
.publish-calendar-heading h2 { min-width: 170px; margin: 0; text-align: center; }
.publish-calendar-heading button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--field-bg); cursor: pointer; font-size: 1.1rem; }
.publish-calendar-weekdays,
.publish-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.publish-calendar-weekdays { border-bottom: 1px solid var(--line); color: var(--muted); background: var(--subtle-bg); font-size: 0.68rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.publish-calendar-weekdays span { padding: 9px; }
.publish-calendar-day { min-height: 112px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; }
.publish-calendar-day:nth-child(7n) { border-right: 0; }
.publish-calendar-day > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--muted); font-size: 0.74rem; }
.publish-calendar-day.today > span { color: #fff; background: var(--teal); }
.publish-calendar-day button { display: block; overflow: hidden; width: 100%; margin-top: 5px; border: 0; border-radius: 7px; padding: 6px; color: var(--teal-dark); background: var(--brand-soft); cursor: pointer; font-size: 0.64rem; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.publish-calendar-day small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.62rem; }
.publish-calendar-day.muted { background: var(--subtle-bg); opacity: 0.45; }

.community-workspace { padding: 0; overflow: hidden; }
.community-toolbar { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.community-toolbar .publish-tabs { border-bottom: 0; }
.community-layout { display: grid; grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr); min-height: 460px; }
.community-post-list { border-right: 1px solid var(--line); padding: 18px; }
.community-post-list > strong { display: block; margin-bottom: 14px; }
.community-post-list .social-empty-compact { min-height: 250px; }
.community-empty { display: grid; max-width: 560px; justify-items: center; align-content: center; gap: 8px; margin: auto; padding: 42px; text-align: center; }
.community-empty > span { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; color: var(--teal-dark); background: var(--brand-soft); font-size: 1.5rem; }
.community-empty h3 { margin: 10px 0 0; font-size: 1.35rem; }
.community-empty p { margin: 0 0 12px; color: var(--muted); line-height: 1.55; }

.post-composer-dialog { width: min(1180px, calc(100vw - 30px)); max-height: calc(100vh - 30px); margin: auto; overflow: auto; border: 0; border-radius: 22px; padding: 0; color: var(--ink); background: var(--app-bg); box-shadow: 0 34px 110px rgba(15, 28, 25, 0.35); }
.post-composer-dialog::backdrop { background: rgba(18, 29, 27, 0.58); backdrop-filter: blur(4px); }
.post-composer-dialog .social-studio { border: 0; border-radius: 0; box-shadow: none; }
.composer-dialog-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -24px -24px 20px; border-bottom: 1px solid var(--line); padding: 15px 20px; background: color-mix(in srgb, var(--card-bg) 94%, transparent); backdrop-filter: blur(12px); }
.composer-dialog-header h2 { margin: 2px 0 0; font-size: 1.15rem; }
.composer-dialog-tools { display: flex; align-items: center; gap: 12px; }
.composer-dialog-tools .icon-button { font-size: 1.25rem; }
.post-composer-dialog .composer-preview-rail { top: 78px; }

.analytics-placeholder { display: grid; grid-template-columns: minmax(260px, 0.6fr) minmax(320px, 1fr); gap: 34px; align-items: end; min-height: 320px; }
.analytics-placeholder p:last-child { color: var(--muted); line-height: 1.55; }
.analytics-bars { display: flex; align-items: end; gap: 10px; height: 190px; border-bottom: 1px solid var(--line); padding: 0 12px; background: repeating-linear-gradient(to top, transparent 0 46px, var(--line) 47px); }
.analytics-bars span { flex: 1; height: var(--bar); border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--brand), var(--teal)); }

.panel-copy {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.channel-add-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #213130;
  background: var(--brand-soft);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.channel-add-button:hover {
  background: #a6e497;
  transform: translateY(-1px);
}

.social-accounts-panel .social-account-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.social-accounts-panel .social-account-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 9px 10px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.social-accounts-panel .social-account-item:hover {
  border-color: rgba(49, 94, 87, 0.35);
  box-shadow: 0 8px 22px rgba(35, 52, 50, 0.08);
  transform: translateY(-1px);
}

.social-accounts-panel .social-account-main {
  gap: 9px;
}

.social-accounts-panel .social-account-main > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.social-accounts-panel .social-account-main strong,
.social-accounts-panel .social-account-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-accounts-panel .social-account-main strong { font-size: 0.82rem; }
.social-accounts-panel .social-account-main small { color: var(--muted); font-size: 0.67rem; }
.social-accounts-panel .provider-logo { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; box-shadow: none; }
.social-accounts-panel .provider-logo svg { width: 20px; height: 20px; }

.social-account-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  border: 1px dashed var(--field-line);
  border-radius: 16px;
  padding: 18px;
  background: var(--subtle-bg);
}

.social-account-empty > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--teal-dark);
  background: var(--brand-pale);
  font-size: 1.2rem;
}

.social-account-empty strong { font-size: 0.9rem; }
.social-account-empty p { margin: 3px 0 0; color: var(--muted); font-size: 0.76rem; line-height: 1.4; }

.channel-compact-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.65rem;
  white-space: nowrap;
}

.channel-compact-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a7aea9;
}

.channel-compact-status.connected { color: #267647; }
.channel-compact-status.connected i { background: #42a667; box-shadow: 0 0 0 3px rgba(66, 166, 103, 0.12); }
.channel-compact-status.pending { color: #9a6713; }
.channel-compact-status.pending i { background: #d59a39; }
.channel-row-chevron { color: var(--muted); font-size: 1.25rem; line-height: 1; }

.channel-directory-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  margin: auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  color: var(--ink);
  background: var(--card-bg);
  box-shadow: 0 30px 90px rgba(20, 31, 29, 0.28);
}

.channel-directory-dialog::backdrop { background: rgba(24, 34, 33, 0.52); backdrop-filter: blur(4px); }
.channel-directory-shell { position: relative; padding: 28px; }
.channel-directory-shell > header { padding-right: 44px; }
.channel-directory-shell > header h2 { margin: 3px 0 6px; font-size: 1.55rem; }
.channel-directory-shell > header p:last-child { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.5; }

.channel-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.channel-directory-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--field-bg);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.channel-directory-item:not(:disabled):hover {
  border-color: rgba(49, 94, 87, 0.36);
  box-shadow: 0 9px 24px rgba(35, 52, 50, 0.08);
  transform: translateY(-1px);
}

.channel-directory-item:disabled { cursor: default; opacity: 0.72; }
.channel-directory-item > .provider-logo { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; box-shadow: none; }
.channel-directory-item > .provider-logo svg { width: 23px; height: 23px; }
.channel-directory-item > span { display: grid; min-width: 0; gap: 2px; }
.channel-directory-item strong,
.channel-directory-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-directory-item strong { font-size: 0.86rem; }
.channel-directory-item small { color: var(--muted); font-size: 0.68rem; }
.channel-directory-status { color: var(--muted); font-size: 0.68rem; font-style: normal; white-space: nowrap; }
.channel-directory-status.connected { color: #267647; }
.channel-directory-status.pending { color: #9a6713; }

.channel-settings-dialog,
.channel-disconnect-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  margin: auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  color: var(--ink);
  background: var(--card-bg);
  box-shadow: 0 30px 90px rgba(20, 31, 29, 0.28);
}
.channel-settings-dialog::backdrop,
.channel-disconnect-dialog::backdrop { background: rgba(24, 34, 33, 0.52); backdrop-filter: blur(4px); }
.channel-settings-shell,
.channel-disconnect-shell { position: relative; padding: 28px; }
.channel-settings-shell > header { padding-right: 44px; }
.channel-settings-shell > header h2,
.channel-disconnect-shell h2 { margin: 3px 0 6px; font-size: 1.55rem; }
.channel-settings-shell > header p:last-child,
.channel-disconnect-shell > p { margin: 0; color: var(--muted); line-height: 1.5; }
.channel-settings-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 14px; }
.channel-settings-summary > span { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; color: var(--muted); background: var(--subtle-bg); font-size: 0.7rem; }
.channel-settings-summary strong { overflow: hidden; color: var(--ink); font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
.channel-settings-list { display: grid; gap: 8px; }
.channel-settings-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; background: var(--field-bg); }
.channel-settings-account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.channel-settings-account .provider-logo { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; box-shadow: none; }
.channel-settings-account .provider-logo svg { width: 22px; height: 22px; }
.channel-settings-account > span { display: grid; min-width: 0; gap: 2px; }
.channel-settings-account strong,
.channel-settings-account small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-settings-account strong { font-size: 0.84rem; }
.channel-settings-account small { color: var(--muted); font-size: 0.68rem; }
.channel-settings-item-actions { display: flex; align-items: center; gap: 7px; }
.compact-button { min-height: 32px; padding: 0 11px; font-size: 0.7rem; }
.danger-text-button { border: 0; padding: 7px 4px; color: #a33d3d; background: transparent; cursor: pointer; font: inherit; font-size: 0.7rem; font-weight: 750; }
.danger-text-button:hover { color: #762626; }
.danger-text-button:disabled { cursor: not-allowed; opacity: 0.45; }
.channel-settings-empty { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; border: 1px dashed var(--field-line); border-radius: 14px; padding: 18px; background: var(--subtle-bg); }
.channel-settings-empty > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--teal-dark); background: var(--brand-pale); }
.channel-settings-empty p { margin: 3px 0 0; color: var(--muted); font-size: 0.75rem; }
.channel-settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.channel-disconnect-dialog { width: min(480px, calc(100vw - 28px)); }
.channel-disconnect-icon { display: grid; width: 42px; height: 42px; margin-bottom: 16px; place-items: center; border-radius: 13px; color: #a33d3d; background: #fff0ef; font-size: 1.2rem; font-weight: 850; }
.channel-disconnect-note { display: grid; gap: 4px; margin-top: 18px; border: 1px solid #efd7d4; border-radius: 13px; padding: 12px 14px; background: #fff8f7; }
.channel-disconnect-note strong { font-size: 0.8rem; }
.channel-disconnect-note span { color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.danger-button { min-height: 40px; border: 0; border-radius: 10px; padding: 0 16px; color: #fff; background: #a94343; cursor: pointer; font: inherit; font-weight: 750; }
.danger-button:hover { background: #8f3434; }
.danger-button:disabled { cursor: wait; opacity: 0.62; }

.channel-connect-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  margin: auto;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  color: var(--ink);
  background: var(--card-bg);
  box-shadow: 0 30px 90px rgba(20, 31, 29, 0.28);
}

.channel-connect-dialog::backdrop { background: rgba(24, 34, 33, 0.52); backdrop-filter: blur(4px); }
.channel-connect-shell { position: relative; padding: 28px; }
.channel-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--field-bg);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
}

.channel-connect-header { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 15px; padding-right: 34px; }
.channel-connect-header .provider-logo { width: 48px; height: 48px; flex-basis: 48px; border-radius: 13px; box-shadow: none; }
.channel-connect-header h2 { margin: 3px 0 5px; font-size: 1.45rem; }
.channel-connect-header p:last-child { margin: 0; color: var(--muted); line-height: 1.45; }

.channel-connection-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--subtle-bg);
}

.channel-connection-status > span { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #a7aea9; }
.channel-connection-status.connected > span { background: #42a667; box-shadow: 0 0 0 4px rgba(66, 166, 103, 0.12); }
.channel-connection-status.pending > span { background: #d59a39; }
.channel-connection-status strong { font-size: 0.86rem; }
.channel-connection-status p { margin: 3px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }

.channel-connect-steps h3 { margin: 0 0 12px; font-size: 0.92rem; }
.channel-connect-steps ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.channel-connect-steps li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.channel-connect-steps li > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--teal-dark); background: rgba(103, 178, 158, 0.16); font-size: 0.72rem; font-weight: 800; }
.channel-connect-steps li strong { font-size: 0.82rem; }
.channel-connect-steps li p { margin: 2px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.42; }

.channel-permission-note { display: grid; gap: 3px; margin-top: 20px; border-radius: 13px; padding: 12px 14px; color: #31504a; background: #eef7f3; font-size: 0.76rem; line-height: 1.45; }
.provider-connection-fields,
.provider-setup-notice { display: grid; gap: 7px; margin-top: 16px; border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px; background: var(--field-bg); }
.provider-connection-fields label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
.provider-connection-fields input { width: 100%; }
.provider-connection-fields small,
.provider-setup-notice span { color: var(--muted); font-size: var(--dashboard-small); line-height: 1.45; }
.provider-help-link { justify-self: start; margin-top: 3px; color: var(--teal-dark); font-size: var(--dashboard-small); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.provider-help-link:hover { color: var(--teal); }
.provider-setup-notice { border-color: rgba(53, 103, 168, 0.24); background: var(--product-analytics-soft); }
.provider-setup-notice strong { font-size: var(--dashboard-control); }
.linkedin-advanced-setup { margin-top: 16px; border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; background: var(--field-bg); }
.linkedin-advanced-setup[hidden] { display: none; }
.linkedin-advanced-setup summary { cursor: pointer; font-size: 0.8rem; font-weight: 750; }
.linkedin-advanced-setup > p { margin: 10px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.linkedin-advanced-setup .linkedin-company-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.linkedin-advanced-setup .linkedin-company-form button { grid-column: 1 / -1; justify-self: end; }
.channel-connect-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

.studio-autosave {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.studio-autosave > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #57b87a;
  box-shadow: 0 0 0 4px rgba(87, 184, 122, 0.13);
}

.composer-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-bg);
}

.composer-steps button {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 1px 10px;
  min-height: 74px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 14px 18px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.composer-steps button:last-child { border-right: 0; }
.composer-steps button > span { grid-row: 1 / 3; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--control-bg); font-weight: 700; }
.composer-steps button strong { color: var(--ink); font-size: 0.95rem; }
.composer-steps button small { font-size: 0.78rem; }
.composer-steps button.active { background: #eef9eb; }
.composer-steps button.active > span { color: #17382f; background: var(--brand-soft); }
.composer-steps button.complete > span { color: #fff; background: var(--teal); }

.social-compose-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.composer-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.46fr);
  gap: 16px;
  align-items: start;
}

.composer-editor,
.composer-preview-rail {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card-bg);
}

.composer-editor { padding: clamp(18px, 2.4vw, 30px); }

.composer-step-panel { display: none; }
.composer-step-panel.active { display: grid; gap: 18px; }

.step-intro { display: grid; gap: 5px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.step-intro h3 { margin: 0; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.025em; }
.step-intro p { margin: 0; color: var(--muted); line-height: 1.5; }
.step-kicker { color: var(--teal-dark); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.channel-picker-fieldset { display: grid; gap: 10px; }
.channel-picker-fieldset > legend { width: 100%; margin-bottom: 8px; }
.channel-picker-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.82rem; }
.channel-picker-tools button { border: 0; padding: 0; color: var(--teal-dark); background: transparent; cursor: pointer; font-weight: 700; }

.channel-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.channel-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px;
  background: var(--field-bg);
  cursor: pointer;
}

.channel-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.channel-option .provider-logo { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.channel-option > span { display: grid; min-width: 0; gap: 2px; }
.channel-option strong,
.channel-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-option strong { color: var(--ink); font-size: 0.82rem; }
.channel-option small { color: var(--muted); font-size: 0.67rem; font-weight: 500; }
.channel-option > i { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: transparent; font-size: 0.7rem; font-style: normal; }
.channel-option.selected { border-color: #76bb69; background: #f1faef; box-shadow: 0 0 0 2px rgba(118, 187, 105, 0.12); }
.channel-option.selected > i { border-color: var(--teal); color: #fff; background: var(--teal); }
.channel-option:has(input:disabled) { cursor: not-allowed; opacity: 0.48; }
.channel-picker-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px dashed var(--line); border-radius: 14px; padding: 15px; background: var(--subtle-bg); }
.channel-picker-empty > div { display: grid; gap: 3px; }
.channel-picker-empty span { color: var(--muted); font-size: 0.78rem; }

.composer-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -8px; }
.composer-tools button { min-height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 0 11px; color: var(--muted); background: var(--field-bg); cursor: pointer; font-size: 0.78rem; font-weight: 600; }

.attachment-dropzone { border: 1px dashed #9fb7af; border-radius: 16px; padding: 14px; background: var(--subtle-bg); }
.attachment-dropzone.is-dragging { border-color: var(--teal); background: #eef9f4; box-shadow: 0 0 0 3px rgba(68, 136, 115, 0.12); }
.attachment-dropzone > label { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; align-items: center; cursor: pointer; }
.attachment-dropzone > label > span { grid-row: 1 / 3; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: var(--teal-dark); background: var(--brand-soft); font-size: 1.25rem; }
.attachment-dropzone > label strong { color: var(--ink); }
.attachment-dropzone > label small { color: var(--muted); font-weight: 500; }
.attachment-dropzone > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.media-attachment-list { display: grid; gap: 8px; }
.media-attachment-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--card-bg); }
.media-attachment-item img,
.attachment-video-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 9px; object-fit: cover; background: var(--control-bg); }
.media-attachment-item > div { display: grid; min-width: 0; gap: 2px; }
.media-attachment-item strong,
.media-attachment-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-attachment-item small { color: var(--muted); font-size: 0.72rem; }
.media-attachment-item button { width: 30px; height: 30px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.15rem; }

.composer-preview-rail { position: sticky; top: 94px; max-height: calc(100vh - 118px); overflow: auto; padding: 16px; }
.preview-rail-heading { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.preview-rail-heading > div { display: grid; gap: 2px; }
.composer-preview-rail .social-preview-grid { grid-template-columns: 1fr; }
.composer-preview-rail .social-preview-card { border-radius: 15px; box-shadow: 0 8px 24px rgba(33, 49, 48, 0.07); }
.preview-error { color: var(--coral) !important; font-weight: 600; }
.preview-media-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; overflow: hidden; border-radius: 10px; }
.preview-media-grid.single { grid-template-columns: 1fr; }
.preview-media-grid img,
.preview-media-grid video { height: 128px; max-height: none; border: 0; border-radius: 0; }
.preview-media-grid.single img,
.preview-media-grid.single video { height: 190px; }
.preview-media-more { position: absolute; right: 10px; bottom: 10px; display: grid; min-width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fff !important; background: rgba(0, 0, 0, 0.72); font-weight: 700; }

.adapted-posts { grid-template-columns: 1fr; }
.adapted-post { padding: 16px; }
.adapted-post.has-error { border-color: #e39386; }
.adapted-post-heading > div { display: grid; gap: 2px; }
.adapted-post-heading small { color: var(--muted); font-size: 0.72rem; font-weight: 500; }
.adapted-post-heading .over-limit { color: var(--coral); }
.customize-progress { justify-self: start; border-radius: 999px; padding: 5px 9px; color: var(--teal-dark); background: rgba(103, 178, 158, 0.14); font-size: 0.72rem; font-weight: 750; }
.channel-customize-item { gap: 0; overflow: hidden; padding: 0; border-radius: 14px; }
.channel-customize-item.reviewed { border-color: rgba(66, 166, 103, 0.38); }
.channel-customize-item.active { border-color: #76bb69; box-shadow: 0 0 0 2px rgba(118, 187, 105, 0.1); }
.channel-customize-summary { grid-template-columns: auto minmax(0, 1fr) auto auto auto; width: 100%; border: 0; padding: 12px 14px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; }
.channel-customize-summary > i { color: var(--muted); font-style: normal; transition: transform 160ms ease; }
.channel-customize-item.active .channel-customize-summary > i { transform: rotate(180deg); }
.customize-review-state { border-radius: 999px; padding: 4px 7px; color: var(--muted); background: var(--control-bg); font-size: 0.67rem; font-weight: 750; }
.customize-review-state.done { color: #267647; background: #eaf7ee; }
.channel-customize-body { display: none; gap: 9px; border-top: 1px solid var(--line); padding: 14px; background: var(--field-bg); }
.channel-customize-item.active .channel-customize-body { display: grid; }
.channel-customize-body textarea { min-height: 150px; }
.channel-review-button { justify-self: end; }
.platform-rule-row { display: flex; flex-wrap: wrap; gap: 7px; }
.platform-rule-row span { border-radius: 999px; padding: 5px 8px; color: var(--muted); background: var(--control-bg); font-size: 0.72rem; }
.platform-issue { margin: 0; border-radius: 10px; padding: 8px 10px; font-size: 0.78rem; line-height: 1.4; }
.platform-issue.error { color: #8a2f24; background: #fff0ed; }
.platform-issue.note { color: var(--muted); background: var(--control-bg); }
.provider-publish-options { display: grid; gap: 10px; margin: 2px 0; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.provider-publish-options legend { padding: 0 5px; font-weight: 700; }
.provider-publish-options label { display: grid; gap: 5px; color: var(--muted); font-size: 0.78rem; }
.provider-publish-options select { width: 100%; }
.provider-option-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.provider-option-checks label, .provider-consent { display: flex; align-items: flex-start; gap: 7px; color: var(--text); }
.provider-option-checks input, .provider-consent input { width: auto; margin-top: 2px; }
.composer-empty-state { display: grid; gap: 4px; border: 1px dashed var(--line); border-radius: 14px; padding: 26px; color: var(--muted); text-align: center; }
.composer-empty-state strong { color: var(--ink); }

.schedule-option-list { display: grid; gap: 8px; }
.schedule-mode-card { display: grid; grid-template-columns: auto 1fr; gap: 9px; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--field-bg); cursor: pointer; }
.schedule-mode-card input { width: auto; margin: 3px 0 0; }
.schedule-mode-card span { display: grid; gap: 3px; }
.schedule-mode-card strong { color: var(--ink); font-size: 0.86rem; }
.schedule-mode-card small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.schedule-mode-card.selected { border-color: #76bb69; background: #f1faef; }
.schedule-suggestions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.schedule-suggestion { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 13px; color: var(--muted); background: var(--card-bg); cursor: pointer; text-align: left; }
.schedule-suggestion > span { color: var(--teal-dark); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.schedule-suggestion strong { color: var(--ink); font-size: 0.87rem; }
.schedule-suggestion small { line-height: 1.35; }
.schedule-suggestion.selected { border-color: #76bb69; background: #f1faef; box-shadow: 0 0 0 2px rgba(118, 187, 105, 0.12); }
.schedule-summary { display: grid; grid-template-columns: 1fr; gap: 9px; }
.schedule-summary > div { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--subtle-bg); }
.schedule-summary > .schedule-summary-line { display: flex; align-items: center; gap: 11px; }
.schedule-summary-line > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--teal-dark); background: var(--brand-soft); }
.schedule-summary-line > div { display: grid; gap: 2px; min-width: 0; }
.schedule-summary span,
.schedule-summary small { color: var(--muted); font-size: 0.74rem; }
.schedule-summary strong { font-size: 0.86rem; line-height: 1.35; }

.composer-footer-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.composer-draft-button { margin-right: auto; }
.provider-logo.linkedin { color: #0a66c2; background: #eef6ff; }
.provider-logo.x,
.provider-logo.threads { color: #050505; background: #f3f4f3; }
.provider-logo.facebook { color: #0866ff; background: #eef5ff; }
.provider-logo.instagram { color: #e1306c; background: #fff0f6; }
.provider-logo.pinterest { color: #bd081c; background: #fff0f2; }
.provider-logo.tiktok { color: #111; background: #f3f4f3; }
.provider-logo.youtube { color: #ff0000; background: #fff0f0; }
.provider-logo.bluesky { color: #1185fe; background: #eef7ff; }
.provider-logo.mastodon { color: #6364ff; background: #f1f0ff; }
.provider-logo.googlebusiness { color: #1a73e8; background: #eef6ff; box-shadow: inset 0 0 0 1px #d9e7fb; }
.provider-logo.telegram { color: #26a5e4; background: #eef9ff; }

@media (max-width: 1280px) {
  .composer-workspace { grid-template-columns: minmax(0, 1fr) 340px; }
  .channel-picker { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1050px) {
  .dashboard-product-grid { grid-template-columns: 1fr 1fr; }
  .social-home-metrics { grid-template-columns: 1fr 1fr; }
  .social-home-grid,
  .analytics-placeholder { grid-template-columns: 1fr; }
  .social-accounts-panel .social-account-list { grid-template-columns: 1fr 1fr; }
  .composer-workspace { grid-template-columns: 1fr; }
  .composer-preview-rail { position: static; max-height: none; }
  .composer-preview-rail .social-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .social-network-demo { min-height: 470px; }
  .network-center-card { width: 150px; min-height: 150px; padding: 16px; }
  .network-center-card small { display: none; }
  .network-logo { width: 52px; height: 52px; border-radius: 16px; }
  .network-logo .provider-logo { width: 38px; height: 38px; flex-basis: 38px; }
  .network-logo .provider-logo svg { width: 22px; height: 22px; }
  .network-logo:nth-child(11) { left: 10%; top: 25%; }
  .network-logo:nth-child(12) { right: 9%; bottom: 26%; }
  .social-home-hero,
  .social-workspace-header,
  .social-header-actions,
  .community-toolbar { align-items: stretch; flex-direction: column; }
  .social-home-metrics { grid-template-columns: 1fr 1fr; }
  .view-toggle { align-self: flex-start; }
  .community-layout { grid-template-columns: 1fr; }
  .community-post-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .publish-filterbar.compact { width: 100%; margin-left: 0; padding: 10px 16px; }
  .publish-calendar-day { min-height: 76px; padding: 4px; }
  .publish-calendar-day button { padding: 4px; font-size: 0; }
  .publish-calendar-day button::before { content: "•"; font-size: 0.75rem; }
  .composer-dialog-header { margin: -24px -24px 16px; }
  .composer-dialog-tools .studio-autosave { display: none; }
  .social-accounts-panel .social-account-list,
  .channel-directory-grid,
  .composer-preview-rail .social-preview-grid,
  .schedule-mode-grid,
  .schedule-suggestions,
  .schedule-summary { grid-template-columns: 1fr; }
  .composer-steps button { grid-template-columns: auto 1fr; padding: 11px; }
  .composer-steps button small { display: none; }
  .channel-picker { grid-template-columns: 1fr; }
  .composer-editor { padding: 16px; }
  .composer-footer-actions { align-items: stretch; flex-direction: column-reverse; }
  .composer-footer-actions button { width: 100%; }
  .composer-draft-button { margin-right: 0; }
  .channel-connect-shell { padding: 22px 18px 18px; }
  .channel-directory-shell { padding: 22px 18px 18px; }
  .channel-settings-shell,
  .channel-disconnect-shell { padding: 22px 18px 18px; }
  .channel-settings-summary { grid-template-columns: 1fr; }
  .channel-settings-item { grid-template-columns: minmax(0, 1fr) auto; }
  .channel-settings-item > .channel-compact-status { grid-column: 1 / -1; grid-row: 2; }
  .channel-settings-item-actions { grid-column: 2; grid-row: 1; }
  .channel-settings-actions { align-items: stretch; flex-direction: column-reverse; }
  .channel-settings-actions button { width: 100%; }
  .social-account-empty { grid-template-columns: auto 1fr; }
  .social-account-empty .secondary-button { grid-column: 1 / -1; width: 100%; }
  .channel-connect-header { grid-template-columns: 1fr; }
  .linkedin-advanced-setup .linkedin-company-form { grid-template-columns: 1fr; }
  .channel-connect-actions { align-items: stretch; flex-direction: column-reverse; }
  .channel-connect-actions button { width: 100%; }
}

/* Social product foundations: organizations, ideas, tags, queues, and drafts */
.organization-switcher-list { display: grid; gap: 4px; margin: 2px 0 5px; }
.organization-switcher-list:empty { display: none; }
.organization-switcher-list > button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; border: 0; border-radius: 11px; padding: 8px; color: var(--ink); background: transparent; cursor: pointer; font: inherit; text-align: left; }
.organization-switcher-list > button:hover,
.organization-switcher-list > button[aria-checked="true"] { background: var(--subtle-bg); }
.organization-switcher-list > button > span:nth-child(2) { display: grid; min-width: 0; gap: 1px; }
.organization-switcher-list strong,
.organization-switcher-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organization-switcher-list small { color: var(--muted); font-size: .68rem; }
.organization-switcher-list i { color: var(--teal-dark); font-style: normal; }
.organization-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.composer-resume-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin: 0 22px 16px; border: 1px solid rgba(70, 132, 103, .24); border-radius: 14px; padding: 11px 13px; background: var(--brand-soft); }
.composer-resume-banner > div { display: grid; gap: 2px; }
.composer-resume-banner span { color: var(--muted); font-size: .76rem; }
.studio-autosave[data-state="saving"] { color: var(--muted); }
.studio-autosave[data-state="error"] { color: var(--coral); }
.composer-tag-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.composer-tag-row select { min-height: 74px; }
.tag[style*="--tag-color"] { border-color: color-mix(in srgb, var(--tag-color) 34%, transparent); color: var(--tag-color); background: color-mix(in srgb, var(--tag-color) 9%, var(--card-bg)); }

.media-attachment-item { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.media-attachment-item > div:nth-child(2) { display: grid; gap: 4px; }
.media-attachment-item input { min-height: 32px; padding: 5px 8px; font-size: .72rem; }
.attachment-order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.attachment-order-actions button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--card-bg); cursor: pointer; }
.attachment-order-actions button:disabled { opacity: .35; cursor: default; }

.posting-schedule-setup { border-top: 1px solid var(--line); padding-top: 14px; }
.posting-schedule-setup summary { cursor: pointer; font-weight: 700; }
.posting-schedule-setup > p { color: var(--muted); font-size: .82rem; }
.posting-schedule-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 9px; margin-top: 12px; }

.create-workspace-panel { padding: 0; overflow: hidden; }
.create-workspace-panel > .publish-tabs { padding: 14px 16px 0; }
.idea-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.idea-board > .publish-empty { grid-column: 1 / -1; }
.idea-card { display: grid; align-content: space-between; gap: 24px; min-height: 190px; border: 1px solid var(--line); border-radius: 17px; padding: 16px; background: var(--subtle-bg); }
.idea-card > div:first-child { display: grid; align-content: start; gap: 9px; }
.idea-card strong { font-size: 1rem; }
.idea-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; white-space: pre-wrap; }
.idea-card > div:last-child { display: flex; justify-content: space-between; gap: 8px; }

.social-performance-list { display: grid; gap: 8px; }
.social-performance-list > article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; background: var(--subtle-bg); }
.social-performance-list > article > div { display: grid; gap: 2px; }
.social-performance-list small { color: var(--muted); }
.social-performance-list > article > span:nth-last-child(-n+2) { color: var(--muted); font-size: .78rem; }
.social-performance-list .metric-error { color: var(--coral); }

@media (max-width: 860px) {
  .idea-board { grid-template-columns: 1fr 1fr; }
  .posting-schedule-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .composer-resume-banner,
  .composer-tag-row,
  .idea-board,
  .social-performance-list > article { grid-template-columns: 1fr; }
  .media-attachment-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .attachment-order-actions { grid-column: 2; }
}

@media (max-width: 480px) {
  .dashboard-product-grid { grid-template-columns: 1fr; }
  .account-menu { position: fixed; right: 14px; bottom: 14px; left: 14px; width: auto; }
  .social-home-metrics { grid-template-columns: 1fr; }
  .publish-tabs { gap: 16px; padding: 0 14px; }
  .publish-filterbar { align-items: stretch; flex-direction: column; }
  .publish-filterbar label { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Public legal pages and marketing footer */
.site-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding: 28px clamp(24px, 6vw, 88px); background: var(--card-bg); }
.site-footer p { margin: 0; color: var(--muted); font-size: .86rem; }
.site-footer nav,
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a,
.legal-footer a { color: var(--muted); font-size: .82rem; font-weight: 650; text-decoration: none; }
.site-footer nav a:hover,
.legal-footer a:hover { color: var(--teal-dark); }
.footer-brand { gap: 8px; }
.footer-brand .brand-logo { width: 38px; height: 38px; }
.footer-brand .brand-wordmark { font-size: 1.05rem; }

.legal-page { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); font-family: "Figtree", sans-serif; }
.legal-header { position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 14px clamp(20px, 6vw, 84px); background: color-mix(in srgb, var(--card-bg) 94%, transparent); backdrop-filter: blur(14px); }
.legal-header .secondary-button { text-decoration: none; }
.legal-main { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 80px; }
.legal-title { margin-bottom: 48px; }
.legal-title h1 { margin: 8px 0 10px; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.legal-title > p:last-child { margin: 0; color: var(--muted); }
.legal-main section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-main h2 { margin: 0 0 14px; font-size: 1.22rem; }
.legal-main h3 { margin: 20px 0 7px; font-size: .98rem; }
.legal-main p { margin: 0 0 12px; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.legal-main a { color: var(--teal-dark); font-weight: 650; }
.legal-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 24px clamp(20px, 6vw, 84px); color: var(--muted); background: var(--card-bg); font-size: .82rem; }

@media (max-width: 700px) {
  .site-footer { grid-template-columns: 1fr; gap: 14px; }
  .legal-main { padding-top: 48px; }
}
/* Omni Email */
.email-workspace { --email-accent: #d65f52; --email-soft: #fff2ef; }
.email-subview { display: none; gap: 22px; }
.email-subview.active { display: grid; }
.email-workspace-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.email-workspace-header h2 { margin: 2px 0 7px; font-size: clamp(1.65rem, 2.4vw, 2.35rem); }
.email-workspace-header p:last-child { margin: 0; max-width: 700px; color: var(--muted); }
.email-header-actions { display: flex; gap: 10px; }
.email-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.email-metrics article { display: grid; gap: 7px; min-height: 130px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card-bg); box-shadow: var(--shadow); }
.email-metrics span, .email-summary-card > span { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.email-metrics strong { font-size: 2rem; }
.email-metrics small { color: var(--muted); }
.email-home-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; }
.email-home-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.email-checklist { display: grid; gap: 8px; }
.email-checklist button { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 13px; text-align: left; color: var(--ink); background: transparent; }
.email-checklist button > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--email-accent); background: var(--email-soft); font-weight: 800; }
.email-checklist button.complete > span { color: #fff; background: #2c7a62; }
.email-checklist button i { color: var(--muted); font-size: 1.25rem; }
.email-performance-chart { display: grid; min-height: 220px; align-content: end; gap: 18px; }
.email-chart-bars { display: flex; align-items: end; gap: 8px; height: 150px; padding-top: 12px; border-bottom: 1px solid var(--line); }
.email-chart-bars span { flex: 1; min-width: 5px; height: var(--email-bar); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #e98b7f, var(--email-accent)); }
.email-chart-legend { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .82rem; }
.email-chart-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--email-accent); }
.email-summary-card { display: grid; gap: 10px; min-height: 155px; align-content: start; }
.email-summary-card strong { font-size: 1.12rem; }
.email-summary-card button { justify-self: start; margin-top: auto; padding: 0; border: 0; color: var(--email-accent); background: transparent; font-weight: 700; }
.email-tabs { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-bg); }
.email-tabs button { flex: 0 0 auto; padding: 9px 13px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 700; }
.email-tabs button.active { color: var(--ink); background: var(--email-soft); box-shadow: inset 0 0 0 1px rgba(214,95,82,.16); }
.email-subscriber-panel { padding: 0; overflow: hidden; }
.email-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.email-list-toolbar label { color: var(--muted); font-size: .78rem; font-weight: 700; }
.email-list-toolbar select { margin-left: 8px; }
.email-search { display: flex; align-items: center; flex: 1; max-width: 520px; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 1.2rem !important; }
.email-search input { width: 100%; border: 0; background: transparent; box-shadow: none; }
#subscriberWorkspace { min-height: 330px; }
.email-table-wrap { overflow-x: auto; }
.email-table { width: 100%; border-collapse: collapse; }
.email-table th, .email-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.email-table th { color: var(--muted); background: color-mix(in srgb, var(--card-bg) 92%, var(--app-bg)); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.email-table td strong, .email-table td small { display: block; }
.email-table td small { margin-top: 3px; color: var(--muted); }
.email-result-count { margin: 0; padding: 13px 18px; color: var(--muted); font-size: .82rem; }
.email-status { display: inline-flex; align-items: center; width: max-content; padding: 5px 9px; border-radius: 999px; color: #5c625f; background: #eef0ed; font-size: .74rem; font-weight: 800; text-transform: capitalize; }
.email-status.active, .email-status.published, .email-status.sent { color: #17634c; background: #e6f5ef; }
.email-status.draft { color: #6b5a32; background: #f6efd8; }
.email-status.scheduled { color: #385f8c; background: #e8f0fa; }
.email-status.paused, .email-status.inactive { color: #785b2f; background: #f8edd8; }
.email-status.unsubscribed, .email-status.bounced { color: #8b4139; background: #fbe9e6; }
.email-empty { display: grid; place-items: center; min-height: 310px; padding: 38px; text-align: center; }
.email-empty > span { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 10px; border-radius: 18px; color: var(--email-accent); background: var(--email-soft); font-size: 1.4rem; }
.email-empty h3 { margin: 5px 0; }
.email-empty p { max-width: 470px; margin: 0 0 16px; color: var(--muted); }
.email-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.email-section-heading h3, .email-section-heading p { margin: 0; }
.email-section-heading p { margin-top: 4px; color: var(--muted); }
.email-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.email-card-grid > article { display: grid; gap: 8px; min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--card-bg) 95%, var(--email-soft)); }
.email-card-grid article > span { color: var(--email-accent); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.email-card-grid article p, .email-card-grid article small { margin: 0; color: var(--muted); }
.email-field-list { display: grid; }
.email-field-list article { display: grid; grid-template-columns: 1fr 1fr 100px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.email-field-list code { color: var(--email-accent); }
.email-field-list span { color: var(--muted); text-transform: capitalize; }
.email-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 20px; }
.email-stat-grid article { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; }
.email-stat-grid span { color: var(--muted); }
.email-stat-grid strong { font-size: 1.8rem; }
.email-history-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.email-history-row strong, .email-history-row small { display: block; }
.email-history-row small { margin-top: 4px; color: var(--muted); }
.email-campaign-list { min-height: 360px; }
.email-campaign-row { display: grid; grid-template-columns: 48px minmax(220px, 1fr) 160px 145px 110px; align-items: center; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.email-campaign-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--email-accent); background: var(--email-soft); }
.email-campaign-row > div > span:first-child, .email-campaign-audience span, .email-campaign-stats span { display: block; color: var(--muted); font-size: .75rem; text-transform: capitalize; }
.email-campaign-row strong { display: block; margin: 3px 0; }
.email-campaign-row p, .email-campaign-row small { display: block; margin: 0; color: var(--muted); font-size: .82rem; }
.email-automation-list { display: grid; gap: 14px; }
.email-automation-card { display: grid; grid-template-columns: minmax(250px, .8fr) 1fr auto; align-items: center; gap: 20px; }
.email-automation-card h3, .email-automation-card p { margin: 5px 0 0; }
.email-automation-card p { color: var(--muted); }
.email-automation-flow { display: flex; align-items: center; gap: 7px; }
.email-automation-flow span { padding: 9px 11px; border-radius: 10px; color: var(--email-accent); background: var(--email-soft); font-size: .76rem; font-weight: 800; }
.email-automation-flow i { color: var(--muted); }
.email-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.email-card-grid.forms { padding: 0; }
.email-form-card { min-height: 260px !important; }
.email-form-thumb { display: grid; place-items: center; min-height: 110px; padding: 16px; border-radius: 12px; text-align: center; color: #20302d; background: linear-gradient(135deg, #fce7e2, #fff8e9); }
.email-form-thumb span { margin-top: 8px; padding: 6px 10px; border-radius: 999px; color: #fff !important; background: var(--email-accent); }
.email-form-thumb.embedded { background: linear-gradient(135deg, #e8f1ff, #f3f8ff); }
.email-form-thumb.promotion { background: linear-gradient(135deg, #f4e9ff, #fff1f7); }
.email-dialog { width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--card-bg); box-shadow: 0 30px 90px rgba(20,30,28,.28); }
.email-dialog.wide { width: min(980px, calc(100vw - 28px)); }
.email-dialog::backdrop { background: rgba(21,31,29,.55); backdrop-filter: blur(4px); }
.email-dialog-form { display: grid; gap: 18px; padding: 24px; }
.email-dialog-form > header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.email-dialog-form > header h2, .email-dialog-form > header p { margin: 4px 0 0; }
.email-dialog-form > header p:last-child { color: var(--muted); }
.email-dialog-form label { display: grid; gap: 7px; font-size: .83rem; font-weight: 700; }
.email-dialog-form footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.email-dialog-form .consent-check { display: flex; grid-template-columns: none; flex-direction: row; align-items: flex-start; gap: 9px; color: var(--muted); font-weight: 500; }
.consent-check input { width: auto; margin-top: 2px; }
.email-builder-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.email-builder-steps span { padding: 9px 12px; border-radius: 10px; color: var(--muted); background: color-mix(in srgb, var(--card-bg) 90%, var(--app-bg)); font-size: .78rem; font-weight: 800; }
.email-builder-steps span.active { color: var(--email-accent); background: var(--email-soft); }
.email-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.email-type-grid label { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; }
.email-type-grid input { width: auto; grid-row: 1 / 3; }
.email-type-grid small { color: var(--muted); font-weight: 500; }
.email-type-grid label.coming-soon { opacity: .58; background: var(--soft); }
.email-content-builder { display: grid; gap: 12px; }
.email-block-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.email-block-toolbar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.email-block-toolbar button, .email-block-card header button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--card-bg); font-weight: 700; }
.email-content-builder-grid { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(340px,1.2fr); gap: 16px; align-items: start; }
.email-campaign-live-preview iframe { width: 100%; min-height: 520px; border: 0; border-radius: 10px; background: #fff; }
.email-custom-html { display: grid; gap: 7px; }
.email-block-editor { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; }
.email-block-card { display: grid; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--card-bg) 94%, var(--email-soft)); }
.email-block-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.email-block-card header > span { color: var(--email-accent); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.email-block-card header > div { display: flex; gap: 5px; }
.email-block-card header button { padding: 4px 8px; }
.email-block-card small { color: var(--muted); }
.email-campaign-live-preview { display: grid; gap: 9px; padding: 14px; border-radius: 15px; background: color-mix(in srgb, var(--app-bg) 82%, var(--email-soft)); }
.email-campaign-live-preview > span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
#emailCampaignPreview { min-height: 360px; max-height: 520px; overflow-y: auto; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(34,47,44,.09); }
.email-plain-source { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.email-workflow-preview { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border: 1px dashed color-mix(in srgb, var(--email-accent) 45%, var(--line)); border-radius: 16px; background: var(--email-soft); }
.email-workflow-preview > div { display: grid; gap: 5px; min-width: 130px; padding: 12px; border-radius: 12px; background: var(--card-bg); }
.email-workflow-preview span { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.email-workflow-preview label { display: flex; align-items: center; gap: 6px; }
.email-workflow-preview input[type="number"] { width: 65px; }
.email-form-builder-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr); gap: 20px; }
.email-form-controls { display: grid; gap: 13px; }
.email-form-live-preview { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--app-bg) 82%, var(--email-soft)); }
.email-form-live-preview > span { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.email-form-live-preview > div { display: grid; gap: 12px; place-items: center; min-height: 330px; padding: 34px; border-radius: 18px; text-align: center; background: #fff; box-shadow: 0 12px 35px rgba(34,47,44,.1); }
.email-form-live-preview strong { font-size: 1.45rem; }
.email-form-live-preview p, .email-form-live-preview small { margin: 0; color: #6c7774; }
.email-form-live-preview input { width: min(100%, 320px); }
.email-form-live-preview button { width: min(100%, 320px); padding: 11px; border: 0; border-radius: 10px; color: #fff; background: var(--email-accent); font-weight: 800; }
.email-settings-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 18px; align-items: start; }
.email-settings-form, .email-domain-form, .email-domain-guide { display: grid; gap: 15px; }
.email-settings-form .panel-heading, .email-domain-form .panel-heading { margin: -4px 0 2px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.email-settings-form .compact-heading { margin-top: 10px; }
.email-settings-form label > small { color: var(--muted); font-weight: 500; }
.email-settings-side { display: grid; gap: 14px; }
.email-domain-guide h2, .email-domain-guide p { margin: 0; }
.email-domain-guide ol, .email-domain-card ol { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: var(--muted); }
.email-domain-guide li::marker { color: var(--email-accent); font-weight: 800; }
.email-domain-list { display: grid; gap: 12px; }
.email-domain-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.email-domain-card h3, .email-domain-card p { margin: 7px 0 0; }
.email-domain-card p { color: var(--muted); }
.email-domain-card li.complete { color: #17634c; text-decoration: line-through; }
.email-dns-records { display: grid; gap: 8px; margin: 14px 0; }
.email-dns-records div { display: grid; gap: 4px; padding: 9px; border-radius: 9px; background: var(--soft); }
.email-dns-records code { overflow-wrap: anywhere; user-select: all; font-size: 11px; }
.compact-empty { min-height: 220px; }
.email-status.waiting_provider { color: #795626; background: #fff0d5; }
.email-status.verified, .email-status.queued { color: #17634c; background: #e6f5ef; }

.icon-admin { color: #6d4f0d; background: #fff1bf; }
.admin-workspace { gap: 18px; }
.admin-header { align-items: center; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-metric-grid article { display: grid; gap: 6px; min-height: 120px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--card-bg); box-shadow: var(--shadow); }
.admin-metric-grid span, .admin-metric-grid small { color: var(--muted); }
.admin-metric-grid span { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-metric-grid strong { font-size: 2rem; font-weight: 600; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 18px; }
.admin-invite-panel, .admin-usage-panel { min-height: 250px; }
.admin-invite-panel > p { color: var(--muted); line-height: 1.55; }
.admin-invite-form { align-items: end; }
.admin-invite-form label { flex: 1; }
.admin-usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.admin-usage-grid div { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: color-mix(in srgb, var(--card-bg) 92%, var(--app-bg)); }
.admin-usage-grid span { color: var(--muted); font-size: .78rem; }
.admin-usage-grid strong { font-size: 1.25rem; }
.admin-table-panel { padding: 0; overflow: hidden; }
.admin-table-panel .panel-heading { padding: 20px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.admin-table th { color: var(--muted); background: color-mix(in srgb, var(--card-bg) 92%, var(--app-bg)); font-size: .73rem; letter-spacing: .04em; text-transform: uppercase; }
.admin-table td:first-child { min-width: 230px; }
.admin-row-actions { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; }
.email-status.waiting, .email-status.pending, .email-status.invited { color: #765415; background: #fff1c9; }
.email-status.joined { color: #17634c; background: #e6f5ef; }
.email-status.archived { color: #656b68; background: #ecefed; }

@media (max-width: 1000px) {
  .email-metrics, .email-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-home-grid, .email-home-grid.three { grid-template-columns: 1fr; }
  .email-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .email-campaign-row { grid-template-columns: 44px 1fr auto; }
  .email-campaign-audience, .email-campaign-stats { display: none; }
  .email-automation-card { grid-template-columns: 1fr; }
  .email-form-builder-grid { grid-template-columns: 1fr; }
  .email-content-builder-grid { grid-template-columns: 1fr; }
  .email-settings-grid { grid-template-columns: 1fr; }
  .admin-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .email-workspace-header, .email-list-toolbar { align-items: stretch; flex-direction: column; }
  .email-header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .email-metrics, .email-stat-grid, .email-card-grid { grid-template-columns: 1fr; }
  .email-type-grid { grid-template-columns: 1fr 1fr; }
  .email-workflow-preview { align-items: stretch; flex-direction: column; }
  .email-workflow-preview > i { transform: rotate(90deg); text-align: center; }
  .email-dialog-form .form-row { grid-template-columns: 1fr; }
  .email-domain-card { grid-template-columns: 1fr; }
  .admin-metric-grid, .admin-usage-grid { grid-template-columns: 1fr; }
  .admin-invite-form { align-items: stretch; }
}
