.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 32%),
    linear-gradient(180deg, #f3f7fb 0%, #e7edf5 100%);
  color: #102033;
}

.app-shell-main {
  width: min(1440px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 32px 0 40px;
}

.app-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.app-shell-brand h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.app-shell-brand p {
  margin: 0;
  color: #5b6b80;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.app-shell-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-shell-userinfo {
  text-align: right;
}

.app-shell-userinfo strong,
.app-shell-userinfo span {
  display: block;
}

.app-shell-userinfo span {
  color: #5b6b80;
  font-size: 0.9rem;
}

.app-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.app-shell-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.app-shell-nav a.active {
  border-color: rgba(21, 94, 239, 0.28);
  background: linear-gradient(135deg, #0f6cde, #1d4ed8);
  color: #fff;
}

.app-shell-card {
  overflow: hidden;
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.header-primary-nav a.nav-pill {
  text-decoration: none;
}

@media (max-width: 900px) {
  .app-shell-main {
    width: min(100vw - 24px, 1440px);
    padding-top: 18px;
  }

  .app-shell-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-shell-user {
    width: 100%;
    justify-content: space-between;
  }

  .app-shell-userinfo {
    text-align: left;
  }
}
