.app-footer,
.study-footer {
  flex: 0 0 3.5rem;
  margin-top: auto;
  height: 3.5rem;
  min-height: 3.5rem;
  max-height: 3.5rem;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-navbar-bg, var(--color-bg));
  overflow: hidden;
}

.app-footer .container,
.study-footer .container {
  width: 100%;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-footer p,
.study-footer p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 576px) {
  .app-footer,
  .study-footer {
    flex-basis: 4rem;
    height: 4rem;
    min-height: 4rem;
    max-height: 4rem;
  }

  .app-footer .container,
  .study-footer .container,
  .app-footer p,
  .study-footer p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

.page-shell,
.landing-shell,
.admin-shell,
.study-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-shell > .user-main,
.landing-shell > .landing-main,
.admin-shell > .admin-main,
.study-shell > .study-main {
  flex: 1 0 auto;
}
