:root{--navy:#101e31;--navy-soft:#172b42;--teal:#087f77;--teal-light:#e5f5f0;--ink:#182a3b;--muted:#617084;--line:#e3e9ee;--page:#f4f7f9;--white:#fff;--radius:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--page);font-family:"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--teal)}[hidden]{display:none!important}h1,h2,p{margin-top:0}h2{font-size:18px;letter-spacing:-.35px;margin-bottom:6px}a.brand{text-decoration:none;color:inherit}.muted{color:var(--muted);margin-bottom:0}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:700;letter-spacing:-.75px;position:relative;z-index:1}.brand-light{color:#fff!important}.brand-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:#19a994;border-radius:13px;font-size:28px;font-weight:700;position:relative;color:#fff}.brand-icon>span{position:absolute;right:7px;bottom:1px;color:#b7f1d8}.brand-sad{font-weight:400;color:#c2d0df}.brand small{display:block;font-size:9px;letter-spacing:3px;line-height:1;margin-top:4px;font-weight:500;color:#9fb2c4}.section-kicker{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--teal)}.login-layout{min-height:calc(100vh - 58px);display:grid;grid-template-columns:49% 51%}.login-hero{background:var(--navy);position:relative;overflow:hidden;padding:40px 50px;color:#fff;display:flex;flex-direction:column}.hero-content{margin:auto 0;max-width:480px;position:relative;z-index:1;padding:50px 0 25px}.eyebrow{display:flex;align-items:center;gap:10px;color:#b9d2dc;font-size:10px;letter-spacing:2px;font-weight:600}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#27b396;flex-shrink:0}.hero-content h1{font-size:clamp(33px,3.6vw,50px);line-height:1.18;letter-spacing:-1.8px;margin:25px 0 20px;font-weight:600}.hero-content h1 em{color:#6cddba;font-style:normal}.hero-content>p{max-width:370px;color:#b3c1d0;line-height:1.8;font-size:14px}.hero-preview{margin-top:35px;padding:21px;background:rgba(255,255,255,.045);border:1px solid #344253;border-radius:15px;box-shadow:0 20px 60px #08132033}.preview-top,.preview-row{display:flex;align-items:center;gap:13px}.preview-top{padding-bottom:18px;border-bottom:1px solid #334153}.preview-top strong{font-size:12px;font-weight:600}.preview-top small,.preview-row small{display:block;font-size:11px;color:#a7b9ca;margin-top:3px}.preview-symbol{font-size:23px;color:#79dbbf}.preview-dots{margin-left:auto;color:#93a8b7;letter-spacing:2px}.preview-row{padding-top:20px}.preview-row strong{font-size:12px;font-weight:500}.preview-channel{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#164e46;color:#91e0c7;font-weight:700}.preview-channel.secondary{background:#283b56;color:#afc9e8}.preview-check{margin-left:auto;color:#74d5b5;font-size:16px}.hero-bottom{display:flex;align-items:center;gap:12px;margin-top:32px;color:#94a8bb;font-size:11px}.hero-line{width:25px;height:1px;background:#698494}.hero-orbit{position:absolute;width:520px;height:520px;border:1px solid #34546b44;border-radius:50%;pointer-events:none;right:-310px;top:12%}.orbit-two{width:680px;height:680px;right:-390px;top:3%}.login-main{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:60px 40px;background:#fbfcfd}.login-card{width:100%;max-width:360px}.login-card h2{font-size:31px;letter-spacing:-1px;font-weight:650;margin:12px 0}.login-description{font-size:14px;margin-bottom:32px;max-width:310px}.field{margin-bottom:19px}.field label{display:block;font-size:12px;font-weight:650;margin-bottom:7px}.field input,.field select{width:100%;height:48px;border:1px solid #d6dfe6;border-radius:9px;padding:0 14px;background:#fff;color:var(--ink);transition:border .15s,box-shadow .15s;outline:none}.field input:focus,.field select:focus{border-color:#159e8d;box-shadow:0 0 0 3px #149c8b14}.field input::placeholder{color:#84909f}.password-field{position:relative}.password-field input{padding-right:77px}.password-toggle{position:absolute;right:9px;top:10px;height:28px;background:transparent;border:0;color:#52677b;font-size:11px;padding:0 8px;border-radius:5px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:39px;padding:8px 16px;border:1px solid #d6e0e7;border-radius:8px;background:#fff;color:#344b60;font-weight:600;font-size:12px;transition:background .15s,border .15s}.button:hover:not(:disabled){background:#f1f7f6;border-color:#94c6bc}.button.primary{background:var(--teal);color:#fff;border-color:var(--teal)}.button.primary:hover:not(:disabled){background:#066f68}.login-submit{width:100%;height:49px;margin-top:7px;font-size:13px;justify-content:space-between;padding:0 18px;border-radius:9px;box-shadow:0 5px 12px #087f771a}.login-submit span{font-size:20px}.login-help{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted)}.login-help>span{font-size:21px;color:var(--teal)}.login-caption{font-size:9px;letter-spacing:1.9px;color:#8b97a6;margin:65px 0 0}.login-caption span{padding:0 7px}.site-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:17px 30px;background:#fff;border-top:1px solid var(--line);font-size:10px;color:#6c798b;min-height:58px}.site-footer a{text-decoration:none;color:#5d7588}.alert{padding:12px 15px;border-radius:8px;font-size:12px}.error-alert{color:#9a342e;background:#fff0ee;border:1px solid #f0d1ca}.app-layout{display:flex;min-height:calc(100vh - 58px)}.sidebar{width:235px;flex-shrink:0;background:var(--navy);padding:29px 23px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar .brand{font-size:20px}.sidebar .brand-icon{width:37px;height:37px;border-radius:11px;font-size:25px}.nav-label{margin:53px 12px 15px;font-size:9px;letter-spacing:1.8px;color:#7e95aa}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:7px;border-radius:9px;color:#b3c1d0;text-decoration:none;font-size:12px}.nav-item>span{font-size:18px;width:20px;text-align:center}.nav-item.active{background:#1e3d49;color:#99e7cb}.nav-item:hover{background:#203347}.sidebar-bottom{margin-top:auto;padding:25px 9px 5px}.sidebar-status{color:#b7c9d8;font-size:10px;display:flex;align-items:center;gap:9px}.sidebar-bottom p{color:#7890a7;font-size:11px;margin:14px 0 0;line-height:1.8}.workspace{min-width:0;flex:1}.topbar{height:78px;padding:0 35px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:white;border-bottom:1px solid var(--line)}.breadcrumb{color:#7a8796;font-size:11px}.breadcrumb span{padding:0 12px;color:#bec8d1}.topbar-actions{display:flex;align-items:center;gap:16px}.profile{font-size:11px;font-weight:600;color:#526579}.button.ghost{border:0;background:transparent;color:#697d8e}.dashboard{padding:32px 35px 22px;max-width:1580px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.page-heading h1{font-size:30px;letter-spacing:-1px;font-weight:650;margin:6px 0 4px}.page-heading p{font-size:12px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:23px}.metric{display:flex;align-items:flex-start;gap:15px;padding:23px 20px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 2px 3px #152f4210}.metric-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;font-size:21px;flex-shrink:0}.teal{color:#0d8479;background:#e9f7f4}.green{color:#2f8754;background:#edf7ef}.amber{color:#ad781f;background:#fff6e8}.metric-label{display:block;color:#6e7d8e;font-size:11px}.metric strong{display:block;line-height:1.3;font-weight:650;font-size:30px;letter-spacing:-.8px;margin:4px 0}.metric small{font-size:10px;color:#84909f}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:23px;overflow:hidden;box-shadow:0 2px 4px #1a324405;scroll-margin-top:20px}.service-heading{padding:20px 23px;display:flex;align-items:center;gap:14px}.service-symbol{width:42px;height:42px;background:#f0f4f8;border-radius:12px;display:grid;place-items:center;font-size:27px;color:#48647d}.service-heading h2{font-size:15px;margin-bottom:3px}.service-heading p{font-size:11px}.service-heading>.badge{margin-left:auto}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:6px;font-size:10px;font-weight:650;white-space:nowrap}.badge:before{content:"";height:5px;width:5px;border-radius:50%;background:currentColor}.badge.success{color:#287553;background:#eaf7ee}.badge.warning{color:#94651c;background:#fff5df}.badge.danger{color:#a7473d;background:#fff0ed}.badge.neutral{color:#667a8d;background:#f0f4f7}.service-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 23px;border-top:1px solid #edf1f4;background:#fcfdfe}.service-bottom p{font-size:10px}.button-group{display:flex;gap:8px;flex-wrap:wrap}.button.compact{min-height:33px;padding:5px 11px;font-size:10px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 23px}.panel-heading h2{font-size:15px;display:flex;gap:9px;align-items:center}.panel-heading p{font-size:11px}.count-pill{background:#f0f4f6;color:#748498;font-size:10px;padding:1px 7px;border-radius:5px;font-weight:600}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}thead{background:#f8fafc;color:#7b8b9c;font-size:9px;text-transform:uppercase;letter-spacing:.7px}th{padding:12px 20px;font-weight:600}th:first-child,td:first-child{padding-left:23px}td{padding:17px 20px;border-top:1px solid #eef2f5;vertical-align:middle}.account-name{font-size:12px;font-weight:600;display:block;white-space:nowrap}.account-code{font-size:10px;color:#8292a3;display:block;margin-top:2px}.account-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:245px}.account-actions .button{min-height:29px;font-size:9px;padding:4px 8px;background:#fbfcfd}.panel-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 23px;border-top:1px solid #eef2f5;background:#fcfdfe;color:#8794a3;font-size:9px}.panel-foot>span:first-child{display:flex;align-items:center;gap:7px}.small-dot{width:5px;height:5px}.live-label{font-size:10px;color:#71869a;display:flex;align-items:center;gap:7px}.activity-list{padding:0 23px 10px;max-height:330px;overflow:auto}.activity{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid #edf1f4}.activity-mark{width:26px;height:26px;flex-shrink:0;display:grid;place-items:center;background:#ecf5f2;color:#328771;border-radius:8px}.activity p{font-size:11px;color:#4c6377;margin:0}.activity small{display:block;font-size:9px;color:#8996a5;margin-top:4px}.empty{padding:32px 20px;text-align:center;color:#8091a2;font-size:12px}.operation-note{font-size:10px;color:#8190a0;line-height:1.8;margin:1px 3px}.app-layout:not([hidden])~.site-footer{padding-left:270px}dialog{border:1px solid var(--line);padding:35px;border-radius:20px;width:min(430px,calc(100vw - 30px));text-align:center;box-shadow:0 30px 100px #09293d33}dialog::backdrop{background:#0e213a88;backdrop-filter:blur(4px)}dialog h2{font-size:25px;margin:10px 0}dialog p{font-size:12px}#qr{width:260px;height:260px;max-width:100%;display:block;margin:20px auto}.dialog-close{position:absolute;right:14px;top:9px;border:0;background:transparent;font-size:26px;color:#6b7d8d}.qr-tip{color:#8a98a6;font-size:10px!important;margin-bottom:0}:focus-visible{outline:3px solid #61c6b1;outline-offset:3px}
@media(min-width:1500px){.login-hero{padding-left:90px}.hero-content{max-width:530px}}@media(max-width:1100px){.sidebar{width:205px;padding-left:16px;padding-right:16px}.dashboard{padding:25px 23px}.topbar{padding:0 23px}.metrics{gap:12px}.metric{padding:18px 15px;gap:11px}.metric small{font-size:9px}.app-layout:not([hidden])~.site-footer{padding-left:225px}.login-hero{padding:35px}.hero-content h1{font-size:38px}.hero-preview{padding:17px}}@media(max-width:800px){.login-layout{grid-template-columns:1fr;min-height:calc(100vh - 95px)}.login-hero{padding:23px 28px}.login-hero .brand{font-size:20px}.hero-content{margin:0;padding:27px 0 0;max-width:none}.hero-content h1{font-size:29px;line-height:1.18;margin:15px 0;letter-spacing:-.7px}.hero-content h1 br{display:none}.hero-content>p,.hero-preview,.hero-bottom{display:none}.eyebrow{font-size:9px}.login-main{padding:35px 28px 25px}.login-card{max-width:420px}.login-card h2{font-size:28px}.login-caption{margin-top:30px}.site-footer{padding:16px 22px;font-size:9px;justify-content:center;gap:4px 14px;text-align:center}.sidebar{display:none}.app-layout:not([hidden])~.site-footer{padding-left:22px}.topbar{height:65px;padding:0 20px}.topbar .breadcrumb{font-size:10px}.profile{max-width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dashboard{padding:24px 18px}.metrics{gap:10px}.metric{padding:16px 12px;display:block}.metric-icon{width:32px;height:32px;font-size:17px;border-radius:9px;margin-bottom:10px}.metric-label{font-size:10px}.metric strong{font-size:25px}.metric small{display:none}.page-heading h1{font-size:27px}.page-heading p{max-width:240px;font-size:11px}.service-bottom{display:block}.service-bottom>p{margin-bottom:11px}.panel-heading{padding:18px}.service-heading{padding:18px;gap:10px}.service-symbol{display:none}.service-heading p{font-size:10px}.panel-foot{padding:12px 16px;font-size:8px}.panel-foot>span:first-child{max-width:190px}.panel-heading p{font-size:10px}.panel-heading h2{font-size:14px}.live-label{font-size:9px}.topbar-actions{gap:7px}th,td{padding:14px 15px}th:first-child,td:first-child{padding-left:18px}.activity-list{padding:0 18px 7px}.operation-note{font-size:9px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* Cadastro central de clientes e configuracao do conector */
.client-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;padding:20px}.client-card{border:1px solid var(--border,#dde5ec);border-radius:14px;padding:18px;background:#fff;display:flex;flex-direction:column;gap:12px;min-width:0}.client-title{display:flex;align-items:center;gap:12px}.client-title h3{margin:0;font-size:16px}.client-title small{color:#526780}.client-logo{width:54px;height:54px;border-radius:12px;object-fit:contain;background:#edf5f5;display:grid;place-items:center;color:#087f77;font-size:19px;font-weight:700;flex-shrink:0}.client-info{font-size:13px;color:#526780;overflow-wrap:anywhere;line-height:1.7}.client-card .button-group{margin-top:auto}.config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:20px}.config-grid .field{margin:0}.config-grid input:not([type=checkbox]):not([type=file]){width:100%}.config-actions{grid-column:1/-1;display:flex;align-items:center;gap:15px;flex-wrap:wrap}.wide-dialog{max-width:840px;width:calc(100vw - 32px);padding:0;max-height:90vh;overflow:auto}.wide-dialog .panel-heading{position:sticky;top:0;background:white;z-index:1}.wide-dialog form{padding-bottom:20px}.template-list{display:flex;gap:8px;flex-wrap:wrap;padding:16px 20px 0}.template-list button{border:1px solid #c4d6df;background:#f3f8fa;border-radius:20px;padding:7px 12px;color:#25455a;cursor:pointer}.check-field{display:flex;align-items:center;gap:10px;font-size:13px;color:#30485e}.check-field input{width:18px;height:18px;accent-color:#087f77}.field small{color:#526780;font-size:12px;line-height:1.5}.logo-preview{display:flex;align-items:center;justify-content:center}.logo-preview img{max-width:140px;max-height:100px;object-fit:contain}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:10px 20px 0}.wide-dialog #clienteResultado,.wide-dialog #clienteAuditoria{margin:10px 20px}.toast-note{border-left:3px solid #087f77;background:#e8f5f2;color:#175951;padding:12px 16px;margin:0 0 20px;font-size:14px}.login-card .alert{font-size:13px;line-height:1.5}.topbar-actions{flex-wrap:wrap}.dashboard{min-width:0}#senhaDialog{max-width:460px;width:calc(100vw - 32px)}#senhaDialog h2{margin-bottom:20px}#senhaDialog .field{margin-bottom:16px}@media(max-width:650px){.config-grid{grid-template-columns:1fr;padding:16px}.client-grid{grid-template-columns:1fr;padding:16px}.panel-heading{flex-wrap:wrap;gap:14px}.topbar{align-items:flex-start;gap:12px}.topbar-actions{justify-content:flex-end}.template-list{padding:16px}.dialog-actions{flex-wrap:wrap}.wide-dialog .panel-heading{position:static}}

.installation-link{text-align:center;margin:22px 0 0;font-size:14px}.installation-link a{color:#08776f;font-weight:600;text-decoration:underline;text-underline-offset:4px}.installation-card{max-width:560px;width:100%;margin:auto;background:white;padding:32px;border:1px solid #d9e4ec;border-radius:20px;box-shadow:0 15px 45px #12283c0b}.installation-main{padding:40px 20px;min-height:calc(100vh - 75px);display:flex;align-items:center;background:#f3f7fa}.installation-card h1{font-size:28px;margin:20px 0 10px}.installation-card .field{margin:18px 0}.installation-card .muted{line-height:1.6}.installation-card input{width:100%}.installation-card .brand{color:#14273b}.installation-card .button{width:100%;justify-content:center}.installation-card .alert{margin:20px 0;line-height:1.6}.installation-card .installation-link{display:block}.installation-card .section-kicker{display:block;margin-top:24px}@media(max-width:500px){.installation-main{padding:20px 12px}.installation-card{padding:24px 18px}}

/* Ajuda dos campos e janelas de primeiro plano. */
#contaForm .field small,#contaForm .check-field small{display:block;color:#38516b;font-size:13px;line-height:1.5;margin-top:7px}
#contaForm .check-field{flex-wrap:wrap;align-items:center}#contaForm .check-field small{flex-basis:100%;margin-left:27px}
.guide-dialog,.connection-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:28px;border:1px solid #b6cbd8;border-radius:20px;color:#132b3f;background:white;box-shadow:0 28px 100px #071e3d66}
.guide-dialog::backdrop,.connection-dialog::backdrop{background:#081a2bbb;backdrop-filter:blur(3px)}
.guide-dialog h2,.connection-dialog h2{font-size:25px;line-height:1.25;margin:12px 0 18px}.guide-vs{background:#edf6ff;border:1px solid #b5d2ee;padding:16px;border-radius:12px;color:#143b62}.guide-vs p{line-height:1.55;margin-bottom:0}.guide-steps{padding-left:25px;margin:22px 0}.guide-steps li{padding:0 0 13px 7px}.guide-steps li::marker{color:#08776f;font-weight:800}.guide-steps strong{color:#113247}.guide-steps p{color:#38516b;line-height:1.55;margin:6px 0}.guide-dialog .dialog-actions,.connection-dialog .dialog-actions{padding:16px 0 0;position:sticky;bottom:-28px;background:white;border-top:1px solid #d6e2eb;padding-bottom:14px;flex-wrap:wrap}
.connection-state{background:#e9f5f2;border:1px solid #a8cec5;border-radius:10px;padding:14px;font-weight:650;color:#12483e;line-height:1.5}.connection-loading{display:flex;gap:12px;align-items:center;padding:16px;color:#38516b}.spinner{width:22px;height:22px;border:3px solid #c3dedb;border-top-color:#08776f;border-radius:50%;animation:spin 1s linear infinite;flex:none}@keyframes spin{to{transform:rotate(360deg)}}
#qr{display:block;background:white;padding:12px;box-sizing:border-box;width:280px;height:280px;margin:18px auto;max-width:100%;object-fit:contain}#qr[hidden],.connection-loading[hidden]{display:none!important}#diagnosticoConexao{border:1px solid #c4d5e0;border-radius:10px;padding:14px;margin-top:18px}#diagnosticoConexao summary{cursor:pointer;font-weight:650;color:#173c58}#conexaoDiagnostico{font-family:Consolas,monospace;font-size:12px;color:#17354d;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.floating-notice{position:fixed;inset:auto 20px 20px auto;margin:0;box-sizing:border-box;width:min(620px,calc(100vw - 32px));max-height:70dvh;overflow:auto;z-index:2147483647;border:2px solid #b42c36;border-radius:14px;background:#fff5f5;color:#7a1020;padding:18px 48px 18px 20px;box-shadow:0 12px 55px #102c4a55;pointer-events:auto}.floating-notice strong{display:block;font-size:17px}.floating-notice p{font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0 0}.floating-notice>button{position:absolute;right:8px;top:8px;border:0;background:transparent;color:#7a1020;font-size:28px;cursor:pointer;padding:3px 10px}.floating-notice.notice-success{border-color:#08776f;background:#f0fbf7;color:#125144}.floating-notice[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}@media(max-width:600px){.guide-dialog,.connection-dialog{padding:20px}.floating-notice{right:16px;bottom:16px}.account-actions .primary{width:100%;justify-content:center}}

/* 3.0.2: a regra especifica de acoes nao pode apagar o fundo do botao primario. */
.account-actions .button{font-size:13px;min-height:34px;padding:7px 10px}
.account-actions .button.primary{background:#087f77;color:#fff;border-color:#087f77}
.account-actions .button.primary:hover:not(:disabled){background:#066f68;color:#fff;border-color:#066f68}
.button:focus-visible,.theme-toggle:focus-visible{outline:3px solid #219bcb;outline-offset:3px}
.theme-toggle{position:fixed;right:18px;top:12px;z-index:50;border:1px solid #a5bbc9;border-radius:18px;padding:8px 14px;background:#fff;color:#173b51;font-weight:600;box-shadow:0 3px 12px #102c4a18}.topbar-actions{padding-right:128px}
[data-theme="dark"]{color-scheme:dark;--ink:#e6edf3;--muted:#b6c6d5;--line:#354b60;--page:#101a26;--white:#192938;--border:#354b60;--teal-light:#193e3b}
[data-theme="dark"] body,[data-theme="dark"] .login-main,[data-theme="dark"] .installation-main{background:#101a26;color:#e6edf3}
[data-theme="dark"] .topbar,[data-theme="dark"] .metric,[data-theme="dark"] .panel,[data-theme="dark"] .client-card,[data-theme="dark"] .site-footer,[data-theme="dark"] .installation-card,[data-theme="dark"] dialog,[data-theme="dark"] .guide-dialog,[data-theme="dark"] .connection-dialog,[data-theme="dark"] .wide-dialog .panel-heading,[data-theme="dark"] .dialog-actions{background:#192938;color:#e6edf3;border-color:#354b60}
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] label,[data-theme="dark"] .metric strong,[data-theme="dark"] .client-title h3,[data-theme="dark"] .guide-steps strong{color:#edf4fa}
[data-theme="dark"] .muted,[data-theme="dark"] small,[data-theme="dark"] .field small,[data-theme="dark"] #contaForm small,[data-theme="dark"] .guide-steps p,[data-theme="dark"] .client-info,[data-theme="dark"] .check-field,[data-theme="dark"] .activity p,[data-theme="dark"] .qr-tip,[data-theme="dark"] .connection-loading{color:#becddd}
[data-theme="dark"] .field input,[data-theme="dark"] .field select,[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background:#101e2b;color:#edf4fa;border-color:#57718a}
[data-theme="dark"] input::placeholder{color:#a8bacb}[data-theme="dark"] th,[data-theme="dark"] .panel-foot,[data-theme="dark"] .service-bottom{background:#152331;color:#becddd;border-color:#354b60}[data-theme="dark"] td,[data-theme="dark"] tr,[data-theme="dark"] .activity{border-color:#354b60}
[data-theme="dark"] .button,[data-theme="dark"] .account-actions .button,[data-theme="dark"] .theme-toggle,[data-theme="dark"] .template-list button{background:#263c50;color:#edf4fa;border-color:#57718a}
[data-theme="dark"] .button:hover:not(:disabled){background:#344d64;color:#fff}
[data-theme="dark"] .button.primary,[data-theme="dark"] .account-actions .button.primary{background:#087f77;color:#fff;border-color:#1c9d92}[data-theme="dark"] .button.primary:hover:not(:disabled){background:#066f68;color:#fff}
[data-theme="dark"] .guide-vs,[data-theme="dark"] #diagnosticoConexao{background:#152f46;color:#e0efff;border-color:#496a88}[data-theme="dark"] #diagnosticoConexao summary,[data-theme="dark"] #conexaoDiagnostico{color:#d2e5f7}
[data-theme="dark"] .connection-state,[data-theme="dark"] .badge.success,[data-theme="dark"] .toast-note{background:#173d35;color:#bdf3de;border-color:#398d75}
[data-theme="dark"] .error-alert,[data-theme="dark"] .floating-notice,[data-theme="dark"] .badge.danger{background:#412430;color:#ffdae0;border-color:#c9667b}[data-theme="dark"] .floating-notice>button{color:#ffdae0}
[data-theme="dark"] .floating-notice.notice-success{background:#173d35;color:#bdf3de;border-color:#398d75}[data-theme="dark"] .badge.warning,[data-theme="dark"] .amber{background:#473a20;color:#ffe8ac;border-color:#a18445}[data-theme="dark"] .badge.neutral{background:#2b4053;color:#e6edf3}
[data-theme="dark"] .installation-link a,[data-theme="dark"] .section-kicker,[data-theme="dark"] .password-toggle{color:#75ddd0}
/* O QR permanece preto sobre branco em ambos os temas. Nunca inverter a imagem. */
[data-theme="dark"] #qr{background:#fff}
@media(max-width:650px){.theme-toggle{right:10px;top:10px;font-size:12px}.topbar-actions{padding-right:0}.topbar{padding-top:55px}}

[data-theme="dark"] .installation-card .brand{color:#edf4fa}

.button.danger-button{background:#fff1f3;color:#8b1730;border-color:#c66d7e}.button.danger-button:hover:not(:disabled){background:#ffe0e7;color:#701026}[data-theme="dark"] .button.danger-button{background:#442632;color:#ffdae3;border-color:#b9647a}
