/* Сброс и базовая типографика. */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  font: 400 15px/1.5 -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* Корневой контейнер приложения: шапка с прокруткой + фиксированная
   нижняя панель, ровно как в макете. */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#screen {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

/* Пока приложение открывается и проверяет вход. */
#boot {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13.5px;
}
