body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

#app { flex: 1; }

#app .login-page,
#app .app-shell {
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
}

.site-footer {
  flex-shrink: 0;
  padding: 20px 16px;
  border-top: 1px solid var(--gs-line, #292f35);
  color: var(--gs-muted, #9aa4ad);
  background: var(--gs-bg, #080a0c);
  font-size: 13px;
  line-height: 23px;
  text-align: center;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--gs-cyan, #63d6d0); text-decoration: underline; }

@media (max-width: 767px) {
  #app .app-shell > .el-container { min-height: calc(100dvh - 136px); }
  #app:has(.app-shell.is-mobile) + .site-footer {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
}
