/* Shared settings shell: navigation and content scroll independently. */
.global-settings-modal .global-settings-modal__dialog { width:min(1280px,calc(100vw - 64px)); height:min(840px,calc(100dvh - 48px)); min-height:0; max-height:none; border-radius:16px; }
.global-settings-modal .global-settings-modal__header { position:absolute; inset:14px 14px auto auto; z-index:2; border:0; padding:0; background:transparent; }
.global-settings-modal__header > div { display:none; }
.global-settings-modal .global-settings-modal__close { width:36px; height:36px; border:0; background:transparent; color:var(--color-text); }
.global-settings-modal .global-settings-modal__body { padding:0; grid-template-columns:236px minmax(0,1fr); gap:0; }
.global-settings-modal .global-settings-modal__nav { padding:20px 14px; overflow:auto; border-inline-end:1px solid var(--color-border); }
.settings-search { display:block; margin-bottom:24px; }
.settings-search input { box-sizing:border-box; width:100%; min-height:40px; padding:9px 12px; border:1px solid var(--color-border-strong); border-radius:10px; background:var(--color-surface); color:var(--color-text); font:inherit; font-size:16px; }
.global-settings-modal .global-settings-modal__nav-item { min-height:42px; border-radius:9px; font-size:15px; color:var(--color-text-soft); }
.global-settings-modal .global-settings-modal__nav-item.is-active { background:var(--color-surface-soft); color:var(--color-text); border-color:transparent; }
.global-settings-modal .global-settings-modal__panels { padding:60px 48px 28px; }
.global-settings-modal .global-settings-modal__section-title { margin:0 0 24px; font-size:22px; line-height:1.3; font-weight:650; }
.global-settings-modal .global-settings-modal__section-desc { margin-bottom:22px; font-size:14px; color:var(--color-text-soft); }
.global-settings-modal .gsm-option-row { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:84px; margin:0; padding:18px 0; border:0; border-bottom:1px solid var(--color-border-soft); border-radius:0; background:transparent; box-sizing:border-box; }
.global-settings-modal .gsm-option-text { min-width:0; display:grid; gap:5px; }
.global-settings-modal .gsm-option-title { font-size:16px; font-weight:500; color:var(--color-text); }
.global-settings-modal .gsm-option-desc { display:block; font-size:14px; line-height:1.45; color:var(--color-text-soft); }
.global-settings-modal .gsm-plan-card, .global-settings-modal .global-settings-modal__profile-card { background:transparent; border:0; border-radius:0; padding:16px 0; box-shadow:none; }
.settings-local-footer { margin-top:32px; padding-top:20px; border-top:1px solid var(--color-border); }
.settings-local-footer p { font-size:12px; line-height:1.5; color:var(--color-text-soft); }
.settings-local-footer button { min-height:40px; margin:4px 8px 0 0; padding:8px 12px; border:1px solid var(--color-border); border-radius:9px; background:var(--color-surface); color:var(--color-text); font:inherit; cursor:pointer; }
.global-settings-modal :is(input,select,button):focus-visible { outline:2px solid var(--color-focus); outline-offset:3px; }
.global-settings-modal [hidden] { display:none!important; }
:root[data-pref-chat-width] .chat-transcript { max-width:var(--pref-chat-width,840px); }
:root[data-pref-chat-size] .chat-msg .chat-bubble { font-size:var(--pref-chat-size,16px); font-family:var(--font-body); }
:root[data-pref-chat-size] .chat-bubble :is(.chat-paragraph,.ai-vis-table) { font-size:inherit; }
:root[data-pref-density="compact"] .job-card { padding:10px 12px; gap:6px; }
:root[data-pref-motion="reduced"] *, :root[data-pref-motion="reduced"] *::before, :root[data-pref-motion="reduced"] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
:root[data-pref-contrast="more"] { --color-text-soft:#303b4b; --color-muted:#465367; --color-border:#758398; --color-border-soft:#929eb0; }
:root[data-theme="dark"][data-pref-contrast="more"] { --color-text-soft:#e1e7f0; --color-muted:#c0cbdb; --color-border:#8998ac; --color-border-soft:#6e7c90; }
/* Short option sets are visible, keyboard-operable native radio groups. */
.settings-nav-links { display:grid; align-content:start; gap:4px; }
.global-settings-modal :is(.settings-choices,.gsm-theme-switch,.gsm-view-switch) { display:inline-flex; flex-shrink:0; max-width:100%; gap:2px; padding:3px; border:1px solid var(--color-border); border-radius:10px; background:var(--color-surface-soft); }
.settings-choice { position:relative; display:flex; cursor:pointer; min-width:0; }
.settings-choice input { position:absolute; width:1px; height:1px; opacity:0; }
.global-settings-modal :is(.settings-choice span,.gsm-theme-switch__btn,.gsm-view-switch__btn) { display:inline-flex; justify-content:center; align-items:center; min-height:38px; box-sizing:border-box; padding:8px 12px; border-radius:7px; font:500 14px/1.3 var(--font-body); color:var(--color-text-soft); background:transparent; white-space:nowrap; }
:root .global-settings-modal :is(.settings-choice input:checked + span,.gsm-theme-switch__btn.is-active,.gsm-view-switch__btn.is-active) { background:var(--color-surface); color:var(--color-text); box-shadow:0 1px 3px rgb(0 0 0 / .1); font-weight:650; }
.settings-choice input:focus-visible + span { outline:2px solid var(--color-focus); outline-offset:2px; }
@media(hover:hover) { .settings-choice:hover span { color:var(--color-text); } }
@media(max-width:960px) {
 .global-settings-modal .global-settings-modal__dialog { width:calc(100vw - 24px); }
 .global-settings-modal .global-settings-modal__body { grid-template-columns:190px minmax(0,1fr); }
 .global-settings-modal .global-settings-modal__panels { padding:58px 24px 24px; }
 .global-settings-modal .gsm-option-row { flex-wrap:wrap; gap:12px; }
}
@media(max-width:700px) {
 .global-settings-modal .global-settings-modal__dialog { width:calc(100vw - 16px); height:calc(100dvh - 16px); max-height:none; border-radius:14px; }
 .global-settings-modal .global-settings-modal__body { display:flex; flex-direction:column; }
 .global-settings-modal .global-settings-modal__nav { flex:0 0 auto; display:block; overflow:hidden; padding:14px 0 0; border-inline-end:0; border-bottom:1px solid var(--color-border); }
 .settings-search { margin:0 56px 10px 14px; }
 .settings-nav-links { display:flex; gap:4px; padding:0 14px 10px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; }
 .global-settings-modal .global-settings-modal__nav-item { flex-shrink:0; min-height:44px; padding:8px 12px; font-size:14px; }
 .global-settings-modal .global-settings-modal__nav-item svg { display:none; }
 .global-settings-modal .global-settings-modal__panels { flex:1 1 0; height:auto; min-height:0; padding:24px 18px; }
 .global-settings-modal .global-settings-modal__section-title { margin-bottom:14px; }
 .global-settings-modal .gsm-option-row { flex-direction:column; align-items:flex-start; text-align:left; gap:12px; padding:18px 0; }
 .global-settings-modal :is(.settings-choice span,.gsm-theme-switch__btn,.gsm-view-switch__btn) { min-height:44px; padding:8px 10px; }
 .settings-local-footer { margin-top:24px; }
}
