:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#f5f3f1;background:#190e08;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 92% 1%,#5b351f 0%,transparent 38%),#1d110a}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}button,a{transition:background .2s,border-color .2s,color .2s}a{color:#ecccb1}.eyebrow{font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:800;color:#dea87c}.brand-mark{font-size:38px;line-height:1;color:#dea97d;text-shadow:0 0 24px #228af888}.muted,.hint{font-size:13px;color:#dda577;line-height:1.55}.hint{font-size:12px}.error{color:#ff8f9d;font-size:12px;min-height:18px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:11px 15px;font-weight:750;font-size:13px;text-decoration:none}.primary{background:linear-gradient(115deg,#d67439,#d89863);color:white;box-shadow:0 8px 25px #257efa2c}.primary:hover{background:#db9f6e}.secondary{background:#422819;color:#efeae6;border-color:#694733}.secondary:hover{background:#5a3723;border-color:#d38a4f}.accent{border-color:#936143;color:#ded5cd}.danger{background:#3b1e2b;color:#ffbdc8;border-color:#894257}.danger:hover{background:#5b2536}.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 50% 18%,#704023,#2c1a10 42%,#130b07 88%)}.auth-card{width:min(520px,100%);padding:42px 39px;border:1px solid #644330;border-radius:23px;background:linear-gradient(150deg,#43291a,#2c1b10);box-shadow:0 35px 90px #01050caa}.auth-brand-block{display:flex;flex-direction:column;gap:14px}.auth-logo{width:min(270px,100%);height:auto;display:block}.auth-card h1{font-size:34px;margin:8px 0 10px}.logo b{color:#e2b189}.auth-card p{font-size:14px;color:#e8c3a4;line-height:1.6}.auth-card label,dialog label{display:block;font-size:12px;color:#e8c1a1;font-weight:650;margin:20px 0 0}.auth-card input,dialog input,dialog select,.client-card select{width:100%;display:block;background:#28160c;color:#f9f7f5;border:1px solid #63422f;border-radius:10px;padding:13px 14px;margin-top:8px;outline:none}.auth-card input:focus,dialog input:focus,dialog select:focus,.client-card select:focus{border-color:#dea77a;box-shadow:0 0 0 3px #2385fd2e}.auth-card .primary{width:100%;margin-top:23px}.auth-foot{border-top:1px solid #5f4130;padding-top:22px;margin-top:27px;color:#d2894d;font-size:10px;letter-spacing:.12em}.auth-card .error{margin:10px 0 0}
#shell{display:flex;min-height:100vh}.sidebar{width:254px;flex-shrink:0;background:linear-gradient(165deg,#382114,#23150c 70%);border-right:1px solid #513727;padding:26px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.logo{display:flex;align-items:center;gap:11px;padding:6px 10px 47px;font-size:20px;font-weight:750;letter-spacing:-.02em}.logo small{display:block;font-size:9px;letter-spacing:.18em;color:#d79661;margin-top:6px}.side-label{font-size:10px;color:#9d7c69;letter-spacing:.14em;font-weight:750;margin:0 15px 15px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav{display:flex;align-items:center;gap:13px;background:none;border:1px solid transparent;color:#e2b38c;padding:14px 15px;border-radius:10px;text-align:left;width:100%;font-size:13px}.nav:hover,.nav.active{background:#4a2e1d;color:white}.nav.active{border-color:#835337;box-shadow:inset 3px 0 #dca171}.nav-symbol{width:22px;font-size:18px;text-align:center;color:#dea77a}.side-bottom{margin-top:auto}.side-status{border:1px solid #5e4130;border-radius:12px;padding:17px 13px;font-size:12px;color:#e9c5a8;margin-bottom:15px}.side-status small{display:block;margin:7px 0 0 15px;color:#d28749}.dot,.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#37df9c;margin-right:5px}main{min-width:0;flex:1}.topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:26px 40px;border-bottom:1px solid #4c3527;background:#0b1b30bd;backdrop-filter:blur(14px)}.topbar h2{font-size:25px;margin:6px 0 0}.top-right{display:flex;align-items:center;gap:14px}.engine,.account{border-radius:20px;padding:8px 13px;font-size:11px;background:#412819;color:#dcd3cb;border:1px solid #6c4731}.engine{color:#66e5af}.engine.offline{color:#ffacb1}.account{background:#52321f}.content{padding:31px 40px;max-width:1700px;margin:auto}.intro,.panel-title{display:flex;justify-content:space-between;align-items:center;gap:18px}.intro{margin-bottom:27px}.intro h3{font-size:27px;margin:9px 0 6px}.intro p{margin:0}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:20px 0 35px}.stat{background:linear-gradient(138deg,#42291a,#2f1e13);border:1px solid #5d4131;border-radius:16px;padding:22px;box-shadow:0 13px 34px #0002}.stat span{font-size:10px;letter-spacing:.13em;font-weight:800;color:#e0ac81}.stat strong{display:block;font-size:43px;font-weight:800;margin:11px 0 2px}.stat small{font-size:12px;color:#dda578}.panel-title{margin:25px 0 19px}.panel-title h3{font-size:18px;margin:0 0 6px}.panel-title p{margin:0}.live-pill{font-size:10px;letter-spacing:.1em;font-weight:800;border:1px solid #654938;border-radius:30px;padding:10px 13px;background:#3a2316}.live-pill .live-dot{background:#ff4c62;box-shadow:0 0 0 4px #ff435922}.camera-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(345px,1fr));gap:20px}.camera-card{border:1px solid #5e402f;border-radius:16px;overflow:hidden;background:#352115;box-shadow:0 18px 42px #0003;transition:border-color .2s,transform .2s}.camera-card:hover{border-color:#d48d52;transform:translateY(-2px)}.video{aspect-ratio:16/9;position:relative;background:#130a05}.video iframe{width:100%;height:100%;border:0;display:block}.video-offline{display:grid;place-items:center;color:#d89761}.camera-badge{position:absolute;bottom:11px;right:12px;font-size:10px;letter-spacing:.04em;border-radius:8px;padding:7px 9px;background:#08182ccc;border:1px solid #ffffff1b;color:#e0d8d1;pointer-events:none}.camera-info{padding:17px}.camera-info strong{font-size:16px}.camera-info small{display:block;color:#dea87c;font-size:12px;margin-top:6px}.camera-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:17px}.camera-actions button{font-size:11px;padding:9px 12px}.empty,.list-panel{padding:23px;border-radius:15px;background:#372216;color:#e0ad84;border:1px solid #624636}.list-row{display:flex;gap:15px;align-items:center;justify-content:space-between;border-bottom:1px solid #5b3f2f;padding:15px 5px}.list-row:last-child{border:0}.list-row small{display:block;color:#dfab80;margin-top:5px}.user-tag,.plan-tag{font-size:10px;font-weight:850;letter-spacing:.1em;border-radius:20px;padding:9px 12px;background:#5a351f;color:#ebcbb0;border:1px solid #82563c}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:23px 0}.plan-box{padding:21px;border-radius:14px;border:1px solid #674835;background:linear-gradient(135deg,#442919,#301d12)}.plan-box span{font-size:10px;font-weight:800;color:#e2b38c;letter-spacing:.12em}.plan-box b{display:block;font-size:32px;margin:12px 0 4px}.plan-box small{color:#dea87b}.client-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px}.client-card{border-radius:16px;border:1px solid #644532;background:#362216;padding:21px;box-shadow:0 15px 36px #0002}.client-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.client-card h4{margin:8px 0;font-size:17px}.client-card-heading small{color:#dfaa7f}.client-cameras{color:#e4b691;line-height:1.5;font-size:12px;margin:20px 0;padding:11px 0;border-top:1px solid #5c3e2d;border-bottom:1px solid #5c3e2d}.plan-select-label{display:block;font-size:12px;color:#e8c3a4;font-weight:650;margin:12px 0}.client-card .primary{margin-top:12px;width:100%}.toolbar,.record-toolbar{display:flex;flex-wrap:wrap;gap:9px}.recordings-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(325px,1fr));gap:15px}.record-summary{background:#3a2316;border:1px solid #624330;border-radius:14px;padding:21px;display:flex;align-items:center;gap:15px;flex-wrap:wrap}.record-summary-icon{font-size:25px;color:#e4b691}.record-summary strong{display:block}.record-summary small{display:block;color:#dea87b;font-size:11px;margin-top:5px}.record-summary button{margin-left:auto}#recordings-status{margin-top:23px}
dialog{width:min(520px,calc(100% - 24px));max-height:90vh;overflow:auto;padding:27px;border-radius:18px;border:1px solid #704e3a;background:linear-gradient(145deg,#432a1c,#2c1b10);color:#f6f3f1;box-shadow:0 34px 90px #000a}dialog::backdrop{background:#030914d9;backdrop-filter:blur(3px)}.modal-top,.record-modal-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.modal-top h3,.record-modal-top h3{margin:0;font-size:21px}.close{font-size:28px;color:#eac8ac;border:none;background:none;cursor:pointer}.close:hover{color:white}.secret{word-break:break-all;margin:14px 0;border:1px solid #654431;background:#23140b;padding:12px;border-radius:10px;color:#e0d8d0;font:12px ui-monospace,monospace}dialog .primary{width:100%;margin-top:20px}.record-dialog{width:min(1000px,calc(100% - 24px));max-width:1000px}.record-dialog .record-modal-top{padding-bottom:21px;border-bottom:1px solid #5f4130}.record-dialog .record-modal-top h3{margin:6px 0 5px}.record-dialog .record-modal-top p{margin:0}.record-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;padding-top:21px}.record-day-list{max-height:470px;overflow:auto;display:flex;flex-direction:column;gap:8px}.day-button{border-radius:10px;border:1px solid #664532;background:#362114;text-align:left;padding:13px;color:#f2efec}.day-button:hover,.day-button.active{border-color:#e0ad83;background:#563521}.day-button strong{display:block;font-size:12px}.day-button small{display:block;color:#e3b48e;margin-top:5px;font-size:10px}.record-screen{position:relative;aspect-ratio:16/9;background:#150c06;border-radius:12px;overflow:hidden;display:grid;place-items:center;border:1px solid #634432}.record-screen video{max-width:100%;width:100%;height:100%;object-fit:contain}.record-screen video[hidden]{display:none}.record-screen #record-empty{color:#dea87b;padding:20px;text-align:center;font-size:13px}.record-toolbar{margin-top:14px}.record-toolbar .primary{width:auto}.record-toolbar a{text-decoration:none}.record-player-area #record-feedback{margin-top:14px}
@media(max-width:1050px){.sidebar{width:213px}.topbar,.content{padding-left:25px;padding-right:25px}.camera-grid{grid-template-columns:repeat(auto-fill,minmax(295px,1fr))}}
@media(max-width:760px){.sidebar{width:67px;padding:16px 6px}.sidebar .logo{justify-content:center;padding:6px 0 33px}.sidebar .logo>div,.sidebar .side-label,.sidebar .nav>span:not(.nav-symbol),.side-status{display:none}.sidebar .nav{justify-content:center;padding:12px}.topbar,.content{padding:19px 16px}.topbar{align-items:flex-start}.top-right{flex-direction:column;align-items:flex-end;gap:6px}.engine,.account{font-size:10px}.stats{grid-template-columns:1fr;gap:10px}.stat{padding:16px}.stat strong{font-size:29px}.intro{align-items:flex-start;flex-wrap:wrap}.intro h3{font-size:22px}.panel-title{flex-wrap:wrap}.camera-grid,.client-grid,.plan-grid{grid-template-columns:minmax(0,1fr)}.record-layout{grid-template-columns:1fr}.record-day-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));max-height:165px}.record-dialog{padding:18px}.record-summary button{margin-left:0}}
@media(max-width:430px){.auth-card{padding:28px}.sidebar{width:55px}.content{padding:15px}.topbar{padding:15px}.camera-grid{grid-template-columns:minmax(0,1fr)}.stats{grid-template-columns:1fr}.camera-actions button{flex:1}.topbar h2{font-size:19px}}

.nav-icon{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px}
.nav-icon svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}
.logo-block{padding:6px 10px 28px}.sidebar-logo{width:168px;max-width:100%;height:auto;display:block}.logo-block small{display:block;font-size:10px;letter-spacing:.18em;color:#d79661;margin-top:12px;padding-left:3px}
.logo{display:none}
.auth-card h1{line-height:1.15}
.auth-foot{letter-spacing:.08em}
.security-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.security-card{background:linear-gradient(145deg,#3c2518,#301e13);border:1px solid #5d402f;border-radius:16px;padding:22px;box-shadow:0 12px 30px #0002}
.security-card h4{margin:0 0 10px;font-size:18px}.security-card p,.security-card li{color:#e2b28a;font-size:13px;line-height:1.6}.security-card ul{margin:0;padding-left:18px}
.panel-title .toolbar .secondary{padding-inline:12px}
.record-summary,.client-card,.stat,.camera-card,.plan-box,.security-card{backdrop-filter:blur(6px)}
.video-toolbar{position:absolute;right:10px;bottom:10px}
@media(max-width:760px){.sidebar-logo{display:none}.logo-block small{display:none}.nav-icon{width:24px;height:24px}}

/* v0.5.1 — feedback claro ao navegar */
.sidebar .nav{position:relative;z-index:1;touch-action:manipulation}
.sidebar .nav.active .nav-icon{color:#dbd2c9}
.sidebar .nav:focus-visible{outline:2px solid #e5bb99;outline-offset:2px}
.sidebar .nav.active{background:linear-gradient(100deg,#5b3722,#432919)}
.logo-block{min-height:113px}

.sidebar{z-index:10}

/* Fluxo de cadastro: Cliente > Usuário > Câmera */
.intro-actions{display:flex;gap:9px;flex-wrap:wrap}
.setup-flow{border:1px solid #744b33;background:linear-gradient(130deg,#462a1a,#2c1a0f);border-radius:18px;padding:23px;margin-bottom:26px}
.setup-head h3{font-size:22px;margin:8px 0 7px}.setup-head p{color:#e3b590;font-size:13px;line-height:1.6;margin:0 0 20px}
.setup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.setup-step{display:flex;align-items:center;gap:13px;text-align:left;border:1px solid #694834;background:#301c10;color:#f5f3f1;border-radius:13px;padding:17px;min-width:0}
.setup-step:hover,.setup-step:focus-visible{border-color:#dfa97d;background:#442817;outline:none;transform:translateY(-1px)}
.setup-step-icon{display:grid;place-items:center;width:37px;height:37px;flex-shrink:0;border-radius:10px;background:#5a341e;color:#e8c1a1}
.setup-step-icon svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.setup-step-body{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.setup-step-body small{color:#dea87b;font-weight:850;font-size:9px;letter-spacing:.1em}.setup-step-body strong{font-size:13px}.setup-step-body>span{font-size:11px;color:#dea87c;line-height:1.4}
.setup-step-state{font-size:10px;align-self:flex-start;color:#f8c578;background:#493a20;padding:5px 8px;border-radius:7px;white-space:nowrap}.setup-step-state.done{color:#7cf0c0;background:#133e36}
.setup-step.done{border-color:#245e53}.setup-step.done .setup-step-icon{background:#164637;color:#84f1c6}
.empty-camera{display:flex;flex-direction:column;align-items:flex-start;gap:10px;grid-column:1/-1;min-height:150px;justify-content:center;background:linear-gradient(130deg,#3d2619,#301d12)}
.empty-camera strong{color:#f5f2ef;font-size:17px}.empty-camera p{max-width:670px;color:#e0ad83;font-size:13px;line-height:1.55;margin:0}.empty-camera button{margin-top:5px}
@media(max-width:1200px){.setup-steps{grid-template-columns:1fr}.setup-step{align-items:center}}
@media(max-width:760px){.setup-flow{padding:16px}.setup-step{padding:13px}}

/* Proteus Cloud v0.5.5 - conectividade de ONTs */
.network-panel{background:linear-gradient(145deg,#432818,#2d1b10);border:1px solid #744c35;border-radius:18px;padding:24px;margin-bottom:24px;box-shadow:0 20px 60px #0002}.network-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.network-header h4{font-size:21px;margin:7px 0 6px}.network-header p{margin:0}.network-status-tag{font-size:10px;font-weight:800;letter-spacing:.08em;background:#422717;color:#75efcd;border:1px solid #236b6c;border-radius:20px;padding:9px 12px}.network-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.network-form label{font-size:12px;font-weight:700;color:#eac6a9;display:block}.network-form input:not([type=checkbox]){margin-top:7px;display:block;width:100%;border:1px solid #694a38;border-radius:10px;background:#2a170c;color:#f6f3f1;padding:12px;font:inherit;min-width:0}.network-form input:focus{outline:2px solid #d6925b;outline-offset:2px}.network-form .network-check{display:flex;align-items:center;gap:10px;grid-column:1/-1;line-height:1.45}.network-check input{width:18px;height:18px;flex-shrink:0;accent-color:#d69159}.network-form-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}.network-form-actions button{margin:0}.network-path{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0;color:#ecccb2;font-size:12px}.network-path code{background:#26140a;padding:10px 12px;border:1px solid #5c3e2c;border-radius:8px;color:#ddd4cb;overflow-wrap:anywhere}.network-stream-list{margin-top:17px;border-top:1px solid #63422f;padding-top:13px}.network-camera-row{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #4d3121;font-size:13px}.network-camera-row span:first-child{font-weight:750}.net-online{color:#63e9ae}.net-offline{color:#f0be82}@media(max-width:790px){.network-form{grid-template-columns:1fr}.network-panel{padding:17px}.network-camera-row{flex-direction:column;gap:3px}}


/* PROTEUS CLOUD 0.6 — design preto, grafite e laranja */
:root{--bg:#08090b;--panel:#141517;--panel2:#1b1c1f;--border:#37312b;--orange:#ff8517;--orangeLight:#ffb65b;--text:#f5f3f1;--muted:#aaa7a3;color:var(--text);background:var(--bg)}
body{background:radial-gradient(ellipse at 88% -12%,#48230b 0%,transparent 33%),#090a0c;color:var(--text)}
.eyebrow{color:#ff932a;letter-spacing:.16em}
a{color:var(--orangeLight)}
.primary{background:linear-gradient(120deg,#ff971e,#e56708);color:#160c04;border-color:#ff9c30;box-shadow:0 10px 28px #f26c0d22}
.primary:hover{background:#ffad38;color:#160c04}
.secondary{background:#222225;color:#f0e7db;border-color:#49413b}.secondary:hover{background:#37302a;border-color:#f58a25}
.accent{border-color:#b66a2a;color:#ffbb76}.danger{background:#3b1d1b;border-color:#67322d;color:#ffbbb4}
.auth-wrap{background:radial-gradient(ellipse at 50% 12%,#542706 0%,#191512 35%,#070708 90%)}
.auth-card{border:1px solid #6d4228;background:linear-gradient(155deg,#23201e,#0f1012 75%);max-width:570px;box-shadow:0 35px 100px #000b}
.auth-logo{width:min(335px,100%);max-height:345px;object-fit:contain;margin:0 auto}.auth-brand-block{text-align:center}
.auth-card h1{text-align:center;font-size:31px}.auth-card p{text-align:center;color:#b4aaa1}.auth-foot{text-align:center;border-top-color:#403127}
.auth-card input,dialog input,dialog select,.client-card select{background:#111214;border:1px solid #50423a;color:#fff7ed}
.auth-card input:focus,dialog input:focus,dialog select:focus,.client-card select:focus{border-color:#ff961d;box-shadow:0 0 0 3px #ff851725}
.sidebar{width:284px;background:linear-gradient(180deg,#151515 0%,#0c0c0d 65%);border-right:1px solid #37302b;padding:14px 13px 21px}
.logo-block{padding:0 4px 10px;min-height:0;text-align:center}.sidebar-logo{width:234px;height:267px;max-width:100%;object-fit:contain;margin:auto}.logo-block small{display:block;margin:-10px auto 22px;color:#c47b39;font-size:9px;padding:0;letter-spacing:.25em}
.side-label{color:#8e7766}.nav{color:#bfb4aa}.nav:hover{background:#25201d;color:#fff7ed}
.sidebar .nav.active{background:linear-gradient(95deg,#512b11,#211a17);color:#fff5e9;border-color:#8f4a17;box-shadow:inset 3px 0 #ff8c1b}
.sidebar .nav.active .nav-icon{color:#ffb35c}.sidebar .nav:focus-visible{outline-color:#ffa43b}
.side-status{background:#171515;border-color:#41322a;color:#d9c7b8}.side-status small{color:#b29a86}
.topbar{background:#111113dc;border-bottom:1px solid #35302c}.topbar h2{color:#fff4e9}.engine,.account{border-color:#4c3b30;background:#201c19;color:#ffbe7f}.engine{color:#5ee0a5}
.content{max-width:1850px}.intro h3{color:#fff8ee}.stat{background:linear-gradient(135deg,#22201f,#151518);border-color:#44382e;position:relative;overflow:hidden}
.stat:before{content:'';position:absolute;width:70px;height:70px;border-radius:50%;background:#ff861712;right:-24px;top:-20px}.stat span{color:#ccb4a0}.stat small{color:#a9a19c}.stat strong{color:#fff4e9}.stat strong.positive{color:#5ce4a6}.stat strong.negative{color:#ff8e70}
.panel-title h3{font-size:20px}.panel-title p,.intro p{color:#ada49c}.live-pill{background:#271913;border-color:#76451e;color:#ffbc7e}.live-dot{background:#ff5e3b}
.camera-card,.client-card,.plan-box,.record-summary,.security-card,.network-panel{border-color:#4b382c;background:linear-gradient(150deg,#24201d,#151516);box-shadow:0 14px 30px #0005}
.camera-card:hover{border-color:#f0811a}.plan-box span{color:#ffad54}.client-card-heading h4{color:#fff6ed}.client-cameras{color:#aca29a;border-color:#47372c}
.plan-tag,.user-tag{background:#3b2415;border-color:#915323;color:#ffc28a}
.setup-flow{background:linear-gradient(130deg,#29221d,#121315);border-color:#68452d}.setup-step{background:#1b1a1a;border-color:#4c3c32}.setup-step:hover{background:#32261f;border-color:#ef8a22}.setup-step-icon{background:#432817;color:#ffac54}.setup-step-body small{color:#f8a45d}
.network-panel{background:linear-gradient(145deg,#24201d,#121313);border-color:#67422b}.network-form input:not([type=checkbox]){background:#111113;border-color:#4d3b30}.network-form input:focus{outline-color:#ff9327}.network-path code{background:#121315;color:#ffd1a0;border-color:#5e3a20}
.network-form .network-check input{accent-color:#fb851a}.network-camera-row{border-color:#46372a}
.panel-box{background:linear-gradient(145deg,#1d1d1e,#141415);border:1px solid #38302b;border-radius:18px;padding:24px;box-shadow:0 18px 50px #0003}
.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.panel-box-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:21px}.panel-box h3{font-size:18px;margin:0}.pill-small{font-size:9px;letter-spacing:.1em;color:#ffb66e;background:#3a2518;border:1px solid #7a471f;padding:7px 11px;border-radius:99px;white-space:nowrap;font-weight:850}
.donut-wrap{display:flex;align-items:center;justify-content:center;gap:38px;min-height:225px}.health-donut{width:190px;height:190px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;background:conic-gradient(#42d99b 0 var(--online-ratio,0%),#df6545 var(--online-ratio,0%) 100%);position:relative;box-shadow:0 0 0 8px #0002}.health-donut:after{content:'';position:absolute;inset:18px;border-radius:50%;background:#171719}.health-donut>div{z-index:1;display:flex;flex-direction:column;align-items:center}.health-donut strong{font-size:36px}.health-donut small{font-size:11px;color:#c8b6a5}.donut-legend{min-width:135px}.donut-legend p{display:flex;align-items:center;gap:10px;font-size:12px;color:#d3c6ba}.donut-legend b{margin-left:auto;color:white}.status-dot{width:9px;height:9px;display:inline-block;border-radius:50%}.status-dot.online{background:#43df97}.status-dot.offline{background:#e36b4f}
.plan-bars{min-height:225px;display:flex;flex-direction:column;justify-content:center;gap:23px}.plan-bar-line{display:grid;grid-template-columns:65px 1fr 26px;align-items:center;gap:15px;font-size:13px;color:#d6c6b8}.plan-bar-track{height:16px;border-radius:7px;background:#35302d;overflow:hidden}.plan-bar-track>div{height:100%;border-radius:7px;background:linear-gradient(90deg,#aa4b0a,#ff941f);transition:width .3s}.plan-bar-line b{text-align:right;color:white}
.status-box{margin:0 0 22px}.table-head{align-items:center}.table-head p{margin:5px 0 0}.table-tools{display:flex;gap:8px;flex-wrap:wrap}.table-tools input{width:220px;background:#111113;border:1px solid #514138;border-radius:10px;padding:11px;color:#f7e8d6;outline:none}.table-tools input:focus{border-color:#ff9a2b}.table-scroll{overflow-x:auto}.health-table{width:100%;border-collapse:collapse;min-width:640px;font-size:12px}.health-table th{text-align:left;color:#998f87;font-size:10px;letter-spacing:.13em;padding:14px;border-bottom:1px solid #40342b}.health-table td{padding:16px 14px;border-bottom:1px solid #302a26;color:#d5c6b9}.health-table td strong{color:#fff2e5}.health-table tr.needs-attention{background:#4e21161b}.health-table tr.needs-attention td:first-child{border-left:3px solid #ef7644}.health-state{font-weight:800;font-size:10px;padding:7px 10px;border-radius:99px;white-space:nowrap}.health-state.online{color:#66e4a7;background:#143526}.health-state.attention{color:#ff9271;background:#3e2018}.health-state.empty,.health-state.unknown{color:#c6b8a5;background:#332e2a}.health-updated{font-size:11px;color:#938c85;margin:14px 0 0}.table-empty{text-align:center;padding:26px!important}
.mosaic-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:15px;border:1px solid #44352b;border-radius:14px 14px 0 0;background:#1a1818}.mosaic-sizes,.mosaic-navigation{display:flex;align-items:center;gap:8px}.mosaic-size{padding:9px 13px;border:1px solid #514036;background:#24201e;color:#d9c5b1;border-radius:9px;font-weight:800}.mosaic-size:hover,.mosaic-size.active{color:#1b1008;border-color:#ff9832;background:linear-gradient(100deg,#ffb03e,#e67a11)}.mosaic-navigation span{font-size:11px;color:#b8a99b;margin-right:7px}.mosaic-navigation button{padding:9px 12px}
.mosaic-stage{padding:8px;background:#050506;border:1px solid #44352b;border-top:0;border-radius:0 0 15px 15px}.mosaic-stage:fullscreen{overflow:auto;display:grid;place-items:center;padding:14px}.mosaic-stage:fullscreen .mosaic-grid{width:100%;max-height:100vh}.mosaic-grid{display:grid;gap:7px}.mosaic-n-1{grid-template-columns:repeat(1,minmax(0,1fr))}.mosaic-n-2,.mosaic-n-4{grid-template-columns:repeat(2,minmax(0,1fr))}.mosaic-n-8,.mosaic-n-16{grid-template-columns:repeat(4,minmax(0,1fr))}.mosaic-tile{position:relative;min-width:0;aspect-ratio:16/9;background:#111112;overflow:hidden;border:1px solid #42352b;border-radius:8px}.mosaic-tile iframe{border:0;display:block;width:100%;height:100%;background:#080808}.mosaic-tile-footer{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;gap:7px;align-items:center;background:linear-gradient(transparent,#080808ea);padding:22px 10px 8px;pointer-events:none}.mosaic-tile-footer strong{font-size:clamp(10px,1vw,13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mosaic-tile-status{font-size:9px;color:#f99d6d;white-space:nowrap}.mosaic-tile-status.stream-ok{color:#54e9a0}.mosaic-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#736358;gap:9px;background:repeating-linear-gradient(135deg,#101012,#101012 16px,#141416 17px)}.mosaic-empty-icon{font-size:27px;color:#5b4030}.mosaic-empty small{font-size:9px;letter-spacing:.12em}
.camera-grid{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:13px}.camera-management{padding:19px}.camera-manager-head{display:flex;align-items:center;gap:13px}.camera-manager-icon{width:44px;height:44px;display:grid;place-items:center;color:#ff9b3d;background:#3a2417;border:1px solid #6d3e1e;border-radius:11px;font-size:24px}.camera-manager-names{flex:1;min-width:0}.camera-manager-names strong{display:block;font-size:15px}.camera-manager-names small{display:block;font-size:11px;color:#aa9d91;margin-top:5px}.camera-state-tag{font-size:9px;letter-spacing:.03em;font-weight:800;color:#d4b69a;background:#382b22;border:1px solid #6a4935;border-radius:9px;padding:7px}.camera-state-tag.online{background:#173729;border-color:#2d6950;color:#6fe2ad}.camera-state-tag.offline{background:#45221a;border-color:#883f2b;color:#ff9b76}.camera-management .camera-actions{margin-top:20px;border-top:1px solid #49362d;padding-top:16px}
.users-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:15px}.user-card{display:flex;align-items:center;gap:14px;border:1px solid #46382c;background:linear-gradient(130deg,#24201e,#151516);border-radius:16px;padding:21px;min-width:0}.user-avatar{width:53px;height:53px;border-radius:15px;background:linear-gradient(135deg,#ffad41,#a4470b);color:#160d06;display:grid;place-items:center;font-size:17px;font-weight:900;flex-shrink:0}.user-details{flex:1;min-width:0}.user-details strong{display:block;font-size:15px;overflow-wrap:anywhere}.user-details small{display:block;color:#aa9889;margin-top:6px;font-size:11px}
dialog{border-color:#714729;background:linear-gradient(150deg,#25201d,#111112);color:#fff6eb}.close{color:#f2aa79}.secret{border-color:#704528;background:#100e0d;color:#ffc992}.day-button{border-color:#4b3729;background:#221e1c;color:#ffefdc}.day-button:hover,.day-button.active{border-color:#ef8423;background:#4b2c17}.record-dialog{width:min(1170px,calc(100% - 24px));max-width:1170px}.record-layout{grid-template-columns:210px minmax(0,1fr)}.record-screen{background:#050505;border-color:#654229}.record-screen video{background:#050505}
.record-timeline-box{background:#181717;border:1px solid #4b3528;border-radius:12px;margin-top:11px;padding:14px}.timeline-top,.timeline-labels{display:flex;justify-content:space-between;gap:10px;align-items:center}.timeline-top{font-size:12px;color:#f0d7bd}.timeline-top>span{color:#ffad69;font-weight:850;font-size:10px}.record-timeline-box input[type=range]{width:100%;margin:16px 0 10px;accent-color:#ff881c;cursor:pointer}.timeline-labels{font-size:11px;color:#a99280}.record-live-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:16px}.record-live-tools label{font-size:11px;color:#d2bdab}.record-live-tools input{accent-color:#ff8b20}.record-live-tools button{padding:8px 12px;font-size:11px}
@media(max-width:1200px){.analytics-grid{grid-template-columns:1fr}.sidebar{width:245px}.sidebar-logo{width:205px;height:225px}}
@media(max-width:890px){.sidebar{width:78px;padding:12px 6px}.logo-block{padding:0}.sidebar-logo{width:61px;height:79px;display:block}.logo-block small,.side-label,.sidebar nav .nav>span:not(.nav-icon),.side-status,#logout>span:not(.nav-icon){display:none}.sidebar .nav{justify-content:center;padding:13px}.donut-wrap{gap:20px}.mosaic-n-8,.mosaic-n-16{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.content,.topbar{padding:16px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-box{padding:16px}.mosaic-toolbar{align-items:flex-start}.mosaic-tile-footer{padding:16px 5px 5px}.mosaic-tile-footer strong{font-size:10px}.mosaic-tile-status{font-size:8px}.record-layout{grid-template-columns:1fr}.table-tools input{max-width:100%}}
@media(max-width:520px){.sidebar{width:57px}.sidebar-logo{width:45px;height:60px}.stats{grid-template-columns:1fr 1fr;gap:9px}.stat{padding:14px}.stat strong{font-size:29px}.stat span{font-size:9px}.mosaic-sizes{gap:4px}.mosaic-size{padding:7px 9px}.mosaic-n-2,.mosaic-n-4,.mosaic-n-8,.mosaic-n-16{grid-template-columns:1fr}.mosaic-tile{min-height:185px}.donut-wrap{flex-direction:column}.user-card{padding:14px}.record-dialog{padding:12px}}

.mosaic-offline-screen{width:100%;height:100%;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#332116,#101011 75%);color:#977963;font-size:12px}.mosaic-offline-screen:before{content:'◉';display:block;font-size:40px;color:#66412a;position:absolute;top:27%;left:50%;transform:translateX(-50%)}

/* Quatro indicadores lado a lado no painel administrativo */
.stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1240px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* PROTEUS CLOUD 0.6.1 — painel funcional inspirado na referência aprovada. */
:root{--black:#09090b;--panel:#141416;--panel2:#19191b;--border:#38383a;--orange:#ff7900;--orange2:#ff9a24;--green:#18d43e;--red:#f44940;--gray:#a7a7aa;color-scheme:dark;color:#f6f6f6;background:var(--black);font-family:Inter,'Segoe UI',Arial,sans-serif}
html{scroll-behavior:smooth}
body{background:radial-gradient(circle at 18% 0,#1b100b 0,transparent 23%),#070708;color:#f5f5f5}
button,input,select{font-family:inherit}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #ffad49;outline-offset:2px}
.muted,.hint{color:#9f9fa3}
.eyebrow{color:#f89726}
.primary{background:linear-gradient(125deg,#ff9012,#e86600);color:#fff;border:1px solid #ffa034;box-shadow:0 5px 18px #f66c001f}
.primary:hover{background:#ff9a1a}
.secondary{background:#202023;color:#eee;border-color:#4b4b4d}.secondary:hover{background:#353437;border-color:#e77918}
#shell{background:#070708;align-items:flex-start}
.sidebar{width:278px;min-width:278px;height:100vh;min-height:780px;position:sticky;top:0;padding:0;background:linear-gradient(165deg,#1d0d04 0%,#0a0a0c 31%,#08080a 74%,#160c07 100%);border-right:1px solid #33261d;overflow:hidden;z-index:3}
.sidebar::after{position:absolute;content:'';pointer-events:none;bottom:-48px;right:-54px;border-radius:80% 5% 0 0;transform:rotate(-22deg);height:112px;width:145px;background:linear-gradient(130deg,#ff9100,#fc5e00);filter:blur(.5px);opacity:.97}
.logo-block{padding:0;margin:0;height:318px;flex:0 0 318px;position:relative;display:block}
.sidebar-logo{width:278px!important;height:318px!important;max-width:none!important;display:block!important;object-fit:cover;object-position:center top;filter:none}
.sidebar nav{display:flex;flex-direction:column;gap:2px;padding:10px 15px 0;position:relative;z-index:1}
.sidebar .nav{width:100%;display:flex;align-items:center;gap:14px;border-radius:10px;padding:11px 14px;border:1px solid transparent;color:#ecebec;font-size:14px;font-weight:550;min-height:43px;background:transparent}
.sidebar nav .nav:hover{color:#fff;background:#29221d}
.sidebar nav .nav.active{background:linear-gradient(110deg,#ff8100,#c95202);border-color:#ffb11c;color:#fff;box-shadow:0 3px 16px #ff73003b;}
.sidebar .nav-icon{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;color:#ededed}
.sidebar .nav-icon svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8}
.sidebar .side-bottom{position:relative;z-index:2;margin-top:auto;padding:16px 20px 22px;display:flex;flex-direction:column-reverse;gap:5px}
.side-status{background:none;border:0;border-top:1px solid #4a2b1c;padding:12px 0 0;margin:0;color:#b7b7ba;font-weight:500;font-size:11px;display:flex;align-items:center;gap:7px;border-radius:0}
.side-status small{font-size:11px;color:#b78c71;display:inline;margin:0}
#logout{font-size:12px;min-height:30px;padding:5px 0;color:#c0bbbb;background:none;border:0}
main{width:calc(100% - 278px);min-width:0;flex:1;background:linear-gradient(#0d0d0f 0,#080809 130px,#080809 100%)}
.topbar{height:86px;padding:13px 22px;border-bottom:1px solid #303033;background:linear-gradient(100deg,#111113,#09090a);backdrop-filter:none;gap:12px}
.topbar-heading{border-left:5px solid var(--orange);padding-left:14px}
.topbar h2{font-size:31px;font-weight:760;letter-spacing:-.045em;line-height:1.1;margin:0 0 4px}
.topbar-heading p{color:#b8b8bb;font-size:14px;margin:0}
.top-right{display:flex;gap:17px;align-items:center}
.top-notification{width:28px;height:28px;position:relative;display:inline-flex;align-items:center;justify-content:center;color:#eee}
.top-notification svg{width:24px;height:24px}.top-notification i{position:absolute;top:0;right:-2px;background:#ff7900;border-radius:50%;width:11px;height:11px;box-shadow:0 0 12px #ff790088}
.header-divider{height:36px;width:1px;background:#777378;margin:0 6px}
.header-avatar svg{width:41px;height:41px;display:block}
.account-stack{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:110px}.account{background:none;border:0;padding:0;color:#fff;font-size:14px;font-weight:800}.engine{border:0;background:none;padding:0;color:#a2a2a4;font-size:11px;font-weight:400}.engine.offline{color:#ff998e}.account-chevron{font-size:21px;color:#ddd;margin-left:2px}
.content{padding:14px 20px 32px;margin:0 auto;max-width:2000px}
.subpage-intro{margin:16px 0 17px;background:transparent}.subpage-intro h3{font-size:20px;margin:5px 0}.subpage-intro .eyebrow{display:none}.subpage-intro p{color:#b0a7a0}
.dashboard-hub{display:grid;grid-template-columns:minmax(0,1.16fr) minmax(0,1fr);gap:15px;align-items:start}
.dashboard-left,.dashboard-right{display:flex;flex-direction:column;min-width:0;gap:16px}
#dashboard-hub .stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:6px 0 0}
#dashboard-hub .stat{position:relative;border-radius:14px;border:1px solid #3b3938;min-height:125px;padding:19px 12px 14px 18px;background:linear-gradient(140deg,#171719,#101011 73%);box-shadow:inset 0 1px #ffffff0b,0 10px 20px #0008;display:flex;align-items:flex-start;gap:12px}
#dashboard-hub .stat:nth-child(2){border-bottom-color:#a2500a}
.stat-ico{color:#ff840a;flex:0 0 26px;margin-top:10px}.stat-ico svg{width:26px;height:26px;stroke-width:1.8}
.stat-body{display:flex;flex-direction:column;gap:4px;min-width:0}
#dashboard-hub .stat span{font-size:13px;color:#f3f3f4;letter-spacing:0;font-weight:500;text-transform:none;white-space:nowrap}
#dashboard-hub .stat strong{font-size:35px;font-weight:750;letter-spacing:-.04em;margin:0;color:#fff;line-height:1}
#dashboard-hub .stat strong.positive,#dashboard-hub .stat strong.negative{color:#f5f5f7}
#dashboard-hub .stat small{color:#9da1a0;font-size:10px;line-height:1.3;margin-top:6px}
#dashboard-hub .analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:15px}
#dashboard-hub .panel-box{padding:17px 18px;min-height:248px;border:1px solid #38383a;background:linear-gradient(160deg,#19191b,#101012 74%);border-bottom:2px solid #ad5209;border-radius:15px;box-shadow:0 16px 28px #0009}
#dashboard-hub .panel-box h3{font-size:17px;font-weight:700;letter-spacing:-.025em;display:flex;align-items:center;gap:7px;margin:0}
.heading-icon{color:#ff870d;font-size:23px;font-weight:800;margin-right:3px}
#dashboard-hub .panel-box-head{margin-bottom:14px;gap:8px}
#dashboard-hub .donut-wrap{min-height:185px;gap:15px;justify-content:space-around}
#dashboard-hub .health-donut{--online-ratio:0%;height:160px;width:160px;flex:0 0 160px;background:conic-gradient(#18cc3b 0 var(--online-ratio),#f4524a var(--online-ratio) 100%);box-shadow:none}
#dashboard-hub .health-donut:after{inset:21px;background:#101012}
#dashboard-hub .health-donut strong{font-size:31px}
#dashboard-hub .health-donut small{font-size:11px;color:#d8d8dc}
#dashboard-hub .donut-legend{min-width:108px}
#dashboard-hub .donut-legend p{color:#e0e0e1;white-space:normal;display:flex;flex-wrap:wrap;font-size:11px;gap:6px}
#dashboard-hub .donut-legend b{margin-left:0;font-weight:700}
#dashboard-hub .status-dot.online{background:#17d63e}.status-dot.offline{background:#f34b41}
#dashboard-hub .plan-bars{height:183px;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end;padding:4px 16px 0;position:relative;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#373739 40px,#373739 41px)}
.plan-vertical-col{height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:5px;min-width:0}
.plan-column-height{height:152px;width:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}
.plan-column-bar{width:70%;min-height:3px;border-radius:3px 3px 0 0;background:linear-gradient(180deg,#ff9a0e,#d65400);border-top:1px solid #ffb248;position:relative}
.plan-column-bar strong{color:white;font-size:12px;position:absolute;bottom:100%;left:50%;transform:translateX(-50%);padding-bottom:5px}
.plan-vertical-col small{color:#eaeaea;font-size:11px;white-space:nowrap;line-height:17px}
#dashboard-hub .status-box{margin:0;min-height:296px;display:flex;flex-direction:column}
#dashboard-hub .status-box .table-head{margin:0 0 7px}.table-head input{width:194px;border-radius:8px;background:#131315;border:1px solid #555054;font-size:12px;padding:9px}.table-head button{padding:9px 12px;font-size:12px}
#dashboard-hub .health-table{min-width:550px;font-size:11px}
#dashboard-hub .health-table th{color:#c6c2c1;font-weight:600;letter-spacing:0;text-transform:none;font-size:11px;padding:12px 7px;border-color:#343435}
#dashboard-hub .health-table td{padding:10px 7px;color:#e2e2e2;border-color:#363536}
#dashboard-hub .health-table td strong{font-weight:500;color:#efefef}
#dashboard-hub .health-table tr.needs-attention{background:transparent}#dashboard-hub .health-table tr.needs-attention td:first-child{border-left:0}
.table-dot{height:10px;width:10px;border-radius:50%;display:inline-block;margin-right:8px}.table-dot.green{background:#15e83b}.table-dot.red{background:#ff493c}
.health-state{display:inline-flex;padding:4px 10px;border-radius:7px;font-size:10px;font-weight:700;border:0}
.health-state.online{background:linear-gradient(#0d7c1e,#075911);color:#fff}.health-state.attention{background:linear-gradient(#9a321d,#722112);color:#fff}.health-state.unknown{background:#444}
#dashboard-hub .health-updated{margin-top:auto;padding-top:13px;border-top:1px solid #333;color:#8d8988}
#dashboard-hub .dashboard-right #mosaic-panel{display:block;border-radius:15px;padding:14px 13px 10px;background:linear-gradient(145deg,#151518,#101012);border:1px solid #3d3a37;border-bottom-color:#b24c00;box-shadow:0 10px 28px #0009;margin:0}
#dashboard-hub #mosaic-panel .panel-title{margin:0 0 12px;justify-content:space-between;gap:12px}
#mosaic-panel .panel-title h3{font-size:21px;margin:0;font-weight:740;color:#f9f9f9;display:flex;align-items:center}
.mosaic-head-icon{color:#ff8406;font-size:26px;font-weight:800;margin-right:8px;line-height:1}
#mosaic-filter{background:#1b1b1e;border:1px solid #595457;border-radius:8px;padding:9px 11px;color:#eee;min-width:0;max-width:220px;font-size:12px}
#dashboard-hub .mosaic-stage{border:1px solid #242426;background:#050506;border-radius:10px;padding:6px}
.mosaic-grid{gap:6px}.mosaic-tile{border-radius:8px;border:1px solid #242427;background:#111;overflow:hidden}
.mosaic-tile-footer{padding:22px 9px 7px;justify-content:flex-start;background:linear-gradient(transparent,#0a0a0aee)}
.mosaic-tile-footer strong{font-size:11px;font-weight:700;text-shadow:0 2px 8px black}
.mosaic-tile-status{position:absolute;top:8px;left:8px;background:#074d0c;color:#e6ffdf!important;padding:4px 9px;border-radius:7px;font-weight:700;font-size:9px;box-shadow:0 1px 5px #0009}
.mosaic-tile-status:not(.stream-ok){background:#6b2920;color:#ffe0cc!important}
.mosaic-empty{border-color:#2b2828}
#mosaic-panel .mosaic-toolbar{display:flex;align-items:center;justify-content:space-between;margin-top:7px;padding:0;border:0;background:transparent;gap:4px}
#mosaic-panel .mosaic-sizes{gap:3px}
#mosaic-panel .mosaic-size{background:#202023;border:1px solid #424146;color:#e6e6e8;border-radius:7px;padding:9px 11px;font-size:11px;min-width:44px;letter-spacing:0}
#mosaic-panel .mosaic-size.active{color:white;background:linear-gradient(120deg,#ff8908,#b94700);border-color:#ff8b00;box-shadow:0 2px 10px #fc71004b}
#mosaic-panel .mosaic-navigation{gap:5px;flex-wrap:nowrap;align-items:center}
#mosaic-panel .mosaic-navigation button{padding:8px 10px;font-size:17px;min-width:34px;min-height:36px}
#mosaic-panel .mosaic-navigation span{font-size:10px;color:#adadad;margin-right:3px}
.dashboard-record{border:1px solid #3b3634;border-top-color:#a94a09;border-radius:15px;background:linear-gradient(145deg,#18181a,#0d0d0f);box-shadow:0 12px 32px #000a;overflow:hidden;padding:14px 17px;min-height:254px}
.dock-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.dock-head h3{font-size:20px;font-weight:750;margin:0;display:flex;align-items:center}
.dock-tabs{display:flex;border-radius:8px;overflow:hidden;border:1px solid #39383a}.dock-tab{background:#222224;color:#e9e9ea;border:0;padding:8px 12px;font-size:12px}.dock-tab.selected{background:#e96300;color:white;font-weight:800}
.dock-filters{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:8px;margin-bottom:14px}.dock-filters label{min-width:0}.dock-filters select,.dock-filters input{height:38px;width:100%;min-width:0;background:#1d1d20;border:1px solid #525054;border-radius:8px;color:#f9f9f9;padding:7px 10px;font-size:11px}.dock-filters button{font-size:11px;padding:8px 10px}
.dock-time-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#dedee0;border-top:1px solid #383639;padding-top:12px}
.quick-timeline{width:100%;height:20px;margin:12px 0 10px;accent-color:#ff8400;cursor:pointer;background:transparent}
.quick-player-controls{display:flex;justify-content:center;align-items:center;gap:23px;margin:0 0 4px}.bare-control{font-size:16px;font-weight:800;color:#eee;border:0;background:transparent;padding:5px 9px}.quick-play{border-radius:50%;width:43px;height:43px;background:#171719;color:#fff;border:2px solid #ff8700;font-size:22px;display:grid;place-items:center;padding:0}.quick-play:hover{background:#c25100}.quick-player-controls select{margin-left:auto;background:#1e1e20;border:1px solid #4b4b50;border-radius:8px;color:#fff;font-size:11px;padding:6px}
.quick-feedback{font-size:10px;color:#99989a;text-align:center;margin:5px 0 0;line-height:1.3}
#quick-video{width:100%;aspect-ratio:16/9;display:block;border:1px solid #444;border-radius:9px;background:#080809;margin:3px 0 9px;max-height:300px;object-fit:contain}
#quick-video[hidden]{display:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* Demais páginas seguem o mesmo sistema visual do painel. */
#cameras-panel,#recordings-panel,#clients-panel,#plans-panel,#users-panel,#reports-panel,#security-panel{min-width:0}
#cameras-panel .panel-title,#recordings-panel .panel-title,#clients-panel .panel-title,#plans-panel .panel-title,#users-panel .panel-title,#reports-panel .panel-title,#security-panel .panel-title{margin:20px 0}
#cameras-panel .panel-title h3,#recordings-panel .panel-title h3,#clients-panel .panel-title h3,#plans-panel .panel-title h3,#users-panel .panel-title h3,#reports-panel .panel-title h3,#security-panel .panel-title h3{font-size:21px}
.camera-card,.client-card,.user-card,.record-summary,.plan-box,.security-card,.network-panel{background:linear-gradient(145deg,#1a1a1c,#101012);border-color:#3f3b3a;box-shadow:0 8px 25px #0007}
.camera-manager-icon,.user-avatar{color:#ff8f1c}.camera-management .camera-actions{border-color:#333}
.plan-box span,.client-card-heading .eyebrow{color:#f59a3a}
.record-dialog,.modal-top,dialog{color:#fff}
#reports-panel .report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}
.report-kpi{padding:19px;border:1px solid #3b3736;border-radius:13px;background:#171719;display:flex;flex-direction:column;gap:8px}.report-kpi span{color:#bcb7b4;font-size:13px}.report-kpi strong{font-size:31px}
.auth-wrap{background:radial-gradient(circle at 50% 18%,#41210d,#0a0a0c 55%)}.auth-card{background:#161618;border-color:#6f401e;box-shadow:0 18px 70px #000d}.auth-logo{width:250px}.auth-card p{color:#b9b0aa}.auth-card input,dialog input,dialog select,.client-card select{background:#161618;border-color:#55423a}.auth-foot{border-top-color:#544031;color:#f39a35}
#setup-flow{border:1px solid #4b3325;border-radius:14px;padding:14px;background:#171313}
@media(max-width:1450px){.sidebar{width:242px;min-width:242px}.sidebar .logo-block{height:277px;flex-basis:277px}.sidebar-logo{width:242px!important;height:277px!important}.sidebar nav{padding:7px 11px 0}.sidebar .nav{min-height:41px;padding:9px}.content{padding:12px 14px}.dashboard-hub{grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:12px}#dashboard-hub .stat{padding:14px 9px;gap:7px}#dashboard-hub .stat strong{font-size:28px}#dashboard-hub .stat span{font-size:11px}#dashboard-hub .panel-box{padding:14px}#dashboard-hub .donut-wrap{gap:5px}#dashboard-hub .health-donut{width:132px;height:132px;flex-basis:132px}}
@media(max-width:1160px){.dashboard-hub{grid-template-columns:1fr}.dashboard-right{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:start;gap:12px}.dock-filters{grid-template-columns:1fr}.dashboard-record{min-height:auto}#dashboard-hub .health-donut{width:150px;height:150px;flex-basis:150px}}
@media(max-width:900px){.sidebar{width:76px;min-width:76px;height:100vh;min-height:0}.sidebar .logo-block{height:91px;flex-basis:91px}.sidebar-logo{width:76px!important;height:89px!important}.sidebar nav{padding:10px 5px}.sidebar .nav{justify-content:center;min-height:45px;padding:10px}.sidebar .nav>span:not(.nav-icon),.side-status,#logout>span:not(.nav-icon){display:none}.sidebar .side-bottom{padding:12px 5px}.dashboard-right{grid-template-columns:1fr 1fr}.topbar{padding:12px 17px}.account-stack{min-width:70px}.account{font-size:12px}}
@media(max-width:750px){.dashboard-right{grid-template-columns:1fr}.topbar h2{font-size:23px}.topbar-heading p{font-size:11px}.top-notification,.header-divider,.account-chevron{display:none}.content{padding:12px}.stats{gap:9px}#dashboard-hub .stat{min-height:93px}.stat-ico{display:none}#dashboard-hub .analytics-grid{grid-template-columns:1fr}.dock-filters{grid-template-columns:1fr 1fr auto}}
@media(max-width:520px){.sidebar{min-width:60px;width:60px}.sidebar .logo-block{height:70px;flex-basis:70px}.sidebar-logo{width:60px!important;height:69px!important}.sidebar nav{padding:5px 2px}.sidebar .nav{min-height:42px}.topbar{height:76px}.topbar h2{font-size:21px}.topbar-heading p{font-size:10px;max-width:185px}.header-avatar svg{width:29px;height:29px}.account-stack{min-width:0}.account{max-width:88px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:10px}.engine{display:none}#dashboard-hub .stats{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard-hub .donut-wrap{flex-direction:row;gap:12px}.donut-legend{min-width:80px!important}#dashboard-hub .health-donut{width:128px;height:128px;flex-basis:128px}#mosaic-panel .mosaic-sizes{flex-wrap:wrap}#mosaic-panel .mosaic-toolbar{flex-wrap:wrap}#mosaic-panel .mosaic-grid.mosaic-n-4,#mosaic-panel .mosaic-grid.mosaic-n-2{grid-template-columns:repeat(2,minmax(0,1fr))}.mosaic-tile{min-height:100px}.dock-filters{grid-template-columns:1fr 1fr}.dock-filters button{grid-column:1/-1}.quick-player-controls{gap:10px}.stat-ico{display:none}}

.mosaic-head-icon{display:inline-grid;place-items:center;width:26px;height:26px;flex:0 0 26px;margin-right:9px}.mosaic-head-icon svg{width:25px;height:25px;stroke:#ff8500}
.mosaic-tile>.mosaic-tile-status{position:absolute;z-index:4;top:9px;left:9px;bottom:auto;right:auto;display:inline-flex;align-items:center} 


.logo-block,.auth-brand-block{background:none !important;}
.sidebar-logo,.auth-logo{background:transparent !important; filter:drop-shadow(0 10px 22px rgba(255,120,0,.22));}
.top-notification{cursor:pointer; position:relative;}
.top-notification i{position:absolute; top:-4px; right:-6px; min-width:16px; height:16px; padding:0 4px; border-radius:999px; background:#ff7a00; color:#111; font-size:11px; font-style:normal; font-weight:800; display:grid; place-items:center;}
.notify-dialog{width:min(760px,92vw); border:none; border-radius:22px; background:#0f1116; color:#f5f7fb; padding:0; box-shadow:0 30px 70px rgba(0,0,0,.5);}
.notify-list{display:grid; gap:12px; padding:0 28px 20px; max-height:52vh; overflow:auto;}
.notify-card{border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:16px 18px; background:rgba(255,255,255,.03);}
.notify-card.unread{border-color:rgba(255,122,0,.55); box-shadow:0 0 0 1px rgba(255,122,0,.12) inset;}
.notify-card-head{display:flex; justify-content:space-between; gap:12px; margin-bottom:8px;}
.notify-card-head small,.notify-author{color:#9da5b4;}
.notify-actions{padding:0 28px 24px; display:flex; justify-content:flex-end;}
.panel-inline-filters{display:flex; gap:14px; align-items:center; margin:0 0 16px;}
.panel-inline-filters label{display:flex; flex-direction:column; gap:6px; color:#c8d0dd; font-size:13px;}
.panel-inline-filters select{min-width:260px;}
.notification-form textarea{resize:vertical; min-height:96px;}
.notify-user-list{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; margin-top:8px;}
.notify-user-item{display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border:1px solid rgba(255,255,255,.08); border-radius:14px; background:rgba(255,255,255,.03);}
.notify-user-item span{display:flex; flex-direction:column;}
.notify-user-item small{color:#9da5b4;}


/* === v0.6.3 ajustes finos === */
.sidebar .logo-block{height:344px;flex-basis:344px;padding:8px 8px 18px;display:flex;align-items:flex-start;justify-content:center}
.sidebar-logo{width:240px!important;height:330px!important;object-fit:contain!important;object-position:center top!important}
#dashboard-hub{grid-template-columns:1fr!important}
#dashboard-hub .stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:8px}
#dashboard-hub .analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-right{display:none!important}
.panel-inline-filters{display:flex;gap:14px;align-items:end;margin:0 0 14px}
.panel-inline-filters label{display:grid;gap:8px;font-size:12px;color:#d6b197;font-weight:700}
.panel-inline-filters select{min-width:260px;background:#141416;border:1px solid #4f3a2c;border-radius:12px;color:#fff;padding:11px 12px}
.camera-group,.record-group{border:1px solid #3f3128;background:linear-gradient(160deg,#19191b,#111113 78%);border-radius:16px;box-shadow:0 12px 30px rgba(0,0,0,.28);margin-bottom:16px;overflow:hidden}
.camera-group>summary,.record-group>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;cursor:pointer}
.camera-group>summary::-webkit-details-marker,.record-group>summary::-webkit-details-marker{display:none}
.camera-group>summary div,.record-group>summary div{display:grid;gap:4px}
.camera-group>summary strong,.record-group>summary strong{font-size:18px;color:#fff}
.camera-group>summary small,.record-group>summary small{font-size:12px;color:#c7a189}
.camera-group-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:8px 12px;background:#352015;color:#ffb36c;font-size:12px;font-weight:800;border:1px solid #744729}
.camera-group-body,.record-group-body{padding:0 18px 18px}
.camera-group-list,.record-group-list{display:grid;grid-template-columns:1fr;gap:12px}
.empty-inline{margin-top:4px}
.recordings-cards{display:block}
.notify-popover{position:absolute;top:54px;right:0;width:min(360px,90vw);max-height:72vh;overflow:auto;border:1px solid #5b391e;border-radius:18px;background:linear-gradient(180deg,#161618,#0d0d0f 82%);box-shadow:0 28px 80px rgba(0,0,0,.55);padding:14px;z-index:50}
.notify-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #35241a;margin-bottom:12px}
.notify-popover h3{margin:3px 0 0;font-size:18px}
.notify-actions{display:flex;justify-content:flex-end;padding-top:10px;border-top:1px solid #35241a;margin-top:10px}
.notify-list{display:grid;gap:10px}
.notify-card{padding:12px 13px;border-radius:14px;background:#18181a;border:1px solid #2b2b30}
.notify-card.unread{border-color:#b56722;box-shadow:inset 0 0 0 1px rgba(255,134,0,.18)}
@media(max-width:1450px){.sidebar .logo-block{height:300px;flex-basis:300px}.sidebar-logo{width:215px!important;height:286px!important}}
@media(max-width:900px){.sidebar .logo-block{height:92px;flex-basis:92px}.sidebar-logo{width:72px!important;height:88px!important}.panel-inline-filters{flex-direction:column;align-items:stretch}.panel-inline-filters select{min-width:0}}
@media(max-width:640px){#dashboard-hub .stats{grid-template-columns:repeat(2,minmax(0,1fr))}#dashboard-hub .analytics-grid{grid-template-columns:1fr}.notify-popover{right:-8px;width:min(94vw,340px)}}


/* v0.6.4 — listagens dimensionadas para bases extensas */
#camera-grid{display:flex;flex-direction:column;gap:9px}
#camera-grid .compact-camera-group{margin:0;border:1px solid #35353c;border-radius:12px;background:linear-gradient(125deg,#18191d,#111115);overflow:hidden;box-shadow:0 6px 15px #0006}
#camera-grid .compact-group-summary{min-height:68px;padding:11px 16px;align-items:center;display:flex;gap:13px;list-style:none;cursor:pointer}
#camera-grid .compact-group-summary:hover{background:#24201e}
#camera-grid .compact-group-summary::-webkit-details-marker{display:none}
.compact-chevron{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:7px;color:#fc912f;font-size:25px;font-weight:800;line-height:1;transition:transform .18s ease;background:#302117;border:1px solid #71421f}
.compact-camera-group[open] .compact-chevron{transform:rotate(90deg)}
.compact-group-name{flex:1;min-width:0;display:flex!important;flex-direction:column;gap:2px}
.compact-group-name strong{font-size:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-group-name small{font-size:11px!important;color:#9da1ad!important}
.compact-badge{white-space:nowrap;padding:7px 10px!important;font-size:11px!important}
.compact-badge.has-offline{border-color:#754736;color:#ff9b73;background:#321a15}
#camera-grid .compact-group-body{padding:8px 14px 16px;border-top:1px solid #343136}
.compact-camera-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(305px,1fr));gap:11px}
.compact-camera-list .camera-card{padding:15px;min-width:0}
.compact-camera-list .camera-manager-names{min-width:0}
.compact-camera-list .camera-manager-names small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.directory-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:5px 0 17px;flex-wrap:wrap}
.directory-search{display:flex;position:relative;align-items:center;flex:1;max-width:480px;margin:0!important}
.directory-search-icon{position:absolute;left:14px;font-size:24px;color:#ff8e2d;pointer-events:none;line-height:1}
.directory-search input{width:100%;height:44px;padding:10px 14px 10px 42px;border-radius:11px;border:1px solid #5a3f2e;background:#151519;color:#fff;font-size:13px;outline:none}
.directory-search input:focus{border-color:#fb831d;box-shadow:0 0 0 3px #ff8b2623}
.directory-search input::placeholder{color:#92919b}
.directory-counter{color:#b9adb0;font-size:12px}
.directory-more{text-align:center;padding:14px 0 26px}
.directory-more button{min-width:210px}
#users-list .user-card{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.user-directory-actions{display:flex;gap:7px;align-items:center;margin-left:auto}
.user-directory-actions button{font-size:11px;padding:8px 11px}
.sidebar .logo-block{padding:6px 8px 12px;height:340px;flex-basis:340px;display:flex;align-items:center;justify-content:center;overflow:visible}
.sidebar-logo{width:min(245px,100%)!important;height:320px!important;object-fit:contain!important;object-position:center center!important;filter:drop-shadow(0 6px 18px #ed78062a)!important}
.auth-logo{object-fit:contain!important;max-height:355px!important}
@media(max-width:1450px){.sidebar .logo-block{height:287px;flex-basis:287px}.sidebar-logo{height:275px!important;width:225px!important}}
@media(max-width:900px){.sidebar .logo-block{height:96px;flex-basis:96px}.sidebar-logo{height:90px!important;width:74px!important}.compact-camera-list{grid-template-columns:1fr}}
@media(max-width:620px){.directory-search{max-width:none;width:100%;flex-basis:100%}.directory-counter{font-size:11px}.compact-camera-list{grid-template-columns:1fr}.user-directory-actions{width:100%;justify-content:flex-start;margin-left:0}}

/* Evita títulos repetidos nas listagens, mas mantém os botões de cadastro. */
.subpage-intro{margin:0 0 5px;justify-content:flex-end;min-height:0}
.subpage-intro>div:first-child{display:none}
#camera-grid .compact-group-summary{min-height:59px;padding:8px 15px}

/* v0.6.5 — Gravações tão compactas quanto Câmeras */
#recordings-list{display:flex;flex-direction:column;gap:9px;}
#recordings-list .compact-record-group{margin:0;border:1px solid #35353c;border-radius:12px;background:linear-gradient(125deg,#18191d,#111115);overflow:hidden;box-shadow:0 6px 15px #0006;}
#recordings-list .compact-group-summary{min-height:59px;padding:8px 15px;align-items:center;display:flex;gap:13px;list-style:none;cursor:pointer;}
#recordings-list .compact-group-summary::-webkit-details-marker{display:none;}
#recordings-list .compact-group-summary:hover{background:#24201e;}
#recordings-list .compact-record-group[open] .compact-chevron{transform:rotate(90deg);}
#recordings-list .compact-group-body{padding:9px 14px 16px;border-top:1px solid #343136;}
#recordings-list .compact-record-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:10px;}
#recordings-list .compact-record-list .record-summary{min-width:0;margin:0;}
#recordings-list .compact-record-list .record-summary>div:nth-child(2){min-width:0;}
#recordings-list .compact-record-list .record-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@media(max-width:620px){#recordings-list .compact-record-list{grid-template-columns:1fr;}#recordings-list .compact-group-summary{gap:8px;padding:8px 10px;}}


/* v0.6.5: menu de perfil, acessível por seta no cabeçalho */
.topbar{position:relative;z-index:18;overflow:visible}
.top-right{position:relative}
.top-right .account-menu-toggle{appearance:none;background:transparent;border:1px solid transparent;border-radius:9px;color:#f3f0eb;cursor:pointer;display:inline-flex!important;align-items:center;justify-content:center;min-width:32px;min-height:35px;padding:3px 6px;line-height:1;font-size:23px;transition:transform .17s ease,background .17s ease,border-color .17s ease}
.top-right .account-menu-toggle:hover,.top-right .account-menu-toggle:focus-visible{background:#34261d;border-color:#705137;outline:none}
.top-right .account-menu-toggle[aria-expanded="true"]{transform:rotate(180deg);color:#ff9a35}
.top-right .account-menu{position:absolute;right:0;top:calc(100% + 16px);width:min(298px,89vw);border:1px solid #6a4025;border-radius:16px;padding:9px;background:linear-gradient(165deg,#1e1d1d,#111113 78%);box-shadow:0 24px 56px rgba(0,0,0,.67),0 0 0 1px rgba(255,133,36,.08);z-index:65;transform:none}
.top-right .account-menu[hidden]{display:none!important}
.top-right .account-menu-header{display:flex;flex-direction:column;gap:3px;padding:15px 14px 13px;border-bottom:1px solid #3d332d;margin-bottom:7px;overflow:hidden}
.top-right .account-menu-eyebrow{font-size:10px;letter-spacing:.15em;color:#ff902a;font-weight:800}
.top-right .account-menu-header strong{font-size:14px;color:#fdfdfd;overflow-wrap:anywhere}
.top-right .account-menu-header small{font-size:12px;color:#b5a9a4}
.top-right .account-menu #logout{display:flex;align-items:center;gap:12px;width:100%;min-height:45px;padding:10px 13px;border-radius:10px;text-align:left;background:transparent;color:#ffe7cf!important;border:1px solid transparent;font-size:13px;cursor:pointer}
.top-right .account-menu #logout:hover,.top-right .account-menu #logout:focus-visible{background:#4c2c1b;border-color:#7d4a2b;outline:none}
.top-right .account-menu #logout .nav-icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center}
.top-right .account-menu #logout .nav-icon svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8}
.top-right .account-menu #logout span:last-child{display:inline!important}
@media(max-width:750px){.top-right .account-menu-toggle{display:inline-flex!important}.top-right .account-menu{top:calc(100% + 10px)}}


/* PROTEUS CLOUD V7 — Clientes e planos compactos */
#clients-list{display:flex;flex-direction:column;gap:9px;grid-template-columns:none}
#clients-list .compact-client-group{margin:0;border:1px solid #35353c;border-radius:12px;background:linear-gradient(125deg,#18191d,#111115);overflow:hidden;box-shadow:0 6px 15px #0006}
#clients-list .compact-group-summary{display:flex;gap:13px;align-items:center;min-height:59px;padding:8px 15px;list-style:none;cursor:pointer}
#clients-list .compact-group-summary:hover{background:#24201e}
#clients-list .compact-group-summary::-webkit-details-marker{display:none}
#clients-list .compact-client-group[open] .compact-chevron{transform:rotate(90deg)}
#clients-list .compact-group-name{min-width:0;flex:1}
#clients-list .compact-badge{flex-shrink:0}
#clients-list .compact-client-body{padding:17px 18px 18px;border-top:1px solid #343136;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:22px}
#clients-list .compact-client-cameras{min-width:0}
#clients-list .compact-client-cameras>strong{color:#f6f0eb;font-size:13px;display:block;margin-bottom:10px}
#clients-list .compact-client-cameras ul{list-style:none;display:flex;flex-direction:column;gap:7px;padding:0;margin:0;max-height:215px;overflow-y:auto}
#clients-list .compact-client-cameras li{padding:9px 12px;border:1px solid #3a302b;border-radius:9px;background:#1c1c1e;color:#d7d2cd;font-size:12px;overflow-wrap:anywhere}
#clients-list .compact-client-cameras p{font-size:12px;color:#a7a0a0}
#clients-list .compact-client-retention{border:1px solid #4b3629;border-radius:13px;padding:15px;background:#191719;align-self:start}
#clients-list .compact-client-retention label{font-size:12px;font-weight:750;color:#ead5c6;display:flex;flex-direction:column;gap:9px}
#clients-list .compact-client-retention select{width:100%;padding:11px 12px;background:#111116;color:#fff;border-radius:9px;border:1px solid #68452b;margin:0}
#clients-list .compact-client-retention .primary{margin-top:12px;width:100%}
@media(max-width:900px){#clients-list .compact-client-body{grid-template-columns:1fr}}
@media(max-width:600px){#clients-list .compact-group-summary{padding:8px 10px;gap:9px}#clients-list .compact-client-body{padding:12px;gap:14px}#clients-list .compact-badge{padding:6px 8px!important}}


/* PROTEUS CLOUD V7 • playback e mobile • atualização 2026-11 */
:root{--proteus-alert:#f04444}
/* Vermelho uniforme e legível em status offline (substitui tons rosados). */
#dashboard-hub .health-donut{background:conic-gradient(#17d63e 0 var(--online-ratio),var(--proteus-alert) var(--online-ratio) 100%)}
#dashboard-hub .status-dot.offline,.status-dot.offline,.table-dot.red{background:var(--proteus-alert)!important}
#dashboard-hub .negative,.stat strong.negative{color:var(--proteus-alert)!important}
.health-state.attention,.health-state.offline,.camera-state-tag.offline,.compact-badge.has-offline{color:#ff6868!important;border-color:#a83b3b!important;background:#321517!important}
.health-table .needs-attention .table-dot{background:var(--proteus-alert)!important}
/* Título principal no cabeçalho; remover repetição dentro de cada aba sem esconder ações. */
#mosaic-panel > .panel-title h3,
#cameras-panel > .panel-title h3,
#recordings-panel > .panel-title h3,
#clients-panel > .panel-title h3,
#users-panel > .panel-title h3,
#reports-panel > .panel-title h3,
#security-panel > .panel-title h3{display:none}
#mosaic-panel > .panel-title{justify-content:flex-end;margin-top:4px}
#cameras-panel > .panel-title,#recordings-panel > .panel-title,
#clients-panel > .panel-title,#users-panel > .panel-title,
#reports-panel > .panel-title,#security-panel > .panel-title{margin-top:9px}
#cameras-panel > .panel-title p,#recordings-panel > .panel-title p,
#clients-panel > .panel-title p,#users-panel > .panel-title p,
#reports-panel > .panel-title p,#security-panel > .panel-title p{font-size:12px}
/* Controles profissionais de revisão */
.record-playback-tools{margin-top:12px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.record-playback-tools button{min-height:43px;padding:9px 14px;font-size:12px;white-space:nowrap}
.record-playback-tools .record-jump{min-width:76px}
.record-playback-tools .record-direction[aria-pressed="true"]{color:#fff;background:linear-gradient(120deg,#ff8a0b,#b64a00);border-color:#ffa642}
.record-rate-label{display:flex!important;align-items:center;gap:9px;margin:0!important;color:#e9d9ca;font-size:12px;white-space:nowrap}
.record-rate-label select{width:79px!important;min-height:43px;margin:0!important;border:1px solid #704e34;border-radius:9px;padding:8px 10px;background:#151518;color:#fff}
.record-playback-state{font-size:11px;margin:8px 0 0;color:#a8a9b3}
.record-screen video{background:#070709;max-height:58vh;object-fit:contain}
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #ff981c;outline-offset:2px}
/* tablets: manter mosaico e cadastros com áreas de toque adequadas */
@media(max-width:1100px){
  #dashboard-hub .analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #dashboard-hub .stat{min-width:0}
  #dashboard-hub .health-table{min-width:600px}
  .record-playback-tools button,.record-rate-label select{min-height:44px}
}
@media(max-width:800px){
  html{scroll-padding-bottom:114px}
  #shell{display:block;min-height:100dvh}
  body{background:#0b0b0e}
  .sidebar{position:fixed!important;left:0;right:0;top:auto!important;bottom:0;z-index:90;display:flex!important;flex-direction:column;justify-content:center;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;padding:6px 8px calc(7px + env(safe-area-inset-bottom))!important;border:0;border-top:1px solid #713e1c;background:rgba(15,15,18,.97);box-shadow:0 -12px 40px #000b;backdrop-filter:blur(18px)}
  .sidebar .logo-block,.sidebar .side-bottom,.sidebar .side-status{display:none!important}
  .sidebar nav{display:flex!important;flex-direction:row!important;align-items:stretch;justify-content:flex-start;gap:5px;overflow-x:auto;overflow-y:hidden;padding:2px 3px 5px!important;min-height:61px;scrollbar-width:thin;scrollbar-color:#a35823 #18181b;overscroll-behavior-x:contain;scroll-snap-type:x proximity}
  .sidebar nav::-webkit-scrollbar{height:3px}.sidebar nav::-webkit-scrollbar-thumb{background:#ad5b26;border-radius:20px}
  .sidebar nav .nav{display:flex!important;flex:0 0 80px;min-width:80px!important;width:80px!important;min-height:57px!important;max-height:70px!important;padding:7px 5px!important;gap:4px!important;flex-direction:column;align-items:center!important;justify-content:center!important;text-align:center;border-radius:10px;scroll-snap-align:start;color:#bab4b2}
  .sidebar nav .nav[hidden]{display:none!important}
  .sidebar nav .nav .nav-icon{width:20px!important;height:20px!important;display:flex!important;flex:0 0 20px!important;align-items:center;justify-content:center}
  .sidebar nav .nav .nav-icon svg{width:20px!important;height:20px!important}
  .sidebar nav .nav>span:last-child{display:block!important;font-size:10px!important;line-height:1.15;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .sidebar nav .nav.active{color:#ffb779!important;background:#392013;border-color:#945019;box-shadow:inset 0 2px #ff8a17}
  main{display:block;width:100%;padding-bottom:calc(98px + env(safe-area-inset-bottom));min-width:0}
  .topbar{position:relative;z-index:30;display:flex;min-height:76px;padding:12px 15px!important;gap:8px;align-items:center;background:#0b0b0e;border-bottom:1px solid #363035}
  .topbar-heading{min-width:0;flex:1}
  .topbar h2{font-size:clamp(21px,5vw,25px)!important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0}
  .topbar-heading p{max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px!important;color:#9d9aa0}
  .top-right{gap:8px!important;min-width:0}
  .top-right .header-divider{display:none!important}
  .top-right .top-notification{display:flex!important;flex:0 0 40px;min-width:40px;height:40px;cursor:pointer;align-items:center;justify-content:center}
  .top-right .account-stack{min-width:0!important;max-width:76px}
  .top-right .account{font-size:11px!important;max-width:75px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .top-right .engine{display:none!important}
  .top-right .header-avatar{display:none!important}
  .top-right .account-menu-toggle{display:inline-flex!important;min-width:36px;min-height:40px}
  .top-right .account-menu{right:0;top:calc(100% + 12px)}
  .top-right .notify-popover{top:calc(100% + 12px);right:0;width:min(340px,calc(100vw - 22px));max-height:60dvh}
  .content{padding:16px 13px 26px!important;max-width:none}
  .stats{gap:9px!important}
  #dashboard-hub{grid-template-columns:1fr!important}
  #dashboard-hub .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}
  #dashboard-hub .stat{min-height:95px;padding:15px 11px!important}
  #dashboard-hub .stat strong{font-size:30px!important}
  #dashboard-hub .stat span{font-size:12px!important}
  #dashboard-hub .stat-ico{display:none!important}
  #dashboard-hub .analytics-grid{grid-template-columns:1fr!important;gap:10px!important}
  #dashboard-hub .panel-box{padding:16px!important;min-height:0!important}
  #dashboard-hub .donut-wrap{min-height:130px!important}
  #dashboard-hub .health-donut{width:136px!important;height:136px!important;flex-basis:136px!important}
  #dashboard-hub .donut-legend{min-width:0}
  .table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .status-box{min-width:0}
  .table-head{align-items:flex-start;flex-wrap:wrap;gap:10px}
  .table-tools{width:100%;display:flex;gap:7px}
  .table-tools input{flex:1;min-width:0;width:100%}
  .panel-title{gap:9px!important;flex-wrap:wrap;align-items:flex-start}
  .panel-title .toolbar{width:100%;gap:6px}
  .panel-title .toolbar button{min-height:42px;flex:1 1 auto}
  #mosaic-panel{padding:11px!important;border-radius:13px}
  #mosaic-panel .panel-title{justify-content:flex-end}
  #mosaic-filter{width:100%;max-width:100%;min-width:0;min-height:44px}
  #mosaic-panel .mosaic-stage{padding:3px!important;overflow:hidden}
  #mosaic-panel .mosaic-grid{gap:3px!important;min-width:0}
  #mosaic-panel .mosaic-grid.mosaic-n-1{grid-template-columns:1fr!important}
  #mosaic-panel .mosaic-grid.mosaic-n-2,#mosaic-panel .mosaic-grid.mosaic-n-4,#mosaic-panel .mosaic-grid.mosaic-n-8,#mosaic-panel .mosaic-grid.mosaic-n-16{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mosaic-tile{min-height:104px!important;aspect-ratio:16/10}
  .mosaic-tile iframe,.mosaic-tile video{width:100%!important;height:100%!important}
  #mosaic-panel .mosaic-toolbar{display:grid!important;grid-template-columns:1fr;gap:10px!important}
  #mosaic-panel .mosaic-sizes{display:flex!important;justify-content:space-between;flex-wrap:nowrap!important;gap:4px!important}
  #mosaic-panel .mosaic-size{padding:8px 9px!important;min-width:42px!important;min-height:44px}
  #mosaic-panel .mosaic-navigation{display:flex!important;justify-content:space-between;gap:6px;flex-wrap:wrap!important}
  #mosaic-panel .mosaic-navigation button{min-width:44px;min-height:44px}
  .directory-search,.panel-inline-filters select{min-width:0!important;max-width:100%}
  .recordings-cards,.camera-grid,.client-grid,.users-grid{min-width:0!important}
  .record-summary,.camera-card{max-width:100%}
  .camera-actions{gap:7px}
  .camera-actions button,.camera-actions .secondary{min-height:42px}
  .compact-group-summary{min-width:0}
  .compact-group-summary strong{overflow-wrap:anywhere}
  .record-dialog{width:100vw!important;max-width:100vw!important;height:100dvh;max-height:100dvh!important;border:0;border-radius:0!important;margin:0;padding:14px 12px calc(22px + env(safe-area-inset-bottom))!important;overflow-y:auto}
  .record-dialog .record-modal-top{padding-bottom:13px}
  .record-layout{display:flex!important;flex-direction:column;gap:12px;padding-top:14px}
  .record-day-list{display:flex!important;flex-direction:row!important;gap:7px;overflow-x:auto;overflow-y:hidden;max-height:none!important;min-height:62px;padding-bottom:4px}
  .day-button{min-width:150px;min-height:58px;padding:9px 10px;flex-shrink:0}
  .record-screen{min-height:190px}
  #record-video{width:100%;height:auto;min-height:185px;max-height:45dvh;object-fit:contain}
  .record-timeline-box{padding:11px;margin-top:8px}
  .record-timeline-box input[type=range]{min-height:32px}
  .record-playback-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .record-playback-tools .record-rate-label{grid-column:1/-1;justify-content:space-between}
  .record-playback-tools button{min-width:0!important;white-space:normal;min-height:46px!important}
  .record-playback-tools #record-reverse{grid-column:1/2}
  .record-live-tools{gap:6px}
  .record-live-tools button{min-height:42px}
  #record-actions{display:flex;flex-wrap:wrap;gap:8px}
  #record-actions>*{min-height:43px;align-items:center;justify-content:center}
  dialog:not(.record-dialog){width:calc(100% - 20px)!important;max-width:520px;padding:18px!important}
  .network-form{grid-template-columns:1fr}
  .network-panel{padding:14px}
  .auth-wrap{padding:12px}
  .auth-card{padding:24px 20px}
  .auth-logo{max-height:245px!important;width:min(225px,100%)}
  .auth-card h1{font-size:25px}
  .auth-card input{min-height:45px}
}
@media(max-width:380px){
  .topbar .top-right .account-stack{display:none}
  .sidebar nav .nav{flex-basis:76px;min-width:76px!important;width:76px!important}
  .record-playback-tools{gap:6px}
  #dashboard-hub .stat strong{font-size:28px!important}
}


/* Proteus Cloud V7 - Operação profissional: vermelho puro, player, alertas e configurações. */
:root { --proteus-alert:#f00; --proteus-alert-border:#e00000; }
#dashboard-hub .health-donut{
 background:conic-gradient(#17d63e 0 var(--online-ratio),#ff0000 var(--online-ratio) 100%)!important;
}
#dashboard-hub .status-dot.offline,.status-dot.offline,.table-dot.red{background:#ff0000!important}
#dashboard-hub .negative,.stat strong.negative{color:#ff1717!important}
.health-state.attention,.health-state.offline,.camera-state-tag.offline,.compact-badge.has-offline{
 color:#ff2020!important;border-color:#c00000!important;background:#280b0b!important;
}
#dashboard-hub .health-table tr.needs-attention td{border-color:rgba(255,0,0,.2)}
.live-alert-row td:first-child strong{color:#fff!important}
.live-alert-row .health-state.attention{animation:alert-blink 1.4s ease-in-out infinite;font-weight:900}
.live-alert-row .table-dot.red{animation:alert-pulse 1.1s ease-in-out infinite}
.dashboard-alarm{display:block;border-radius:12px;background:linear-gradient(110deg,rgba(110,0,0,.56),rgba(24,0,0,.92));border:1px solid #e00000;padding:13px 17px;margin-bottom:15px;color:#fff;font-size:13px;font-weight:800;animation:alert-blink 1.7s ease-in-out infinite}
@keyframes alert-blink{0%,100%{box-shadow:0 0 0 0 rgba(255,0,0,.04);opacity:1}50%{box-shadow:0 0 14px rgba(255,0,0,.5);opacity:.65}}
@keyframes alert-pulse{0%,100%{box-shadow:0 0 0 0 #ff00004d}50%{box-shadow:0 0 0 6px #ff00002c}}
@media(prefers-reduced-motion:reduce){.live-alert-row .health-state.attention,.live-alert-row .table-dot.red,.dashboard-alarm{animation:none!important}}
/* Vídeo no máximo de largura/altura disponíveis sem esticar os quadros. */
.record-dialog{width:min(1480px,calc(100vw - 32px))!important;max-width:1480px!important;max-height:96vh!important}
.record-layout{grid-template-columns:205px minmax(0,1fr)!important;gap:17px!important}
.record-screen{aspect-ratio:16/9!important;width:100%!important;min-height:390px;max-height:72vh;background:#040406!important}
.record-screen video{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important}
.record-player-area{min-width:0}
.record-loading{position:absolute;z-index:5;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:rgba(5,5,7,.88);color:#fff;text-align:center;padding:24px}
.record-loading small{max-width:340px;color:#a9a9b8;font-size:12px;line-height:1.5}
.record-loading-wheel{width:28px;height:28px;border:3px solid #3e2720;border-top-color:#ff8200;border-radius:50%;animation:loading-rotate 1s linear infinite}
@keyframes loading-rotate{to{transform:rotate(360deg)}}
/* Contatos e comunicação visual */
.client-contact-box{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:13px 15px;margin:12px 0 8px;border:1px solid #343136;background:#101012;border-radius:13px}
.client-contact-box>strong{width:100%;font-size:13px;color:#fff}
.client-contact-box>small{flex:1 1 185px;color:#d3c1b2;font-size:12px}
.client-contact-box button{margin-left:auto}
.notification-panel{padding:0!important;overflow:hidden;border-color:#644019!important;background:#111113!important}
.notification-compose-head{display:flex;align-items:center;gap:14px;padding:24px 25px;border-bottom:1px solid #3b2d23;background:linear-gradient(110deg,#22160f,#121215)}
.notification-compose-icon{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:14px;background:linear-gradient(120deg,#ee7a00,#9b3400);color:#fff;font-size:25px;box-shadow:0 0 25px rgba(237,112,0,.22)}
.notification-compose-head h4{font-size:20px;color:#fff;margin:5px 0}
.notification-compose-head p{font-size:12px;color:#aaa1a0;margin:0}
.notification-compose-status{margin-left:auto;border:1px solid #92612f;background:#2b1e12;color:#ffaf63;border-radius:999px;padding:8px 10px;white-space:nowrap;font-size:10px;font-weight:800}
.notification-compose-layout{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(250px,.78fr);gap:25px;padding:23px 25px}
.notification-compose-form{display:grid;gap:16px}
.notification-compose-form label{display:flex;flex-direction:column;gap:8px;margin:0;color:#d8c5b6;font-size:12px;font-weight:750}
.notification-compose-form input,.notification-compose-form select,.notification-compose-form textarea{width:100%;border:1px solid #42372d;border-radius:11px;color:#fff;background:#161617;padding:13px;font:inherit;outline:none}
.notification-compose-form textarea{resize:vertical;min-height:120px;line-height:1.55}
.notification-compose-form input:focus,.notification-compose-form select:focus,.notification-compose-form textarea:focus{border-color:#ff8500;box-shadow:0 0 0 2px #ff850022}
.notification-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:14px}
.notification-compose-footer small{color:#8d8e92;font-size:11px;max-width:275px;line-height:1.5}
.notification-preview{border-radius:17px;border:1px solid #3b332d;background:radial-gradient(circle at 85% 0,#2b211a,#151517 58%);padding:21px;align-self:start}
.notification-preview-card{display:flex;align-items:flex-start;gap:12px;padding:16px 13px;margin:15px 0;border-radius:13px;background:#232125;border-left:3px solid #ff8800;box-shadow:0 10px 24px #0005}
.preview-icon{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;background:#50321c}
.notification-preview-card strong{font-size:13px;color:#fff}
.notification-preview-card p{font-size:12px;line-height:1.5;color:#d0cbcf;margin:9px 0;white-space:pre-line;overflow-wrap:anywhere}
.notification-preview-card small,.notification-preview>p{font-size:11px;line-height:1.5;color:#929399}
/* Operação / backup / SMTP */
.operations-panel{margin-top:18px;border:1px solid #3d3430;background:linear-gradient(135deg,#171719,#0f0f11);border-radius:18px;padding:22px;box-shadow:0 18px 45px #0006}
.ops-heading h3{margin:6px 0;font-size:20px}.ops-heading p{color:#a5a6ab;font-size:13px;margin:0 0 17px}
.ops-tabs{display:flex;gap:8px;padding:4px;margin-bottom:18px;border-radius:12px;background:#0e0e10;border:1px solid #282729}
.ops-tab{flex:1;min-width:0;border:1px solid transparent;border-radius:9px;padding:12px 16px;background:none;color:#c9c4c0;font-size:13px;font-weight:800}
.ops-tab.active{background:linear-gradient(120deg,#ed7300,#a24100);color:#fff;border-color:#f68b17}
.ops-view{border:1px solid #302e2f;border-radius:14px;padding:20px;background:#131316}
.ops-card-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.ops-card-title h4{font-size:17px;margin:0}.ops-card-title span{color:#ff9c45;border:1px solid #63401f;border-radius:999px;padding:5px 9px;font-size:10px}
.ops-form{display:grid;gap:15px}.ops-form label{display:grid;gap:8px;font-size:12px;color:#d6c2b6;font-weight:700;margin:0}
.ops-form input:not([type=checkbox]),.ops-form select{width:100%;min-width:0;border:1px solid #514137;background:#0b0c0d;color:#fff;border-radius:10px;padding:12px}
.ops-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ops-form .ops-toggle{display:flex;align-items:center;gap:9px;padding:12px;background:#241b16;border-radius:10px;border:1px solid #63401f}
.ops-toggle input{accent-color:#ff8500;width:17px;height:17px}
.ops-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.ops-actions button{min-height:42px}
.ops-schedule{display:flex;gap:14px;margin:14px 0 19px}.ops-schedule>div{display:grid;gap:5px;flex:1;padding:16px;border:1px solid #413123;border-radius:13px;background:#20160e}
.ops-schedule small{font-size:10px;font-weight:850;color:#ffac6b}.ops-schedule strong{font-size:21px;color:white}.ops-schedule span{font-size:11px;color:#aca6a2}
.ops-warning{margin:0;font-size:12px;line-height:1.55;color:#ffb56d;padding:12px 14px;border-left:3px solid #f80;background:#2c1a0d;border-radius:8px}
.backup-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:13px;border:1px solid #383536;border-radius:13px;background:#0a0b0d;font-size:12px}
.backup-status span{font-weight:850}.backup-status strong{font-size:12px;color:#fff}.backup-status small{color:#a3a2a6}
.backup-success{color:#4ae18c}.backup-running{color:#ffb25a}.backup-idle{color:#aaa}
@media(max-width:930px){.notification-compose-layout{grid-template-columns:1fr}.notification-preview{display:none}}
@media(max-width:760px){
 .record-dialog{width:100vw!important;max-width:100vw!important;max-height:100dvh!important}
 .record-layout{grid-template-columns:1fr!important}
 .record-screen{min-height:200px;max-height:50dvh;aspect-ratio:16/9!important}
 .ops-field-grid{grid-template-columns:1fr}.ops-schedule{flex-direction:column}
 .notification-compose-head{padding:17px}.notification-compose-layout{padding:16px}.notification-compose-status{display:none}
}

.notify-card.incident{border-left:3px solid #f00!important;background:linear-gradient(120deg,#2b0b0b,#17171a)!important}


/* Proteus V7 — Avisos agrupados e player integrado */
.notify-popover{width:min(335px,calc(100vw - 20px))!important;padding:12px!important;max-height:68vh!important}
.notify-popover-head{padding-bottom:8px!important;margin-bottom:9px!important}
.notify-list{gap:8px!important;padding:0!important;max-height:min(48vh,440px)!important}
.notify-card{padding:11px 11px 9px!important;border-radius:12px!important}
.notify-card-head{display:flex;flex-direction:column;gap:5px!important;margin-bottom:6px!important}
.notify-card-head strong{font-size:12px;line-height:1.32}
.notify-card-head small{font-size:10px;color:#9a9691}
.notify-card p{font-size:11px;line-height:1.44;margin:0 0 8px;color:#cfc8c2}
.notify-card-bottom{display:flex;align-items:end;justify-content:space-between;gap:6px;flex-wrap:wrap}
.notify-author{font-size:10px;color:#a9a5a2;max-width:170px}
.notify-go-client{margin-left:auto;border:none;border-radius:8px;background:linear-gradient(105deg,#ff830b,#a54705);color:#fff;font-size:10px;font-weight:800;padding:7px 10px;cursor:pointer}
.notify-go-client:hover{background:#ec7304}
.notify-actions{gap:6px!important;align-items:center;justify-content:space-between!important;padding:10px 0 0!important}
.notify-actions button{font-size:11px;padding:8px 9px;min-height:34px}
.notify-actions .notify-clear{background:#261919;border-color:#7b3030;color:#ffaaaa}
.notify-actions .notify-clear:hover{background:#532121}
/* Normal view: 4:3 frame gives a nearly square DVR panel without distorting 16:9 camera video. */
.record-player-shell{width:100%;max-width:min(100%,68vh,900px);margin:0 auto;min-width:0;background:#09090b;border:1px solid #423225;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 18px 42px #0009}
.record-dialog .record-player-shell .record-screen{width:100%!important;aspect-ratio:4/3!important;min-height:0!important;max-height:min(51vh,610px)!important;height:auto!important;border:none!important;border-radius:0!important;flex:0 0 auto;background:#030303!important}
.record-player-shell .record-screen video{height:100%!important;width:100%!important;max-height:none!important;object-fit:contain!important}
.record-player-shell .record-timeline-box{flex:0 0 auto;margin:0!important;border:none!important;border-top:1px solid #624020!important;border-radius:0!important;padding:12px 14px!important;background:linear-gradient(180deg,#1b1a1d,#101013)!important}
.record-player-shell .timeline-top{font-size:12px;color:#fff}
.record-player-shell .record-playback-tools{margin-top:8px;gap:6px;display:flex;align-items:center;flex-wrap:wrap}
.record-player-shell .record-playback-tools button{padding:7px 10px;min-height:36px;font-size:11px}
.record-player-shell .record-rate-label select{min-height:36px!important;padding:5px 8px}
.record-player-shell .record-timeline-box input[type=range]{margin:8px 0 4px}
.record-player-shell .record-live-tools{margin-top:7px;gap:8px}
.record-player-shell .record-playback-state{font-size:10px;color:#aca5a0}
.record-player-shell .record-live-tools label{color:#dbbfa6}
.record-player-shell:fullscreen{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;display:flex!important;flex-direction:column!important;border-radius:0!important;border:0!important;background:#030303!important;overflow:hidden!important}
.record-player-shell:fullscreen .record-screen{aspect-ratio:auto!important;width:100%!important;max-height:none!important;height:auto!important;min-height:0!important;flex:1 1 0!important}
.record-player-shell:fullscreen .record-timeline-box{flex:0 0 auto!important;z-index:5;background:linear-gradient(180deg,#161619,#0a0a0c)!important;padding:10px 20px calc(10px + env(safe-area-inset-bottom))!important}
.record-player-shell:fullscreen .record-live-tools{margin-top:5px}
@media(max-width:760px){
 .record-dialog .record-player-shell .record-screen{aspect-ratio:4/3!important;max-height:48dvh!important;min-height:0!important}
 .record-player-shell .record-timeline-box{padding:11px 10px!important}
 .record-player-shell .record-playback-tools{gap:5px}
 .record-player-shell .record-playback-tools button{min-height:38px;padding:8px 9px}
 .record-player-shell:fullscreen .record-screen{aspect-ratio:auto!important;max-height:none!important}
 .record-player-shell:fullscreen .record-timeline-box{max-height:45dvh;overflow:auto!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important}
}

/* V7 · player amplo, resolução original e controles integrados/flutuantes */
.record-dialog{width:min(1720px,calc(100vw - 28px))!important;max-width:1720px!important;max-height:97dvh!important;padding:20px!important}
.record-dialog .record-layout{grid-template-columns:210px minmax(0,1fr)!important;gap:17px!important}
.record-player-area{min-width:0}
.record-player-shell{width:100%!important;max-width:none!important;position:relative!important;overflow:hidden!important;border:1px solid #7a460e!important;border-radius:22px!important;background:#060607!important;box-shadow:0 18px 55px #000d,0 0 0 1px #d76d1740!important}
.record-dialog .record-player-shell .record-screen{aspect-ratio:16/9!important;min-height:0!important;max-height:72dvh!important;height:auto!important;border:none!important;border-radius:0!important;background:#050505!important}
.record-player-shell .record-screen video{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;display:block}
.record-player-shell .record-timeline-box{position:relative!important;z-index:2!important;margin:-29px 0 0!important;padding:15px 19px 13px!important;background:linear-gradient(120deg,rgba(22,18,17,.97),rgba(21,17,18,.97) 55%,rgba(42,22,13,.97))!important;border:1px solid #a95310!important;border-radius:20px!important;box-shadow:0 -10px 36px #0008,0 16px 35px #0008!important;backdrop-filter:blur(14px)}
.record-player-shell .record-timeline-box .timeline-top{font-size:14px!important;gap:12px}
.record-player-shell #record-range{font-weight:750;color:#f8f1e8}
.record-player-shell .record-playback-tools{display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important;margin-top:9px!important}
.record-player-shell .record-playback-tools button{font-size:12px!important;min-height:41px!important;padding:9px 13px!important}
.record-player-shell .record-play-button{display:grid!important;place-items:center!important;min-width:44px!important;height:44px!important;border:1px solid #f38b13!important;border-radius:12px!important;background:linear-gradient(130deg,#ff8a09,#c15a02)!important;color:#fff!important;font-size:18px!important;box-shadow:0 0 18px #ff780044!important}
.record-player-shell .record-rate-label{display:flex;align-items:center;gap:9px;font-size:12px!important}
.record-player-shell .record-rate-label select{min-width:83px!important;border-radius:11px!important;border:1px solid #b46c27!important}
.record-player-shell .record-live-tools{margin-top:9px!important;gap:8px!important}
.record-player-shell .record-playback-state{font-size:11px!important;opacity:.82}
.record-player-shell .record-timeline-box input[type=range]{margin:11px 0 7px!important}
.record-player-shell:fullscreen{max-width:none!important;width:100vw!important;height:100dvh!important;border:0!important;border-radius:0!important}
.record-player-shell:fullscreen .record-screen{aspect-ratio:auto!important;max-height:none!important;height:auto!important;flex:1 1 0!important}
.record-player-shell:fullscreen .record-timeline-box{margin:0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;border-radius:16px 16px 0 0!important;padding:13px 22px calc(13px + env(safe-area-inset-bottom))!important}
@media(max-width:760px){
 .record-dialog{width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:12px!important}
 .record-dialog .record-layout{display:flex!important;flex-direction:column!important;gap:12px!important}
 .record-dialog .record-player-shell .record-screen{aspect-ratio:16/9!important;max-height:50dvh!important}
 .record-player-shell .record-timeline-box{padding:12px 11px!important;margin:-14px 0 0!important;border-radius:16px!important}
 .record-player-shell .record-playback-tools{gap:7px!important}
 .record-player-shell .record-playback-tools button{min-height:39px!important;padding:8px 10px!important}
 .record-player-shell:fullscreen .record-screen{aspect-ratio:auto!important;max-height:none!important}
 .record-player-shell:fullscreen .record-timeline-box{margin:0!important;max-height:48dvh!important;overflow:auto!important}
}


/* V7 mobile: mosaico amplo, foco individual e tela cheia independente de API nativa */
.mosaic-tile-expand{position:absolute!important;z-index:7!important;top:9px;right:9px;width:38px;height:38px;padding:0!important;display:grid!important;place-items:center;border:1px solid rgba(255,148,35,.82)!important;background:rgba(13,13,16,.88)!important;color:#fff!important;border-radius:11px!important;font-weight:800!important;font-size:20px!important;box-shadow:0 3px 14px #0009!important;cursor:pointer}
.mosaic-tile-expand:focus-visible{outline:2px solid #ff9b35;outline-offset:2px}
.mosaic-stage-close{display:none!important}
body.mosaic-focus-open,body.mosaic-stage-open{overflow:hidden!important}
.mosaic-stage-expanded{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;z-index:1800!important;overflow:auto!important;background:#050506!important;border:0!important;border-radius:0!important;padding:calc(56px + env(safe-area-inset-top)) 9px calc(15px + env(safe-area-inset-bottom))!important;display:block!important}
.mosaic-stage-expanded .mosaic-grid{width:100%;max-width:100%;gap:12px!important}
.mosaic-stage-expanded .mosaic-stage-close{display:block!important;position:fixed!important;right:12px;top:calc(8px + env(safe-area-inset-top));z-index:1905!important;padding:9px 14px!important;background:#ff8700!important;color:#111!important;border:0!important;border-radius:10px!important;font-weight:900}
.mosaic-tile-expanded{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;z-index:2100!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#040406!important}
.mosaic-tile-expanded>iframe{display:block!important;flex:1 1 auto!important;min-height:0!important;width:100%!important;height:calc(100dvh - 45px)!important;border:0!important}
.mosaic-tile-expanded>.mosaic-tile-expand{position:fixed!important;top:calc(12px + env(safe-area-inset-top));right:12px;z-index:2110!important;width:48px;height:48px;background:#fb8400!important;color:#111!important}
.mosaic-tile-expanded>.mosaic-tile-footer{position:relative!important;flex:0 0 auto!important;min-height:48px!important;background:#151316!important;padding:12px 16px!important;pointer-events:none!important}
.mosaic-tile-expanded>.mosaic-tile-footer strong{font-size:14px!important}
.mosaic-tile-expanded>.mosaic-tile-status{z-index:2105!important;top:calc(13px + env(safe-area-inset-top))!important;left:12px!important}
.record-mobile-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:10;border:1px solid #fb8900;background:linear-gradient(130deg,#ff8500,#bd5303);color:white;border-radius:13px;padding:13px 19px;font-size:14px;font-weight:800;box-shadow:0 10px 38px #000c}
.record-mobile-play[hidden]{display:none!important}
@media(max-width:800px){
  #mosaic-panel .mosaic-grid.mosaic-n-1,
  #mosaic-panel .mosaic-grid.mosaic-n-2,
  #mosaic-panel .mosaic-grid.mosaic-n-4{grid-template-columns:minmax(0,1fr)!important}
  #mosaic-panel .mosaic-grid.mosaic-n-8,
  #mosaic-panel .mosaic-grid.mosaic-n-16{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #mosaic-panel .mosaic-tile{aspect-ratio:16/9!important;min-height:0!important;width:100%;max-width:100%;border-radius:13px!important}
  #mosaic-panel .mosaic-tile iframe{width:100%!important;height:100%!important}
  #mosaic-panel .mosaic-stage{overflow:visible!important;padding:5px!important}
  #mosaic-panel .mosaic-stage.mosaic-stage-expanded{overflow:auto!important}
  #mosaic-panel .mosaic-grid{gap:12px!important}
  #mosaic-panel .mosaic-sizes button{min-width:0!important;flex:1 1 0!important;padding:9px 5px!important}
  #mosaic-panel .mosaic-tile-expanded{position:fixed!important;aspect-ratio:auto!important;min-height:100dvh!important;border-radius:0!important}
  #mosaic-panel .mosaic-tile-expanded>iframe{width:100%!important;height:calc(100dvh - 48px)!important}
  #mosaic-panel .mosaic-stage-expanded .mosaic-grid.mosaic-n-1,
  #mosaic-panel .mosaic-stage-expanded .mosaic-grid.mosaic-n-2,
  #mosaic-panel .mosaic-stage-expanded .mosaic-grid.mosaic-n-4{grid-template-columns:minmax(0,1fr)!important}
  .mosaic-tile-expand{width:42px!important;height:42px!important}
  .record-mobile-play{white-space:nowrap;max-width:calc(100% - 18px)}
}


/* Proteus Cloud V7 — acabamento Royal Blue discreto e fullscreen unificado */
:root{--proteus-royal:#295ec9;--proteus-royal-line:rgba(53,105,210,.38);--proteus-blue-glow:rgba(33,76,184,.13)}
#shell{background:radial-gradient(ellipse at 72% -8%,var(--proteus-blue-glow),transparent 46%),#070708!important}
.topbar{border-bottom:1px solid var(--proteus-royal-line)!important;box-shadow:0 1px 0 rgba(49,96,199,.07)!important}
.sidebar{border-right:1px solid rgba(48,96,188,.37)!important}
.sidebar nav .nav:not(.active):hover{background:linear-gradient(90deg,rgba(32,69,151,.19),rgba(255,128,12,.08))!important}
#mosaic-panel .mosaic-stage{border-color:var(--proteus-royal-line)!important;box-shadow:0 0 0 1px rgba(46,92,184,.07)!important}
#mosaic-panel .mosaic-tile{border-color:rgba(60,105,195,.44)!important}
#dashboard-hub .panel-box{border-top:1px solid rgba(56,98,190,.24)!important}
.top-notification:focus-visible,.mosaic-tile-expand:focus-visible{outline:2px solid #4077e8!important;outline-offset:2px}
.mosaic-tile-expand{background:linear-gradient(130deg,rgba(12,18,35,.93),rgba(15,15,18,.94))!important;border-color:rgba(79,133,241,.66)!important}
/* Botão de tela cheia dentro do iframe e do mosaico geral foram substituídos pelo botão individual */
#mosaic-fullscreen{display:none!important}
.mosaic-tile:fullscreen,.mosaic-tile.mosaic-tile-native-fullscreen{width:100vw!important;height:100dvh!important;max-height:none!important;max-width:none!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important;background:#050507!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.mosaic-tile:fullscreen>iframe,.mosaic-tile.mosaic-tile-native-fullscreen>iframe{width:100%!important;height:auto!important;flex:1 1 0!important;min-height:0!important}
.mosaic-tile:fullscreen .mosaic-tile-footer,.mosaic-tile.mosaic-tile-native-fullscreen .mosaic-tile-footer{position:relative!important;flex:0 0 auto!important;background:#10121a!important;padding:11px 16px!important}
.mosaic-tile:fullscreen>.mosaic-tile-expand{position:fixed!important;top:calc(8px + env(safe-area-inset-top));right:10px;z-index:2200!important;background:#ff850c!important;color:#17100a!important}
.mosaic-tile:fullscreen>.mosaic-tile-status{position:fixed!important;top:calc(10px + env(safe-area-inset-top))!important;left:12px!important}
/* Modo app instalado no iPhone: ocupa toda a janela do aplicativo sem barra de endereço. */
@media(display-mode:standalone){body.mosaic-focus-open .mosaic-tile-expanded{height:100dvh!important;inset:0!important}}

/* Proteus Cloud V7 — refino do player, navegação móvel e exportação de trechos */
.record-playback-tools svg{width:17px;height:17px;flex:0 0 17px;stroke-linejoin:round}
.record-playback-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.record-playback-tools .record-play-button svg{width:20px;height:20px}
#record-auto-label .auto-short{display:none}
/* Acesso ao sino garantido, mesmo em celulares pequenos */
.topbar .top-right .top-notification{flex-shrink:0;overflow:visible;z-index:3}
/* Brand em desktop: redução discreta sem esconder o texto CLOUD. */
@media(min-width:901px){
 .sidebar .logo-block{height:258px!important;flex-basis:258px!important;padding:8px 10px 12px!important}
 .sidebar .sidebar-logo{width:min(205px,100%)!important;height:242px!important;object-fit:contain!important;object-position:center center!important}
 .auth-card .auth-logo{width:min(220px,100%)!important;max-height:258px!important;object-fit:contain!important}
 .auth-card{padding-top:28px!important}
}
/* Royal Blue secundário; laranja permanece cor de ação. */
.client-card,.camera-group,.record-group{border-top:1px solid rgba(62,111,214,.27)!important}
.record-dialog .record-day-list{border-left:1px solid rgba(58,110,220,.17)!important}
.user-card,.network-panel{box-shadow:inset 0 1px rgba(63,115,214,.13),0 12px 28px rgba(0,0,0,.24)!important}
.record-dialog .record-player-shell{box-shadow:0 15px 48px rgba(0,0,0,.68),0 0 0 1px rgba(56,102,203,.23)!important}
.clip-export-panel{border:1px solid rgba(69,114,217,.32);background:linear-gradient(125deg,#11151f,#131112 72%);border-radius:15px;padding:14px 16px;margin:10px 0 5px}
.clip-export-grid{display:grid;gap:13px}
.clip-export-header{display:flex;flex-direction:column;gap:3px}
.clip-export-header strong{font-size:14px;color:#f8e5d5}
.clip-export-header small{color:#9dacc5;font-size:11px}
.clip-export-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.clip-export-fields label{display:flex;flex-direction:column;gap:7px;color:#d4c4b3;font-size:12px;margin:0!important}
.clip-export-fields input{background:#121216;border:1px solid #465777;border-radius:9px;min-height:42px;padding:9px 12px;color:#fff;font-variant-numeric:tabular-nums;font-size:16px!important;margin:0!important}
.clip-export-fields input:focus{border-color:#4b82e6;outline:2px solid rgba(61,105,201,.24)}
.clip-export-markers{display:flex;gap:7px;flex-wrap:wrap}
.clip-export-markers button{min-height:36px;padding:8px 10px;font-size:11px}
.clip-export-footer{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.clip-export-footer .hint{margin:0;flex:1;font-size:11px}
.clip-export-footer button{white-space:nowrap}
@media(max-width:760px){
 .topbar{padding:9px 11px!important;min-width:0!important;display:flex!important;overflow:visible!important}
 .topbar-heading{min-width:0!important;flex:1 1 auto!important}
 .topbar-heading p{display:none!important}
 .topbar h2{font-size:clamp(19px,5.4vw,25px)!important}
 .topbar .top-right{display:flex!important;align-items:center;flex:0 0 auto!important;min-width:max-content!important;gap:3px!important;margin:0!important}
 .topbar .top-right .account-stack{display:none!important}
 .topbar .top-right .header-avatar{display:none!important}
 .topbar .top-right .top-notification{display:grid!important;place-items:center!important;width:42px!important;min-width:42px!important;height:42px!important;margin:0!important;padding:7px!important}
 .topbar .top-right .account-menu-toggle{width:38px!important;min-width:38px!important;height:42px!important;padding:7px!important}
 .topbar .top-right .notify-popover{right:0!important}
 .record-dialog .record-layout{gap:9px!important;padding-top:7px!important}
 .record-dialog .record-day-list{min-height:58px!important}
 .record-dialog .record-player-shell .record-screen{aspect-ratio:16/9!important;width:100%!important;max-height:55dvh!important;min-height:0!important}
 .record-player-shell .record-timeline-box{padding:9px 8px 8px!important;margin:-8px 0 0!important}
 .record-player-shell .timeline-top{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:11px!important}
 .record-player-shell .timeline-top strong{font-size:11px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .record-player-shell .timeline-top span{font-size:9px!important;flex:0 0 auto}
 .record-player-shell .record-timeline-box input[type=range]{margin:5px 0 1px!important;min-height:28px!important}
 .record-player-shell .timeline-labels{font-size:10px!important}
 .record-player-shell .record-playback-tools{display:flex!important;flex-wrap:nowrap!important;justify-content:space-between!important;gap:3px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin-top:5px!important;padding:0 0 3px!important}
 .record-player-shell .record-playback-tools::-webkit-scrollbar{display:none}
 .record-player-shell .record-playback-tools button{height:37px!important;min-width:36px!important;min-height:37px!important;padding:6px 7px!important;flex:0 0 auto!important;font-size:11px!important;border-radius:9px!important;white-space:nowrap!important}
 .record-player-shell .record-playback-tools .record-jump span{font-size:10px!important}
 .record-player-shell .record-playback-tools #record-reverse{width:38px!important;min-width:38px!important}
 .record-player-shell .record-playback-tools .control-label{display:none!important}
 .record-player-shell .record-rate-label{display:inline-flex!important;flex:0 0 auto!important;gap:0!important;margin:0!important;font-size:0!important}
 .record-player-shell .record-rate-label select{min-width:57px!important;width:57px!important;min-height:37px!important;padding:4px 5px!important;font-size:11px!important}
 .record-player-shell .record-playback-state{display:none!important}
 .record-player-shell .record-live-tools{display:flex!important;align-items:center;justify-content:space-between;gap:5px!important;margin-top:2px!important}
 .record-live-tools label{font-size:10px!important;margin:0!important;display:flex;align-items:center;gap:4px!important}
 #record-auto-label .auto-long{display:none!important}
 #record-auto-label .auto-short{display:inline!important}
 .record-live-tools #record-latest{font-size:10px!important;padding:5px 7px!important;min-height:32px!important}
 .record-player-shell:fullscreen .record-timeline-box{margin:0!important;padding:8px 8px calc(8px + env(safe-area-inset-bottom))!important;max-height:40dvh!important}
 .clip-export-panel{padding:12px 10px;margin-top:6px}
 .clip-export-markers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .clip-export-markers button{padding:7px 6px}
 .clip-export-footer{display:grid;grid-template-columns:1fr}
 .clip-export-footer button{width:100%}
}


/* Proteus V7 — Download unificado, área de perfil e configurações compactas */
.topbar .top-right .account-profile-trigger{
  display:inline-flex!important;align-items:center;gap:10px;width:auto!important;
  min-width:0!important;height:auto!important;min-height:44px;
  padding:5px 9px!important;border:1px solid transparent;border-radius:12px;
  background:transparent;color:#f7f7f7;text-align:left;cursor:pointer;
}
.topbar .top-right .account-profile-trigger:hover,
.topbar .top-right .account-profile-trigger:focus-visible{background:#222329;border-color:rgba(60,104,213,.45);outline:none}
.topbar .top-right .account-profile-trigger .account-stack{display:flex!important;flex-direction:column;min-width:0;max-width:165px;align-items:flex-start}
.topbar .top-right .account-profile-trigger .account{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.topbar .top-right .account-profile-trigger .engine{display:block;font-size:10px;white-space:nowrap}
.topbar .top-right .account-profile-trigger .account-chevron{display:inline-flex!important;margin-left:1px;font-size:18px;transition:transform .2s ease}
.topbar .top-right .account-profile-trigger[aria-expanded="true"]{transform:none!important}
.topbar .top-right .account-profile-trigger[aria-expanded="true"] .account-chevron{transform:rotate(180deg)}
.topbar .top-right .account-profile-trigger .header-avatar{flex:0 0 auto}
.proteus-config-group{border:1px solid #383943;background:linear-gradient(140deg,#171719,#101113);border-radius:15px;box-shadow:0 10px 26px rgba(0,0,0,.18);margin:0 0 13px;overflow:hidden}
.proteus-config-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 23px;min-height:80px;transition:background .2s ease}
.proteus-config-group>summary::-webkit-details-marker{display:none}
.proteus-config-group>summary:hover{background:#1e2028}
.proteus-config-group[open]{border-color:#4e609b}
.proteus-config-group[open]>summary{border-bottom:1px solid #333d54;background:linear-gradient(100deg,rgba(42,67,126,.14),rgba(255,135,35,.06))}
.proteus-config-group>summary svg{width:21px;height:21px;flex:0 0 21px;color:#ff912b;transition:transform .2s ease}
.proteus-config-group[open]>summary svg{transform:rotate(180deg)}
.config-group-title{display:flex;flex-direction:column;gap:5px;min-width:0}
.config-group-title strong{font-size:16px;font-weight:800;color:#f5f5f5}
.config-group-title small{font-size:12px;color:#a6a9ba}
.proteus-config-group>.network-panel,.proteus-config-group>.security-grid,.proteus-config-group>.ops-view{
  margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  border-top:0;padding:18px 20px 22px;background:transparent!important
}
.proteus-config-group>.security-grid{padding:18px!important;}
#operations-panel .ops-tabs[hidden],#operations-panel .ops-heading[hidden]{display:none!important}
#operations-panel .proteus-config-group{margin:0 0 13px}
.clip-single-flow{display:grid;gap:14px;padding:16px 18px}
.clip-scope-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.clip-scope-option{display:flex!important;align-items:center;gap:12px;padding:14px;background:#15171b;border:1px solid #474956;border-radius:12px;cursor:pointer;margin:0!important}
.clip-scope-option:has(input:checked){border-color:#ff8a20;background:linear-gradient(135deg,#332114,#15171b)}
.clip-scope-option:has(input:disabled){opacity:.52;cursor:not-allowed}
.clip-scope-option input{width:18px;height:18px;flex:0 0 18px;accent-color:#ff8e29}
.clip-scope-option span{display:flex;flex-direction:column;gap:4px;min-width:0}
.clip-scope-option strong{font-size:13px;color:#f9f8f6}
.clip-scope-option small{font-size:11px;color:#a7a9b2;line-height:1.4}
.clip-partial-tools{display:grid;gap:10px}
.clip-range-control{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.clip-range-control label{font-size:11px;color:#afb8cc;display:grid;gap:6px}
.clip-range-control input{width:100%;accent-color:#ff8a22;cursor:pointer}
.clip-export-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.clip-export-footer .hint{margin:0;flex:1}
@media(max-width:760px){
 .topbar .top-right .account-profile-trigger{gap:5px;padding:4px 5px!important}
 .topbar .top-right .account-profile-trigger .account-stack{display:flex!important;max-width:70px!important}
 .topbar .top-right .account-profile-trigger .account{font-size:11px!important}
 .topbar .top-right .account-profile-trigger .engine{font-size:9px!important}
 .topbar .top-right .account-profile-trigger .header-avatar{display:none}
 .proteus-config-group>summary{padding:15px;min-height:67px}
 .proteus-config-group>.network-panel,.proteus-config-group>.ops-view{padding:13px 12px 18px}
 .clip-scope-choices{grid-template-columns:1fr}
 .clip-range-control{grid-template-columns:1fr}
 .clip-single-flow{padding:13px}
}
/* Proteus Cloud V7: linha do tempo estilo DVR, com dois grampos de seleção. */
#record-clip-export .dvr-export{display:grid;gap:13px;padding:15px 16px;border:1px solid rgba(53,104,211,.35);border-radius:15px;background:linear-gradient(135deg,#11151e,#111012 74%);color:#f4f1ed}
#record-clip-export{padding:0!important;background:transparent!important;border:none!important;box-shadow:none!important}
.dvr-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.dvr-header>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.dvr-header strong{font-size:15px;color:#fff}
.dvr-header small{font-size:12px;color:#9faec7;line-height:1.5}
.dvr-duration{border-radius:9px;padding:7px 10px;background:#2d1a0d;color:#ffa94d;border:1px solid #7b4519;white-space:nowrap;font-weight:800;font-variant-numeric:tabular-nums}
.dvr-timecards{display:flex;align-items:center;gap:9px}
.dvr-timecards>div:not(.dvr-between){flex:1;min-width:0;border-radius:11px;padding:10px 13px;background:#0d1119;border:1px solid #2e4464;display:flex;flex-direction:column;gap:4px}
.dvr-time-label{letter-spacing:.09em;color:#84a9e8;font-size:10px;font-weight:800}
.dvr-timecards strong{color:#fafafa;font-variant-numeric:tabular-nums;font-size:17px;letter-spacing:.02em}
.dvr-between{flex:0 0 auto;color:#ff8c20;display:grid;place-items:center}.dvr-between svg{width:21px;height:21px}
.dvr-reel-area{border:1px solid #2e3e55;background:#070b12;border-radius:13px;padding:13px 13px 11px;display:grid;gap:9px;min-width:0}
.dvr-reel-top,.dvr-overview-head{display:flex;justify-content:space-between;gap:8px;color:#9badca;font-size:11px;font-weight:700;letter-spacing:.02em}
.dvr-reel-top span:first-child{letter-spacing:.12em;font-weight:850;color:#b9c5d6}
.dvr-reel-top span:last-child,.dvr-overview-head span:last-child{font-variant-numeric:tabular-nums}
.dvr-reel{--dvr-start:0%;--dvr-end:10%;--dvr-playhead:0%;--dvr-tick:3.33%;width:100%;height:75px;position:relative;border:1px solid #3f5370;border-radius:10px;overflow:visible;touch-action:none;cursor:crosshair;background:linear-gradient(180deg,#131b26 0%,#0b1019 24%,#0b1019 76%,#131b26 100%);user-select:none;-webkit-user-select:none}
.dvr-reel::before,.dvr-reel::after{position:absolute;left:4px;right:4px;content:"";height:6px;background:repeating-linear-gradient(to right,rgba(148,174,204,.35) 0 11px,transparent 11px 24px);pointer-events:none}
.dvr-reel::before{top:4px}.dvr-reel::after{bottom:4px}
.dvr-reel-ticks{position:absolute;inset:15px 0;background:repeating-linear-gradient(to right,rgba(110,146,190,.23) 0 1px,transparent 1px var(--dvr-tick));pointer-events:none}
.dvr-selected{position:absolute;top:15px;bottom:15px;left:var(--dvr-start);right:calc(100% - var(--dvr-end));background:linear-gradient(180deg,rgba(255,146,24,.43),rgba(255,125,0,.27));border-block:2px solid rgba(255,149,30,.86);z-index:1;cursor:grab;box-shadow:inset 0 0 14px rgba(255,127,0,.15)}
.dvr-selected:active{cursor:grabbing}
.dvr-playhead{position:absolute;top:10px;bottom:10px;left:var(--dvr-playhead);border-left:2px solid #f6f7fa;z-index:2;pointer-events:none;filter:drop-shadow(0 0 3px #fff9)}
.dvr-grip{position:absolute;top:8px;bottom:8px;width:30px;min-height:0!important;left:var(--dvr-start);transform:translateX(-50%);z-index:4;display:grid;place-items:center;background:linear-gradient(160deg,#ffb04c,#f17803);border:2px solid #ffc16d;border-radius:7px;color:#1d1004;padding:0!important;cursor:ew-resize;box-shadow:0 0 0 2px #0b1018,0 1px 14px #ff850066;touch-action:none}
.dvr-grip[data-handle=end]{left:var(--dvr-end)}
.dvr-grip span{font-size:14px;font-weight:900;letter-spacing:1px;pointer-events:none}
.dvr-grip:focus-visible{outline:3px solid #4c8df9;outline-offset:4px}
.dvr-reel-scale{display:flex;justify-content:space-between;gap:9px;font-size:10px;font-variant-numeric:tabular-nums;color:#abb5c7}
.dvr-reel-scale span:nth-child(2){font-size:10px;text-align:center;flex:1;color:#7d8fab}
.dvr-overview-head{margin-top:4px}
.dvr-overview-line{display:flex;align-items:center;gap:8px}
.dvr-overview-line input{appearance:auto!important;-webkit-appearance:auto!important;flex:1;min-width:0;width:100%;accent-color:#ff8700;cursor:pointer;touch-action:pan-x}
.dvr-nav{width:36px;height:36px;min-height:36px;border:1px solid #395273;color:#b7d0fd;background:#111c2a;border-radius:9px;display:grid;place-items:center;padding:7px;flex:0 0 auto}
.dvr-nav svg{width:19px;height:19px}.dvr-nav:disabled{opacity:.35}
.dvr-footer{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.dvr-tip{color:#a2b4d2;font-size:11px;line-height:1.45;flex:1}
.dvr-footer .primary{border:1px solid #ed820e;background:linear-gradient(115deg,#ff910a,#da6500);white-space:nowrap}
.dvr-footer .primary svg{height:17px;width:17px}
/* Fullscreen: reduz a barra para devolver espaço ao vídeo, sem perder os controles. */
#record-player-shell:fullscreen{height:100dvh!important;display:flex!important;flex-direction:column!important;background:#030304!important}
#record-player-shell:fullscreen .record-screen{height:auto!important;min-height:0!important;flex:1 1 0!important;max-height:none!important;aspect-ratio:auto!important}
#record-player-shell:fullscreen .record-screen video{height:100%!important;max-height:100%!important;width:100%!important;object-fit:contain!important}
#record-player-shell:fullscreen #record-timeline-box{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;gap:2px!important;margin:0!important;min-height:0!important;max-height:128px!important;flex:0 0 auto!important;overflow:hidden!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;padding:7px 16px calc(7px + env(safe-area-inset-bottom))!important;background:linear-gradient(115deg,rgba(13,13,18,.96),rgba(21,17,17,.97))!important;box-shadow:0 -5px 22px #0007!important}
#record-player-shell:fullscreen .timeline-top{font-size:11px!important;min-height:0!important;margin:0!important;gap:8px!important}
#record-player-shell:fullscreen #record-range{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px!important}
#record-player-shell:fullscreen #record-live-state{font-size:10px!important}
#record-player-shell:fullscreen #record-timeline{height:11px!important;min-height:0!important;padding:0!important;margin:1px 0!important}
#record-player-shell:fullscreen .timeline-labels{font-size:10px!important;min-height:0!important;margin:0!important;padding:0!important}
#record-player-shell:fullscreen .record-playback-tools{display:flex!important;flex:0 0 auto!important;align-items:center!important;flex-wrap:nowrap!important;gap:6px!important;overflow-x:auto!important;margin:3px 0 0!important;padding:0 0 2px!important;scrollbar-width:none}
#record-player-shell:fullscreen .record-playback-tools::-webkit-scrollbar{display:none}
#record-player-shell:fullscreen .record-playback-tools button{min-height:29px!important;height:29px!important;padding:5px 8px!important;font-size:10px!important;flex:0 0 auto}
#record-player-shell:fullscreen .record-play-button{min-width:33px!important;width:33px!important;height:29px!important;border-radius:9px!important}
#record-player-shell:fullscreen .record-play-button svg{width:17px;height:17px}
#record-player-shell:fullscreen .record-rate-label{white-space:nowrap;font-size:10px!important;gap:5px!important;flex:0 0 auto!important}
#record-player-shell:fullscreen .record-rate-label select{min-height:28px!important;height:28px!important;padding:2px 6px!important;font-size:10px!important;min-width:60px!important}
#record-player-shell:fullscreen #record-playback-state,#record-player-shell:fullscreen .record-live-tools{display:none!important}
@media(max-width:760px){
 .dvr-reel{height:66px}.dvr-grip{width:27px;top:6px;bottom:6px}
 .dvr-timecards strong{font-size:14px}.dvr-timecards>div:not(.dvr-between){padding:9px}
 #record-clip-export .dvr-export{padding:11px 10px;gap:10px}
 .dvr-reel-area{padding:10px 8px}.dvr-reel-scale span:nth-child(2){display:none}
 .dvr-footer{display:grid;grid-template-columns:1fr;gap:8px}.dvr-footer .primary{width:100%}
 #record-player-shell:fullscreen #record-timeline-box{max-height:123px!important;padding:5px 7px calc(5px + env(safe-area-inset-bottom))!important}
 #record-player-shell:fullscreen #record-range{font-size:10px!important}
 #record-player-shell:fullscreen .record-playback-tools button{min-height:29px!important;height:29px!important;padding:5px 7px!important}
}
@media (max-height:600px){
 #record-player-shell:fullscreen #record-timeline-box{max-height:115px!important}
 #record-player-shell:fullscreen .timeline-top{display:none!important}
}


/* Proteus V7: rolo DVR sob a imagem e navegação simplificada do mosaico */
#record-player-shell:has(#record-clip-export:not([hidden])) .record-timeline-box{margin:0!important;border-top:0!important;border-radius:0 0 16px 16px!important}
#record-player-shell #record-clip-export{width:100%;position:relative;z-index:6;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#080d14!important}
#record-player-shell #record-clip-export:not([hidden]){border-top:2px solid #ea7907!important;border-bottom:1px solid #27446d!important}
#record-player-shell #record-clip-export .dvr-export{display:grid;gap:7px;padding:9px 14px!important;border:0!important;border-radius:0!important;background:linear-gradient(135deg,#101b2e,#111114 74%)!important}
#record-player-shell .dvr-header{align-items:center}
#record-player-shell .dvr-header small{font-size:11px}
#record-player-shell .dvr-timecards{display:none!important}
#record-player-shell .dvr-reel-area{padding:8px 10px!important;gap:5px!important;border-radius:10px!important}
#record-player-shell .dvr-reel{height:56px!important}
#record-player-shell .dvr-reel .dvr-grip{top:5px;bottom:5px;width:31px}
#record-player-shell .dvr-overview-head{display:none!important}
#record-player-shell .dvr-reel-scale span:nth-child(2){display:none!important}
#record-player-shell .dvr-footer{display:flex!important;align-items:center;gap:12px;flex-wrap:nowrap!important}
#record-player-shell .dvr-footer button{flex:0 0 auto;width:auto!important}
#record-player-shell .dvr-tip{font-size:10px;line-height:1.35}
.record-screen{position:relative}
.dvr-scrub-preview{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);z-index:20;background:rgba(7,11,20,.9);border:1px solid rgba(253,144,23,.8);border-radius:999px;box-shadow:0 5px 22px #0008;padding:8px 16px;color:#fff;white-space:nowrap;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;pointer-events:none}

/* Toolbar exibida apenas quando uma câmera é ampliada */
.live-focus-toolbar{display:none}
.mosaic-tile .mosaic-tile-expand svg{width:21px;height:21px;display:block}
.mosaic-tile-expanded .live-focus-toolbar,.mosaic-tile:fullscreen .live-focus-toolbar,.mosaic-tile-native-fullscreen .live-focus-toolbar{display:flex!important;flex:0 0 auto;gap:10px;align-items:center;justify-content:space-between;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(120deg,#0b111c,#131113);border-top:1px solid #31599c;color:#fff;position:relative;z-index:2140;min-height:73px}
.live-focus-head{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.live-focus-title{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-focus-indicator{display:inline-flex;align-items:center;gap:6px;color:#d8dce7;font-size:10px;letter-spacing:.07em;font-weight:800}
.live-focus-dot{width:7px;height:7px;border-radius:50%;background:#23db51;box-shadow:0 0 0 3px #23db5123}
.live-focus-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.live-focus-counter{min-width:49px;text-align:center;font-size:11px;color:#bbcbeb;font-weight:700;font-variant-numeric:tabular-nums}
.live-focus-move{display:grid;place-items:center;width:45px;height:43px;border:1px solid rgba(78,125,224,.65);border-radius:12px;background:#151d2c;color:#fff;padding:10px}
.live-focus-move:disabled{opacity:.35}
.live-focus-move svg{width:21px;height:21px}
.mosaic-tile-expanded>.mosaic-tile-footer,.mosaic-tile:fullscreen>.mosaic-tile-footer,.mosaic-tile-native-fullscreen>.mosaic-tile-footer{display:none!important}
.mosaic-tile-expanded>iframe{height:auto!important;min-height:0!important;flex:1 1 0!important}
@media (max-width:800px){
  #record-player-shell #record-clip-export .dvr-export{padding:8px!important;gap:6px!important}
  #record-player-shell .dvr-header small{display:none}
  #record-player-shell .dvr-reel-area{padding:6px!important}
  #record-player-shell .dvr-reel{height:54px!important}
  #record-player-shell .dvr-reel-scale{font-size:9px}
  #record-player-shell .dvr-footer{gap:7px!important}
  #record-player-shell .dvr-tip{font-size:9px}
  #record-player-shell .dvr-footer .primary{padding:8px 10px!important;font-size:11px!important}
  .mosaic-tile-expanded .live-focus-toolbar,.mosaic-tile:fullscreen .live-focus-toolbar,.mosaic-tile-native-fullscreen .live-focus-toolbar{min-height:80px!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;gap:6px!important}
  .live-focus-title{font-size:12px}
  .live-focus-move{width:49px;height:46px}
  .live-focus-actions{gap:6px}
}

.mosaic-tile-expanded>.mosaic-tile-status,.mosaic-tile:fullscreen>.mosaic-tile-status,.mosaic-tile-native-fullscreen>.mosaic-tile-status{display:none!important}


/* V7 - captura de foto e gravação local da câmera em foco */
.live-capture-actions{display:flex;gap:7px;align-items:center;flex:0 0 auto}
.live-focus-capture{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:8px 12px;border-radius:11px;background:#1a202d;border:1px solid #355d9b;color:#f7f7fb;font-size:12px;font-weight:700;white-space:nowrap}
.live-focus-capture svg{width:19px;height:19px;flex-shrink:0}
.live-focus-capture:hover{background:#22314b;border-color:#ff912e}
.live-focus-capture.is-recording{background:#4f1919;border-color:#ff3333;box-shadow:0 0 0 2px #ff333326;color:#fff}
.live-focus-capture.is-recording svg{fill:#ff4343;stroke:#ff4343}
.live-capture-message{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);max-width:min(420px,90vw);padding:9px 14px;background:#13233a;border:1px solid #3b77d5;border-radius:10px;color:#ecf4ff;font-size:12px;line-height:1.4;text-align:center;box-shadow:0 12px 30px #000b;z-index:2200;pointer-events:none}
.live-capture-message.is-error{background:#2e1518;border-color:#ff5353}
.mosaic-tile-expanded .live-focus-toolbar,.mosaic-tile:fullscreen .live-focus-toolbar,.mosaic-tile-native-fullscreen .live-focus-toolbar{flex-wrap:wrap!important}
@media(max-width:900px){
  .mosaic-tile-expanded .live-focus-toolbar,.mosaic-tile:fullscreen .live-focus-toolbar,.mosaic-tile-native-fullscreen .live-focus-toolbar{min-height:100px!important;gap:9px!important;justify-content:center!important}
  .live-focus-head{flex-basis:100%;flex-grow:1;flex-direction:row;align-items:center;gap:9px}
  .live-focus-title{font-size:12px}
  .live-capture-actions{flex:1;justify-content:flex-start}
  .live-focus-capture{padding:8px 10px;min-height:44px}
  .live-focus-actions{margin-left:auto}
}
@media(max-width:440px){
  .live-focus-toolbar{gap:5px!important}
  .live-focus-capture{font-size:11px;padding:7px 8px;gap:4px}
  .live-focus-capture svg{width:17px;height:17px}
  .live-focus-move{width:41px;height:42px}
  .live-focus-counter{min-width:32px;font-size:10px}
}


/* PROTEUS CLOUD V7 — Correção visual dos cards de usuários (2026-11-11)
   Mantém a lógica de usuários e as permissões sem alterações. */
#users-panel .users-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr));
  align-items:stretch;
  gap:16px;
}
#users-list .user-card{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) auto;
  grid-template-areas:
    "avatar name type"
    "actions actions actions";
  align-items:center;
  align-content:start;
  column-gap:14px;
  row-gap:0;
  min-width:0;
  min-height:160px;
  padding:20px;
  border:1px solid #384152;
  border-radius:17px;
  background:linear-gradient(145deg,#1d1e21 0%,#121316 85%);
  box-shadow:inset 0 1px rgba(66,127,220,.12),0 12px 28px rgba(0,0,0,.26);
  transition:border-color .18s,box-shadow .18s;
}
#users-list .user-card:hover{
  border-color:#64523c;
  box-shadow:inset 0 1px rgba(75,127,220,.18),0 15px 30px rgba(0,0,0,.30);
}
#users-list .user-avatar{
  grid-area:avatar;
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  flex:none;
  border-radius:14px;
  background:linear-gradient(135deg,#ffab37,#bb5c0a);
  color:#211409;
  font-size:17px;
  line-height:1;
  font-weight:850;
}
#users-list .user-details{
  grid-area:name;
  display:block;
  min-width:0;
  flex:none;
}
#users-list .user-details strong{
  display:block;
  margin:0;
  max-width:100%;
  font-size:15px;
  line-height:1.35;
  color:#f5f4f5;
  font-weight:750;
  overflow-wrap:anywhere;
  word-break:normal;
  letter-spacing:0;
}
#users-list .user-details small{
  display:block;
  max-width:100%;
  margin:6px 0 0;
  font-size:12px;
  line-height:1.45;
  color:#9da9bc;
  font-weight:450;
  overflow-wrap:anywhere;
}
#users-list .user-tag{
  grid-area:type;
  justify-self:end;
  align-self:center;
  margin:0;
  flex:none;
  min-width:0;
  padding:7px 10px;
  font-size:10px;
  line-height:1.2;
  letter-spacing:.06em;
  text-align:center;
  border:1px solid #815023;
  background:rgba(255,140,29,.10);
  color:#ffaf65;
  white-space:nowrap;
}
#users-list .user-directory-actions{
  grid-area:actions;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:9px;
  width:100%;
  min-width:0;
  margin:18px 0 0;
  padding:14px 0 0;
  border-top:1px solid rgba(123,137,161,.18);
}
#users-list .user-directory-actions button{
  flex:0 0 auto;
  min-width:82px;
  min-height:38px;
  padding:8px 14px;
  border-radius:10px;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}
#users-list .user-directory-actions:empty{display:none}
@media(max-width:520px){
  #users-panel .users-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  #users-list .user-card{
    grid-template-columns:48px minmax(0,1fr) auto;
    column-gap:10px;
    min-height:145px;
    padding:15px;
  }
  #users-list .user-avatar{width:46px;height:46px;font-size:15px}
  #users-list .user-tag{font-size:9px;padding:6px 8px}
  #users-list .user-details strong{font-size:14px}
  #users-list .user-details small{font-size:11px}
  #users-list .user-directory-actions{margin-top:14px;padding-top:12px}
  #users-list .user-directory-actions button{min-height:40px;min-width:80px}
}
@media(max-width:340px){
  #users-list .user-card{
    grid-template-columns:46px minmax(0,1fr);
    grid-template-areas:"avatar name" "type type" "actions actions";
  }
  #users-list .user-tag{justify-self:start;margin-top:12px}
}


/* V7 | Sinal em tempo real nos cartões de Câmeras e em Câmeras vinculadas. */
.camera-live-indicator{transition:color .18s ease,background-color .18s ease,border-color .18s ease;}
.camera-manager-icon.camera-live-indicator.is-online{color:#49f6a4;background:#102e23;border-color:#278858;text-shadow:0 0 10px #2cff8d66;}
.camera-manager-icon.camera-live-indicator.is-offline{color:#ff3232;background:#3b1217;border-color:#b72129;animation:proteus-camera-blink 1.2s ease-in-out infinite;}
.camera-manager-icon.camera-live-indicator.is-checking,.camera-manager-icon.camera-live-indicator.is-disabled{color:#93959c;background:#292a2e;border-color:#45474c;text-shadow:none;animation:none;}
#clients-list .compact-client-cameras li.linked-camera-row{display:flex;align-items:center;gap:11px;min-width:0;min-height:53px;}
.linked-camera-indicator{display:inline-grid;place-items:center;flex:none;width:30px;height:30px;font-size:23px;line-height:1;border-radius:9px;border:1px solid #444;background:#292a2f;color:#9b9da3;}
.linked-camera-indicator.is-online{color:#49f6a4;background:#112d22;border-color:#2b8754;text-shadow:0 0 10px #2cff8d55;}
.linked-camera-indicator.is-offline{color:#ff3030;background:#3c1118;border-color:#b52b31;animation:proteus-camera-blink 1.2s ease-in-out infinite;}
.linked-camera-indicator.is-checking,.linked-camera-indicator.is-disabled{color:#92949c;background:#27282c;border-color:#4c4b52;animation:none;}
.linked-camera-identity{display:flex;flex-direction:column;justify-content:center;gap:3px;flex:1;min-width:0;}
.linked-camera-name{display:block;color:#eae9eb;font-size:12px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;}
#clients-list .compact-client-cameras .linked-camera-status{display:block;font-size:10px;color:#9c9ea8;font-weight:600;}
.linked-camera-indicator.is-online+.linked-camera-identity .linked-camera-status{color:#78d6a5!important;}
.linked-camera-indicator.is-offline+.linked-camera-identity .linked-camera-status{color:#ff7575!important;}
@keyframes proteus-camera-blink{0%,100%{opacity:1;box-shadow:0 0 0 0 #ff16161a}50%{opacity:.35;box-shadow:0 0 10px 3px #ff16164d}}
@media(prefers-reduced-motion:reduce){.camera-live-indicator.is-offline{animation:none!important;}}
/* PROTEUS-V7-CORES-CAMERA-VIVAS:INICIO
   Correção visual V7. Online = verde da bandeira do Brasil (#009C3B).
   Offline = vermelho puro (#FF0000), piscando.
   Aplica-se a Câmeras e a Clientes e planos > Câmeras vinculadas.
*/
.camera-manager-icon.camera-live-indicator.is-online,
.linked-camera-indicator.camera-live-indicator.is-online {
  color: #009C3B !important;
  border-color: #009C3B !important;
  background-color: #092419 !important;
  text-shadow: 0 0 7px rgba(0,156,59,.55) !important;
  box-shadow: inset 0 0 7px rgba(0,156,59,.08) !important;
  animation: none !important;
}
.camera-manager-icon.camera-live-indicator.is-offline,
.linked-camera-indicator.camera-live-indicator.is-offline {
  color: #FF0000 !important;
  border-color: #FF0000 !important;
  background-color: #2D0909 !important;
  text-shadow: 0 0 8px rgba(255,0,0,.70) !important;
  animation: proteus-v7-vermelho-puro 1.05s ease-in-out infinite !important;
}
.linked-camera-indicator.is-online + .linked-camera-identity .linked-camera-status {
  color: #009C3B !important;
}
.linked-camera-indicator.is-offline + .linked-camera-identity .linked-camera-status {
  color: #FF0000 !important;
}
@keyframes proteus-v7-vermelho-puro {
  0%, 100% {
    opacity: 1;
    filter: brightness(1);
    box-shadow: 0 0 0 1px rgba(255,0,0,.35), 0 0 8px rgba(255,0,0,.48);
  }
  50% {
    opacity: .45;
    filter: brightness(.85);
    box-shadow: 0 0 0 3px rgba(255,0,0,.14), 0 0 14px rgba(255,0,0,.65);
  }
}
@media (prefers-reduced-motion: reduce) {
  .camera-manager-icon.camera-live-indicator.is-offline,
  .linked-camera-indicator.camera-live-indicator.is-offline {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: 0 0 9px rgba(255,0,0,.30) !important;
  }
}
/* PROTEUS-V7-CORES-CAMERA-VIVAS:FIM */

/* Proteus V7 — Equipe interna e monitoramento de incidentes (isolado) */
.staff-access-section{margin-top:26px;padding-top:26px;border-top:1px solid rgba(127,151,187,.22)}
.staff-access-section .panel-title{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.staff-access-section .panel-title h3{margin:6px 0;font-size:20px}
.staff-member-card .staff-member-permissions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.staff-member-permissions span{display:inline-flex;background:rgba(45,91,150,.16);border:1px solid rgba(84,132,207,.24);border-radius:8px;padding:5px 7px;color:#c5d7f4;font-size:10px;line-height:1.3;overflow-wrap:anywhere}
.staff-permissions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:10px}
.staff-permission-group{min-width:0;border:1px solid #343a48;border-radius:14px;padding:13px;background:rgba(17,22,32,.55)}
.staff-permission-group legend{font-size:12px;font-weight:750;color:#dbe9ff;padding:0 5px}
.staff-permission-row{display:flex;align-items:center;gap:10px;flex-direction:row!important;margin:8px 0;font-size:13px}
.staff-permission-row input{width:17px!important;height:17px!important;accent-color:#e57a25;flex:none}
.incidents-panel{border:1px solid rgba(97,121,167,.30);border-radius:18px;padding:20px;margin-bottom:20px;background:linear-gradient(130deg,#18202e,#111318 75%)}
.incidents-panel .panel-box-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.incidents-panel .panel-box-head h3{margin:6px 0;font-size:20px}
.incident-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.incident-metrics>div{background:rgba(10,15,23,.70);border:1px solid rgba(92,115,154,.25);border-radius:12px;padding:14px;min-width:0}
.incident-metrics span{display:block;font-size:11px;color:#acb9cf;margin-bottom:8px}
.incident-metrics strong{font-size:25px;font-weight:800;color:#f2f5fc;font-variant-numeric:tabular-nums}
.incident-list{display:grid;gap:10px}
.incident-row{background:rgba(12,17,25,.58);border:1px solid rgba(84,116,167,.26);border-radius:12px;padding:12px}
.incident-row-header{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.incident-row-header strong{font-size:14px;overflow-wrap:anywhere}
.incident-row p{font-size:12px;margin:9px 0 0;color:#bbc7dc;line-height:1.5}
.incident-chip{font-size:10px;font-weight:800;letter-spacing:.04em;border-radius:9px;padding:6px 8px}
.incident-chip.is-active{background:rgba(255,0,0,.14);border:1px solid rgba(255,0,0,.45);color:#ff5252}
.incident-chip.is-recovered{background:rgba(0,156,59,.14);border:1px solid rgba(0,156,59,.45);color:#40d57f}
.incident-empty{font-size:12px;color:#b6c3d6;padding:12px 3px;line-height:1.5}
@media(max-width:690px){.incident-metrics{grid-template-columns:1fr 1fr}.incident-metrics>div:last-child{grid-column:1/-1}.staff-permissions-grid{grid-template-columns:1fr}.incidents-panel{padding:14px}}

.users-section-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 18px;border-bottom:1px solid rgba(106,127,161,.3);padding-bottom:10px}
.users-section-tab{border:1px solid rgba(89,111,147,.34);border-radius:10px;background:#151b25;color:#b9c8dc;padding:11px 15px;min-height:40px;font-weight:720;cursor:pointer}
.users-section-tab.active{background:linear-gradient(120deg,#243954,#15253c);border-color:#688dc9;color:#f1f6ff;box-shadow:inset 0 -2px #e47b2d}
.users-section-tab:focus-visible{outline:2px solid #f39b53;outline-offset:2px}
.staff-access-section{border-top:0;margin-top:0;padding-top:0}
