#top-menu-brand a,#top-menu-brand a:visited,#top-menu-brand a:hover,#top-menu-brand a:active{color:var(--text-primary)!important;text-decoration:none!important;opacity:1!important;}
#auth-user-nickname{appearance:none;border:0;background:transparent;color:var(--text-primary);font:inherit;font-weight:600;cursor:pointer;padding:5px 7px;border-radius:6px;white-space:nowrap;}
#auth-user-nickname:hover{background:rgba(120,140,160,.12);}
#top-menu-bar{gap:10px;}#top-menu-spacer{flex:1 1 auto;min-width:24px;}#top-menu-items{flex:0 0 auto;padding:0 18px 0 0;overflow:visible;}#top-menu-controls{flex:0 0 auto;gap:8px;}
#top-menu-items>button,#top-menu-controls button{border:1px solid var(--border-color);background:var(--bg-panel);color:var(--text-primary);padding:6px 10px;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;}
#top-menu-items>button:hover,#top-menu-controls button:hover{border-color:var(--accent);}
#theme-toggle-btn{font-size:15px!important;padding:6px 8px!important;line-height:1;}
.cv-profile-overlay{position:fixed;inset:0;z-index:100100;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:16px;}
.cv-profile-modal{position:relative;width:min(420px,100%);padding:20px;border:1px solid var(--border-color);border-radius:12px;background:var(--bg-panel);color:var(--text-primary);box-shadow:0 20px 50px rgba(0,0,0,.25);}
.cv-profile-close{position:absolute;top:8px;right:10px;border:0;background:transparent;color:inherit;font-size:22px;cursor:pointer;}
.cv-profile-status{display:flex;gap:12px;flex-wrap:wrap;padding:10px 12px;margin-bottom:14px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-page);font-size:13px;}
.cv-profile-modal label{display:block;font-size:13px;font-weight:600;margin:10px 0 6px}.cv-profile-modal input{width:100%;box-sizing:border-box;padding:9px 10px;margin-top:6px;border:1px solid var(--border-color);border-radius:7px;background:var(--bg-page);color:var(--text-primary)}.cv-profile-modal small{display:block;color:var(--text-secondary);line-height:1.45}.cv-profile-error{min-height:18px;margin-top:10px;color:#ef4444;font-size:13px}.cv-profile-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.cv-profile-actions button{border:1px solid var(--border-color);background:var(--bg-panel);color:var(--text-primary);padding:8px 12px;border-radius:7px;cursor:pointer}.cv-profile-actions button[type=submit]{background:var(--accent);color:#fff;border-color:var(--accent)}
@media(max-width:700px){#top-menu-bar{padding:0 8px;gap:4px;height:48px}#top-menu-spacer{display:none}#top-menu-brand{flex:0 1 auto;min-width:0}#top-menu-brand a{font-size:13px}#top-menu-items{padding-right:4px;margin-right:0}#top-menu-items>button,#top-menu-controls button{padding:5px 7px;font-size:11px}#auth-user-nickname{padding:5px;font-size:11px;max-width:112px;overflow:hidden;text-overflow:ellipsis}#auth-guest-view,#auth-user-view,#auth-box{gap:4px!important}#top-menu-controls{gap:4px;min-width:0;flex-shrink:1}}


/* Mobile order fix: Brand > Board > Auth > Settings > Theme */
@media(max-width:700px){
  #top-menu-bar{display:flex !important;flex-wrap:nowrap !important;align-items:center !important;}
  #top-menu-brand{order:1 !important;flex:0 1 auto !important;}
  #top-menu-spacer{order:2 !important;display:block !important;flex:1 1 4px !important;min-width:2px !important;}
  #top-menu-items{order:3 !important;width:auto !important;flex:0 0 auto !important;}
  #top-menu-controls{order:4 !important;display:flex !important;flex:0 0 auto !important;}
}
