.gate {
  color: var(--band-ink);
}

.gate__open {
  list-style: none;
  cursor: pointer;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.42;
  user-select: none;
}

.gate__open::-webkit-details-marker {
  display: none;
}

.gate__open::marker {
  content: "";
}

.gate__open:hover,
.gate[open] > .gate__open {
  opacity: 0.88;
}

.gate__open:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.gate__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  box-sizing: border-box;
  width: min(15.5rem, calc(100vw - 2.5rem));
  padding: 0.9rem 0.9rem 0.85rem;
  background: var(--card);
  color: var(--card-ink);
  border: 1px solid var(--card-line);
  border-radius: 0.75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.gate__who,
.gate__note {
  margin: 0 0 0.7rem;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.35;
}

.gate__change {
  margin: 0 0 0.75rem;
}

.gate__change > summary {
  list-style: none;
  cursor: pointer;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  user-select: none;
}

.gate__change > summary::-webkit-details-marker {
  display: none;
}

.gate__change > summary::marker {
  content: "";
}

.gate__change > summary:hover,
.gate__change[open] > summary {
  opacity: 0.88;
}

.gate__change > summary:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.gate__change form {
  margin-top: 0.7rem;
}

.gate__role {
  margin: -0.4rem 0 0.7rem;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.gate__note {
  color: var(--card-ink);
}

.gate__field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0 0 0.6rem;
}

.gate__field span {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.gate__field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--card-line);
  border-radius: 0.4rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
}

.gate__field input:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 1px;
}

.gate__submit {
  width: 100%;
  margin: 0.15rem 0 0;
  padding: 0.48rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--card-ink);
  color: var(--card);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.gate__submit:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}
