:root {
  color-scheme: light;
}

.app-body {
  background: var(--bs-tertiary-bg);
}

.app-shell {
  display: grid;
  min-height: 100vh;
}

.app-sidebar {
  background: #162333;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
}

.app-brand {
  color: #fff;
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
  text-decoration: none;
}

.app-sidebar .nav-link {
  color: #dbe7f3;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link:focus {
  background: #29435e;
  color: #fff;
}

.app-navigation__toggle {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 1rem;
}

.app-navigation__footer {
  margin-top: auto;
}

.app-content {
  min-width: 0;
}

.app-content__inner {
  padding: 1.5rem;
}

.app-content--centered {
  align-items: center;
  display: flex;
  justify-content: center;
}

.app-content--centered .app-content__inner {
  max-width: 28rem;
  width: 100%;
}

.app-content--centered .app-page-header {
  justify-content: center;
  text-align: center;
}

.app-content--centered .app-form {
  max-width: none;
}

.app-page-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.app-page-header h1 {
  margin: 0;
}

.app-form {
  max-width: 38rem;
}

.app-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.inline-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-navigation .button_to {
  margin: 0;
}

.app-navigation .btn {
  text-align: left;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 991.98px) {
  .app-navigation__input:not(:checked) ~ nav {
    display: none;
  }
}

@media (min-width: 992px) {
  .app-shell--authenticated {
    grid-template-columns: 17rem minmax(0, 1fr);
  }

  .app-sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
  }

  .app-navigation__toggle {
    display: none;
  }

  .app-navigation nav {
    display: flex;
    flex: 1;
  }

  .app-navigation {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  .app-content__inner {
    padding: 2rem;
  }
}
