/* Support stays visible while each diagnostic has its own readable card. */
.hub-diagnostic{--hd-ink:#292621;--hd-secondary:#66615a;--hd-glass:rgba(255,253,248,.94);--hd-soft:rgba(80,64,44,.065);--hd-green:#27633a;--hd-focus:#0566c8;box-sizing:border-box;width:min(1040px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:20px;border:0;border-radius:24px;background:var(--hd-glass);color:var(--hd-ink);font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:auto;box-shadow:0 18px 64px #21190f24;backdrop-filter:blur(26px) saturate(1.2);-webkit-backdrop-filter:blur(26px) saturate(1.2)}
.hub-diagnostic::backdrop{background:rgba(27,24,19,.3);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.hub-diagnostic[open]:has(.hd-body){display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px;padding:8px;background:transparent;box-shadow:none;overflow:hidden;backdrop-filter:none;-webkit-backdrop-filter:none}
.hub-diagnostic h2{font-size:24px;letter-spacing:-.5px;line-height:1.2;margin:0}.hub-diagnostic h3{font-size:21px;line-height:1.25;margin:0;letter-spacing:-.35px}.hub-diagnostic h4{display:flex;align-items:center;gap:8px;font-size:16px;margin:0 0 10px}.hub-diagnostic p,.hub-diagnostic h3{overflow-wrap:anywhere}.hub-diagnostic p{margin:8px 0}.hub-diagnostic svg{width:24px;height:24px;flex:0 0 24px}
.hub-diagnostic button{box-sizing:border-box;min-height:44px;min-width:44px;font:600 14px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--hd-ink);background:var(--hd-soft);border:0;border-radius:13px;padding:11px 15px;cursor:pointer;touch-action:manipulation}.hub-diagnostic button:disabled{opacity:.5;cursor:default}.hub-diagnostic button:focus-visible,.hub-diagnostic .hd-body:focus-visible{outline:3px solid var(--hd-focus);outline-offset:2px}.hub-diagnostic button:not(:disabled):active{filter:brightness(.94)}
.hd-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.hd-head>[data-close]{font-size:25px;font-weight:400;line-height:1;padding:8px}.hub-diagnostic .hd-eyebrow{color:var(--hd-secondary);font-size:13px;font-weight:600;letter-spacing:.15px;margin:0 0 4px}.hub-diagnostic:has(.hd-body)>.hd-head,.hub-diagnostic:has(.hd-body)>.hd-note,.hub-diagnostic:has(.hd-body)>.hd-actions,.hd-unit,.hd-limitations,.hd-loading{background:var(--hd-glass);border:0;border-radius:22px;box-shadow:0 5px 22px #21190f0f;backdrop-filter:blur(26px) saturate(1.2);-webkit-backdrop-filter:blur(26px) saturate(1.2)}
.hub-diagnostic:has(.hd-body)>.hd-head{padding:16px 20px}.hd-note{padding:12px 16px;border-radius:15px;background:var(--hd-soft);overflow-wrap:anywhere}.hub-diagnostic:has(.hd-body)>.hd-note{margin:0;display:flex;align-items:center;gap:10px;min-height:44px;box-sizing:border-box;font-size:14px;padding:11px 18px}.hub-diagnostic:has(.hd-body)>.hd-note:before{content:"";width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:var(--hd-secondary);opacity:.75}.hub-diagnostic[data-busy="true"]>.hd-note:before{width:14px;height:14px;flex-basis:14px;border:2px solid var(--hd-soft);border-top-color:var(--hd-green);background:transparent;animation:hd-checking .85s linear infinite}
.hub-diagnostic .hd-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:12px;min-height:0;max-height:calc(100dvh - 240px);padding:2px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border-radius:22px}.hd-unit{min-width:0;padding:20px;display:flex;flex-direction:column;gap:0}.hd-card-head{display:flex;gap:12px;align-items:center;margin-bottom:4px}.hd-device{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:14px;background:var(--hd-soft);color:var(--hd-green)}.hd-card-head .hd-dot{margin-left:auto}.hd-dot{width:10px;height:10px;border-radius:50%;display:inline-block;flex:0 0 10px;background:#8e8e93}.hd-dot.good{background:#248a3d}.hd-dot.bad{background:#c54137}.hd-message{font-size:15px}.hd-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.hd-metrics>div{background:var(--hd-soft);border-radius:14px;padding:10px}.hd-metrics dt{font-size:13px;color:var(--hd-secondary);line-height:1.3;min-height:34px}.hd-metrics dd{margin:3px 0 0;font-size:27px;line-height:1.15;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.7px}.hd-source{font-size:13px;color:var(--hd-secondary)}.hd-unit>.hd-recover{width:100%;margin-top:auto;background:var(--hd-green);color:#fff}.hd-unit>.hd-source:last-of-type{margin-bottom:14px}.hd-computer{grid-column:1/-1}.hd-hardware-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:16px}.hd-hardware{min-width:0}.hd-hardware p{font-size:14px}.hd-hardware button{margin-top:6px}.hd-network{display:grid;gap:3px;margin:9px 0;font-size:14px;overflow-wrap:anywhere}.hd-network span{color:var(--hd-secondary)}.hd-limitations,.hd-loading{grid-column:1/-1;margin:0!important;padding:12px 18px}
.hd-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.hub-diagnostic:has(.hd-body)>.hd-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;margin:0;padding:10px 12px}.hd-paging{display:flex;gap:8px;margin-right:auto}.hd-actions [data-refresh]{background:var(--hd-green);color:white}.hd-actions [data-page]{flex:0 0 auto}
[data-theme="dark"] .hub-diagnostic,body.dark .hub-diagnostic{--hd-ink:#f5f1e9;--hd-secondary:#ccc6bc;--hd-glass:rgba(38,37,34,.96);--hd-soft:rgba(245,237,222,.09);--hd-green:#477d53;--hd-focus:#80baff}.hub-diagnostic:focus{outline:none}
@media(max-width:700px){.hub-diagnostic h2{font-size:22px}.hub-diagnostic .hd-body{grid-template-columns:1fr}.hd-hardware-grid{gap:16px}.hd-unit{padding:18px}.hd-actions [data-close]{display:none}}
@media(max-width:480px){.hub-diagnostic{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:18px}.hub-diagnostic[open]:has(.hd-body){padding:4px;gap:8px}.hub-diagnostic:has(.hd-body)>.hd-head{padding:14px 16px}.hub-diagnostic:has(.hd-body)>.hd-note{padding:10px 14px}.hub-diagnostic .hd-body{max-height:calc(100dvh - 310px);gap:8px}.hd-hardware-grid{grid-template-columns:1fr}.hub-diagnostic:has(.hd-body)>.hd-actions{display:grid;grid-template-columns:1fr 1fr;padding:8px;gap:6px}.hd-paging{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;margin:0}.hd-actions>button{min-width:0;padding-inline:9px}.hd-metrics>div{padding:10px 8px}}
@keyframes hd-checking{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hub-diagnostic *{animation:none!important;transition:none!important}}

/* 1.27.0: janela de diagnóstico sob o Cérebro (não modal): abaixo do ícone, acima do sistema, fechável por voz. */
.hub-diagnostic.hd-under-brain{position:fixed;left:50%;transform:translateX(-50%);top:var(--ws-dialog-top,calc(var(--ws-top,10px) + 118px));margin:0;width:min(960px,calc(100vw - 40px));max-height:calc(100dvh - var(--ws-dialog-top,calc(var(--ws-top,10px) + 118px)) - 20px);z-index:1200;box-shadow:0 20px 60px rgba(27,24,19,.28);border-radius:22px}
.hub-diagnostic.hd-under-brain .hd-body{max-height:calc(100dvh - var(--ws-dialog-top,calc(var(--ws-top,10px) + 118px)) - 200px)}
/* 1.27.0: com a resposta transitória do Cérebro visível, a janela desce para não ficar coberta. */
.hub-diagnostic.hd-under-brain{transition:top .25s ease}

