.access-main { max-width: 460px; }
.access-card {
  min-width: 0;
  padding: clamp(16px, 4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.access-status { margin: 0; color: var(--muted); }
.access-status:empty { display: none; }
.access-card:has(.access-progress:not([hidden])) .access-status,
.access-dashboard:has(.access-role-modal[open]) #loginStatus {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#loginForm { display: grid; gap: 14px; }
.access-field { display: grid; gap: 5px; }
.access-field label { font-weight: 700; }
.access-field input {
  width: 100%;
  min-height: 48px;
  padding: 8px 11px;
  font-size: 16px;
}
#loginBtn { min-height: 48px; margin-top: 2px; }
.access-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--danger-text);
  background: var(--danger-bg);
}
.access-progress {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 12px 0;
  text-align: center;
}
.access-progress p { margin: 0; color: var(--muted); font-weight: 700; }
.access-crest {
  display: block;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: #fff;
}
.access-ball {
  display: block;
  width: 42px;
  height: 42px;
  font: 29px/42px system-ui, sans-serif;
  text-align: center;
  animation: access-ball-spin 1.25s linear infinite;
}
@keyframes access-ball-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .access-ball { animation: none; } }
.access-role-modal {
  width: min(450px, calc(100% - 24px));
  max-height: min(90dvh, 680px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 16px 48px #140a16a0;
}
.access-role-modal::backdrop { background: #1c0e1aaa; }
.access-role-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: linear-gradient(120deg, var(--hero), var(--hero-end));
  color: var(--hero-text);
}
.access-role-heading h2 { margin: 0; line-height: 1.15; }
.access-role-heading p { margin: 3px 0 0; color: var(--hero-muted); }
.access-role-list { display: grid; gap: 6px; }
.access-role {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  color: var(--text);
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}
.access-role:is(:hover, :focus-visible) {
  border-color: var(--accent);
  color: var(--accent);
}
.access-google { text-align: center; }
.access-link-status:not(:empty) { margin-top: 10px; }
.access-role:disabled { opacity: .65; cursor: wait; }

body.access-dashboard:has(.access-splash:not([hidden])) {
  background: var(--hero);
}
.access-splash {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 26px 20px;
  background:
    radial-gradient(ellipse at 50% 22%, var(--hero-end) 0%, transparent 68%),
    linear-gradient(155deg, var(--hero), var(--page) 145%);
  color: var(--hero-text);
  text-align: center;
}
.access-splash-content { display: grid; gap: 14px; justify-items: center; }
.access-splash .access-crest {
  width: clamp(106px, 32vw, 136px);
  height: auto;
  aspect-ratio: 1;
  padding: 12px;
  border-color: #ffffff50;
  border-radius: 24px;
  box-shadow: 0 12px 36px #210e1a55;
}
.access-splash-title {
  margin: 0;
  font-size: clamp(1.6rem, 6vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -.025em;
}
.access-splash-loading {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--hero-muted);
  font-weight: 650;
}
.access-splash a { color: var(--hero-text); }
