:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #080f1b;
  color: #f2f7fc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1000px;
  margin: auto;
  padding: 30px;
}
header {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #294156;
  padding-bottom: 24px;
}
header strong {
  color: #56dfce;
  font-size: 28px;
}
header span {
  font-size: 12px;
  letter-spacing: 2px;
  color: #99afc2;
}
header .environment-banner {
  border: 1px solid #e8bd79;
  border-radius: 999px;
  padding: 6px 10px;
  color: #f5d59e;
  background: #4b361c;
  font-weight: 750;
  letter-spacing: 1px;
}
header .version-banner {
  border: 1px solid #36566e;
  border-radius: 999px;
  padding: 5px 9px;
  color: #b9cada;
  background: #101d2c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
  white-space: nowrap;
}
header button {
  margin-left: auto;
}
.snapshot-status {
  display: grid;
  grid-template-columns: auto minmax(180px, auto) auto auto;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid #2a5268;
  border-radius: 13px;
  background: radial-gradient(circle at top right, #1e766f38, transparent 55%), linear-gradient(135deg, #122337, #0d1a2a);
  box-shadow: 0 9px 24px #02081266, inset 0 1px #ffffff0d;
}
.snapshot-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #57dacb78;
  border-radius: 11px;
  background: #173d4b;
  color: #66e3d4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}
.snapshot-copy { display: grid; gap: 2px; }
header .snapshot-copy .snapshot-kicker {
  color: #56dfce;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
header .snapshot-copy strong {
  color: #f2f7fc;
  font-size: 13px;
  line-height: 1.25;
}
header .snapshot-copy small {
  color: #91abc0;
  font-size: 10px;
  line-height: 1.35;
}
header .snapshot-count {
  padding: 5px 8px;
  border: 1px solid #2e6a70;
  border-radius: 999px;
  background: #12333d;
  color: #73e3d7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;
  white-space: nowrap;
}
header .snapshot-count::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #55dfad;
  box-shadow: 0 0 0 3px #55dfad1f;
}
.snapshot-status .snapshot-changes {
  min-height: 30px;
  margin-left: 0;
  padding: 6px 9px;
  border-color: #397073;
  background: #173e46;
  color: #82eee2;
  font-size: 10px;
  white-space: nowrap;
}
header #logout { margin-left: 0; }
.eyebrow {
  color: #56dfce;
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 36px;
}
h1 {
  font-size: 40px;
  letter-spacing: -1px;
}
h2 {
  margin-top: 32px;
}
p,
small {
  color: #afc3d5;
  line-height: 1.6;
}
#login {
  max-width: 440px;
  margin: 60px auto;
}
form {
  display: grid;
  gap: 18px;
}
#account-form {
  grid-template-columns: 1fr 1fr;
  padding: 24px;
  background: #142438;
  border-radius: 12px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}
input,
select,
button {
  font: inherit;
  padding: 12px;
  border-radius: 7px;
  border: 1px solid #34516b;
  background: #142438;
  color: #f2f7fc;
  min-width: 0;
}
button {
  cursor: pointer;
  background: #56dfce;
  color: #082329;
  font-weight: 650;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #56dfce;
  outline-offset: 3px;
}
.notice {
  border: 1px solid #365951;
  padding: 18px;
  border-radius: 9px;
  background: #133132;
  line-height: 1.6;
}
.person {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #294156;
}
.person div {
  flex: 1;
  overflow-wrap: anywhere;
}
.person small {
  display: block;
}
.person button {
  background: transparent;
  color: #e8bd79;
}
.person .edit {
  color: #56dfce;
}
#status {
  color: #e8bd79;
}
footer {
  padding: 40px 0;
  color: #99afc2;
  font-size: 12px;
}
body[data-theme="light"] {
  color-scheme: light;
  background: #9eacb7;
  color: #0b2236;
}
body[data-theme="light"] header > strong,
body[data-theme="light"] header .snapshot-copy .snapshot-kicker { color: #06433f; }
body[data-theme="light"] header > span:not(.environment-banner):not(.version-banner) { color: #29485b; }
body[data-theme="light"] header {
  border-color: #8295a2;
}
body[data-theme="light"] header .version-banner {
  border-color: #8299a8;
  background: #c7d2d9;
  color: #234158;
}
body[data-theme="light"] .snapshot-status {
  border-color: #839eae;
  background: radial-gradient(circle at top right, #30aa9f30, transparent 55%), linear-gradient(135deg, #d4dfe4, #c1cfd7);
  box-shadow: 0 8px 20px #243f552e, inset 0 1px #ffffffa6;
}
body[data-theme="light"] .snapshot-mark {
  border-color: #3e9d97;
  background: #b8dcd9;
  color: #075f5a;
}
body[data-theme="light"] header .snapshot-copy strong { color: #071d30; }
body[data-theme="light"] header .snapshot-copy small { color: #37576d; }
body[data-theme="light"] header .snapshot-count {
  border-color: #669a98;
  background: #c3dfdc;
  color: #064f4b;
}
body[data-theme="light"] .snapshot-status .snapshot-changes {
  border-color: #5e9896;
  background: #b8d8d7;
  color: #07534f;
}
body[data-theme="light"] p,
body[data-theme="light"] small,
body[data-theme="light"] footer {
  color: #3c586d;
}
body[data-theme="light"] input,
body[data-theme="light"] select {
  border-color: #8fa6b5;
  background: #d2dce2;
  color: #0b2236;
}
body[data-theme="light"] #account-form,
body[data-theme="light"] .auth-panel {
  border-color: #9eafbb;
  background: #c4d0d7;
  box-shadow: 0 16px 45px #38536a1c;
}
body[data-theme="light"] .person,
body[data-theme="light"] .auth-welcome-note,
body[data-theme="light"] .auth-signup,
body[data-theme="light"] #auth-progress,
body[data-theme="light"] .code-help {
  border-color: #c4d1db;
}
body[data-theme="light"] #login input {
  border-color: #8fa6b5;
  background: #d4dde2;
  color: #0b2236;
}
body[data-theme="light"] #login input[readonly],
body[data-theme="light"] .pending-next {
  background: #d0dbe2;
  color: #0b2236;
}
body[data-theme="light"] #login .auth-secondary {
  border-color: #8ca4b6;
  color: #173149;
}
body[data-theme="light"] #login .auth-secondary:hover {
  background: #e5eef4;
}
body[data-theme="light"] #auth-status:not([hidden]) {
  background: #fff2dc;
  color: #704719;
}
[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    padding: 20px;
  }
  #account-form {
    grid-template-columns: 1fr;
  }
  .person {
    flex-wrap: wrap;
  }
  header > span:not(.environment-banner):not(.version-banner) {
    display: none;
  }
  header { flex-wrap: wrap; gap: 12px; }
  header .snapshot-status {
    order: 3;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-left: 0;
  }
  header .snapshot-status .snapshot-mark { grid-row: 1 / 3; }
  header .snapshot-status .snapshot-copy { grid-column: 2 / 4; }
  header .snapshot-status .snapshot-count { grid-column: 2; }
  header .snapshot-status .snapshot-changes { grid-column: 3; justify-self: end; }
  header .snapshot-status span { display: grid; }
  header #logout { margin-left: auto; }
  h1 {
    font-size: 32px;
  }
}
