#page-dialog.sheet:has(.pack-settings) {
  inset:0; margin:auto; padding:0; width:min(480px,calc(100% - 32px));
  height:fit-content; max-height:calc(100dvh - 32px); border-radius:24px;
  background:var(--sheet-color,#100f24); color:#fff;
}
#page-dialog:has(.pack-settings) > .native-sheet-grip { position:absolute; top:0; left:50%; margin:0; transform:translateX(-50%); }
.pack-settings { padding:0 20px calc(20px + env(safe-area-inset-bottom,0px)); color:#fff; }
.pack-settings .ps-title { margin:0; padding:32px 0 16px; font-size:24px; font-weight:700; line-height:1.2; letter-spacing:-.02em; }
.ps-group { overflow:hidden; padding:20px; border-radius:24px; background:#1c1c3b; border:1px solid #2f2f59; }
.ps-row { display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit; cursor:pointer; }
.ps-row + .ps-row { margin-top:14px; padding-top:14px; border-top:1px solid #2f2f59; }
.ps-row > svg { flex:none; box-sizing:border-box; width:42px; height:42px; padding:9px; color:#9990fa; background:radial-gradient(50% 60% at 50% 0%,rgb(255 255 255 / .35),transparent),linear-gradient(180deg,#181255 63.1%,#110e2f 104.76%); border:.5px solid #ffffff33; border-radius:8px; }
.ps-row > svg,.ps-gear svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ps-label { font-size:16px; font-weight:600; line-height:24px; }
.ps-copy { flex:1; min-width:0; }
.ps-description { display:block; margin-top:2px; font-size:12px; line-height:16px; color:rgb(255 255 255 / .55); }
.ps-chevron { width:8px; height:8px; margin-left:auto; margin-right:4px; transform:rotate(-45deg); border:solid #aaa7bc; border-width:0 1.5px 1.5px 0; }
.ps-switch { appearance:none; position:relative; flex:none; width:63px; height:28px; margin:0 0 0 auto; padding:0; border:0; border-radius:14px; background:#646467; cursor:pointer; }
.ps-switch::before { content:''; position:absolute; top:2px; left:2px; width:37px; height:24px; border-radius:12px; background:white; }
.ps-switch:checked { background:#7a45fd; }
.ps-switch:checked::before { transform:translateX(22px); }
.ps-switch:disabled { opacity:.55; }
.ps-error { display:block; font-size:12px; color:#f8726f; }
.ps-error:empty { display:none; }
.ps-empty { color:#c5c2d6; }
.pack-settings .close-layer:not(:focus-visible) { position:absolute; clip-path:inset(50%); pointer-events:none; }
.shop-pack-tools > .ps-dock { position:relative; display:flex; padding:0; gap:4px; background:transparent; }
.ps-gear,.ps-turbo { box-sizing:border-box; display:inline-grid; place-items:center; min-width:44px; height:44px; padding:0 10px; border:1px solid #ffffff32; border-radius:999px; color:#fff; background:#ffffff0e; cursor:pointer; }
.ps-gear svg { width:21px; height:21px; }
.ps-turbo { position:relative; }
.ps-turbo-input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.ps-turbo:has(:checked) { background:#6836b4; border-color:#b996ff; }
.ps-turbo:focus-within,.ps-switch:focus-visible,.ps-row:focus-visible { outline:2px solid #cebafb; outline-offset:-2px; }
.ps-dock .ps-error { position:absolute; top:100%; right:0; width:max-content; max-width:200px; }
@media(max-width:760px) {
  #page-dialog.sheet:has(.pack-settings) { margin:auto 0 0; width:100%; max-width:100%; max-height:96dvh; border-radius:24px 24px 0 0; }
}
