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

.cvct-theme .app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px 12px;
  border-right: 1px solid var(--crm-line, var(--cvct-color-border));
  background: #ffffff;
  box-shadow: none;
}

.cvct-theme .app-main {
  min-width: 0;
  padding: 0;
  background: #ffffff;
}

.cvct-theme .app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--crm-line-soft, #e8edf3);
}

.cvct-theme .crm-sidebar-controls {
  display: none;
}

.cvct-theme .app-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cvct-theme .app-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 38px;
  border-radius: 12px;
  background: #fff1f2;
  color: var(--crm-red, var(--cvct-color-red));
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cvct-theme .app-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--crm-ink, var(--cvct-color-ink));
}

.cvct-theme .app-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--crm-line, var(--cvct-color-border));
  border-radius: 12px;
  background: #ffffff;
  color: var(--crm-ink, var(--cvct-color-ink));
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.cvct-theme .app-nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cvct-theme .app-nav {
  display: grid;
  gap: 8px;
}

.cvct-theme .app-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--crm-text, var(--cvct-color-text));
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.cvct-theme .app-nav-btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cvct-theme .app-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.cvct-theme .app-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cvct-theme .app-nav-btn:hover {
  border-color: #dbe4ee;
  background: #f8fafc;
  color: var(--crm-ink, var(--cvct-color-ink));
  transform: none;
}

.cvct-theme .app-nav-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.cvct-theme .app-nav-btn.is-active {
  border-color: rgba(214, 40, 40, 0.16);
  background: rgba(214, 40, 40, 0.09);
  color: var(--crm-red, var(--cvct-color-red));
  box-shadow: inset 4px 0 0 var(--crm-red, var(--cvct-color-red));
}

.cvct-theme .app-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--crm-red, var(--cvct-color-red));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.cvct-theme .app-nav-count[hidden] {
  display: none !important;
}

.cvct-theme .app-sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--crm-line-soft, #e8edf3);
}

.cvct-theme .app-sidebar-footer .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--crm-line, var(--cvct-color-border));
  border-radius: 12px;
  background: #ffffff;
  color: var(--crm-ink, var(--cvct-color-ink));
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

.cvct-theme .app-sidebar-footer .secondary:hover {
  background: #f8fafc;
  border-color: #d1d5db;
  color: var(--crm-ink, var(--cvct-color-ink));
}

.cvct-theme .dashboard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--crm-line, var(--cvct-color-border));
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.cvct-theme .dashboard-topbar h1 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cvct-theme .dashboard-topbar p {
  margin: 0;
  color: var(--crm-soft, var(--cvct-color-muted));
}

.cvct-theme .dashboard-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--crm-ink, var(--cvct-color-ink));
  font-weight: 700;
  white-space: nowrap;
}

.cvct-theme .dashboard-user-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.cvct-theme .topbar-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 150px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #d9e1ea;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.cvct-theme .topbar-action-btn:hover {
  border-color: #dbe4ee;
  background: #f8fafc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.cvct-theme .topbar-action-btn.btn-primary {
  border-color: var(--crm-red, var(--cvct-color-red));
  background: var(--crm-red, var(--cvct-color-red));
  color: #fff;
}

.cvct-theme .topbar-action-btn.btn-primary:hover {
  background: var(--crm-red-dark, var(--cvct-color-red-strong));
  border-color: var(--crm-red-dark, var(--cvct-color-red-strong));
}

.cvct-theme .pricing-toolbar-shell {
  padding-bottom: 8px;
}

.cvct-theme .pricing-toolbar-shell .modern-topbar-actions {
  flex-wrap: nowrap;
  gap: 10px;
}

.cvct-theme .pricing-toolbar-shell .modern-topbar-actions > * {
  flex: 0 0 auto;
}

.cvct-theme .pricing-toolbar-shell .sheet-actions-menu {
  display: inline-flex;
  align-items: stretch;
}

.cvct-theme .pricing-toolbar-shell .sheet-actions-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
    touch-action: manipulation;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .cvct-theme .app-shell {
    grid-template-columns: 1fr;
  }

  .cvct-theme .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: auto;
    gap: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .cvct-theme .app-brand {
    display: flex;
    min-height: 58px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--crm-line, var(--cvct-color-border));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  }

  .cvct-theme .crm-sidebar-controls {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--crm-line, var(--cvct-color-border));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  }

  .cvct-theme .app-brand-copy {
    display: none;
  }

  .cvct-theme .app-brand-mark {
    display: inline-flex;
    width: 44px;
    height: 34px;
    font-size: 0.72rem;
  }

  .cvct-theme .app-nav-toggle {
    display: inline-flex;
  }

  .cvct-theme .app-nav {
    display: none;
    gap: 6px;
    padding: 8px 12px 8px;
    border-bottom: 1px solid var(--crm-line, var(--cvct-color-border));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .cvct-theme .app-nav::-webkit-scrollbar {
    display: none;
  }

  .cvct-theme .app-nav-btn {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 0.88rem;
  }

  .cvct-theme .app-sidebar--menu-open .app-nav {
    display: grid;
  }

  .cvct-theme .app-sidebar-footer {
    display: none;
  }

  .cvct-theme .app-main {
    padding: 0;
  }

  .cvct-theme .pricing-toolbar-shell .modern-topbar-actions {
    flex-wrap: wrap;
  }

  .cvct-theme .pricing-toolbar-shell .topbar-action-btn,
  .cvct-theme .pricing-toolbar-shell .sheet-actions-menu > summary {
    width: auto;
    min-width: 150px;
    flex: 1 1 150px;
  }
}
