* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 15px;
}
button, input { font: inherit; color: inherit; }
input, textarea { -webkit-user-select: text; user-select: text; }
[hidden] { display: none !important; }
#app { min-height: 100%; }
.screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--tab-space);
}
.header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 4px;
  background: var(--bg);
}
.header h1 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}
.header-side, .back {
  width: 40px;
  height: 40px;
}
.back {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
}
.screen-body { flex: 1; }
.muted { color: var(--muted); }
.pad { padding: 24px 16px; text-align: center; }
h2, h3, p { margin: 0; }
