html.cm-site-background-active {
  min-height: 100%;
  background: #04071d;
}

html.cm-site-background-active body {
  min-height: 100vh;
  position: relative;
  z-index: 0;
  isolation: isolate;
  background-color: transparent !important;
  background-image: none !important;
}

.cm-site-background-layer {
  position: fixed;
  inset: -3%;
  z-index: -1;
  display: block;
  pointer-events: none;
  user-select: none;
  background-color: #070b24;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(37, 215, 255, .16) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 26%, rgba(255, 50, 193, .18) 0 2px, transparent 3px),
    linear-gradient(rgba(3, 7, 27, .24), rgba(6, 5, 28, .48)),
    var(--cm-site-background-image);
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  background-size: 240px 240px, 310px 310px, cover, cover;
  background-position: 0 0, 70px 40px, center, center;
  transform: translate3d(0, 0, 0) scale(1.01);
  transform-origin: center;
  will-change: transform, background-position;
}

html.cm-site-background-active.cm-site-background-animated .cm-site-background-layer {
  animation: cm-site-background-drift 24s ease-in-out infinite alternate;
}

@keyframes cm-site-background-drift {
  0% { background-position: 0 0, 70px 40px, center, center; transform: translate3d(-.5%, 0, 0) scale(1.04); }
  50% { background-position: 32px -22px, 38px 72px, center, center; transform: translate3d(0, -.5%, 0) scale(1.055); }
  100% { background-position: 64px -44px, 6px 104px, center, center; transform: translate3d(.5%, 0, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  html.cm-site-background-active.cm-site-background-animated .cm-site-background-layer { animation: none !important; }
}

.cm-bg-admin {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(89, 223, 255, .32);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(5, 15, 43, .86), rgba(72, 13, 77, .72));
  color: #f7f1ff;
}
.cm-bg-admin h3 { margin: 0 0 5px; color: #8feaff; font-size: 15px; }
.cm-bg-admin-intro { margin: 0 0 13px; color: #c8c3d7; font-size: 12px; line-height: 1.5; }
.cm-bg-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cm-bg-admin-card { padding: 10px; border: 1px solid rgba(243, 199, 88, .24); border-radius: 10px; background: rgba(3, 10, 34, .72); }
.cm-bg-admin-card h4 { margin: 0 0 8px; color: #ffe18a; font-size: 12px; }
.cm-bg-preview { aspect-ratio: 16 / 8; width: 100%; margin-bottom: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; object-fit: cover; background: #05091f; }
.cm-bg-admin-card label { display: block; margin: 7px 0 3px; color: #aaa5c3; font-size: 11px; font-weight: 800; }
.cm-bg-admin-card select,
.cm-bg-admin-card input[type="file"] { box-sizing: border-box; width: 100%; min-height: 36px; padding: 6px 8px; border: 1px solid rgba(89, 223, 255, .30); border-radius: 7px; background: #0a1738; color: #fff; font-size: 12px; }
.cm-bg-animation { display: flex !important; align-items: center; gap: 7px; margin: 9px 0 !important; color: #e8e4f1 !important; font-weight: 700 !important; }
.cm-bg-animation input { width: 17px; height: 17px; accent-color: #d733a0; }
.cm-bg-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-bg-actions button { padding: 7px 9px; border: 1px solid rgba(89, 223, 255, .34); border-radius: 7px; background: rgba(16, 75, 112, .45); color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; }
.cm-bg-actions button:hover { filter: brightness(1.2); }
.cm-bg-actions .cm-bg-delete { border-color: rgba(255, 109, 145, .4); background: rgba(130, 24, 65, .42); }
.cm-bg-status { min-height: 18px; margin-top: 9px; color: #9beab8; font-size: 12px; font-weight: 700; }
.cm-bg-status.is-error { color: #ff9bad; }
@media (max-width: 1050px) { .cm-bg-admin-grid { grid-template-columns: 1fr; } }

