/* Quiet shared region/language UI; owns only .bsc-locale-* nodes. */
.bsc-locale-banner,.bsc-locale-dialog {box-sizing:border-box;font-family:var(--studio-font,Inter,"Noto Sans TC",system-ui,sans-serif);color:var(--studio-ink,#24313a);font-weight:var(--studio-weight-regular,400);font-size:14px;line-height:1.6;text-wrap:pretty}
.bsc-locale-banner *,.bsc-locale-dialog * {box-sizing:border-box}
.bsc-locale-banner {position:relative;z-index:70;background:var(--studio-soft,#f8fafb);border-bottom:1px solid var(--studio-line,#dde3e7)}
.bsc-locale-banner-inner {max-width:1200px;margin-inline:auto;padding:12px 32px;display:flex;align-items:center;gap:16px}
.bsc-locale-banner-inner>svg {flex:none;width:21px;height:21px;stroke:currentColor;stroke-width:1.5;fill:none;transform:translateY(.125em)}
.bsc-locale-banner-copy {margin:0;flex:1;max-width:70ch;color:var(--studio-muted,#5e6973);font-size:13px;line-height:1.7}
.bsc-locale-banner-copy strong {color:var(--studio-ink,#24313a);font-weight:var(--studio-weight-medium,500);white-space:nowrap}
.bsc-locale-banner-actions {display:flex;align-items:center;gap:6px;flex:none}
.bsc-locale-button,.bsc-locale-icon-button {font:inherit;font-size:14px;font-weight:var(--studio-weight-medium,500);line-height:1.4;min-height:44px;border:0;border-radius:7px;cursor:pointer;box-shadow:none;transition:background-color 120ms ease,color 120ms ease}
.bsc-locale-button {padding:10px 18px}
.bsc-locale-button--primary {background:var(--studio-accent,#173d51);color:var(--studio-on-accent,#fff)}
.bsc-locale-button--primary:hover {background:color-mix(in srgb,var(--studio-accent,#173d51) 87%,var(--studio-ink,#24313a))}
.bsc-locale-button--quiet,.bsc-locale-icon-button {background:transparent;color:var(--studio-ink,#24313a)}
.bsc-locale-button--quiet:hover,.bsc-locale-icon-button:hover {background:var(--studio-hover,#edf2f5)}
.bsc-locale-icon-button {display:grid;place-items:center;min-width:44px;width:44px;padding:0;font-size:25px;font-weight:300;line-height:1}
.bsc-locale-button:disabled {cursor:wait;opacity:.55}
.bsc-locale-dialog {width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:28px;border:1px solid var(--studio-line,#dde3e7);border-radius:16px;background:var(--studio-surface,#fff);box-shadow:0 20px 65px rgb(24 39 51 / 20%);overscroll-behavior:contain;overflow:auto}
.bsc-locale-dialog::backdrop {background:rgb(24 39 51 / 30%)}
.bsc-locale-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:4px}
.bsc-locale-heading h2 {font-size:22px;line-height:1.35;letter-spacing:-.02em;font-weight:var(--studio-weight-semibold,600);margin:0}
.bsc-locale-heading .bsc-locale-icon-button {margin-right:-12px}
.bsc-locale-description {margin:0 0 26px;color:var(--studio-muted,#5e6973);font-size:14px}
.bsc-locale-form {display:flex;flex-direction:column;gap:20px}
.bsc-locale-field {display:grid;gap:8px;font-size:13px;color:var(--studio-ink,#24313a);font-weight:var(--studio-weight-medium,500)}
.bsc-locale-field select {font:inherit;font-size:16px;font-weight:var(--studio-weight-regular,400);width:100%;min-height:48px;padding:10px 38px 10px 13px;border:1px solid var(--studio-line,#dde3e7);border-radius:8px;color:var(--studio-ink,#24313a);background:var(--studio-surface,#fff);cursor:pointer}
.bsc-locale-note {margin:0;color:var(--studio-muted,#5e6973);font-size:12px;line-height:1.8}
.bsc-locale-status {margin:0;color:var(--studio-ink,#24313a);font-size:13px}
.bsc-locale-status:empty {display:none}
.bsc-locale-actions {display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--studio-line,#dde3e7);padding-top:20px;margin-top:2px}
.bsc-locale-banner :is(button,select):focus-visible,.bsc-locale-dialog :is(button,select):focus-visible {outline:none;box-shadow:0 0 0 2px var(--studio-surface,#fff),0 0 0 4px color-mix(in srgb,var(--studio-accent,#173d51) 65%,transparent)}
.bsc-locale-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px) {
 .bsc-locale-banner-inner {padding:14px 16px;display:grid;grid-template-columns:21px minmax(0,1fr) 44px;gap:4px 10px;align-items:start}
 .bsc-locale-banner-inner>svg {margin-top:3px}
 .bsc-locale-banner-copy {font-size:12px;line-height:1.75;padding-top:1px}
 .bsc-locale-banner-copy strong {display:block;margin-top:2px;font-size:14px}
 .bsc-locale-banner-actions {display:contents}
 .bsc-locale-banner-actions>.bsc-locale-button {grid-row:2;margin-top:8px;justify-self:start;min-width:88px}
 .bsc-locale-banner-actions>.bsc-locale-button--primary {grid-column:2}
 .bsc-locale-banner-actions>.bsc-locale-button--quiet {grid-column:2;margin-left:96px}
 .bsc-locale-banner-actions>.bsc-locale-icon-button {grid-column:3;grid-row:1;margin-top:-8px}
 .bsc-locale-dialog {padding:22px;width:calc(100% - 28px);border-radius:14px}
 .bsc-locale-heading h2 {font-size:21px}
 .bsc-locale-form {gap:18px}
}
@media(prefers-reduced-motion:reduce) {.bsc-locale-button,.bsc-locale-icon-button {transition:none}}
@media(forced-colors:active) {.bsc-locale-banner :is(button,select):focus-visible,.bsc-locale-dialog :is(button,select):focus-visible {outline:2px solid Highlight;outline-offset:3px}.bsc-locale-button--primary {border:1px solid ButtonText}}
