/* Beta access uses the main site's generated design tokens and artwork. */
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--ground,#0d0b11);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink,#efe9ee);
  font: 16px/1.6 var(--text,sans-serif);
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      58% 46% at 50% 38%,
      var(--glow-wine),
      transparent 100%),
    radial-gradient(
      42% 38% at 12% 16%,
      var(--glow-blue),
      transparent 100%),
    radial-gradient(
      46% 42% at 90% 88%,
      var(--glow-violet),
      transparent 100%),
    radial-gradient(
      36% 30% at 80% 8%,
      var(--glow-blue),
      transparent 100%),
    linear-gradient(
      180deg,
      var(--ground),
      var(--ground-2));
}
[hidden] {
  display: none !important;
}
button,
input {
  font: inherit;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  color: var(--ink);
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 5;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--sky);
  color: var(--on-button);
}
.skip:focus {
  top: 16px;
}
.night {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.night-scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .48;
  mask-image: linear-gradient(transparent 12%, #000 100%);
}
.night-moon {
  position: absolute;
  width: 64px;
  height: 64px;
  right: 7vw;
  top: 6vh;
  opacity: .8;
  image-rendering: pixelated;
}
.beta-main {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 36px 20px 24px;
}
.access-shell {
  width: 100%;
  max-width: 464px;
  min-width: 0;
}
.sentinel {
  position: relative;
  display: flex;
  justify-content: center;
  height: 96px;
  margin-bottom: -4px;
}
.sentinel img {
  height: 100%;
  width: auto;
  max-width: 100%;
  image-rendering: pixelated;
}
.access-card {
  padding: 30px 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--button);
  border-radius: 8px;
  box-shadow: 0 24px 60px #0006;
}
.brand {
  display: block;
  width: min(100%, 292px);
  min-height: 44px;
  margin-bottom: 20px;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--display,Georgia,serif);
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  font-size: clamp(34px, 6vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
h2 {
  font-size: 27px;
  line-height: 1.15;
}
.intro {
  margin: 14px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}
form {
  display: grid;
  gap: 16px;
  margin: 0;
}
.form-field {
  min-width: 0;
}
label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #1a171e;
}
input::placeholder {
  color: var(--muted);
  opacity: .8;
}
.code-input {
  font-family: var(--mono,monospace);
  font-size: 14px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  line-height: 1.4;
  font-weight: 650;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}
.primary {
  background: var(--button);
  color: var(--on-button);
}
.primary:hover {
  background: var(--accent);
  color: var(--on-button);
}
.secondary {
  background: var(--bg);
  border-color: var(--line-strong);
  color: var(--ink);
}
.secondary:hover {
  background: var(--raise);
  color: var(--ink);
}
.quiet {
  background: transparent;
  color: var(--muted);
}
.quiet:hover {
  color: var(--ink);
}
.danger {
  color: var(--accent);
  border-color: var(--line-strong);
  background: transparent;
}
.danger:hover {
  background: #3a2023;
}
.full {
  width: 100%;
}
button:disabled {
  opacity: .5;
  cursor: default;
}
body[aria-busy=true] button:disabled {
  cursor: progress;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 76px;
}
.peek {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  min-width: 64px;
  min-height: 46px;
  border: 0;
  border-radius: 0 6px 6px 0;
  color: var(--accent);
  background: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.recovery {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--accent);
  display: list-item;
  padding-block: 8px;
  font-size: 14px;
}
.help {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.recovery .help {
  margin: 8px 0 16px;
}
#enrollment .help {
  margin-bottom: 20px;
}
.path-options {
  display: grid;
  gap: 14px;
}
.path-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 18px 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  text-decoration: none;
}
.path-card:hover {
  background: var(--raise);
  border-color: var(--accent);
}
.path-number {
  font: 12px var(--mono,monospace);
  color: var(--accent);
}
.path-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}
.path-card strong + span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}
.path-arrow {
  color: var(--accent);
  font-size: 22px;
}
#onboarding > .help {
  margin-top: 18px;
}
.status {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.status[data-tone=error] {
  color: #f0d994;
  border-color: #9b8756;
  background: #2c2410;
}
.status:empty {
  margin: 0;
  padding: 0;
  border: 0;
}
#logout {
  margin-top: 16px;
}
.beta-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 22px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.beta-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
.beta-footer a:hover {
  color: var(--ink);
}
.beta-footer p {
  width: 100%;
  margin-top: 3px;
  font-size: 12px;
}
.invite-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.invite-panel h2 {
  margin-bottom: 20px;
}
.invite-panel form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.members-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 18px;
}
.members-heading .help {
  margin-top: 6px;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.member {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}
.member h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.member-meta {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.badge {
  align-self: start;
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.badge[data-state=active] {
  border-color: #406e51;
  color: #8fd4a4;
  background: #16301f;
}
.badge[data-state=revoked] {
  color: var(--muted);
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.member-actions .button {
  flex: 1;
}
.delivery-note {
  color: #f0d994;
  font-size: 13px;
  margin-bottom: 18px;
}
.empty-state {
  padding: 28px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}
#next-members {
  margin-top: 20px;
}
body[data-view=dashboard] .beta-main {
  align-items: start;
  padding-top: 48px;
}
body[data-view=dashboard] .access-shell {
  max-width: 1040px;
}
body[data-view=dashboard] .sentinel {
  display: none;
}
body[data-view=dashboard] .access-card {
  padding: 30px;
}
.guide-main {
  min-height: 100vh;
  padding: 48px 20px 24px;
}
.guide-shell {
  max-width: 760px;
  margin: auto;
}
.guide-card h1 {
  margin-top: 14px;
}
.guide-steps {
  display: grid;
  gap: 20px;
  padding-left: 24px;
  margin: 26px 0;
}
.guide-steps li {
  padding-left: 7px;
  color: var(--muted);
}
.guide-steps li::marker {
  color: var(--accent);
  font: 600 15px var(--mono,monospace);
}
.guide-steps strong {
  color: var(--ink);
}
code {
  font-family: var(--mono,monospace);
  color: var(--ink);
  font-size: .85em;
  overflow-wrap: anywhere;
}
.guide-note {
  margin: 24px 0;
  padding: 16px;
  border-left: 3px solid var(--sky);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
}
.noscript {
  position: relative;
  padding: 20px;
  text-align: center;
}
@media (max-width: 520px) {
  .beta-main {
    padding: 28px 16px 24px;
  }
  .access-card,
  body[data-view=dashboard] .access-card {
    padding: 24px 20px 20px;
  }
  .sentinel {
    height: 84px;
  }
  .night-moon {
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  .brand {
    max-width: 268px;
    margin-bottom: 18px;
  }
  .invite-panel {
    padding: 16px;
  }
  .invite-panel form {
    grid-template-columns: 1fr;
  }
  .members-heading {
    align-items: start;
  }
  .members-heading > button {
    width: 100%;
  }
  .guide-main {
    padding: 24px 16px;
  }
}
@media (max-width: 360px) {
  .access-card,
  body[data-view=dashboard] .access-card {
    padding: 22px 16px 18px;
  }
}
@media (max-height: 600px) {
  .beta-main {
    padding-top: 20px;
  }
  .sentinel {
    height: 64px;
  }
}
