/* Group.Box, Group.Item and Switch share the settings primitives used by 6232. */
main:has(> .app-preferences) { background: #0c0b1c; padding-inline: 0; min-height: calc(100dvh - var(--mast)); }
.page.app-preferences { max-width: 640px; padding: 0 20px calc(24px + env(safe-area-inset-bottom)); color: white; }
.app-preferences .ap-header.hero { display: grid; gap: 4px; padding: 0 0 16px; margin: 0; min-height: 0; border: 0; background: none; }
.ap-header.hero h1 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: normal; }
.ap-header.hero .subtitle { margin: 0; color: #ffffffa6; font-size: 16px; line-height: 22px; }
.app-preferences .ap-picker { display: flex; gap: 12px; align-items: center; margin: 0 0 16px; min-height: 0; -webkit-tap-highlight-color: transparent; }
.ap-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; color: white; font: 20px/1 'Checkout Icons'; background: #ffffff0d; }
.app-preferences .ap-copy { flex: 1; min-width: 0; padding: 0; }
.app-preferences .ap-copy h3, .ap-title { margin: 0; color: white; font-size: 16px; line-height: 24px; font-weight: 600; }
.app-preferences .ap-copy p { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: #ffffff8c; }
.app-preferences .ap-copy .dp-error { color: #f8726f; }
.app-preferences .ap-picker .meta { flex: none; margin: 0; padding: 0; background: transparent; color: #ffffff8c; font-size: 16px; line-height: 20px; font-weight: 500; }
.app-preferences .ap-picker .meta[translate="no"] { text-transform: none; letter-spacing: normal; }
.ap-row { display: flex; gap: 12px; align-items: center; }
.app-preferences .ap-label { display: block; width: fit-content; margin: 0; cursor: pointer; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: pre; }

#page-dialog.sheet:has(#layer > .language-settings) {
  inset: 0; margin: auto; width: min(480px, calc(100% - 32px)); height: fit-content;
  max-height: min(88dvh, var(--sheet-limit, 88dvh));
  padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #14122a;
}
#page-dialog:has(#layer > .language-settings) > .native-sheet-grip {
  position: absolute; inset: 0 0 auto; margin-inline: auto;
}
#page-dialog .language-settings {
  display: flex; flex-direction: column; max-height: min(88dvh, var(--sheet-limit, 88dvh));
  padding: 0; color: white;
}
#page-dialog .language-settings .hero {
  flex: none; min-height: 0; padding: 24px 60px 12px 20px; margin: 0;
  border: 0; background: none;
}
#page-dialog .language-settings .hero h1 { margin: 0; font-size: 20px; line-height: 26px; letter-spacing: normal; }
.language-settings > .close-layer { top: 8px; right: 8px; }
.ls-form {
  min-height: 0; padding: 0 20px max(16px, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
}
.language-settings .form-status { flex: none; margin: 0 20px 8px; color: #e2d6ff; }
.language-settings .form-status:empty { display: none; }
.ls-form .ls-list { min-width: 0; margin: 0; padding: 0; border: 0; }
.ls-section { padding: 0; margin-bottom: 8px; color: #c4b6e4; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.ls-options { overflow: hidden; border: 1px solid #40335d; border-radius: 16px; }
.ls-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 14px;
  border: 0; background: #1b1636; color: white; font: inherit; text-align: start; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ls-option + .ls-option { border-top: 1px solid #40335d; }
.ls-option[aria-current], .ls-option:active { background: #2c214d; }
@media (hover: hover) { .ls-option:not([aria-current]):hover { background: #231b41; } }
.ls-option:focus-visible { outline: 2px solid #cfbaff; outline-offset: -3px; }
.ls-option:disabled { cursor: wait; }
.ls-flag { display: grid; place-items: center; flex: 0 0 34px; font-size: 24px; }
.ls-copy { flex: 1; min-width: 0; }
.ls-copy strong, .ls-description { display: block; }
.ls-copy strong { font-size: 15px; line-height: 21px; }
.ls-description { color: #cec4df; font-size: 12px; line-height: 17px; }
.ls-indicator { flex: none; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #ab98cf; border-radius: 50%; }
.ls-option[aria-current] .ls-indicator { border-color: #cfbaff; background: #cfbaff; }
.ls-option[aria-current] .ls-indicator::after {
  content: ''; width: 8px; height: 5px; transform: translateY(-1px) rotate(-45deg);
  border: solid #201737; border-width: 0 0 2px 2px;
}
@media (max-width: 700px), (pointer: coarse) and (max-height: 600px) {
  #page-dialog.sheet:has(#layer > .language-settings) { inset: auto 0 0; margin: 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; }
}
