/* HashBR R37 — visual integrado ao tema aurora existente, sem bibliotecas externas */
.hbru-nav{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0 12px;padding:9px;border:1px solid #21475b;border-radius:17px;background:#071824de;position:relative;z-index:1}
.hbru-nav-link{display:flex;flex-direction:column;gap:2px;color:#cee5ec;text-decoration:none;padding:9px 12px;border-radius:11px;border:1px solid transparent;min-width:102px;flex:1 1 auto;font-size:12px}
.hbru-nav-link strong{font-size:12px}.hbru-nav-link small{font-size:10px;color:#8daebd}.hbru-nav-link:hover,.hbru-nav-link.active{background:#103541;border-color:#27887b;color:#eaffff}.hbru-nav-link.active strong{color:#62f1d0}
.hbru-nav-link.hbru-admin-link{border-color:#48516a}.hbru-nav-link.hbru-admin-link strong{color:#e8c786}
.hbru-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:14px 0}.hbru-metric,.hbru-panel{background:#081d29e8;border:1px solid #1a4556;border-radius:15px;padding:19px;box-shadow:0 10px 26px #0002}
.hbru-metric span{display:block;font-size:10px;letter-spacing:.06em;color:#9dc3d0}.hbru-metric strong{display:block;font-size:clamp(18px,2.5vw,27px);margin-top:9px;color:#ecfffc;word-break:break-word}
.hbru-red{color:#ff6b7e!important}.hbru-status{border-radius:99px;padding:5px 9px;color:#b5cad5;border:1px solid #315368;background:#122c38;font-size:10px;font-weight:800;display:inline-flex;white-space:nowrap}.hbru-status.up{color:#56f2ca;border-color:#277a67;background:#0a302c}.hbru-status.down{color:#ff96a6;border-color:#824453;background:#32171f}
.hbru-titlebar,.hbru-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.hbru-titlebar{margin-bottom:11px}.hbru-panel{margin:13px 0}.hbru-panel h2,.hbru-card-head h2{margin:0 0 8px}.hbru-panel p{line-height:1.6;color:#adcad7}.hbru-two-col{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.hbru-info{margin:0}.hbru-info>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #1a4352}.hbru-info dt{color:#9bb8c6}.hbru-info dd{margin:0;text-align:right;max-width:58%;overflow-wrap:anywhere;font-weight:700}.hbru-notice{border:1px solid #8f7138;background:#352c1c;color:#ffe6aa;padding:12px;border-radius:11px;font-size:12px;line-height:1.55}.hbru-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
.hbru-chart-card{min-height:300px}.hbru-chart-controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:12px 0}.hbru-chart-controls button,.hbru-chart-controls select{border:1px solid #285267;background:#0a2634;color:#d9edf1;border-radius:9px;padding:8px 11px;font-weight:700;cursor:pointer}.hbru-chart-controls button.active{border-color:#31d1b5;background:#103e3e;color:#8affdf}.hbru-chart-output{min-height:208px;border:1px solid #153d4a;border-radius:12px;padding:11px;background:#061722}.hbru-chart-output svg{display:block;max-width:100%;width:100%;height:auto}.hbru-chart-caption{color:#94b9c5;font-size:11px;margin-top:9px}.hbru-empty{padding:20px;color:#91afbe}.hbru-device-link{color:inherit;text-decoration:none;cursor:pointer}.hbru-device-link:hover{outline:1px solid #29b598}
.hbru-swarm-head,.hbru-swarm-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:9px;align-items:center;padding:12px;border-bottom:1px solid #1d4150}.hbru-swarm-head{font-size:11px;color:#97c0cc}.hbru-swarm-row{color:#e3f4f7;text-decoration:none}.hbru-swarm-row:hover{background:#123441}.hbru-swarm-row strong,.hbru-swarm-row small{display:block;overflow-wrap:anywhere}.hbru-swarm-row small{color:#92b3c0;font-size:10px;margin-top:3px}
@media(max-width:780px){.hbru-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hbru-two-col{grid-template-columns:1fr}.hbru-nav-link{min-width:45%;}.hbru-swarm-head{display:none}.hbru-swarm-row{grid-template-columns:1fr 1fr;gap:8px}.hbru-info dd{max-width:60%}}
@media(prefers-reduced-motion:reduce){.hbru-chart-output *{animation:none!important;transition:none!important}}

/* R37.1 — fidelidade visual: tokens e geometria extraídos do painel WebUI BRMiner 1.1.01-BETA.
   Classes BRM isoladas para preservar formulários, sessões e controles antigos do Account.
   Não carregar JS de firmware que acessa IP local ou envia comandos diretamente. */
body[data-hbr-brm="1"]{background:radial-gradient(circle at 18% 8%,rgba(22,224,189,.11),transparent 24%),radial-gradient(circle at 84% 18%,rgba(43,197,255,.10),transparent 28%),linear-gradient(135deg,#020d14,#061a27 60%,#03111a);color:#f6fbff}
body[data-hbr-brm="1"] main.shell{width:min(1580px,calc(100% - 36px));position:relative;z-index:1}
body[data-hbr-brm="1"] .hbr-global-header{background:#03131add;border-bottom:1px solid #17415460}
body[data-hbr-brm="1"] .hbr-global-nav{display:none}
body[data-hbr-brm="1"] .hbr-global-brand{opacity:.85}
body[data-hbr-brm="1"] .hbr-platform-footer{width:min(1580px,calc(100% - 36px))}
.brm-top{min-height:94px;display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 30px;border-bottom:1px solid rgba(92,180,205,.16)}
.brm-brand{display:flex;align-items:center;flex:0 1 250px}.brm-brand img{display:block;width:250px;max-width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 0 10px rgba(24,224,189,.06))}
.brm-top-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}.brm-top-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.brm-top-links a,.brm-account-link{color:#bfe6f3;text-decoration:none;font-size:12px;font-weight:750;padding:9px 12px;border:1px solid transparent;border-radius:11px}
.brm-top-links a:hover,.brm-top-links a.active,.brm-account-link:hover{color:#fff;background:#0a2533;border-color:#205268}.brm-device-pill{font-size:10px;padding:7px 10px;border:1px solid #205268;border-radius:999px;color:#9bdff0;background:#082330;text-decoration:none;white-space:nowrap}.brm-account-link{font-size:11px;color:#8fc7d5}
/* Menus antigos aparecem apenas nas páginas de Account não mineradoras. */
body[data-hbr-brm="0"] .brm-top{min-height:80px;gap:12px}body[data-hbr-brm="0"] .brm-brand img{width:180px}body[data-hbr-brm="0"] .brm-top-links{gap:3px}
.brm-page{--brm-bg:#03111a;--brm-panel:#071d2a;--brm-panel2:#051823;--brm-line:#174154;--brm-line2:#214b5d;--brm-text:#f6fbff;--brm-muted:#91bdcf;--brm-a:#18e0bd;--brm-b:#2bc5ff;--brm-ok:#3ee0a5;--brm-danger:#ff6573;--brm-warn:#ffd06a;--brm-soft:#0a2533;color:var(--brm-text);font-family:Inter,Segoe UI,Arial,sans-serif;margin:0 auto 32px}
.brm-page *{box-sizing:border-box}.brm-page a{color:inherit}.brm-eyebrow{color:#18e0bd;font-size:10px;font-weight:900;letter-spacing:.14em;margin:0 0 10px;text-transform:uppercase}.brm-sep{color:#78929f;padding:0 4px}.brm-heading{color:#f6fbff;font-size:clamp(24px,3.1vw,34px);line-height:1.2;letter-spacing:-.035em;margin:0 0 8px;font-weight:850}.brm-sub{font-size:13px;line-height:1.65;margin:0 0 19px;color:#91bdcf}
.brm-card{background:linear-gradient(180deg,rgba(9,33,47,.97),rgba(5,24,35,.96));border:1px solid rgba(55,135,160,.36);border-radius:18px;padding:19px;min-width:0;box-shadow:0 20px 55px rgba(0,0,0,.12)}
.brm-hero-cards{display:grid;grid-template-columns:1.46fr repeat(4,1fr);gap:12px;margin:0 0 28px}
.brm-kpi{min-height:148px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}.brm-kpi>span,.brm-info-card>span,.brm-record>span,.brm-diag>span,.brm-card-head>span{display:block;color:#99c7d5;font-size:11px;letter-spacing:.06em;font-weight:850;line-height:1.4}
.brm-kpi>strong{font-size:clamp(22px,2.55vw,34px);font-weight:850;margin:15px 0 5px;line-height:1.12;overflow-wrap:anywhere}.brm-kpi.brm-primary>strong{color:#18e0bd;font-size:clamp(28px,3.5vw,46px)}.brm-kpi small,.brm-record small,.brm-info-card small{color:#729eaf;font-size:10px;line-height:1.4;margin-top:6px}
.brm-green{color:#3ee0a5!important}.brm-red{color:#ff6573!important}.brm-gold{color:#ffd06a!important}.brm-blue{color:#2bc5ff!important}
.brm-section-title{font-size:13px;letter-spacing:.08em;color:#a9d3e1;font-weight:900;margin:28px 0 12px;text-transform:uppercase}
.brm-performance{display:grid;grid-template-columns:minmax(0,3.15fr) minmax(220px,1fr);gap:13px}.brm-chart-card{min-height:320px}.brm-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.brm-card-head small{color:#81aaba;font-size:11px}
.brm-record strong{display:block;font-size:clamp(26px,2.2vw,36px);font-weight:900;margin:16px 0 4px}.brm-record hr{border:0;border-top:1px solid #164251;margin:18px 0}.brm-record b{font-size:22px;display:block}
.brm-outline,.brm-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #205268;border-radius:11px;background:#0a2533;color:#d9f6ff!important;font-weight:800;font-size:12px;text-decoration:none;padding:10px 13px;cursor:pointer}.brm-btn{background:linear-gradient(90deg,#18e0bd,#2bc5ff);color:#03111a!important;border-color:transparent}.brm-outline:hover,.brm-btn:hover{filter:brightness(1.1)}
.brm-page .hbru-chart-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:0 0 12px;justify-content:flex-end}.brm-page .hbru-chart-controls button,.brm-page .hbru-chart-controls select{padding:7px 12px;border:1px solid #205268;border-radius:10px;background:#051924;color:#b9d8e4;font-weight:700;font-size:11px}.brm-page .hbru-chart-controls button.active{border-color:#2bc5ff;color:#fff;background:#0d3443}
.brm-page .hbru-chart-output{height:245px;min-height:0;border:1px solid #113949;border-radius:13px;background:linear-gradient(180deg,#061d2b,#03131d);padding:14px;overflow:hidden;color:#729eaf;font-size:12px}.brm-page .hbru-chart-output svg{max-height:215px}.brm-page .hbru-chart-caption{font-size:10px;color:#739dad}
.brm-info-grid{display:grid;gap:12px}.brm-info-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.brm-info-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.brm-info-card{min-height:110px}.brm-info-card strong{display:block;font-size:clamp(16px,1.7vw,21px);margin-top:12px;font-weight:850;overflow-wrap:anywhere}.brm-info-card p{font-size:12px;line-height:1.6;color:#8eb8c6;margin:12px 0 0}.brm-mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px!important}
.brm-diag{min-height:155px}.brm-diag dl{margin:12px 0 0}.brm-diag dl>div{display:flex;gap:16px;border-bottom:1px solid #123d4d;padding:9px 0;font-size:12px}.brm-diag dl>div:last-child{border-bottom:0}.brm-diag dt{color:#88b3c5;flex:1}.brm-diag dd{margin:0;color:#eefcff;font-weight:700;overflow-wrap:anywhere;text-align:right;max-width:62%}
.brm-footer-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:18px 0}.brm-footnote{font-size:10px;color:#7496a4;line-height:1.65;margin:15px 0 30px;border-top:1px solid #143f4f;padding-top:13px}
.brm-device-grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.brm-device-card{display:flex;gap:12px;align-items:center;text-decoration:none;color:#eaffff!important;padding:16px}.brm-device-card:hover{border-color:#18e0bd}.brm-device-card>div:first-of-type{min-width:0}.brm-device-card strong{font-size:14px;display:block}.brm-device-card small{display:block;color:#789daf;margin-top:5px;font-size:10px}.brm-device-right{margin-left:auto;text-align:right}.brm-device-right b{font-size:15px;color:#2bc5ff}.brm-device-card>span:last-child{color:#89c9da;font-size:23px}.brm-dot{flex:0 0 8px;width:8px;height:8px;display:inline-block;background:#a56873;border-radius:50%;margin-right:3px}.brm-dot.on{background:#3ee0a5;box-shadow:0 0 9px #3ee0a54f}.brm-empty{grid-column:1/-1;color:#a9ced8;min-height:90px}.brm-empty a{color:#35d9ca!important}
.brm-miner-name{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.brm-miner-name .brm-sub{margin-bottom:0}.brm-miner-name code{font-size:11px;color:#80baca}.brm-presence{font-weight:900;border:1px solid #8b4655;color:#ff8492;background:#2a141c;border-radius:999px;padding:7px 10px;font-size:10px;letter-spacing:.06em}.brm-presence.on{border-color:#207d69;color:#4cf4ba;background:#073a30}
.brm-settings{padding:22px}.brm-settings>p{font-size:12px;color:#8fb7c3;line-height:1.6;margin:3px 0 16px}.brm-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.brm-field{display:flex;flex-direction:column;gap:7px}.brm-field label{font-size:11px;color:#99bdca;font-weight:750}.brm-field input{width:100%;background:#03131d;border:1px solid #214b5d;color:#d6ecf1;border-radius:12px;padding:12px 13px;font-size:13px}.brm-note{margin-top:18px!important;border:1px solid #655020;background:#28220f;padding:12px 14px;border-radius:12px;color:#f1d59b!important}
.brm-swarm .brm-heading{margin-bottom:10px}.brm-swarm-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.brm-swarm-cards>.brm-card{min-height:115px}.brm-swarm-cards span{font-size:13px;color:#cfefff}.brm-swarm-cards strong{font-size:26px;display:block;margin-top:15px}
.brm-swarm-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0 14px}.brm-swarm-tools label,.brm-swarm-tools #brm-swarm-status{font-size:11px;color:#91bdcf}.brm-swarm-tools input,.brm-swarm-tools select{background:#061821;color:#f6fbff;border:1px solid #214b5d;border-radius:9px;padding:10px 13px;font-size:12px}.brm-swarm-tools input{flex:1;min-width:160px;max-width:330px}
.brm-table-wrap{overflow-x:auto;border:1px solid #214b5d;border-radius:14px;background:#071d2a}.brm-swarm-table{border-collapse:collapse;width:100%;min-width:1060px}.brm-swarm-table th,.brm-swarm-table td{padding:14px 12px;text-align:left;border-bottom:1px solid #174154;font-size:11px;white-space:nowrap;vertical-align:middle}.brm-swarm-table th{color:#91bdcf;background:#092334;font-size:11px;font-weight:800}.brm-swarm-table tbody tr:last-child td{border-bottom:0}.brm-swarm-table td small{color:#729eaf;display:block;font-size:10px;margin-top:5px}.brm-table-name{color:#f6fbff!important;font-weight:800;text-decoration:none}.brm-table-name:hover{text-decoration:underline}.brm-swarm-table tbody tr:hover{background:#0a2a3a}
.brm-stats .brm-stats-chart{min-height:360px}.brm-stats .hbru-chart-output{height:285px}.brm-stats .hbru-chart-controls label{color:#94bdc9;font-size:11px}
@media(max-width:1150px){.brm-top{align-items:flex-start;flex-direction:column;padding:18px 0}.brm-brand img{width:210px}.brm-top-actions{justify-content:flex-start}.brm-hero-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.brm-hero-cards .brm-primary{grid-column:span 2}.brm-performance{grid-template-columns:minmax(0,2fr) minmax(200px,1fr)}}
@media(max-width:780px){.brm-hero-cards,.brm-info-grid-four,.brm-swarm-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.brm-hero-cards .brm-primary{grid-column:span 2}.brm-performance,.brm-info-grid-two,.brm-settings-grid,.brm-device-grid{grid-template-columns:1fr}.brm-chart-card{min-height:280px}.brm-top-links{gap:3px}.brm-top-links a{padding:8px;font-size:11px}.brm-card{padding:14px}}
@media(max-width:450px){body[data-hbr-brm="1"] main.shell{width:calc(100% - 20px)}.brm-kpi{min-height:125px}.brm-kpi>strong{font-size:19px}.brm-kpi.brm-primary>strong{font-size:27px}.brm-hero-cards{gap:8px}.brm-hero-cards .brm-card:last-child{grid-column:span 2}.brm-top{margin-bottom:18px}.brm-top-actions{gap:4px}.brm-account-link{padding:8px}.brm-swarm-tools input{max-width:none}}
@media(prefers-reduced-motion:reduce){.brm-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* R37.1: subcards de configuração com as mesmas formas da WebUI BRMiner */
.brm-settings-system{border:1px solid #205268;background:#0a2634;border-radius:15px;padding:14px;margin:16px 0}.brm-system-label{font-size:11px;font-weight:850;letter-spacing:.08em;color:#a9d3e1;margin:0 0 12px}.brm-system-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.brm-system-grid>div{border:1px solid #1b4658;border-radius:13px;background:#03131d;padding:13px;min-height:84px}.brm-system-grid span,.brm-system-grid small{font-size:10px;display:block;color:#8fb8c7}.brm-system-grid strong{display:block;color:#f6fbff;font-size:13px;margin-top:9px;overflow-wrap:anywhere}.brm-system-grid small{color:#6c919f;margin-top:9px}.brm-field small{font-size:10px;color:#6f929f}.brm-config-heading{font-size:21px;margin:26px 0 6px;color:#f6fbff}.brm-settings .brm-disabled{opacity:.58;cursor:not-allowed;margin-top:22px}.brm-wifi-info{margin-top:14px}.brm-wifi-info p{margin-bottom:0}.brm-card-head .brm-presence{font-size:9px}@media(max-width:780px){.brm-system-grid{grid-template-columns:1fr}}
