.user-menu-wrap{position:relative}.user-avatar{width:46px;height:46px!important;padding:0!important;border-radius:50%!important;background:linear-gradient(145deg,#0758c9,#061b50)!important;color:#fff!important;border:3px solid #e5efff!important;font-weight:900;font-size:14px;box-shadow:0 7px 22px #061b5040;overflow:hidden;display:grid!important;place-items:center;transition:transform .18s ease,box-shadow .18s ease}.user-avatar:hover{transform:scale(1.08);box-shadow:0 10px 28px #0758c955}.user-avatar img,.mini-avatar img,.profile-photo-large img{width:100%;height:100%;object-fit:cover;display:block}.user-dropdown{position:absolute;right:0;top:52px;width:285px;background:#fff;border:1px solid #d7e2f1;border-radius:18px;box-shadow:0 22px 60px #061b5038;padding:10px;color:#061b50;z-index:90}.user-dropdown[hidden]{display:none!important}.user-summary{display:flex;align-items:center;gap:12px;padding:10px 9px 14px;border-bottom:1px solid #e7eef7}.user-summary .mini-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#0758c9,#061b50);color:#fff;font-weight:900;overflow:hidden;flex:0 0 auto}.user-summary b{display:block;font-size:14px}.user-summary small{display:block;color:#6d7f99;margin-top:4px}.dropdown-action{width:100%;display:flex!important;align-items:center;justify-content:space-between;margin-top:7px;background:#f1f6fd!important;color:#061b50!important;text-align:left;border:1px solid transparent!important}.dropdown-action:hover{border-color:#cbdcf4!important;background:#e7f0fd!important}.dropdown-action.danger-action{background:#071f49!important;color:#fff!important}.profile-modal-shell{backdrop-filter:blur(7px)}.profile-modal-card{width:min(520px,94vw)!important;padding:0!important;overflow:hidden;border-radius:24px!important;position:relative}.profile-close{position:absolute;right:14px;top:14px;width:38px;height:38px;border-radius:50%!important;padding:0!important;background:#ffffffdd!important;color:#061b50!important;font-size:22px;z-index:2}.profile-hero{padding:30px 26px 24px;display:flex;gap:20px;align-items:center;background:linear-gradient(135deg,#061b50,#0758c9);color:#fff}.profile-photo-editor{position:relative;cursor:pointer;flex:0 0 auto}.profile-photo-large{width:104px;height:104px;border-radius:50%;border:4px solid #fff;display:grid;place-items:center;background:#fff2;color:#fff;font-size:30px;font-weight:900;overflow:hidden;box-shadow:0 10px 30px #0017}.profile-camera{position:absolute;right:0;bottom:2px;width:34px;height:34px;border-radius:50%;background:#fff;color:#061b50;display:grid;place-items:center;box-shadow:0 4px 12px #0014}.profile-hero-copy small{opacity:.78;font-weight:700;letter-spacing:.08em}.profile-hero-copy h3{margin:6px 0 5px;font-size:24px}.profile-hero-copy span{display:inline-block;background:#ffffff1d;border:1px solid #ffffff38;padding:5px 10px;border-radius:999px;font-size:12px}.profile-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:20px 22px 8px}.profile-detail-grid>div{background:#f6f9fd;border:1px solid #e2eaf5;border-radius:13px;padding:12px}.profile-detail-grid small{display:block;color:#71829b;margin-bottom:5px}.profile-detail-grid b{color:#071f49}.profile-detail-wide{grid-column:1/-1}.profile-upload-note{margin:8px 22px 2px;padding:12px 14px;border-radius:12px;background:#edf5ff;color:#31506f;font-size:12px}.profile-modal-card>.error{padding:0 22px}.profile-modal-card>.modal-actions{padding:14px 22px 22px}.dock-head .toggle-control{padding:5px 0!important}.dock-head .toggle-track{border:1px solid #ffffff40}@media(max-width:560px){.profile-hero{align-items:flex-start}.profile-photo-large{width:86px;height:86px}.profile-detail-grid{grid-template-columns:1fr}.profile-detail-wide{grid-column:auto}}

.profile-tools-url input{width:100%;margin-top:6px;border:1px solid #d8e3f0;border-radius:10px;padding:10px 11px;background:#fff;color:#071f49;outline:none}.profile-tools-url input:focus{border-color:#0758c9;box-shadow:0 0 0 3px #0758c918}

/* Profile actions keep a readable contrast even when top-menu button rules apply. */
#topMenu .top-actions .user-dropdown .dropdown-action{min-height:46px;padding:10px 12px!important;background:#f4f7fc!important;color:#071d4f!important;border:1px solid #dbe5f2!important;border-radius:12px!important;font-size:14px!important;font-weight:800!important;opacity:1!important}
#topMenu .top-actions .user-dropdown .dropdown-action span,#topMenu .top-actions .user-dropdown .dropdown-action b{color:inherit!important;opacity:1!important}
#topMenu .top-actions .user-dropdown .dropdown-action:hover,#topMenu .top-actions .user-dropdown .dropdown-action:focus-visible{background:#e7f0fd!important;color:#061b50!important;border-color:#9fc0ec!important;outline:3px solid #0758c91c!important}
#topMenu .top-actions .user-dropdown .danger-action{background:#fff1f2!important;color:#b42318!important;border-color:#fecdd3!important}
#topMenu .top-actions .user-dropdown .danger-action:hover,#topMenu .top-actions .user-dropdown .danger-action:focus-visible{background:#ffe4e6!important;color:#991b1b!important;border-color:#fda4af!important}
#topMenu .user-dropdown .dropdown-action .toggle-track{position:relative;display:block;flex:0 0 42px;width:42px;height:23px;border-radius:999px;background:#9aa9bd!important;border:1px solid #8797ad;box-shadow:inset 0 1px 2px #061b5020;transition:background .18s ease,border-color .18s ease}
#topMenu .user-dropdown .dropdown-action .toggle-track::after{content:"";position:absolute;left:2px;top:2px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #061b5040;transition:transform .18s ease}
#topMenu .user-dropdown .dropdown-action.on .toggle-track{background:#0758c9!important;border-color:#0758c9}
#topMenu .user-dropdown .dropdown-action.on .toggle-track::after{transform:translateX(19px)}
