/* =========================================================
   02-layout.css — Shell, Topbar, Grids, Spacing
========================================================= */

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 14px 180px;
  position: relative;
}

.people-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 14px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;

  background: linear-gradient(180deg, #0b1626, #0a1422);
  border-bottom: 1px solid rgba(120, 150, 200, 0.12);

  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255,255,255,0.04);
}

.topbar-main-row {
  max-width: 732px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-right: 0;
}

.topbar .icon-btn {
  justify-self: stretch;
  width: 44px;
  height: 44px;
  border-radius: 18px;
}

.topbar .theme-switch {
  justify-self: stretch;
  width: 44px;
  height: 44px;
  border-radius: 18px;
}

.topbar .topbar-mode-switch,
.topbar .mode-switch {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 44px;
}

.topbar .stats-bar {
  max-width: 732px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 14px;
}

.icon-btn {
  background: linear-gradient(180deg, #13243b, #0f1d31);
  border: 1px solid rgba(120, 150, 200, 0.15);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 6px 14px rgba(0,0,0,0.35);
}

.topbar .stats-bar {
  max-width: 732px;
  margin-left: auto;
  margin-right: auto;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.app-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 13px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 20px;
  font-weight: 900;
}

#menuBtn {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  color: #9fb6d9;
  text-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

#menuBtn.transfer-btn {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}