.phone {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(circle at 24% 0%, rgba(37,99,235,.13), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(245,181,27,.16), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
  box-shadow: none;
}
.screen {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 18px 16px calc(104px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom));
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
}
.screen::-webkit-scrollbar { display: none; }
.screen.no-footer { padding-bottom: 18px; }
.page { animation: tabIn .22s ease both; }
.page-header { margin-bottom: 14px; }
.page-title { margin: 0; font-size: 22px; line-height: 1.08; letter-spacing: 0; }
.page-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.bottom-tabs {
  position: fixed;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 7px;
  border-radius: 25px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(37,99,235,.12);
  box-shadow: 0 18px 38px rgba(15,23,42,.12);
}
.bottom-tabs.hidden { display: none; }
.tab {
  border: 0;
  border-radius: 16px;
  padding: 7px 2px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.tab .ico { display: block; font-size: 16px; margin-bottom: 3px; }
.tab.active {
  color: #ffffff;
  background: linear-gradient(145deg, var(--blue), var(--ai));
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

@media (pointer: coarse), (max-width: 520px) {
  .screen { overscroll-behavior: contain; }
  .bottom-tabs {
    background: rgba(255,255,255,.96);
    backdrop-filter: none;
    box-shadow: 0 10px 24px rgba(15,23,42,.10);
  }
  .tab { transition: background .12s ease, color .12s ease; }
}
