#page-dialog.sheet:has(#layer > .currency-settings) {
  inset:0; width:min(480px,calc(100% - 32px)); height:fit-content; max-height:var(--sheet-limit,90dvh);
  margin:auto; padding:0; border:0; border-radius:24px; color:white; background:var(--sheet-color,#100f24); overflow:hidden;
}
#page-dialog:has(#layer > .currency-settings) > .native-sheet-grip {
  position:absolute; inset:0 0 auto; margin:auto;
}
.currency-settings { color:#fff; font-family:Manrope,sans-serif; }
.currency-settings .close-layer:not(:focus-visible) { clip-path:inset(50%); pointer-events:none; }
.currency-settings .close-layer:focus-visible { z-index:4; }
.currency-settings .controls {
  display:flex; flex-direction:column; min-width:0; max-height:var(--sheet-limit,90dvh);
  border:0; padding:0; margin:0;
}
.cs-scroll { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 20px 48px; scrollbar-width:none; }
.cs-scroll::-webkit-scrollbar { display:none; }
#page-dialog .currency-settings .hero { display:block; min-height:0; padding:32px 0 16px; margin:0 0 16px; }
#page-dialog .currency-settings .hero h1 { margin:0; font-size:20px; line-height:26px; font-weight:600; letter-spacing:normal; }
.cs-section { margin:0 0 8px; font-size:12px; line-height:16px; font-weight:600; letter-spacing:.1em; color:#ffffff80; text-transform:uppercase; }
.cs-group,.cs-rate { border:1px solid #1d1841; border-radius:24px; background:#110e2f; }
.cs-group { padding:6px 20px; }
.cs-option { display:flex; align-items:center; gap:12px; min-height:70px; padding:14px 0; cursor:pointer; }
.cs-option + .cs-option { border-top:1px solid #1d1841; }
.cs-flag { display:grid; place-items:center; flex:0 0 42px; height:42px; border:.5px solid #fff3; border-radius:50%; background:#ffffff0d; font-size:24px; }
.cs-option .item-copy { flex:1; min-width:0; padding:0; }
.cs-option strong { display:block; color:white; font-size:16px; line-height:24px; font-weight:600; }
.cs-option .item-copy p { margin:2px 0 0; font-size:12px; line-height:16px; color:#ffffff8c; }
.cs-symbol,.cs-rate { font-size:14px; line-height:20px; color:#ffffff8c; }
.cs-radio { appearance:none; flex:none; width:16px; height:16px; margin:0 2px; padding:0; border:1.3px solid #ffffffb3; border-radius:5px; background:transparent; cursor:pointer; }
.cs-radio:checked { background:linear-gradient(white,white) center/10px 10px no-repeat; }
.cs-option:has(:focus-visible),.cs-save:focus-visible { outline:2px solid #c9b8ff; outline-offset:2px; }
.cs-notice { display:flex; align-items:flex-start; gap:12px; margin:16px 0; padding:16px; border:1px solid #9990fa40; border-radius:16px;
  color:#ffffffbf; background:#9990fa1a; font-size:12px; line-height:17px; }
.cs-notice::before { content:'ⓘ'; flex:none; color:#9990fa; font:20px/20px sans-serif; }
.cs-rate { margin:0; padding:4px 16px; }
.cs-rate > div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; }
.cs-rate > div + div { border-top:1px solid #ffffff14; }
.cs-rate dd { margin:0; color:white; text-align:end; font-weight:600; }
.currency-settings .actions { flex:none; display:block; margin:0; padding:12px 20px max(16px,env(safe-area-inset-bottom)); border-top:1px solid #ffffff19; background:#100f24; }
.cs-save {
  display:block; width:100%; min-height:55px; border:1px solid #fff; border-radius:999px; cursor:pointer;
  color:#440649; font:600 18px/27px Manrope,sans-serif;
  background:radial-gradient(ellipse at 45% 20%,#fbf5c2,transparent 48%),radial-gradient(ellipse at 69% 85%,#f499fa,transparent 45%),linear-gradient(105deg,#fdaa89,#fed898 26%,#9693fa 79%,#88b1fe);
}
.cs-save:disabled { opacity:.5; cursor:default; }
.currency-settings .form-status { margin:0 0 8px; color:white; font-size:14px; }
.currency-settings .form-status:empty { display:none; }
@media(max-width:700px),(pointer:coarse) and (max-height:600px) {
  #page-dialog.sheet:has(#layer > .currency-settings) { inset:auto 0 0; margin:0; width:100%; max-width:100%; border-radius:24px 24px 0 0; }
}
