:root {
  --black: #101010;
  --white: #fff;
  --gray: #aaa;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

main { width: min(360px, calc(100% - 40px)); }

h1 {
  margin: 0 0 40px;
  font-size: 52px;
  letter-spacing: -3px;
  text-align: center;
}

form { display: grid; gap: 12px; }

input, button {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  text-align: center;
}

input {
  border: 1px solid var(--gray);
  background: var(--black);
  color: var(--white);
}

button, #cash-nav, #back-home {
  background: var(--white);
  color: var(--black);
  font-weight: 600;
  cursor: pointer;
}

#message {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

#signout {
  position: fixed;
  top: 16px;
  right: 16px;
  width: auto;
}

#cash-nav, #back-home {
  position: fixed;
  top: 16px;
  left: 16px;
  padding: 16px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.balances {
  display: grid;
  justify-items: center;
  gap: 16px;
}

#available {
  color: var(--white);
  font-size: 40px;
  font-weight: 700;
}

#cashout {
  width: auto;
  padding: 12px 20px;
  font-size: 14px;
  white-space: nowrap;
}

.pending {
  margin: 8px 0 0;
  color: var(--gray);
  font-size: 14px;
}

.pending strong {
  color: var(--gray);
  font-weight: 500;
  margin-left: 8px;
}
