[hidden] {
  display: none !important;
}

.back-link {
  color: #d8ff9d;
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.access-main {
  padding: 72px 0 92px;
}

.access-hero {
  max-width: 780px;
}

.access-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.access-hero > p:last-child {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.access-notice {
  margin-top: 38px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.access-notice.error {
  border-color: rgba(255, 125, 113, 0.4);
  color: #ffb1a8;
}

.access-list {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.access-card {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(190px, 0.55fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
}

.access-product {
  display: grid;
  gap: 7px;
}

.access-product strong {
  font-size: 1.25rem;
}

.access-product span,
.access-product a,
.access-control small {
  color: var(--muted);
  font-size: 0.75rem;
}

.access-product a {
  width: max-content;
  color: #d8ff9d;
}

.access-control {
  display: grid;
  gap: 7px;
}

.access-control label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.access-control select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: #0d0d10;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

.access-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.access-actions button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: #b8ff5c;
  color: #111;
  font: 800 0.76rem inherit;
  cursor: pointer;
}

.access-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.save-state {
  min-height: 16px;
  color: #d8ff9d;
  font-size: 0.7rem;
}

.access-mode {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 5px 8px;
  color: #111 !important;
  font-size: 0.62rem !important;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.access-mode.public {
  background: #b8ff5c;
}

.access-mode.owner {
  background: #ffcf5c;
}

@media (max-width: 760px) {
  .access-main {
    padding-top: 52px;
  }

  .access-card {
    grid-template-columns: 1fr;
  }

  .access-actions {
    justify-items: stretch;
  }

  .access-actions button {
    width: 100%;
  }

  .topbar {
    height: auto;
    min-height: 82px;
    padding: 16px 0;
  }
}
