:root {
  color-scheme: light;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  background: #F2F2F7;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  color: #1C1C1E;
  overscroll-behavior-y: none;
}

a { color: #34C759; text-decoration: none; }

::-webkit-scrollbar { display: none; }

#app {
  position: relative;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #F2F2F7;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
}

.screen {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.bottom-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #F2F2F7 32%);
}

.press98:active { transform: scale(.98); }
.press97:active { transform: scale(.97); }
.press96:active { transform: scale(.96); }
.press-row:active { background: #E5E5EA !important; }

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
}
