/* Mobile-only Studio UX. Loaded last. */
@media (max-width: 680px) {
  html,
  body {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  body.app-route {
    --studio-mobile-header: 64px;
    --studio-touch: 46px;
    --studio-mobile-gap: 14px;
    background: var(--studio-bg) !important;
  }

  body.app-route.mobile-nav-open {
    overflow: hidden !important;
  }

  body.app-route.mobile-nav-open .sidebar {
    z-index: 1100 !important;
  }

  body.app-route .app-shell,
  body.app-route .main-shell {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  body.app-route .sidebar {
    position: relative !important;
    top: auto !important;
    z-index: 80 !important;
    width: 100% !important;
    height: var(--studio-mobile-header) !important;
    min-height: var(--studio-mobile-header) !important;
    max-height: var(--studio-mobile-header) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid var(--studio-border) !important;
    background: var(--studio-surface) !important;
    box-shadow: none !important;
  }

  :root[data-theme="dark"] body.app-route .sidebar {
    background: #080714 !important;
  }

  body.app-route .sidebar::after {
    content: none !important;
  }

  body.app-route .sidebar .brand-row {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.app-route .sidebar .brand-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
  }

  body.app-route .sidebar .brand-row strong {
    overflow: hidden !important;
    color: var(--studio-text) !important;
    font-size: 17px !important;
    line-height: 1.15 !important;
    font-weight: 650 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  :root[data-theme="dark"] body.app-route .sidebar .brand-row strong {
    color: #ffffff !important;
  }

  body.app-route .sidebar .brand-row small {
    display: none !important;
  }

  body.app-route .mobile-nav-button {
    width: 96px !important;
    min-width: 96px !important;
    height: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: #7c3aed !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body.app-route .mobile-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
    display: block !important;
    background: #0b1020 !important;
    opacity: 0.96 !important;
    backdrop-filter: none !important;
  }

  body.app-route .mobile-nav-backdrop[hidden] {
    display: none !important;
  }

  body.app-route .side-nav {
    position: fixed !important;
    inset: 10px !important;
    z-index: 1110 !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100dvh - 20px) !important;
    display: grid !important;
    align-content: start !important;
    gap: 12px !important;
    padding: 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid var(--studio-border) !important;
    border-radius: 8px !important;
    color: var(--studio-text) !important;
    background: var(--studio-surface) !important;
    box-shadow: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
    transition: opacity 120ms ease, transform 120ms ease !important;
  }

  :root[data-theme="dark"] body.app-route .side-nav {
    background: #111827 !important;
  }

  body.app-route.mobile-nav-open .side-nav {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  body.app-route .side-nav section {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  body.app-route .side-nav section > span {
    padding: 4px 2px 0 !important;
    color: var(--studio-text-subtle) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  body.app-route .side-nav a,
  body.app-route .side-nav .nav-disabled {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 0 12px !important;
    border: 1px solid var(--studio-border) !important;
    border-radius: 8px !important;
    color: var(--studio-text) !important;
    background: var(--studio-surface-muted) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  body.app-route .side-nav a.active,
  body.app-route .side-nav a:hover {
    color: var(--studio-text) !important;
    background: var(--studio-primary-soft) !important;
    border-color: var(--studio-primary) !important;
  }

  body.app-route .topbar,
  body.app-route.chart-route-active .topbar {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
    width: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(96px, auto) !important;
    grid-auto-rows: minmax(var(--studio-touch), auto) !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
    border-bottom: 1px solid var(--studio-border) !important;
    background: var(--studio-surface) !important;
    box-shadow: none !important;
  }

  body.app-route.chart-route-active .topbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.app-route .topbar .top-strategy,
  body.app-route .topbar #topSaveButton,
  body.app-route .topbar .theme-toggle,
  body.app-route .topbar .notifications-menu {
    display: none !important;
  }

  body.app-route.chart-route-active .topbar > :not(#projectSelect) {
    display: none !important;
  }

  body.app-route .topbar > #projectSelect,
  body.app-route.chart-route-active .topbar > #projectSelect {
    display: block !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: var(--studio-touch) !important;
    min-height: var(--studio-touch) !important;
    max-height: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 650 !important;
  }

  body.app-route .topbar > .state-pill {
    grid-column: 1 !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.app-route .topbar > .profile-menu {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.app-route .topbar > .profile-menu > button,
  body.app-route #topRunButton {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }

  body.app-route #topRunButton {
    grid-column: 1 / -1 !important;
  }

  body.app-route .topbar > .profile-menu .button-label {
    max-width: 70px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.app-route .route-outlet,
  body.app-route.chart-route-active .route-outlet {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    display: grid !important;
    gap: var(--studio-mobile-gap) !important;
    padding: var(--studio-mobile-gap) !important;
    overflow-x: hidden !important;
  }

  body.app-route .page-head {
    margin: 0 !important;
    gap: 6px !important;
  }

  body.app-route.chart-route-active .page-head {
    display: none !important;
  }

  body.app-route .page-head h1 {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  body.app-route .page-head p {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  body.app-route :is(.panel, .empty-state, .studio-module-shell, .studio-module-content) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 8px !important;
  }

  body.app-route .panel {
    padding: 14px !important;
  }

  body.app-route .panel-title {
    min-height: 36px !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.app-route :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button, .primary, .ghost, .icon-button, .studio-module-steps > *, .studio-tv-toolbar button, .studio-tv-toolbar select, .studio-tv-applybar select, .studio-tv-all-applies) {
    min-height: var(--studio-touch) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
  }

  body.app-route :is(label, .field-label, .param-label, .range-label, .form-label, .field-hint, .muted, .table-sub, th) {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body.app-route :is(.config-grid, .fact-grid, .metric-grid, .project-grid, .public-two-col, .form-grid) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.app-route .studio-module-steps,
  body.app-route :where(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) .studio-module-steps {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 0 0 4px !important;
    scrollbar-width: none !important;
  }

  body.app-route .studio-module-steps > *,
  body.app-route :where(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) .studio-module-steps > * {
    flex: 0 0 auto !important;
    min-width: 128px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
  }

  body.app-route .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.app-route table.data-table {
    min-width: 760px !important;
  }

  body.app-route.chart-route-active .route-outlet {
    padding: 10px !important;
    gap: 10px !important;
  }

  body.app-route.chart-route-active #studioTradingChartMount,
  body.app-route.chart-route-active .studio-trading-chart-mount {
    min-height: calc(100dvh - 180px) !important;
  }

  body.app-route.chart-route-active .studio-tv-chart {
    width: 100% !important;
    min-width: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.app-route.chart-route-active .studio-tv-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 8px !important;
  }

  body.app-route.chart-route-active .studio-tv-toolbar select[aria-label="Symbol"],
  body.app-route.chart-route-active .studio-tv-quick-tfs {
    grid-column: 1 / -1 !important;
  }

  body.app-route.chart-route-active .studio-tv-quick-tfs {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  body.app-route.chart-route-active .studio-tv-quick-tfs button {
    min-width: 58px !important;
    flex: 0 0 auto !important;
  }

  body.app-route.chart-route-active .studio-tv-layout-label,
  body.app-route.chart-route-active .studio-tv-toolbar button:disabled {
    display: none !important;
  }

  body.app-route.chart-route-active .studio-tv-applybar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding: 10px !important;
    border-radius: 8px !important;
  }

  body.app-route.chart-route-active .studio-tv-all-applies {
    justify-content: center !important;
  }

  body.app-route.chart-route-active .studio-tv-apply-status,
  body.app-route.chart-route-active .studio-tv-apply-warning {
    min-height: 28px !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.app-route.chart-route-active .studio-tv-chart-host {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 440px !important;
    height: 440px !important;
    overflow: hidden !important;
  }

  body.app-route.chart-route-active .studio-tv-chart-host > * {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 440px !important;
    height: 440px !important;
  }

  body.app-route.chart-route-active .studio-tv-chart-host canvas,
  body.app-route.chart-route-active .studio-tv-chart-host svg {
    max-width: 100% !important;
  }
}

/* Mobile hardening pass. This file is loaded last; keep this block at EOF. */
@media (max-width: 680px) {
  html body.app-route {
    --studio-mobile-header: 64px;
    --studio-touch: 46px;
    --studio-mobile-gap: 12px;
    --studio-mobile-radius: 8px;
    color: #111827 !important;
    background: #f6f7fb !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 1.36 !important;
    letter-spacing: 0 !important;
  }

  html[data-theme="dark"] body.app-route,
  :root[data-theme="dark"] body.app-route {
    color: #f8fafc !important;
    background: #080b14 !important;
  }

  html body.app-route :is(.app-shell, .main-shell) {
    display: block !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  html body.app-route .sidebar {
    position: relative !important;
    top: auto !important;
    z-index: 90 !important;
    width: 100% !important;
    height: var(--studio-mobile-header) !important;
    min-height: var(--studio-mobile-header) !important;
    max-height: var(--studio-mobile-header) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    overflow: visible !important;
    border: 0 !important;
    border-bottom: 1px solid #d8deea !important;
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  html[data-theme="dark"] body.app-route .sidebar,
  :root[data-theme="dark"] body.app-route .sidebar {
    border-bottom-color: #1f2937 !important;
    background: #0b1020 !important;
  }

  html body.app-route.mobile-nav-open .sidebar {
    z-index: 130000 !important;
  }

  html body.app-route .sidebar .brand-row {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
  }

  html body.app-route .sidebar .brand-mark {
    width: 34px !important;
    height: 34px !important;
    border-radius: var(--studio-mobile-radius) !important;
  }

  html body.app-route .sidebar .brand-row strong {
    color: inherit !important;
    font-size: 18px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.app-route .sidebar .brand-row small {
    display: none !important;
  }

  html body.app-route .mobile-nav-button {
    width: 96px !important;
    min-width: 96px !important;
    height: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: var(--studio-mobile-radius) !important;
    color: #ffffff !important;
    background: #6d28d9 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html body.app-route.mobile-nav-open .mobile-nav-button {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body.app-route .mobile-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 120000 !important;
    display: block !important;
    background: #050714 !important;
    opacity: 0.9 !important;
    backdrop-filter: none !important;
  }

  html body.app-route .mobile-nav-backdrop[hidden] {
    display: none !important;
  }

  html body.app-route #sideNav.side-nav,
  html body.app-route .sidebar #sideNav.side-nav {
    position: fixed !important;
    inset: 10px !important;
    z-index: 130001 !important;
    width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 20px) !important;
    height: calc(100dvh - 20px) !important;
    min-height: calc(100dvh - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border: 1px solid #d8deea !important;
    border-radius: var(--studio-mobile-radius) !important;
    color: #111827 !important;
    background: #ffffff !important;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.34) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease !important;
  }

  html[data-theme="dark"] body.app-route #sideNav.side-nav,
  html[data-theme="dark"] body.app-route .sidebar #sideNav.side-nav,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav,
  :root[data-theme="dark"] body.app-route .sidebar #sideNav.side-nav {
    border-color: #263244 !important;
    color: #f8fafc !important;
    background: #0f172a !important;
  }

  html body.app-route.mobile-nav-open #sideNav.side-nav,
  html body.app-route.mobile-nav-open .sidebar #sideNav.side-nav {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  html body.app-route #sideNav.side-nav section {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.app-route #sideNav.side-nav .mobile-nav-close {
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 2px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: var(--studio-mobile-radius) !important;
    color: #ffffff !important;
    background: #111827 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html[data-theme="dark"] body.app-route #sideNav.side-nav .mobile-nav-close,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav .mobile-nav-close {
    color: #111827 !important;
    background: #f8fafc !important;
  }

  html body.app-route #sideNav.side-nav section > span {
    padding: 2px 2px 0 !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
  }

  html[data-theme="dark"] body.app-route #sideNav.side-nav section > span,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav section > span {
    color: #94a3b8 !important;
  }

  html body.app-route #sideNav.side-nav a,
  html body.app-route #sideNav.side-nav .nav-disabled {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 0 12px !important;
    border: 1px solid #d8deea !important;
    border-radius: var(--studio-mobile-radius) !important;
    color: #1f2937 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    white-space: normal !important;
  }

  html[data-theme="dark"] body.app-route #sideNav.side-nav a,
  html[data-theme="dark"] body.app-route #sideNav.side-nav .nav-disabled,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav a,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav .nav-disabled {
    border-color: #263244 !important;
    color: #e5e7eb !important;
    background: #111827 !important;
  }

  html body.app-route #sideNav.side-nav a.active,
  html body.app-route #sideNav.side-nav a:hover {
    color: #111827 !important;
    border-color: #7c3aed !important;
    background: #ede9fe !important;
  }

  html[data-theme="dark"] body.app-route #sideNav.side-nav a.active,
  html[data-theme="dark"] body.app-route #sideNav.side-nav a:hover,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav a.active,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav a:hover {
    color: #ffffff !important;
    border-color: #8b5cf6 !important;
    background: #312e81 !important;
  }

  html body.app-route .main-shell > .topbar {
    position: relative !important;
    top: auto !important;
    z-index: 20 !important;
    width: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: minmax(42px, auto) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #d8deea !important;
    color: #111827 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  html[data-theme="dark"] body.app-route .main-shell > .topbar,
  :root[data-theme="dark"] body.app-route .main-shell > .topbar {
    border-bottom-color: #1f2937 !important;
    color: #f8fafc !important;
    background: #0b1020 !important;
  }

  html body.app-route.chart-route-active .main-shell > .topbar {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 6px 12px !important;
  }

  html body.app-route.chart-route-active .topbar > :not(#projectSelect) {
    display: none !important;
  }

  html body.app-route .topbar > #projectSelect,
  html body.app-route.chart-route-active .topbar > #projectSelect {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: none !important;
    border-radius: var(--studio-mobile-radius) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
  }

  html body.app-route .topbar > .state-pill {
    display: none !important;
  }

  html body.app-route .topbar > .profile-menu {
    display: none !important;
  }

  html body.app-route .topbar > .profile-menu > button {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: var(--studio-mobile-radius) !important;
  }

  html body.app-route .topbar .top-strategy,
  html body.app-route .topbar #topSaveButton,
  html body.app-route .topbar #topRunButton,
  html body.app-route .topbar .theme-toggle,
  html body.app-route .topbar .notifications-menu {
    display: none !important;
  }

  html body.app-route .route-outlet,
  html body.app-route.chart-route-active .route-outlet {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    display: grid !important;
    gap: var(--studio-mobile-gap) !important;
    padding: var(--studio-mobile-gap) !important;
    overflow-x: hidden !important;
  }

  html body.app-route :is(.page-head, .studio-module-header) {
    margin: 0 !important;
  }

  html body.app-route .page-head h1,
  html body.app-route .studio-module-title h1,
  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root, .mt5-terminal-clone-root) h1 {
    font-size: 20px !important;
    font-style: normal !important;
    font-weight: 750 !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
  }

  html body.app-route :is(.page-head p, .studio-module-title p, .strategy-product-card p, .muted, .field-hint, .field-note, .panel-subtitle) {
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 1.38 !important;
    letter-spacing: 0 !important;
  }

  html body.app-route :is(.panel, .empty-state, .status-line, .studio-module-shell, .studio-module-content, .analyzer-frame-panel) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: var(--studio-mobile-radius) !important;
    box-shadow: none !important;
  }

  html body.app-route :is(button, .primary, .ghost, .icon-button, .btn, input:not([type="checkbox"]):not([type="radio"]), select, textarea, .studio-module-steps > *, .studio-tv-toolbar button, .studio-tv-toolbar select, .studio-tv-applybar select, .studio-tv-all-applies) {
    min-height: var(--studio-touch) !important;
    border-radius: var(--studio-mobile-radius) !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 650 !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html body.app-route :is(input[type="checkbox"], input[type="radio"]) {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.app-route :is(label, .field-check, .params-toggle-inline, .ai-toggle-inline):has(input[type="checkbox"], input[type="radio"]) {
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  html body.app-route .strategy-market-toolbar {
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
    border: 1px solid #d8deea !important;
    border-radius: var(--studio-mobile-radius) !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  html body.app-route .strategy-market-toolbar div:first-child {
    gap: 4px !important;
  }

  html body.app-route .strategy-market-toolbar strong {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  html body.app-route .strategy-market-tabs {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
    scrollbar-width: none !important;
  }

  html body.app-route .strategy-market-tabs span {
    min-height: 36px !important;
    flex: 0 0 auto !important;
    padding: 0 12px !important;
    border-radius: var(--studio-mobile-radius) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
  }

  html body.app-route .strategy-market-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  html body.app-route .strategy-product-card {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-areas: "media body" "footer footer" !important;
    align-items: start !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: var(--studio-mobile-radius) !important;
    box-shadow: none !important;
  }

  html body.app-route .strategy-product-media {
    grid-area: media !important;
    width: 72px !important;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    border-radius: var(--studio-mobile-radius) !important;
  }

  html body.app-route .strategy-product-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html body.app-route .strategy-product-media.is-brand img {
    width: 34px !important;
    height: 34px !important;
    object-fit: contain !important;
  }

  html body.app-route .strategy-product-media span {
    top: 4px !important;
    right: 4px !important;
    min-height: 22px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
  }

  html body.app-route .strategy-product-body {
    grid-area: body !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
    padding: 0 !important;
  }

  html body.app-route .strategy-product-card h2 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.18 !important;
  }

  html body.app-route .strategy-product-card p {
    margin: 0 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body.app-route .strategy-product-tags {
    gap: 4px !important;
  }

  html body.app-route .strategy-product-tags span,
  html body.app-route .strategy-product-kicker span {
    min-height: 24px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  html body.app-route .strategy-product-footer {
    grid-area: footer !important;
    min-height: 38px !important;
    margin-top: 0 !important;
    padding-top: 8px !important;
    border-top: 1px solid #e5e7eb !important;
  }

  html body.app-route .studio-module-shell {
    display: grid !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.app-route .studio-module-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  html body.app-route .studio-module-header > .ghost.compact {
    width: fit-content !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  html body.app-route .studio-module-title {
    display: grid !important;
    gap: 4px !important;
  }

  html body.app-route .studio-module-title > span {
    color: #6d28d9 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
  }

  html body.app-route .studio-module-scope {
    min-height: 52px !important;
    display: grid !important;
    gap: 2px !important;
    padding: 10px 12px !important;
    border: 1px solid #d8deea !important;
    border-radius: var(--studio-mobile-radius) !important;
    background: #ffffff !important;
  }

  html body.app-route .studio-module-scope span {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
  }

  html body.app-route .studio-module-scope strong {
    color: #111827 !important;
    font-size: 16px !important;
    line-height: 1.16 !important;
  }

  html body.app-route .studio-module-steps {
    display: none !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 4px !important;
    border-bottom: 1px solid #e5e7eb !important;
    scrollbar-width: none !important;
  }

  html body.app-route .studio-module-steps > * {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 108px !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    border-radius: var(--studio-mobile-radius) !important;
    white-space: nowrap !important;
  }

  html body.app-route .studio-module-content {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-style: normal !important;
    line-height: 1.36 !important;
    letter-spacing: 0 !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) * {
    font-family: inherit !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(.app-shell, .app, main, .main, [class*="content" i], [class*="layout" i]) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(.navbar, .topbar, .bg-glow, [class*="hero" i]) {
    display: none !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(.panel, details.panel, details.panel-accordion, .setup-card, .side-bounds-card, .results-shell, .result-card, .key-section, .ai-top-card, .ai-status-card, .workflow-current, .flow-step, .kpi, .ai-kpi, .params-summary-kpi, .best-result-hero, .stack-card) {
    border: 1px solid #d8deea !important;
    border-radius: var(--studio-mobile-radius) !important;
    color: #111827 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(.panel, .setup-card, .side-bounds-card, .results-shell, .result-card, .key-section, .ai-top-card, .ai-status-card, .workflow-current, .flow-step, .kpi, .ai-kpi, .params-summary-kpi, .best-result-hero, .stack-card):not(details) {
    padding: 12px !important;
    margin: 0 0 10px !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) details:is(.panel, .setup-card, .panel-accordion) {
    padding: 0 !important;
    margin: 0 0 10px !important;
    overflow: hidden !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) details:is(.panel, .setup-card, .panel-accordion) > summary,
  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) .panel-summary {
    min-height: 52px !important;
    padding: 0 12px !important;
    align-items: center !important;
    color: #111827 !important;
    background: #ffffff !important;
    border: 0 !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) .panel-accordion-body {
    padding: 10px 12px 12px !important;
    border-top: 1px solid #e5e7eb !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(h2, h3, h4, .panel-summary-title, .setup-card-title, .section-title, .results-title, .ai-headline) {
    color: #111827 !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(p, div, span, label, li, td, th) {
    font-size: 14px !important;
    line-height: 1.36 !important;
    letter-spacing: 0 !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(.muted, .tiny, small, .field-hint, .field-note, .panel-subtitle, .help, .helper, .note, .ai-badge, .state-pill, th) {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 650 !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(.row, .row.row-6, .setup-grid, .setup-fields, .form-grid, .params-grid, .bounds-grid, .range-grid, .range-row, .range-head-row, .control-actions, .params-actions, .runbar, .runbar-left, .runbar-center, .runbar-right) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(button, .btn, .ghost, .primary, .btn-run, .apply-btn, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100% !important;
    min-width: 0 !important;
    min-height: var(--studio-touch) !important;
    padding: 0 12px !important;
    border-radius: var(--studio-mobile-radius) !important;
    border: 1px solid #cbd5e1 !important;
    color: #111827 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 650 !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(button.primary, .primary, .btn-run, .apply-btn) {
    color: #ffffff !important;
    border-color: #6d28d9 !important;
    background: #6d28d9 !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(button.danger, .danger, .btn-danger) {
    color: #b91c1c !important;
    border-color: #fecdd3 !important;
    background: #fff1f2 !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(input[type="checkbox"], input[type="radio"]) {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(.table-wrap, .results-table-wrap, .apply-wrap) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) table {
    min-width: 720px !important;
  }

  html body.app-route.chart-route-active .route-outlet {
    padding: 8px 8px 20px !important;
    gap: 8px !important;
  }

  html body.app-route.chart-route-active .studio-tv-chart {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.app-route.chart-route-active .studio-tv-toolbar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 10px !important;
    border: 1px solid #d8deea !important;
    border-radius: var(--studio-mobile-radius) !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  html body.app-route.chart-route-active .studio-tv-toolbar select[aria-label="Symbol"] {
    grid-column: 1 / -1 !important;
  }

  html body.app-route.chart-route-active .studio-tv-quick-tfs {
    display: none !important;
  }

  html body.app-route.chart-route-active .studio-tv-toolbar :is(select, button),
  html body.app-route.chart-route-active .studio-tv-applybar :is(select, button, label, .studio-tv-all-applies) {
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 10px !important;
    font-size: 15px !important;
  }

  html body.app-route.chart-route-active .studio-tv-layout-label,
  html body.app-route.chart-route-active .studio-tv-toolbar button:disabled {
    display: none !important;
  }

  html body.app-route.chart-route-active .studio-tv-applybar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding: 10px !important;
    border: 1px solid #d8deea !important;
    border-radius: var(--studio-mobile-radius) !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  html body.app-route.chart-route-active .studio-tv-apply-status,
  html body.app-route.chart-route-active .studio-tv-apply-warning {
    min-height: 26px !important;
    font-size: 13px !important;
    justify-content: flex-start !important;
    white-space: normal !important;
  }

  html body.app-route.chart-route-active .studio-tv-chart-host,
  html body.app-route.chart-route-active .studio-tv-chart-host > * {
    width: 100% !important;
    min-width: 0 !important;
    height: 56dvh !important;
    min-height: 430px !important;
    max-height: 620px !important;
    overflow: hidden !important;
  }

  html body.app-route .analyzer-frame-panel {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  html body.app-route .studio-analyzer-frame {
    display: block !important;
    width: 100% !important;
    height: calc(100dvh - 96px) !important;
    min-height: 720px !important;
    border: 0 !important;
    border-radius: var(--studio-mobile-radius) !important;
    background: #ffffff !important;
  }

  html[data-theme="dark"] body.app-route :is(.strategy-market-toolbar, .strategy-product-card, .studio-module-scope, .qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(.panel, details.panel, details.panel-accordion, .setup-card, .side-bounds-card, .results-shell, .result-card, .key-section, .ai-top-card, .ai-status-card, .workflow-current, .flow-step, .kpi, .ai-kpi, .params-summary-kpi, .best-result-hero, .stack-card),
  :root[data-theme="dark"] body.app-route :is(.strategy-market-toolbar, .strategy-product-card, .studio-module-scope, .qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(.panel, details.panel, details.panel-accordion, .setup-card, .side-bounds-card, .results-shell, .result-card, .key-section, .ai-top-card, .ai-status-card, .workflow-current, .flow-step, .kpi, .ai-kpi, .params-summary-kpi, .best-result-hero, .stack-card),
  html[data-theme="dark"] body.app-route :is(.strategy-market-toolbar, .strategy-product-card, .studio-module-scope, .studio-tv-toolbar, .studio-tv-applybar),
  :root[data-theme="dark"] body.app-route :is(.strategy-market-toolbar, .strategy-product-card, .studio-module-scope, .studio-tv-toolbar, .studio-tv-applybar) {
    border-color: #263244 !important;
    color: #f8fafc !important;
    background: #0f172a !important;
  }

  html[data-theme="dark"] body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(button, .btn, .ghost, input:not([type="checkbox"]):not([type="radio"]), select, textarea),
  :root[data-theme="dark"] body.app-route :is(.qv3-clone-root, .qv8-clone-root, .ats-v2-clone-root, .mt5-optimizer-clone-root) :is(button, .btn, .ghost, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    border-color: #334155 !important;
    color: #f8fafc !important;
    background: #111827 !important;
  }

  html body.app-route .analyzer-native-panel {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }

  html body.app-route .studio-native-analyzer {
    width: 100% !important;
    min-width: 0 !important;
    min-height: calc(100dvh - var(--studio-mobile-header) - 26px) !important;
    font-size: var(--studio-mobile-type-body) !important;
    line-height: 1.36 !important;
  }

  html body.app-route .studio-native-analyzer header {
    position: static !important;
    border: 1px solid #d8deea !important;
    border-radius: var(--studio-mobile-radius) !important;
    background: #ffffff !important;
  }

  html body.app-route .studio-native-analyzer .wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
  }

  html body.app-route .studio-native-analyzer main.wrap {
    padding: 10px 0 0 !important;
  }

  html body.app-route .studio-native-analyzer h1 {
    font-size: 20px !important;
    line-height: 1.16 !important;
    font-weight: 750 !important;
  }

  html body.app-route .studio-native-analyzer :is(h2, h3) {
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 750 !important;
  }

  html body.app-route .studio-native-analyzer :is(.sub, .muted, .k, .small, th) {
    font-size: 12px !important;
    line-height: 1.34 !important;
    font-weight: 650 !important;
  }

  html body.app-route .studio-native-analyzer :is(.tools, .tabs) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  html body.app-route .studio-native-analyzer :is(input:not([type="checkbox"]):not([type="radio"]), select, button, a.button, .tab) {
    width: 100% !important;
    min-width: 0 !important;
    min-height: var(--studio-touch) !important;
    padding: 0 12px !important;
    border-radius: var(--studio-mobile-radius) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.16 !important;
  }

  html body.app-route .studio-native-analyzer :is(.grid4, .grid3, .grid2, .params) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  html body.app-route .studio-native-analyzer :is(.panel, .metric, .param) {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid #d8deea !important;
    border-radius: var(--studio-mobile-radius) !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  html body.app-route .studio-native-analyzer .panel {
    margin-top: 10px !important;
  }

  html body.app-route .studio-native-analyzer :is(.v, .param strong) {
    display: block !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    overflow-wrap: anywhere !important;
  }

  html body.app-route .studio-native-analyzer .param .k {
    display: block !important;
  }

  html body.app-route .studio-native-analyzer .scroll {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body.app-route .studio-native-analyzer table {
    min-width: 760px !important;
  }

  html body.app-route .studio-native-analyzer table.mobile-card-table {
    display: table !important;
    min-width: 980px !important;
  }

  html body.app-route .studio-native-analyzer table.mobile-card-table thead {
    display: table-header-group !important;
  }

  html body.app-route .studio-native-analyzer table.mobile-card-table tbody {
    display: table-row-group !important;
  }

  html body.app-route .studio-native-analyzer table.mobile-card-table tr {
    display: table-row !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  html body.app-route .studio-native-analyzer table.mobile-card-table :is(th, td) {
    display: table-cell !important;
    width: auto !important;
    min-width: 0 !important;
    border-bottom: 1px solid #d8deea !important;
    white-space: nowrap !important;
  }

  html body.app-route .studio-native-analyzer table.mobile-card-table td::before {
    content: none !important;
    display: none !important;
  }

  html body.app-route .studio-native-analyzer th {
    position: static !important;
  }

  html body.app-route .studio-native-analyzer :is(th, td) {
    font-size: 13px !important;
    line-height: 1.34 !important;
    padding: 8px !important;
  }

  html[data-theme="dark"] body.app-route .studio-native-analyzer header,
  :root[data-theme="dark"] body.app-route .studio-native-analyzer header,
  html[data-theme="dark"] body.app-route .studio-native-analyzer :is(.panel, .metric, .param),
  :root[data-theme="dark"] body.app-route .studio-native-analyzer :is(.panel, .metric, .param) {
    border-color: #263244 !important;
    color: #f8fafc !important;
    background: #0f172a !important;
  }
}

@media (max-width: 680px) {
  html:has(body.mobile-nav-open),
  body.mobile-nav-open {
    overflow: hidden !important;
  }

  html body.app-route .sidebar {
    position: relative !important;
    top: auto !important;
    background: #111827 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html[data-theme="light"] body.app-route .sidebar,
  :root[data-theme="light"] body.app-route .sidebar {
    color: #111827 !important;
    background: #ffffff !important;
  }

  html body.app-route #sideNav.side-nav,
  html body.app-route .sidebar #sideNav.side-nav {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html[data-theme="dark"] body.app-route #sideNav.side-nav,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav,
  html[data-theme="dark"] body.app-route .sidebar #sideNav.side-nav,
  :root[data-theme="dark"] body.app-route .sidebar #sideNav.side-nav {
    background: #0f172a !important;
  }

  html body.app-route .mobile-nav-backdrop {
    background: rgba(2, 6, 23, 0.72) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body.app-route #sideNav.side-nav .drawer-controls {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.app-route #sideNav.side-nav .drawer-action {
    width: 100% !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 0 12px !important;
    border: 1px solid #d8deea !important;
    border-radius: 14px !important;
    color: #1f2937 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
  }

  html body.app-route #sideNav.side-nav .drawer-action b {
    min-width: 22px !important;
    min-height: 22px !important;
    display: inline-grid !important;
    place-items: center !important;
    margin-left: auto !important;
    border-radius: 999px !important;
    color: #ffffff !important;
    background: #7c3aed !important;
    font-size: 12px !important;
  }

  html body.app-route #sideNav.side-nav .drawer-action .button-label {
    display: inline !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  html body.app-route #sideNav.side-nav .drawer-action .button-icon {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto !important;
  }

  html body.app-route #sideNav.side-nav .drawer-notifications {
    display: grid !important;
    gap: 4px !important;
    padding: 12px !important;
    border: 1px solid #d8deea !important;
    border-radius: 14px !important;
    color: #334155 !important;
    background: #ffffff !important;
  }

  html body.app-route #sideNav.side-nav .drawer-notifications strong {
    color: #111827 !important;
    font-size: 14px !important;
  }

  html body.app-route #sideNav.side-nav .drawer-notifications small,
  html body.app-route #sideNav.side-nav .drawer-notifications p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
  }

  html[data-theme="dark"] body.app-route #sideNav.side-nav .drawer-action,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav .drawer-action,
  html[data-theme="dark"] body.app-route #sideNav.side-nav .drawer-notifications,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav .drawer-notifications {
    border-color: #263244 !important;
    color: #f8fafc !important;
    background: #111827 !important;
  }

  html[data-theme="dark"] body.app-route #sideNav.side-nav .drawer-notifications strong,
  :root[data-theme="dark"] body.app-route #sideNav.side-nav .drawer-notifications strong {
    color: #f8fafc !important;
  }

  html body.app-route .route-outlet,
  html body.app-route.chart-route-active .route-outlet {
    padding: 16px 14px 28px !important;
  }

  html body.app-route .manifest {
    grid-template-columns: 1fr !important;
  }
}
