/* ==========================================================================
   arushan.bio — Master Cabinet & Visual Builder Alignment, Style & 144Hz Polish
   Unified light design system matching the Landing Page (#FFFFFF + #6847EE).
   Loaded LAST so all legacy conflicts (v1..v5) resolve cleanly in one place.
   ========================================================================== */

/* ---------- 0. GPU Performance: zero heavy blurs & infinite blob loops ---------- */
html body.nl-app {
  background: #fdfcff !important;
  color: #171717 !important;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif !important;
}

html body.nl-app::before,
html body.nl-app::after {
  filter: none !important;
  animation: none !important;
  will-change: auto !important;
  opacity: 1 !important;
  width: 100vw !important;
  height: 100vh !important;
  inset: 0 !important;
  border-radius: 0 !important;
  pointer-events: none !important;
}
html body.nl-app::before {
  background:
    radial-gradient(640px circle at 92% 8%, rgba(157, 136, 255, 0.14), transparent 68%),
    radial-gradient(580px circle at 14% 92%, rgba(127, 98, 255, 0.10), transparent 68%) !important;
}
html body.nl-app::after {
  display: none !important;
}

html body.nl-app .side,
html body.nl-app .cards .stat,
html body.nl-app .settings-card,
html body.nl-app .table,
html body.nl-app .spl-card,
html body.nl-app .rs-card,
html body.nl-app .sectionbox,
html body.nl-app .bot-steps-box,
html body.nl-app .device-preview-toolbar,
html body.nl-app .editor,
html body.nl-app .spl-dialog,
html body.nl-app .rs-sheet,
html body.nl-app .sh-sheet {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body.nl-app .mini-phone,
html body.nl-app .spl-fab,
html body.nl-app .status.is-on::before {
  animation: none !important;
}

/* Thin, calm scrollbars everywhere in cabinet & editor */
html body.nl-app *::-webkit-scrollbar,
html body #editorModal *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
html body.nl-app *::-webkit-scrollbar-thumb,
html body #editorModal *::-webkit-scrollbar-thumb {
  background: rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  border: 0;
}
html body.nl-app *::-webkit-scrollbar-thumb:hover,
html body #editorModal *::-webkit-scrollbar-thumb:hover {
  background: rgba(104, 71, 238, 0.38);
}

/* ---------- 1. Main Layout & Top Header + Language Capsule ---------- */
html body.nl-app #root .app .main {
  padding-top: 28px !important;
  padding-bottom: 88px !important;
}

html body.nl-app #root .app .main > .top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 22px !important;
  flex-wrap: wrap !important;
}

html body.nl-app #root .app .main > .top h2,
html body.nl-app #root .app .main > .top h1 {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: clamp(24px, 2.4vw, 30px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: #111827 !important;
  margin: 0 !important;
}
html body.nl-app #root .app .main > .top p {
  font-size: 14px !important;
  color: #6B7280 !important;
  margin: 4px 0 0 !important;
  line-height: 1.45 !important;
  letter-spacing: -0.1px !important;
}

html body.nl-app #root .app .main .topact {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Exact Landing-Page Segmented Language Capsule [ RU | UK | EN ] */
html body.nl-app #root .app .main .topact .lang,
html body.nl-app .lang {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  height: 38px !important;
  padding: 3px !important;
  border-radius: 11px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

html body.nl-app #root .app .main .topact .lang button,
html body.nl-app .lang button {
  position: relative !important;
  width: auto !important;
  min-width: 36px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(0, 0, 0, 0.6) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}
html body.nl-app #root .app .main .topact .lang button::before,
html body.nl-app #root .app .main .topact .lang button::after,
html body.nl-app #root .app .main .topact #newLink::before,
html body.nl-app #root .app .main .topact #newLink::after {
  display: none !important;
  content: none !important;
}
html body.nl-app #root .app .main .topact .lang button:hover:not(.active),
html body.nl-app .lang button:hover:not(.active) {
  color: #111827 !important;
  background: rgba(255, 255, 255, 0.5) !important;
}
html body.nl-app #root .app .main .topact .lang button.active,
html body.nl-app .lang button.active {
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* "+ Новая ссылка" button: exact same 38px height, crisp brand violet */
html body.nl-app #root .app .main .topact #newLink {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 11px !important;
  background: #6847ee !important;
  color: #ffffff !important;
  border: 0 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.1px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px -4px rgba(104, 71, 238, 0.35) !important;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}
html body.nl-app #root .app .main .topact #newLink:hover {
  background: #5a39e0 !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 22px -6px rgba(104, 71, 238, 0.45) !important;
}

/* ---------- 2. Sidebar & User Card (.side & .sideuser) ---------- */
html body.nl-app aside.side {
  background: #ffffff !important;
  border: 1px solid rgba(104, 71, 238, 0.09) !important;
  box-shadow: 0 10px 32px -16px rgba(20, 12, 60, 0.08) !important;
}

html body.nl-app .side .snav {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

html body.nl-app .side .snav button,
html body.nl-app .side .snav a {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  border-radius: 11px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #4B5563 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color 0.16s ease, color 0.16s ease !important;
}
html body.nl-app .side .snav button:hover,
html body.nl-app .side .snav a:hover {
  background: #f6f4ff !important;
  color: #111827 !important;
  transform: none !important;
}
html body.nl-app .side .snav button.active {
  background: #f3f0ff !important;
  color: #6847ee !important;
  font-weight: 600 !important;
  border-color: rgba(104, 71, 238, 0.14) !important;
}
html body.nl-app .side .snav button.active .snav-icon {
  color: #6847ee !important;
}

/* Clean white-lavender user profile card (replaces grey box) */
html body.nl-app .side .sideuser {
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%) !important;
  border: 1px solid rgba(104, 71, 238, 0.12) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  box-shadow: 0 6px 20px -12px rgba(104, 71, 238, 0.16) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
html body.nl-app .side .sideuser b {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.3 !important;
}
html body.nl-app .side .sideuser span {
  font-size: 12px !important;
  color: #6B7280 !important;
  line-height: 1.3 !important;
}
html body.nl-app .side .sideuser #logout,
html body.nl-app #logout.btn.danger {
  height: 34px !important;
  min-height: 34px !important;
  margin-top: 10px !important;
  border-radius: 10px !important;
  background: #f5f3ff !important;
  border: 1px solid rgba(104, 71, 238, 0.14) !important;
  color: #4e2fcc !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease !important;
}
html body.nl-app #logout.btn.danger:hover {
  background: #fef2f2 !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
  color: #dc2626 !important;
}

/* ---------- 3. Unified Buttons & Inputs across Cabinet ---------- */
html body.nl-app .input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

html body.nl-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not(#subdomainInput),
html body.nl-app select,
html body.nl-app textarea {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.11) !important;
  border-radius: 11px !important;
  color: #111827 !important;
  font-size: 13.5px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
}
html body.nl-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not(#subdomainInput) {
  height: 40px !important;
  padding: 0 13px !important;
}
html body.nl-app textarea {
  padding: 10px 13px !important;
  line-height: 1.45 !important;
}
html body.nl-app input:-webkit-autofill,
html body.nl-app input:-webkit-autofill:hover,
html body.nl-app input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #ffffff inset !important;
  -webkit-text-fill-color: #111827 !important;
}
html body.nl-app input:not(#subdomainInput):focus,
html body.nl-app select:focus,
html body.nl-app textarea:focus {
  border-color: #6847ee !important;
  box-shadow: 0 0 0 3px rgba(104, 71, 238, 0.12) !important;
  outline: none !important;
}

html body.nl-app .btn:not(.menu):not([style*="display: none"]):not([style*="display:none"]):not([hidden]),
html body.nl-app .spl-btn:not(.icon):not([style*="display: none"]):not([style*="display:none"]):not([hidden]),
html body.nl-app .sh-btn:not([style*="display: none"]):not([style*="display:none"]):not([hidden]),
html body.nl-app .wr-test:not([style*="display: none"]):not([style*="display:none"]):not([hidden]) {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transform: none !important;
}
@media (min-width: 901px) {
  html body.nl-app #menu,
  html body.nl-app .btn.menu {
    display: none !important;
  }
}
html body.nl-app #root [style*="display: none"],
html body.nl-app #root [style*="display:none"],
html body.nl-app #root .btn[style*="display: none"],
html body.nl-app #root .btn[style*="display:none"],
html body.nl-app [style*="display: none"],
html body.nl-app [style*="display:none"],
html body #editorModal#editorModal [style*="display: none"],
html body #editorModal#editorModal [style*="display:none"],
html body.nl-app #root [hidden],
html body #editorModal#editorModal [hidden] {
  display: none !important;
}
html body.nl-app .btn:not(.primary):not(.danger),
html body.nl-app .spl-btn:not(.primary):not(.icon),
html body.nl-app .sh-btn:not(.sh-primary),
html body.nl-app .wr-test {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  color: #171717 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
html body.nl-app .btn:not(.primary):not(.danger):hover:not(:disabled),
html body.nl-app .wr-test:hover:not(:disabled) {
  background: #f8f7ff !important;
  border-color: rgba(104, 71, 238, 0.28) !important;
  color: #6847ee !important;
}
html body.nl-app .btn.primary,
html body.nl-app .btnlink.primary,
html body.nl-app .spl-btn.primary,
html body.nl-app .sh-btn.sh-primary {
  background: #6847ee !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px -4px rgba(104, 71, 238, 0.32) !important;
}
html body.nl-app .btn.primary:hover:not(:disabled),
html body.nl-app .btnlink.primary:hover:not(:disabled) {
  background: #5a39e0 !important;
}
html body.nl-app .btn.primary::after,
html body.nl-app #emptyNew::after,
html body.nl-app #saveLinkBtn::after {
  display: none !important;
  content: none !important;
}

/* ---------- 4. Unified Cards & KPI Row ---------- */
html body.nl-app .cards .stat,
html body.nl-app .settings-card,
html body.nl-app .table,
html body.nl-app .rs-card,
html body.nl-app .spl-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.03), 0 10px 26px -12px rgba(104, 71, 238, 0.08) !important;
}
html body.nl-app .cards .stat:hover,
html body.nl-app .settings-card:hover {
  transform: none !important;
}

html body.nl-app #root .app .main .cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}
html body.nl-app #root .app .main .cards .stat {
  min-height: 78px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* Hide floating Split Analytics FAB on Analytics & Settings tabs so it never covers cards */
html body.nl-app.uip-dash-analytics .spl-fab,
html body.nl-app.uip-dash-settings .spl-fab,
html body.nl-app.uip-dash-admin .spl-fab {
  display: none !important;
}
html body.nl-app .spl-fab {
  height: 40px !important;
  border-radius: 12px !important;
  background: #6847ee !important;
  box-shadow: 0 10px 24px -6px rgba(104, 71, 238, 0.42) !important;
}

/* ---------- 5. Analytics Tab Alignment (Screenshot 4) ---------- */
html body.nl-app #rsToolbar,
html body.nl-app .rs-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

html body.nl-app .rs-periods {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  height: 38px !important;
  padding: 3px !important;
  border-radius: 11px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
html body.nl-app .rs-periods button {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(0, 0, 0, 0.62) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}
html body.nl-app .rs-periods button.is-on {
  background: #6847ee !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(104, 71, 238, 0.30) !important;
}

html body.nl-app .rs-tbr {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
html body.nl-app .rs-select {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}
html body.nl-app .rs-select select {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 32px 0 13px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
}
html body.nl-app .rs-csv {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  color: #171717 !important;
}

/* Fix chart X-axis labels (never style span.rs-x like a button!) */
html body.nl-app .rs-col span.rs-x,
html body.nl-app span.rs-x {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  color: #6B7280 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

html body.nl-app .rs-card {
  padding: 20px !important;
}
html body.nl-app .rs-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}
html body.nl-app .rs-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111827 !important;
}
html body.nl-app .rs-grid2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 14px !important;
  align-items: start !important;
}
@media (max-width: 860px) {
  html body.nl-app .rs-grid2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
html body.nl-app .rs-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
html body.nl-app .rs-seg,
html body.nl-app .rs-ctrack,
html body.nl-app .rs-strack {
  height: 8px !important;
  border-radius: 999px !important;
  background: #f1effa !important;
  overflow: hidden !important;
}
html body.nl-app .rs-note {
  background: #f8f7ff !important;
  border: 1px solid rgba(104, 71, 238, 0.10) !important;
  border-radius: 12px !important;
  color: #6B7280 !important;
  padding: 10px 12px !important;
  font-size: 12px !important;
}

/* ---------- 6. Settings Tab Alignment (Screenshot 5) ---------- */
html body.nl-app .settings-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}
@media (max-width: 820px) {
  html body.nl-app .settings-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
html body.nl-app .settings-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 22px !important;
}
html body.nl-app .settings-card.wide {
  grid-column: 1 / -1 !important;
}
html body.nl-app .settings-card h3 {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: #111827 !important;
  margin: 0 0 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
html body.nl-app .settings-card > p {
  font-size: 13.5px !important;
  color: #6B7280 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

html body.nl-app .settings-meta {
  margin-top: 14px !important;
  display: flex !important;
  flex-direction: column !important;
}
html body.nl-app .settings-meta > div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  font-size: 13.5px !important;
}
html body.nl-app .settings-meta > div:last-child {
  border-bottom: 0 !important;
}
html body.nl-app .settings-meta span {
  color: #6B7280 !important;
}
html body.nl-app .settings-meta b {
  color: #111827 !important;
  font-weight: 600 !important;
}

html body.nl-app .settings-email-block {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}
html body.nl-app .settings-field-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #6B7280 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
}
html body.nl-app .settings-inline-row,
html body.nl-app .bot-input-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 6px !important;
}
html body.nl-app .settings-inline-row input,
html body.nl-app .bot-input-group #botTokenInput {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
}
html body.nl-app .bot-input-group #connectBotBtn,
html body.nl-app .settings-inline-row button {
  height: 40px !important;
  min-height: 40px !important;
  flex-shrink: 0 !important;
}
@media (max-width: 560px) {
  html body.nl-app .bot-input-group {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* Subdomain single clean input box (zero nested borders!) */
html body.nl-app .subdomain-input-group {
  display: flex !important;
  align-items: center !important;
  height: 42px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.11) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease !important;
}
html body.nl-app .subdomain-input-group:focus-within {
  border-color: #6847ee !important;
  box-shadow: 0 0 0 3px rgba(104, 71, 238, 0.12) !important;
}
html body.nl-app .subdomain-prefix {
  font-weight: 600 !important;
  color: #6847ee !important;
  font-size: 13.5px !important;
  user-select: none !important;
  flex-shrink: 0 !important;
}
html body.nl-app #subdomainInput {
  flex: 1 1 auto !important;
  min-width: 60px !important;
  height: 100% !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 3px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}
html body.nl-app .subdomain-suffix {
  font-weight: 600 !important;
  color: #6B7280 !important;
  font-size: 13.5px !important;
  user-select: none !important;
  flex-shrink: 0 !important;
}
html body.nl-app .subdomain-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
}
html body.nl-app .settings-status-line {
  font-size: 12.5px !important;
  margin-top: 6px !important;
  min-height: 18px !important;
  font-weight: 500 !important;
}

/* Weekly Report card & clean single iOS switch */
html body.nl-app #weeklyReportCard .wr-row {
  margin-top: 14px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: #f8f7ff !important;
  border: 1px solid rgba(104, 71, 238, 0.10) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
html body.nl-app #weeklyReportCard .wr-row b {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}
html body.nl-app #weeklyReportCard .wr-row small {
  display: block !important;
  font-size: 12px !important;
  color: #6B7280 !important;
  margin-top: 2px !important;
}
html body.nl-app .wr-switch {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}
html body.nl-app .wr-switch i {
  display: none !important;
}
html body.nl-app .wr-switch input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  inset: auto !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 24px !important;
  min-height: 24px !important;
  border-radius: 999px !important;
  background: #d1d5db !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}
html body.nl-app .wr-switch input[type="checkbox"]::after {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22) !important;
  transition: transform 0.2s cubic-bezier(.16, 1, .3, 1) !important;
}
html body.nl-app .wr-switch input[type="checkbox"]:checked {
  background: #6847ee !important;
}
html body.nl-app .wr-switch input[type="checkbox"]:checked::after {
  transform: translateX(20px) !important;
}
html body.nl-app #weeklyReportCard .wr-actions {
  margin-top: 12px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
html body.nl-app #weeklyReportCard .wr-status {
  font-size: 12.5px !important;
  color: #6B7280 !important;
}
html body.nl-app #weeklyReportCard .wr-status.err {
  color: #dc2626 !important;
}
html body.nl-app #weeklyReportCard .wr-status.ok {
  color: #16a34a !important;
}

/* Password Change 3-column symmetrical form */
html body.nl-app .pwd-change-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 16px !important;
  align-items: end !important;
}
@media (max-width: 820px) {
  html body.nl-app .pwd-change-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
html body.nl-app .pwd-field {
  display: flex !important;
  flex-direction: column !important;
}
html body.nl-app .pwd-actions {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
}
html body.nl-app .pwd-actions .settings-status-line {
  margin-top: 0 !important;
}

/* ---------- 7. Visual Builder (#editorModal) Alignment (Screenshot 1) ---------- */
html body #editorModal#editorModal .editor {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 22px !important;
  box-shadow: 0 32px 80px -24px rgba(17, 12, 46, 0.35) !important;
}

/* Editor Topbar */
html body #editorModal#editorModal .editorhead {
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
}
html body #editorModal#editorModal .editorhead h3 {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 6px !important;
}
html body #editorModal#editorModal .editorhead .mobile-builder-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  height: 36px !important;
  padding: 3px !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  margin-left: auto !important;
}
html body #editorModal#editorModal .editorhead .btn-builder-mode {
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  border-radius: 7px !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(0, 0, 0, 0.62) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: none !important;
}
html body #editorModal#editorModal .editorhead .btn-builder-mode.active {
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10) !important;
}
html body #editorModal#editorModal .editorhead #closeEditor {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #111827 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  line-height: 1 !important;
  padding: 0 !important;
  transform: none !important;
}
html body #editorModal#editorModal .editorhead #closeEditor:hover {
  background: rgba(104, 71, 238, 0.10) !important;
  color: #6847ee !important;
}

/* Left Structure Sidebar */
html body #editorModal#editorModal .builder-outline {
  background: #fcfbfe !important;
  border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
}
html body #editorModal#editorModal .builder-outline-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 14px 16px 10px !important;
}
html body #editorModal#editorModal .builder-node {
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transform: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}
html body #editorModal#editorModal .builder-node:hover {
  border-color: rgba(104, 71, 238, 0.28) !important;
  background: #faf8ff !important;
  transform: none !important;
}
html body #editorModal#editorModal .builder-node.active {
  border-color: #6847ee !important;
  background: #f5f2ff !important;
  box-shadow: 0 0 0 2px rgba(104, 71, 238, 0.12) !important;
}
html body #editorModal#editorModal .builder-node .node-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
}
html body #editorModal#editorModal .builder-add {
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 11px !important;
  border: 1.5px dashed rgba(104, 71, 238, 0.35) !important;
  background: rgba(104, 71, 238, 0.04) !important;
  color: #6847ee !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

/* Center Stage & Zoom Toolbar */
html body #editorModal#editorModal .builder-stage {
  background:
    radial-gradient(circle at 50% 40%, rgba(104, 71, 238, 0.07), transparent 60%),
    radial-gradient(rgba(104, 71, 238, 0.09) 1px, transparent 1px) 0 0 / 18px 18px,
    #f7f6fc !important;
}
html body #editorModal#editorModal .device-preview-toolbar,
html body #editorModal#editorModal .builder-shell.design-workspace .device-preview-toolbar {
  height: 36px !important;
  width: fit-content !important;
  max-width: calc(100% - 20px) !important;
  margin: 0 auto 12px !important;
  align-self: center !important;
  padding: 4px 5px 4px 10px !important;
  border-radius: 11px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

/* Design workspace sub-pills: brand violet instead of pitch black */
html body #editorModal#editorModal .design-cat {
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
  color: #4B5563 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease !important;
}
html body #editorModal#editorModal .design-cat:hover:not(.active) {
  border-color: rgba(104, 71, 238, 0.30) !important;
  color: #6847ee !important;
  background: #f8f6ff !important;
}
html body #editorModal#editorModal .design-cat.active,
html body #editorModal#editorModal .builder-shell.design-workspace .design-cat.active,
html body #editorModal#editorModal .design-subtab.active,
html body #editorModal#editorModal [data-design-cat].active,
html body #editorModal#editorModal .quick-palette.active {
  background: #6847ee !important;
  color: #ffffff !important;
  border-color: #6847ee !important;
  box-shadow: 0 4px 12px -4px rgba(104, 71, 238, 0.38) !important;
}

html body #editorModal#editorModal .preview-tool {
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: transparent !important;
  color: #4B5563 !important;
}
html body #editorModal#editorModal .preview-tool.active {
  background: #6847ee !important;
  color: #ffffff !important;
}

/* Prevent phone preview selection outline from overlapping bio text */
html body #editorModal#editorModal #previewName {
  padding: 2px 8px !important;
  margin: 10px 0 2px !important;
  border-radius: 8px !important;
}
html body #editorModal#editorModal #previewBio {
  margin: 10px 0 0 !important;
}

/* Right Inspector Panel: proper top padding & clean single-level cards (zero double boxes!) */
html body #editorModal#editorModal .builder-inspector {
  padding: 18px 20px 24px !important;
  background: #ffffff !important;
  border-left: 1px solid rgba(0, 0, 0, 0.06) !important;
}
html body #editorModal#editorModal .builder-inspector-head {
  border: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 0 !important;
  padding: 0 0 14px !important;
  margin: 0 0 16px !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #editorModal#editorModal #pane-content,
html body #editorModal#editorModal .pane {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #editorModal#editorModal .stage9-profile-card {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
}
html body #editorModal#editorModal .stage9-profile-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 12px !important;
}
html body #editorModal#editorModal .stage9-profile-actions:has([data-profile-clear]:not([style*="display: none"]):not([style*="display:none"])) {
  display: flex !important;
  flex-direction: column !important;
}
html body #editorModal#editorModal .stage9-btn:not([style*="display: none"]):not([style*="display:none"]):not([hidden]) {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 9px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
html body #editorModal#editorModal .builder-inspector .sectionbox {
  background: #faf9fe !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  border-radius: 14px !important;
  padding: 16px !important;
  box-shadow: none !important;
}
html body #editorModal#editorModal label.check input[type="checkbox"]:checked {
  background: #6847ee !important;
}

/* Editor Bottom Footer: ALL 3 action buttons exact same 40px height & 11px radius! */
html body #editorModal#editorModal .editorfoot {
  min-height: 64px !important;
  padding: 12px 20px !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}
html body.nl-app #editorModal#editorModal #linkForm .editorfoot button,
html body.nl-app #editorModal#editorModal #linkForm .editorfoot .btn,
html body.nl-app #editorModal#editorModal #linkForm #saveLinkBtn,
html body #editorModal#editorModal .editorfoot .btn,
html body #editorModal#editorModal #saveLinkBtn {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 11px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 0 !important;
  transform: none !important;
}
html body.nl-app #editorModal#editorModal #linkForm #saveLinkBtn,
html body #editorModal#editorModal #saveLinkBtn {
  background: #6847ee !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 0 22px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px -4px rgba(104, 71, 238, 0.35) !important;
}
html body.nl-app #editorModal#editorModal #linkForm #saveLinkBtn:hover,
html body #editorModal#editorModal #saveLinkBtn:hover {
  background: #5a39e0 !important;
}
html body #editorModal#editorModal #saveLinkBtn::after {
  display: none !important;
  content: none !important;
}

/* ---------- 8. Share / QR Modal & Traffic Split Modals ---------- */
html body.nl-app .sh-modal,
html body.nl-app .spl-modal {
  background: rgba(15, 12, 34, 0.38) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html body.nl-app .sh-sheet,
html body.nl-app .spl-dialog {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 22px !important;
  box-shadow: 0 28px 70px -20px rgba(17, 12, 46, 0.35) !important;
}
html body.nl-app .sh-chip.is-on,
html body.nl-app .spl-chip.active,
html body.nl-app .spl-tabs button.active {
  background: #6847ee !important;
  color: #ffffff !important;
  border-color: #6847ee !important;
}

/* ---------- 9. Final Guard: JS-hidden elements MUST always stay hidden ---------- */
html body.nl-app [style*="display: none"],
html body.nl-app [style*="display:none"],
html body.nl-app #root [style*="display: none"],
html body.nl-app #root [style*="display:none"],
html body #editorModal#editorModal [style*="display: none"],
html body #editorModal#editorModal [style*="display:none"],
html body #editorModal#editorModal #linkForm [style*="display: none"],
html body #editorModal#editorModal #linkForm [style*="display:none"],
html body.nl-app [hidden],
html body #editorModal#editorModal [hidden] {
  display: none !important;
}


/* ==========================================================================
   10. Unified Language Switcher & Settings Card Alignment Polish
   ========================================================================== */

/* Cabinet Language Switcher - Exact segmented pill matching landing page */
html body.nl-app .lang,
html body.nl-app .top .lang,
html body.nl-app .topact .lang {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 3px !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

html body.nl-app .lang button,
html body.nl-app .top .lang button,
html body.nl-app .topact .lang button {
  position: relative !important;
  width: auto !important;
  min-width: 32px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(0, 0, 0, 0.58) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

html body.nl-app .lang button:hover:not(.active),
html body.nl-app .top .lang button:hover:not(.active),
html body.nl-app .topact .lang button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5) !important;
  color: #000000 !important;
}

html body.nl-app .lang button.active,
html body.nl-app .top .lang button.active,
html body.nl-app .topact .lang button.active {
  background: #ffffff !important;
  color: #0a0a0a !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
  border: 0 !important;
  transform: none !important;
}

/* Settings Layout Alignment */
html body.nl-app .settings-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

html body.nl-app .settings-card {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px -4px rgba(0, 0, 0, 0.03) !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

html body.nl-app .settings-card.wide,
html body.nl-app #weeklyReportCard,
html body.nl-app #subdomainCard,
html body.nl-app #passwordChangeCard {
  grid-column: 1 / -1 !important;
}

/* Weekly report card neat layout */
html body.nl-app #weeklyReportCard .wr-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  background: #f8fafc !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  margin: 12px 0 14px !important;
}

html body.nl-app #weeklyReportCard .wr-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

html body.nl-app #weeklyReportCard .wr-test {
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body.nl-app #weeklyReportCard .wr-test:hover:not(:disabled) {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* Password change card neat inputs */
html body.nl-app #passwordChangeCard .settings-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 14px 0 !important;
}

@media (max-width: 768px) {
  html body.nl-app #passwordChangeCard .settings-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

html body.nl-app #passwordChangeCard .settings-row input {
  height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  background: #f8fafc !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

html body.nl-app #passwordChangeCard .settings-row input:focus {
  background: #ffffff !important;
  border-color: #6847ee !important;
  box-shadow: 0 0 0 3px rgba(104, 71, 238, 0.15) !important;
}


/* ==========================================================================
   11. Strict Badges (No Neon) & Analytics Modal Alignment Polish
   ========================================================================== */

/* Strict Badges & Status Indicators (No neon, corporate style) */
html body.nl-app .strict-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  line-height: 1.3 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
}
html body.nl-app .strict-badge::before {
  display: none !important;
}
html body.nl-app .strict-badge.green {
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}
html body.nl-app .strict-badge.red {
  background: #fef2f2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}
html body.nl-app .strict-badge.gray {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

/* Settings Grid natural alignment */
html body.nl-app .settings-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}

/* Smart Traffic Tracker Analytics Modal Polish */
html body.nl-app .spl-overlay,
.spl-overlay {
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 24px 16px !important;
}

html body.nl-app .spl-sheet,
.spl-sheet {
  max-width: 980px !important;
  margin: 10px auto 30px !important;
  border-radius: 20px !important;
  background: #f8fafc !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
}

html body.nl-app .spl-overlay-head,
.spl-overlay-head {
  position: sticky !important;
  top: 0 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 20px 20px 0 0 !important;
  z-index: 10 !important;
  padding: 0 !important;
}

html body.nl-app .spl-oh-top,
.spl-oh-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 18px 24px 12px !important;
  flex-wrap: wrap !important;
}

html body.nl-app .spl-oh-title,
.spl-oh-title {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 19px !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
}

html body.nl-app .spl-oh-actions,
.spl-oh-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
}

html body.nl-app .spl-range,
.spl-range {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 3px !important;
  border-radius: 10px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

html body.nl-app .spl-range button,
.spl-range button {
  height: 28px !important;
  min-height: 28px !important;
  min-width: 38px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

html body.nl-app .spl-range button:hover:not(.active),
.spl-range button:hover:not(.active) {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

html body.nl-app .spl-range button.active,
.spl-range button.active {
  background: #6847ee !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(104, 71, 238, 0.3) !important;
  border: 0 !important;
}

html body.nl-app #splExport,
.spl-btn#splExport {
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

html body.nl-app #splExport:hover,
.spl-btn#splExport:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html body.nl-app #splClose,
.spl-btn#splClose {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

html body.nl-app #splClose:hover,
.spl-btn#splClose:hover {
  background: #fee2e2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

html body.nl-app .spl-tabs,
.spl-tabs {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 11px !important;
  margin: 0 24px 14px !important;
  box-sizing: border-box !important;
}

html body.nl-app .spl-tabs button,
.spl-tabs button {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 16px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
}

html body.nl-app .spl-tabs button:hover:not(.active),
.spl-tabs button:hover:not(.active) {
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

html body.nl-app .spl-tabs button.active,
.spl-tabs button.active {
  background: #6847ee !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: 0 !important;
  box-shadow: 0 2px 6px rgba(104, 71, 238, 0.28) !important;
}

html body.nl-app .spl-cards,
.spl-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

@media (max-width: 768px) {
  html body.nl-app .spl-cards,
  .spl-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

html body.nl-app .spl-card,
.spl-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px -2px rgba(0, 0, 0, 0.02) !important;
}

html body.nl-app .spl-card .k,
.spl-card .k {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  margin: 0 0 6px !important;
  display: block !important;
}

html body.nl-app .spl-card .v,
.spl-card .v {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  font-family: "Outfit", "Inter", sans-serif !important;
  margin: 0 !important;
  line-height: 1.15 !important;
}

html body.nl-app .spl-section,
.spl-section {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

html body.nl-app .spl-section h4,
.spl-section h4 {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 14px !important;
}

html body.nl-app .spl-empty,
.spl-empty {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 30px 18px !important;
  text-align: center !important;
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

html body.nl-app .spl-grid2,
.spl-grid2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

@media (max-width: 768px) {
  html body.nl-app .spl-grid2,
  .spl-grid2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* ==========================================================================
   12. Complete Polish for Screenshots 1, 2, 3:
       - Screenshot 1: KPI Stat Card Icons & Badges (Modern, Soft, Refined)
       - Screenshot 2: "Активность" Chart Baseline & Visual Polish
       - Screenshot 3: Split-Test Rules Tester & Add-Rule Action Button
   ========================================================================== */

/* --------------------------------------------------------------------------
   SCREENSHOT 1: Modern Refined KPI Stat Cards
   -------------------------------------------------------------------------- */
html body.nl-app .cards .stat,
html body.nl-app #root .app .main .cards .stat {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 96px !important;
  padding: 18px 20px 18px 72px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.02) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

html body.nl-app .cards .stat:hover,
html body.nl-app #root .app .main .cards .stat:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.08) !important;
}

/* Modern Squircle Icon Container (Soft tinted backgrounds, clean stroke icons) */
html body.nl-app .cards .stat::before,
html body.nl-app #root .app .main .cards .stat::before {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 11px !important;
  transform: translateY(-50%) !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease !important;
  box-shadow: none !important;
}

html body.nl-app .cards .stat:hover::before,
html body.nl-app #root .app .main .cards .stat:hover::before {
  transform: translateY(-50%) scale(1.05) !important;
}

/* SVGs inside the squircle */
html body.nl-app .cards .stat::after,
html body.nl-app #root .app .main .cards .stat::after {
  content: "" !important;
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  width: 40px !important;
  height: 40px !important;
  transform: translateY(-50%) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: 20px 20px !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Card 1: Открытия (Views) - Elegant Soft Purple */
html body.nl-app .cards .stat:nth-child(1)::before,
html body.nl-app #root .app .main .cards .stat:nth-child(1)::before {
  background: #f5f3ff !important;
  border: 1px solid #ede9fe !important;
}
html body.nl-app .cards .stat:nth-child(1)::after,
html body.nl-app #root .app .main .cards .stat:nth-child(1)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
}

/* Card 2: Выходы (Clicks) - Elegant Soft Emerald */
html body.nl-app .cards .stat:nth-child(2)::before,
html body.nl-app #root .app .main .cards .stat:nth-child(2)::before {
  background: #ecfdf5 !important;
  border: 1px solid #d1fae5 !important;
}
html body.nl-app .cards .stat:nth-child(2)::after,
html body.nl-app #root .app .main .cards .stat:nth-child(2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M7 7h10v10'/%3E%3C/svg%3E") !important;
}

/* Card 3: Успешность (Rate / CTR) - Elegant Soft Indigo */
html body.nl-app .cards .stat:nth-child(3)::before,
html body.nl-app #root .app .main .cards .stat:nth-child(3)::before {
  background: #f5f3ff !important;
  border: 1px solid #ede9fe !important;
}
html body.nl-app .cards .stat:nth-child(3)::after,
html body.nl-app #root .app .main .cards .stat:nth-child(3)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
}

/* Card 4: Активных страниц - Elegant Soft Sky */
html body.nl-app .cards .stat:nth-child(4)::before,
html body.nl-app #root .app .main .cards .stat:nth-child(4)::before {
  background: #f0f9ff !important;
  border: 1px solid #e0f2fe !important;
}
html body.nl-app .cards .stat:nth-child(4)::after,
html body.nl-app #root .app .main .cards .stat:nth-child(4)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E") !important;
}

/* Stat card texts & badges */
html body.nl-app .cards .stat .stat-head,
html body.nl-app #root .app .main .cards .stat .stat-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
}

html body.nl-app .cards .stat small,
html body.nl-app #root .app .main .cards .stat small {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 !important;
}

html body.nl-app .cards .stat strong,
html body.nl-app #root .app .main .cards .stat strong {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin: 2px 0 !important;
}

html body.nl-app .cards .stat .stat-sub,
html body.nl-app #root .app .main .cards .stat .stat-sub {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

/* Badges on top right of stat cards (Clean, flat, strict) */
html body.nl-app .cards .stat .trend,
html body.nl-app #root .app .main .cards .stat .trend {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body.nl-app .cards .stat .trend.up,
html body.nl-app #root .app .main .cards .stat .trend.up {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #d1fae5 !important;
}

html body.nl-app .cards .stat .trend.success,
html body.nl-app #root .app .main .cards .stat .trend.success {
  background: #f5f3ff !important;
  color: #7c3aed !important;
  border: 1px solid #ede9fe !important;
}

html body.nl-app .cards .stat .trend.info,
html body.nl-app #root .app .main .cards .stat .trend.info {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1px solid #e0f2fe !important;
}


/* --------------------------------------------------------------------------
   SCREENSHOT 2: "Активность" Chart Baseline & Visual Alignment
   -------------------------------------------------------------------------- */
html body.nl-app .rs-card.rs-chart-card,
.rs-card.rs-chart-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 22px 24px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html body.nl-app .rs-card .rs-head,
.rs-card .rs-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

html body.nl-app .rs-card .rs-title,
.rs-card .rs-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}

html body.nl-app .rs-card .rs-title svg,
.rs-card .rs-title svg {
  width: 28px !important;
  height: 28px !important;
  padding: 5px !important;
  border-radius: 8px !important;
  background: #f5f3ff !important;
  color: #7c3aed !important;
  border: 1px solid #ede9fe !important;
  box-sizing: border-box !important;
}

html body.nl-app .rs-card .rs-legend,
.rs-card .rs-legend {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

html body.nl-app .rs-chart,
.rs-chart {
  position: relative !important;
  height: 190px !important;
  padding-left: 36px !important;
  box-sizing: border-box !important;
}

/* Horizontal Grid Lines & Baseline */
html body.nl-app .rs-grid,
.rs-grid {
  position: absolute !important;
  left: 36px !important;
  right: 0 !important;
  top: 6px !important;
  bottom: 26px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

html body.nl-app .rs-grid span,
.rs-grid span {
  border-top: 1px dashed #e2e8f0 !important;
  position: relative !important;
  height: 0 !important;
}

html body.nl-app .rs-grid span:last-child,
.rs-grid span:last-child {
  border-top: 1px solid #cbd5e1 !important;
  border-top-style: solid !important;
}

html body.nl-app .rs-grid span::before,
.rs-grid span::before {
  content: attr(data-v) !important;
  position: absolute !important;
  right: calc(100% + 8px) !important;
  top: -8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
}

html body.nl-app .rs-cols,
.rs-cols {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr)) !important;
  gap: clamp(2px, .6vw, 8px) !important;
  height: 100% !important;
  z-index: 2 !important;
}

html body.nl-app .rs-col,
.rs-col {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-width: 0 !important;
  outline: none !important;
}

/* Bars sit EXACTLY flush on bottom baseline */
html body.nl-app .rs-bars,
.rs-bars {
  position: relative !important;
  height: calc(100% - 26px) !important;
  flex: none !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  border-radius: 6px 6px 0 0 !important;
  transition: background .15s !important;
}

html body.nl-app .rs-col:hover .rs-bars,
.rs-col:hover .rs-bars {
  background: rgba(104, 71, 238, 0.05) !important;
}

html body.nl-app .rs-bars i,
.rs-bars i {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: min(76%, 36px) !important;
  transform: translateX(-50%) !important;
  border-radius: 6px 6px 0 0 !important;
  transition: height .35s cubic-bezier(.2, .8, .2, 1) !important;
}

html body.nl-app .rs-bv,
.rs-bv {
  background: #a78bfa !important;
}

html body.nl-app .rs-bo,
.rs-bo {
  background: #6847ee !important;
  width: min(44%, 20px) !important;
  z-index: 2 !important;
}

/* Zero baseline tick marks */
html body.nl-app .rs-col.is-zero .rs-bars::after,
.rs-col.is-zero .rs-bars::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 20% !important;
  right: 20% !important;
  height: 2px !important;
  border-radius: 2px !important;
  background: #e2e8f0 !important;
}

/* Time axis labels */
html body.nl-app .rs-col span.rs-x,
html body.nl-app span.rs-x,
.rs-col span.rs-x,
span.rs-x {
  height: 26px !important;
  min-height: 26px !important;
  line-height: 26px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
  display: block !important;
}

/* Peak footer */
html body.nl-app .rs-foot,
.rs-foot {
  margin: 14px 0 0 !important;
  font-size: 12.5px !important;
  color: #64748b !important;
}

html body.nl-app .rs-foot b,
.rs-foot b {
  color: #0f172a !important;
  font-weight: 700 !important;
}


/* --------------------------------------------------------------------------
   SCREENSHOT 3: "Тестирование правил перехода" & Action Buttons
   -------------------------------------------------------------------------- */
/* "+ Создать новое правило" Button */
html body.nl-app .spl-add-rule-btn,
.spl-add-rule-btn {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  border: 1.5px dashed #6847ee !important;
  background: #f5f3ff !important;
  color: #6847ee !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 14px 0 16px !important;
  transition: all 0.18s ease !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html body.nl-app .spl-add-rule-btn:hover:not(:disabled),
.spl-add-rule-btn:hover:not(:disabled) {
  background: #ede9fe !important;
  border-color: #5b35e2 !important;
  color: #5b35e2 !important;
  transform: translateY(-1px) !important;
}

/* Tester Card Box */
html body.nl-app #pane-split .spl-preview,
#pane-split .spl-preview,
.spl-preview {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px -4px rgba(0, 0, 0, 0.03) !important;
  margin-top: 0 !important;
  color: #0f172a !important;
}

html body.nl-app .spl-preview-head,
.spl-preview-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
}

html body.nl-app .spl-preview-head b,
.spl-preview-head b {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

html body.nl-app .spl-preview-head .spl-hint,
.spl-preview-head .spl-hint {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

/* Form Dropdowns Grid */
html body.nl-app #pane-split .spl-pv-grid,
#pane-split .spl-pv-grid,
.spl-pv-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 14px !important;
  margin-bottom: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html body.nl-app #pane-split .spl-pv-grid label,
#pane-split .spl-pv-grid label,
.spl-pv-grid label {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin: 0 !important;
  min-width: 0 !important;
}

html body.nl-app #pane-split .spl-pv-grid select,
#pane-split .spl-pv-grid select,
.spl-pv-grid select {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 0 32px 0 12px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px 14px !important;
  outline: none !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
  cursor: pointer !important;
}

html body.nl-app #pane-split .spl-pv-grid select:hover,
#pane-split .spl-pv-grid select:hover,
.spl-pv-grid select:hover {
  border-color: #cbd5e1 !important;
  background-color: #ffffff !important;
}

html body.nl-app #pane-split .spl-pv-grid select:focus,
#pane-split .spl-pv-grid select:focus,
.spl-pv-grid select:focus {
  border-color: #6847ee !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(104, 71, 238, 0.15) !important;
}

/* Action Buttons (side by side in 2 equal columns, perfectly aligned) */
html body.nl-app #pane-split .spl-pv-actions,
#pane-split .spl-pv-actions,
.spl-pv-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

html body.nl-app #editorModal #pane-split .spl-pv-btn-run,
html body.nl-app #pane-split .spl-pv-btn-run,
html body.nl-app #editorModal #pane-split #splPvGo,
html body.nl-app #pane-split #splPvGo,
.spl-pv-btn-run {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  background: #6847ee !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(104, 71, 238, 0.28) !important;
  font-family: inherit !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

html body.nl-app #editorModal #pane-split .spl-pv-btn-run:hover,
html body.nl-app #pane-split .spl-pv-btn-run:hover,
.spl-pv-btn-run:hover {
  background: #5835df !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(104, 71, 238, 0.35) !important;
}

html body.nl-app #editorModal #pane-split .spl-pv-btn-matrix,
html body.nl-app #pane-split .spl-pv-btn-matrix,
html body.nl-app #editorModal #pane-split #splPvMatrix,
html body.nl-app #pane-split #splPvMatrix,
.spl-pv-btn-matrix {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  font-family: inherit !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

html body.nl-app #editorModal #pane-split .spl-pv-btn-matrix:hover,
html body.nl-app #pane-split .spl-pv-btn-matrix:hover,
.spl-pv-btn-matrix:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Results box */
html body.nl-app .spl-pv-res-box,
.spl-pv-res-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
}
