/*
 * Canvix authenticated account design system — checkpoint 16
 * Scope: body.canvix-account-shell
 * Primary accent: #38b6ff
 */

.canvix-account-shell {
  --cvx-dashboard-blue: #38b6ff;
  --cvx-dashboard-blue-dark: #139eea;
  --cvx-dashboard-blue-soft: #eaf8ff;
  --cvx-dashboard-ink: #111a2e;
  --cvx-dashboard-text: #34445f;
  --cvx-dashboard-muted: #7788a3;
  --cvx-dashboard-line: #e0e8f1;
  --cvx-dashboard-surface: #ffffff;
  --cvx-dashboard-bg: #fbfdff;
  --cvx-sidebar-width: 248px;
  background: var(--cvx-dashboard-bg) !important;
}

.canvix-account-shell,
.canvix-account-shell button,
.canvix-account-shell input,
.canvix-account-shell select,
.canvix-account-shell textarea {
  color: var(--cvx-dashboard-text);
}

/* ---------------------------------------------------------------
   Account shell
   --------------------------------------------------------------- */
.canvix-account-shell .navbar {
  min-height: 72px;
  padding: 0 22px;
  gap: 18px;
  border-bottom: 1px solid var(--cvx-dashboard-line);
  background: rgba(255, 255, 255, .98);
  box-shadow: none;
}

.canvix-account-shell .navbar .nav-left {
  flex: 0 0 calc(var(--cvx-sidebar-width) - 22px);
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 0;
}

.canvix-account-shell .navbar .logo svg {
  width: 176px !important;
  height: 38px !important;
}

.canvix-account-shell .navbar .right {
  gap: 12px;
}

.canvix-account-shell .canvix-billing-cluster {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.canvix-account-shell .canvix-billing-pill,
.canvix-account-shell .canvix-credit-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid #f5e5bb;
  border-radius: 11px;
  background: #fffaf0;
  color: #9a6500 !important;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.canvix-account-shell .canvix-billing-pill:hover,
.canvix-account-shell .canvix-credit-pill:hover {
  transform: translateY(-1px);
  border-color: #efd18c;
  background: #fff7e5;
  box-shadow: none;
}

.canvix-account-shell .canvix-billing-pill.is-upgrade {
  border-color: #bfe8ff;
  background: var(--cvx-dashboard-blue-soft);
  color: #087fbe !important;
}

.canvix-account-shell .canvix-billing-pill.is-pro {
  background: #fffaf0;
  color: #a46b00 !important;
}

.canvix-account-shell .canvix-credit-pill {
  color: #29354b !important;
}

.canvix-account-shell .canvix-billing-pill i,
.canvix-account-shell .canvix-credit-pill i {
  color: #f4a900;
}

.canvix-account-shell .profile-trigger {
  min-height: 42px;
  padding: 5px 11px 5px 6px;
  gap: 9px;
  border: 1px solid var(--cvx-dashboard-line);
  border-radius: 11px;
  background: #fff;
  color: var(--cvx-dashboard-ink);
  font-size: 13px;
  font-weight: 500;
}

.canvix-account-shell .profile-trigger:hover {
  border-color: #c8d8e8;
  background: #f9fcff;
}

.canvix-account-shell .profile-trigger .profile-img {
  width: 32px;
  height: 32px;
}

.canvix-account-shell .side-panel {
  width: var(--cvx-sidebar-width);
  padding: 18px 16px 20px;
  border-right: 1px solid #edf2f7;
  background: #fff;
  box-shadow: none !important;
  overflow-y: hidden;
  scrollbar-gutter: auto;
}

.canvix-account-shell .canvix-sidebar-create {
  display: none;
}

.canvix-account-shell .side-panel > ul {
  margin-top: 2px;
}

.canvix-account-shell .side-panel li {
  min-height: 54px;
  margin: 4px 0;
  border-radius: 12px;
  color: #53627c;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.canvix-account-shell .side-panel li a {
  min-height: 54px;
  padding: 0 18px;
  gap: 14px;
}

.canvix-account-shell .side-panel li i {
  width: 24px;
  color: #586b87;
  font-size: 19px;
}

.canvix-account-shell .side-panel li.active,
.canvix-account-shell .side-panel li:hover {
  background: linear-gradient(90deg, #edf8ff 0%, #e8f6ff 100%);
  color: #168fd5;
}

.canvix-account-shell .side-panel li.active i,
.canvix-account-shell .side-panel li:hover i {
  color: var(--cvx-dashboard-blue);
}

.canvix-account-shell .side-panel .badge-new {
  padding: 4px 8px;
  background: #ddf8eb;
  color: #15805c;
  font-size: 9px;
  font-weight: 600;
}

.canvix-account-shell .canvix-sidebar-upgrade {
  margin-top: auto;
  padding: 17px;
  border: 1px solid #dce9f3;
  border-radius: 15px;
  background: #fff;
}

.canvix-account-shell .canvix-sidebar-upgrade::after {
  display: none;
}

.canvix-account-shell .canvix-sidebar-upgrade-head {
  margin: 0;
  color: var(--cvx-dashboard-ink);
  font-size: 13px;
  font-weight: 600;
}

.canvix-account-shell .canvix-sidebar-upgrade-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #edf9ff;
  color: var(--cvx-dashboard-blue);
}

.canvix-account-shell .canvix-sidebar-upgrade p {
  margin: 13px 0 16px;
  color: #71809a;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}

.canvix-account-shell .side-panel .canvix-sidebar-upgrade-btn {
  min-height: 40px;
  border-radius: 9px;
  background: var(--cvx-dashboard-blue);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.canvix-account-shell .side-panel .canvix-sidebar-upgrade-btn:hover {
  background: var(--cvx-dashboard-blue-dark);
  box-shadow: none;
}

.canvix-account-shell main {
  margin-left: var(--cvx-sidebar-width);
  padding: 26px 40px 72px;
  background: var(--cvx-dashboard-bg);
}

.canvix-account-shell .nova-slot {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------
   Folders page
   --------------------------------------------------------------- */
.canvix-account-shell .canvix-dashboard {
  width: 100%;
  color: var(--cvx-dashboard-text);
}

.canvix-account-shell .canvix-dashboard-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.canvix-account-shell .canvix-dashboard-section + .canvix-dashboard-section,
.canvix-account-shell .canvix-team-section,
.canvix-account-shell .public-templates-wrap {
  margin-top: 42px;
}

.canvix-account-shell .canvix-dashboard-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}

.canvix-account-shell .canvix-folder-page-heading {
  margin-bottom: 24px;
}

.canvix-account-shell .canvix-dashboard-section-title h1,
.canvix-account-shell .canvix-dashboard-section-title h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  color: var(--cvx-dashboard-ink);
  letter-spacing: -.035em;
}

.canvix-account-shell .canvix-dashboard-section-title h1 {
  font-size: clamp(28px, 2.3vw, 38px);
  line-height: 1.12;
  font-weight: 600;
}

.canvix-account-shell .canvix-dashboard-section-title h2 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
}

.canvix-account-shell .canvix-dashboard-section-title p {
  margin: 8px 0 0;
  color: var(--cvx-dashboard-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
}

.canvix-account-shell .canvix-dashboard-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 31px;
  height: 31px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef8ff;
  color: #159fe9;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

/* Search, sort and primary action */
.canvix-account-shell .canvix-dashboard-folder-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 230px auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 26px;
}

.canvix-account-shell .canvix-folder-search-form {
  min-width: 0;
  margin: 0;
}

.canvix-account-shell .canvix-dashboard-search {
  position: relative;
  width: 100%;
}

.canvix-account-shell .canvix-dashboard-search > i {
  position: absolute;
  left: 17px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #62748e;
  font-size: 16px;
  pointer-events: none;
}

.canvix-account-shell .canvix-dashboard-search input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 48px;
  border: 1px solid #d9e3ed;
  border-radius: 13px;
  background: #fff;
  color: var(--cvx-dashboard-ink);
  box-shadow: 0 4px 14px rgba(34, 61, 91, .035);
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.canvix-account-shell .canvix-dashboard-search input::placeholder {
  color: #8b99ae;
}

.canvix-account-shell .canvix-dashboard-search input:focus {
  border-color: var(--cvx-dashboard-blue);
  box-shadow: 0 0 0 4px rgba(56, 182, 255, .12);
}

.canvix-account-shell .canvix-dashboard-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 3;
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: #f0f5f9;
  color: #73829a;
  cursor: pointer;
}

.canvix-account-shell .canvix-dashboard-search.has-value .canvix-dashboard-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.canvix-account-shell .canvix-dashboard-search-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.canvix-account-shell .canvix-dashboard-sort-wrap {
  position: relative;
  min-width: 0;
}

.canvix-account-shell .canvix-dashboard-sort-wrap > i:first-child {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #5b6e89;
  font-size: 15px;
  pointer-events: none;
}

.canvix-account-shell .canvix-dashboard-sort {
  width: 100%;
  height: 52px;
  padding: 0 42px 0 44px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d9e3ed;
  border-radius: 13px;
  background: #fff;
  color: #2c3950;
  box-shadow: 0 4px 14px rgba(34, 61, 91, .035);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.canvix-account-shell .canvix-sort-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #566a85;
  font-size: 13px;
  pointer-events: none;
}

.canvix-account-shell .canvix-create-folder-btn,
.canvix-account-shell .canvix-dashboard-primary-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  border: 1px solid var(--cvx-dashboard-blue);
  border-radius: 13px;
  background: var(--cvx-dashboard-blue);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(56, 182, 255, .18);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.canvix-account-shell .canvix-create-folder-btn i {
  font-size: 16px;
}

.canvix-account-shell .canvix-create-folder-btn:hover,
.canvix-account-shell .canvix-dashboard-primary-btn:hover {
  transform: translateY(-1px);
  background: var(--cvx-dashboard-blue-dark);
  border-color: var(--cvx-dashboard-blue-dark);
  box-shadow: 0 11px 24px rgba(56, 182, 255, .24);
}

.canvix-account-shell .canvix-create-folder-label-short {
  display: none;
}

/* Folder cards */
.canvix-account-shell .ed-user-prepend-campaign-wrapper.canvix-folder-grid,
.canvix-account-shell .canvix-subuser-folder-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.canvix-account-shell .canvix-folder-card,
.canvix-account-shell .canvix-folder-card.pg-remove-campaigns,
.canvix-account-shell .canvix-folder-card.pg-template-box {
  position: relative;
  z-index: 1;
  overflow: visible !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.canvix-account-shell .canvix-folder-card-inner,
.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-row,
.canvix-account-shell .canvix-folder-card .pg-template-box-inner {
  position: relative;
  min-height: 254px;
  display: flex !important;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e3eaf1 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(38, 61, 89, .045) !important;
  overflow: visible !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.canvix-account-shell .canvix-folder-card.has-open-menu {
  z-index: 500;
}

.canvix-account-shell .canvix-folder-card.has-open-menu .canvix-folder-card-inner,
.canvix-account-shell .canvix-folder-card.has-open-menu .pg-remove-campaigns-row,
.canvix-account-shell .canvix-folder-card.has-open-menu .pg-template-box-inner {
  transform: none !important;
}

.canvix-account-shell .canvix-folder-card:hover .canvix-folder-card-inner,
.canvix-account-shell .canvix-folder-card:hover .pg-remove-campaigns-row,
.canvix-account-shell .canvix-folder-card:hover .pg-template-box-inner {
  transform: translateY(-1px);
  border-color: #d9e8f4 !important;
  box-shadow: 0 10px 24px rgba(32, 73, 105, .08) !important;
}

.canvix-account-shell .canvix-folder-preview-link {
  display: block !important;
  width: 100% !important;
  padding: 12px 12px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  overflow: visible !important;
}

.canvix-account-shell .canvix-folder-preview-link::before,
.canvix-account-shell .canvix-folder-preview-link::after {
  display: none !important;
  content: none !important;
}

.canvix-account-shell .canvix-folder-preview,
.canvix-account-shell .canvix-folder-card .pg-template-thumb,
.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-img {
  width: 100% !important;
  height: 126px !important;
  min-height: 126px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f3f7fb !important;
  box-shadow: none !important;
}

.canvix-account-shell .canvix-folder-mosaic,
.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-img-list,
.canvix-account-shell .canvix-folder-card .pg-template-thumb_list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 4px !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.canvix-account-shell .canvix-folder-mosaic-item,
.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-list-item {
  position: relative;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 8px !important;
  background: #eef4f8 !important;
  transform: none !important;
  transition: filter .2s ease, transform .2s ease;
}

.canvix-account-shell .canvix-folder-mosaic-item img,
.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-list-item img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover;
  object-position: center;
  background: transparent !important;
  transform: scale(1.002);
  transition: transform .28s ease;
}

.canvix-account-shell .canvix-folder-card:hover .canvix-folder-mosaic-item img {
  transform: scale(1.035);
}

/* Existing AJAX may still create older multi-thumbnail markup. Keep it
   compatible and visually reduce every folder preview to two images. */
.canvix-account-shell .canvix-folder-card .canvix-folder-mosaic > :nth-child(n+3),
.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-img-list > :nth-child(n+3),
.canvix-account-shell .canvix-folder-card .pg-template-thumb_list > :nth-child(n+3) {
  display: none !important;
}

.canvix-account-shell .canvix-folder-card .pg-template-status {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
}

.canvix-account-shell .canvix-folder-card .pg-template-status::before,
.canvix-account-shell .canvix-folder-card .pg-template-status::after,
.canvix-account-shell .canvix-folder-card .pg-template-status-center {
  display: none !important;
  content: none !important;
}

.canvix-account-shell .canvix-folder-mosaic-item:nth-child(2) img {
  transition-delay: .02s;
}

.canvix-account-shell .canvix-folder-mosaic-item:nth-child(3) img {
  transition-delay: .04s;
}

.canvix-account-shell .campaign-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(240,247,251,.92)),
    #f2f7fa;
  color: #b4c4d1;
}

.canvix-account-shell .campaign-placeholder i {
  font-size: 20px;
}

.canvix-account-shell .canvix-folder-mosaic-item.is-empty:nth-child(2) .campaign-placeholder {
  background: #f5f9fc;
}

.canvix-account-shell .canvix-folder-mosaic-item.is-empty:nth-child(3) .campaign-placeholder {
  background: #edf5fa;
}

.canvix-account-shell .canvix-folder-body,
.canvix-account-shell .canvix-folder-card .pg-camp-content,
.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-site-content {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  margin: 0 !important;
  padding: 14px 18px 16px !important;
  border: 0 !important;
  background: transparent !important;
}

.canvix-account-shell .canvix-folder-title-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--cvx-dashboard-ink) !important;
  text-decoration: none !important;
}

.canvix-account-shell .canvix-folder-title-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--cvx-dashboard-blue);
  font-size: 18px;
}

.canvix-account-shell .canvix-folder-title-link h3,
.canvix-account-shell .canvix-folder-card h3 {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  color: var(--cvx-dashboard-ink) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.canvix-account-shell .canvix-folder-template-count {
  display: block !important;
  margin: 8px 0 0 33px !important;
  color: #71819a !important;
  font-size: 15px !important;
  line-height: 1.35;
  font-weight: 400 !important;
  text-align: left !important;
}

.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-site-content > h3 {
  position: relative;
  padding-left: 32px;
}

.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-site-content > h3::before {
  content: "\f07b";
  position: absolute;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cvx-dashboard-blue);
  font-family: "Font Awesome 6 Free";
  font-size: 18px;
  font-weight: 900;
}

.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-site-content > p {
  margin: 8px 0 0 33px !important;
  color: #71819a !important;
  font-size: 15px !important;
  text-align: left !important;
}

.canvix-account-shell .canvix-folder-card-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  margin-top: auto;
  padding-top: 14px;
}

.canvix-account-shell .canvix-folder-updated {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #7d8ca3;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.canvix-account-shell .canvix-folder-updated i {
  color: #8ca0ba;
  font-size: 13px;
}

/* Card menu */
.canvix-account-shell .canvix-card-menu,
.canvix-account-shell .canvix-folder-card .pg-camp-options,
.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-site-option {
  position: relative !important;
  inset: auto !important;
  z-index: 30;
  flex: 0 0 auto;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.canvix-account-shell .canvix-folder-card-inner > .canvix-card-menu,
.canvix-account-shell .pg-remove-campaigns-row > .canvix-card-menu {
  position: absolute !important;
  right: 15px !important;
  bottom: 12px !important;
}

.canvix-account-shell .canvix-card-menu-toggle {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #52647f;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.canvix-account-shell .canvix-card-menu-toggle:hover,
.canvix-account-shell .canvix-card-menu.is-open .canvix-card-menu-toggle {
  background: #edf7fd;
  color: #168fd5;
}

.canvix-account-shell .canvix-card-menu > ul,
.canvix-account-shell .canvix-folder-card .pg-camp-options > ul {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 1000;
  display: none !important;
  min-width: 176px !important;
  width: max-content !important;
  max-width: 220px !important;
  margin: 0 !important;
  padding: 7px !important;
  list-style: none !important;
  border: 1px solid #e3eaf1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(28, 51, 80, .14) !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  transform: none !important;
}

.canvix-account-shell .canvix-card-menu.is-open > ul,
.canvix-account-shell .canvix-folder-card .pg-camp-options.is-open > ul {
  display: block !important;
}

.canvix-account-shell .canvix-card-menu li,
.canvix-account-shell .canvix-folder-card .pg-camp-options li {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.canvix-account-shell .canvix-card-menu li a,
.canvix-account-shell .canvix-folder-card .pg-camp-options li a {
  width: 100%;
  min-height: 38px;
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 0 11px !important;
  border-radius: 7px;
  color: #3b4a62 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
}

.canvix-account-shell .canvix-card-menu li + li,
.canvix-account-shell .canvix-folder-card .pg-camp-options li + li {
  margin-top: 2px !important;
}

.canvix-account-shell .canvix-card-menu li a:hover,
.canvix-account-shell .canvix-folder-card .pg-camp-options li a:hover {
  background: #eef8fe !important;
  color: #148fd0 !important;
}

.canvix-account-shell .canvix-card-menu li a i {
  width: 17px;
  color: #60738e;
  text-align: center;
}

/* Empty and no-result states */
.canvix-account-shell .canvix-empty-state,
.canvix-account-shell .canvix-folder-no-results,
.canvix-account-shell .canvix-search-empty {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  border: 1px dashed #cfe0eb;
  border-radius: 17px;
  background: #fff;
  color: #708099;
  text-align: center;
}

.canvix-account-shell .canvix-folder-no-results {
  display: none;
}

.canvix-account-shell .canvix-folder-no-results.is-visible {
  display: flex;
}

.canvix-account-shell .canvix-empty-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 16px;
  background: #ecf9ff;
  color: var(--cvx-dashboard-blue);
  font-size: 23px;
}

.canvix-account-shell .canvix-empty-state h3 {
  margin: 0;
  color: var(--cvx-dashboard-ink);
  font-size: 18px;
}

.canvix-account-shell .canvix-empty-state p {
  margin: 8px 0 18px;
  font-size: 13px;
}

.canvix-account-shell .canvix-folder-no-results i,
.canvix-account-shell .canvix-search-empty i {
  margin-bottom: 10px;
  color: var(--cvx-dashboard-blue);
  font-size: 22px;
}

.canvix-account-shell .is-search-hidden {
  display: none !important;
}

/* Design search results and public templates */
.canvix-account-shell #design-search-results {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid #e0e8f0;
  border-radius: 17px;
  background: #fff;
}

.canvix-account-shell .canvix-design-result-grid,
.canvix-account-shell .public-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.canvix-account-shell .canvix-design-result-card,
.canvix-account-shell .public-template-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e8ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(38, 61, 89, .045);
}

.canvix-account-shell .canvix-design-result-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.canvix-account-shell .canvix-design-result-preview,
.canvix-account-shell .public-template-thumb {
  position: relative;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f1f6fa;
}

.canvix-account-shell .canvix-design-result-preview img,
.canvix-account-shell .public-template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.canvix-account-shell .canvix-design-result-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 35, 55, .52);
  color: #fff;
  opacity: 0;
  transition: opacity .18s ease;
}

.canvix-account-shell .canvix-design-result-card:hover .canvix-design-result-overlay {
  opacity: 1;
}

.canvix-account-shell .canvix-design-result-body,
.canvix-account-shell .public-template-body {
  padding: 13px;
}

.canvix-account-shell .canvix-design-result-title,
.canvix-account-shell .public-template-title {
  overflow: hidden;
  color: var(--cvx-dashboard-ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.canvix-account-shell .canvix-design-result-meta,
.canvix-account-shell .public-template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
  color: #7d8ba0;
  font-size: 10px;
}

.canvix-account-shell .canvix-design-result-meta span,
.canvix-account-shell .public-template-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.canvix-account-shell .public-template-status {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  min-height: 27px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

.canvix-account-shell .public-template-status.enabled { background: #1caf79; }
.canvix-account-shell .public-template-status.disabled { background: #8693a7; }
.canvix-account-shell .public-template-card.is-disabled { opacity: .72; }

.canvix-account-shell .public-template-url {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 8px;
  border-radius: 9px;
  background: #f3f7fa;
}

.canvix-account-shell .public-template-url-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: #708199;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.canvix-account-shell .public-template-copy-icon {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #168fd5;
}

.canvix-account-shell .public-template-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.canvix-account-shell .public-template-actions a,
.canvix-account-shell .public-template-actions button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid #dce6ee;
  border-radius: 7px;
  background: #fff;
  color: #4d6079;
  font-size: 9px;
  font-weight: 500;
  text-decoration: none;
}

.canvix-account-shell .public-template-actions .pt-delete {
  color: #bd4b56;
}

/* Modal polish, while preserving Magnific Popup behaviour. */
.canvix-account-shell .pg-modal-wrapper .pg-modal-inner-row {
  overflow: hidden;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 38, 62, .22);
}

.canvix-account-shell .pg-modal-title-wrap {
  padding: 20px 22px;
  border-bottom: 1px solid #e6edf3;
}

.canvix-account-shell .pg-modal-title-wrap h3 {
  margin: 0;
  color: var(--cvx-dashboard-ink);
  font-size: 18px;
  font-weight: 650;
}

.canvix-account-shell .pg-modal-body {
  padding: 22px;
}

.canvix-account-shell .pg-input-holder label {
  display: block;
  margin-bottom: 8px;
  color: #53627a;
  font-size: 13px;
  font-weight: 500;
}

.canvix-account-shell .pg-input-holder input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #d9e3ec;
  border-radius: 10px;
  outline: none;
}

.canvix-account-shell .pg-input-holder input:focus {
  border-color: var(--cvx-dashboard-blue);
  box-shadow: 0 0 0 4px rgba(56, 182, 255, .12);
}

.canvix-account-shell .pg-modal-btn-wrap .pg-btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--cvx-dashboard-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
}

.canvix-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Keep the desktop sidebar visually clean. Enable its scrollbar only when
   the available height is genuinely constrained, or when it becomes the
   mobile off-canvas navigation. */
@media (min-width: 981px) and (max-height: 560px) {
  .canvix-account-shell .side-panel {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd7e2 transparent;
  }

  .canvix-account-shell .side-panel::-webkit-scrollbar {
    width: 7px;
  }

  .canvix-account-shell .side-panel::-webkit-scrollbar-track {
    background: transparent;
  }

  .canvix-account-shell .side-panel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd7e2;
  }
}

/* ---------------------------------------------------------------
   Responsive layout
   --------------------------------------------------------------- */
@media (max-width: 1240px) {
  .canvix-account-shell main {
    padding-left: 28px;
    padding-right: 28px;
  }

  .canvix-account-shell .ed-user-prepend-campaign-wrapper.canvix-folder-grid,
  .canvix-account-shell .canvix-subuser-folder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .canvix-account-shell .canvix-design-result-grid,
  .canvix-account-shell .public-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .canvix-account-shell .navbar .nav-left {
    flex-basis: auto;
    border-right: 0;
  }

  .canvix-account-shell .canvix-billing-cluster {
    gap: 6px;
  }

  .canvix-account-shell .canvix-billing-pill,
  .canvix-account-shell .canvix-credit-pill {
    min-height: 38px;
    padding: 0 10px;
  }

  .canvix-account-shell .side-panel {
    width: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd7e2 transparent;
  }

  .canvix-account-shell main {
    margin-left: 0;
    padding: 24px 20px 60px;
  }

  .canvix-account-shell .canvix-dashboard-folder-toolbar {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .canvix-account-shell .canvix-create-folder-btn {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .canvix-account-shell .ed-user-prepend-campaign-wrapper.canvix-folder-grid,
  .canvix-account-shell .canvix-subuser-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px !important;
  }
}

@media (max-width: 760px) {
  .canvix-account-shell .navbar {
    min-height: 64px;
    padding: 0 11px;
  }

  .canvix-account-shell .navbar .logo svg {
    width: 142px !important;
  }

  .canvix-account-shell .canvix-billing-pill span,
  .canvix-account-shell .profile-trigger span {
    display: none;
  }

  .canvix-account-shell .canvix-credit-pill {
    min-width: 54px;
  }

  .canvix-account-shell main {
    padding: 22px 14px 52px;
  }

  .canvix-account-shell .canvix-folder-page-heading {
    margin-bottom: 20px;
  }

  .canvix-account-shell .canvix-dashboard-section-title h1 {
    font-size: 28px;
  }

  .canvix-account-shell .canvix-dashboard-folder-toolbar {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .canvix-account-shell .canvix-create-folder-btn {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }

  .canvix-account-shell .ed-user-prepend-campaign-wrapper.canvix-folder-grid,
  .canvix-account-shell .canvix-subuser-folder-grid,
  .canvix-account-shell .canvix-design-result-grid,
  .canvix-account-shell .public-template-grid {
    grid-template-columns: 1fr;
    gap: 15px !important;
  }

  .canvix-account-shell .canvix-folder-card-inner,
  .canvix-account-shell .canvix-folder-card .pg-remove-campaigns-row,
  .canvix-account-shell .canvix-folder-card .pg-template-box-inner {
    min-height: 252px;
  }

  .canvix-account-shell .canvix-folder-preview,
  .canvix-account-shell .canvix-folder-card .pg-template-thumb,
  .canvix-account-shell .canvix-folder-card .pg-remove-campaigns-img {
    height: 126px !important;
    min-height: 126px !important;
  }
}

@media (max-width: 440px) {
  .canvix-account-shell .canvix-credit-pill {
    display: none;
  }

  .canvix-account-shell .canvix-create-folder-label-full {
    display: none;
  }

  .canvix-account-shell .canvix-create-folder-label-short {
    display: inline;
  }
}


/* checkpoint 04 refinements */
.canvix-account-shell .side-panel > ul {
  margin-top: 10px;
}

.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-site-content > p,
.canvix-account-shell .canvix-folder-template-count {
  letter-spacing: 0;
}

.canvix-account-shell .canvix-folder-updated,
.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-site-content > p {
  color: #8090a7 !important;
}

.canvix-account-shell .canvix-folder-card .pg-camp-options > ul {
  right: -2px !important;
}

.canvix-account-shell .canvix-folder-card .pg-camp-options li a .fa-trash,
.canvix-account-shell .canvix-folder-card .pg-camp-options li a .fa-trash-can {
  color: #d25353;
}


/* ===== Templates library styles (checkpoint 06 consolidated fallback) ===== */
/*
 * Canvix account dashboard — templates checkpoint 05
 * Scope: body.canvix-account-shell.templates-library-page
 * Primary accent: #38b6ff
 */

.canvix-account-shell.templates-library-page main {
  padding: 26px 40px 72px;
  background: var(--cvx-dashboard-bg, #fbfdff);
}

.canvix-account-shell.templates-library-page .nova-slot {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.canvix-account-shell .canvix-templates-page.pg-screen-container,
.canvix-account-shell .canvix-templates-page {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--cvx-dashboard-text, #34445f);
  background: transparent !important;
}

/* Page heading */
.canvix-account-shell .canvix-template-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}

.canvix-account-shell .canvix-template-heading {
  min-width: 0;
}

.canvix-account-shell .canvix-template-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: #7a8aa2;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

.canvix-account-shell .canvix-template-breadcrumb a {
  color: #169edf;
  font-weight: 500;
  text-decoration: none;
}

.canvix-account-shell .canvix-template-breadcrumb a:hover {
  color: #087fbe;
  text-decoration: none;
}

.canvix-account-shell .canvix-template-breadcrumb i {
  color: #aab7c7;
  font-size: 9px;
}

.canvix-account-shell .canvix-template-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
}

.canvix-account-shell .canvix-template-title-line h1 {
  margin: 0;
  color: var(--cvx-dashboard-ink, #111a2e);
  font-size: clamp(28px, 2.3vw, 38px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.035em;
}

.canvix-account-shell .canvix-template-count {
  min-width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: #eef8ff;
  color: #159fe9;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
}

.canvix-account-shell .canvix-template-subtitle {
  margin: 8px 0 0;
  color: var(--cvx-dashboard-muted, #7788a3);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
}

.canvix-account-shell .canvix-template-subtitle strong {
  color: #61728d;
  font-weight: 600;
}

/* Search / sort / create controls */
.canvix-account-shell .canvix-template-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px auto;
  align-items: center;
  gap: 15px;
  margin: 0 0 26px;
}

.canvix-account-shell .canvix-template-search,
.canvix-account-shell .canvix-template-sort-wrap {
  position: relative;
  min-width: 0;
  margin: 0;
}

.canvix-account-shell .canvix-template-search > i,
.canvix-account-shell .canvix-template-sort-wrap > i:first-child {
  position: absolute;
  left: 17px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #62748e;
  font-size: 15px;
  pointer-events: none;
}

.canvix-account-shell .canvix-template-search input,
.canvix-account-shell .canvix-template-sort {
  width: 100%;
  height: 52px;
  border: 1px solid #d9e3ed;
  border-radius: 13px;
  background: #fff;
  color: var(--cvx-dashboard-ink, #111a2e);
  box-shadow: 0 4px 14px rgba(34, 61, 91, .035);
  font-size: 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.canvix-account-shell .canvix-template-search input {
  padding: 0 48px;
  font-weight: 400;
}

.canvix-account-shell .canvix-template-search input::placeholder {
  color: #8b99ae;
}

.canvix-account-shell .canvix-template-search input:focus,
.canvix-account-shell .canvix-template-sort:focus {
  border-color: var(--cvx-dashboard-blue, #38b6ff);
  box-shadow: 0 0 0 4px rgba(56, 182, 255, .12);
}

.canvix-account-shell .canvix-template-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  background: #f0f5f9;
  color: #73829a;
  cursor: pointer;
}

.canvix-account-shell .canvix-template-search.has-value .canvix-template-search-clear {
  display: inline-flex;
}

.canvix-account-shell .canvix-template-search-clear:hover {
  background: #e9f6fd;
  color: #168fd5;
}

.canvix-account-shell .canvix-template-sort {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 42px 0 44px;
  color: #2c3950;
  font-weight: 500;
  cursor: pointer;
}

.canvix-account-shell .canvix-template-sort-chevron {
  position: absolute !important;
  right: 16px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #566a85 !important;
  font-size: 12px !important;
  pointer-events: none;
}

.canvix-account-shell .canvix-template-create-btn,
.canvix-account-shell .canvix-template-load-btn {
  min-height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px !important;
  border: 1px solid var(--cvx-dashboard-blue, #38b6ff) !important;
  border-radius: 13px !important;
  background: var(--cvx-dashboard-blue, #38b6ff) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(56, 182, 255, .18) !important;
  font-size: 13px !important;
  line-height: 1;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.canvix-account-shell .canvix-template-create-btn:hover,
.canvix-account-shell .canvix-template-load-btn:hover {
  transform: translateY(-1px);
  border-color: var(--cvx-dashboard-blue-dark, #139eea) !important;
  background: var(--cvx-dashboard-blue-dark, #139eea) !important;
  box-shadow: 0 11px 24px rgba(56, 182, 255, .24) !important;
}

.canvix-account-shell .canvix-template-create-btn i,
.canvix-account-shell .canvix-template-load-btn i {
  font-size: 15px;
}

.canvix-account-shell .canvix-template-results-note {
  display: none;
  margin: -10px 0 18px;
  color: #71819a;
  font-size: 13px;
  font-weight: 400;
}

.canvix-account-shell .canvix-template-results-note.is-visible {
  display: block;
}

/* Template grid */
.canvix-account-shell .canvix-template-grid.row,
.canvix-account-shell .canvix-template-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.canvix-account-shell .canvix-template-card.pg-template-box,
.canvix-account-shell .canvix-template-card.template_grid_item {
  position: relative !important;
  z-index: 1;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  overflow: visible !important;
}

.canvix-account-shell .canvix-template-card.is-filtered-out {
  display: none !important;
}

.canvix-account-shell .canvix-template-card.has-open-menu,
.canvix-account-shell .canvix-template-card:focus-within {
  z-index: 500;
}

.canvix-account-shell .canvix-template-card-inner.pg-template-box-inner,
.canvix-account-shell .canvix-template-card-inner {
  position: relative;
  height: 100%;
  min-height: 292px;
  display: flex !important;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 1px solid #e3eaf1 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(38, 61, 89, .045) !important;
  transform: none !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

.canvix-account-shell .canvix-template-card:hover .canvix-template-card-inner {
  transform: translateY(-1px) !important;
  border-color: #d9e8f4 !important;
  box-shadow: 0 10px 24px rgba(32, 73, 105, .08) !important;
}

.canvix-account-shell .canvix-template-card.has-open-menu .canvix-template-card-inner {
  transform: none !important;
}

/* Preview */
.canvix-account-shell .canvix-template-preview.pg-template-thumb,
.canvix-account-shell .canvix-template-preview {
  position: relative !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 12px 12px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f2f6fa !important;
  box-shadow: none !important;
}

.canvix-account-shell .canvix-template-preview img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center;
  background: #f2f6fa;
  transition: transform .25s ease;
}

.canvix-account-shell .canvix-template-card:hover .canvix-template-preview img {
  transform: scale(1.015);
}

.canvix-account-shell .canvix-template-preview .template-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(239,246,251,.94)),
    #f2f7fa;
}

.canvix-account-shell .canvix-template-preview .placeholder-plus {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6eaf5;
  border-radius: 10px;
  background: #eaf8ff;
  color: var(--cvx-dashboard-blue, #38b6ff);
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
}

.canvix-account-shell .canvix-template-open.pg-template-status,
.canvix-account-shell .canvix-template-open {
  position: absolute !important;
  inset: 0 !important;
  z-index: 5;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit;
  background: rgba(15, 30, 48, .04) !important;
  color: #fff !important;
  opacity: 0 !important;
  text-decoration: none !important;
  transition: opacity .18s ease, background .18s ease;
}

.canvix-account-shell .canvix-template-card:hover .canvix-template-open,
.canvix-account-shell .canvix-template-open:focus-visible {
  background: rgba(15, 30, 48, .42) !important;
  opacity: 1 !important;
}

.canvix-account-shell .canvix-template-open-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  color: #203047;
  box-shadow: 0 8px 24px rgba(15, 30, 48, .16);
  font-size: 12px;
  line-height: 1;
}

.canvix-account-shell .canvix-template-open-label strong {
  font-weight: 600;
}

.canvix-account-shell .canvix-template-open-label i {
  color: #169edf;
}

/* Card copy */
.canvix-account-shell .canvix-template-card-body.pg-camp-content,
.canvix-account-shell .canvix-template-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  margin: 0 !important;
  padding: 14px 16px 16px !important;
  border: 0 !important;
  background: transparent !important;
}

.canvix-account-shell .canvix-template-title-row {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.canvix-account-shell .canvix-template-title-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.canvix-account-shell .canvix-template-title-copy h3 {
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  color: var(--cvx-dashboard-ink, #111a2e) !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: -.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.canvix-account-shell .canvix-template-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  overflow: hidden;
  color: #71819a;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
  white-space: nowrap;
}

.canvix-account-shell .canvix-template-type {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.canvix-account-shell .canvix-template-type span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.canvix-account-shell .canvix-template-type i {
  flex: 0 0 auto;
  color: var(--cvx-dashboard-blue, #38b6ff);
  font-size: 12px;
}

.canvix-account-shell .canvix-template-size {
  flex: 0 0 auto;
  padding-left: 8px;
  border-left: 1px solid #dce5ee;
  color: #8190a6;
}

.canvix-account-shell .canvix-template-created,
.canvix-account-shell .canvix-template-updated {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0 !important;
  color: #8090a7 !important;
  font-size: 12px !important;
  line-height: 1.25;
  font-weight: 400 !important;
  white-space: nowrap;
}

.canvix-account-shell .canvix-template-created i,
.canvix-account-shell .canvix-template-updated i {
  color: #8ca0ba;
  font-size: 12px;
}

/* Three-dot action menu */
.canvix-account-shell .canvix-template-actions.pg-camp-options,
.canvix-account-shell .canvix-template-actions {
  position: relative !important;
  inset: auto !important;
  z-index: 30;
  flex: 0 0 auto;
  width: 32px !important;
  height: 32px !important;
  margin: -6px -6px 0 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

.canvix-account-shell .canvix-template-menu-trigger {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #52647f;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.canvix-account-shell .canvix-template-menu-trigger:hover,
.canvix-account-shell .canvix-template-actions.is-open .canvix-template-menu-trigger {
  background: #edf7fd;
  color: #168fd5;
}

.canvix-account-shell .canvix-template-action-menu,
.canvix-account-shell .canvix-template-actions.pg-camp-options > ul {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 1000;
  display: none !important;
  min-width: 176px !important;
  width: max-content !important;
  max-width: 220px !important;
  margin: 0 !important;
  padding: 7px !important;
  list-style: none !important;
  border: 1px solid #e3eaf1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 14px 30px rgba(28, 51, 80, .14) !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  transform: none !important;
}

.canvix-account-shell .canvix-template-actions.is-open > .canvix-template-action-menu,
.canvix-account-shell .canvix-template-actions.is-open > ul {
  display: block !important;
}

.canvix-account-shell .canvix-template-action-menu li,
.canvix-account-shell .canvix-template-actions.pg-camp-options li {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.canvix-account-shell .canvix-template-action-menu li + li {
  margin-top: 2px !important;
}

.canvix-account-shell .canvix-template-action-menu li a,
.canvix-account-shell .canvix-template-actions.pg-camp-options li a {
  width: 100%;
  min-height: 38px;
  display: flex !important;
  align-items: center;
  gap: 9px;
  padding: 0 11px !important;
  border-radius: 7px;
  color: #3b4a62 !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
}

.canvix-account-shell .canvix-template-action-menu li a:hover {
  background: #eef8fe !important;
  color: #148fd0 !important;
}

.canvix-account-shell .canvix-template-action-menu li a i {
  width: 17px;
  color: #60738e;
  text-align: center;
}

.canvix-account-shell .canvix-template-action-menu li.is-danger a,
.canvix-account-shell .canvix-template-action-menu li.is-danger a i {
  color: #c94e55 !important;
}

.canvix-account-shell .canvix-template-action-menu li.is-danger a:hover {
  background: #fff1f2 !important;
}

/* Pagination and empty states */
.canvix-account-shell .canvix-template-load-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.canvix-account-shell .canvix-template-load-btn {
  min-width: 190px;
}

.canvix-account-shell .canvix-template-empty,
.canvix-account-shell .canvix-template-no-results {
  display: none;
  width: 100%;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 36px 24px;
  border: 1px dashed #cfe0ec;
  border-radius: 14px;
  background: #fff;
  color: #71819a;
  text-align: center;
}

.canvix-account-shell .canvix-template-empty {
  display: flex;
}

.canvix-account-shell .canvix-template-no-results.is-visible {
  display: flex;
  margin-top: 10px;
}

.canvix-account-shell .canvix-template-empty-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #eef8ff;
  color: var(--cvx-dashboard-blue, #38b6ff);
  font-size: 21px;
}

.canvix-account-shell .canvix-template-empty h3,
.canvix-account-shell .canvix-template-no-results h3 {
  margin: 0;
  color: var(--cvx-dashboard-ink, #111a2e);
  font-size: 18px;
  font-weight: 600;
}

.canvix-account-shell .canvix-template-empty p,
.canvix-account-shell .canvix-template-no-results p {
  max-width: 430px;
  margin: 8px 0 20px;
  color: #7788a3;
  font-size: 13px;
  line-height: 1.55;
}

/* Responsive layout */
@media (min-width: 1550px) {
  .canvix-account-shell .canvix-template-grid.row,
  .canvix-account-shell .canvix-template-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) {
  .canvix-account-shell.templates-library-page main {
    padding-right: 28px;
    padding-left: 28px;
  }

  .canvix-account-shell .canvix-template-grid.row,
  .canvix-account-shell .canvix-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .canvix-account-shell .canvix-template-toolbar {
    grid-template-columns: minmax(220px, 1fr) 200px;
  }

  .canvix-account-shell .canvix-template-create-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .canvix-account-shell.templates-library-page main {
    padding: 24px 22px 64px;
  }

  .canvix-account-shell .canvix-template-grid.row,
  .canvix-account-shell .canvix-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .canvix-account-shell .canvix-template-page-head {
    margin-bottom: 20px;
  }

  .canvix-account-shell .canvix-template-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .canvix-account-shell .canvix-template-create-btn {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 540px) {
  .canvix-account-shell.templates-library-page main {
    padding: 20px 15px 54px;
  }

  .canvix-account-shell .canvix-template-title-line h1 {
    font-size: 27px;
  }

  .canvix-account-shell .canvix-template-grid.row,
  .canvix-account-shell .canvix-template-grid {
    grid-template-columns: 1fr;
    gap: 16px !important;
  }

  .canvix-account-shell .canvix-template-card-inner.pg-template-box-inner {
    min-height: 0;
  }
}



/* ======================================================================
   Universal account-page foundation
   This section intentionally styles only the shared shell and common
   page primitives. Individual feature layouts can still be refined later.
   ====================================================================== */
.canvix-account-shell {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cvx-dashboard-text);
  background: var(--cvx-dashboard-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.canvix-account-shell *:not(.fa):not(.fa-solid):not(.fa-regular):not(.fa-brands) {
  font-family: 'Inter', sans-serif;
}

/* Keep the existing logo artwork untouched. */
.canvix-account-shell .logo,
.canvix-account-shell .logo svg,
.canvix-account-shell .logo img {
  flex: 0 0 auto;
}

.canvix-account-shell main {
  min-height: calc(100vh - 72px);
}

.canvix-account-shell main > .nova-slot {
  width: 100%;
  max-width: 1500px;
  margin-right: auto;
  margin-left: auto;
}

/* Most older dashboard pages use this wrapper. Main owns the outer spacing. */
.canvix-account-shell main .pg-screen-container {
  width: 100% !important;
  max-width: 1500px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
}

.canvix-account-shell main h1,
.canvix-account-shell main h2,
.canvix-account-shell main h3,
.canvix-account-shell main h4,
.canvix-account-shell main h5,
.canvix-account-shell main h6 {
  color: var(--cvx-dashboard-ink);
  letter-spacing: -.025em;
}

/* Shared title treatment for legacy pages such as AI Tools, profile,
   subscriptions, referrals and contact pages. */
.canvix-account-shell main .pg-page-title-head,
.canvix-account-shell main .pg-screen-title,
.canvix-account-shell main .page-title {
  margin: 0 0 22px !important;
}

.canvix-account-shell main .pg-page-title-head h1,
.canvix-account-shell main .pg-page-title-head h2,
.canvix-account-shell main .pg-page-title-head h3,
.canvix-account-shell main .pg-screen-title h1,
.canvix-account-shell main .pg-screen-title h2,
.canvix-account-shell main .pg-screen-title h3,
.canvix-account-shell main .page-title h1,
.canvix-account-shell main .page-title h2,
.canvix-account-shell main .page-title h3,
.canvix-account-shell .ai-tools-topbar .pg-page-title-head h3 {
  margin: 0 !important;
  color: var(--cvx-dashboard-ink) !important;
  font-size: clamp(27px, 2.1vw, 34px) !important;
  line-height: 1.15 !important;
  font-weight: 650 !important;
  letter-spacing: -.035em !important;
}

.canvix-account-shell main p,
.canvix-account-shell main label,
.canvix-account-shell main input,
.canvix-account-shell main select,
.canvix-account-shell main textarea,
.canvix-account-shell main button {
  font-family: 'Inter', sans-serif;
}

/* Common surfaces used by older pages. These are deliberately subtle so
   feature-specific inline styles continue to work without visual conflict. */
.canvix-account-shell main .pg-card,
.canvix-account-shell main .pg-panel,
.canvix-account-shell main .pg-white-box,
.canvix-account-shell main .pg-box {
  border-color: var(--cvx-dashboard-line) !important;
  box-shadow: 0 8px 24px rgba(38, 61, 89, .05) !important;
}

.canvix-account-shell main .pg-btn,
.canvix-account-shell main button,
.canvix-account-shell main input[type="button"],
.canvix-account-shell main input[type="submit"] {
  font-weight: 600;
}

.canvix-account-shell main .pg-btn-primary,
.canvix-account-shell main .btn-primary {
  border-color: var(--cvx-dashboard-blue) !important;
  background-color: var(--cvx-dashboard-blue) !important;
}

/* AI Tools currently contains its own feature-level CSS. These rules only
   bring its outer page shell and title into the universal system. */
.canvix-account-shell .ai-tools-topbar {
  margin: 0 0 22px !important;
}

.canvix-account-shell .ai-tools-wrapper {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

@media (max-width: 900px) {
  .canvix-account-shell main .pg-screen-container {
    max-width: none !important;
  }
}


/* ======================================================================
   Checkpoint 08 — stronger blue navigation and folder workspace accents
   ====================================================================== */

/* Solid brand-blue active navigation item. Keep ordinary hover restrained. */
.canvix-account-shell .side-panel li:not(.active):hover {
  background: #eef9ff;
  color: #168fd5;
}

.canvix-account-shell .side-panel li.active,
.canvix-account-shell .side-panel li.active:hover {
  background: #38b6ff !important;
  color: #ffffff !important;
  box-shadow: 0 9px 22px rgba(56, 182, 255, .25);
}

.canvix-account-shell .side-panel li.active > a,
.canvix-account-shell .side-panel li.active > a:hover,
.canvix-account-shell .side-panel li.active > a:focus,
.canvix-account-shell .side-panel li.active span,
.canvix-account-shell .side-panel li.active i {
  color: #ffffff !important;
}

.canvix-account-shell .side-panel li.active .badge-new {
  border: 1px solid rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .20);
  color: #ffffff !important;
}

/* With the folder subtitle removed, keep the page heading compact. */
.canvix-account-shell.canvix-route-1-dashboard .canvix-folder-page-heading {
  margin-bottom: 20px;
}

.canvix-account-shell.canvix-route-1-dashboard .canvix-folder-template-count,
.canvix-account-shell.canvix-route-1-dashboard .canvix-folder-card .pg-remove-campaigns-site-content > p {
  margin: 8px 0 0 33px !important;
  font-size: 15px !important;
  text-align: left !important;
}

/* Refined blue accents on the folders page. */
.canvix-account-shell.canvix-route-1-dashboard .canvix-dashboard-search input,
.canvix-account-shell.canvix-route-1-dashboard .canvix-dashboard-sort {
  border: 1px solid rgba(56, 182, 255, .42);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(56, 182, 255, .06), 0 8px 20px rgba(56, 182, 255, .06);
}

.canvix-account-shell.canvix-route-1-dashboard .canvix-dashboard-search > i,
.canvix-account-shell.canvix-route-1-dashboard .canvix-dashboard-sort-wrap > i:first-child,
.canvix-account-shell.canvix-route-1-dashboard .canvix-sort-chevron {
  color: #168fd5;
}

.canvix-account-shell.canvix-route-1-dashboard .canvix-dashboard-search input:hover,
.canvix-account-shell.canvix-route-1-dashboard .canvix-dashboard-sort:hover {
  border-color: rgba(56, 182, 255, .58);
  box-shadow: 0 0 0 2px rgba(56, 182, 255, .085), 0 10px 22px rgba(56, 182, 255, .08);
}

.canvix-account-shell.canvix-route-1-dashboard .canvix-dashboard-search input:focus,
.canvix-account-shell.canvix-route-1-dashboard .canvix-dashboard-sort:focus {
  border-color: #38b6ff;
  box-shadow: 0 0 0 3px rgba(56, 182, 255, .14), 0 12px 26px rgba(56, 182, 255, .10);
}

/* Neutral folder cards by default; blue is reserved for interaction. */
.canvix-account-shell.canvix-route-1-dashboard .canvix-folder-card-inner,
.canvix-account-shell.canvix-route-1-dashboard .canvix-folder-card .pg-remove-campaigns-row,
.canvix-account-shell.canvix-route-1-dashboard .canvix-folder-card .pg-template-box-inner {
  border: 1px solid #dfe7ef !important;
  box-shadow: 0 6px 18px rgba(38, 61, 89, .045) !important;
}

.canvix-account-shell.canvix-route-1-dashboard .canvix-folder-card:hover .canvix-folder-card-inner,
.canvix-account-shell.canvix-route-1-dashboard .canvix-folder-card:hover .pg-remove-campaigns-row,
.canvix-account-shell.canvix-route-1-dashboard .canvix-folder-card:hover .pg-template-box-inner {
  border-color: #a9ddf8 !important;
  box-shadow: 0 11px 25px rgba(38, 61, 89, .085) !important;
}

/* Give the primary folder action a slightly richer brand treatment. */
.canvix-account-shell.canvix-route-1-dashboard .canvix-create-folder-btn {
  border: 2px solid #38b6ff;
  background: #38b6ff;
  box-shadow: 0 9px 22px rgba(56, 182, 255, .23);
}

.canvix-account-shell.canvix-route-1-dashboard .canvix-create-folder-btn:hover {
  border-color: #159fe9;
  background: #159fe9;
  box-shadow: 0 12px 26px rgba(56, 182, 255, .29);
}

/* ======================================================================
   CHECKPOINT 12 — shared dashboard dark mode
   Uses the same `canvix_dark_mode` localStorage preference as editor.php.
   ====================================================================== */

.canvix-account-shell .canvix-darkmode-toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 14px;
  margin: 0;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: background .16s ease, color .16s ease;
}

.canvix-account-shell .canvix-darkmode-toggle:hover {
  background: #eef8fe;
  color: #168fd5;
}

.canvix-account-shell .canvix-darkmode-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.canvix-account-shell .canvix-darkmode-label i {
  width: 18px;
  color: #38b6ff;
  text-align: center;
}

.canvix-account-shell .canvix-darkmode-switch {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  display: inline-block;
}

.canvix-account-shell .canvix-darkmode-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.canvix-account-shell .canvix-darkmode-slider {
  position: absolute;
  inset: 0;
  border: 1px solid #d1dce7;
  border-radius: 999px;
  background: #e8eef4;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.canvix-account-shell .canvix-darkmode-slider::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .18);
  transition: transform .18s ease;
}

.canvix-account-shell .canvix-darkmode-checkbox:checked + .canvix-darkmode-slider {
  border-color: #38b6ff;
  background: #38b6ff;
  box-shadow: 0 0 0 3px rgba(56, 182, 255, .12);
}

.canvix-account-shell .canvix-darkmode-checkbox:checked + .canvix-darkmode-slider::before {
  transform: translateX(16px);
}

.canvix-account-shell .canvix-darkmode-checkbox:focus-visible + .canvix-darkmode-slider {
  outline: 2px solid #38b6ff;
  outline-offset: 2px;
}

html.pg-dark-mode {
  color-scheme: dark;
  background: #09111e;
}

html.pg-dark-mode .canvix-account-shell {
  --cvx-dashboard-blue: #38b6ff;
  --cvx-dashboard-blue-dark: #149fe9;
  --cvx-dashboard-blue-soft: rgba(56, 182, 255, .13);
  --cvx-dashboard-ink: #f5f8fc;
  --cvx-dashboard-text: #c9d4e3;
  --cvx-dashboard-muted: #8fa0b7;
  --cvx-dashboard-line: #27364b;
  --cvx-dashboard-surface: #111c2d;
  --cvx-dashboard-bg: #0a1321;
  background: #0a1321 !important;
  color: #c9d4e3;
}

html.pg-dark-mode .canvix-account-shell,
html.pg-dark-mode .canvix-account-shell main,
html.pg-dark-mode .canvix-account-shell .nova-slot {
  background: #0a1321 !important;
}

html.pg-dark-mode .canvix-account-shell .navbar {
  border-bottom-color: #243247;
  background: rgba(13, 23, 39, .98);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .015);
}

html.pg-dark-mode .canvix-account-shell .navbar .logo svg {
  filter: drop-shadow(0 0 8px rgba(56, 182, 255, .08));
}

html.pg-dark-mode .canvix-account-shell .side-panel {
  border-right-color: #223147;
  background: #0d1727;
  color: #b9c7d9;
}

html.pg-dark-mode .canvix-account-shell .side-panel li {
  color: #aebdd0;
}

html.pg-dark-mode .canvix-account-shell .side-panel li a {
  color: inherit;
}

html.pg-dark-mode .canvix-account-shell .side-panel li i {
  color: #8295af;
}

html.pg-dark-mode .canvix-account-shell .side-panel li:hover:not(.active) {
  background: #142238;
  color: #d9e4f1;
}

html.pg-dark-mode .canvix-account-shell .side-panel li:hover:not(.active) i {
  color: #38b6ff;
}

html.pg-dark-mode .canvix-account-shell .side-panel li.active,
html.pg-dark-mode .canvix-account-shell .side-panel li.active:hover {
  background: #38b6ff !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(56, 182, 255, .20);
}

html.pg-dark-mode .canvix-account-shell .side-panel li.active i,
html.pg-dark-mode .canvix-account-shell .side-panel li.active span {
  color: #ffffff !important;
}

html.pg-dark-mode .canvix-account-shell .side-panel .badge-new {
  background: rgba(42, 218, 147, .17);
  color: #69e7b1;
}

html.pg-dark-mode .canvix-account-shell .canvix-sidebar-upgrade {
  border-color: #2b3e56;
  background: linear-gradient(145deg, #121f32, #0f1b2c);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

html.pg-dark-mode .canvix-account-shell .canvix-sidebar-upgrade-head {
  color: #f1f5fa;
}

html.pg-dark-mode .canvix-account-shell .canvix-sidebar-upgrade p {
  color: #91a2b9;
}

html.pg-dark-mode .canvix-account-shell .profile-trigger {
  border-color: #2c3b50;
  background: #111d30;
  color: #e8eef7;
}

html.pg-dark-mode .canvix-account-shell .profile-trigger:hover {
  border-color: #3c536f;
  background: #15243a;
}

html.pg-dark-mode .canvix-account-shell .profile-trigger i.fa-chevron-down {
  color: #92a4bc;
}

html.pg-dark-mode .canvix-account-shell .dropdown-menu {
  border: 1px solid #2a3a51;
  background: #111d30;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .36);
}

html.pg-dark-mode .canvix-account-shell .dropdown-menu a,
html.pg-dark-mode .canvix-account-shell .canvix-darkmode-toggle {
  color: #d5deeb;
}

html.pg-dark-mode .canvix-account-shell .dropdown-menu a:hover,
html.pg-dark-mode .canvix-account-shell .canvix-darkmode-toggle:hover {
  background: #172740;
  color: #55c0ff;
}

html.pg-dark-mode .canvix-account-shell .canvix-darkmode-slider {
  border-color: #40516a;
  background: #29384d;
}

html.pg-dark-mode .canvix-account-shell .canvix-billing-pill,
html.pg-dark-mode .canvix-account-shell .canvix-credit-pill {
  border-color: #5c4d2b;
  background: #211d16;
}

html.pg-dark-mode .canvix-account-shell .canvix-credit-pill {
  color: #e8edf5 !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-dashboard,
html.pg-dark-mode .canvix-account-shell .canvix-dashboard-section,
html.pg-dark-mode .canvix-account-shell .canvix-templates-page {
  color: #c9d4e3;
}

html.pg-dark-mode .canvix-account-shell h1,
html.pg-dark-mode .canvix-account-shell h2,
html.pg-dark-mode .canvix-account-shell h3,
html.pg-dark-mode .canvix-account-shell h4,
html.pg-dark-mode .canvix-account-shell h5,
html.pg-dark-mode .canvix-account-shell h6,
html.pg-dark-mode .canvix-account-shell .pg-page-title-head,
html.pg-dark-mode .canvix-account-shell .pg-section-tilte {
  color: #f4f7fb !important;
}

html.pg-dark-mode .canvix-account-shell p,
html.pg-dark-mode .canvix-account-shell .text-muted,
html.pg-dark-mode .canvix-account-shell small {
  color: #94a4ba;
}

html.pg-dark-mode .canvix-account-shell .canvix-dashboard-count,
html.pg-dark-mode .canvix-account-shell .canvix-template-count {
  background: rgba(56, 182, 255, .14);
  color: #55c0ff;
}

html.pg-dark-mode .canvix-account-shell .canvix-dashboard-search input,
html.pg-dark-mode .canvix-account-shell .canvix-dashboard-sort,
html.pg-dark-mode .canvix-account-shell .canvix-template-search input,
html.pg-dark-mode .canvix-account-shell .canvix-template-sort,
html.pg-dark-mode .canvix-account-shell input.form-control,
html.pg-dark-mode .canvix-account-shell select.form-control,
html.pg-dark-mode .canvix-account-shell textarea.form-control,
html.pg-dark-mode .canvix-account-shell .form-control {
  border-color: #30435c !important;
  background: #111d30 !important;
  color: #e5edf7 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .11) !important;
}

html.pg-dark-mode .canvix-account-shell input::placeholder,
html.pg-dark-mode .canvix-account-shell textarea::placeholder,
html.pg-dark-mode .canvix-account-shell .canvix-dashboard-search input::placeholder,
html.pg-dark-mode .canvix-account-shell .canvix-template-search input::placeholder {
  color: #7589a4 !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-dashboard-search input:hover,
html.pg-dark-mode .canvix-account-shell .canvix-dashboard-sort:hover,
html.pg-dark-mode .canvix-account-shell .canvix-template-search input:hover,
html.pg-dark-mode .canvix-account-shell .canvix-template-sort:hover,
html.pg-dark-mode .canvix-account-shell .form-control:hover {
  border-color: #42617e !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-dashboard-search input:focus,
html.pg-dark-mode .canvix-account-shell .canvix-dashboard-sort:focus,
html.pg-dark-mode .canvix-account-shell .canvix-template-search input:focus,
html.pg-dark-mode .canvix-account-shell .canvix-template-sort:focus,
html.pg-dark-mode .canvix-account-shell .form-control:focus {
  border-color: #38b6ff !important;
  background: #142238 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(56, 182, 255, .16), 0 10px 26px rgba(0, 0, 0, .17) !important;
}

html.pg-dark-mode .canvix-account-shell select option {
  background: #111d30;
  color: #e5edf7;
}

html.pg-dark-mode .canvix-account-shell .canvix-dashboard-search > i,
html.pg-dark-mode .canvix-account-shell .canvix-dashboard-sort-wrap > i:first-child,
html.pg-dark-mode .canvix-account-shell .canvix-sort-chevron,
html.pg-dark-mode .canvix-account-shell .canvix-template-search > i,
html.pg-dark-mode .canvix-account-shell .canvix-template-sort-wrap > i:first-child,
html.pg-dark-mode .canvix-account-shell .canvix-template-sort-chevron {
  color: #55c0ff;
}

html.pg-dark-mode .canvix-account-shell .canvix-dashboard-search-clear,
html.pg-dark-mode .canvix-account-shell .canvix-template-search-clear {
  background: #1c2c42;
  color: #9aabc0;
}

html.pg-dark-mode .canvix-account-shell .canvix-folder-card-inner,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card .pg-remove-campaigns-row,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card .pg-template-box-inner,
html.pg-dark-mode .canvix-account-shell .canvix-template-card,
html.pg-dark-mode .canvix-account-shell .canvix-template-card-inner {
  border-color: #293a51 !important;
  background: #111c2d !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16) !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-folder-card:hover .canvix-folder-card-inner,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card:hover .pg-remove-campaigns-row,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card:hover .pg-template-box-inner,
html.pg-dark-mode .canvix-account-shell .canvix-template-card:hover .canvix-template-card-inner {
  border-color: rgba(56, 182, 255, .72) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22), 0 0 0 1px rgba(56, 182, 255, .10) !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-folder-preview,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card .pg-template-thumb,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card .pg-remove-campaigns-img,
html.pg-dark-mode .canvix-account-shell .canvix-template-preview,
html.pg-dark-mode .canvix-account-shell .canvix-template-thumb {
  background: #152238 !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-folder-mosaic-item,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card .pg-remove-campaigns-list-item,
html.pg-dark-mode .canvix-account-shell .campaign-placeholder,
html.pg-dark-mode .canvix-account-shell .canvix-template-placeholder {
  background: #17263b !important;
  color: #627792 !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-folder-title-link,
html.pg-dark-mode .canvix-account-shell .canvix-folder-title-link h3,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card h3,
html.pg-dark-mode .canvix-account-shell .canvix-template-title,
html.pg-dark-mode .canvix-account-shell .canvix-template-title a {
  color: #f0f4f9 !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-folder-template-count,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card .pg-remove-campaigns-site-content > p,
html.pg-dark-mode .canvix-account-shell .canvix-folder-updated,
html.pg-dark-mode .canvix-account-shell .canvix-template-meta,
html.pg-dark-mode .canvix-account-shell .canvix-template-updated {
  color: #91a3bb !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-card-menu-toggle,
html.pg-dark-mode .canvix-account-shell .canvix-template-menu-toggle {
  color: #93a5bc;
}

html.pg-dark-mode .canvix-account-shell .canvix-card-menu-toggle:hover,
html.pg-dark-mode .canvix-account-shell .canvix-card-menu.is-open .canvix-card-menu-toggle,
html.pg-dark-mode .canvix-account-shell .canvix-template-menu-toggle:hover {
  background: #1a2d46;
  color: #55c0ff;
}

html.pg-dark-mode .canvix-account-shell .canvix-card-menu > ul,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card .pg-camp-options > ul,
html.pg-dark-mode .canvix-account-shell .canvix-template-menu > ul,
html.pg-dark-mode .canvix-account-shell .pg-camp-options > ul {
  border-color: #304158 !important;
  background: #132036 !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .36) !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-card-menu li a,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card .pg-camp-options li a,
html.pg-dark-mode .canvix-account-shell .canvix-template-menu li a {
  color: #d3deeb !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-card-menu li a:hover,
html.pg-dark-mode .canvix-account-shell .canvix-folder-card .pg-camp-options li a:hover,
html.pg-dark-mode .canvix-account-shell .canvix-template-menu li a:hover {
  background: #1b2d45 !important;
  color: #55c0ff !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-empty-state,
html.pg-dark-mode .canvix-account-shell .canvix-folder-no-results,
html.pg-dark-mode .canvix-account-shell .canvix-search-empty,
html.pg-dark-mode .canvix-account-shell .canvix-template-empty {
  border-color: #2b3d55;
  background: #111c2d;
  color: #9bacc1;
}

/* Common legacy/account page surfaces using the shared header. */
html.pg-dark-mode .canvix-account-shell .pg-screen-container,
html.pg-dark-mode .canvix-account-shell .pg-container,
html.pg-dark-mode .canvix-account-shell .container,
html.pg-dark-mode .canvix-account-shell .container-fluid,
html.pg-dark-mode .canvix-account-shell .ai-tools-wrapper,
html.pg-dark-mode .canvix-account-shell .ai-gallery-section,
html.pg-dark-mode .canvix-account-shell .pg-subscription-holder {
  color: #c9d4e3;
}

html.pg-dark-mode .canvix-account-shell .ai-pane-controls,
html.pg-dark-mode .canvix-account-shell .ai-pane-result,
html.pg-dark-mode .canvix-account-shell .ai-gallery-section,
html.pg-dark-mode .canvix-account-shell .ai-prompt-box,
html.pg-dark-mode .canvix-account-shell .cartoon-style-card,
html.pg-dark-mode .canvix-account-shell .pg-plan-box,
html.pg-dark-mode .canvix-account-shell .pg-plan-box-body,
html.pg-dark-mode .canvix-account-shell .card,
html.pg-dark-mode .canvix-account-shell .panel,
html.pg-dark-mode .canvix-account-shell .well,
html.pg-dark-mode .canvix-account-shell .custom-modal-content,
html.pg-dark-mode .canvix-account-shell .modal-content {
  border-color: #2a3b52 !important;
  background: #111c2d !important;
  color: #c9d4e3 !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .20) !important;
}

html.pg-dark-mode .canvix-account-shell .ai-tab-button,
html.pg-dark-mode .canvix-account-shell .ai-source-toggle button,
html.pg-dark-mode .canvix-account-shell .btn-default,
html.pg-dark-mode .canvix-account-shell .btn-outline-secondary {
  border-color: #31445e !important;
  background: #132137 !important;
  color: #c8d4e3 !important;
}

html.pg-dark-mode .canvix-account-shell .ai-tab-button:hover,
html.pg-dark-mode .canvix-account-shell .ai-source-toggle button:hover,
html.pg-dark-mode .canvix-account-shell .ai-tab-button.active,
html.pg-dark-mode .canvix-account-shell .ai-source-toggle button.active {
  border-color: #38b6ff !important;
  background: #38b6ff !important;
  color: #ffffff !important;
}

html.pg-dark-mode .canvix-account-shell .ai-cost,
html.pg-dark-mode .canvix-account-shell .ai-gallery-hint,
html.pg-dark-mode .canvix-account-shell .ai-gallery-date,
html.pg-dark-mode .canvix-account-shell .ai-gallery-empty {
  color: #91a3ba !important;
}

html.pg-dark-mode .canvix-account-shell .ai-gallery-item {
  border-color: #2a3c53 !important;
  background: #111c2d !important;
}

html.pg-dark-mode .canvix-account-shell table,
html.pg-dark-mode .canvix-account-shell .table {
  color: #cfdae7;
}

html.pg-dark-mode .canvix-account-shell .table > thead > tr > th,
html.pg-dark-mode .canvix-account-shell .table > tbody > tr > td,
html.pg-dark-mode .canvix-account-shell table th,
html.pg-dark-mode .canvix-account-shell table td {
  border-color: #2a3b52 !important;
}

html.pg-dark-mode .canvix-account-shell .table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, .018);
}

html.pg-dark-mode .canvix-account-shell hr {
  border-color: #2a394f;
}

html.pg-dark-mode .canvix-account-shell a:not(.canvix-create-folder-btn):not(.canvix-dashboard-primary-btn):not(.canvix-sidebar-upgrade-btn):not(.pg-btn) {
  text-decoration-color: rgba(56, 182, 255, .35);
}

html.pg-dark-mode .canvix-account-shell .canvix-shell-overlay {
  background: rgba(2, 8, 18, .66);
}

html.pg-dark-mode .canvix-account-shell ::-webkit-scrollbar-track {
  background: #0e1929;
}

html.pg-dark-mode .canvix-account-shell ::-webkit-scrollbar-thumb {
  border: 2px solid #0e1929;
  border-radius: 999px;
  background: #34465e;
}

html.pg-dark-mode .canvix-account-shell ::-webkit-scrollbar-thumb:hover {
  background: #435a76;
}


/* ======================================================================
   CHECKPOINT 13 — dark-mode completion for legacy account pages
   These screens still ship page-local light styles after the shared CSS,
   so the overrides below intentionally use route scope + !important.
   ====================================================================== */

/* Shared legacy headings and copy */
html.pg-dark-mode .canvix-account-shell .pg-page-title-head h1,
html.pg-dark-mode .canvix-account-shell .pg-page-title-head h2,
html.pg-dark-mode .canvix-account-shell .pg-page-title-head h3,
html.pg-dark-mode .canvix-account-shell .pg-page-title-head h4,
html.pg-dark-mode .canvix-account-shell .rb-title,
html.pg-dark-mode .canvix-account-shell .rb-table-title {
  color: #f4f8fd !important;
}

html.pg-dark-mode .canvix-account-shell .pg-page-title-head p,
html.pg-dark-mode .canvix-account-shell .rb-sub,
html.pg-dark-mode .canvix-account-shell .rb-table-sub {
  color: #92a5bd !important;
}

/* ----------------------------------------------------------------------
   Templates catalogue / template-size pages
   ---------------------------------------------------------------------- */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-tabs,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-panels,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-panel {
  color: #d8e3ef !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-tab {
  border-color: #30445f !important;
  background: #132137 !important;
  color: #d2ddec !important;
  box-shadow: none !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-tab:hover,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-tab.active {
  border-color: #38b6ff !important;
  background: #38b6ff !important;
  color: #ffffff !important;
  box-shadow: 0 9px 22px rgba(56, 182, 255, .18) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-tab:not(.active) img {
  filter: brightness(0) invert(.84) sepia(.08) saturate(.6) hue-rotate(175deg) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-card,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-box,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-box-inner {
  border: 1px solid #2b3d55 !important;
  background: #111c2d !important;
  color: #d8e3ef !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-card:hover,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-box:hover .pg-template-box-inner {
  border-color: rgba(56, 182, 255, .70) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .25), 0 0 0 1px rgba(56, 182, 255, .10) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-card .thumb,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-thumb,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .ph {
  border-color: #30435c !important;
  background: #152238 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-card .info,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-camp-content {
  background: #111c2d !important;
  color: #d8e3ef !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-card .info strong,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-camp-content h3,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-camp-content h4 {
  color: #f1f6fb !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-card .info span,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-camp-content p,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .go-back-link {
  color: #94a7bf !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-filter-wrapper {
  border: 1px solid #2c3f58 !important;
  background: #111c2d !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-filter,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-input-holder {
  border-color: #31455f !important;
  background: #132137 !important;
  color: #d9e4f1 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-filter select,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-filter input,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-input-holder input,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-input-holder select,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .ed_campaign_select_chng,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .custom_html_size {
  border-color: #31455f !important;
  background: #132137 !important;
  color: #e7eef7 !important;
  box-shadow: none !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-filter input::placeholder,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-input-holder input::placeholder {
  color: #7589a4 !important;
}

/* Legacy Magnific Popup / Create New Template modal */
html.pg-dark-mode .canvix-account-shell .mfp-bg {
  background: rgba(1, 6, 15, .86) !important;
  opacity: 1 !important;
}

html.pg-dark-mode .canvix-account-shell .pg-modal-inner-row,
html.pg-dark-mode .canvix-account-shell .pg-modal-body,
html.pg-dark-mode .canvix-account-shell .pg-modal-title-wrap,
html.pg-dark-mode .canvix-account-shell .mfp-content .pg-modal-inner-row {
  border-color: #2d4059 !important;
  background: #111c2d !important;
  color: #d6e1ed !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .46) !important;
}

html.pg-dark-mode .canvix-account-shell .pg-modal-title-wrap {
  border-bottom-color: #2d4059 !important;
  background: #132137 !important;
}

html.pg-dark-mode .canvix-account-shell .pg-modal-title-wrap h1,
html.pg-dark-mode .canvix-account-shell .pg-modal-title-wrap h2,
html.pg-dark-mode .canvix-account-shell .pg-modal-title-wrap h3,
html.pg-dark-mode .canvix-account-shell .pg-modal-title-wrap h4,
html.pg-dark-mode .canvix-account-shell .pg-modal-body label {
  color: #f3f7fc !important;
}

html.pg-dark-mode .canvix-account-shell .pg-modal-body input,
html.pg-dark-mode .canvix-account-shell .pg-modal-body textarea,
html.pg-dark-mode .canvix-account-shell .pg-modal-body select {
  border-color: #344a65 !important;
  background: #132137 !important;
  color: #e8eff7 !important;
}

html.pg-dark-mode .canvix-account-shell .pg-modal-body input::placeholder,
html.pg-dark-mode .canvix-account-shell .pg-modal-body textarea::placeholder {
  color: #7589a4 !important;
}

/* ----------------------------------------------------------------------
   AI Tools
   ---------------------------------------------------------------------- */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tab-pane,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-pane-controls,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-pane-result,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-section {
  border-color: #2b3e57 !important;
  background: #111c2d !important;
  color: #d4dfeb !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-prompt-box {
  border-color: #304762 !important;
  background: #132137 !important;
  color: #d9e4f1 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-prompt-box textarea,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-prompt-box input {
  background: transparent !important;
  color: #edf3f9 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-cost,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-hint {
  border-color: #30445f !important;
  background: #132137 !important;
  color: #a9b9cc !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-item,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .cartoon-style-card {
  border-color: #2c4059 !important;
  background: #111c2d !important;
  color: #dce6f1 !important;
}

/* ----------------------------------------------------------------------
   Subscription page
   ---------------------------------------------------------------------- */
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-card,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-card--credits,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-mobile-card,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-table-card {
  border-color: #2d4059 !important;
  background: #111c2d !important;
  color: #d6e1ed !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-card--pro {
  border-color: #ffca45 !important;
  background: #111c2d !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-card--pro::before {
  background: linear-gradient(135deg, rgba(255, 202, 69, .22), rgba(251, 146, 60, .10)) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-card h3,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-cur,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-amt,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rm-title,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rm-price,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-table-title {
  color: #f4f8fd !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-period,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-note,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-select-label,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-table-sub,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rm-label {
  color: #91a4bc !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-feature-list li,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rm-features li {
  color: #cbd7e5 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-feature-list .muted {
  color: #879bb5 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-credits-big,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rm-credit-pill,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-credit-select,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-table-card .table {
  border-color: #30455f !important;
  background: #132137 !important;
  color: #dbe5f0 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-subscription_plan .rb-card--pro .rb-credits-big {
  border-color: rgba(255, 202, 69, .42) !important;
  background: rgba(255, 202, 69, .10) !important;
}

/* ----------------------------------------------------------------------
   Shared billing modal
   ---------------------------------------------------------------------- */
html.pg-dark-mode .canvix-account-shell #billingModal {
  --cvx-ink: #f4f8fd !important;
  --cvx-muted: #93a6bd !important;
  --cvx-line: #2d4059 !important;
  --cvx-soft: #111c2d !important;
}

html.pg-dark-mode .canvix-account-shell #billingModal .modal-content,
html.pg-dark-mode .canvix-account-shell #billingModal .modal-header,
html.pg-dark-mode .canvix-account-shell #billingModal .modal-body,
html.pg-dark-mode .canvix-account-shell #billingModal .billing-modal-body,
html.pg-dark-mode .canvix-account-shell #billingModal .canvix-billing-body {
  border-color: #2d4059 !important;
  background: #0f1a2b !important;
  color: #d5e0ec !important;
}

html.pg-dark-mode .canvix-account-shell #billingModal .modal-title,
html.pg-dark-mode .canvix-account-shell #billingModal .pc-title,
html.pg-dark-mode .canvix-account-shell #billingModal .pc-cur,
html.pg-dark-mode .canvix-account-shell #billingModal .pc-amt,
html.pg-dark-mode .canvix-account-shell #billingModal .bm-title,
html.pg-dark-mode .canvix-account-shell #billingModal .bm-price,
html.pg-dark-mode .canvix-account-shell #billingModal .stripe-title,
html.pg-dark-mode .canvix-account-shell #billingModal .free-title,
html.pg-dark-mode .canvix-account-shell #billingModal .billing-card .card-title,
html.pg-dark-mode .canvix-account-shell #billingModal .meta-strong {
  color: #f4f8fd !important;
}

html.pg-dark-mode .canvix-account-shell #billingModal .pc,
html.pg-dark-mode .canvix-account-shell #billingModal .pc--credits,
html.pg-dark-mode .canvix-account-shell #billingModal .billing-mobile-card,
html.pg-dark-mode .canvix-account-shell #billingModal .billing-card,
html.pg-dark-mode .canvix-account-shell #billingModal .stripe-pane,
html.pg-dark-mode .canvix-account-shell #billingModal .free-pane,
html.pg-dark-mode .canvix-account-shell #billingModal .purchase-stat-card,
html.pg-dark-mode .canvix-account-shell #billingModal .purchase-detail-card {
  border-color: #2d4059 !important;
  background: #111c2d !important;
  color: #d5e0ec !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22) !important;
}

html.pg-dark-mode .canvix-account-shell #billingModal .pc--pro {
  border-color: #ffca45 !important;
}

html.pg-dark-mode .canvix-account-shell #billingModal .pc--pro::before {
  background: linear-gradient(135deg, rgba(255, 202, 69, .22), rgba(251, 146, 60, .10)) !important;
}

html.pg-dark-mode .canvix-account-shell #billingModal .pc-feature-list li,
html.pg-dark-mode .canvix-account-shell #billingModal .bm-features li,
html.pg-dark-mode .canvix-account-shell #billingModal .billing-card .meta-list,
html.pg-dark-mode .canvix-account-shell #billingModal .free-benefit {
  color: #cbd7e5 !important;
}

html.pg-dark-mode .canvix-account-shell #billingModal .pc-credits-big,
html.pg-dark-mode .canvix-account-shell #billingModal .bm-credit-pill,
html.pg-dark-mode .canvix-account-shell #billingModal .pc-select,
html.pg-dark-mode .canvix-account-shell #billingModal .stripe-input,
html.pg-dark-mode .canvix-account-shell #billingModal .stripe-text,
html.pg-dark-mode .canvix-account-shell #billingModal .free-benefit,
html.pg-dark-mode .canvix-account-shell #billingModal #billingStripeSummary {
  border-color: #324862 !important;
  background: #132137 !important;
  color: #e3ebf5 !important;
}

html.pg-dark-mode .canvix-account-shell #billingModal .close,
html.pg-dark-mode .canvix-account-shell #billingModal .btn-close,
html.pg-dark-mode .canvix-account-shell #billingModal .js-billing-modal-close,
html.pg-dark-mode .canvix-account-shell #billingModal .stripe-back,
html.pg-dark-mode .canvix-account-shell #billingModal .free-back {
  border-color: #324862 !important;
  background: #132137 !important;
  color: #e5edf7 !important;
}

html.pg-dark-mode .canvix-account-shell #billingModal .pc-per,
html.pg-dark-mode .canvix-account-shell #billingModal .pc-select-label,
html.pg-dark-mode .canvix-account-shell #billingModal .pc-note,
html.pg-dark-mode .canvix-account-shell #billingModal .stripe-sub,
html.pg-dark-mode .canvix-account-shell #billingModal .stripe-label,
html.pg-dark-mode .canvix-account-shell #billingModal .stripe-trust,
html.pg-dark-mode .canvix-account-shell #billingModal .free-sub,
html.pg-dark-mode .canvix-account-shell #billingModal .purchase-stat-label,
html.pg-dark-mode .canvix-account-shell #billingModal .purchase-detail-key {
  color: #91a4bc !important;
}

/* ----------------------------------------------------------------------
   Referrals
   ---------------------------------------------------------------------- */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-referrals .pg-referral-card {
  border-color: #2d4059 !important;
  background: #111c2d !important;
  color: #d8e3ef !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-referrals .pg-referral-card h5,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-referrals .pg-referral-card p,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-referrals .pg-referral-link label {
  color: #f1f6fb !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-referrals .pg-referral-link p {
  color: #91a4bc !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-referrals #refLink {
  border-color: #334963 !important;
  background: #132137 !important;
  color: #eef4fa !important;
}

/* ----------------------------------------------------------------------
   Contact / support
   ---------------------------------------------------------------------- */
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-card,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-side-card,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-hero,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-stats {
  border-color: #2d4059 !important;
  background: #111c2d !important;
  color: #d8e3ef !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .20) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-card h2,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-side-card h3,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-hero h1,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-field label,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-stat strong {
  color: #f3f7fc !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-desc,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-submit-note,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-list,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-support-stat span,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-field small {
  color: #93a6bd !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-field input,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-field select,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-field textarea {
  border-color: #334963 !important;
  background: #132137 !important;
  color: #ecf3fa !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-field input:focus,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-field select:focus,
html.pg-dark-mode .canvix-account-shell.canvix-route-2-contact .canvix-field textarea:focus {
  border-color: #38b6ff !important;
  box-shadow: 0 0 0 3px rgba(56, 182, 255, .15) !important;
}

/* ----------------------------------------------------------------------
   Public templates on the folders dashboard
   ---------------------------------------------------------------------- */
html.pg-dark-mode .canvix-account-shell .public-template-card,
html.pg-dark-mode .canvix-account-shell .public-template-body {
  border-color: #2d4059 !important;
  background: #111c2d !important;
  color: #d8e3ef !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18) !important;
}

html.pg-dark-mode .canvix-account-shell .public-template-title {
  color: #f2f7fc !important;
}

html.pg-dark-mode .canvix-account-shell .public-template-meta,
html.pg-dark-mode .canvix-account-shell .public-template-meta span,
html.pg-dark-mode .canvix-account-shell .public-template-url-text {
  color: #94a7bf !important;
}

html.pg-dark-mode .canvix-account-shell .public-template-url,
html.pg-dark-mode .canvix-account-shell .public-template-actions {
  border-color: #30455f !important;
  background: #132137 !important;
}

html.pg-dark-mode .canvix-account-shell .public-template-actions a,
html.pg-dark-mode .canvix-account-shell .public-template-actions button,
html.pg-dark-mode .canvix-account-shell .public-template-copy-icon {
  border-color: #344a65 !important;
  background: #17263b !important;
  color: #dbe6f2 !important;
}

html.pg-dark-mode .canvix-account-shell .public-template-actions a:hover,
html.pg-dark-mode .canvix-account-shell .public-template-actions button:hover,
html.pg-dark-mode .canvix-account-shell .public-template-copy-icon:hover {
  border-color: #38b6ff !important;
  background: #1b3049 !important;
  color: #55c0ff !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-referrals .pg-referral-card:last-child p {
  color: #34d399 !important;
}


/* ======================================================================
   CHECKPOINT 14 — final dark-mode template polish
   ====================================================================== */

/* The choose-template page keeps its legacy filter controls off-screen.
   Do not turn their visible wrapper into a full-width dark panel. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images #pg-filters-panel,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-filter-wrapper#pg-filters-panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* Wide template previews use object-fit: contain so the complete design is
   visible. Let the surrounding letterbox area inherit the dark preview
   surface instead of showing the old light image background. */
html.pg-dark-mode .canvix-account-shell .canvix-template-preview img,
html.pg-dark-mode .canvix-account-shell .canvix-template-preview.pg-template-thumb img {
  background: transparent !important;
}

html.pg-dark-mode .canvix-account-shell .canvix-template-preview,
html.pg-dark-mode .canvix-account-shell .canvix-template-preview.pg-template-thumb {
  background: #101c2d !important;
}

/* Apply the same edge-to-edge dark framing to catalogue thumbnails without
   cropping the artwork. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-card .thumb,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-thumb {
  background: #101c2d !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .nova-card .thumb img,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-images .pg-template-thumb img {
  background: transparent !important;
}

/* ======================================================================
   CHECKPOINT 15 — AI Tools dark-mode completion
   ====================================================================== */

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools {
  --cvx-ai-dark-surface: #111d2f;
  --cvx-ai-dark-surface-2: #14243a;
  --cvx-ai-dark-surface-3: #182a42;
  --cvx-ai-dark-line: #304862;
  --cvx-ai-dark-line-strong: #3a5878;
  --cvx-ai-dark-text: #eaf2fb;
  --cvx-ai-dark-muted: #9eb1c8;
}

/* Keep every tool panel and its nested control areas on one coherent navy
   surface instead of mixing the old white components into dark mode. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tab-pane,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-pane-controls,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-pane-result,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-section {
  border-color: var(--cvx-ai-dark-line) !important;
  background: var(--cvx-ai-dark-surface) !important;
  color: var(--cvx-ai-dark-text) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-pane-controls {
  box-shadow: none !important;
}

/* Credits/cost badges were inheriting the original black strong text. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-cost {
  border-color: var(--cvx-ai-dark-line-strong) !important;
  background: #16263b !important;
  color: #b8c8da !important;
  box-shadow: none !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-cost strong,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-cost strong span {
  color: #f5f9fd !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-cost strong > span:first-child,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-cost [id$="cost_credits"] {
  color: #67c9ff !important;
}

/* Form controls, helper labels and native file selectors. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .form-control,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools select,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="text"],
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="url"],
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools textarea {
  border-color: var(--cvx-ai-dark-line) !important;
  background: var(--cvx-ai-dark-surface-2) !important;
  color: var(--cvx-ai-dark-text) !important;
  color-scheme: dark;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .form-control:focus,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools select:focus,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="text"]:focus,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="url"]:focus,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools textarea:focus {
  border-color: #38b6ff !important;
  box-shadow: 0 0 0 3px rgba(56, 182, 255, .13) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools select option {
  background: #14243a;
  color: #edf4fb;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input::placeholder,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools textarea::placeholder {
  color: #7f95ae !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="file"] {
  color: #edf4fb !important;
  color-scheme: dark;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 12px;
  border: 1px solid #3b5876;
  border-radius: 9px;
  background: #1b3049;
  color: #f5f9fd;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="file"]::file-selector-button:hover {
  border-color: #38b6ff;
  background: #21415f;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="radio"],
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="checkbox"],
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools input[type="range"] {
  accent-color: #38b6ff;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tab-pane label,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-field-label,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-helper-text,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tab-pane div[style*="color:#64748b"] {
  color: var(--cvx-ai-dark-muted) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tab-pane label strong,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-field-label strong {
  color: #e9f2fb !important;
}

/* Upload / Image URL segmented controls. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-source-toggle {
  border-color: var(--cvx-ai-dark-line) !important;
  background: #0f1b2c !important;
  box-shadow: none !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-source-toggle label {
  color: #b8c7d8 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-source-toggle label:hover {
  color: #eef5fb !important;
  background: #1a2d45 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-source-toggle label:has(input:checked) {
  border-color: #38b6ff !important;
  background: #38b6ff !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(56, 182, 255, .18) !important;
}

/* Cartoon style chooser: make titles and selected states readable. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .cartoon-style-card {
  border-color: var(--cvx-ai-dark-line) !important;
  background: #132137 !important;
  color: var(--cvx-ai-dark-text) !important;
  box-shadow: none !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .cartoon-style-card:hover {
  border-color: #4f779c !important;
  background: #172a42 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .cartoon-style-card.selected {
  border-color: #38b6ff !important;
  background: rgba(56, 182, 255, .12) !important;
  box-shadow: 0 0 0 2px rgba(56, 182, 255, .10) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .cartoon-style-title {
  color: #eef5fb !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .cartoon-style-thumb {
  border-color: #3b526d !important;
  background: #eaf4fb !important;
}

/* Text-to-speech advanced controls. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tts-settings {
  border-color: var(--cvx-ai-dark-line) !important;
  background: #132137 !important;
  color: var(--cvx-ai-dark-text) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tts-settings-title {
  color: #f1f6fb !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tts-settings textarea,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tts-settings input[type="text"] {
  border-color: #354d68 !important;
  background: #0e1a2b !important;
  color: #edf4fb !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-tts-settings input[type="range"] {
  color-scheme: dark;
}

/* Result/status cards generated by the tool scripts. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-status-card {
  border-color: var(--cvx-ai-dark-line) !important;
  background: #132137 !important;
  color: var(--cvx-ai-dark-text) !important;
  box-shadow: none !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-status-card.is-loading {
  border-color: #315c7a !important;
  background: #12243a !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-status-card.is-success {
  border-color: #25684f !important;
  background: #102c26 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-status-card.is-error {
  border-color: #7a3d47 !important;
  background: #321a22 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-status-icon {
  border-color: #3a526d !important;
  background: #17263b !important;
  color: #66c9ff !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-status-title,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-result-label {
  color: #eff5fb !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-status-subtitle {
  color: #a1b2c7 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-result-image-wrapper img,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-result-video-wrapper video {
  border-color: var(--cvx-ai-dark-line) !important;
  background: #0a1422 !important;
}

/* Gallery cards, including the dynamically injected audio wrapper and native
   action buttons. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-section {
  background: #111d2f !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-header h4 {
  color: #f1f6fb !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-item {
  border-color: var(--cvx-ai-dark-line) !important;
  background: #132137 !important;
  color: var(--cvx-ai-dark-text) !important;
  box-shadow: none !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-thumb,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-audio-wrap,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-thumb > div[style*="background:#f8fafc"] {
  background: #0b1626 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-item[data-tool="rmbg"] .ai-gallery-thumb {
  background-color: #0b1626 !important;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.055) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.055) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.055) 75%) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-prompt {
  color: #d8e4f0 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-date,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-empty,
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-hint {
  color: #9eb0c6 !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-link {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 2px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(83, 192, 255, .38) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #55c0ff !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 12px !important;
  cursor: pointer;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-link:hover {
  color: #8bd5ff !important;
  border-bottom-color: #8bd5ff !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-delete {
  color: #ff8d99 !important;
  border-bottom-color: rgba(255, 112, 128, .42) !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools .ai-gallery-delete:hover {
  color: #ffb1ba !important;
  border-bottom-color: #ff9daa !important;
}

html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools audio {
  color-scheme: dark;
}

/* Keep generated helper copy and captions readable even when the view uses
   inline light-mode colour declarations. */
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools [style*="color:#334155"],
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools [style*="color: #334155"],
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools [style*="color:#64748b"],
html.pg-dark-mode .canvix-account-shell.canvix-route-1-ai-tools [style*="color: #64748b"] {
  color: var(--cvx-ai-dark-muted) !important;
}


/* ======================================================================
   Checkpoint 16 — Kie-inspired elevated white cards
   Light mode only: pure white surfaces, almost invisible borders and
   restrained neutral shadows for the folders and templates workspaces.
   ====================================================================== */
html:not(.pg-dark-mode) body.canvix-account-shell {
  --cvx-dashboard-bg: #f7f8fa;
  --cvx-dashboard-line: #e9edf2;
  background: #f7f8fa !important;
}

html:not(.pg-dark-mode) body.canvix-account-shell main {
  background: #f7f8fa !important;
}

/* Keep the shared shell crisp while allowing the content cards to float. */
html:not(.pg-dark-mode) body.canvix-account-shell .navbar,
html:not(.pg-dark-mode) body.canvix-account-shell .side-panel {
  background: #ffffff !important;
}

/* Folders: no coloured outline at rest, just a clean elevated surface. */
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-card-inner,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-row,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-card .pg-template-box-inner {
  border: 1px solid rgba(17, 24, 39, .045) !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, .025),
    0 8px 24px rgba(16, 24, 40, .075) !important;
}

html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-card:hover .canvix-folder-card-inner,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-card:hover .pg-remove-campaigns-row,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-card:hover .pg-template-box-inner {
  transform: translateY(-2px) !important;
  border-color: rgba(56, 182, 255, .52) !important;
  box-shadow:
    0 0 0 1px rgba(56, 182, 255, .16),
    0 6px 16px rgba(56, 182, 255, .10),
    0 16px 36px rgba(16, 24, 40, .10) !important;
}

html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-preview,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-card .pg-template-thumb,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-img,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-mosaic-item,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-folder-card .pg-remove-campaigns-list-item,
html:not(.pg-dark-mode) body.canvix-account-shell .campaign-placeholder {
  background: #f7f9fb !important;
}

/* Templates: match the same floating white-card language. */
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-card-inner.pg-template-box-inner,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-card-inner {
  border: 1px solid rgba(17, 24, 39, .045) !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, .025),
    0 8px 24px rgba(16, 24, 40, .075) !important;
}

html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-card:hover .canvix-template-card-inner {
  transform: translateY(-2px) !important;
  border-color: rgba(56, 182, 255, .52) !important;
  box-shadow:
    0 0 0 1px rgba(56, 182, 255, .16),
    0 6px 16px rgba(56, 182, 255, .10),
    0 16px 36px rgba(16, 24, 40, .10) !important;
}

html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-preview.pg-template-thumb,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-preview,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-preview img,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-placeholder {
  background: #f7f9fb !important;
}

/* Kie-style fields: white, low-contrast edge and restrained elevation. */
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-dashboard-search input,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-dashboard-sort,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-search input,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-sort {
  border: 1px solid #e3e7ec !important;
  background: #ffffff !important;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, .02),
    0 6px 18px rgba(16, 24, 40, .055) !important;
}

html:not(.pg-dark-mode) body.canvix-account-shell .canvix-dashboard-search input:hover,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-dashboard-sort:hover,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-search input:hover,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-sort:hover {
  border-color: #d5dbe3 !important;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, .025),
    0 8px 22px rgba(16, 24, 40, .07) !important;
}

html:not(.pg-dark-mode) body.canvix-account-shell .canvix-dashboard-search input:focus,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-dashboard-sort:focus,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-search input:focus,
html:not(.pg-dark-mode) body.canvix-account-shell .canvix-template-sort:focus {
  border-color: rgba(56, 182, 255, .72) !important;
  box-shadow:
    0 0 0 3px rgba(56, 182, 255, .12),
    0 9px 24px rgba(16, 24, 40, .075) !important;
}
