.sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  animation: sheet-fade 200ms var(--ease-in) both;
}

.sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - var(--safe-top) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 18px 20px calc(24px + var(--safe-bottom));
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-sheet);
  animation: sheet-up 260ms var(--ease-in) both;
}

.sheet:focus {
  outline: none;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet__close {
  flex: none;
}

.sheet__title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sheet__title .name {
  font-weight: 700;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: none;
  font-size: var(--fs-body);
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.option .icon {
  width: 19px;
  height: 19px;
  color: var(--text-soft);
}

.option__value {
  margin-left: auto;
  color: var(--text-soft);
  font-size: 14px;
}

.option--danger,
.option--danger .icon {
  color: var(--red-deep);
}

.option[aria-checked='true'] {
  font-weight: 600;
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

@keyframes sheet-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
