:root {
  --ink: #15191d;
  --muted: #777e87;
  --line: #e9ebee;
  --paper: #f6f7f8;
  --blue: #3478ef;
  --ok: #319e70;
  --warn: #b45309;
  --bad: #c0392b;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #c8ced6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 2rem;
}

.desk-banner {
  font-size: 0.75rem;
  color: #3a4148;
  margin: 0 0 0.75rem;
  opacity: 0.85;
}

.phone {
  width: min(390px, 100%);
  background: #0b0d10;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.phone-notch {
  height: 28px;
  margin: 0 auto 8px;
  width: 120px;
  border-radius: 0 0 14px 14px;
  background: #000;
}

.phone-screen {
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.screen.hidden {
  display: none;
}

#screenSignIn {
  padding: 2rem 1.25rem 1.5rem;
  align-items: stretch;
  background: #fff;
}

.splash-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 1.5rem auto 0.75rem;
}

.brand {
  text-align: center;
  margin: 0;
  font-size: 1.5rem;
}

.sub {
  text-align: center;
  color: var(--muted);
  margin: 0.35rem 0 1rem;
  font-size: 0.9rem;
}

.center {
  text-align: center;
}

.small {
  font-size: 0.78rem;
}

.muted {
  color: var(--muted);
}

.warn {
  color: var(--warn);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
  margin: 0.4rem 0;
}

.google-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.5rem;
  min-height: 44px;
}

.otp-box {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.otp-box summary {
  cursor: pointer;
  margin-bottom: 0.5rem;
}

label,
.block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  margin-bottom: 0.55rem;
}

input,
textarea,
button,
.btn {
  font: inherit;
}

input,
textarea {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  align-items: center;
}

.row.wrap {
  flex-wrap: wrap;
}

.btn {
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn.ghost {
  background: transparent;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.log {
  margin: 0.4rem 0 0.8rem;
  padding: 0.55rem;
  background: #0f1419;
  color: #d7e0ea;
  border-radius: 10px;
  font-size: 0.68rem;
  max-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.log.tall {
  max-height: 220px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1rem 0.5rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.scroll {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1rem 5.5rem;
  background: var(--paper);
}

.h {
  font-size: 0.85rem;
  margin: 1rem 0 0.4rem;
}

.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 58px 1fr;
  align-items: center;
  justify-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.tabbar .z {
  width: 58px;
  height: 48px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 4px;
}

.check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.check li {
  display: flex;
  gap: 0.45rem;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.check li[data-state="pass"] {
  border-color: var(--ok);
  background: #f0faf5;
}

.check li[data-state="fail"] {
  border-color: var(--bad);
  background: #fdf2f2;
}

.check li[data-state="pending"] {
  color: var(--muted);
}

.check .mark {
  font-weight: 700;
  min-width: 1rem;
}
