:root {
  --page: #050607;
  --panel: #111517;
  --panel-2: #15191c;
  --line: #242a2e;
  --line-soft: #1a1e21;
  --text: #f5f7f4;
  --muted: #a9bcb0;
  --green: #c1ff3d;
  --green-soft: #243417;
  --sidebar: 282px;
}

.legal-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  background: var(--panel);
}

.legal-back:hover {
  color: var(--accent);
  border-color: rgba(186, 255, 38, 0.45);
}

.legal-card {
  padding: 32px;
}

.legal-card h1 {
  margin: 8px 0 18px;
  font-size: clamp(32px, 5vw, 52px);
}

.legal-card h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.legal-card p {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a,
button,
input {
  font: inherit;
}

a[aria-disabled="true"],
button:disabled,
input:disabled {
  cursor: default;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: #07090a;
  transition: width 120ms ease;
}

.sidebar-resizer {
  position: absolute;
  top: 0;
  right: -6px;
  z-index: 30;
  width: 12px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: col-resize;
  padding: 0;
}

.sidebar-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--line-soft);
  transition: background 120ms ease, box-shadow 120ms ease;
}

.sidebar-resizer:hover::after,
.sidebar-resizer:focus-visible::after,
.sidebar-resizing .sidebar-resizer::after {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(193, 255, 61, 0.12);
}

.sidebar-resizer:focus-visible {
  outline: 0;
}

.sidebar-resizing {
  cursor: col-resize;
  user-select: none;
}

.sidebar-resizing .sidebar {
  transition: none;
}

.brand {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 21px;
  font-weight: 800;
}

.brand strong {
  color: var(--green);
}

.menu {
  padding: 40px 18px 0;
}

.compact-menu {
  padding-top: 24px;
}

.menu-label {
  margin: 34px 12px 14px;
  color: #97b785;
  font-size: 11px;
  text-transform: uppercase;
}

.menu-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  color: #bfd3c5;
  padding: 0 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.menu-item.active {
  color: white;
  background: #181d21;
  box-shadow: inset 2px 0 0 var(--green);
}

.submenu-label {
  margin: 14px 12px 7px;
  color: #79906f;
  font-size: 10px;
  text-transform: uppercase;
}

.submenu-item {
  display: flex;
  min-height: 30px;
  align-items: center;
  color: #a8c0b0;
  padding: 0 14px 0 45px;
  text-decoration: none;
  font-size: 13px;
}

.submenu-item.sub-active {
  color: white;
  background: #171b1f;
}

.icon {
  width: 18px;
  color: #b8c7bd;
  text-align: center;
}

.chevron {
  margin-left: auto;
  color: #c9d1c9;
  font-size: 22px;
}

.account {
  margin-top: auto;
  display: grid;
  min-height: 76px;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding: 12px 24px;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #0d1605;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
}

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

.account strong {
  max-width: 170px;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account span {
  color: #b8d2b2;
  font-size: 11px;
}

.account-arrow {
  color: #aab5af;
}

.app-shell {
  min-height: 100vh;
  margin-left: var(--sidebar);
  transition: margin-left 120ms ease;
}

.sidebar-collapsed .brand {
  justify-content: center;
  padding: 0;
}

.sidebar-collapsed .brand span {
  display: none;
}

.sidebar-collapsed .menu {
  display: grid;
  justify-items: center;
  padding: 28px 8px 0;
}

.sidebar-collapsed .menu-label,
.sidebar-collapsed .submenu-label,
.sidebar-collapsed .submenu-item,
.sidebar-collapsed .menu-item span:not(.icon):not(.chevron),
.sidebar-collapsed .menu-item .chevron,
.sidebar-collapsed .account div:not(.avatar),
.sidebar-collapsed .account-arrow {
  display: none;
}

.sidebar-collapsed .menu-item {
  width: 42px;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.sidebar-collapsed .menu-item.active {
  box-shadow: inset 2px 0 0 var(--green);
}

.sidebar-collapsed .icon {
  width: auto;
}

.sidebar-collapsed .account {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 12px 8px;
}

.topbar {
  display: flex;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 0 14px 0 28px;
}

.hello {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 16px;
}

.panel-toggle {
  color: #b8c5be;
  font-size: 20px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search {
  display: flex;
  width: min(318px, 40vw);
  height: 40px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111315;
  padding: 0 13px;
  color: #aab5ad;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #bfd0c4;
  background: transparent;
  font-weight: 600;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #b7c3bd;
  background: #15191b;
}

.content {
  padding: 30px 14px 82px 26px;
}

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

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.15;
}

.headline-row p {
  margin-top: 6px;
  color: #a8c7b0;
  font-size: 15px;
}

.creation-pill {
  margin-right: 2px;
  border: 1px solid #3b541c;
  border-radius: 999px;
  color: var(--green);
  background: #1d290f;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

.tool-card,
.activity-panel,
.steps-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.tool-card {
  min-height: 222px;
  padding: 22px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.tool-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #3b541f;
  border-radius: 14px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 25px;
  font-weight: 800;
}

.metric {
  text-align: right;
}

.metric strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}

.metric span {
  margin-top: 6px;
  display: block;
  color: #c3d8ca;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.tool-card h2 {
  font-size: 18px;
  line-height: 1.25;
}

.tool-card p {
  min-height: 48px;
  margin-top: 10px;
  color: #a9c5b4;
  font-size: 13px;
  line-height: 1.55;
}

.tool-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 500px;
  gap: 22px;
  margin-top: 30px;
}

.activity-panel,
.steps-panel {
  min-height: 398px;
  padding: 24px;
}

.activity-panel h2,
.steps-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.activity-panel h2 span,
.steps-panel h2 span {
  color: var(--green);
}

.activity-panel ul,
.steps-panel ol {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.activity-panel li {
  display: grid;
  min-height: 53px;
  grid-template-columns: 14px 1fr 58px;
  align-items: center;
  gap: 10px;
  color: #f5fbf4;
  font-size: 14px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #87ad4b;
}

.dot.bright {
  background: var(--green);
}

.dot.muted {
  background: #acb6b0;
}

time {
  color: #a9c9b5;
  text-align: right;
}

.steps-panel ol {
  display: grid;
  gap: 10px;
}

.steps-panel li {
  display: grid;
  min-height: 50px;
  grid-template-columns: 28px 1fr 18px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  padding: 0 14px;
  font-size: 13px;
}

.steps-panel li span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #436227;
  border-radius: 50%;
  color: var(--green);
  background: #223117;
  font-size: 12px;
  font-weight: 800;
}

.steps-panel li strong {
  overflow-wrap: anywhere;
}

.steps-panel li em {
  color: #aab5ad;
  font-style: normal;
  font-size: 20px;
}

.tracker-content {
  display: grid;
  gap: 22px;
}

.tracker-loading {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 24px;
  color: #b9ceb9;
  font-weight: 800;
}

.tracker-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 26px;
}

.tracker-hero-side {
  display: grid;
  width: min(580px, 100%);
  gap: 10px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tracker-hero h1 {
  font-size: 34px;
}

.tracker-hero p {
  max-width: 760px;
  margin-top: 8px;
  color: #b3d0bd;
  font-size: 15px;
  line-height: 1.5;
}

.tracker-meta {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) repeat(2, minmax(110px, 0.8fr));
  gap: 10px;
}

.tracker-meta span {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 12px;
  color: #f5f7f4;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.tracker-meta .product-meta {
  min-width: 0;
  white-space: normal;
}

.tracker-meta span em {
  display: -webkit-box;
  overflow: hidden;
  color: #f5f7f4;
  font-style: normal;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tracker-meta b {
  color: #9fb9a9;
  font-size: 11px;
  text-transform: uppercase;
}

.tracker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mock-badge {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(234, 179, 8, 0.32);
  border-radius: 999px;
  color: #f6d568;
  background: rgba(234, 179, 8, 0.1);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.danger-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  color: #ffd2d2;
  background: #311718;
  padding: 0 16px;
  font-weight: 800;
  white-space: nowrap;
}

.danger-button:disabled {
  border-color: #2b2424;
  color: #867171;
  background: #1b1718;
  cursor: not-allowed;
}

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

.tracker-card,
.funnel-step,
.tracker-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.tracker-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  align-content: start;
  border-left: 3px solid #334044;
  padding: 16px;
}

.tracker-card.success {
  border-left-color: #8ddf74;
}

.tracker-card.warning {
  border-left-color: #eab308;
}

.tracker-card.danger {
  border-left-color: #ef4444;
}

.tracker-card span {
  color: #aac3b4;
  font-size: 12px;
  font-weight: 800;
}

.tracker-card strong {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1;
  white-space: nowrap;
}

.tracker-card em {
  color: #8fb49d;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.budget-planner {
  border-left: 3px solid #526068;
}

.budget-planner.success {
  border-left-color: #8ddf74;
}

.budget-planner.warning {
  border-left-color: #eab308;
}

.budget-planner.danger {
  border-left-color: #ef4444;
}

.budget-title {
  align-items: flex-start;
}

.budget-title > div {
  display: grid;
  gap: 5px;
}

.budget-state {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d8e6dc;
  background: #101416;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.budget-state.success {
  border-color: rgba(141, 223, 116, 0.32);
  color: #d9ff9b;
  background: rgba(141, 223, 116, 0.1);
}

.budget-state.warning {
  border-color: rgba(234, 179, 8, 0.32);
  color: #f6d568;
  background: rgba(234, 179, 8, 0.1);
}

.budget-state.danger {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ffd2d2;
  background: rgba(239, 68, 68, 0.1);
}

.budget-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.budget-form label {
  display: grid;
  gap: 7px;
  color: #9fb9a9;
  font-size: 12px;
  font-weight: 800;
}

.budget-form input {
  min-height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #f5f7f4;
  background: #0c0f10;
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.budget-progress {
  height: 9px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #0b0e0f;
}

.budget-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b8ff31, #eab308, #ef4444);
}

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

.budget-metrics span {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #0d1112;
  padding: 13px;
}

.budget-metrics b {
  color: #9fb9a9;
  font-size: 11px;
  text-transform: uppercase;
}

.budget-metrics strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.budget-metrics em {
  color: #8fb49d;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.budget-intel {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(193, 255, 61, 0.2);
  border-radius: 12px;
  background: rgba(193, 255, 61, 0.06);
  padding: 13px;
}

.budget-intel strong {
  color: #f5f7f4;
  line-height: 1.45;
}

.budget-intel span {
  color: #a9c5b4;
  font-size: 12px;
  line-height: 1.5;
}

.budget-alerts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.budget-alerts li {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: #d8e6dc;
  background: #0c0f10;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
}

.tracker-card .metric-good,
.metric-good {
  color: var(--green);
}

.metric-danger {
  color: #ff8b8b;
}

.timeline-panel {
  gap: 18px;
}

.bottleneck-pill,
.panel-hint {
  color: #c7d9ce;
  font-size: 12px;
  font-weight: 800;
}

.bottleneck-pill {
  border: 1px solid rgba(234, 179, 8, 0.32);
  border-radius: 999px;
  background: rgba(234, 179, 8, 0.1);
  color: #f6d568;
  padding: 7px 10px;
}

.bottleneck-pill.success {
  border-color: rgba(141, 223, 116, 0.32);
  color: #d9ff9b;
  background: rgba(141, 223, 116, 0.1);
}

.bottleneck-pill.danger {
  border-color: rgba(239, 68, 68, 0.32);
  color: #ffb4b4;
  background: rgba(239, 68, 68, 0.1);
}

.bottleneck-pill.neutral {
  border-color: rgba(168, 85, 247, 0.32);
  color: #dec7ff;
  background: rgba(168, 85, 247, 0.1);
}

.timeline-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.timeline-flow > b {
  color: var(--green);
  text-align: center;
  font-size: 22px;
}

.timeline-node {
  display: grid;
  min-height: 92px;
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0d1112;
  text-align: center;
}

.timeline-node.warning {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.07);
}

.timeline-node strong {
  font-size: 28px;
}

.timeline-node span {
  color: #a9c5b4;
  font-size: 12px;
  font-weight: 800;
}

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

.timeline-rates span {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #0c0f10;
  padding: 12px;
  color: #a9c5b4;
  font-size: 12px;
}

.timeline-rates b {
  color: #fff;
  font-size: 18px;
}

.timeline-secondary {
  width: fit-content;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  color: #dec7ff;
  background: rgba(168, 85, 247, 0.08);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

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

.funnel-step {
  display: grid;
  gap: 8px;
  padding: 17px;
}

.funnel-step b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #3b541c;
  border-radius: 10px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
}

.funnel-step strong {
  font-size: 16px;
}

.funnel-step span {
  color: #a9c5b4;
  font-size: 13px;
  line-height: 1.45;
}

.tracker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 18px;
}

.tracker-panel {
  display: grid;
  min-width: 0;
  gap: 15px;
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-title h2 {
  font-size: 16px;
}

.panel-title button {
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #cfe0d4;
  background: var(--panel-2);
  padding: 8px 12px;
  font-weight: 800;
}

.tracker-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.tracker-table > div {
  display: grid;
  min-height: 52px;
  grid-template-columns: minmax(180px, 1fr) 100px 78px 70px 90px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-soft);
  padding: 0 14px;
  color: #c6d8cc;
  font-size: 13px;
}

.tracker-table > div:first-child {
  min-height: 42px;
  border-top: 0;
  color: #8fa798;
  background: #0d1012;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tracker-table strong {
  color: #fff;
}

.table-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-color: #3a4640 #0c0f10;
}

.vsl-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: #c6d8cc;
  font-size: 12px;
}

.decision-table {
  min-width: 1180px;
}

.decision-scroll {
  max-height: 520px;
}

.vsl-table th,
.vsl-table td {
  border-top: 1px solid var(--line-soft);
  padding: 13px 12px;
  background: #101416;
  text-align: left;
  vertical-align: middle;
}

.vsl-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  border-top: 0;
  color: #8fa798;
  background: #0d1012;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.vsl-table tbody tr:hover td {
  background: #12191a;
}

.decision-table tbody tr {
  cursor: pointer;
}

.decision-table tbody tr.is-selected td {
  background: #172016;
}

.decision-table .sticky-col,
.decision-table .sticky-status {
  position: sticky;
  z-index: 2;
  box-shadow: 1px 0 0 var(--line-soft);
}

.decision-table .sticky-account {
  left: 0;
  min-width: 112px;
  max-width: 132px;
}

.decision-table .sticky-ad {
  left: 112px;
  min-width: 112px;
  max-width: 132px;
}

.decision-table .sticky-status {
  right: 0;
  min-width: 126px;
  box-shadow: -1px 0 0 var(--line-soft);
}

.decision-table th.sticky-col,
.decision-table th.sticky-status {
  z-index: 5;
  background: #0d1012;
}

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

.secondary-button.small {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 12px;
}

.vsl-table strong {
  color: #fff;
}

.status-pill {
  display: inline-flex;
  min-width: 88px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 5px 8px;
  font: inherit;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.status-pill:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.status-pill:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.status-pill.scale {
  color: #d9ff9b;
  background: #263817;
}

.status-pill.keep {
  color: #cce5d3;
  background: #172c25;
}

.status-pill.pause {
  color: #ffd2d2;
  background: #311718;
}

.status-badge {
  display: inline-flex;
  min-width: 90px;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.success {
  color: #d9ff9b;
  background: #263817;
}

.status-badge.priorizar {
  color: #e8ffb5;
  background: #2f4a15;
}

.status-badge.manter {
  color: #cce5d3;
  background: #172c25;
}

.status-badge.warning {
  color: #ffe49a;
  background: #33270d;
}

.status-badge.observar {
  color: #ffe49a;
  background: #33270d;
}

.status-badge.danger {
  color: #ffd2d2;
  background: #311718;
}

.status-badge.pausar {
  color: #ffd2d2;
  background: #311718;
}

.status-badge.neutral {
  color: #ffd7a5;
  background: #33200f;
}

.status-badge.erro-de-rastreio {
  color: #dec7ff;
  background: #2b1744;
}

.utm-box {
  display: block;
  min-height: 126px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: #dcecdf;
  background: #0c0f10;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
}

.utm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.utm-actions .primary-button,
.utm-actions .secondary-button {
  flex: 1 1 132px;
  padding-inline: 12px;
}

.tracker-note {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(193, 255, 61, 0.22);
  border-radius: 12px;
  background: rgba(193, 255, 61, 0.07);
  padding: 13px;
}

.tracker-note strong {
  color: var(--green);
}

.tracker-note span {
  color: #c2d8ca;
  font-size: 13px;
  line-height: 1.45;
}

.tracker-note.danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.summary-panel p {
  color: #d8e6dc;
  font-size: 14px;
  line-height: 1.7;
}

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

.alert-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid #526068;
  border-radius: 12px;
  background: #0d1112;
  padding: 13px;
}

.alert-card.success {
  border-left-color: #8ddf74;
}

.alert-card.warning {
  border-left-color: #eab308;
}

.alert-card.danger {
  border-left-color: #ef4444;
}

.alert-card strong {
  color: #fff;
  font-size: 13px;
}

.alert-card span,
.alert-card em {
  color: #a9c5b4;
  font-size: 12px;
  line-height: 1.45;
}

.alert-card em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.utm-test-modal .flow-modal-body {
  display: grid;
  gap: 14px;
}

.utm-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #d8e6dc;
  font-size: 13px;
  line-height: 1.4;
}

.detail-cell {
  display: flex;
  min-width: 150px;
  align-items: center;
  gap: 8px;
}

.detail-cell span {
  display: inline-block;
  max-width: 132px;
  overflow: hidden;
  color: #d7e6dc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-cell button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: #111719;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-modal-text {
  color: #d8e6dc;
  line-height: 1.65;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.manual-checklist,
.plan-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.manual-checklist li,
.plan-list li {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: #d9e8de;
  background: #0c0f10;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 800;
}

.manual-checklist label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.manual-checklist input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.empty-row {
  color: #9fb9a9;
  text-align: center;
}

.csv-import-modal {
  width: min(860px, 100%);
}

.meta-connect-modal {
  width: min(760px, 100%);
}

.meta-config-form,
.meta-status-row,
.meta-import-grid {
  display: grid;
  gap: 10px;
}

.meta-config-form {
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
}

.meta-status-row {
  grid-template-columns: minmax(160px, 1fr) auto auto;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #0c0f10;
  padding: 12px;
}

.meta-import-grid {
  grid-template-columns: minmax(220px, 1fr) 150px 150px;
}

.integration-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(234, 179, 8, 0.32);
  border-radius: 999px;
  color: #f6d568;
  background: rgba(234, 179, 8, 0.1);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.integration-pill.success {
  border-color: rgba(141, 223, 116, 0.32);
  color: #d9ff9b;
  background: rgba(141, 223, 116, 0.1);
}

.primary-button.full {
  width: 100%;
}

.csv-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
  overflow-x: auto;
}

.csv-tabs button {
  min-height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #bdd3c5;
  background: transparent;
  padding: 0 12px;
  font-weight: 800;
  white-space: nowrap;
}

.csv-tabs button.active {
  border-bottom-color: var(--green);
  color: #fff;
}

.csv-panel {
  display: none;
  gap: 14px;
}

.csv-panel.active {
  display: grid;
}

.csv-upload {
  display: grid;
  gap: 7px;
  border: 1px dashed rgba(193, 255, 61, 0.32);
  border-radius: 12px;
  background: rgba(193, 255, 61, 0.06);
  padding: 16px;
  cursor: pointer;
}

.csv-upload input {
  display: none;
}

.csv-upload strong {
  color: #fff;
}

.csv-upload span,
.csv-preview-meta,
.import-message {
  color: #a9c5b4;
  font-size: 12px;
}

.csv-preview {
  min-height: 126px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #0c0f10;
  padding: 12px;
}

.csv-mapping {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.csv-mapping > strong {
  color: #fff;
  font-size: 13px;
}

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

.csv-mapping-grid label {
  display: grid;
  gap: 6px;
  color: #9fb9a9;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.csv-mapping-grid select {
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f5f7f4;
  background: #111517;
  padding: 8px 10px;
  font-size: 12px;
  text-transform: none;
}

.csv-empty {
  display: grid;
  min-height: 100px;
  place-items: center;
  color: #9fb9a9;
  text-align: center;
}

.csv-empty.error,
.import-message.error {
  color: #ffb4b4;
}

.csv-preview-table {
  min-width: 640px;
  margin-top: 10px;
}

.csv-import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.import-message.success {
  color: var(--green);
}

.page-content {
  padding-top: 31px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 31px;
}

.section-head p,
.funnel-head p {
  margin-top: 8px;
  color: #b3d0bd;
  font-size: 15px;
  line-height: 1.45;
}

.primary-button,
.blank-button,
.secondary-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  color: #071004;
  background: var(--green);
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}

.secondary-button {
  border: 1px solid var(--line);
  color: #c1d4c7;
  background: #15191c;
}

.primary-button span,
.blank-button span {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.primary-button:disabled {
  border: 1px solid #2b3528;
  color: #7f927d;
  background: #222a1d;
}

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  min-height: 54px;
  border-bottom: 1px solid var(--line-soft);
}

.tab {
  min-height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #bdd3c5;
  background: transparent;
  padding: 0 10px;
  font-weight: 600;
}

.tab.active {
  color: white;
  border-color: var(--green);
  background: #171b1f;
  border-radius: 7px 7px 0 0;
}

.tab span {
  color: #a7c991;
}

.quiz-grid {
  display: grid;
  max-width: 1020px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.list-card {
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid #29333a;
  border-radius: 8px;
  color: #bad0c2;
  background: #11191b;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
}

.tag + .tag {
  margin-left: 6px;
}

.tag.green {
  border-color: #536e1b;
  color: var(--green);
  background: #263711;
}

.card-meta time,
.page-card-body time {
  color: #b5cbbd;
  font-size: 12px;
}

.list-card h2,
.page-card h2,
.funnel-card h2 {
  font-size: 16px;
  line-height: 1.25;
}

.list-card p {
  margin-top: 8px;
  color: #b5cdbd;
  font-size: 13px;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 44px);
  gap: 8px;
  margin-top: 16px;
}

.page-card .action-row {
  grid-template-columns: minmax(0, 1fr) 44px 44px;
}

.wide-action,
.small-action {
  min-height: 36px;
  border: 1px solid #30373b;
  border-radius: 8px;
  color: #b7c9bd;
  background: #181d20;
  font-weight: 700;
}

.small-action {
  font-size: 18px;
}

.page-card {
  width: min(502px, 100%);
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.page-grid {
  display: grid;
  max-width: 1040px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.page-grid .page-card {
  width: 100%;
  margin-top: 0;
}

.page-thumb {
  position: relative;
  display: flex;
  height: 282px;
  align-items: center;
  gap: 92px;
  overflow: hidden;
  background: #f7f7f4;
  padding: 0 60px;
}

.empty-page-thumb,
.template-thumb {
  display: grid;
  place-items: center;
  gap: 12px;
  color: #dfeedd;
  background: linear-gradient(135deg, #11191b, #1d290f);
  padding: 28px;
  text-align: center;
}

.empty-page-thumb strong,
.template-thumb strong {
  max-width: 280px;
  font-size: 22px;
  line-height: 1.15;
}

.template-thumb .tag {
  position: absolute;
  left: 12px;
  top: 12px;
}

.r7-logo {
  display: grid;
  width: 225px;
  height: 225px;
  place-items: center;
  border: 34px solid #087ec2;
  border-radius: 48px;
  color: #087ec2;
  font-size: 78px;
  font-weight: 800;
}

.s-logo {
  display: grid;
  width: 188px;
  height: 188px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 65% 35%, #47ff17 0 22%, #fff 23% 27%, #061ac8 28% 49%, #8800a8 50% 72%, #111 73%);
  font-size: 90px;
  font-weight: 800;
}

.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 8px;
  color: #bfe2cb;
  background: #10191b;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.page-card-body {
  padding: 18px;
}

.page-card-body p {
  margin: 9px 0 14px;
  color: #a7c7b0;
  font-size: 13px;
}

.sales-box {
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 13px 16px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.sales-icon,
.hero-icon {
  display: grid;
  place-items: center;
  border: 1px solid #3c551e;
  color: var(--green);
  background: var(--green-soft);
}

.sales-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.sales-box p {
  margin-top: 4px;
  color: #b4cdbb;
  font-size: 12px;
}

.box-arrow {
  color: #a6b4ab;
}

.sales-box.open .box-arrow {
  transform: rotate(180deg);
}

.sales-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 220px minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #0f1315;
  padding: 16px 18px;
}

.sales-panel[hidden],
.ab-detail[hidden] {
  display: none;
}

.sales-panel strong,
.sales-panel p {
  display: block;
}

.sales-panel strong {
  margin-top: 9px;
  color: #e9f4ec;
  font-size: 13px;
}

.sales-panel p {
  grid-column: 1 / -1;
  margin-top: 6px;
  color: #a9c2b2;
  font-size: 12px;
}

.sales-panel p strong {
  display: inline;
  color: #dcebdd;
  font-size: inherit;
}

.copy-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}

.help-dot {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b7c9bd;
  background: #151a1d;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
}

.ab-list {
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.ab-row {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  border: 0;
  padding: 0 22px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.ab-row + .ab-row {
  border-top: 1px solid var(--line);
}

.ab-row:hover,
.ab-row.active {
  background: #171c1f;
}

.ab-title,
.ab-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ab-title span {
  color: #b7c9bd;
}

.ab-stats {
  color: #bdd1c2;
  font-size: 12px;
}

.ab-empty {
  display: grid;
  min-height: 96px;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: #a9c2b2;
  text-align: center;
}

.ab-empty strong {
  color: #f5f7f4;
}

.ab-detail {
  margin-top: 18px;
}

.ab-detail-card,
.ab-detail-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.ab-detail-card {
  padding: 18px;
}

.ab-detail-head,
.ab-panel-head,
.ab-variation-row,
.ab-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ab-detail-head h2 {
  margin-top: 10px;
  font-size: 20px;
}

.ab-detail-head p,
.ab-detail-panel p {
  margin-top: 7px;
  color: #a9c2b2;
  font-size: 13px;
  line-height: 1.45;
}

.ab-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ab-metric-grid article,
.ab-empty-detail,
.ab-config-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151a1d;
  padding: 14px;
}

.ab-metric-grid span,
.ab-panel-head span,
.ab-variation-row span,
.ab-config-list span {
  color: #a9c2b2;
  font-size: 12px;
}

.ab-metric-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
}

.ab-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  margin-top: 14px;
}

.ab-detail-panel {
  padding: 16px;
}

.ab-detail-panel h3 {
  font-size: 15px;
}

.ab-empty-detail {
  margin-top: 12px;
}

.ab-empty-detail p {
  margin-top: 6px;
}

.ab-variation-row {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151a1d;
  padding: 12px;
}

.ab-variation-row div {
  display: grid;
  gap: 5px;
}

.ab-variation-row div:last-child {
  grid-auto-flow: column;
  justify-content: end;
}

.ab-add-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ab-add-row button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d6e4db;
  background: #151a1d;
  padding: 0 10px;
  font-weight: 700;
}

.ab-config-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ab-config-list strong {
  display: block;
  margin-bottom: 5px;
  color: #f5f7f4;
}

.flow-actions-start {
  justify-content: flex-start;
  margin-top: 0;
  margin-bottom: 16px;
}

.ab-detail-page {
  max-width: none;
}

.ab-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #abc6b3;
  font-size: 13px;
  font-weight: 700;
}

.ab-breadcrumb a {
  color: #c9ddcf;
  text-decoration: none;
}

.ab-breadcrumb span::before {
  content: "›";
  margin-right: 9px;
  color: #788a80;
}

.ab-detail-page > h1 {
  margin-top: 10px;
  font-size: 24px;
}

.ab-real-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 14px;
  margin-top: 22px;
}

.ab-link-panel,
.ab-distribution-panel,
.ab-variations-panel,
.ab-chart-panel,
.ab-live-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.ab-link-panel {
  display: flex;
  min-height: 132px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.ab-link-panel p,
.ab-distribution-panel p,
.ab-chart-panel p {
  margin-top: 7px;
  color: #a9c2b2;
  font-size: 13px;
  line-height: 1.45;
}

.ab-public-url {
  margin-top: 16px;
  color: #e8f2eb;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.ab-status-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ab-distribution-panel {
  min-height: 132px;
  padding: 20px;
}

.ab-weight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ab-weight-row span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #3b541c;
  border-radius: 999px;
  color: var(--green);
  background: #1d290f;
  font-weight: 800;
}

.ab-period-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.ab-period-tabs button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b9ceb9;
  background: transparent;
  padding: 0 12px;
  font-weight: 700;
}

.ab-period-tabs button.active {
  border-color: #3b541c;
  color: var(--green);
  background: #1d290f;
}

.ab-variations-panel {
  margin-top: 12px;
  padding: 18px;
}

.ab-variations-panel .ab-panel-head h2 {
  font-size: 16px;
}

.ab-table {
  margin-top: 16px;
  overflow-x: auto;
}

.ab-table-head,
.ab-table-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) repeat(6, minmax(82px, 0.7fr)) 110px;
  align-items: center;
  min-width: 900px;
  gap: 10px;
}

.ab-table-head {
  min-height: 36px;
  color: #a9c2b2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ab-table-row {
  min-height: 58px;
  border-top: 1px solid var(--line);
  color: #e8f1eb;
  font-size: 13px;
}

.ab-table-row div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-table-row div span {
  color: #9fb7a8;
  font-size: 12px;
}

.ab-table-row .secondary-button {
  min-height: 32px;
  padding: 0 10px;
}

.ab-chart-panel {
  margin-top: 14px;
  padding: 20px;
}

.ab-chart-panel h3 {
  font-size: 15px;
}

.ab-chart {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  min-height: 150px;
  margin-top: 14px;
}

.ab-chart-axis {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  color: #8fa397;
  font-size: 12px;
}

.ab-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px 16px;
}

.ab-chart-bars span {
  display: grid;
  width: 34px;
  place-items: end center;
  border-radius: 999px 999px 3px 3px;
  color: var(--green);
  background: #243417;
  font-weight: 800;
}

.ab-empty-chart {
  display: grid;
  min-height: 170px;
  align-content: center;
  gap: 8px;
  color: #a9c2b2;
}

.ab-empty-chart strong {
  color: #f5f7f4;
}

.ab-live-card {
  margin-top: 16px;
  padding: 16px;
}

.ab-live-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ab-live-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #e8f1eb;
  background: #151a1d;
  padding: 12px;
  font-size: 13px;
}

.ab-live-grid strong,
.ab-live-grid small {
  display: block;
}

.ab-live-grid strong {
  margin-bottom: 7px;
  color: #a9c2b2;
  font-size: 11px;
}

.ab-live-grid small {
  margin-top: 4px;
  color: #a9c2b2;
}

.ab-preview-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #b9ceb9;
}

.ab-preview-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #e8f1eb;
  font-size: 13px;
}

.ab-preview-line button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c1d4c7;
  background: #15191c;
  padding: 0 12px;
  font-weight: 700;
}

.ab-live-preview {
  display: grid;
  min-height: 120px;
  place-items: center;
  margin-top: 12px;
  border: 1px dashed #344046;
  border-radius: 8px;
  color: #8fa397;
  background: #0d1012;
  font-size: 12px;
  font-weight: 800;
}

.ab-existing-list {
  display: grid;
  max-height: 430px;
  overflow: auto;
  gap: 8px;
}

.ab-existing-list button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f5f7f4;
  background: #151a1d;
  padding: 10px 12px;
  text-align: left;
}

.ab-existing-list span {
  color: #a9c2b2;
  font-size: 12px;
}

.funnel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-icon {
  width: 45px;
  height: 45px;
  border-radius: 11px;
  font-size: 22px;
}

.block-label {
  margin: 0 0 10px;
  color: #b5d1bd;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.block-label.lower {
  margin-top: 28px;
}

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

.template-card {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.template-card strong {
  color: white;
}

.template-card strong,
.funnel-card h2 {
  display: block;
}

.template-card strong::first-letter,
.funnel-card h2::first-letter {
  color: var(--green);
}

.template-card p,
.funnel-card p {
  margin-top: 8px;
  color: #b3cbb9;
  font-size: 13px;
}

.blank-button {
  min-width: 176px;
  margin-top: 13px;
  border: 1px solid var(--line);
  color: white;
  background: #111517;
}

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

.funnel-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  padding: 22px 18px;
}

.funnel-card-main {
  color: inherit;
  text-decoration: none;
}

.funnel-card > div:not(.action-row) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.funnel-card a {
  color: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.funnel-card .action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 44px;
  gap: 8px;
  margin-top: auto;
}

.funnel-card .action-row a {
  display: grid;
  place-items: center;
  color: #b7c9bd;
  text-decoration: none;
}

.funnel-card .action-row button {
  cursor: pointer;
}

.funnel-card .action-row a:hover,
.funnel-card .action-row button:hover {
  border-color: #415047;
  color: #f5f7f4;
  background: #1e2528;
}

.funnel-card .funnel-card-main {
  color: var(--text);
}

.funnel-card .funnel-card-main p {
  color: #b3cbb9;
}

.ghost-trash {
  border: 0;
  color: #a7b3ad;
  background: transparent;
  font-size: 18px;
}

.plain-head {
  max-width: 900px;
  margin-bottom: 30px;
}

.plain-head p,
.copy-intro p {
  margin-top: 8px;
  color: #b3d0bd;
  font-size: 15px;
  line-height: 1.5;
}

.choice-panel,
.referral-panel,
.referral-table,
.copy-wizard {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.choice-panel {
  max-width: 980px;
  padding: 24px;
}

.choice-panel h2,
.referral-panel h2,
.referral-table h2 {
  font-size: 18px;
}

.choice-panel > p,
.referral-panel > p,
.copy-wizard > p {
  margin-top: 6px;
  color: #adc7b5;
  font-size: 14px;
}

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

.choice-card {
  display: grid;
  min-height: 112px;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
  background: #151a1d;
  padding: 18px;
  text-decoration: none;
}

.choice-card span {
  color: #aac3b2;
  font-size: 13px;
  line-height: 1.45;
}

.tracking-page {
  width: min(100%, 1440px);
  padding: 18px 24px 82px;
}

.tracking-head h1 {
  color: #f5f7f4;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.32;
}

.tracking-head p {
  margin-top: 4px;
  color: #a8c7b0;
  font-size: 14px;
  line-height: 1.45;
}

.tracking-new-button {
  display: flex;
  width: 137px;
  min-height: 36px;
  margin: 20px 0 0 auto;
  padding: 0 14px;
}

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

.tracking-card {
  display: grid;
  min-height: 128px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: white;
  background: var(--panel);
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tracking-card:hover {
  border-color: #313a3f;
  background: #14191c;
}

.tracking-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  color: var(--green);
  background: #1f2e12;
  font-size: 20px;
}

.tracking-card h2 {
  color: #f5f7f4;
  font-size: 14px;
  font-weight: 700;
}

.tracking-card p {
  margin-top: 10px;
  color: #b1c9b8;
  font-size: 14px;
}

.tracking-detail-shell {
  background: var(--page);
}

.tracking-detail-page {
  max-width: 1180px;
  padding: 24px;
}

.tracking-back {
  display: inline-flex;
  align-items: center;
  color: #a9c2b2;
  margin-bottom: 18px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.tracking-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tracking-detail-head h1 {
  color: #f5f7f4;
  font-size: 24px;
  font-weight: 700;
}

.tracking-detail-head p {
  margin-top: 6px;
  color: #a8c7b0;
  font-size: 14px;
}

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

.tracking-tabs {
  margin-top: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.tracking-detail-panel {
  display: none;
  margin-top: 24px;
}

.tracking-detail-panel.active {
  display: block;
}

.tracking-panel-card,
.tracking-metric {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.tracking-panel-card {
  padding: 22px;
}

.tracking-panel-card h2 {
  color: #f5f7f4;
  font-size: 18px;
}

.tracking-panel-card > p {
  margin-top: 6px;
  color: #a8c7b0;
  font-size: 14px;
}

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

.tracking-wide-field {
  grid-column: 1 / -1;
}

.tracking-code {
  overflow: auto;
  min-height: 72px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dce8df;
  background: #090c0d;
  padding: 14px;
  font-size: 12px;
  white-space: pre-wrap;
}

.tracking-metric {
  display: grid;
  min-height: 96px;
  gap: 10px;
  padding: 18px;
}

.tracking-metric span {
  color: #a8c7b0;
  font-size: 13px;
}

.tracking-metric strong {
  color: #f5f7f4;
  font-size: 24px;
}

.copy-ai-page {
  padding: 24px;
}

.copy-ai-root {
  min-height: calc(100vh - 158px);
}

.copy-ai-shell {
  display: grid;
  min-height: calc(100vh - 158px);
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.copy-ai-side,
.copy-wizard,
.copy-chat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.copy-ai-side {
  align-self: start;
  padding: 22px;
}

.copy-ai-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #425c19;
  border-radius: 10px;
  color: var(--green);
  background: #1f2e12;
  font-size: 20px;
}

.copy-ai-side h2 {
  margin-top: 14px;
  font-size: 20px;
}

.copy-ai-side p {
  margin: 8px 0 18px;
  color: #a8c7b0;
  font-size: 14px;
  line-height: 1.45;
}

.copy-ai-main {
  min-width: 0;
}

.copy-intro {
  margin-bottom: 20px;
}

.copy-intro p {
  color: #b3d0bd;
  font-size: 15px;
  line-height: 1.5;
}

.copy-wizard {
  max-width: 900px;
  padding: 24px;
}

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

.wizard-head span {
  color: #b5cbbd;
  font-size: 13px;
}

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

.copy-options button {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
  background: #151a1d;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.copy-options button:hover,
.copy-options button.selected-option {
  border-color: #5a7422;
  background: #1b2416;
}

.copy-options span {
  display: block;
  margin-top: 5px;
  color: #a9c2b2;
  font-size: 12px;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.copy-chat {
  display: grid;
  height: calc(100vh - 158px);
  min-height: 520px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.copy-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  padding: 22px;
}

.copy-chat-head h1 {
  font-size: 24px;
}

.copy-chat-head p {
  margin-top: 4px;
  color: #a8c7b0;
  font-size: 14px;
}

.copy-messages {
  overflow: auto;
  padding: 22px;
}

.copy-message,
.copy-draft {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151a1d;
  padding: 16px;
}

.copy-message strong,
.copy-draft strong {
  color: #f5f7f4;
}

.copy-message p,
.copy-draft p {
  margin-top: 8px;
  color: #c5d8ca;
  font-size: 14px;
  line-height: 1.55;
}

.copy-draft {
  margin-top: 14px;
}

.copy-message.user {
  margin: 14px 0 0 auto;
  border-color: rgba(185, 255, 56, 0.28);
  background: #18230f;
}

.copy-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.copy-input-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding: 14px;
}

.copy-input-bar textarea {
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #f5f7f4;
  background: #0d1112;
  padding: 13px 14px;
  resize: vertical;
}

.referral-panel {
  max-width: 920px;
  padding: 24px;
}

.plans-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.plans-grid article,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151a1d;
  padding: 18px;
}

.plans-grid span,
.stats-grid span {
  display: block;
  color: #a9c2b2;
  font-size: 13px;
}

.plans-grid strong,
.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.code-box {
  margin-top: 16px;
  border: 1px solid #3b541c;
  border-radius: 10px;
  color: #d6ffc2;
  background: #17220e;
  padding: 14px;
  font-size: 14px;
}

.stats-grid {
  max-width: 920px;
}

.referral-table {
  max-width: 920px;
  margin-top: 18px;
  padding: 22px;
}

.table-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
  color: #a9c2b2;
  padding-bottom: 10px;
  font-size: 13px;
}

.referral-table p {
  margin-top: 18px;
  color: #a9c2b2;
  font-size: 14px;
}

.upload-panel,
.empty-state,
.snippet-card,
.preview-box,
.settings-panel,
.summary-panel,
.stack-grid article,
.combine-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.upload-panel {
  display: grid;
  min-height: 142px;
  place-items: center;
  color: white;
  padding: 24px;
  text-align: center;
}

.upload-panel span,
.video-drop span {
  display: block;
  color: #a9c2b2;
  font-size: 13px;
}

.toolbar-line {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.toolbar-line input,
.tool-input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #bed2c5;
  background: #111517;
  padding: 0 12px;
}

.toolbar-line input {
  flex: 1;
}

.toolbar-line button,
.settings-panel button,
.preview-box button,
.stack-grid button,
.combine-grid button,
.snippet-card button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c1d4c7;
  background: #15191c;
  padding: 0 12px;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  color: #a9c2b2;
  text-align: center;
}

.snippet-card {
  max-width: 900px;
  padding: 20px;
}

.snippet-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.snippet-card p,
.snippet-card small {
  display: block;
  margin-top: 14px;
  color: #b4cbb9;
  line-height: 1.5;
}

.tool-layout,
.format-layout,
.stack-grid,
.combine-grid {
  display: grid;
  gap: 18px;
}

.tool-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.format-layout {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.preview-box,
.settings-panel,
.summary-panel,
.stack-grid article,
.combine-grid article {
  padding: 20px;
}

.video-drop {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed #3b4448;
  border-radius: 12px;
  color: #d4e4d9;
  background: #0f1315;
  padding: 20px;
  text-align: center;
}

.counter-box,
.hint-box,
.skeleton-line,
.media-row {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #afc8b6;
  background: #151a1d;
  padding: 14px;
}

.counter-box b {
  float: right;
  color: var(--green);
}

.mini-grid,
.chip-grid,
.preset-row,
.template-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

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

.chip-grid span,
.template-list article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151a1d;
  padding: 13px;
}

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

.template-list span {
  display: block;
  margin-top: 6px;
  color: #a9c2b2;
  font-size: 12px;
}

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

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

.combine-grid b {
  display: block;
  color: var(--green);
  font-size: 28px;
  margin: 8px 0;
}

.summary-panel {
  max-width: 980px;
  margin-top: 18px;
}

.creative-home-head,
.creative-tool-head {
  max-width: 980px;
}

.creative-home-head h1,
.creative-tool-head h1 {
  letter-spacing: 0;
}

.creative-tool-head {
  display: grid;
  gap: 12px;
}

.back-link {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  width: max-content;
}

.creative-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.creative-title-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #35530f;
  border-radius: 10px;
  color: var(--green);
  background: #19240f;
  font-size: 22px;
}

.creative-choice-panel {
  max-width: 1180px;
}

.creative-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 20px;
}

.compact-primary {
  margin-left: auto;
}

.cs-toolbar {
  align-items: center;
}

.cs-toolbar select {
  flex: 0 0 180px;
}

.full-input {
  width: 100%;
}

.cs-library-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 14px;
}

.cs-media-card {
  max-width: none;
}

.template-list article,
[data-cs-template],
[data-cs-preset],
.mini-grid button,
.tabs .tab {
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.template-list article:hover,
[data-cs-template]:hover,
.mini-grid button:hover,
.settings-panel button:hover,
.preview-box button:hover,
.stack-grid button:hover,
.combine-grid button:hover,
.snippet-card button:hover {
  border-color: #b9ff38;
  color: #ecffd7;
  background: #19210f;
}

.selected-option,
.template-list article.selected-option,
[data-cs-template].selected-option,
[data-cs-preset].selected-option {
  border-color: #b9ff38;
  color: #f3ffe3;
  background: #1d2d10;
  box-shadow: inset 0 -2px 0 #b9ff38;
}

.cs-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cs-done strong {
  display: block;
  color: #f4fff1;
}

.cs-done span {
  display: block;
  margin-top: 5px;
  color: #a9c2b2;
}

.flow-field input {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d9eadf;
  background: #111517;
  padding: 0 12px;
}

.stack-grid article p,
.combine-grid article p,
.settings-panel p,
.preview-box p {
  color: #a9c2b2;
  line-height: 1.45;
}

.stack-grid .primary-button,
.combine-grid .primary-button,
.settings-panel .primary-button {
  width: 100%;
  margin-top: 14px;
}

.combine-grid article b {
  width: max-content;
  min-width: 38px;
  border: 1px solid #35530f;
  border-radius: 9px;
  color: var(--green);
  background: #19240f;
  padding: 4px 10px;
  text-align: center;
}

.cs-videos-page {
  display: grid;
  gap: 24px;
}

.cs-videos-heading h2 {
  color: #f7fff5;
  font-size: 18px;
  font-weight: 700;
}

.cs-videos-heading p {
  margin-top: 4px;
  color: #a9c2b2;
  font-size: 14px;
}

.cs-upload-zone {
  display: grid;
  min-height: 170px;
  width: 100%;
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: #f2fff0;
  background: transparent;
  padding: 32px;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.cs-upload-zone:hover {
  border-color: rgba(185, 255, 56, 0.5);
  background: rgba(22, 29, 17, 0.5);
}

.cs-upload-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #35530f;
  border-radius: 10px;
  color: var(--green);
  background: #19240f;
  font-size: 18px;
}

.cs-upload-zone strong {
  font-size: 18px;
  font-weight: 600;
}

.cs-upload-zone small {
  color: #a9c2b2;
  font-size: 14px;
}

.cs-video-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-video-controls input {
  width: min(448px, 100%);
  flex: 0 1 448px;
}

.cs-video-controls > button,
.cs-select-button,
.cs-filter-menu button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c8d8ce;
  background: #111517;
  padding: 0 14px;
}

.cs-video-controls > button {
  min-width: 144px;
}

.cs-filter-wrap {
  position: relative;
  flex: 0 0 200px;
}

.cs-select-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 8;
  display: grid;
  width: 100%;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111517;
  padding: 6px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.cs-filter-menu[hidden] {
  display: none;
}

.cs-filter-menu button {
  justify-content: flex-start;
  text-align: left;
}

.cs-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.cs-video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #f4fff1;
  background: var(--panel);
}

.cs-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #101315;
}

.cs-thumb-image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(185, 255, 56, 0.18), transparent 34%),
    radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.24), transparent 0 9%, transparent 10%),
    linear-gradient(135deg, #263135 0%, #0c0f10 46%, #2c3819 100%);
}

.cs-thumb-image::after {
  content: "";
  position: absolute;
  inset: 18% 24%;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.cs-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 6px;
  color: white;
  background: rgba(0, 0, 0, 0.72);
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
}

.cs-video-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.cs-video-body h3 {
  overflow: hidden;
  color: #f7fff5;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-video-body p {
  color: #a9c2b2;
  font-size: 13px;
}

.cs-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cs-card-tags span {
  border: 1px solid #35530f;
  border-radius: 999px;
  color: #d6ffc2;
  background: #19240f;
  padding: 3px 8px;
  font-size: 12px;
}

.cs-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 38px 38px;
  gap: 8px;
  margin-top: 2px;
}

.cs-card-actions button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c8d8ce;
  background: #151a1d;
  padding: 0 10px;
}

.cs-card-actions button:hover,
.cs-video-controls > button:hover,
.cs-select-button:hover,
.cs-filter-menu button:hover {
  border-color: #b9ff38;
  color: #ecffd7;
  background: #19210f;
}

.cs-video-modal {
  display: grid;
  gap: 14px;
}

.cs-video-modal section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151a1d;
  padding: 14px;
}

.cs-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cs-modal-title strong {
  color: #f7fff5;
}

.cs-modal-title span {
  border: 1px solid #35530f;
  border-radius: 999px;
  color: #d6ffc2;
  background: #19240f;
  padding: 3px 8px;
  font-size: 12px;
}

.cs-modal-title button {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c8d8ce;
  background: #111517;
  padding: 6px 10px;
}

.cs-video-modal p {
  color: #b7cbbd;
  font-size: 14px;
  line-height: 1.55;
}

.cs-hooks-page {
  display: grid;
  min-height: calc(100vh - 104px);
  gap: 28px;
  align-content: start;
  padding: 8px 0 40px;
}

.cs-hooks-heading h1 {
  color: var(--green);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.cs-hooks-heading p {
  margin-top: 8px;
  color: #a9c2b2;
  font-size: 15px;
}

.cs-hb-tabs {
  display: inline-flex;
  width: max-content;
  height: 36px;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 3px;
}

.cs-hb-tabs button {
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a9c2b2;
  background: transparent;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 600;
}

.cs-hb-tabs button.active {
  border-color: #b9ff38;
  color: #071007;
  background: var(--green);
}

.cs-hb-panel {
  display: grid;
  gap: 24px;
}

.cs-hb-panel[hidden] {
  display: none;
}

.cs-hb-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cs-hb-controls input {
  width: 448px;
  flex: 0 0 448px;
}

.cs-hb-controls button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c8d8ce;
  background: #111517;
  padding: 0 14px;
  font-weight: 600;
}

.cs-hb-controls button:not(.primary-button) {
  min-width: 150px;
}

.cs-hb-controls button:first-of-type:not(.primary-button) {
  min-width: 180px;
}

.cs-hb-controls .primary-button {
  min-width: 175px;
  color: #071007;
  background: var(--green);
}

.cs-hb-controls-compact {
  justify-content: flex-start;
}

.cs-hb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
}

.cs-hb-card {
  width: min(100%, 450px);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #f4fff1;
  background: var(--panel);
  padding: 16px;
}

.cs-hb-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cs-hb-card-head span {
  border: 1px solid #35530f;
  border-radius: 999px;
  color: #d6ffc2;
  background: #19240f;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.cs-hb-card-head span + span {
  border-color: #2e3732;
  color: #b7cbbd;
  background: #14191b;
}

.cs-hb-text {
  display: -webkit-box;
  min-height: 68px;
  overflow: hidden;
  color: #c7d8cc;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cs-more-button {
  min-height: 24px;
  margin-top: 8px;
  border: 0;
  color: var(--green);
  background: transparent;
  padding: 0;
  font-weight: 700;
}

.cs-hb-source {
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: #a9c2b2;
  font-size: 12px;
  line-height: 1.45;
}

.cs-hb-metrics {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 12px 0;
  color: #b7cbbd;
  font-size: 13px;
}

.cs-hb-metrics label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cs-hb-metrics input {
  width: 64px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #d9eadf;
  background: #111517;
  padding: 0 8px;
}

.cs-hb-status,
.cs-hb-copy {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c8d8ce;
  background: #111517;
  padding: 0 12px;
  font-weight: 700;
}

.cs-hb-status {
  width: 100%;
}

.cs-hb-copy {
  width: 56%;
  min-width: 220px;
  margin-top: 12px;
}

.cs-hb-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #a9c2b2;
  background: var(--panel);
  text-align: center;
}

.cs-hb-empty h2 {
  color: #f4fff1;
  font-size: 18px;
}

.cs-hb-empty p {
  margin-top: 8px;
  color: #a9c2b2;
}

.cs-hb-card button:hover,
.cs-hb-controls button:hover,
.cs-hb-tabs button:not(.active):hover {
  border-color: #b9ff38;
  color: #ecffd7;
  background: #19210f;
}

.cs-hb-tabs button.active:hover,
.cs-hb-controls .primary-button:hover {
  color: #071007;
  background: #caff52;
}

.cs-hb-modal-form {
  display: grid;
  gap: 14px;
}

.cs-modal-select {
  min-height: 38px;
  width: 180px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c8d8ce;
  background: #111517;
  padding: 0 12px;
  text-align: left;
}

.cs-hb-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cs-hb-modal-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c8d8ce;
  background: #111517;
  padding: 0 14px;
}

.cs-hb-modal-actions .primary-button {
  color: #071007;
  background: var(--green);
}

.cs-visual-hooks-page {
  display: grid;
  gap: 24px;
  padding: 8px 0 40px;
}

.cs-vh-heading {
  max-width: 760px;
  margin-left: 28px;
}

.cs-vh-heading h1 {
  color: #f7fff5;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.cs-vh-heading p {
  margin-top: 4px;
  color: #a9c2b2;
  font-size: 14px;
}

.cs-vh-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 446px;
  gap: 48px;
  align-items: start;
}

.cs-vh-preview-card,
.cs-vh-tool-card,
.cs-vh-gallery-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
}

.cs-vh-preview-card h2,
.cs-vh-tool-card h2,
.cs-vh-gallery-card h2 {
  color: #f7fff5;
  font-size: 17px;
  font-weight: 700;
}

.cs-vh-tool-card p,
.cs-vh-gallery-card p {
  margin-top: 6px;
  color: #a9c2b2;
  font-size: 13px;
  line-height: 1.45;
}

.cs-vh-drop {
  display: grid;
  min-height: 487px;
  margin-top: 16px;
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  color: #f4fff1;
  background: #0f1315;
  padding: 24px;
  text-align: center;
}

.cs-vh-drop:hover,
.cs-vh-drop.has-video {
  border-color: rgba(185, 255, 56, 0.52);
  background: #11190f;
}

.cs-vh-drop strong {
  max-width: 90%;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-vh-drop small {
  color: #a9c2b2;
  font-size: 13px;
}

.cs-vh-or {
  margin: 8px 0;
  color: #a9c2b2;
  font-size: 13px;
  text-align: center;
}

.cs-vh-library-button,
.cs-vh-side button,
.cs-vh-modal-tabs button,
.cs-vh-modal-item {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c8d8ce;
  background: #111517;
  padding: 0 12px;
  font-weight: 700;
}

.cs-vh-library-button {
  width: 100%;
}

.cs-vh-added {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111517;
  padding: 14px;
}

.cs-vh-added > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f4fff1;
}

.cs-vh-added b {
  color: var(--green);
  font-size: 22px;
}

.cs-vh-added p {
  padding: 26px 12px;
  color: #a9c2b2;
  font-size: 14px;
  text-align: center;
}

.cs-vh-hook-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cs-vh-hook-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151a1d;
  padding: 10px;
}

.cs-vh-hook-list span {
  color: #a9c2b2;
  font-size: 12px;
}

.cs-vh-side {
  display: grid;
  gap: 14px;
}

.cs-vh-tool-card,
.cs-vh-gallery-card {
  display: grid;
  gap: 12px;
}

.cs-vh-tool-card > button {
  width: 100%;
}

.cs-vh-elements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cs-vh-elements button {
  min-height: 70px;
  white-space: normal;
}

.cs-vh-side button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.cs-vh-gallery-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #111517;
  padding: 4px;
}

.cs-vh-gallery-tabs button {
  min-height: 28px;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.cs-vh-gallery-tabs button.active,
.cs-vh-format button.active {
  color: #071007;
  background: var(--green);
}

.cs-vh-gallery-card small {
  color: #a9c2b2;
  font-size: 11px;
}

.cs-vh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.cs-vh-gallery-grid button {
  position: relative;
  min-height: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  padding: 0;
}

.cs-vh-gallery-grid button span {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 50% 28%, rgba(185, 255, 56, 0.24), transparent 0 26%, transparent 27%),
    linear-gradient(145deg, #283338, #101315 55%, #24350f);
}

.cs-vh-gallery-grid button b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  color: white;
  font-size: 12px;
  text-align: center;
}

.cs-vh-pagination,
.cs-vh-format {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cs-vh-pagination button {
  width: 94px;
  min-height: 28px;
}

.cs-vh-pagination span,
.cs-vh-format span {
  color: #a9c2b2;
  font-size: 12px;
}

.cs-vh-format {
  justify-content: flex-start;
}

.cs-vh-format button {
  min-height: 28px;
  padding: 0 12px;
}

.cs-vh-apply {
  width: 100%;
  min-height: 40px;
}

.cs-vh-library-modal {
  display: grid;
  gap: 14px;
}

.cs-vh-modal-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.cs-vh-modal-tabs button.active {
  color: #071007;
  background: var(--green);
}

.cs-vh-modal-item {
  position: relative;
  display: grid;
  min-height: 92px;
  align-content: end;
  justify-items: start;
  overflow: hidden;
  text-align: left;
}

.cs-vh-modal-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #263135, #0c0f10 55%, #2c3819);
  opacity: 0.62;
}

.cs-vh-modal-item strong,
.cs-vh-modal-item .cs-duration {
  position: relative;
  z-index: 1;
}

.cs-vh-side button:not(:disabled):hover,
.cs-vh-library-button:hover,
.cs-vh-modal-item:hover,
.cs-vh-modal-tabs button:hover {
  border-color: #b9ff38;
  color: #ecffd7;
  background: #19210f;
}

.cs-transform-page {
  display: grid;
  gap: 24px;
}

.cs-t-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cs-t-heading h2 {
  color: #f7fff5;
  font-size: 18px;
  font-weight: 700;
}

.cs-t-heading p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 920px;
  margin-top: 5px;
  color: #a9c2b2;
  font-size: 14px;
  line-height: 1.45;
}

.cs-t-info-button {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #a9c2b2;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.cs-t-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.cs-t-mode-wrap {
  position: relative;
}

.cs-t-mode,
.cs-t-local,
.cs-t-mode-menu button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d6e5dc;
  background: #111517;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.cs-t-local {
  display: inline-flex;
  align-items: center;
  color: #a9c2b2;
  background: rgba(255, 255, 255, 0.03);
}

.cs-t-mode-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  display: grid;
  min-width: 120px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111517;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cs-t-mode-menu[hidden] {
  display: none;
}

.cs-t-step {
  display: grid;
  gap: 16px;
}

.cs-t-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-t-step-title span,
.cs-t-process-card h3 span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #111708;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.cs-t-step-title h3 {
  color: #f7fff5;
  font-size: 16px;
  font-weight: 700;
}

.cs-t-selector,
.cs-t-source-pane,
.cs-t-library-card {
  display: grid;
  gap: 16px;
}

.cs-t-selector[hidden],
.cs-t-source-pane[hidden],
.cs-t-selected-card[hidden],
[data-cs-t-layer-panel][hidden],
.cs-t-results[hidden] {
  display: none;
}

.cs-t-source-tabs,
.cs-t-layer-tabs,
.cs-t-library-tabs {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  color: #a9c2b2;
  background: #151a1d;
  padding: 3px;
}

.cs-t-source-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-t-layer-tabs {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cs-t-library-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 620px;
}

.cs-t-source-tabs button,
.cs-t-layer-tabs button,
.cs-t-library-tabs button {
  min-height: 29px;
  border: 0;
  border-radius: 6px;
  color: #b8c9be;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.cs-t-source-tabs button.active,
.cs-t-layer-tabs button.active,
.cs-t-library-tabs button.active {
  color: #f6fff1;
  background: #0b0e0f;
  box-shadow: inset 0 -2px 0 var(--green);
}

.cs-t-upload-card {
  display: grid;
  min-height: 366px;
  width: 100%;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 2px dashed rgba(169, 194, 178, 0.24);
  border-radius: 12px;
  color: #f5fff1;
  background: #111517;
  padding: 48px;
  text-align: center;
}

.cs-t-upload-card strong {
  font-size: 18px;
}

.cs-t-upload-card small,
.cs-t-upload-card em,
.cs-t-selected-card p,
.cs-t-muted,
.cs-t-info-card p {
  color: #a9c2b2;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.cs-t-upload-card b {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 8px;
  color: #071007;
  background: var(--green);
  padding: 0 14px;
  font-size: 13px;
}

.cs-t-library-card,
.cs-t-card,
.cs-t-layer-card,
.cs-t-selected-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.cs-t-library-card {
  padding: 18px;
}

.cs-t-library-list {
  display: grid;
  gap: 10px;
}

.cs-t-library-item {
  position: relative;
  display: grid;
  min-height: 170px;
  align-content: end;
  justify-items: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #f5fff1;
  background: linear-gradient(145deg, #263135, #0c0f10 56%, #2c3819);
  padding: 14px;
  text-align: left;
}

.cs-t-library-item strong {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cs-t-empty-list {
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: #a9c2b2;
  padding: 40px 18px;
  text-align: center;
}

.cs-t-selected-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.cs-t-selected-thumb {
  position: relative;
  display: grid;
  height: 116px;
  place-items: end start;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(145deg, #263135, #0c0f10 56%, #2c3819);
  padding: 10px;
}

.cs-t-selected-thumb span,
.cs-t-library-item .cs-duration {
  position: relative;
  z-index: 1;
  border-radius: 6px;
  color: white;
  background: rgba(0, 0, 0, 0.62);
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 800;
}

.cs-t-selected-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: #f8fff6;
  font-size: 15px;
}

.cs-t-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cs-t-video-meta span,
.cs-t-process-summary div,
.cs-t-presets-card header > span {
  border: 1px solid rgba(185, 255, 56, 0.2);
  border-radius: 999px;
  color: #b9ff38;
  background: rgba(185, 255, 56, 0.08);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.cs-t-card,
.cs-t-layer-card {
  padding: 24px;
}

.cs-t-presets-card {
  display: grid;
  gap: 20px;
}

.cs-t-presets-card header,
.cs-t-layer-head,
.cs-t-process-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cs-t-presets-card h3,
.cs-t-process-card h3,
.cs-t-info-card h3 {
  color: #f7fff5;
  font-size: 18px;
  font-weight: 800;
}

.cs-t-presets-card p,
.cs-t-process-card header p,
.cs-t-layer-head p {
  margin-top: 4px;
  color: #a9c2b2;
  font-size: 13px;
}

.cs-t-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-t-preset-row button,
.cs-t-select,
.cs-t-process-card .primary-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c9dccf;
  background: #151a1d;
  padding: 0 12px;
  font-weight: 800;
}

.cs-t-preset-row button.active,
.cs-t-preset-row button:hover,
.cs-t-select:hover,
.cs-t-layer-tabs button:not(.active):hover,
.cs-t-source-tabs button:not(.active):hover,
.cs-t-library-tabs button:not(.active):hover {
  border-color: #b9ff38;
  color: #ecffd7;
  background: #19210f;
}

.cs-t-layer-panels {
  display: grid;
  gap: 16px;
}

.cs-t-layer-card + .cs-t-layer-card {
  margin-top: 16px;
}

.cs-t-layer-head h4 {
  color: #f7fff5;
  font-size: 16px;
}

.cs-t-switch {
  display: inline-flex;
  width: 34px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: transparent;
  background: #22282b;
  font-size: 0;
  cursor: pointer;
}

.cs-t-switch::after {
  content: "";
  width: 14px;
  height: 14px;
  transform: translateX(-6px);
  border-radius: 50%;
  background: #a9b7af;
  transition: transform 0.16s ease, background 0.16s ease;
}

.cs-t-switch.is-on {
  border-color: #597a19;
  background: var(--green);
}

.cs-t-switch.is-on::after {
  transform: translateX(6px);
  background: #0b1005;
}

.cs-t-layer-body {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.cs-t-field,
.cs-t-setting-line {
  display: grid;
  gap: 8px;
  color: #dcebdd;
  font-size: 13px;
  font-weight: 700;
}

.cs-t-setting-line {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.cs-t-field small {
  color: #a9c2b2;
  font-size: 12px;
  font-weight: 500;
}

.cs-t-field input,
.cs-t-field textarea,
.cs-t-color input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f5fff2;
  background: #0c0f10;
  padding: 8px 10px;
}

.cs-t-field textarea {
  min-height: 82px;
  resize: vertical;
}

.cs-t-field-grid,
.cs-t-switch-grid,
.cs-t-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cs-t-color {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
}

.cs-t-color input[type="color"] {
  padding: 3px;
}

.cs-t-range-text {
  color: #a9c2b2;
  font-size: 12px;
}

.cs-t-range {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: #2a3134;
}

.cs-t-range::before {
  content: "";
  position: absolute;
  inset: 0 34% 0 24%;
  border-radius: inherit;
  background: var(--green);
}

.cs-t-range i {
  position: absolute;
  top: 50%;
  display: block;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--green);
  border-radius: 50%;
  background: white;
}

.cs-t-process-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-t-process-body {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.cs-t-export-note,
.cs-t-process-summary {
  border: 1px solid rgba(169, 194, 178, 0.14);
  border-radius: 10px;
  color: #a9c2b2;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.cs-t-process-summary {
  display: grid;
  gap: 8px;
}

.cs-t-process-summary div {
  display: flex;
  justify-content: space-between;
  border-radius: 8px;
  color: #dcebdd;
  background: rgba(255, 255, 255, 0.03);
}

.cs-t-process-summary strong {
  color: #f7fff5;
}

.cs-t-process-card .primary-button {
  min-height: 40px;
  width: 100%;
  color: #071007;
  background: var(--green);
}

.cs-t-process-card .primary-button:disabled {
  color: #7b8980;
  background: #202527;
}

.cs-t-info-grid {
  align-items: stretch;
}

.cs-t-info-card {
  display: grid;
  align-content: start;
  gap: 8px;
  background: rgba(17, 21, 23, 0.72);
}

.cs-formatos-page {
  display: grid;
  gap: 18px;
}

.cs-f-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.cs-f-heading-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #35530f;
  border-radius: 10px;
  color: var(--green);
  background: #19240f;
  font-size: 20px;
}

.cs-f-heading h1 {
  color: #f7fff5;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cs-f-heading p,
.cs-f-heading > span,
.cs-f-template-panel header p,
.cs-f-preview-panel header p,
.cs-f-editor-empty span,
.cs-f-selected-template p,
.cs-f-accordion button span,
.cs-f-template-copy small,
.cs-f-empty-preview span,
.cs-f-upload span,
.cs-f-process small {
  color: #a9c2b2;
  font-size: 12px;
  line-height: 1.45;
}

.cs-f-heading > span {
  align-self: start;
  margin-top: 10px;
  font-size: 14px;
}

.cs-f-workspace {
  display: grid;
  grid-template-columns: 294px minmax(520px, 1fr) 340px;
  gap: 12px;
  align-items: start;
}

.cs-f-template-panel,
.cs-f-preview-panel,
.cs-f-editor {
  min-height: 872px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.cs-f-template-panel,
.cs-f-preview-panel {
  padding: 12px;
}

.cs-f-editor {
  position: sticky;
  top: 76px;
  overflow: hidden;
}

.cs-f-template-panel header,
.cs-f-preview-panel header {
  margin-bottom: 18px;
}

.cs-f-template-panel h2,
.cs-f-preview-panel h2 {
  color: #f7fff5;
  font-size: 14px;
  font-weight: 800;
}

.cs-f-template-panel input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dcebdd;
  background: #0c0f10;
  padding: 0 12px;
}

.cs-f-template-list {
  display: grid;
  max-height: 809px;
  overflow: auto;
  gap: 6px;
  margin-top: 12px;
  padding-right: 2px;
}

.cs-f-template {
  display: flex;
  min-height: 118px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(169, 194, 178, 0.16);
  border-radius: 8px;
  color: #f6fff2;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.cs-f-template:hover,
.cs-f-template.active {
  border-color: rgba(185, 255, 56, 0.55);
  background: rgba(185, 255, 56, 0.08);
}

.cs-f-template-thumb {
  display: grid;
  width: 66px;
  min-height: 92px;
  flex: 0 0 auto;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  border-radius: 7px;
  color: #f8fff3;
  background: #11181a;
  padding: 7px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.1;
}

.cs-f-template-thumb b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-f-thumb-gossip,
.cs-f-thumb-news {
  background: linear-gradient(160deg, #f3f4ee 0 45%, #c6ff35 45% 100%);
  color: #071007;
}

.cs-f-thumb-pov,
.cs-f-thumb-result {
  background: linear-gradient(160deg, #23303a, #101415);
}

.cs-f-thumb-cinema {
  background: linear-gradient(#050505 0 24%, #34373a 24% 76%, #050505 76% 100%);
}

.cs-f-thumb-green {
  background: #1f5c25;
}

.cs-f-template-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.cs-f-template-copy strong {
  color: #f7fff5;
  font-size: 13px;
}

.cs-f-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cs-f-badges em {
  border: 1px solid rgba(169, 194, 178, 0.18);
  border-radius: 6px;
  color: #b8c9be;
  padding: 2px 6px;
  font-size: 10px;
  font-style: normal;
}

.cs-f-template-count {
  margin-top: 10px;
  color: #a9c2b2;
  text-align: center;
  font-size: 11px;
}

.cs-f-canvas {
  position: relative;
  min-height: 468px;
  border: 1px solid rgba(169, 194, 178, 0.12);
  border-radius: 10px;
  background: #090b0c;
}

.cs-f-empty-preview {
  display: grid;
  height: 100%;
  min-height: 468px;
  place-items: center;
  align-content: center;
  color: #a9c2b2;
  text-align: center;
}

.cs-f-empty-preview p {
  color: #a9c2b2;
  font-weight: 800;
}

.cs-f-active-preview {
  position: relative;
  display: grid;
  min-height: 468px;
  place-items: center;
  padding: 16px;
}

.cs-f-active-preview[hidden],
.cs-f-empty-preview[hidden],
.cs-f-source[hidden],
.cs-f-source-pane[hidden],
.cs-f-video-info[hidden],
.cs-f-editor-active[hidden],
.cs-f-editor-empty[hidden],
.cs-f-process[hidden],
.cs-f-generate[hidden] {
  display: none;
}

.cs-f-preview-help {
  position: absolute;
  left: 16px;
  top: 16px;
  color: #a9c2b2;
  font-size: 12px;
}

.cs-f-reset {
  position: absolute;
  right: 16px;
  top: 16px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dcebdd;
  background: #151a1d;
  padding: 0 12px;
  font-weight: 800;
}

.cs-f-phone {
  display: grid;
  width: min(270px, 45%);
  min-width: 230px;
  gap: 8px;
}

.cs-f-video-surface {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  background: linear-gradient(160deg, #242a2f, #0c1011 58%, #172e18);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
}

.cs-f-video-grain {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 60%, rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px);
  opacity: 0.55;
}

.cs-f-overlay {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 35%;
  display: grid;
  gap: 10px;
  text-align: center;
}

.cs-f-overlay strong,
.cs-f-overlay span {
  border-radius: 8px;
  color: #0a0d0d;
  background: #f4f7f1;
  padding: 8px;
  font-size: 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cs-f-overlay span {
  color: #f7fff5;
  background: #101415;
  font-size: 13px;
}

.cs-f-video-bar {
  display: flex;
  justify-content: space-between;
  color: #cbd8cf;
  font-size: 12px;
}

.cs-f-source {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cs-f-source-tabs,
.cs-f-library-tabs {
  display: grid;
  gap: 3px;
  border-radius: 8px;
  background: #151a1d;
  padding: 3px;
}

.cs-f-source-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-f-library-tabs {
  width: max-content;
  grid-template-columns: repeat(4, max-content);
}

.cs-f-source-tabs button,
.cs-f-library-tabs button {
  min-height: 25px;
  border: 0;
  border-radius: 6px;
  color: #a9c2b2;
  background: transparent;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.cs-f-source-tabs button.active,
.cs-f-library-tabs button.active {
  color: #f8fff5;
  background: #0b0e0f;
}

.cs-f-upload {
  display: grid;
  width: 100%;
  min-height: 66px;
  place-items: center;
  align-content: center;
  border: 1px dashed rgba(169, 194, 178, 0.24);
  border-radius: 10px;
  color: #f8fff5;
  background: #111517;
  padding: 12px;
}

.cs-f-library-list {
  display: grid;
  gap: 10px;
  min-height: 220px;
}

.cs-f-library-video {
  position: relative;
  display: grid;
  width: 268px;
  min-height: 220px;
  align-content: end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #f7fff5;
  background: linear-gradient(160deg, #263135, #0c0f10 56%, #2c3819);
  padding: 12px;
  text-align: left;
}

.cs-f-library-video strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.cs-f-empty-library {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: #a9c2b2;
}

.cs-f-video-info {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111517;
  padding: 12px;
}

.cs-f-video-info strong {
  overflow-wrap: anywhere;
  color: #f8fff5;
  font-size: 13px;
}

.cs-f-video-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cs-f-video-info span {
  border: 1px solid rgba(169, 194, 178, 0.18);
  border-radius: 999px;
  color: #a9c2b2;
  padding: 3px 8px;
  font-size: 11px;
}

.cs-f-editor-empty {
  display: grid;
  min-height: 872px;
  place-items: center;
  align-content: center;
  padding: 20px;
  text-align: center;
}

.cs-f-editor-empty p {
  color: #f7fff5;
  font-weight: 800;
}

.cs-f-editor-active {
  display: grid;
  min-height: 872px;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px;
}

.cs-f-selected-template {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0 20px;
}

.cs-f-selected-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--green);
  background: #1d2b10;
}

.cs-f-selected-template div div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.cs-f-selected-template strong {
  color: #f7fff5;
  font-size: 16px;
}

.cs-f-selected-template span {
  border: 1px solid rgba(185, 255, 56, 0.25);
  border-radius: 999px;
  color: #b9ff38;
  background: rgba(185, 255, 56, 0.08);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}

.cs-f-accordion {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.cs-f-accordion > button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  color: #f7fff5;
  background: transparent;
  padding: 12px;
  text-align: left;
}

.cs-f-accordion > button strong {
  flex: 1;
}

.cs-f-accordion > div {
  display: grid;
  gap: 14px;
  padding: 0 12px 12px;
}

.cs-f-accordion label {
  display: grid;
  gap: 8px;
  color: #dcebdd;
  font-size: 13px;
  font-weight: 800;
}

.cs-f-accordion input,
.cs-f-accordion textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f7fff5;
  background: #0c0f10;
  padding: 9px 10px;
}

.cs-f-accordion textarea {
  min-height: 80px;
  resize: vertical;
}

.cs-f-ai-box {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.cs-f-ai-results {
  display: grid;
  gap: 8px;
}

.cs-f-ai-results button {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(185, 255, 56, 0.22);
  border-radius: 8px;
  color: #f7fff5;
  background: rgba(185, 255, 56, 0.06);
  padding: 10px;
  text-align: left;
}

.cs-f-ai-results span {
  color: #a9c2b2;
  font-size: 12px;
}

.cs-f-generate {
  align-self: end;
  min-height: 40px;
  width: 100%;
}

.cs-f-process {
  display: grid;
  gap: 8px;
  align-self: end;
  border: 1px solid rgba(185, 255, 56, 0.25);
  border-radius: 10px;
  color: #dcebdd;
  background: rgba(185, 255, 56, 0.07);
  padding: 12px;
}

.cs-f-process div {
  display: flex;
  justify-content: space-between;
  color: #f7fff5;
  font-weight: 800;
}

.cs-f-process p {
  color: #cfe0d4;
  font-size: 13px;
}

@media (max-width: 1500px) {
  .cs-f-workspace {
    grid-template-columns: 294px minmax(0, 1fr);
  }

  .cs-f-editor {
    position: static;
    grid-column: 1 / -1;
    min-height: auto;
  }

  .cs-f-editor-empty {
    min-height: 220px;
  }

  .cs-f-editor-active {
    min-height: auto;
  }
}

@media (max-width: 1180px) {
  .cs-t-heading {
    flex-direction: column;
  }

  .cs-t-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cs-t-layer-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cs-t-selected-card,
  .cs-t-field-grid,
  .cs-t-switch-grid,
  .cs-t-info-grid,
  .cs-f-workspace {
    grid-template-columns: 1fr;
  }

  .cs-f-template-panel,
  .cs-f-preview-panel,
  .cs-f-editor {
    min-height: auto;
  }

  .cs-f-template-list {
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .cs-f-heading {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .cs-f-heading > span {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .cs-f-phone {
    width: min(270px, 100%);
    min-width: 0;
  }

  .cs-f-library-tabs,
  .cs-f-source-tabs {
    display: flex;
    overflow-x: auto;
  }

  .cs-f-library-video {
    width: 100%;
  }

  .cs-t-heading p {
    display: block;
  }

  .cs-t-head-actions,
  .cs-t-preset-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cs-t-mode,
  .cs-t-local,
  .cs-t-preset-row button {
    width: 100%;
  }

  .cs-t-source-tabs,
  .cs-t-library-tabs,
  .cs-t-layer-tabs {
    display: flex;
    overflow-x: auto;
  }

  .cs-t-source-tabs button,
  .cs-t-library-tabs button,
  .cs-t-layer-tabs button {
    flex: 0 0 auto;
    min-width: 130px;
  }

  .cs-t-upload-card,
  .cs-t-card,
  .cs-t-layer-card {
    padding: 18px;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  padding: 20px;
}

.flow-modal {
  width: min(720px, 100%);
  max-height: 86vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #101416;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.flow-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.flow-modal-head h2 {
  font-size: 20px;
}

.flow-modal-head p,
.flow-note {
  margin-top: 8px;
  color: #adc7b5;
  font-size: 14px;
  line-height: 1.5;
}

.modal-close {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c5d4ca;
  background: #151a1d;
  padding: 8px 12px;
}

.flow-modal-body {
  padding: 22px;
}

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

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

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

.flow-choice-grid button,
.ai-card,
.builder-palette button {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
  background: #151a1d;
  padding: 16px;
  text-align: left;
}

.quiz-start-choice {
  position: relative;
  min-height: 118px;
}

.quiz-start-choice b {
  width: max-content;
  border: 1px solid rgba(191, 255, 48, 0.32);
  border-radius: 999px;
  color: var(--green);
  background: rgba(191, 255, 48, 0.08);
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1;
}

.quiz-start-choice strong {
  font-size: 15px;
}

.quiz-start-choice em {
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.flow-choice-grid span,
.ai-card span,
.builder-palette span {
  color: #a9c2b2;
  font-size: 12px;
  line-height: 1.4;
}

.flow-field {
  display: grid;
  gap: 8px;
  color: #d8e6dc;
  font-size: 13px;
  font-weight: 700;
}

.flow-field input,
.flow-field textarea,
.flow-field select,
.tracking-form input,
.tracking-form textarea,
.tracking-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f5f7f4;
  background: #111517;
  padding: 10px 12px;
}

.flow-field textarea,
.tracking-form textarea {
  min-height: 84px;
  resize: vertical;
}

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

.publish-callout {
  border: 1px solid rgba(191, 255, 48, 0.22);
  border-radius: 8px;
  color: #cfe1d3;
  background: rgba(191, 255, 48, 0.07);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
}

.flow-actions,
.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.clone-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.clone-progress span {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #cce2d2;
  background: #111517;
  padding: 9px 11px;
  font-size: 12px;
}

.clone-progress span.active {
  border-color: rgba(191, 255, 48, 0.48);
  color: var(--green);
  background: rgba(191, 255, 48, 0.08);
}

.clone-progress span.done::before {
  content: "✓ ";
  color: var(--green);
}

.clone-progress span.error {
  border-color: rgba(255, 107, 107, 0.48);
  color: #ff9b9b;
  background: rgba(255, 107, 107, 0.08);
}

.danger-button {
  color: #160707 !important;
  background: #ff6b6b !important;
}

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

.quiz-metrics-grid article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #151a1d;
  padding: 14px;
}

.quiz-metrics-grid span {
  color: #a9c2b2;
  font-size: 12px;
}

.quiz-metrics-grid strong {
  color: #f6fff2;
  font-size: 24px;
}

.quiz-metrics-chart {
  display: flex;
  height: 168px;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0f10;
  padding: 16px;
}

.quiz-metrics-chart div {
  display: grid;
  min-width: 78px;
  align-content: end;
  border-radius: 8px 8px 0 0;
  color: #081006;
  background: linear-gradient(180deg, #c5ff44, #7cc41d);
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
}

.local-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  border: 1px solid #3b541c;
  border-radius: 10px;
  color: var(--green);
  background: #17220e;
  padding: 12px 16px;
  font-weight: 700;
}

.local-page-thumb {
  display: grid;
  place-items: center;
  color: #0d1605;
  background: linear-gradient(135deg, #f4f5ef, #c1ff3d);
  font-size: 24px;
}

.clone-page-thumb,
.image-page-thumb {
  display: block;
  padding: 0;
  background-color: #f7f7f4;
  background-position: center top;
  background-size: cover;
}

.clone-page-thumb .status-badge,
.image-page-thumb .status-badge {
  z-index: 3;
}

.clone-thumb-browser {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f7f7f4;
}

.clone-thumb-browser::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.clone-thumb-browser iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1320px;
  height: 820px;
  border: 0;
  background: white;
  pointer-events: none;
  transform: scale(0.39);
  transform-origin: top left;
}

.builder-dropdown {
  position: absolute;
  right: 14px;
  z-index: 12;
  display: grid;
  width: min(270px, calc(100vw - 32px));
  gap: 4px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111517;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.builder-dropdown button {
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  color: #f5f7f4;
  background: transparent;
  padding: 11px;
  text-align: left;
}

.builder-dropdown button:hover {
  background: #1a2023;
}

.builder-dropdown span {
  color: #9fb7a8;
  font-size: 12px;
}

.editor-body {
  min-height: 100vh;
  overflow: hidden;
}

.page-editor-app {
  min-height: 100vh;
  background: var(--page);
}

.page-editor-global {
  position: sticky;
  top: 0;
  z-index: 8;
  margin-left: 0;
}

.page-editor-shell {
  display: grid;
  min-height: calc(100vh - 64px);
  grid-template-columns: minmax(0, 1fr) 360px;
}

.page-editor-main {
  min-width: 0;
  overflow: auto;
}

.page-editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  min-height: 60px;
  grid-template-columns: auto minmax(220px, 420px) 44px 44px auto auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  background: #080a0b;
  padding: 10px 18px;
}

.page-editor-side {
  overflow: auto;
  border-left: 1px solid var(--line-soft);
  background: #080a0b;
  padding: 18px;
}

.page-editor-side h2 {
  margin: 18px 0 8px;
  font-size: 14px;
  text-transform: uppercase;
}

.page-editor-side p {
  color: #a9c2b2;
  font-size: 13px;
  line-height: 1.5;
}

.page-device-tabs {
  justify-content: flex-start;
  padding: 12px 18px;
}

.page-device-tabs button:last-child {
  margin-left: auto;
}

.page-preview-frame {
  display: grid;
  min-height: calc(100vh - 150px);
  justify-items: center;
  padding: 18px;
}

.page-preview-frame.mobile-frame .canvas-page {
  width: min(390px, calc(100% - 20px));
}

.page-builder-canvas {
  min-height: 620px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.visual-clone-canvas {
  width: min(1180px, calc(100% - 28px));
  min-height: 760px;
  overflow: hidden;
  border-color: #d9e0da;
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.visual-clone-shell {
  display: grid;
  min-height: 760px;
  background: #fff;
}

.visual-clone-frame {
  width: 100%;
  min-height: 1000px;
  border: 0;
  background: #fff;
}

.page-preview-frame.mobile-frame .visual-clone-canvas {
  width: min(390px, calc(100% - 20px));
}

.page-preview-frame.mobile-frame .visual-clone-frame {
  min-height: 820px;
}

.clone-mode-note {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(191, 255, 48, 0.24);
  border-radius: 10px;
  background: rgba(191, 255, 48, 0.08);
  padding: 12px;
}

.clone-mode-note strong {
  color: var(--green);
}

.clone-mode-note span {
  color: #c4d8ca;
  font-size: 12px;
  line-height: 1.45;
}

.editor-shell {
  display: grid;
  height: 100vh;
  min-height: 100vh;
  grid-template-columns: 300px minmax(0, 1fr) 340px;
  background: var(--page);
}

.quiz-editor-shell {
  grid-template-columns: 300px minmax(0, 1fr) 380px;
}

.funnel-editor-shell {
  grid-template-columns: 300px minmax(0, 1fr);
}

.editor-left,
.editor-right {
  min-height: 0;
  max-height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line-soft);
  background: #080a0b;
  padding: 18px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.editor-right {
  border-right: 0;
  border-left: 1px solid var(--line-soft);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #b9ceb9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.editor-title-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f5f7f4;
  background: #111517;
  padding: 0 12px;
  font-weight: 800;
}

.editor-left h2,
.editor-right h2 {
  margin: 18px 0 8px;
  font-size: 14px;
  text-transform: uppercase;
}

.editor-left p,
.editor-right p {
  color: #a9c2b2;
  font-size: 13px;
  line-height: 1.5;
}

.builder-palette {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.editor-stage {
  min-width: 0;
  min-height: 0;
  max-height: 100vh;
  overflow: auto;
}

.editor-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: #080a0b;
  padding: 12px 18px;
}

.editor-topbar > div {
  display: grid;
  gap: 4px;
}

.editor-topbar a {
  color: #a9c2b2;
  font-size: 12px;
  text-decoration: none;
}

.device-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.device-tabs button,
.editor-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #bfd4c5;
  background: #151a1d;
  padding: 8px 12px;
}

.device-tabs .active,
.editor-tabs .active,
.selected-option {
  border-color: #516f24;
  color: var(--green);
  background: #1d290f;
}

.canvas-page {
  width: min(760px, calc(100% - 36px));
  min-height: 680px;
  margin: 0 auto 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f8f4;
  padding: 28px;
  color: #111;
}

.canvas-block {
  border: 1px solid #d3d7d1;
  border-radius: 10px;
  background: white;
  padding: 18px;
  margin-bottom: 14px;
}

.page-block {
  cursor: pointer;
}

.page-block.active {
  outline: 2px solid #9dff2f;
  outline-offset: 2px;
}

.page-block h1 {
  margin: 0;
  color: #111;
  font-size: 42px;
  line-height: 1.05;
}

.page-block p {
  color: #28342b;
  line-height: 1.6;
}

.button-block button,
.form-block button,
.price-block button {
  border: 0;
  border-radius: 999px;
  color: #071004;
  background: #b9ff39;
  padding: 12px 22px;
  font-weight: 800;
}

.media-placeholder.light,
.video-placeholder {
  display: grid;
  min-height: 150px;
  place-items: center;
  border: 1px dashed #b9c0b6;
  border-radius: 12px;
  color: #57645b;
  background: #f1f3ef;
  text-align: center;
}

.video-placeholder {
  color: white;
  background: #15191c;
}

.divider-block hr {
  border: 0;
  border-top: 1px solid #cfd5cc;
}

.spacer-block {
  display: grid;
  min-height: 72px;
  place-items: center;
  color: #819082;
  background: #f3f5f1;
}

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

.form-block input {
  min-height: 42px;
  border: 1px solid #cfd5cc;
  border-radius: 8px;
  padding: 10px;
}

.counter-block,
.testimonial-block,
.faq-block,
.price-block {
  display: grid;
  gap: 8px;
}

.counter-block strong,
.price-block strong {
  font-size: 32px;
}

.canvas-block small {
  display: block;
  color: #69756d;
  margin-bottom: 8px;
}

.empty-editor {
  display: grid;
  min-height: 380px;
  place-items: center;
  color: #78907e;
  text-align: center;
}

.full {
  width: 100%;
}

.ai-card.active {
  border-color: #516f24;
  color: var(--green);
  background: #1d290f;
}

.step-type-menu {
  display: grid;
  max-height: 430px;
  overflow: auto;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111517;
  padding: 8px;
}

.step-type-menu[hidden] {
  display: none;
}

.step-type-menu button {
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 8px;
  color: #f5f7f4;
  background: transparent;
  padding: 10px;
  text-align: left;
}

.step-type-menu button:hover {
  background: #1a2023;
}

.step-type-menu span {
  color: #9fb7a8;
  font-size: 12px;
  line-height: 1.35;
}

.step-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.step-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: white;
  background: #151a1d;
  padding: 12px;
  text-align: left;
}

.step-list b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #263116;
  color: var(--green);
  font-size: 12px;
}

.step-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-list .active {
  border-color: #516f24;
  background: #1d290f;
}

.quiz-preview {
  display: grid;
  width: min(420px, calc(100% - 36px));
  min-height: 620px;
  justify-items: stretch;
  align-content: center;
  gap: 18px;
  margin: 0 auto 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--quiz-text, #f1f0ec);
  background: var(--quiz-card-bg, #111517);
  padding: 28px;
  text-align: center;
}

.quiz-player-body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: #0a0a0a;
}

.quiz-player-shell {
  display: grid;
  min-height: 100vh;
  align-items: start;
  justify-items: center;
  padding: 32px 0;
}

.quiz-player-shell .quiz-preview {
  margin-bottom: 0;
}

.quiz-preview.mobile-preview {
  width: min(360px, calc(100% - 36px));
  min-height: 680px;
}

.quiz-preview h1,
.quiz-preview h2 {
  color: var(--quiz-text, #f1f0ec);
  line-height: 1.08;
}

.quiz-preview.text-small h1 {
  font-size: 26px;
}

.quiz-preview.text-medium h1 {
  font-size: 32px;
}

.quiz-preview.text-large h1 {
  font-size: 40px;
}

.quiz-preview p {
  color: color-mix(in srgb, var(--quiz-text, #f1f0ec) 72%, transparent);
}

.quiz-logo {
  width: min(128px, 46%);
  max-height: 44px;
  justify-self: center;
  object-fit: contain;
}

.quiz-step-image {
  width: 100%;
  max-height: 360px;
  border-radius: 16px;
  object-fit: cover;
}

.quiz-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.quiz-video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.quiz-smart-video {
  aspect-ratio: 9 / 16;
  max-width: 400px;
  margin-inline: auto;
  background: #050505;
}

.quiz-smart-video vturb-smartplayer {
  display: block;
  width: 100%;
  min-height: 100%;
}

.quiz-audio-box {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.quiz-audio-box audio {
  width: 100%;
}

.quiz-gallery {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quiz-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.quiz-preview > button,
.quiz-preview .quiz-choice {
  border: 0;
  border-radius: var(--quiz-button-radius, 999px);
  color: #071004;
  background: var(--quiz-accent, var(--green));
  padding: var(--quiz-button-padding, 12px 28px);
  font-weight: 800;
}

.preview-options,
.lead-form-preview,
.measure-preview {
  display: grid;
  gap: 10px;
  width: 100%;
}

.lead-form-preview.inline-fields {
  margin-top: 4px;
  margin-bottom: 6px;
}

.quiz-preview .quiz-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  color: var(--quiz-text, #f1f0ec);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.quiz-preview .quiz-choice.has-image {
  min-height: 84px;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0 18px 0 0;
  text-align: left;
}

.quiz-preview .quiz-choice.has-image img {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  object-fit: cover;
}

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

.preview-options.image-grid .quiz-choice.has-image {
  display: grid;
  min-height: 194px;
  align-content: stretch;
  gap: 0;
  padding: 0;
}

.preview-options.image-grid .quiz-choice.has-image img {
  width: 100%;
  height: 145px;
  flex: none;
}

.preview-options.image-grid .quiz-choice.has-image span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 12px;
}

.quiz-loading-preview {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.quiz-loading-preview strong {
  font-size: 28px;
}

.quiz-loading-preview em {
  color: var(--quiz-accent, var(--green));
  font-style: normal;
  font-weight: 800;
}

.quiz-loading-bar {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
}

.quiz-loading-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--quiz-accent, var(--green));
}

.quiz-countdown {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: center;
  color: var(--quiz-text, #f1f0ec);
  background: color-mix(in srgb, var(--quiz-accent, #b9ff39) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--quiz-accent, #b9ff39) 40%, transparent);
}

.quiz-countdown span {
  font-size: 0.88rem;
  font-weight: 700;
}

.quiz-countdown strong {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--quiz-accent, var(--green));
}

.quiz-result-chart {
  position: relative;
  display: grid;
  gap: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
  padding: 10px;
}

.quiz-result-chart svg {
  width: 100%;
  height: auto;
}

.quiz-result-chart strong {
  position: absolute;
  left: 52%;
  top: 41%;
  border-radius: 8px;
  color: #9a7920;
  background: #fff1b8;
  padding: 4px 9px;
  font-size: 12px;
}

.quiz-result-chart.is-bars {
  gap: 12px;
}

.quiz-result-chart.is-bars p {
  margin: 0;
  color: var(--quiz-text, #f1f0ec);
  font-weight: 800;
}

.quiz-chart-bars {
  display: grid;
  min-height: 190px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.quiz-chart-bars div {
  display: grid;
  min-width: 0;
  height: 100%;
  align-items: end;
  gap: 7px;
  text-align: center;
}

.quiz-chart-bars span {
  display: block;
  min-height: 16px;
  border-radius: 12px 12px 4px 4px;
  background: color-mix(in srgb, var(--quiz-accent, var(--green)) 55%, #ffffff 20%);
}

.quiz-chart-bars .featured span {
  background: var(--quiz-accent, var(--green));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--quiz-accent, var(--green)) 20%, transparent);
}

.quiz-chart-bars strong {
  position: static;
  display: inline-flex;
  justify-self: center;
  color: #0d1408;
  background: var(--quiz-accent, var(--green));
}

.quiz-chart-bars em {
  overflow-wrap: anywhere;
  color: color-mix(in srgb, var(--quiz-text, #f1f0ec) 72%, transparent);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: color-mix(in srgb, var(--quiz-text, #f1f0ec) 65%, transparent);
  font-size: 11px;
}

.quiz-run-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.quiz-run-header .quiz-logo {
  margin: 0 auto;
}

.quiz-run-header span {
  color: color-mix(in srgb, var(--quiz-text, #f1f0ec) 68%, transparent);
  font-size: 12px;
  font-weight: 800;
}

.quiz-back-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--quiz-text, #f1f0ec);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.quiz-back-button:disabled {
  opacity: 0.25;
}

.quiz-run-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.quiz-run-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--quiz-accent, var(--green)), color-mix(in srgb, var(--quiz-accent, var(--green)) 58%, #ffffff));
  transition: width 0.25s ease;
}

.quiz-preview .quiz-choice.selected-option {
  border-color: var(--quiz-accent, var(--green));
  background: color-mix(in srgb, var(--quiz-accent, var(--green)) 22%, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 2px var(--quiz-accent, var(--green));
}

.quiz-preview-notice {
  margin: 0;
  border-radius: 12px;
  color: #071004 !important;
  background: var(--quiz-accent, var(--green));
  padding: 10px 12px;
  font-weight: 800;
}

.preview-field {
  display: grid;
  gap: 6px;
  color: #cfe0d4;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.preview-field input,
.measure-preview input,
.preview-input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: var(--quiz-text, #f1f0ec);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

.preview-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfe0d4;
  font-size: 13px;
}

.lead-form-preview button {
  border: 0;
  border-radius: var(--quiz-button-radius, 999px);
  color: #071004;
  background: var(--quiz-accent, var(--green));
  padding: var(--quiz-button-padding, 12px 28px);
  font-weight: 800;
}

.result-kicker {
  margin: 0;
  color: var(--quiz-accent, var(--green)) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.result-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #dcebdd;
  text-align: left;
}

.media-placeholder {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  color: #b8cdbd;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
}

.preview-range {
  width: 100%;
}

.editor-panel {
  display: grid;
  gap: 14px;
  padding-bottom: 40px;
}

.panel-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.editor-section,
.option-editor,
.field-grid,
.assistant-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111517;
  padding: 12px;
}

.editor-section {
  display: grid;
  gap: 12px;
}

.editor-section h3 {
  font-size: 13px;
}

.editor-subsection,
.accordion-row,
.toggle-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d8e6dc;
  background: #151a1d;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
}

.accordion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-row::after {
  content: "›";
  color: #8ca197;
}

.segmented,
.preset-grid,
.theme-grid,
.mini-actions,
.color-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button,
.preset-grid button,
.theme-grid button,
.mini-actions button,
.preview-button-example,
.option-editor button,
.field-grid button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #cfe0d4;
  background: #151a1d;
  padding: 8px 10px;
}

.option-editor {
  display: grid;
  gap: 8px;
}

.option-editor.inline {
  grid-template-columns: minmax(0, 1fr) auto;
}

.option-editor input,
.field-grid input,
.field-grid select,
.editor-section > input,
.assistant-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #f5f7f4;
  background: #0c0f10;
  padding: 9px 10px;
}

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

.field-grid label {
  display: grid;
  gap: 6px;
  color: #b9ceb9;
  font-size: 12px;
  font-weight: 700;
}

.toggle-row.active {
  border-color: #516f24;
  color: var(--green);
  background: #1d290f;
}

.toggle-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfe0d4;
  font-size: 13px;
}

.color-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
}

.color-line input[type="color"] {
  min-height: 40px;
  padding: 3px;
}

.flow-field span {
  color: #9fb7a8;
  font-size: 12px;
  font-weight: 500;
}

.assistant-box {
  color: #dcebdd;
  line-height: 1.55;
}

.assistant-input {
  min-height: 110px;
  resize: vertical;
}

.settings-actions,
.settings-tabs,
.settings-row,
.navigator-tree {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-tabs {
  margin: 14px 0;
  border-bottom: 1px solid var(--line);
}

.settings-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  color: #bdd3c5;
  background: transparent;
  padding: 10px;
  font-weight: 700;
}

.settings-tabs button.active {
  color: white;
  border-color: var(--green);
}

.settings-row {
  align-items: center;
  justify-content: space-between;
}

.navigator-tree {
  display: grid;
}

.navigator-tree button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #dcebdd;
  background: #151a1d;
  padding: 10px 12px;
}

.page-settings-modal {
  width: min(760px, 100%);
}

.funnel-editor-page {
  display: grid;
  min-height: calc(100vh - 62px);
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: 18px;
}

.funnel-editor-bar {
  display: grid;
  min-height: 62px;
  grid-template-columns: 24px 22px 220px 82px max-content max-content;
  align-items: center;
  justify-content: start;
  gap: 9px;
  border-bottom: 1px solid var(--line-soft);
  background: #080a0b;
  padding: 12px 25px;
}

.funnel-back-icon,
.funnel-edit-icon {
  display: grid;
  width: 22px;
  min-height: 34px;
  place-items: center;
  color: #aebdb4;
  font-size: 17px;
  text-decoration: none;
}

.saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a9c2b2;
  font-size: 13px;
  font-weight: 500;
}

.saved-pill > span:first-child {
  color: #7df28a;
  font-size: 13px;
}

.funnel-editor-bar .primary-button,
.funnel-editor-bar .secondary-button {
  min-height: 34px;
  min-width: auto;
  justify-self: start;
  padding: 0 13px;
}

.funnel-editor-bar .primary-button.active {
  color: var(--green);
  background: #1d290f;
}

.funnel-workspace {
  display: grid;
  min-height: 0;
  grid-template-columns: 225px minmax(0, 1fr);
}

.funnel-elements {
  overflow: auto;
  border-right: 1px solid var(--line-soft);
  background: #0b1011;
  padding: 10px 12px 18px;
}

.funnel-elements h3 {
  margin: 0 0 11px;
  color: #b8c8bd;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.funnel-elements button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #eef5ef;
  background: transparent;
  padding: 5px 3px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.funnel-elements button + button {
  margin-top: 4px;
}

.funnel-elements button:hover {
  border-color: var(--line);
  background: #151a1d;
}

.funnel-element-icon,
.funnel-node-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #0a0d0d;
  font-size: 16px;
  font-weight: 900;
}

.funnel-element-icon {
  width: 29px;
  height: 29px;
}

.element-plus {
  margin-left: auto;
  color: #9aa8a0;
  font-size: 20px;
  font-weight: 400;
}

.is-blue {
  background: #4ca6ff;
}

.is-mint {
  background: #38d7a0;
}

.is-purple {
  background: #9b78ff;
}

.is-pink {
  background: #ff6cab;
}

.is-yellow {
  background: #ffd85a;
}

.is-lime {
  background: #c9ff49;
}

.is-green {
  background: #3cf279;
}

.is-orange {
  background: #ff8146;
}

.is-cyan {
  background: #42d9f4;
}

.is-coral {
  background: #ff8847;
}

.funnel-canvas {
  position: relative;
  overflow: auto;
  min-height: calc(100vh - 124px);
  background-color: #0a0e0f;
  background-image: radial-gradient(rgba(142, 162, 150, 0.22) 1px, transparent 1.2px);
  background-position: 7px 6px;
  background-size: 24px 24px;
}

.funnel-node {
  position: absolute;
  display: grid;
  min-width: 150px;
  gap: 6px;
  border: 1px solid #3b541c;
  border-radius: 12px;
  color: white;
  background: #111517;
  padding: 16px;
}

.funnel-node span {
  color: #a9c2b2;
  font-size: 12px;
}

.funnel-empty-real {
  display: grid;
  min-height: 100%;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: #a9c2b2;
  text-align: center;
}

.funnel-empty-real strong {
  color: #f5f7f4;
  font-size: 18px;
}

.funnel-canvas-head {
  position: absolute;
  left: 36px;
  top: 22px;
  display: grid;
  gap: 5px;
}

.funnel-canvas-head strong {
  color: #f5f8f4;
  font-size: 15px;
}

.funnel-canvas-head span {
  color: #a9c2b2;
  font-size: 12px;
}

.funnel-node-real {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 240px;
  min-height: 63px;
  align-items: center;
  border: 1px solid #253033;
  border-radius: 10px;
  color: white;
  background: #111718;
  padding: 9px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.funnel-node-real.active {
  border-color: #20c290;
  box-shadow: 0 0 0 2px rgba(32, 194, 144, 0.14);
}

.funnel-node-real.dragging {
  z-index: 6;
  border-color: rgba(193, 255, 61, 0.65);
  cursor: grabbing;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(193, 255, 61, 0.12);
}

.funnel-node-number {
  position: absolute;
  left: -14px;
  top: -18px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: #19220d;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.funnel-node-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.funnel-node-grip {
  width: 10px;
  color: #6f7f76;
  font-size: 13px;
  line-height: 0.7;
  overflow-wrap: anywhere;
}

.funnel-node-icon {
  width: 38px;
  height: 38px;
  font-size: 17px;
}

.funnel-node-main div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.funnel-node-main strong {
  overflow-wrap: anywhere;
  color: #f7faf7;
  font-size: 14px;
  line-height: 1.1;
}

.funnel-node-main em {
  color: #a9c2b2;
  font-size: 11px;
  font-style: normal;
}

.funnel-node-trash {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  color: #aebdb4;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.funnel-node-connect-button {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  color: transparent;
  background: transparent;
  cursor: pointer;
}

.funnel-end-label {
  position: absolute;
  left: 348px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
  border: 1px solid #6f8f27;
  border-radius: 999px;
  color: #d9ff67;
  background: #263515;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 700;
}

.funnel-flow-lines {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

.funnel-flow-line {
  fill: none;
  stroke: rgba(36, 170, 128, 0.72);
  stroke-dasharray: 6 8;
  stroke-linecap: round;
  stroke-width: 2;
}

.funnel-flow-dot {
  fill: #168d77;
  stroke: rgba(36, 170, 128, 0.18);
  stroke-width: 4;
}

.tracking-detail {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
}

.tracking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.tracking-form label {
  display: grid;
  gap: 8px;
  color: #d8e6dc;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .sidebar {
    width: 232px;
  }

  .app-shell {
    margin-left: 232px;
  }

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

  .tracker-grid,
  .funnel-map,
  .budget-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tracker-hero-side {
    width: 100%;
  }

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

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

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

  .choice-grid,
  .copy-options,
  .tool-layout,
  .format-layout,
  .stack-grid,
  .ab-detail-grid,
  .ab-real-grid,
  .ab-live-grid,
  .funnel-workspace {
    grid-template-columns: 1fr;
  }

  .funnel-elements {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .brand {
    height: 64px;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 16px;
  }

  .menu-label {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .account {
    display: none;
  }

  .app-shell {
    margin-left: 0;
  }

  .topbar,
  .headline-row,
  .tracker-hero,
  .funnel-editor-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .funnel-editor-bar {
    display: flex;
  }

  .topbar {
    height: auto;
    gap: 16px;
    padding: 18px;
  }

  .top-actions,
  .search {
    width: 100%;
  }

  .content {
    padding: 22px 18px 48px;
  }

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

  .tracker-grid,
  .funnel-map,
  .budget-metrics {
    grid-template-columns: 1fr;
  }

  .tracker-meta,
  .timeline-rates,
  .alerts-grid {
    grid-template-columns: 1fr;
  }

  .utm-actions,
  .budget-form,
  .meta-config-form,
  .meta-status-row,
  .meta-import-grid,
  .csv-import-actions,
  .confirm-actions,
  .decision-title-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .budget-form,
  .meta-config-form,
  .meta-status-row,
  .meta-import-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .utm-actions .primary-button,
  .utm-actions .secondary-button,
  .budget-form .primary-button,
  .budget-form .secondary-button,
  .meta-config-form .primary-button,
  .meta-config-form .secondary-button,
  .meta-status-row .secondary-button,
  .csv-import-actions .primary-button,
  .csv-import-actions .secondary-button,
  .confirm-actions .primary-button,
  .confirm-actions .secondary-button,
  .confirm-actions .danger-button,
  .decision-title-actions .secondary-button {
    width: 100%;
    flex-basis: auto;
  }

  .csv-mapping-grid {
    grid-template-columns: 1fr;
  }

  .timeline-flow {
    grid-template-columns: 1fr;
  }

  .timeline-flow > b {
    transform: rotate(0deg);
  }

  .tracker-card strong {
    font-size: 24px;
  }

  .tracker-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .tracker-actions .primary-button,
  .tracker-actions .secondary-button,
  .tracker-actions .danger-button,
  .tracker-actions .mock-badge {
    flex: 1;
  }

  .tracker-table {
    overflow-x: auto;
  }

  .tracker-table > div {
    min-width: 650px;
  }

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

  .quiz-grid,
  .funnel-grid,
  .template-grid,
  .plans-grid,
  .stats-grid,
  .template-list,
  .combine-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-line,
  .preset-row {
    flex-direction: column;
    display: flex;
  }

  .tabs {
    gap: 10px;
    overflow-x: auto;
  }

  .tab {
    white-space: nowrap;
  }

  .card-meta,
  .ab-row,
  .ab-detail-head,
  .ab-variation-row,
  .sales-panel,
  .ab-link-panel,
  .ab-status-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .ab-metric-grid,
  .ab-add-row,
  .sales-panel {
    grid-template-columns: 1fr;
  }

  .ab-period-tabs {
    overflow-x: auto;
  }

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

  .action-row,
  .page-card .action-row {
    grid-template-columns: 1fr;
  }

  .small-action {
    min-height: 38px;
  }

  .page-thumb {
    height: 210px;
    gap: 38px;
    padding: 0 34px;
  }

  .r7-logo {
    width: 142px;
    height: 142px;
    border-width: 22px;
    border-radius: 32px;
    font-size: 48px;
  }

  .s-logo {
    width: 126px;
    height: 126px;
    font-size: 58px;
  }

  .activity-panel,
  .steps-panel {
    padding: 18px;
  }
}
