.app-shell {
  width: min(430px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(251, 251, 253, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: none;
}

.top-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.main-view {
  flex: 1;
  min-height: 0;
  padding: 22px var(--page-pad) 110px;
}

.tabbar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: var(--tab-h);
  padding: 8px 10px 10px;
  background: rgba(251, 251, 253, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.tabbar button {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
}

.tabbar button span:first-child {
  font-size: 21px;
  line-height: 1;
}

.tabbar button.active {
  color: var(--blue);
  background: rgba(10, 132, 255, 0.1);
}

.page-title {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 20px;
}

.page-title h1 {
  font-size: 29px;
  line-height: 1.15;
}

.page-title p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 20px;
}
