/* WINDETECT v2.2.98: sidebar personalisation, no permission escalation */
#wdSmartCamera #wdScDrawer [data-wd-user-hidden="1"]{display:none!important}
#wdSmartCamera #wdScDrawer .wd-sc-drawer-header{display:flex!important;align-items:center!important;gap:10px!important;justify-content:space-between!important}
#wdSmartCamera #wdScDrawerSettings{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:12px;border:1px solid #e2e8f0;background:#fff;color:#173d60;cursor:pointer}
#wdSmartCamera #wdScDrawerSettings svg{width:20px;height:20px}
#wdSmartCamera #wdScSettings{display:none!important}
#launcherView [data-launch="settings"],#topQuickMenu #mySettingsButton{display:none!important}
#wdSmartCamera #wdScProfile{width:auto!important;min-width:110px;max-width:75%;padding:0 12px!important;border-radius:22px!important;gap:7px!important;white-space:nowrap;overflow:hidden}
#wdSmartCamera #wdScProfileInitials{flex:none}
#wdSmartCamera #wdScProfileName{overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600}
.wd-sidebar-prefs{border:1px solid #dce4ed;background:#fff;border-radius:16px;padding:18px;margin:16px 0;max-width:720px}
.wd-sidebar-prefs h2{font-size:18px;margin:0 0 8px}.wd-sidebar-prefs>p{font-size:13px;color:#687b8f;margin:6px 0 14px}
.wd-sidebar-prefs-group{padding:12px 0;border-top:1px solid #e5e9ef;display:flex;flex-direction:column;gap:8px}
.wd-sidebar-prefs-group h3{font-size:14px;margin:0 0 4px}
.wd-sidebar-prefs-group label{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer}
.wd-sidebar-prefs-group input{width:18px;height:18px;accent-color:#173d60}
#wdProfileEditorOverlay[hidden]{display:none!important}
#wdProfileEditorOverlay{position:fixed;inset:0;z-index:2147483600;background:rgba(14,29,44,.45);display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:30px 16px calc(30px + env(safe-area-inset-bottom));box-sizing:border-box}
#wdProfileEditorOverlay .wd-profile-editor-card{width:min(680px,100%);background:#fff;border-radius:20px;padding:20px;box-shadow:0 18px 50px #17283b30;box-sizing:border-box}
#wdProfileEditorOverlay .wd-profile-editor-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
#wdProfileEditorOverlay .wd-profile-editor-heading h2{font-size:20px;margin:0;color:#152b41}
#wdProfileEditorClose{border:1px solid #d9e3ee;border-radius:50%;background:#fff;width:40px;height:40px;font-size:24px;color:#17283b}
#wdProfileEditorOverlay #myProfileForm{display:flex;flex-direction:column;gap:10px}
#wdProfileEditorOverlay .wd145-settings-media{margin:0 auto 14px}
@media (min-width:1024px) and (pointer:fine){html:root body #wdSmartCamera.wd-command-mode{--wd-drawer-width:344px!important}}
