/* Settings: an iOS bottom sheet of grouped glass lists. */

.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; z-index: 50;
  width: 100%; max-width: 560px; max-height: 92dvh;
  padding: 0; border: 0; border-radius: 30px 30px 0 0;
  background: rgba(248, 244, 238, .82);
  -webkit-backdrop-filter: blur(34px) saturate(1.8);
  backdrop-filter: blur(34px) saturate(1.8);
  box-shadow: 0 -10px 60px rgba(60, 44, 28, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
  color: var(--ink); overflow: hidden;
  transform: translateY(0);
  transition: transform .55s var(--ease), display .55s allow-discrete, overlay .55s allow-discrete;
}
.sheet:not([open]) { transform: translateY(105%); }
@starting-style { .sheet[open] { transform: translateY(105%); } }
.sheet::backdrop { background: rgba(42, 36, 30, .22); transition: background-color .45s ease, display .45s allow-discrete, overlay .45s allow-discrete; }
@starting-style { .sheet[open]::backdrop { background: rgba(42, 36, 30, 0); } }
@media (min-width: 700px) {
  .sheet { inset: 0; margin: auto; border-radius: 30px; max-height: 86dvh; }
}

.sheet-scroll { max-height: inherit; overflow-y: auto; padding: 8px 16px calc(var(--safe-b) + 28px); overscroll-behavior: contain; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(42, 36, 30, .2); margin: 0 auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-head h2 { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; margin: 0; }

.group-t { font-size: 13px; font-weight: 600; color: var(--muted); margin: 22px 4px 8px; }
.group { background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; box-shadow: 0 1px 2px rgba(60, 44, 28, .04); overflow: hidden; }
.group > * + * { border-top: 1px solid var(--line); }
.cell { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; }
.cell label { width: 88px; flex: none; font-size: 15px; }
.cell input[type="text"], .cell input[type="password"], .cell input[type="url"] {
  flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 8px 0; outline: none;
}
.cell input::placeholder { color: var(--muted); }
.cell .go { margin-left: auto; font-weight: 600; color: var(--accent-ink, #A64B22); min-height: 44px; padding: 0 4px; }
.cell .go[disabled] { opacity: .4; }
.help { font-size: 13px; color: var(--ink-2); margin: 8px 4px 0; line-height: 1.45; }
.help a { color: var(--accent-ink, #A64B22); font-weight: 600; }
.steps { margin: 8px 0 0; padding: 0 4px 0 22px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.steps li + li { margin-top: 4px; }
.msg { font-size: 13.5px; margin: 8px 4px 0; min-height: 1.2em; }
.msg.err { color: #A3321F; }
.msg.ok { color: #2F7A4F; }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.actions .btn { flex: 1; }
.file { position: relative; overflow: hidden; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.toggle { position: relative; width: 51px; height: 31px; flex: none; margin-left: auto; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: rgba(42, 36, 30, .16); transition: background-color .3s ease; }
.toggle span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .4s var(--ease); }
.toggle input:checked + span { background: #3E9A63; }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.sc-list .cell { font-size: 14.5px; }
.sc-list .who { flex: 1; min-width: 0; }
.sc-list .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-list .who span { font-size: 12.5px; color: var(--muted); }
.danger { color: #A3321F; font-weight: 600; width: 100%; text-align: left; min-height: 52px; padding: 0 14px; }
