/* ============================================
   App shell — topbar, nav, footer
   ============================================ */

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

.topbar {
  height: 76px;
  padding: 0 clamp(20px,4vw,62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245,247,251,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11,18,32,.07);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
  box-shadow: 0 8px 20px rgba(11,18,32,.18);
}

.brand-mark span {
  color: var(--lime);
  font-weight: 950;
  font-size: 20px;
  transform: rotate(5deg);
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.brand-mark.small span {
  font-size: 15px;
}

.brand-copy {
  display: grid;
  text-align: left;
  line-height: 1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -.04em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 7px;
  padding: 5px;
  background: #e9edf4;
  border-radius: 14px;
}

.nav-link {
  border: 0;
  background: transparent;
  color: #5c6679;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 750;
}

.nav-link.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 9px rgba(11,18,32,.07);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  color: var(--ink);
}

.avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.view {
  max-width: 1500px;
  margin: 0 auto;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px clamp(24px,5vw,70px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.footer>div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer strong {
  color: var(--ink);
  font-size: 14px;
}

@media (max-width:800px) {
  .topbar {
      height: 68px;
      padding: 0 16px;
  }
  .brand-copy small,.main-nav {
      display: none;
  }
  .footer {
      display: grid;
  }
}

@media (max-width:520px) {
  .footer>div {
      flex-wrap: wrap;
  }
}
