/* Painel v4/v5 */
body.page-without-title main>header{display:none!important}
body.page-without-title main{padding-top:24px}
#refreshBtn{display:none!important}
#sidebarToggle{position:absolute;right:-13px;top:78px;width:26px;height:26px;border:1px solid #343842;background:#171a20;color:#fff;border-radius:999px;display:grid;place-items:center;cursor:pointer;z-index:30;font-size:15px;box-shadow:0 4px 16px rgba(0,0,0,.18)}
#sidebarToggle::before{content:'‹'}
body.sidebar-collapsed #sidebarToggle::before{content:'›'}
.logo-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent2));flex:0 0 auto}
.logo-mark svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.app-shell{grid-template-columns:210px 1fr;transition:grid-template-columns .2s ease}
.sidebar{padding:20px 12px;transition:width .2s ease,padding .2s ease;overflow:visible}
.logo{gap:9px;margin-bottom:24px}.logo strong{font-size:13px;white-space:nowrap}.logo small{font-size:11px}
.sidebar nav{gap:3px}.sidebar nav button{display:flex;align-items:center;gap:7px;padding:9px;font-size:13px;border-radius:9px}.sidebar nav button::before{content:attr(data-icon);width:19px;flex:0 0 19px;text-align:center;font-weight:800;color:#c6cad3;font-size:14px}
.sidebar nav button[data-route="conversations"]::before{content:'';width:19px;height:19px;flex:0 0 19px;background:center/17px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6cad3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3 1.6-4.8A7 7 0 0 1 3 12V9a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E")}
.sidebar-footer{font-size:12px;padding-top:13px}
body.sidebar-collapsed .app-shell{grid-template-columns:64px 1fr}body.sidebar-collapsed .sidebar{padding-left:10px;padding-right:10px}body.sidebar-collapsed .logo>div,body.sidebar-collapsed .sidebar-footer{display:none}body.sidebar-collapsed .logo{justify-content:center}body.sidebar-collapsed .sidebar nav button{font-size:0;justify-content:center;padding-left:8px;padding-right:8px}body.sidebar-collapsed .sidebar nav button::before{font-size:15px}
.users-toolbar{flex-wrap:wrap}.users-toolbar-left{display:flex;align-items:center;gap:10px;flex:0 0 auto}.users-toolbar-left>small{color:var(--muted);white-space:nowrap}.users-toolbar .user-filters{margin-left:auto;flex:1 1 760px}.provider-refresh-btn{flex:0 0 auto;white-space:nowrap;border-color:#d9dce5;background:#fff}.provider-refresh-btn:hover{background:#f7f8fb}.provider-refresh-btn:disabled{opacity:.6;cursor:wait}
.section-title.with-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title.with-meta small{font-size:11px;font-weight:650;color:var(--muted)}.active-base-chart .daily-col i{background:linear-gradient(180deg,var(--accent2),#9a86ff)}
.realtime-chat{grid-template-columns:minmax(205px,230px) 1fr}.conversation-list{padding:5px}.conversation-item{padding:11px 9px}.conversation-item strong span{font-size:13.5px;line-height:1.25}.conversation-item strong small{font-size:10px}.conversation-item p{font-size:12.5px;line-height:1.35;margin-top:6px}
.v4-modal-backdrop{position:fixed;inset:0;background:rgba(17,19,24,.45);display:grid;place-items:center;z-index:120;padding:20px}.v4-modal-card{width:min(720px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.22)}.v4-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.v4-modal-head h2{margin:0;font-size:22px}.v4-modal-head button{border:0;background:#f1f2f5;width:36px;height:36px;border-radius:10px;cursor:pointer;font-size:20px}.v4-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
@media(max-width:1100px){.app-shell{grid-template-columns:200px 1fr}.users-toolbar .user-filters{flex-basis:100%}}
@media(max-width:760px){#sidebarToggle{display:none}.app-shell,body.sidebar-collapsed .app-shell{grid-template-columns:1fr}.sidebar{padding:14px}.realtime-chat{grid-template-columns:1fr}.v4-modal-card{padding:18px}.users-toolbar-left{width:100%;justify-content:space-between}.section-title.with-meta{align-items:flex-start;flex-direction:column}}
