#gestao-overlay { position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:9000; display:none; align-items:center; justify-content:center; }
#gestao-box { background:var(--bg2,#1a1a2e); border:1px solid rgba(168,85,247,.3); border-radius:14px; padding:28px 28px 24px; width:560px; max-width:96vw; max-height:90vh; overflow-y:auto; }
#gestao-box h2 { margin:0 0 20px; font-size:16px; color:#e2d9f3; letter-spacing:.5px; }
.gest-toolbar { display:flex; justify-content:flex-end; margin-bottom:14px; }
.gest-novo-btn { background:rgba(168,85,247,.18); border:1px solid rgba(168,85,247,.4); color:#c084fc; border-radius:7px; padding:6px 14px; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; }
.gest-novo-btn:hover { background:rgba(168,85,247,.3); }
.gest-table { width:100%; border-collapse:collapse; font-size:12px; }
.gest-table th { color:rgba(255,255,255,.4); font-weight:600; text-align:left; padding:6px 8px; border-bottom:1px solid rgba(255,255,255,.07); font-size:11px; }
.gest-table td { padding:8px 8px; border-bottom:1px solid rgba(255,255,255,.05); color:#e2d9f3; vertical-align:middle; }
.gest-table tr:hover td { background:rgba(168,85,247,.06); }
.gest-role { display:inline-block; padding:2px 7px; border-radius:4px; font-size:10px; font-weight:700; }
.gest-role.admin { background:rgba(168,85,247,.2); color:#c084fc; }
.gest-role.func { background:rgba(100,116,139,.2); color:#94a3b8; }
.gest-status { display:inline-block; padding:2px 7px; border-radius:4px; font-size:10px; font-weight:700; }
.gest-status.on { background:rgba(34,197,94,.15); color:#4ade80; }
.gest-status.off { background:rgba(239,68,68,.15); color:#f87171; }
.gest-actions { display:flex; gap:5px; }
.gest-btn { background:transparent; border:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.6); border-radius:5px; padding:3px 9px; font-size:11px; font-weight:600; cursor:pointer; font-family:inherit; }
.gest-btn:hover { background:rgba(255,255,255,.08); }
.gest-btn.danger { border-color:rgba(239,68,68,.3); color:#f87171; }
.gest-btn.danger:hover { background:rgba(239,68,68,.1); }
.gest-btn.warn { border-color:rgba(245,158,11,.3); color:#fbbf24; }
.gest-btn.warn:hover { background:rgba(245,158,11,.1); }
#umod-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:9100; display:none; align-items:center; justify-content:center; }
#umod-box { background:var(--bg2,#1a1a2e); border:1px solid rgba(168,85,247,.3); border-radius:12px; padding:24px; width:360px; max-width:94vw; }
#umod-title { font-size:15px; font-weight:700; color:#e2d9f3; margin-bottom:18px; }
.umod-field { margin-bottom:12px; }
.umod-field label { display:block; font-size:11px; color:rgba(255,255,255,.5); margin-bottom:4px; }
.umod-inp { width:100%; box-sizing:border-box; background:rgba(255,255,255,.06); border:1px solid rgba(168,85,247,.2); border-radius:7px; padding:7px 10px; font-size:13px; color:#e2d9f3; font-family:inherit; outline:none; }
.umod-inp:focus { border-color:rgba(168,85,247,.6); }
.umod-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.umod-cancel { background:transparent; border:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.5); border-radius:7px; padding:7px 16px; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; }
.umod-save { background:rgba(168,85,247,.25); border:1px solid rgba(168,85,247,.4); color:#c084fc; border-radius:7px; padding:7px 16px; font-size:12px; font-weight:600; cursor:pointer; font-family:inherit; }
.umod-save:hover { background:rgba(168,85,247,.4); }
/* Botão Gestão no header */
#btn-gestao { background:rgba(168,85,247,.1); border:1px solid rgba(168,85,247,.25); color:rgba(168,85,247,.8); border-radius:6px; padding:5px 11px; font-size:11px; font-weight:600; cursor:pointer; font-family:inherit; display:none; }
#btn-gestao:hover { background:rgba(168,85,247,.22); color:#c084fc; }
/* Toast */
#studio-toast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%); background:#2d1b69; border:1px solid rgba(168,85,247,.4); color:#e2d9f3; border-radius:8px; padding:10px 22px; font-size:13px; font-weight:500; z-index:9999; opacity:0; transition:opacity .25s; pointer-events:none; }
#studio-toast.show { opacity:1; }
