:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e2dc;
  --panel: #ffffff;
  --canvas: #f5f7f4;
  --soft: #eef7ef;
  --accent: #0f7a4f;
  --accent-strong: #095c3a;
  --coral: #b7791f;
  --gold: #d6a83d;
  --blue: #25635a;
  --green: #16a064;
  --night: #0b1220;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button {
  cursor: pointer;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.website-shell {
  color: #f8fafc;
  background: var(--night);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 18, 32, 0.94);
}

.site-nav,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.website-shell .brand strong {
  color: #fff;
}

.website-shell .brand span,
.website-shell .eyebrow {
  color: #a7f3d0;
}

.site-nav .text-button {
  color: #d1fae5;
}

.site-nav a,
.ghost-link {
  color: #d1fae5;
  text-decoration: none;
  font-weight: 850;
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(15, 122, 79, 0.22), rgba(214, 168, 61, 0.12)),
    var(--night);
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
}

.hero-copy p {
  max-width: 680px;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-product {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(15, 122, 79, 0.24), rgba(214, 168, 61, 0.2)),
    #101827;
  box-shadow: var(--shadow);
}

.hero-metric,
.hero-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metric strong {
  display: block;
  color: #34d399;
  font-size: 2.6rem;
}

.hero-metric span,
.hero-card span,
.hero-card p {
  color: var(--muted);
  color: #cbd5e1;
}

.hero-card strong {
  display: block;
  margin: 6px 0;
  font-size: 1.2rem;
}

.gold-card {
  border-color: rgba(214, 168, 61, 0.5);
  background: rgba(214, 168, 61, 0.1);
}

.site-band {
  padding: 42px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #f8faf7;
  color: var(--ink);
}

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

.site-feature-grid article,
.site-steps span {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.site-feature-grid strong,
.site-feature-grid span {
  display: block;
}

.site-feature-grid span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.site-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.site-steps span {
  color: var(--accent);
  font-weight: 900;
  text-align: center;
}

.login-screen {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 20;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(11, 18, 32, 0.78), rgba(15, 122, 79, 0.34)),
    rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(10px);
}

.login-panel {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(29, 42, 56, 0.16);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.login-brand {
  padding-bottom: 8px;
}

.login-form,
.signup-form,
.recovery-form {
  display: grid;
  gap: 12px;
}

.signup-form {
  gap: 14px;
}

.app-dialog {
  width: min(840px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(22, 32, 42, 0.48);
}

.app-dialog form {
  padding: 18px;
  background: #fff;
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dialog-header h2,
.dialog-header p {
  margin-bottom: 0;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fff;
  font-size: 1.25rem;
}

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

.wide-field {
  grid-column: span 2;
}

.compact-heading {
  margin-bottom: 4px;
}

.compact-heading h2 {
  font-size: 1rem;
}

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

.plan-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.plan-card.active,
.plan-card:hover {
  border-color: #8bb6af;
  background: #f1f8f6;
}

.plan-card strong,
.plan-card span,
.plan-card small {
  display: block;
}

.plan-card span {
  font-size: 1.25rem;
  font-weight: 900;
}

.plan-card small {
  color: var(--muted);
  line-height: 1.35;
}

.login-panel h1 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #c2413b;
  font-size: 0.9rem;
}

.recovery-tabs {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}

.text-button {
  min-height: 30px;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-weight: 850;
}

.recovery-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.eyebrow,
.section-title,
label span {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.workspace-submenu {
  display: grid;
  gap: 4px;
  margin: -2px 0 6px 38px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.workspace-subitem {
  min-height: 31px;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 800;
}

.workspace-subitem.active,
.workspace-subitem:hover {
  color: var(--accent);
  background: #edf5f2;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  color: #344054;
  background: transparent;
  text-align: left;
  font-weight: 760;
}

.nav-item.active,
.nav-item:hover {
  color: var(--ink);
  background: #e6efec;
}

.nav-icon {
  display: grid;
  width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  color: var(--accent);
  background: #f1f6f4;
  font-size: 0.72rem;
  font-weight: 900;
}

.run-card,
.dashboard-card,
.settings-card,
.workflow-panel,
.client-manager,
.user-manager,
.profile-card,
.launch-card,
.platform-card,
.client-link,
.client-row,
.user-row,
.chart-panel,
.recommendation-panel,
.pipeline,
.product-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.run-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

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

.main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 42px) 42px;
}

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

.eyebrow {
  margin: 0 0 5px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(1.95rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

#pageHeadline:empty {
  display: none;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.profile-button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.profile-button span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.profile-button strong {
  overflow: hidden;
  max-width: 94px;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button,
.ghost-button,
.mini-button {
  min-height: 39px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.mini-button {
  display: grid;
  width: 30px;
  min-height: 30px;
  padding: 0;
  place-items: center;
  color: #fff;
  background: var(--accent);
}

.summary-strip {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 1fr 1.25fr;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.summary-strip div {
  min-width: 0;
  padding: 16px;
  background: var(--panel);
}

.summary-strip span {
  display: block;
  overflow: hidden;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-strip p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.split-layout,
.campaign-grid,
.analytics-layout,
.client-portal-layout,
.user-management-layout,
.settings-layout,
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

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

.wide-card {
  grid-column: span 2;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 16px;
  align-items: start;
}

.product-form,
.pipeline,
.dashboard-card,
.settings-card,
.workflow-panel,
.client-manager,
.user-manager,
.profile-card,
.launch-card,
.chart-panel,
.recommendation-panel {
  padding: 18px;
}

.dashboard-card {
  min-height: 260px;
}

.settings-card {
  display: grid;
  gap: 14px;
}

.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.settings-card-header h3 {
  margin: 0;
}

.settings-form,
.billing-actions {
  display: grid;
  gap: 12px;
}

.billing-actions {
  grid-template-columns: repeat(2, max-content);
  align-items: center;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #f0d8a8;
  border-radius: 999px;
  color: #8a5b00;
  background: #fff7df;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-badge.connected {
  border-color: #badbcc;
  color: #166534;
  background: #ecfdf3;
}

.settings-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.role-settings,
.feature-map,
.permission-grid {
  display: grid;
  gap: 10px;
}

.settings-role,
.feature-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.settings-role h3 {
  margin: 0;
}

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

.permission-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.permission-toggle input {
  width: auto;
  min-height: auto;
}

.feature-row span {
  color: var(--muted);
}

.creative-workflow {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.workspace-stage {
  display: none;
}

.workspace-stage.active {
  display: grid;
  gap: 16px;
}

.workflow-steps span {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.avatar-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.avatar-card.active,
.avatar-card:hover {
  border-color: #8bb6af;
  background: #f1f8f6;
}

.avatar-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.workflow-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.pie-wrap {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.pie-chart {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.5);
}

.pie-legend,
.stack-list,
.table-lite {
  display: grid;
  gap: 10px;
}

.pie-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.pie-legend i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.stack-item,
.table-row {
  display: grid;
  gap: 6px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.stack-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.stack-item .mini-track {
  grid-column: 1 / -1;
}

.mini-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf0;
}

.mini-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.table-row {
  grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(80px, auto));
  align-items: center;
}

.table-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.profile-card h3,
.profile-card p {
  margin: 0;
}

.profile-card p {
  color: var(--muted);
}

.profile-avatar {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
}

.profile-details,
.access-summary {
  display: grid;
  gap: 8px;
}

.profile-logout-button {
  width: 100%;
}

.profile-detail,
.access-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.profile-detail strong,
.access-item strong {
  display: block;
  margin-bottom: 3px;
}

.profile-detail span,
.access-item span {
  color: var(--muted);
}

.client-switcher {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.client-search input {
  min-height: 34px;
}

.compact-empty {
  padding: 10px;
  font-size: 0.82rem;
}

.switcher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.client-list,
.client-overview {
  display: grid;
  gap: 8px;
}

.profile-password-form {
  display: grid;
  gap: 10px;
}

.client-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 10px;
  width: 100%;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.client-link.active,
.client-link:hover,
.client-row.active {
  border-color: #98b9b2;
  background: #f2f8f6;
}

.client-link span {
  display: grid;
  grid-row: span 2;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.client-link strong,
.client-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-link small {
  color: var(--muted);
}

.client-form {
  display: grid;
}

.user-form {
  display: grid;
}

.client-row,
.user-row {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.client-row strong,
.user-row strong {
  display: block;
  margin-bottom: 3px;
}

.client-row p,
.user-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.user-directory {
  display: grid;
  gap: 8px;
}

.client-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.client-metrics span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf2f5;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 850;
}

.section-heading {
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}

input,
select {
  padding: 0 11px;
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #475467;
  background: #f6f8fa;
}

textarea {
  resize: vertical;
  padding: 10px 11px;
  line-height: 1.45;
}

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

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

.pipeline-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.pipeline-list span {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
}

.pipeline-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.signal-list strong,
.signal-list span {
  display: block;
}

.signal-list span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

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

.creative-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 3px 8px rgba(29, 42, 56, 0.04);
}

.creative-visual {
  position: relative;
  isolation: isolate;
  min-height: 220px;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--platform, var(--accent)) 82%, #111 18%), rgba(201, 95, 80, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cpath fill='none' stroke='rgba(255,255,255,.22)' stroke-width='2' d='M14 180 C64 90 110 220 164 94 S230 52 238 116'/%3E%3Ccircle cx='74' cy='66' r='38' fill='rgba(255,255,255,.14)'/%3E%3C/svg%3E");
  background-size: cover;
}

.creative-visual img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creative-visual::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
  content: "";
}

.creative-visual.video {
  background:
    linear-gradient(135deg, rgba(22, 32, 42, 0.92), color-mix(in srgb, var(--platform, var(--blue)) 82%, #fff 18%)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Crect x='32' y='38' width='176' height='164' rx='20' fill='rgba(255,255,255,.14)'/%3E%3Cpath d='M101 88v64l56-32z' fill='rgba(255,255,255,.55)'/%3E%3C/svg%3E");
}

.creative-visual.avatar {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--platform, var(--green)) 78%, #111 22%), rgba(185, 135, 22, 0.86)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='240' viewBox='0 0 260 240'%3E%3Ccircle cx='130' cy='72' r='42' fill='rgba(255,255,255,.35)'/%3E%3Cpath d='M58 214c16-54 128-54 144 0' fill='rgba(255,255,255,.25)'/%3E%3C/svg%3E");
}

.creative-label {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.78rem;
  font-weight: 900;
}

.creative-visual h3 {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.05;
}

.creative-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.creative-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.script-box {
  padding: 11px;
  border-radius: 7px;
  background: #f4f7f8;
  color: #394552;
  font-size: 0.88rem;
  line-height: 1.45;
}

.metric-row,
.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.metric,
.chip {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf2f5;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 850;
}

.metric.good {
  color: var(--green);
  background: #e8f4ee;
}

.metric.watch {
  color: var(--gold);
  background: #fff7df;
}

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

.campaign-menu {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.campaign-menu-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.campaign-menu-item.active,
.campaign-menu-item:hover {
  border-color: #8bb6af;
  background: #f1f8f6;
}

.campaign-menu-item span,
.campaign-menu-item small {
  color: var(--muted);
  line-height: 1.35;
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.platform-card {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.platform-card.active,
.platform-card:hover {
  border-color: color-mix(in srgb, var(--platform) 70%, #ffffff 30%);
  box-shadow: 0 10px 24px rgba(29, 42, 56, 0.1);
}

.platform-card span {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--platform);
  font-size: 0.76rem;
  font-weight: 900;
}

.platform-card strong {
  display: block;
  font-size: 0.95rem;
}

.platform-card small {
  color: var(--muted);
  line-height: 1.35;
}

.platform-specs {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 8px;
  background: #f6f8fa;
}

.platform-specs strong {
  font-size: 0.9rem;
}

.platform-specs p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.launch-item,
.recommendation {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.launch-item strong,
.recommendation strong {
  display: block;
  margin-bottom: 4px;
}

.launch-item p,
.recommendation p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.scheduler-controls {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.launch-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.calendar-day {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.calendar-day > strong {
  color: var(--accent);
  font-size: 0.82rem;
}

.picker-day {
  cursor: pointer;
  text-align: left;
}

.picker-day.active {
  border-color: #8bb6af;
  background: #f1f8f6;
}

.calendar-day p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.schedule-slot {
  display: grid;
  gap: 2px;
  width: 100%;
  margin-bottom: 6px;
  padding: 7px;
  border: 1px solid #c8d8d4;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.schedule-slot span {
  font-weight: 900;
}

.schedule-slot small {
  color: var(--muted);
  line-height: 1.25;
}

.boost-audiences {
  display: grid;
  gap: 8px;
}

.boost-budget,
.boost-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfc;
}

.boost-budget {
  justify-content: space-between;
}

.boost-budget span,
.boost-option small {
  color: var(--muted);
}

.boost-option input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.boost-option strong,
.boost-option small {
  display: block;
}

.cta-library {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf0;
}

.cta-library h3 {
  margin-bottom: 0;
}

.cta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-chip {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid rgba(195, 154, 47, 0.5);
  border-radius: 999px;
  color: var(--accent);
  background: #fffaf0;
  font-size: 0.82rem;
  font-weight: 850;
}

.twilio-panel {
  display: grid;
  gap: 11px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

/* Professional portal surface */
.app {
  grid-template-columns: 284px minmax(0, 1fr);
  background: #f8fafc;
}

.app .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  gap: 22px;
  padding: 22px 16px;
  border-right: 0;
  color: #e5edf7;
  background:
    linear-gradient(180deg, rgba(15, 122, 79, 0.18), rgba(15, 23, 42, 0) 36%),
    #0f172a;
}

.app .sidebar .brand strong {
  color: #fff;
}

.app .sidebar .brand span,
.app .sidebar .section-title,
.app .sidebar label span {
  color: #94a3b8;
}

.app .brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 10px 24px rgba(15, 122, 79, 0.25);
}

.app .nav-list {
  gap: 6px;
}

.app .nav-item,
.app .workspace-subitem {
  color: #cbd5e1;
}

.app .nav-item {
  min-height: 44px;
  padding: 10px 11px;
}

.app .nav-item.active,
.app .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.app .nav-icon {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.14);
}

.app .workspace-submenu {
  margin-left: 42px;
  border-left-color: rgba(148, 163, 184, 0.24);
}

.app .workspace-subitem.active,
.app .workspace-subitem:hover {
  color: #fff;
  background: rgba(16, 185, 129, 0.14);
}

.app .run-card,
.app .client-switcher {
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.app .run-card p {
  color: #aab8c8;
}

.app .client-search input {
  color: #fff;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

.main {
  padding: 24px clamp(20px, 3vw, 40px) 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  align-items: center;
  margin: -24px clamp(-40px, -3vw, -20px) 22px;
  padding: 18px clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(14px);
}

.topbar .eyebrow {
  margin-bottom: 0;
}

.profile-button {
  grid-template-columns: 34px minmax(0, auto);
  align-items: center;
  justify-items: start;
  min-width: 132px;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.profile-button strong {
  max-width: 120px;
  font-size: 0.82rem;
}

.summary-strip {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.summary-strip div {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.summary-strip div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.summary-strip span {
  color: #0f172a;
}

.section-heading {
  margin-bottom: 16px;
}

.panel.active {
  animation: panel-in 160ms ease-out;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-form,
.pipeline,
.dashboard-card,
.settings-card,
.workflow-panel,
.client-manager,
.user-manager,
.profile-card,
.launch-card,
.chart-panel,
.recommendation-panel,
.creative-card {
  border-color: #e3e8ef;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.dashboard-card,
.settings-card,
.workflow-panel,
.client-manager,
.user-manager,
.profile-card,
.launch-card,
.chart-panel,
.recommendation-panel {
  padding: 20px;
}

.split-layout,
.campaign-grid,
.analytics-layout,
.client-portal-layout,
.user-management-layout,
.settings-layout,
.dashboard-grid,
.profile-grid,
.workflow-grid {
  gap: 18px;
}

input,
select,
textarea {
  border-color: #d8e0e7;
  background: #fff;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 122, 79, 0.58);
  box-shadow: 0 0 0 3px rgba(15, 122, 79, 0.12);
}

.primary-button {
  box-shadow: 0 10px 22px rgba(15, 122, 79, 0.2);
}

.ghost-button {
  border-color: #d8e0e7;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.workflow-steps span,
.pipeline-list li,
.settings-role,
.feature-row,
.stack-item,
.table-row,
.launch-item,
.recommendation,
.signal-list div,
.twilio-panel,
.cta-library {
  border-color: #e3e8ef;
  background: #f8fafc;
}

.workflow-steps span {
  color: #475569;
}

.platform-card,
.avatar-card,
.campaign-menu-item,
.plan-card {
  border-color: #e3e8ef;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.platform-card.active,
.platform-card:hover,
.avatar-card.active,
.avatar-card:hover,
.campaign-menu-item.active,
.campaign-menu-item:hover,
.plan-card.active,
.plan-card:hover {
  border-color: rgba(15, 122, 79, 0.45);
  background: #f0fdf4;
  box-shadow: 0 12px 28px rgba(15, 122, 79, 0.1);
}

.creative-grid {
  align-items: stretch;
}

.creative-card {
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}

.creative-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.bar-fill,
.mini-track i {
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.login-panel,
.app-dialog {
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.bar-chart {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(120px, 1fr) 58px;
  gap: 10px;
  align-items: center;
}

.bar-label {
  overflow: hidden;
  color: #344054;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf0;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.bar-value {
  color: var(--muted);
  font-weight: 850;
  text-align: right;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #b7c5cf;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfd;
  text-align: center;
}

.campaign-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
}

.launch-card {
  display: grid;
  gap: 16px;
}

.launch-card h3 {
  margin: 0;
}

.launch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.launch-card-header .eyebrow {
  margin: 0 0 4px;
}

.campaign-select-field {
  display: grid;
  gap: 7px;
}

.campaign-select-field select {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 850;
}

.campaign-summary {
  display: grid;
  gap: 10px;
}

.campaign-summary-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 122, 79, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f8f5 100%);
}

.campaign-summary-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--platform);
  font-size: 0.78rem;
  font-weight: 950;
}

.campaign-summary-card strong,
.campaign-summary-card span {
  display: block;
}

.campaign-summary-card span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.campaign-summary-details {
  display: grid;
  gap: 8px;
}

.campaign-summary-details div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #f8fafc;
}

.campaign-summary-details span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.campaign-summary-details strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.launch-channel-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
}

.launch-channel-strip .platform-card {
  min-height: 74px;
  align-content: center;
  justify-items: start;
  padding: 10px;
}

.launch-channel-strip .platform-card span {
  width: 30px;
  height: 26px;
}

.launch-channel-strip .platform-card strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.launch-channel-strip .platform-card small {
  display: none;
}

.launch-card .twilio-panel,
.launch-card .platform-specs {
  margin-bottom: 0;
}

.launch-calendar > .empty-state {
  grid-column: 1 / -1;
}

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

  .app .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 14px;
  }

  .app .workspace-submenu {
    display: flex;
    margin: 0;
    padding-left: 0;
    border-left: 0;
  }

  .nav-list {
    display: flex;
  }

  .nav-item {
    white-space: nowrap;
  }

  .run-card {
    display: none;
  }

  .topbar {
    margin: 0 0 22px;
  }

  .site-hero,
  .site-feature-grid,
  .site-steps,
  .split-layout,
  .campaign-grid,
  .analytics-layout,
  .client-portal-layout,
  .user-management-layout,
  .settings-layout,
  .dashboard-grid,
  .profile-grid,
  .workflow-grid,
  .scheduler-controls,
  .launch-calendar {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }

  .creative-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .top-actions,
  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-strip,
  .creative-grid,
  .form-grid,
  .notification-grid,
  .billing-actions,
  .signup-grid,
  .platform-cards,
  .permission-grid,
  .workflow-steps,
  .avatar-options,
  .plan-cards,
  .pie-wrap,
  .table-row,
  .campaign-menu-item {
    grid-template-columns: 1fr;
  }

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