.sign-out-form { margin: 0; }
.sign-out-button { white-space: nowrap; }

@media (max-width: 700px) {
  .topbar > .topbar-controls { display: flex; }
}

.access-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #f6f3ed;
  color: #252e28;
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.access-card,
.access-card * {
  box-sizing: border-box;
}

.access-card {
  width: min(100%, 420px);
  min-width: 0;
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid #d6ded4;
  border-radius: 22px;
  background: #fffdfa;
  box-shadow: 0 12px 40px #355e4e10;
}

.access-heading { text-align: center; }
.access-heading img { display: block; margin: 0 auto 18px; }
.access-heading h1 {
  margin: 0 0 26px;
  font: 650 27px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.02em;
}

.access-form {
  display: grid;
  gap: 8px;
}

.access-form label { font-weight: 600; }

.access-form input,
.access-form button {
  border: 1px solid #aabbb0;
  border-radius: 12px;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  color: inherit;
  background: #fffdfa;
  font: inherit;
}

.access-form input { margin-bottom: 11px; }

.access-form button {
  margin-top: 5px;
  border-color: #355e4e;
  color: #fffdfa;
  background: #355e4e;
  cursor: pointer;
  font-weight: 650;
}

.access-form button:hover { background: #284d3e; }

.access-form :focus-visible {
  outline: 2px solid #355e4e;
  outline-offset: 3px;
}

.access-error {
  margin: 0 0 8px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #893d32;
  background: #f8e9e4;
}

.access-error:empty { display: none; }

.access-note,
.access-status {
  margin: 16px 0 0;
  color: #4c6054;
  font-size: .9375rem;
  overflow-wrap: anywhere;
}

.access-heading h1 { margin-bottom: 16px; }
.access-heading + .access-form { margin-top: 24px; }
.access-status + .access-form { margin-top: 20px; }
.access-note a { color: #355e4e; text-underline-offset: 3px; }

.access-form button:disabled {
  cursor: wait;
  opacity: .7;
}

.access-page [hidden] { display: none !important; }

.access-return {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  margin-top: 8px;
  color: #355e4e;
  font-weight: 600;
  font-size: .9375rem;
  text-underline-offset: 3px;
}
.access-return:focus-visible { outline: 2px solid #355e4e; outline-offset: 3px; }
