/* ARK_MOBILE_FLOW_V6 */
@media (max-width: 900px) {
  /* One document scroll; never turn hidden panels back on. */
  html[data-ark-mobile-safe].ark-mobile-safe {
    height:auto!important; min-height:100%!important; max-height:none!important;
    overflow-x:hidden!important; overflow-y:auto!important;
    position:static!important; touch-action:auto!important;
    overscroll-behavior-y:auto!important; scroll-padding-top:0!important;
  }
  html[data-ark-mobile-safe].ark-mobile-safe body {
    display:block!important; position:static!important; inset:auto!important;
    width:100%!important; max-width:100%!important; height:auto!important;
    min-height:100dvh!important; max-height:none!important;
    overflow:visible!important; touch-action:auto!important;
    margin:0!important; padding:0!important; transform:none!important;
  }
  html[data-ark-mobile-safe].ark-mobile-safe body > header.top {
    display:grid!important; grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand tools" "account account" "modes modes"!important;
    align-items:center!important; justify-content:stretch!important;
    gap:8px!important; padding:10px 12px!important;
    position:relative!important; inset:auto!important; transform:none!important;
    width:100%!important; min-width:0!important; max-width:100%!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    margin:0!important; box-sizing:border-box!important;
    overflow:visible!important; z-index:20!important;
    background:var(--side,var(--bg,#111))!important;
  }
  html[data-ark-mobile-safe] body > header.top > .brand {
    grid-area:brand!important; display:flex!important; align-items:center!important;
    min-width:0!important; max-width:100%!important; margin:0!important;
    font-family:"Be Vietnam Pro",system-ui,sans-serif!important;
    font-size:16px!important; white-space:nowrap!important; gap:8px!important;
  }
  html[data-ark-mobile-safe] body > header.top > .brand svg {
    width:26px!important;height:26px!important; flex:none!important;
  }
  html[data-ark-mobile-safe] body > header.top > .nav-group {display:contents!important;}
  html[data-ark-mobile-safe] body > header.top .nav-group > #acct {
    grid-area:account!important; display:flex!important; width:100%!important;
    min-width:0!important; max-width:100%!important; height:auto!important;
    min-height:44px!important; max-height:none!important; margin:0!important;
    position:static!important; transform:none!important;
  }
  html[data-ark-mobile-safe] body > header.top #acct > :is(.chip,.gwrap) {
    width:100%!important; max-width:100%!important; min-width:0!important;
    display:flex!important; gap:8px!important; min-height:44px!important;
    height:auto!important; max-height:none!important; padding:6px 8px!important;
    box-sizing:border-box!important;
  }
  html[data-ark-mobile-safe] body > header.top #acct .who {
    flex:1 1 0!important; min-width:0!important; max-width:none!important;
    overflow:hidden!important; text-overflow:ellipsis!important; white-space:nowrap!important;
    font-size:13px!important;
  }
  html[data-ark-mobile-safe] body > header.top #acct .out {flex:none!important; min-height:32px!important; font-size:12px!important;}
  html[data-ark-mobile-safe] body > header.top .hdr-tools {
    grid-area:tools!important; display:flex!important; align-items:center!important;
    justify-content:flex-end!important; gap:6px!important; position:static!important;
    inset:auto!important; transform:none!important; width:auto!important; margin:0!important;
  }
  html[data-ark-mobile-safe] body > header.top .hdr-tools :is(#theme,#arkFileToolsOpen) {
    box-sizing:border-box!important; width:44px!important; min-width:44px!important; max-width:44px!important;
    height:44px!important; min-height:44px!important; max-height:44px!important;
    padding:0!important; display:grid!important; place-items:center!important; flex:none!important;
  }
  html[data-ark-mobile-safe] body > header.top .hdr-tools #arkFileToolsOpen > span {display:none!important;}
  html[data-ark-mobile-safe] body > header.top .hdr-tools #arkFileToolsOpen > svg {width:20px!important;height:20px!important;}
  /* Keep the real router buttons mounted, but not in the mobile layout. */
  html[data-ark-mobile-safe] body > header.top #modeMenu,
  html[data-ark-mobile-safe] body > header.top #modesBox {
    display:none!important;position:absolute!important;inset:0 auto auto 0!important;
    width:0!important;height:0!important;min-width:0!important;min-height:0!important;
    max-width:0!important;max-height:0!important;margin:0!important;padding:0!important;
    overflow:hidden!important;visibility:hidden!important;clip-path:inset(50%)!important;
    pointer-events:none!important;
  }
  html[data-ark-mobile-safe] body > header.top > #arkMobileNavV6 {
    grid-area:modes!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;box-sizing:border-box!important;padding:4px!important;margin:0!important;
    position:static!important;inset:auto!important;transform:none!important;
    min-width:0!important;width:100%!important;max-width:100%!important;
    min-height:0!important;height:auto!important;max-height:none!important;align-self:start!important;
    background:var(--raise,#232327);border:1px solid var(--line,#34343c);border-radius:12px;
  }
  html[data-ark-mobile-safe] body > header.top > #arkMobileNavV6:empty {display:none!important}
  #arkMobileNavV6 > button {
    appearance:none!important;display:flex!important;justify-content:center!important;align-items:center!important;
    position:static!important;inset:auto!important;transform:none!important;
    height:auto!important;min-height:44px!important;max-height:none!important;min-width:0!important;width:100%!important;
    padding:7px 8px!important;margin:0!important;border:1px solid transparent!important;border-radius:8px!important;
    font:600 13px/1.4 "Be Vietnam Pro",system-ui,sans-serif!important;
    color:var(--ink,#eee)!important;background:transparent!important;white-space:normal!important;
    touch-action:manipulation!important;cursor:pointer;box-shadow:none!important;
  }
  #arkMobileNavV6 > button[aria-pressed=true]{background:var(--accent,#3478ee)!important;color:var(--on-accent,#fff)!important}
  #arkMobileNavV6 > button:disabled{opacity:.5!important;cursor:default}
  #arkMobileNavV6 > button:focus-visible{outline:2px solid var(--accent,#3478ee);outline-offset:1px}
  html[data-ark-mobile-safe].ark-mobile-safe:not(.ark-connections-active) #shell:not([hidden]) {
    display:flex!important; flex-direction:column!important; gap:0!important;
    position:relative!important; inset:auto!important; transform:none!important;
    min-width:0!important; width:100%!important; max-width:100%!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    overflow:visible!important; touch-action:auto!important; margin:0!important;
    box-sizing:border-box!important;
  }
  html[data-ark-mobile-safe].ark-mobile-safe:not(.ark-connections-active) #shell:not([hidden]) > :is(.side,#workspace) {
    position:relative!important; inset:auto!important; transform:none!important;
    width:100%!important; min-width:0!important; max-width:100%!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    flex:0 0 auto!important; overflow:visible!important; touch-action:auto!important;
    box-sizing:border-box!important; margin:0!important; padding:16px 12px!important;
  }
  html[data-ark-mobile-safe].ark-mobile-safe #shell :is(.form,.toolbar,.chips,.ftabs) {min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;}
  html[data-ark-mobile-safe].ark-mobile-safe #shell :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select) {font-size:16px!important;max-width:100%!important;box-sizing:border-box!important;}
  html[data-ark-mobile-safe].ark-mobile-safe #shell :is(pre,table) {max-width:100%;overflow-x:auto;}
  html[data-ark-mobile-safe].ark-mobile-safe #shell :is(img,video,canvas) {max-width:100%;}
  html[data-ark-mobile-safe].ark-mobile-safe #shell #heading {margin-top:0!important;}
  html[data-ark-mobile-safe].ark-mobile-safe.ark-connections-active #shell,
  html[data-ark-mobile-safe].ark-mobile-safe :is(#shell,#arkIndexConnectionsPanel)[hidden],
  html[data-ark-mobile-safe] body > header.top #modesBox > :is([hidden],[aria-hidden="true"],[data-ark-tab-hidden-v2="1"]),
  html[data-ark-mobile-safe] body > header.top :is(#arkFileToolsOpen,#acct,.hdr-tools)[hidden] {display:none!important;}
  html[data-ark-mobile-safe] body > header.top #modesBox[hidden] {display:none!important;}
  /* Root is the sole vertical scroll owner on mobile. Avoid inherited desktop locks. */
  html[data-ark-mobile-safe].ark-mobile-safe.ark-mobile-v6-flow {overflow-y:auto!important;scroll-behavior:auto!important;overscroll-behavior-y:auto!important;touch-action:auto!important;}
  html[data-ark-mobile-safe].ark-mobile-safe.ark-mobile-v6-flow > body {overflow-y:visible!important;overscroll-behavior-y:auto!important;touch-action:auto!important;}
  html[data-ark-mobile-safe].ark-mobile-v6-flow #shell:not([hidden]) > :is(.side,#workspace) {overscroll-behavior-y:auto!important;}

}
/* /ARK_MOBILE_FLOW_V6 */

@media(min-width:901px){#arkMobileNavV6{display:none!important}}
