:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #f7f8fb;
  background: #080b10;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(47, 116, 255, 0.18), transparent 38rem),
    #080b10;
}

button,
a {
  font: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 2rem 1rem;
}

.card {
  width: min(100%, 31rem);
  padding: clamp(1.75rem, 6vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  background: rgba(16, 20, 29, 0.92);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 1rem;
  color: #91b5ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.summary {
  margin: 1.35rem 0 2rem;
  color: #aeb6c6;
  font-size: 1rem;
  line-height: 1.6;
}

.status,
.privacy,
.next-step,
.error {
  color: #aeb6c6;
  font-size: 0.88rem;
  line-height: 1.55;
}

.account-panel {
  display: grid;
  gap: 1rem;
}

button {
  min-height: 3.25rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.primary {
  border: 0;
  color: #08101f;
  background: #f8faff;
}

.primary:hover:not(:disabled) {
  background: #dce7ff;
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f7f8fb;
  background: transparent;
}

.identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.identity img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
}

.label,
.account-name,
.account-email,
.account-id {
  margin: 0;
}

.label {
  color: #8e98aa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-name {
  margin-top: 0.2rem;
  font-weight: 750;
}

.account-email {
  margin-top: 0.15rem;
  color: #aeb6c6;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.account-record {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
}

.session-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(145, 181, 255, 0.22);
  border-radius: 0.9rem;
  background: rgba(47, 116, 255, 0.06);
}

.session-state,
.session-message {
  margin: 0;
}

.session-state {
  margin-top: 0.3rem;
  font-weight: 750;
  text-transform: capitalize;
}

.session-message {
  margin-top: 0.3rem;
  color: #aeb6c6;
  font-size: 0.82rem;
  line-height: 1.45;
}

.session-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.session-actions button {
  min-height: 2.8rem;
}

.account-id {
  margin-top: 0.3rem;
  color: #dce7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.ready {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(70, 215, 139, 0.25);
  border-radius: 0.9rem;
  color: #9ceac0;
  background: rgba(70, 215, 139, 0.08);
  font-size: 0.84rem;
  font-weight: 650;
}

.ready-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #46d78b;
  box-shadow: 0 0 1rem rgba(70, 215, 139, 0.8);
}

.privacy,
.next-step {
  margin: 0;
}

.error {
  margin: 1rem 0 0;
  color: #ff9fa8;
}

.viewer-link {
  color: #8e98aa;
  font-size: 0.82rem;
  text-decoration: none;
}

.viewer-link:hover {
  color: #d8deea;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #76a6ff;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 30rem) {
  .card {
    border-radius: 1.15rem;
  }
}
