.screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max-w-app);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--sp-6) + var(--safe-top)) var(--sp-5) calc(var(--sp-6) + var(--safe-bottom));
  position: relative;
}

.screen--wide { max-width: var(--max-w-wide); }

.screen__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  flex-shrink: 0;
}

.screen__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-5);
}

.screen__footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  flex-shrink: 0;
}

.stack { display: flex; flex-direction: column; }
.stack-2 { gap: var(--sp-2); }
.stack-3 { gap: var(--sp-3); }
.stack-4 { gap: var(--sp-4); }
.stack-5 { gap: var(--sp-5); }
.stack-6 { gap: var(--sp-6); }
.stack-8 { gap: var(--sp-8); }

.row { display: flex; flex-direction: row; align-items: center; }
.row-2 { gap: var(--sp-2); }
.row-3 { gap: var(--sp-3); }
.row-4 { gap: var(--sp-4); }
.row-between { justify-content: space-between; }
.row-center { justify-content: center; }
.row-wrap { flex-wrap: wrap; }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.text-left { text-align: left; }

.flex-1 { flex: 1; }
.w-full { width: 100%; }

.mt-auto { margin-top: auto; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }

@media (min-width: 640px) {
  .screen { padding-left: var(--sp-6); padding-right: var(--sp-6); }
}