#listPicker.list-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(4, 8, 18, .76);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  animation: list-picker-fade .18s ease-out;
}

html.modal-open, body.modal-open { overflow:hidden!important;overscroll-behavior:none!important; }
.dialog-page-locked { overflow:hidden!important;overscroll-behavior:none!important;pointer-events:none!important; }

#listPicker .list-picker {
  width: min(100%, 520px);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 18px calc(16px + env(safe-area-inset-bottom));
  border: 1px solid rgba(185, 165, 255, .22);
  border-radius: 26px 26px 20px 20px;
  color: #f7f8fc;
  background: radial-gradient(circle at 100% 0, rgba(139, 92, 246, .2), transparent 38%), linear-gradient(155deg, #1a2540, #101729 75%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .52);
  animation: list-picker-rise .24s cubic-bezier(.2, .8, .2, 1);
  overscroll-behavior: contain;
}

#listPicker .list-picker-grabber { width: 38px; height: 4px; margin: 0 auto 17px; border-radius: 9px; background: rgba(214, 220, 240, .3); }
#listPicker .list-picker-header { display: flex; align-items: center; gap: 12px; }
#listPicker .list-picker-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 1px solid rgba(167, 139, 250, .3); border-radius: 15px; background: linear-gradient(145deg, rgba(139, 92, 246, .28), rgba(34, 211, 238, .1)); color: #c4b5fd; font-size: 24px; }
#listPicker .list-picker-header h2 { font-size: 17px; }
#listPicker .list-picker-header p { max-width: 290px; margin-top: 4px; overflow: hidden; color: #a7b0c5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#listPicker .list-picker-close { margin-inline-start: auto; width: 36px; height: 36px; border: 1px solid rgba(173, 190, 255, .16); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #d9def0; font-size: 23px; line-height: 1; }
#listPicker .list-picker-hint { margin: 20px 0 10px; color: #a7b0c5; font-size: 12px; }
#listPicker .list-picker-options { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 2px 1px 8px; }
#listPicker .list-picker-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 9px 12px; border: 1px solid rgba(173, 190, 255, .14); border-radius: 15px; background: rgba(255, 255, 255, .035); transition: background .16s, border-color .16s, transform .16s; }
#listPicker .list-picker-option.is-selected { border-color: rgba(167, 139, 250, .62); background: linear-gradient(105deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .08)); }
#listPicker .list-picker-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
#listPicker .list-picker-check { display: grid; place-items: center; flex: none; width: 21px; height: 21px; border: 1.5px solid rgba(184, 195, 220, .42); border-radius: 7px; background: rgba(0, 0, 0, .12); }
#listPicker .list-picker-option input:checked + .list-picker-check { border-color: #a78bfa; background: #8b5cf6; }
#listPicker .list-picker-option input:checked + .list-picker-check::after { content: '✓'; color: #fff; font-size: 14px; font-weight: 800; }
#listPicker .list-picker-option input:focus-visible + .list-picker-check { outline: 2px solid #22d3ee; outline-offset: 2px; }
#listPicker .list-picker-list-icon { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 11px; background: rgba(34, 211, 238, .11); color: #67e8f9; font-size: 19px; }
#listPicker .list-picker-name { min-width: 0; overflow: hidden; color: #f7f8fc; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#listPicker .list-picker-option small { margin-inline-start: auto; flex: none; color: #a7b0c5; font-size: 10px; }
#listPicker .list-picker-empty { padding: 17px 12px; border: 1px dashed rgba(173, 190, 255, .2); border-radius: 14px; color: #a7b0c5; font-size: 12px; line-height: 1.9; text-align: center; }
#listPicker .list-picker-create { padding: 10px 0 4px; border-top: 1px solid rgba(173, 190, 255, .12); }
#listPicker .list-picker-create-toggle { padding: 7px 0; border: 0; background: none; color: #b9a5ff; font-size: 12px; font-weight: 700; }
#listPicker .list-picker-create-form { display: flex; gap: 8px; margin-top: 5px; }
#listPicker .list-picker-create-form input { min-width: 0; flex: 1; padding: 11px 13px; border: 1px solid rgba(173, 190, 255, .2); border-radius: 12px; outline: 0; background: rgba(0, 0, 0, .16); color: #f7f8fc; font: inherit; font-size: 12px; }
#listPicker .list-picker-create-form input:focus { border-color: rgba(167, 139, 250, .7); }
#listPicker .list-picker-create-form button { padding: 0 17px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #9b6cff, #7044e8); color: #fff; font-size: 12px; font-weight: 700; }
#listPicker .list-picker-footer { display: flex; gap: 9px; padding-top: 13px; }
#listPicker .list-picker-footer button { min-height: 46px; border-radius: 13px; font: inherit; font-size: 13px; font-weight: 700; }
#listPicker .list-picker-cancel { padding: 0 18px; border: 1px solid rgba(173, 190, 255, .16); background: rgba(255, 255, 255, .04); color: #cbd2e3; }
#listPicker .list-picker-submit { flex: 1; border: 0; background: linear-gradient(135deg, #9b6cff, #7044e8); color: #fff; box-shadow: 0 8px 20px rgba(112, 68, 232, .26); }
#listPicker .list-picker-submit:disabled { opacity: .45; box-shadow: none; }
#listPicker button:active { transform: scale(.98); }
#listPicker button:disabled { cursor: default; }
#listPicker .hidden { display: none !important; }

@keyframes list-picker-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes list-picker-rise { from { opacity: .7; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (min-width: 600px) {
  #listPicker.list-picker-backdrop { align-items: center; }
  #listPicker .list-picker { border-radius: 26px; }
}
