:root {
  --site-filing-height: 44px;
  --site-filing-space: calc(var(--site-filing-height) + env(safe-area-inset-bottom, 0px));
}

body {
  padding-bottom: var(--site-filing-space);
}

body > #app .app-shell {
  height: calc(100vh - var(--site-filing-space));
  height: calc(100dvh - var(--site-filing-space));
}

body > #app .login-page,
body > #app .mobile-shell {
  min-height: calc(100vh - var(--site-filing-space));
  min-height: calc(100dvh - var(--site-filing-space));
}

body > #app .mobile-main {
  min-height: calc(100dvh - 170px - var(--site-filing-space));
}

body > #app .mobile-bottom-nav {
  bottom: var(--site-filing-space);
}

#site-filing {
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: var(--site-filing-space);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e7ef;
  background: #ffffff;
  color: #526076;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0;
}

#site-filing > span,
#site-filing > a {
  white-space: nowrap;
}

#site-filing > a {
  color: #526076;
  text-decoration: none;
  text-underline-offset: 3px;
}

#site-filing > a:hover,
#site-filing > a:focus-visible {
  color: #172033;
  text-decoration: underline;
}

#site-filing > a:focus-visible {
  outline: 2px solid #2878ff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  :root {
    --site-filing-height: 64px;
  }

  #site-filing {
    flex-direction: column;
    gap: 0;
  }
}
