.public-shell {
  background: var(--bg-body);
  min-height: 100vh;
}

.public-shell__header {
  background: color-mix(in srgb, var(--bg-card) 84%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 68%, transparent);
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.public-shell__container {
  margin-inline: auto;
  max-width: 1280px;
  padding-inline: 22px;
  width: 100%;
}

.public-shell__header-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  min-height: 68px;
}

.public-shell__brand {
  align-items: center;
  color: var(--t-base);
  display: inline-flex;
  gap: 11px;
  min-width: 0;
}

.public-shell__brand-mark {
  background: var(--primary);
  border-radius: 10px;
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
  height: 36px;
  overflow: hidden;
  place-items: center;
  width: 36px;
}

.public-shell__brand-mark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.public-shell__brand-copy {
  display: grid;
  line-height: 1.15;
}

.public-shell__brand-copy strong {
  font-size: 15px;
  font-weight: 900;
}

.public-shell__brand-copy small {
  color: var(--t-muted);
  font-size: 9px;
  letter-spacing: .1em;
}

.public-shell__nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.public-shell__nav a {
  border-radius: 8px;
  color: var(--t-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 11px;
}

.public-shell__nav a:hover,
.public-shell__nav a:focus-visible {
  background: var(--bg-hover);
  color: var(--t-base);
  outline: 0;
}

.public-shell__footer {
  color: var(--t-muted);
  padding: 24px 0 30px;
}

.public-shell__footer-inner {
  align-items: center;
  border-top: 1px solid var(--border-soft);
  display: flex;
  font-size: 12px;
  gap: 18px;
  justify-content: space-between;
  padding-top: 22px;
}

.public-shell__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.public-shell__footer a {
  color: var(--t-muted);
}

.public-shell__footer a:hover,
.public-shell__footer a:focus-visible {
  color: var(--primary);
}

.public-shell .auth-shell {
  min-height: calc(100vh - 138px);
}

@media (max-width: 720px) {
  .public-shell__container {
    padding-inline: 16px;
  }

  .public-shell__header-inner {
    min-height: 60px;
  }

  .public-shell__brand-copy small,
  .public-shell__nav a:first-child {
    display: none;
  }

  .public-shell__nav a {
    padding-inline: 8px;
  }

  .public-shell__footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

}
