:root {
  --bg: #080810;
  --surface: #101018;
  --line: #333;
  --text: #d8e0ea;
  --muted: #8a96a8;
  --accent: #a8b4c4;
  --font: "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --w: 28rem;
  --h: 2.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(88px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}

.glow--a {
  width: min(28rem, 75vw);
  height: min(28rem, 75vw);
  top: -6rem;
  left: -5rem;
  background: radial-gradient(circle, rgba(168, 180, 196, 0.2) 0%, transparent 68%);
}

.glow--b {
  width: min(24rem, 65vw);
  height: min(24rem, 65vw);
  right: -4rem;
  bottom: 18%;
  background: radial-gradient(circle, rgba(90, 110, 130, 0.16) 0%, transparent 70%);
}

.top,
main {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 6.75rem;
}

.auth-home {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.top nav {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.brand strong {
  font-weight: 500;
}

.mark {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  background: linear-gradient(135deg, #5a6e82 0%, #3a4a5a 100%);
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 2rem 1.25rem 3rem;
}

.sheet {
  width: min(100%, var(--w));
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.slab {
  flex: none;
  min-width: 0;
  width: 100%;
  height: var(--h);
  padding: 0.7rem 1rem;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: center;
  outline: none;
  box-shadow: none;
}

.slab:focus,
.slab:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: #555;
}

button.slab {
  cursor: pointer;
}

button.slab[type="submit"],
#go {
  background: var(--accent);
  color: #080810;
  border-color: var(--accent);
}

button.slab.on {
  border-color: #555;
  color: var(--text);
  background: #181820;
}

.file {
  display: grid;
  place-items: center;
  cursor: pointer;
  margin: 0;
}

.file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

input.slab::placeholder {
  color: var(--muted);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border: 1px solid var(--line);
  outline: none;
  box-shadow: inset 0 0 0 1000px var(--surface);
  transition: background-color 9999s ease-out;
}

.text {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
  outline: none;
  box-shadow: none;
}

.err {
  margin: 0.75rem 0 0;
  color: #f0a0a0;
  font-size: 0.875rem;
}

.bar-wrap {
  height: 2px;
  background: var(--line);
}

.bar {
  height: 2px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.queue {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  text-align: left;
}

.queue li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--h);
  padding: 0 0.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8125rem;
}

.queue b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue em {
  font-style: normal;
  color: var(--muted);
}

.queue button {
  height: var(--h);
  width: var(--h);
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
