/* Shared web and desktop settings: quiet rows, one scrolling surface. */
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] {
 width:min(440px,calc(100vw - 24px))!important;max-height:min(78dvh,680px)!important;
 border-radius:16px!important;padding:12px!important;scrollbar-gutter:stable;
}
#account-panel[data-profile-signed="true"] .yap-profile-settings-view {gap:0!important}
#account-panel .yap-profile-settings-view .yap-profile-view-title {padding:2px 2px 10px!important;font-size:16px;font-weight:600}
#account-panel .yap-profile-settings-caption {font-size:12px!important;margin:0 8px 12px!important}
#account-panel[data-profile-signed="true"] .yap-profile-settings-view #cloud-quota {background:transparent!important;border-radius:0!important;padding:0 9px 12px!important;border-bottom:1px solid var(--border)}
#account-panel[data-profile-signed="true"] .yap-profile-settings-view :is(#yap-account-advanced,#yap-memory-settings,#yap-menu-settings) {border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;background:transparent!important;margin:0 4px!important;padding:0!important;width:calc(100% - 8px)!important}
#account-panel[data-profile-signed="true"] .yap-profile-settings-view :is(#yap-account-advanced,#yap-memory-settings,#yap-menu-settings)>summary {font:500 13px/1.4 system-ui!important;min-height:44px!important;padding:12px 8px!important;list-style:none!important;background:transparent!important;border:0!important;border-radius:6px!important}
#account-panel[data-profile-signed="true"] .yap-profile-settings-view #yap-menu-settings>.top-actions {max-height:none!important;overflow:visible!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 8px 12px!important;margin:0!important;background:transparent!important;gap:4px!important}
#account-panel[data-profile-signed="true"] .yap-profile-settings-view #yap-menu-settings>.top-actions>:is(button,a) {display:flex!important;align-items:center!important;min-height:40px!important;width:100%!important;padding:9px 8px!important;margin:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--fg)!important;font:400 13px/1.4 system-ui!important;text-align:left!important;text-decoration:none!important;box-shadow:none!important}
#account-panel[data-profile-signed="true"] .yap-profile-settings-view #yap-menu-settings>.top-actions>:is(button,a):hover {background:var(--bubble)!important}
#account-panel .yap-profile-settings-view #theme-choice {width:100%!important;min-height:40px!important;padding:8px 10px!important;border:1px solid var(--border)!important;border-radius:8px!important;background:var(--panel)!important;color:var(--fg)!important;font-size:13px!important}
#account-panel .yap-profile-settings-view label[for="theme-choice"] {font-size:12px!important;padding:8px 8px 2px!important;opacity:.7}
#account-panel .yap-profile-settings-view #yap-memory-settings :is(button,input:not([type="checkbox"])) {border-radius:8px!important;box-shadow:none!important;font-size:13px!important}
#account-panel .yap-profile-settings-view .yap-profile-settings-photo {font-size:13px!important;border-radius:6px!important;margin-top:6px!important}
#account-panel .yap-profile-settings-view :is(button,a,summary,select):focus-visible {outline:2px solid var(--accent)!important;outline-offset:2px!important}
@media(pointer:coarse){#account-panel[data-profile-signed="true"] .yap-profile-settings-view #yap-menu-settings>.top-actions>:is(button,a){min-height:44px!important}}
@media(max-width:560px){body > #account-panel[data-profile-signed="true"][data-profile-page="settings"]{left:12px!important;right:12px!important;width:calc(100vw - 24px)!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;max-height:calc(100dvh - 110px)!important}}

/* Flatten current grouped settings without moving or replacing their live controls. */
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] {max-width:min(440px,calc(100vw - 24px))!important;background:var(--panel)!important;color:var(--fg)!important}
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] .yap-settings-group {background:transparent!important;border:0!important;border-bottom:1px solid var(--border)!important;border-radius:0!important;box-shadow:none!important;padding:12px 4px!important;margin:0 4px!important;width:calc(100% - 8px)!important}
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] .yap-settings-group>h3 {font:600 12px/1.4 system-ui!important;color:var(--fg)!important;margin:0 8px 6px!important}
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] .yap-settings-group-hint {display:none!important}
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] .yap-settings-group #yap-menu-settings>.top-actions {border:0!important;background:transparent!important;padding:0!important;margin:0!important;overflow:visible!important;max-height:none!important}
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] .yap-settings-group :is(.yap-profile-setting-link,#yap-menu-settings>.top-actions>button,#yap-menu-settings>.top-actions>a,#yap-menu-settings>.top-actions #yap-location-controls>summary) {border:0!important;background:transparent!important;color:var(--fg)!important;padding:9px 8px!important;font:400 13px/1.4 system-ui!important;box-shadow:none!important;min-height:40px!important}
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] .yap-settings-group :is(summary,.yap-profile-action,#account-state,#cloud-quota) {background:transparent!important;color:var(--fg)!important}
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] .yap-settings-group :is(button,a,summary):hover {background:var(--bubble)!important}
body > #account-panel[data-profile-signed="true"][data-profile-page="settings"] .yap-settings-group #theme-choice {background:var(--panel)!important;color:var(--fg)!important;border:1px solid var(--border)!important}

/* Resolve washed-out account actions in dark mode without increasing visual weight. */
html[data-theme="dark"] #account-panel[data-profile-page="settings"] :is(button,.yap-profile-action,.yap-profile-setting-link,summary){color:var(--fg,#e9f5ec)!important;}
html[data-theme="dark"] #account-panel[data-profile-page="settings"] :is(button,.yap-profile-action,.yap-profile-setting-link,summary):not(:hover){background:transparent!important;}
html[data-theme="dark"] #account-panel[data-profile-page="settings"] :is(button,.yap-profile-action,.yap-profile-setting-link,summary):hover{background:var(--bubble,#294433)!important;}
