/**
 * IuVe Sidebar v2 — mobile off-canvas drawer (ChatGPT pattern).
 * ≤767px: sidebar fully hidden when closed; logo trigger in chat header opens overlay drawer.
 */

@media (max-width: 767px) {
  :root {
    --sidebar-v2-mobile-drawer: min(85vw, 260px);
  }

  /* ── Shell: single full-width column ───────────────────────────────────── */
  .app-shell.app-shell-v2 {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    align-items: stretch !important;
    min-height: 100dvh !important;
  }

  .app-shell.app-shell-v2 > #app-side-nav,
  .app-shell.app-shell-v2 > .sidebar-v2.side-nav {
    grid-column: 1;
    grid-row: 1;
  }

  .app-shell.app-shell-v2 > .app-content,
  .app-shell.app-shell-v2 > .main-layout {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  .app-shell.app-shell-v2 > .sidebar-v2__overlay {
    grid-column: 1;
    grid-row: 1;
  }

  /* ── Sidebar: off-canvas by default, slides in when open ─────────────── */
  .sidebar-v2.side-nav,
  .app-shell.app-shell-v2 .side-nav,
  .app-shell.app-shell-v2 #app-side-nav,
  .app-shell.app-shell-v2 .sidebar-v2.side-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    inset: auto !important;
    width: var(--sidebar-v2-mobile-drawer) !important;
    min-width: var(--sidebar-v2-mobile-drawer) !important;
    max-width: var(--sidebar-v2-mobile-drawer) !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    transform: translateX(-100%) !important;
    visibility: visible !important;
    pointer-events: none !important;
    box-shadow: none !important;
    border-right: 1px solid var(--sidebar-v2-border, rgba(15, 23, 42, 0.08));
    border-radius: 0;
    z-index: 1700;
    transition: transform var(--sidebar-v2-transition, 200ms ease),
      box-shadow var(--sidebar-v2-transition, 200ms ease);
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2.side-nav,
  .app-shell.app-shell-v2.mobile-nav-open .side-nav,
  .app-shell.app-shell-v2.mobile-nav-open #app-side-nav,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2.side-nav,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2.side-nav,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .side-nav,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] #app-side-nav,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2.side-nav {
    transform: translateX(0) !important;
    pointer-events: auto !important;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12) !important;
    z-index: 1700 !important;
  }

  .iuve-shell.app-shell-v2 #app-side-nav,
  .iuve-shell.app-shell-v2 .sidebar-v2 {
    transform: translateX(-100%) !important;
    width: var(--sidebar-v2-mobile-drawer) !important;
    min-width: var(--sidebar-v2-mobile-drawer) !important;
    max-width: var(--sidebar-v2-mobile-drawer) !important;
  }

  .iuve-shell.app-shell-v2.mobile-nav-open #app-side-nav,
  .iuve-shell.app-shell-v2.mobile-nav-open .sidebar-v2,
  .iuve-shell.app-shell-v2[data-sidebar-mobile="open"] #app-side-nav,
  .iuve-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 {
    transform: translateX(0) !important;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  }

  /* ── Backdrop: dims full main content when drawer open ─────────────────── */
  .sidebar-v2__overlay {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1500;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--sidebar-v2-transition, 200ms ease),
      visibility var(--sidebar-v2-transition, 200ms ease);
    cursor: pointer;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__overlay,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__overlay {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar-v2__overlay[hidden] {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
  }

  /* ── Mobile drawer header: logo left, X close right ───────────────────── */
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__toggle--collapse,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__toggle--expand,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__toggle--collapse,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__toggle--expand {
    display: none !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__toggle--close-mobile,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__toggle--close-mobile {
    display: inline-flex !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__header,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__header {
    display: grid !important;
    grid-template-columns: var(--sidebar-v2-item-height, 40px) minmax(0, 1fr) var(--sidebar-v2-item-height, 40px) !important;
    align-items: center !important;
    padding: max(8px, env(safe-area-inset-top, 0px)) 12px 8px !important;
    gap: 8px !important;
    pointer-events: auto !important;
    border-bottom: 0 !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__brand,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__brand {
    grid-column: 1 / 3 !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
    color: #0f172a !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__brand-text,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__brand-text {
    display: inline-block !important;
    font-weight: 600 !important;
    color: #0f172a !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__brand::before,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__brand::before {
    content: none !important;
    display: none !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__toggle--close-mobile,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__toggle--close-mobile {
    grid-column: 3 !important;
    justify-self: end !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__brand-text,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__section-label,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 .side-nav-link-text,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 .side-nav-logout-text,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 .side-nav-subcontrols,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 .side-nav-subcontrol,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__brand-text,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__section-label,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 .side-nav-link-text,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 .side-nav-logout-text,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 .side-nav-subcontrols,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 .side-nav-subcontrol {
    display: revert !important;
    opacity: 1 !important;
    max-width: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__scroll,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 4px 8px 8px;
    align-items: stretch;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Beat dashboard.css final nav-collapsed guard for open mobile drawer */
  .app-shell.app-shell-v2.mobile-nav-open .side-nav .side-nav-subcontrol,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .side-nav .side-nav-subcontrol {
    display: block !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 .side-nav-links a,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 .side-nav-action,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 .sidebar-v2__item,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 .side-nav-links a,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 .side-nav-action,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 .sidebar-v2__item {
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    border-radius: 12px !important;
  }

  /* ── Closed: neutralize desktop collapsed rail layout ───────────────────── */
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__toggle--collapse,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__toggle--close-mobile {
    display: none !important;
  }

  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__toggle--expand,
  .app-shell.app-shell-v2.nav-collapsed .side-nav-rail-open {
    display: none !important;
  }

  .app-shell.app-shell-v2.iuve-shell.nav-collapsed .sidebar-v2__header,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__header {
    display: none !important;
  }

  .app-shell.app-shell-v2.iuve-shell.nav-collapsed .sidebar-v2__scroll,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__scroll,
  .app-shell.app-shell-v2.iuve-shell.nav-collapsed .sidebar-v2__footer,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__footer {
    padding: 8px !important;
    align-items: stretch !important;
  }

  .app-shell.app-shell-v2.iuve-shell.nav-collapsed .sidebar-v2__section,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__section {
    padding: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .app-shell.app-shell-v2.iuve-shell.nav-collapsed .sidebar-v2 :is(
    .sidebar-v2__item,
    .side-nav-item-rail,
    .side-nav-action,
    .side-nav-new-chat,
    .side-nav-logout-btn
  ),
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2 :is(
    .sidebar-v2__item,
    .side-nav-item-rail,
    .side-nav-action,
    .side-nav-new-chat,
    .side-nav-logout-btn
  ) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px !important;
  }

  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__brand,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__brand-text,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2__section-label,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2 .side-nav-link-text,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2 .side-nav-logout-text,
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2 .side-nav-subcontrols {
    display: revert !important;
    opacity: 1 !important;
    max-width: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }

  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2 .side-nav-links a:not(.side-nav-item-rail),
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2 .side-nav-action:not(.side-nav-item-rail),
  .app-shell.app-shell-v2.nav-collapsed .sidebar-v2 .sidebar-v2__item:not(.side-nav-item-rail):not(.side-nav-new-chat):not(#btn-search-chats) {
    display: inline-flex !important;
  }

  /* Hide legacy mobile topbar — workspace-app-mobile-header / chat header is the trigger */
  .app-shell.app-shell-v2 .workspace-mobile-nav,
  .app-shell.app-shell-v2 .iuve-mobile-topbar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Body scroll lock while drawer open — avoid touch-action:none so native selects work */
  body.sidebar-v2-drawer-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  /* Chat/project pickers: full-width row, 44px touch targets in narrow drawer */
  .app-shell.app-shell-v2.mobile-nav-open .side-nav-subcontrol-row--chat-main,
  .app-shell.app-shell-v2.mobile-nav-open .side-nav-subcontrol-row--project-main,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .side-nav-subcontrol-row--chat-main,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .side-nav-subcontrol-row--project-main {
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 8px !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .side-nav-subcontrol-select,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .side-nav-subcontrol-select {
    min-height: 44px !important;
    font-size: var(--iuve-font-size-composer, 16px) !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
    touch-action: manipulation !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .side-nav-subcontrol-chip,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .side-nav-subcontrol-chip {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    touch-action: manipulation !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .side-nav-subcontrol,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .side-nav-subcontrol {
    overflow: visible !important;
  }

  /* Chat uses mobile-chat-header; other /app/* pages use workspace-app-mobile-header */
  body[data-page="iuve-chat"] .shell-open-fab,
  body[data-page="iuve-chat"] .workspace-app-mobile-header {
    display: none !important;
  }

  /* Neutralize legacy dashboard / shell off-canvas drawer rules */
  .app-shell.app-shell-v2::after,
  .app-shell.app-shell-v2.mobile-nav-open::after,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"]::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__scroll,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__scroll,
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__footer,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__footer {
    pointer-events: auto !important;
  }

  /* ── Style parity with desktop (tokens from iuve-sidebar-v2.css) ───────── */
  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__section-label,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__section-label {
    text-transform: uppercase !important;
    font-size: var(--iuve-font-size-sidebar-section, 11px) !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    color: var(--sidebar-v2-muted, #64748b) !important;
    line-height: 1.2 !important;
    padding: 0 10px !important;
    margin: 0 0 4px !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__section + .sidebar-v2__section,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__section + .sidebar-v2__section {
    margin-top: 4px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.14) !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 :is(
    .sidebar-v2__item,
    .side-nav-new-chat,
    .side-nav-action,
    .side-nav-links a,
    .side-nav-logout-btn
  ),
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 :is(
    .sidebar-v2__item,
    .side-nav-new-chat,
    .side-nav-action,
    .side-nav-links a,
    .side-nav-logout-btn
  ) {
    background: transparent !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    border: 0 !important;
    box-shadow: none !important;
    font-weight: inherit !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 :is(
    .sidebar-v2__item:hover,
    .side-nav-new-chat:hover,
    .side-nav-action:hover,
    .side-nav-links a:hover,
    .side-nav-logout-btn:hover,
    .sidebar-v2__item:focus-visible,
    .side-nav-new-chat:focus-visible,
    .side-nav-action:focus-visible,
    .side-nav-links a:focus-visible,
    .side-nav-logout-btn:focus-visible
  ),
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 :is(
    .sidebar-v2__item:hover,
    .side-nav-new-chat:hover,
    .side-nav-action:hover,
    .side-nav-links a:hover,
    .side-nav-logout-btn:hover,
    .sidebar-v2__item:focus-visible,
    .side-nav-new-chat:focus-visible,
    .side-nav-action:focus-visible,
    .side-nav-links a:focus-visible,
    .side-nav-logout-btn:focus-visible
  ) {
    background: transparent !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 :is(
    .sidebar-v2__item.is-active,
    .sidebar-v2__item.active,
    .side-nav-links a.active,
    .side-nav-action.active
  ),
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 :is(
    .sidebar-v2__item.is-active,
    .sidebar-v2__item.active,
    .side-nav-links a.active,
    .side-nav-action.active
  ) {
    background: transparent !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-weight: 600 !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 :is(
    .sidebar-v2__item.is-active,
    .sidebar-v2__item.active,
    .side-nav-links a.active,
    .side-nav-action.active
  ) :is(.sidebar-v2__item-label, .side-nav-link-text),
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 :is(
    .sidebar-v2__item.is-active,
    .sidebar-v2__item.active,
    .side-nav-links a.active,
    .side-nav-action.active
  ) :is(.sidebar-v2__item-label, .side-nav-link-text) {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 :is(
    .sidebar-v2__item.is-active,
    .sidebar-v2__item.active,
    .side-nav-links a.active,
    .side-nav-action.active
  ) :is(.sidebar-v2__item-icon, .side-nav-link-icon),
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 :is(
    .sidebar-v2__item.is-active,
    .sidebar-v2__item.active,
    .side-nav-links a.active,
    .side-nav-action.active
  ) :is(.sidebar-v2__item-icon, .side-nav-link-icon) {
    color: #334155 !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 :is(
    .side-nav-subcontrol-select,
    .side-nav-subcontrol-chip,
    .mode-chip.side-nav-subcontrol-chip
  ),
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 :is(
    .side-nav-subcontrol-select,
    .side-nav-subcontrol-chip,
    .mode-chip.side-nav-subcontrol-chip
  ) {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--sidebar-v2-text, #0f172a) !important;
    box-shadow: none !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 :is(
    .side-nav-subcontrol-chip,
    .mode-chip.side-nav-subcontrol-chip
  ):hover,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 :is(
    .side-nav-subcontrol-chip,
    .mode-chip.side-nav-subcontrol-chip
  ):hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: var(--sidebar-v2-text, #0f172a) !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2 :is(
    .sidebar-v2__item-label,
    .side-nav-link-text,
    .side-nav-logout-text,
    .side-nav-subcontrol-label
  ),
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2 :is(
    .sidebar-v2__item-label,
    .side-nav-link-text,
    .side-nav-logout-text,
    .side-nav-subcontrol-label
  ) {
    opacity: 1 !important;
    visibility: visible !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-text-fill-color: currentColor !important;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__toggle--close-mobile,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__toggle--close-mobile {
    color: var(--sidebar-v2-muted, #64748b);
    background: transparent;
    border-radius: 8px;
  }

  .app-shell.app-shell-v2.mobile-nav-open .sidebar-v2__toggle--close-mobile:hover,
  .app-shell.app-shell-v2[data-sidebar-mobile="open"] .sidebar-v2__toggle--close-mobile:hover {
    background: transparent;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .sidebar-v2.side-nav,
  .sidebar-v2__overlay {
    transition: none !important;
  }
}
