/* NUVORA · Perfil premium no canto superior do workspace */
.workspace-profile-wrap{position:relative;display:flex;align-items:center;flex-shrink:0}
.workspace-profile-trigger{display:flex;align-items:center;gap:9px;min-height:43px;padding:5px 9px 5px 5px;border:1px solid #dfe6d7;border-radius:12px;background:#fbfcf9;color:#294d3b;cursor:pointer;box-shadow:0 3px 12px rgba(38,75,56,.025);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
.workspace-profile-trigger:hover{border-color:#bdcbb8;background:#f5f8f1;box-shadow:0 8px 19px rgba(38,75,56,.055);transform:translateY(-1px)}
.workspace-profile-avatar{display:grid;place-items:center;width:32px;height:32px;flex:0 0 auto;border:1px solid #dfe4c9;border-radius:50%;background:linear-gradient(145deg,#f1f1de,#e5e8cf);color:#45613f;font-size:9px;font-weight:800;letter-spacing:.02em}
.workspace-profile-avatar.large{width:40px;height:40px;font-size:10px}
.workspace-profile-copy{display:block;min-width:0;text-align:left;line-height:1.15}
.workspace-profile-copy strong{display:block;max-width:148px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#294d3b;font-size:10px;font-weight:750}
.workspace-profile-copy small{display:block;margin-top:4px;color:#829080;font-size:8px;font-weight:500}
.workspace-profile-chevron{width:15px;height:15px;fill:none;stroke:#85927f;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.workspace-profile-trigger[aria-expanded="true"] .workspace-profile-chevron{transform:rotate(180deg)}
.workspace-profile-menu{position:absolute;z-index:130;top:calc(100% + 8px);right:0;width:282px;padding:9px;border:1px solid #dfe6d8;border-radius:15px;background:#fffefb;box-shadow:0 22px 55px rgba(28,62,46,.16),0 3px 11px rgba(28,62,46,.05);animation:workspaceProfileIn .17s ease both}
.workspace-profile-menu[hidden]{display:none!important}
.workspace-profile-menu-head{display:flex;align-items:center;gap:11px;padding:9px 9px 13px;border-bottom:1px solid #e8ece4}
.workspace-profile-menu-head>div{min-width:0}
.workspace-profile-menu-head strong{display:block;overflow:hidden;text-overflow:ellipsis;color:#274c3d;font-size:11px;line-height:1.35}
.workspace-profile-menu-head small{display:block;margin-top:3px;color:#78877b;font-size:8px}
.workspace-profile-menu-head em{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#98a198;font-size:7.5px;font-style:normal}
.workspace-profile-menu-label{padding:11px 9px 5px;color:#9b8a67;font-size:7px;font-weight:800;letter-spacing:.13em}
.workspace-profile-logout{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:39px;margin:0;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:#85564f;font-size:10px;font-weight:650;cursor:pointer;transition:background .16s ease,color .16s ease}
.workspace-profile-logout:hover{background:#f8efec;color:#71453f}
.workspace-profile-logout .workspace-logout-icon{width:15px;height:15px}
.workspace-profile-refresh{display:inline-flex!important;align-items:center;justify-content:center;min-width:39px;min-height:39px;padding:8px!important;border:1px solid #e1e7db!important;border-radius:10px!important;background:#fbfcf9!important;color:#607a62!important}
.workspace-profile-refresh span{display:none}
.workspace-profile-refresh:hover{background:#f1f6ec!important;border-color:#c6d4bd!important}
.workspace-profile-connected{display:inline-flex!important;align-items:center;gap:6px;white-space:nowrap}
.sidebar-bottom{margin-top:auto}
.sidebar .side-profile{display:none!important}
@keyframes workspaceProfileIn{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}

html[data-theme="dark"] .workspace-profile-trigger{border-color:#355146;background:#10271f;color:#e5ede7;box-shadow:none}
html[data-theme="dark"] .workspace-profile-trigger:hover{border-color:#49675b;background:#153027}
html[data-theme="dark"] .workspace-profile-copy strong{color:#e6eee8}
html[data-theme="dark"] .workspace-profile-copy small{color:#92a59a}
html[data-theme="dark"] .workspace-profile-avatar{border-color:#455844;background:linear-gradient(145deg,#273b2f,#1d3026);color:#d9e4d8}
html[data-theme="dark"] .workspace-profile-menu{border-color:#355146;background:#0e221b;box-shadow:0 22px 55px rgba(0,0,0,.34)}
html[data-theme="dark"] .workspace-profile-menu-head{border-color:#294238}
html[data-theme="dark"] .workspace-profile-menu-head strong{color:#e5ede7}
html[data-theme="dark"] .workspace-profile-menu-head small{color:#9aaba0}
html[data-theme="dark"] .workspace-profile-menu-head em{color:#71867a}
html[data-theme="dark"] .workspace-profile-refresh{border-color:#355146!important;background:#10271f!important;color:#b8cabd!important}
html[data-theme="dark"] .workspace-profile-refresh:hover{background:#173126!important;border-color:#48675a!important}
html[data-theme="dark"] .workspace-profile-logout{color:#d6a49a}
html[data-theme="dark"] .workspace-profile-logout:hover{background:#33221f;color:#ecc0b8}

@media(max-width:650px){
 .workspace-profile-copy,.workspace-profile-chevron{display:none}
 .workspace-profile-trigger{min-height:auto;padding:3px;border-radius:50%;background:transparent;box-shadow:none}
 .workspace-profile-trigger:hover{transform:none;background:#f3f6ee}
 .workspace-profile-avatar{width:35px;height:35px}
 .workspace-profile-menu{position:fixed;top:58px;right:10px;width:min(282px,calc(100vw - 20px))}
 .workspace-profile-connected{display:none!important}
 .workspace-profile-refresh{min-width:36px;min-height:36px;padding:7px!important}
 .top-actions{gap:7px!important}
}
@media(max-width:360px){.workspace-profile-refresh{display:none!important}.workspace-profile-avatar{width:34px;height:34px}}
@media(prefers-reduced-motion:reduce){.workspace-profile-menu,.workspace-profile-trigger,.workspace-profile-chevron,.workspace-profile-logout{animation:none!important;transition:none!important}}
