:root{--navy:#0a2540;--navy2:#0f3556;--blue:#0877f9;--blue2:#3994ff;--ink:#17243a;--muted:#6c7b8f;--line:#dce4ed;--bg:#f3f6fa;--white:#fff;--green:#22a06b;--red:#df4b52;--amber:#f0a227;--shadow:0 14px 40px rgba(16,38,68,.09)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.04em}h2{letter-spacing:-.025em}.muted{color:var(--muted)}.tiny{font-size:12px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.16em;color:#2b7de8;margin-bottom:8px}.brand{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700}.brand b{color:var(--blue)}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:white;background:linear-gradient(145deg,var(--blue),#0555b6);font-weight:900;font-size:13px;box-shadow:0 8px 20px rgba(8,119,249,.25)}.brand-large{margin-bottom:24px;font-size:22px}.brand-light{color:white}.brand-light b{color:#66b0ff}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 15px;border:1px solid transparent;border-radius:10px;font-weight:700;font-size:13px;transition:.18s ease}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--blue);color:white;box-shadow:0 8px 20px rgba(8,119,249,.18)}.btn.subtle{background:#fff;border-color:var(--line);color:var(--ink)}.btn.full{width:100%}.alert{padding:13px 15px;border-radius:10px;margin:14px 0;font-size:13px}.alert.success{background:#e9f8f1;color:#167750;border:1px solid #bfe8d5}.alert.danger{background:#fff0f1;color:#a82d36;border:1px solid #f4c8cc}.stack-form{display:flex;flex-direction:column;gap:14px}.stack-form label,.form-grid label,.plan-settings label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#526174}.stack-form input,.stack-form select,.stack-form textarea,.form-grid input,.form-grid select{width:100%;border:1px solid #cfd9e5;border-radius:9px;padding:11px 12px;color:var(--ink);background:#fff;outline:none}.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus,.form-grid input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(8,119,249,.12)}hr{border:0;border-top:1px solid var(--line);width:100%}
.auth-body{min-height:100vh;background:#edf3f9;display:grid;place-items:center;padding:24px}.login-shell{display:grid;grid-template-columns:1.12fr .88fr;width:min(1080px,100%);min-height:650px;background:white;border-radius:24px;overflow:hidden;box-shadow:0 28px 80px rgba(10,37,64,.18)}.login-visual{position:relative;overflow:hidden;background:radial-gradient(circle at 82% 18%,#1767ac 0,transparent 32%),linear-gradient(145deg,#071e32,#0b3c64);padding:44px 48px;display:flex;flex-direction:column;justify-content:space-between;color:white}.login-visual h1{font-size:48px;line-height:1.02;margin:10px 0 20px}.login-visual p:not(.eyebrow){max-width:460px;color:#c7d9e9;line-height:1.7}.network-art{position:absolute;inset:75px -20px 140px 10px;opacity:.55}.network-art svg{width:100%;height:100%;fill:none;stroke:#5faeff;stroke-width:2}.network-art i{position:absolute;width:16px;height:16px;border:4px solid #8ac5ff;background:#0d3d64;border-radius:50%;box-shadow:0 0 0 8px rgba(75,163,255,.12)}.network-art i:nth-child(1){left:10%;top:60%}.network-art i:nth-child(2){left:32%;top:25%}.network-art i:nth-child(3){left:55%;top:48%}.network-art i:nth-child(4){left:84%;top:12%}.network-art i:nth-child(5){left:77%;top:80%}.privacy-pill{align-self:flex-start;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.13);font-size:12px}.privacy-pill::first-letter{color:#45dc98}.login-card{padding:70px 64px;display:flex;flex-direction:column;justify-content:center}.login-card h2{font-size:31px;margin-bottom:8px}.login-card .stack-form{margin-top:20px}.local-note{text-align:center;color:#758398;font-size:11px;margin:24px 0 0}.install-card{width:min(720px,100%);padding:42px;background:white;border-radius:22px;box-shadow:var(--shadow)}.install-card h1{font-size:34px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid h2{font-size:17px;margin:10px 0 0}.span-2{grid-column:1/-1}
.app-sidebar{position:fixed;z-index:20;inset:0 auto 0 0;width:238px;background:#fff;border-right:1px solid var(--line);padding:24px 16px;display:flex;flex-direction:column}.app-sidebar>.brand{padding:0 10px 28px}.app-sidebar nav{display:flex;flex-direction:column;gap:5px}.app-sidebar nav a{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:10px;color:#637186;font-size:13px;font-weight:650}.app-sidebar nav a span{width:22px;text-align:center;font-size:17px}.app-sidebar nav a:hover,.app-sidebar nav a.active{background:#edf5ff;color:var(--blue)}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:18px 4px 0;display:grid;grid-template-columns:36px 1fr 24px;gap:9px;align-items:center}.avatar{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#dcecff;color:#0563c9;font-weight:900}.sidebar-foot b,.sidebar-foot small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-foot b{font-size:12px}.sidebar-foot small{font-size:10px;color:var(--muted);margin-top:3px}.sidebar-foot>a{font-size:20px;color:#8793a3}.app-main{margin-left:238px;min-height:100vh;padding:0 34px 48px}.app-top{height:106px;display:flex;align-items:center;justify-content:space-between}.app-top h1{font-size:25px;margin:0}.app-top p{margin:0 0 4px}.role-chip{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eaf3ff;color:#1267c7;font-size:10px;text-transform:uppercase;font-weight:800}.mobile-menu{display:none;background:none;border:0;font-size:22px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.metrics article{position:relative;padding:20px;background:#fff;border:1px solid #e1e8f0;border-radius:14px;box-shadow:0 5px 18px rgba(26,55,90,.04)}.metrics span{display:block;color:var(--muted);font-size:11px;font-weight:700;margin-bottom:10px}.metrics b{font-size:25px;letter-spacing:-.04em}.metrics i{position:absolute;right:17px;top:18px;width:35px;height:35px;border-radius:10px;background:#eaf3ff;color:var(--blue);display:grid;place-items:center;font-style:normal}.content-card{background:#fff;border:1px solid #e0e8f1;border-radius:15px;padding:24px;box-shadow:0 5px 20px rgba(26,55,90,.04)}.content-card.narrow{max-width:640px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.section-title h2{font-size:19px;margin:0}.section-title p{margin-bottom:6px}.counter{display:grid;place-items:center;min-width:34px;height:34px;padding:0 10px;background:#eef4fb;border-radius:10px;font-weight:800;color:#45617c}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:16px}.project-card{position:relative;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:white;transition:.2s}.project-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:#c4d8ef}.project-preview{height:125px;background:linear-gradient(135deg,#eaf4ff,#f5f9fd);position:relative;overflow:hidden}.project-preview span{position:absolute;left:12px;top:12px;padding:4px 7px;border-radius:6px;background:white;color:#226cb8;font-size:9px;font-weight:900;letter-spacing:.1em}.project-preview svg{width:100%;height:100%;fill:#2580dc;stroke:#3f8edb;stroke-width:2}.project-info{padding:16px}.project-info b{display:block;font-size:14px}.project-info p{height:30px;margin:6px 0;color:var(--muted);font-size:11px;line-height:1.35;overflow:hidden}.project-info small{color:#8793a3;font-size:9px}.card-delete{position:absolute;right:9px;top:9px;width:28px;height:28px;border:0;border-radius:8px;background:rgba(255,255,255,.92);color:#ba3740;font-size:18px}.empty-state{text-align:center;padding:60px 20px;color:var(--muted)}.empty-state>div{font-size:38px;color:#8ab7e8}.empty-state h3{color:var(--ink);margin:12px 0 7px}.split-content{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.7fr);gap:18px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:#78869a;font-size:10px;text-transform:uppercase;letter-spacing:.08em;padding:10px;border-bottom:1px solid var(--line)}td{padding:13px 10px;border-bottom:1px solid #edf1f5;vertical-align:middle}td small{display:block;color:var(--muted);margin-top:3px}.status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;text-transform:uppercase;font-weight:800}.status.active{background:#e6f6ee;color:#14744e}.status.suspended{background:#ffeaec;color:#aa2e37}.link-btn{border:0;background:none;color:var(--blue);font-size:11px;font-weight:700}.three-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.editor-body{height:100vh;overflow:hidden;background:#eef3f8}.editor-topbar{height:62px;background:white;border-bottom:1px solid var(--line);display:grid;grid-template-columns:230px 1fr auto;align-items:center;padding:0 16px;position:relative;z-index:5}.back-link{font-size:12px;font-weight:700;color:#587087}.project-title{display:flex;align-items:center;gap:12px}.project-title b{font-size:14px}.project-title span{font-size:10px;color:var(--muted)}.project-title span.saving{color:var(--amber)}.project-title span.saved{color:var(--green)}.editor-actions{display:flex;gap:7px}.editor-layout{height:calc(100vh - 62px);display:grid;grid-template-columns:190px minmax(0,1fr) 260px}.palette,.properties{background:#fff;padding:18px 14px;overflow:auto;z-index:3}.palette{border-right:1px solid var(--line)}.properties{border-left:1px solid var(--line)}.palette h3,.properties h3{font-size:12px;margin:0 0 7px}.palette-item{display:grid;grid-template-columns:35px 1fr;align-items:center;gap:9px;padding:9px;border:1px solid #e1e8f0;border-radius:9px;margin:7px 0;background:#fff;cursor:grab;transition:.15s}.palette-item:hover{border-color:#95c4fa;background:#f4f9ff;transform:translateX(2px)}.palette-icon{width:34px;height:30px;border-radius:8px;display:grid;place-items:center;background:#eaf4ff;color:#096cca;font-size:9px;font-weight:900}.palette-item b{font-size:11px}.palette-item small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.palette-section{border-top:1px solid var(--line);margin-top:18px;padding-top:15px}.tool-btn{width:100%;border:0;background:transparent;border-radius:8px;padding:9px;text-align:left;color:#526174;font-size:11px;font-weight:700}.tool-btn:hover,.tool-btn.active{background:#eaf4ff;color:var(--blue)}.danger-text{color:#bd3e46}.canvas-wrap{position:relative;overflow:auto;background:#dfe7ef;touch-action:none}.canvas-wrap.connecting{cursor:crosshair}.canvas-wrap.connecting::after{content:'Clique no equipamento de origem e depois no destino';position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#0a2540;color:#fff;padding:9px 15px;border-radius:9px;font-size:11px;z-index:10}#topologyCanvas{display:block;width:2400px;height:1400px;background:#f4f7fb;transform-origin:0 0;outline:none}.zoom-controls{position:fixed;z-index:4;left:215px;bottom:18px;display:flex;align-items:center;background:white;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);overflow:hidden}.zoom-controls button{width:33px;height:33px;border:0;background:#fff;font-size:17px}.zoom-controls span{font-size:9px;width:44px;text-align:center;color:var(--muted)}.node-group{cursor:grab}.node-group.selected .node-box{stroke:#f0a227;stroke-width:4}.node-box{fill:white;stroke:#abc7e6;stroke-width:2}.node-icon-bg{fill:#0877f9}.node-icon-text{fill:#fff;font-size:11px;font-weight:900;text-anchor:middle;dominant-baseline:middle}.node-label{font-size:12px;font-weight:800;text-anchor:middle;fill:#17314d}.node-meta{font-size:8px;text-anchor:middle;fill:#6c7b8f}.edge-line{fill:none;stroke:#22a06b;stroke-width:3}.edge-hit{fill:none;stroke:transparent;stroke-width:18;cursor:pointer}.edge-label-bg{fill:white;stroke:#dbe4ee}.edge-label{font-size:9px;text-anchor:middle;fill:#53647a}.edge-group.selected .edge-line{stroke-width:5;filter:drop-shadow(0 0 3px rgba(240,162,39,.8))}.properties-head{border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:15px}.properties-head span{font-size:9px;color:var(--muted)}.empty-properties{text-align:center;padding:45px 10px;color:#8a98aa;font-size:11px;line-height:1.6}.empty-properties div{font-size:30px;color:#aac6e3}.hidden{display:none!important}.properties .stack-form{gap:10px}.properties .stack-form input,.properties .stack-form select,.properties .stack-form textarea{padding:8px;font-size:11px}.plan-settings{border-top:1px solid var(--line);padding-top:16px;margin-top:20px;display:flex;flex-direction:column;gap:12px}.plan-settings input[type=color]{height:33px;padding:2px;width:100%;border:1px solid var(--line);border-radius:7px}.inline-check{flex-direction:row!important;align-items:center}.inline-check input{width:auto!important}.toast{position:fixed;z-index:100;right:20px;bottom:20px;background:#102e4c;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:var(--shadow);font-size:11px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.toast.error{background:#a9323a}
@media(max-width:980px){.metrics{grid-template-columns:1fr 1fr}.split-content{grid-template-columns:1fr}.editor-layout{grid-template-columns:150px minmax(0,1fr) 220px}.editor-topbar{grid-template-columns:150px 1fr auto}.editor-actions .btn{padding:7px 9px}.zoom-controls{left:170px}}
@media(max-width:720px){.login-shell{grid-template-columns:1fr;min-height:auto}.login-visual{display:none}.login-card{padding:42px 28px}.app-sidebar{transform:translateX(-100%);transition:.2s}.menu-open .app-sidebar{transform:none}.app-main{margin-left:0;padding:0 16px 30px}.mobile-menu{display:block}.app-top{justify-content:flex-start;gap:14px}.app-top>.role-chip{margin-left:auto}.metrics{grid-template-columns:1fr 1fr}.project-grid{grid-template-columns:1fr}.editor-topbar{height:auto;min-height:62px;grid-template-columns:auto 1fr;padding:8px}.project-title{display:none}.editor-actions{justify-content:flex-end;flex-wrap:wrap}.editor-layout{height:calc(100vh - 62px);grid-template-columns:76px minmax(0,1fr)}.palette{padding:10px 7px}.palette h3,.palette .tiny,.palette-item div:not(.palette-icon){display:none}.palette-item{display:block;padding:6px}.palette-icon{width:100%}.properties{position:fixed;z-index:20;right:0;top:62px;bottom:0;width:250px;transform:translateX(100%);transition:.2s}.properties.open{transform:none}.zoom-controls{left:90px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.install-card{padding:26px}.three-cols{grid-template-columns:1fr}}
@media(max-width:430px){.metrics{grid-template-columns:1fr}.editor-actions .btn.subtle:first-child{display:none}.editor-actions .btn{font-size:11px;min-height:34px}.login-card h2{font-size:27px}}
.auth-divider{display:flex;align-items:center;gap:12px;color:#9aa7b6;font-size:10px;margin:18px 0}.auth-divider::before,.auth-divider::after{content:"";height:1px;background:var(--line);flex:1}.register-body{padding:22px}.register-shell{display:grid;grid-template-columns:.82fr 1.18fr;width:min(1120px,100%);min-height:720px;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 28px 80px rgba(10,37,64,.18)}.register-intro{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:42px;background:radial-gradient(circle at 85% 12%,#1767ac 0,transparent 34%),linear-gradient(150deg,#071e32,#0b3c64);color:#fff}.register-intro::after{content:"";position:absolute;width:330px;height:330px;border:1px solid rgba(103,180,255,.17);border-radius:50%;right:-190px;bottom:55px;box-shadow:0 0 0 60px rgba(64,156,244,.04),0 0 0 120px rgba(64,156,244,.025)}.register-intro>div,.register-intro>.brand,.register-intro>.privacy-pill{position:relative;z-index:1}.register-intro h1{font-size:39px;line-height:1.06;margin:10px 0 17px}.register-intro>div>p:not(.eyebrow){color:#c6d9e9;line-height:1.65;font-size:13px}.signup-benefits{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-direction:column;gap:12px;color:#e4f0fa;font-size:12px}.signup-benefits span{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:8px;border-radius:50%;background:rgba(65,212,151,.15);color:#52dda1;font-weight:900}.register-card{padding:35px 50px 30px;overflow:auto}.back-auth{font-size:11px;font-weight:700;color:#63768c}.register-heading{margin:24px 0 20px}.register-heading h2{font-size:29px;margin-bottom:7px}.signup-form{display:flex;flex-direction:column;gap:17px}.signup-form fieldset{margin:0;padding:17px;border:1px solid #dce5ef;border-radius:13px}.signup-form legend{padding:0 8px 0 0;font-size:12px;font-weight:800;color:#354a62}.signup-form legend span{display:inline-grid;place-items:center;width:23px;height:23px;margin-right:7px;border-radius:7px;background:#e9f3ff;color:var(--blue);font-size:10px}.signup-form label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:750;color:#536377}.signup-form input{width:100%;padding:10px 11px;border:1px solid #ccd8e5;border-radius:9px;outline:none;color:var(--ink);background:#fff}.signup-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(8,119,249,.11)}.signup-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.password-hint{font-size:9px;color:#8491a2;margin:8px 0 0}.terms-check{flex-direction:row!important;align-items:flex-start;line-height:1.45;font-weight:500!important}.terms-check input{width:auto;margin:2px 2px 0 0}.signup-submit{min-height:45px}.signin-link{text-align:center;font-size:11px;color:#7b899a;margin:0}.signin-link a{color:var(--blue);font-weight:800}.honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}.alert ul{margin:7px 0 0;padding-left:18px}.alert li+li{margin-top:4px}
@media(max-width:720px){.register-body{padding:0}.register-shell{display:block;min-height:100vh;border-radius:0}.register-intro{display:none}.register-card{padding:28px 22px}.signup-grid{grid-template-columns:1fr}}
