.site-footer {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  padding: 12px 16px;
  color: #667085;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.site-footer a {
  display: inline-block;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.shell > .main {
  display: flex;
  flex-direction: column;
}

.shell > .main > .main-inner {
  flex: 1;
}

body.login-page {
  flex-direction: column;
  gap: 16px;
}

.login-page > .login-shell {
  flex-shrink: 0;
  margin-block: auto;
}

.h5-body,
.h5-login-body {
  display: flex;
  flex-direction: column;
}

.h5-body > .h5-main {
  flex: 1;
}

.h5-login-body > .h5-login-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
}

.ai-portal-body--auth .ai-portal-shell {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.ai-portal-body--app .ai-portal-shell > .ai-main {
  overflow-y: auto;
}

.ai-portal-body--auth .site-footer,
html[data-ai-theme="dark"] .ai-portal-body .site-footer {
  color: #aab4c4;
}

.h5-body > .site-footer {
  color: var(--h5-muted, #667085);
}

html[data-ai-embedded="1"] .ai-portal-shell .site-footer {
  display: none;
}
