/* ==========================================================================
   POLMEXBOT /preview/settings — Celestial Obsidian & Liquid-Gold Settings
   Preserves 100% of settings.html live form logic, wallet auth, Ask AI,
   Onboard AI, Constellation/AI Strat/Pocket Aces/Simple/Advanced tabs,
   and trading-hours heatmap while removing grid/dot patterns, unifying
   brushed gold identity, and delivering crisp mobile responsiveness.
   ========================================================================== */

:root {
  --pmx-gold: #f0c64f;
  --pmx-gold-hi: #fae39e;
  --pmx-gold-deep: #cf9224;
  --pmx-gold-line: rgba(240, 198, 79, 0.34);
  --pmx-gold-line-hi: rgba(250, 227, 158, 0.62);
  --pmx-hair: rgba(235, 214, 170, 0.14);
  --pmx-ink: #fbf8f1;
  --pmx-ink-2: #d3c6ae;
  --pmx-ink-3: #9d8f76;
  --pmx-up: #34e08a;
  --pmx-down: #f45872;
  --pmx-panel: linear-gradient(166deg, rgba(34, 29, 22, 0.88) 0%, rgba(16, 15, 17, 0.95) 100%);
  --pmx-panel-head: linear-gradient(180deg, rgba(240, 198, 79, 0.08), rgba(20, 18, 15, 0.48));
}

/* ── 1. Cosmic Obsidian Canvas (ZERO grid squares, ZERO dot screens, ZERO aurora blobs) */
body.pmx-set-v2 {
  background:
    radial-gradient(980px 580px at 12% -8%, rgba(240, 198, 79, 0.14), transparent 62%),
    radial-gradient(840px 620px at 90% 16%, rgba(34, 58, 108, 0.22), transparent 64%),
    radial-gradient(860px 620px at 52% 108%, rgba(168, 118, 34, 0.14), transparent 62%),
    linear-gradient(175deg, #0d0c0f 0%, #12100d 46%, #0c0c10 100%) !important;
  color: var(--pmx-ink) !important;
}

body.pmx-set-v2::before,
body.pmx-set-v2 #k2-aurora,
body.pmx-set-v2 #k2-stars,
body.pmx-set-v2 #k2-glow,
body.pmx-set-v2 #setBody.grid-bg::before {
  display: none !important;
}

body.pmx-set-v2 #setBody.grid-bg {
  background: transparent !important;
  background-image: none !important;
}

.pmx-app-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 44vw at 48% -12vh, rgba(240, 198, 79, 0.10), transparent 70%),
    radial-gradient(48vw 48vw at 96% 96%, rgba(44, 78, 138, 0.15), transparent 70%);
}

#pmxSpaceCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

/* ── 2. Preview Top Strip ────────────────────────────────────────────────── */
.pmx-app-preview-bar {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  height: 28px;
  flex: 0 0 28px;
  background: rgba(10, 9, 11, 0.94);
  border-bottom: 1px solid rgba(240, 198, 79, 0.22);
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-size: 11px;
  color: var(--pmx-ink-2);
}

.pmx-app-preview-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmx-app-preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pmx-gold);
  box-shadow: 0 0 8px rgba(240, 198, 79, 0.75);
  flex: 0 0 6px;
}

.pmx-app-preview-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.pmx-app-preview-bar a {
  color: var(--pmx-gold-hi);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.pmx-app-preview-bar a:hover {
  text-decoration: underline;
}

/* ── 3. Header & Unified Obsidian-Gold Pill Navigation ─────────────────────── */
body.pmx-set-v2 #setHeader {
  background: linear-gradient(180deg, rgba(26, 22, 17, 0.88), rgba(16, 15, 16, 0.94)) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  border-bottom: 1px solid rgba(240, 198, 79, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 246, 218, 0.08), 0 12px 32px -18px rgba(0, 0, 0, 0.85) !important;
}

body.pmx-set-v2 #setHeader .gradient-text {
  background: linear-gradient(125deg, #fbf0ce 0%, #f0c64f 52%, #cf9224 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-weight: 700 !important;
}

body.pmx-set-v2 #setHeader .brand-sub {
  background: none !important;
  color: var(--pmx-gold-hi) !important;
  -webkit-text-fill-color: var(--pmx-gold-hi) !important;
  opacity: 0.85;
}

body.pmx-set-v2 .nav-ver {
  background: rgba(240, 198, 79, 0.10) !important;
  border: 1px solid rgba(240, 198, 79, 0.34) !important;
  color: var(--pmx-gold-hi) !important;
  border-radius: 999px !important;
  padding: 3px 9px !important;
}

body.pmx-set-v2 #setHeader [role="tablist"],
body.pmx-set-v2 .nav-seg {
  background: rgba(14, 12, 11, 0.72) !important;
  border: 1px solid rgba(240, 198, 79, 0.24) !important;
  border-radius: 999px !important;
  padding: 3px !important;
  gap: 2px !important;
}

body.pmx-set-v2 .nav-tab {
  border-radius: 999px !important;
  color: var(--pmx-ink-2) !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 6px 12px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

body.pmx-set-v2 .nav-tab:hover {
  background: rgba(240, 198, 79, 0.12) !important;
  color: #ffffff !important;
}

body.pmx-set-v2 .nav-tab.is-on {
  background: linear-gradient(122deg, #faecc4 0%, #f0c64f 45%, #d69828 100%) !important;
  color: #181207 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 246, 218, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 20px -8px rgba(240, 198, 79, 0.75) !important;
}

/* Crisp emerald beacon dot instead of green heart */
body.pmx-set-v2 .k2-heart svg {
  display: none !important;
}

body.pmx-set-v2 .k2-heart {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pmx-up);
  box-shadow: 0 0 0 3px rgba(52, 224, 138, 0.22), 0 0 10px rgba(52, 224, 138, 0.75);
  flex: 0 0 8px;
}

body.pmx-set-v2 #connStatus {
  background: rgba(16, 15, 14, 0.78) !important;
  border: 1px solid var(--pmx-hair) !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  color: var(--pmx-ink-2) !important;
  font-size: 10px !important;
}

/* ── 4. Panels, Typography & Gold Identity (Kill Orange/Cyan Clashes) ────── */
body.pmx-set-v2 #setLeft {
  border-right: 1px solid rgba(240, 198, 79, 0.14) !important;
}

body.pmx-set-v2 .panel,
body.pmx-set-v2 .glow,
body.pmx-set-v2 #setLeft > .panel.glow {
  background: var(--pmx-panel) !important;
  border: 1px solid var(--pmx-gold-line) !important;
  border-top-color: rgba(250, 227, 158, 0.44) !important;
  border-radius: 18px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 218, 0.10),
    0 20px 48px -24px rgba(0, 0, 0, 0.90),
    0 0 32px -16px rgba(240, 198, 79, 0.20) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.pmx-set-v2 .panel-header {
  background: var(--pmx-panel-head) !important;
  border-bottom: 1px solid var(--pmx-hair) !important;
  border-radius: 17px 17px 0 0 !important;
  color: var(--pmx-gold-hi) !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.13em !important;
  padding: 13px 18px !important;
}

body.pmx-set-v2 .panel-header svg {
  color: var(--pmx-gold) !important;
  stroke: var(--pmx-gold) !important;
  opacity: 0.95 !important;
}

body.pmx-set-v2 .panel-header::before {
  background: linear-gradient(180deg, #fae39e, #d69828) !important;
  box-shadow: 0 0 8px rgba(240, 198, 79, 0.55) !important;
}

body.pmx-set-v2 #onboardStatus:empty {
  display: none !important;
}

body.pmx-set-v2 #onboardCard .panel-header svg {
  fill: var(--pmx-gold) !important;
  stroke: none !important;
}

/* Replace cyan & purple text highlights with warm gold/champagne */
body.pmx-set-v2 .text-cyan-300,
body.pmx-set-v2 .text-cyan-400,
body.pmx-set-v2 .text-purple-300,
body.pmx-set-v2 .text-purple-400,
body.pmx-set-v2 .text-violet-300 {
  color: var(--pmx-gold-hi) !important;
}

body.pmx-set-v2 .text-cyan-100\/80 {
  color: var(--pmx-ink-2) !important;
}

body.pmx-set-v2 .text-white {
  color: var(--pmx-ink) !important;
}

body.pmx-set-v2 .text-gray-300 {
  color: #ebe3d5 !important;
}

body.pmx-set-v2 .text-gray-400 {
  color: var(--pmx-ink-2) !important;
}

body.pmx-set-v2 .text-gray-500,
body.pmx-set-v2 .text-gray-600 {
  color: var(--pmx-ink-3) !important;
}

body.pmx-set-v2 div.text-\[10px\].uppercase.tracking-widest.text-gray-500 {
  color: #e7d8bc !important;
  letter-spacing: 0.13em !important;
}

body.pmx-set-v2 .text-green-400,
body.pmx-set-v2 .text-emerald-300 {
  color: var(--pmx-up) !important;
}

/* ── 5. Buttons, Action Pills & Inputs — Liquid Brushed Gold ─────────────── */
body.pmx-set-v2 .btn-accent-solid,
body.pmx-set-v2 .ask-ai-btn,
body.pmx-set-v2 .ask-ai-use {
  background: linear-gradient(122deg, #faecc4 0%, #f0c64f 44%, #d69828 88%) !important;
  color: #181207 !important;
  border: 1px solid rgba(255, 246, 218, 0.68) !important;
  border-radius: 999px !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 26px -10px rgba(240, 198, 79, 0.72) !important;
  animation: none !important;
}

body.pmx-set-v2 .btn-accent-solid:hover,
body.pmx-set-v2 .ask-ai-btn:hover,
body.pmx-set-v2 .ask-ai-use:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 14px 30px -10px rgba(240, 198, 79, 0.88) !important;
}

body.pmx-set-v2 .ask-ai-btn svg {
  fill: #181207 !important;
  stroke: none !important;
}

body.pmx-set-v2 #askAiBtn {
  padding: 5px 13px !important;
  font-size: 10px !important;
}

body.pmx-set-v2 #onboardBtn {
  padding: 9px 18px !important;
  font-size: 11px !important;
}

/* Reveal Magic Key & Get Developer Address pills -> obsidian-gold glass */
body.pmx-set-v2 a[href*="reveal.magic.link"],
body.pmx-set-v2 #wderive {
  color: var(--pmx-gold-hi) !important;
  background: rgba(240, 198, 79, 0.11) !important;
  border: 1px solid rgba(240, 198, 79, 0.40) !important;
  border-radius: 999px !important;
  padding: 4px 11px !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-weight: 700 !important;
  transition: background 0.16s ease, border-color 0.16s ease !important;
}

body.pmx-set-v2 a[href*="reveal.magic.link"]:hover,
body.pmx-set-v2 #wderive:hover {
  background: rgba(240, 198, 79, 0.22) !important;
  border-color: rgba(250, 227, 158, 0.68) !important;
}

body.pmx-set-v2 .input-styled,
body.pmx-set-v2 input.input,
body.pmx-set-v2 #onboardText {
  background: rgba(12, 11, 12, 0.82) !important;
  border: 1px solid rgba(235, 214, 170, 0.20) !important;
  color: var(--pmx-ink) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

body.pmx-set-v2 .input-styled:focus,
body.pmx-set-v2 #onboardText:focus {
  background: rgba(18, 16, 15, 0.94) !important;
  border-color: rgba(240, 198, 79, 0.72) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(240, 198, 79, 0.16) !important;
}

body.pmx-set-v2 .onboard-chip {
  background: rgba(20, 18, 16, 0.82) !important;
  border: 1px solid rgba(235, 214, 170, 0.20) !important;
  color: var(--pmx-ink-2) !important;
  border-radius: 999px !important;
  padding: 6px 12px !important;
}

body.pmx-set-v2 .onboard-chip:hover {
  background: rgba(240, 198, 79, 0.12) !important;
  border-color: rgba(240, 198, 79, 0.48) !important;
  color: var(--pmx-gold-hi) !important;
}

body.pmx-set-v2 #onboardStatus {
  background: rgba(14, 13, 13, 0.76) !important;
  border: 1px solid var(--pmx-hair) !important;
  border-radius: 12px !important;
}

/* ── 6. Strategy Tabs, Constellation Hero, Running Banner & Choice Cards ─── */
body.pmx-set-v2 #cfgTabBar {
  border-bottom: 1px solid rgba(240, 198, 79, 0.18) !important;
  gap: 6px !important;
  padding: 14px 18px 10px !important;
  flex-wrap: wrap !important;
}

body.pmx-set-v2 .cfg-tab {
  border-radius: 999px !important;
  padding: 7px 13px !important;
  background: rgba(18, 16, 15, 0.78) !important;
  border: 1px solid var(--pmx-hair) !important;
  color: var(--pmx-ink-2) !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
}

body.pmx-set-v2 .cfg-tab::after {
  display: none !important;
}

body.pmx-set-v2 .cfg-tab:hover {
  background: rgba(240, 198, 79, 0.10) !important;
  border-color: rgba(240, 198, 79, 0.36) !important;
  color: #ffffff !important;
}

body.pmx-set-v2 .cfg-tab.active,
body.pmx-set-v2 .cfg-tab-const.active,
body.pmx-set-v2 .cfg-tab-ai.active,
body.pmx-set-v2 .cfg-tab-aces.active,
body.pmx-set-v2 .cfg-tab-simple.active,
body.pmx-set-v2 .cfg-tab-adv.active {
  background: linear-gradient(122deg, #faecc4 0%, #f0c64f 45%, #d69828 100%) !important;
  border-color: rgba(255, 246, 218, 0.68) !important;
  color: #181207 !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 20px -8px rgba(240, 198, 79, 0.72) !important;
}

body.pmx-set-v2 .cfg-tab.active::before {
  background: #181207 !important;
  box-shadow: none !important;
}

body.pmx-set-v2 .cfg-tab .tag {
  background: rgba(240, 198, 79, 0.10) !important;
  border: 1px solid rgba(240, 198, 79, 0.28) !important;
  color: var(--pmx-gold-hi) !important;
  border-radius: 999px !important;
  padding: 2px 7px !important;
}

body.pmx-set-v2 .cfg-tab.active .tag {
  background: rgba(24, 18, 7, 0.18) !important;
  border-color: rgba(24, 18, 7, 0.28) !important;
  color: #181207 !important;
}

/* Running right now banner — refined obsidian-emerald glass instead of harsh cyan/teal */
body.pmx-set-v2 #runningStrategyBanner {
  background: linear-gradient(100deg, rgba(52, 224, 138, 0.10), rgba(240, 198, 79, 0.08) 55%, rgba(18, 17, 16, 0.82)) !important;
  border: 1px solid rgba(52, 224, 138, 0.34) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.pmx-set-v2 #runningStrategyName {
  background: rgba(240, 198, 79, 0.16) !important;
  border: 1px solid rgba(240, 198, 79, 0.48) !important;
  color: var(--pmx-gold-hi) !important;
  text-shadow: none !important;
}

/* Strategy hero card (Constellation / AI Strat / Pocket Aces) */
body.pmx-set-v2 .const-hero {
  background: linear-gradient(148deg, rgba(240, 198, 79, 0.12) 0%, rgba(28, 24, 18, 0.86) 52%, rgba(16, 15, 17, 0.94) 100%) !important;
  border: 1px solid rgba(240, 198, 79, 0.36) !important;
  border-left: 3px solid var(--pmx-gold) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 246, 218, 0.08) !important;
}

body.pmx-set-v2 .const-title {
  color: var(--pmx-gold-hi) !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

/* Fee cards, Asset/Mode/DCA choice cards, Tiles */
body.pmx-set-v2 .fee-card,
body.pmx-set-v2 .asset-card,
body.pmx-set-v2 .mode-card,
body.pmx-set-v2 .tile {
  background: linear-gradient(165deg, rgba(24, 21, 17, 0.88), rgba(14, 13, 15, 0.94)) !important;
  border: 1px solid var(--pmx-hair) !important;
  border-radius: 13px !important;
  box-shadow: inset 0 1px 0 rgba(255, 246, 218, 0.06) !important;
}

body.pmx-set-v2 .fee-card:hover,
body.pmx-set-v2 .asset-card:hover,
body.pmx-set-v2 .mode-card:hover {
  border-color: rgba(240, 198, 79, 0.44) !important;
  background: linear-gradient(165deg, rgba(34, 29, 22, 0.92), rgba(18, 16, 15, 0.96)) !important;
}

body.pmx-set-v2 .asset-card.active,
body.pmx-set-v2 .mode-card.active {
  background: linear-gradient(155deg, rgba(240, 198, 79, 0.20), rgba(24, 20, 15, 0.94)) !important;
  border-color: rgba(240, 198, 79, 0.72) !important;
  color: var(--pmx-gold-hi) !important;
  box-shadow: inset 0 1px 0 rgba(255, 246, 218, 0.14), 0 10px 24px -14px rgba(240, 198, 79, 0.65) !important;
}

body.pmx-set-v2 .asset-card.active span,
body.pmx-set-v2 .mode-card.active span {
  color: var(--pmx-ink-2) !important;
}

body.pmx-set-v2 .fee-card.active {
  background: linear-gradient(155deg, rgba(52, 224, 138, 0.14), rgba(16, 20, 18, 0.94)) !important;
  border-color: rgba(52, 224, 138, 0.56) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px -14px rgba(52, 224, 138, 0.45) !important;
}

/* Trading-hours heatmap cells */
body.pmx-set-v2 .hour-cell {
  background: rgba(18, 16, 15, 0.85) !important;
  border: 1px solid rgba(235, 214, 170, 0.16) !important;
  color: var(--pmx-ink-2) !important;
  border-radius: 8px !important;
}

body.pmx-set-v2 .hour-cell:hover {
  background: rgba(240, 198, 79, 0.16) !important;
  border-color: rgba(240, 198, 79, 0.65) !important;
  color: #ffffff !important;
}

body.pmx-set-v2 .hour-cell.avoided {
  background: rgba(244, 88, 114, 0.22) !important;
  border-color: rgba(244, 88, 114, 0.62) !important;
  color: #ff9eb0 !important;
}

/* Ask AI Modal upgrade */
body.pmx-set-v2 .ask-ai-card {
  background: linear-gradient(166deg, rgba(32, 27, 20, 0.97), rgba(14, 13, 15, 0.99)) !important;
  border: 1px solid rgba(240, 198, 79, 0.44) !important;
  border-top-color: rgba(250, 227, 158, 0.65) !important;
  border-radius: 20px !important;
  box-shadow: inset 0 1px 0 rgba(255, 246, 218, 0.14), 0 32px 84px rgba(0, 0, 0, 0.92) !important;
}

body.pmx-set-v2 .ask-ai-title {
  color: var(--pmx-gold-hi) !important;
  font-family: 'Space Grotesk', system-ui, 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
}

body.pmx-set-v2 .ask-ai-rec {
  border-color: rgba(240, 198, 79, 0.36) !important;
  border-left-color: var(--pmx-gold) !important;
  background: rgba(240, 198, 79, 0.08) !important;
}

body.pmx-set-v2 .ask-ai-tweaks td:last-child {
  color: var(--pmx-gold-hi) !important;
}

/* Footer */
body.pmx-set-v2 > footer {
  background: rgba(14, 13, 13, 0.94) !important;
  border-top: 1px solid rgba(240, 198, 79, 0.22) !important;
  color: var(--pmx-ink-3) !important;
}

/* Fix Constellation Buy/Avoid Price Range wrapping on narrow screens */
body.pmx-set-v2 #cfgConstellation .flex.items-center.gap-2 {
  flex-wrap: wrap !important;
}

/* ── 7. Mobile Polish (<=900px, <=767px, <=460px) ────────────────────────── */
@media (max-width: 767px) {
  .pmx-app-preview-hide-sm {
    display: none !important;
  }
  .pmx-app-preview-bar {
    padding: 0 10px;
    font-size: 10px;
  }

  /* Make ALL 6 console tabs reachable via smooth horizontal scroll on mobile */
  body.pmx-set-v2 #setHeader > div:nth-child(2) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.pmx-set-v2 #setHeader > div:nth-child(2)::-webkit-scrollbar {
    display: none !important;
  }
  body.pmx-set-v2 #setHeader [role="tablist"] {
    width: max-content !important;
  }
  body.pmx-set-v2 #setHeader [role="tablist"] a.nav-logs,
  body.pmx-set-v2 #setHeader [role="tablist"] a[href="/signals"],
  body.pmx-set-v2 #setHeader [role="tablist"] a[href="/preview/signals/"] {
    display: inline-flex !important;
    align-items: center !important;
  }

  body.pmx-set-v2 #setLeft,
  body.pmx-set-v2 #setRight {
    padding: 12px !important;
    gap: 12px !important;
  }

  body.pmx-set-v2 .panel-header {
    padding: 12px 14px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  body.pmx-set-v2 #cfgTabBar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding: 12px 12px 10px !important;
  }
  body.pmx-set-v2 #cfgTabBar::-webkit-scrollbar {
    display: none !important;
  }
}

@media (max-width: 460px) {
  body.pmx-set-v2 .cfg-const {
    grid-template-columns: 1fr !important;
  }
  body.pmx-set-v2 .panel > .p-5,
  body.pmx-set-v2 #cfgConstellation,
  body.pmx-set-v2 #cfgAiStrat,
  body.pmx-set-v2 #cfgSimple,
  body.pmx-set-v2 #cfgAdvanced {
    padding: 14px !important;
  }
  body.pmx-set-v2 #runningStrategyBanner {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }
}
