:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #141416;
  --line: #26262a;
  --text: #f4f4f5;
  --muted: #9a9aa2;
  --hover: #1d1d21;
  --focus: #ffffff;
  --radius: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; }
h1 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--hover); border-color: #34343a; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn.wide { width: 100%; margin-top: 16px; }
.btn-google { background: #ffffff; color: #1f1f1f; border-color: #ffffff; }
.btn-google:hover { background: #e9e9ea; border-color: #e9e9ea; }
.btn .g { width: 18px; height: 18px; }

/* Sign-in page */
.signin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 48px 16px;
}
.lockup { width: min(260px, 70vw); height: auto; }
.notice {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #f0c36a;
}
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom));
}

/* Signed-in placeholder */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--line);
}
.bar-brand img { height: 28px; width: auto; }
.bar .btn { min-height: 36px; font-size: 0.875rem; }
.app-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 16px;
}
.app .card { align-items: center; text-align: center; }
.card-mark { width: 56px; height: auto; margin-bottom: 12px; }
.email { font-weight: 500; overflow-wrap: anywhere; margin-bottom: 8px; }

@media (max-width: 420px) {
  .card { padding: 24px 18px; }
  .signin-main { gap: 32px; }
  .app-main { padding-top: 32px; }
}
