/*
  E-Gaming CS Hub — Design System V2
  ---------------------------------------------------------------------------
  Extraido da referencia visual aprovada e transformado em sistema: tokens,
  primitivas e estados. Nenhuma tela redeclara cor, espaco ou tipografia; quem
  precisa de uma variacao acrescenta um token aqui, nao um style inline la.

  Identidade que NAO pode ser diluida ao evoluir este arquivo:
    - canto reto (sem border-radius) em toda superficie operacional;
    - regua de 1px translucida no lugar de sombra/caixa;
    - numero sempre em mono tabular, alinhado a direita;
    - prioridade comunicada por barra de 2px a esquerda, nao por fundo colorido;
    - laranja e' acento de acao e de urgencia — nunca decoracao.
*/

:root {
  /* superficies */
  --hub-canvas: #070809;
  --hub-app: #0A0C0D;
  --hub-panel: #0E1113;
  --hub-raise: #15191B;
  --hub-hover: #171A1C;
  --hub-chip: #1F2426;
  --hub-sunk: #121516;

  /* texto */
  --hub-ink: #F2F3F4;
  --hub-ink-2: #E7E9EA;
  --hub-ink-3: #C6CACD;
  --hub-ink-4: #A2A8AD;
  --hub-mute: #949A9F;
  --hub-mute-2: #90969B;
  --hub-faint: #858C91;
  --hub-dim: #5E646A;
  --hub-rule: #343A3D;

  /* acento e semantica */
  --hub-accent: #FF7A1A;
  --hub-accent-hi: #FF9040;
  --hub-accent-soft: #FFA45C;
  --hub-accent-wash: rgba(255, 122, 26, .1);
  --hub-accent-edge: rgba(255, 122, 26, .35);
  --hub-ok: #34C27E;
  --hub-info: #6E8BFF;
  --hub-warn: #E9A13B;
  --hub-warn-ink: #D9B27A;
  --hub-warn-wash: rgba(233, 161, 59, .08);
  --hub-bad: #F2555A;
  --hub-bad-ink: #E39598;
  --hub-bad-wash: rgba(242, 85, 90, .035);
  --hub-bad-edge: rgba(242, 85, 90, .4);

  /* linhas */
  --hub-line: rgba(255, 255, 255, .055);
  --hub-line-soft: rgba(255, 255, 255, .04);
  --hub-line-mid: rgba(255, 255, 255, .07);
  --hub-line-strong: rgba(255, 255, 255, .1);
  --hub-edge: rgba(255, 255, 255, .14);

  /* tipografia */
  --hub-ui: 'Schibsted Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --hub-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* metrica de layout */
  --hub-bar: 53px;
  --hub-nav: 228px;
  --hub-nav-min: 64px;
  --hub-gutter: clamp(14px, 2vw, 26px);
  --hub-pad: 18px;

  /* movimento */
  --hub-fast: .14s ease;
  --hub-base: .18s ease;
  --hub-slow: .22s cubic-bezier(.2, .7, .2, 1);
}

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--hub-app);
  color: var(--hub-ink);
  font-family: var(--hub-ui);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--hub-accent); text-decoration: none; }
a:hover { color: var(--hub-accent-soft); }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--hub-accent); color: #0E1113; }

:focus-visible { outline: 2px solid var(--hub-accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); }
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 122, 26, .5); }

.hub-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hub-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  padding: 8px 12px; background: var(--hub-accent); color: #0E1113; font-size: 13px;
}
.hub-skip:focus { left: 8px; }

/* ------------------------------------------------------------- movimento */

@keyframes hubIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hubRise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes hubRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hubDraw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes hubSkel { 0%, 100% { opacity: .35; } 50% { opacity: .75; } }
@keyframes hubPulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes hubSpin { to { transform: rotate(360deg); } }

/* `backwards`, nao `both`: `.hub-in` envolve as paginas, e um transform preso
   no fim da animacao vira o bloco de contencao dos `.hub-overlay` fixos — as
   gavetas encolhiam para a altura do conteudo em vez de cobrir a janela. */
.hub-in { animation: hubIn .2s ease backwards; }
.hub-rise { animation: hubRise .26s cubic-bezier(.2, .7, .2, 1) both; }
.hub-rise:nth-child(1) { animation-delay: 0ms; }
.hub-rise:nth-child(2) { animation-delay: 34ms; }
.hub-rise:nth-child(3) { animation-delay: 68ms; }
.hub-rise:nth-child(4) { animation-delay: 102ms; }
.hub-rise:nth-child(5) { animation-delay: 136ms; }
.hub-rise:nth-child(6) { animation-delay: 170ms; }
.hub-draw { stroke-dasharray: 1400; animation: hubDraw .8s cubic-bezier(.3, .7, .2, 1) 120ms both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------ tipografia */

.hub-mono { font-family: var(--hub-mono); }
.hub-num { font-family: var(--hub-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.hub-tnum { font-variant-numeric: tabular-nums; }

.hub-h1 { margin: 0; font-size: clamp(21px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.hub-h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.hub-h3 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.hub-lead { margin: 7px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--hub-mute); }
.hub-body { font-size: 13px; line-height: 1.5; }
.hub-meta { font-size: 12.5px; color: var(--hub-mute-2); }
.hub-eyebrow { font-family: var(--hub-mono); font-size: 11px; color: var(--hub-faint); letter-spacing: .06em; text-transform: uppercase; }
.hub-trunc { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t-ink { color: var(--hub-ink); }
.t-soft { color: var(--hub-ink-3); }
.t-mute { color: var(--hub-mute); }
.t-faint { color: var(--hub-faint); }
.t-accent { color: var(--hub-accent); }
.t-ok { color: var(--hub-ok); }
.t-info { color: var(--hub-info); }
.t-warn { color: var(--hub-warn); }
.t-bad { color: var(--hub-bad); }

/* ---------------------------------------------------------------- shell */

.hub-shell { display: grid; grid-template-columns: var(--hub-nav) minmax(0, 1fr); min-height: 100dvh; background: var(--hub-app); }
.hub-shell.is-slim { grid-template-columns: var(--hub-nav-min) minmax(0, 1fr); }
.hub-shell.is-narrow { grid-template-columns: minmax(0, 1fr); }

.hub-nav {
  position: sticky; top: 0; align-self: start; height: 100dvh; z-index: 60;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--hub-panel); border-right: 1px solid var(--hub-line);
}
.hub-shell.is-narrow .hub-nav {
  position: fixed; inset: 0 auto 0 0; width: 262px;
  transform: translateX(-110%); transition: transform var(--hub-slow);
}
.hub-shell.is-narrow .hub-nav.is-open { transform: none; }

.hub-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; min-height: var(--hub-bar); }
.hub-mark { flex: none; width: 22px; height: 22px; background: var(--hub-accent); display: flex; align-items: center; justify-content: center; font-family: var(--hub-mono); font-size: 11px; font-weight: 600; color: #0E1113; }
.hub-mark.is-lg { width: 24px; height: 24px; font-size: 12px; }

.hub-nav-body { flex: 1; overflow-y: auto; padding-bottom: 10px; }
.hub-nav-group { margin-bottom: 13px; }
.hub-nav-group > .hub-nav-caption { display: block; padding: 0 16px 6px; font-family: var(--hub-mono); font-size: 11px; color: var(--hub-faint); }
.hub-nav-item {
  position: relative; width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 7px 16px; min-height: 32px; border: 0; background: transparent; cursor: pointer;
  text-align: left; color: var(--hub-ink-4); font-size: 13px; transition: background var(--hub-fast), color var(--hub-fast);
}
.hub-nav-item:hover { background: var(--hub-sunk); color: var(--hub-ink); }
.hub-nav-item.is-on { background: var(--hub-sunk); color: var(--hub-ink); }
.hub-nav-item::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; background: transparent; }
.hub-nav-item.is-on::before { background: var(--hub-accent); }
.hub-nav-count { margin-left: auto; font-family: var(--hub-mono); font-size: 11.5px; color: var(--hub-faint); }
.hub-nav-item.is-on .hub-nav-count { color: var(--hub-accent); }
.hub-nav-search { padding: 0 12px 13px; }
.hub-nav-foot { border-top: 1px solid var(--hub-line); padding: 11px 16px; }

.hub-shell.is-slim .hub-nav-label,
.hub-shell.is-slim .hub-nav-caption,
.hub-shell.is-slim .hub-nav-foot-body,
.hub-shell.is-slim .hub-nav-search { display: none; }
.hub-shell.is-slim .hub-nav-item { justify-content: center; padding: 7px 8px; }
.hub-shell.is-slim .hub-nav-count { margin-left: 0; }

.hub-main { min-width: 0; display: flex; flex-direction: column; }
.hub-bar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center;
  gap: clamp(8px, 1.4vw, 16px); min-height: var(--hub-bar); padding: 9px var(--hub-gutter);
  background: rgba(13, 15, 16, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hub-line);
}
.hub-page { flex: 1; min-width: 0; padding: clamp(18px, 2.2vw, 26px) var(--hub-gutter) 56px; }
.hub-wrap { max-width: 1440px; margin: 0 auto; }
.hub-stack { display: flex; flex-direction: column; gap: 16px; }
.hub-split { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hub-split.is-stacked { grid-template-columns: minmax(0, 1fr); }
.hub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hub-crumb { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12.5px; color: var(--hub-mute-2); }
.hub-crumb-sep { color: var(--hub-dim); font-size: 11px; }
.hub-spacer { flex: 1; }
.hub-rule-v { flex: none; width: 1px; height: 20px; background: var(--hub-line-mid); }

/* -------------------------------------------------------------- painel */

.hub-panel { background: var(--hub-panel); min-width: 0; }
.hub-panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px var(--hub-pad); border-bottom: 1px solid var(--hub-line);
}
.hub-panel-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hub-tick { flex: none; width: 2px; height: 12px; background: var(--hub-accent); }
.hub-panel-body { padding: 14px var(--hub-pad); }
.hub-panel-foot { padding: 13px var(--hub-pad); border-top: 1px solid var(--hub-line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hub-panel.is-warn { border-left: 2px solid var(--hub-warn); }
.hub-panel.is-bad { border-left: 2px solid var(--hub-bad); }
.hub-panel.is-accent { border-left: 2px solid var(--hub-accent); }

/* ---------------------------------------------------------- metricas */

.hub-metrics { display: grid; background: var(--hub-panel); }
.hub-metric {
  min-width: 0; padding: 16px var(--hub-pad) 17px;
  border-left: 1px solid var(--hub-line); border-top: 1px solid var(--hub-line); margin-top: -1px;
}
.hub-metric.is-lead { border-left: 2px solid var(--hub-accent); }
.hub-metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.hub-metric-label { font-size: 13px; color: var(--hub-ink-4); }
.hub-metric-unit { font-family: var(--hub-mono); font-size: 11px; color: var(--hub-faint); }
.hub-metric-value { font-family: var(--hub-mono); font-size: clamp(21px, 2.1vw, 28px); font-variant-numeric: tabular-nums; letter-spacing: -.025em; line-height: 1.1; }
.hub-metric-underline { display: inline-block; padding-bottom: 5px; }
.hub-metric.is-lead .hub-metric-underline { border-bottom: 2px solid var(--hub-accent); }
.hub-metric-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 11px; min-height: 17px; }
.hub-metric-delta { font-family: var(--hub-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hub-metric-note { font-size: 12.5px; color: var(--hub-mute-2); }
.hub-metric.is-compact { padding: 13px 16px; }
.hub-metric.is-compact .hub-metric-value { font-size: 17px; }

/* ------------------------------------------------------------- tabela */

.hub-scroll { overflow-x: auto; }
.hub-grid-row { display: grid; gap: clamp(8px, 1.2vw, 14px); align-items: center; }
.hub-thead {
  padding: 10px var(--hub-pad); border-bottom: 1px solid var(--hub-line);
  font-family: var(--hub-mono); font-size: 11px; color: var(--hub-faint);
  letter-spacing: .06em; text-transform: uppercase;
}
.hub-thead button { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.hub-thead button:hover { color: var(--hub-ink-3); }
.hub-thead button.is-on { color: var(--hub-accent); }
.hub-row {
  padding: 11.5px var(--hub-pad); border-bottom: 1px solid var(--hub-line-soft);
  border-left: 2px solid transparent; transition: background var(--hub-fast), box-shadow var(--hub-fast);
}
.hub-row.is-click { cursor: pointer; }
.hub-row.is-click:hover, .hub-row.is-click:focus-visible { background: var(--hub-hover); box-shadow: inset 2px 0 0 var(--hub-accent); }
.hub-row.is-crit { border-left-color: var(--hub-bad); background: var(--hub-bad-wash); }
.hub-row.is-high { border-left-color: var(--hub-warn); }
.hub-row.is-med { border-left-color: var(--hub-dim); }
.hub-row.is-ok { border-left-color: var(--hub-ok); }
.hub-row.is-info { border-left-color: var(--hub-info); }

.hub-id { font-family: var(--hub-mono); font-size: 12.5px; color: var(--hub-mute-2); }
.hub-avatar {
  flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--hub-chip);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hub-mono); font-size: 11.5px; color: var(--hub-ink-3);
}
.hub-avatar.is-lg { width: 46px; height: 46px; font-size: 14px; color: var(--hub-ink); }
.hub-avatar.is-sm { width: 26px; height: 26px; font-size: 11px; }

.hub-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--hub-mute); }
.hub-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; white-space: nowrap; color: var(--hub-ink-3); }
.hub-bars { flex: none; display: flex; gap: 2px; align-items: flex-end; }
.hub-bars i { display: block; width: 4px; background: var(--hub-rule); }
.hub-bars i:nth-child(1) { height: 7px; }
.hub-bars i:nth-child(2) { height: 10px; }
.hub-bars i:nth-child(3) { height: 13px; }

/* ----------------------------------------------------------- controles */

.hub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; background: none; color: var(--hub-ink-3);
  font-size: 13px; padding: 9px 14px; min-height: 36px;
  transition: background var(--hub-base), color var(--hub-base), border-color var(--hub-base), transform var(--hub-base);
}
.hub-btn:disabled { cursor: default; opacity: .6; }
.hub-btn-primary { background: var(--hub-accent); color: #0E1113; font-weight: 600; }
.hub-btn-primary:hover:not(:disabled) { background: var(--hub-accent-hi); }
.hub-btn-primary:active:not(:disabled) { transform: translateY(1px); }
.hub-btn-line { border: 1px solid var(--hub-edge); color: var(--hub-ink-3); }
.hub-btn-line:hover:not(:disabled) { border-color: rgba(255, 255, 255, .24); color: var(--hub-ink); }
.hub-btn-danger { border: 1px solid var(--hub-bad-edge); color: var(--hub-bad); }
.hub-btn-danger:hover:not(:disabled) { background: var(--hub-bad-wash); }
.hub-btn-quiet { color: var(--hub-mute); padding: 6px 0; min-height: 32px; }
.hub-btn-quiet:hover:not(:disabled) { color: var(--hub-ink); }
.hub-btn-sm { padding: 7px 11px; min-height: 32px; font-size: 12.5px; }
.hub-btn-block { width: 100%; }
.hub-btn-icon { width: 32px; height: 32px; padding: 0; min-height: 32px; color: var(--hub-mute-2); }
.hub-btn-icon:hover:not(:disabled) { color: var(--hub-accent); }

.hub-act { background: none; border: 0; padding: 5px 0; min-height: 30px; cursor: pointer; font-size: 12.5px; color: var(--hub-accent); white-space: nowrap; transition: color var(--hub-fast); }
.hub-act:hover { color: var(--hub-accent-soft); }
.hub-act.is-quiet { color: var(--hub-mute); }
.hub-act.is-quiet:hover { color: var(--hub-ink); }
.hub-act.is-bad { color: var(--hub-bad); }
.hub-act:disabled { color: var(--hub-dim); cursor: default; }

.hub-spin { width: 13px; height: 13px; border: 1.5px solid rgba(14, 17, 19, .3); border-top-color: #0E1113; border-radius: 50%; animation: hubSpin .6s linear infinite; }
.hub-spin.is-light { border-color: rgba(255, 255, 255, .18); border-top-color: var(--hub-accent); }

/* ------------------------------------------------------------- filtros */

.hub-tabs { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 22px); border-bottom: 1px solid var(--hub-line); }
.hub-tabs.is-scroll { flex-wrap: nowrap; overflow-x: auto; }
.hub-tab {
  flex: none; background: none; border: 0; border-bottom: 1px solid transparent;
  padding: 0 0 10px; min-height: 30px; cursor: pointer; font-size: 13px; color: var(--hub-mute);
  white-space: nowrap; transition: color var(--hub-fast), border-color var(--hub-fast);
}
.hub-tab:hover { color: var(--hub-ink); }
.hub-tab.is-on { color: var(--hub-ink); border-bottom-color: var(--hub-accent); }
.hub-tab-count { font-family: var(--hub-mono); font-size: 11px; color: var(--hub-faint); margin-left: 5px; }
.hub-tab.is-on .hub-tab-count { color: var(--hub-mute-2); }

.hub-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.hub-search {
  flex: 1; min-width: min(100%, 240px); display: flex; align-items: center; gap: 9px;
  background: var(--hub-raise); border: 1px solid var(--hub-line-mid); padding: 9px 11px;
  transition: border-color var(--hub-base);
}
.hub-search:focus-within { border-color: var(--hub-accent); }
.hub-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 13px; }
.hub-search.is-button { cursor: pointer; text-align: left; }
.hub-search.is-button:hover { border-color: var(--hub-accent-edge); }
.hub-chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--hub-raise);
  border: 1px solid var(--hub-line-mid); color: var(--hub-mute); font-size: 12.5px;
  padding: 8px 11px; min-height: 34px; cursor: pointer; transition: border-color var(--hub-fast), color var(--hub-fast);
}
.hub-chip:hover { border-color: var(--hub-accent-edge); }
.hub-chip.is-on { background: var(--hub-accent-wash); border-color: var(--hub-accent-edge); color: var(--hub-accent-soft); }
.hub-tag { display: inline-flex; align-items: center; font-size: 11.5px; color: var(--hub-ink-4); border: 1px solid var(--hub-line-strong); padding: 3px 7px; white-space: nowrap; }
.hub-tag.is-accent { color: var(--hub-accent); border-color: var(--hub-accent-edge); }

/* ------------------------------------------------------------ formulario */

.hub-field { display: block; margin-bottom: 16px; min-width: 0; }
.hub-label { display: block; font-size: 12.5px; color: var(--hub-ink-4); margin-bottom: 8px; }
.hub-req { color: var(--hub-accent); }
.hub-input, .hub-select, .hub-textarea {
  width: 100%; background: var(--hub-raise); border: 1px solid var(--hub-line-mid);
  color: var(--hub-ink); font-size: 14px; padding: 11px 13px; min-height: 42px; outline: none;
  transition: border-color var(--hub-base), box-shadow var(--hub-base);
}
.hub-input:focus, .hub-select:focus, .hub-textarea:focus { border-color: var(--hub-accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, .14); }
.hub-input.is-bad, .hub-select.is-bad, .hub-textarea.is-bad { border-color: var(--hub-bad-edge); }
.hub-input::placeholder, .hub-textarea::placeholder { color: var(--hub-dim); }
.hub-textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.hub-select { appearance: none; cursor: pointer; padding-right: 32px; }
.hub-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--hub-faint); }
/* Agrupa campos do mesmo assunto num formulario longo (ex.: "Contato e
   presenca digital"). Titulo discreto, separado por uma linha. */
.hub-form-section { margin: 22px 0 14px; padding-top: 16px; border-top: 1px solid var(--hub-line); }
.hub-form-section-title { font-family: var(--hub-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--hub-faint); }
.hub-field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }

.hub-note {
  display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px;
  font-size: 12.5px; line-height: 1.5; border-left: 2px solid var(--hub-dim); background: var(--hub-raise);
}
.hub-note.is-bad { border-left-color: var(--hub-bad); background: rgba(242, 85, 90, .07); color: var(--hub-bad-ink); }
.hub-note.is-warn { border-left-color: var(--hub-warn); background: var(--hub-warn-wash); color: var(--hub-warn-ink); }
.hub-note.is-info { border-left-color: var(--hub-accent); color: var(--hub-ink-4); }
.hub-note.is-ok { border-left-color: var(--hub-ok); color: var(--hub-ink-4); }
.hub-note-mark { flex: none; font-family: var(--hub-mono); font-size: 11px; line-height: 1.55; }

/* -------------------------------------------------------------- estados */

.hub-state { padding: clamp(34px, 5vw, 56px) 20px; text-align: center; }
.hub-state-mark { width: 34px; height: 34px; margin: 0 auto 16px; border: 1px solid var(--hub-accent-edge); color: var(--hub-accent); display: flex; align-items: center; justify-content: center; font-family: var(--hub-mono); font-size: 13px; }
.hub-state-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.hub-state-text { margin: 0 auto 18px; max-width: 360px; font-size: 12.5px; line-height: 1.6; color: var(--hub-mute); }
.hub-state-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.hub-skel { background: #1A1E20; animation: hubSkel 1.3s ease-in-out infinite; height: 11px; }
.hub-skel-rows { padding: 16px var(--hub-pad); display: flex; flex-direction: column; gap: 14px; }

/* ------------------------------------------------------------- overlays */

.hub-overlay { position: fixed; inset: 0; z-index: 80; display: flex; padding: 16px; }
.hub-overlay.is-top { align-items: flex-start; justify-content: center; padding-top: clamp(40px, 10vh, 110px); }
.hub-overlay.is-center { align-items: center; justify-content: center; }
.hub-overlay.is-right { align-items: stretch; justify-content: flex-end; padding: 0; }
.hub-scrim { position: absolute; inset: 0; background: rgba(5, 6, 7, .78); backdrop-filter: blur(3px); border: 0; cursor: default; }
.hub-dialog {
  position: relative; width: 100%; max-width: 470px; background: var(--hub-app);
  border: 1px solid var(--hub-line-strong); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95);
  animation: hubIn .18s ease both; max-height: calc(100dvh - 32px); display: flex; flex-direction: column;
}
.hub-dialog.is-wide { max-width: 560px; }
.hub-drawer {
  position: relative; width: min(100%, 540px); background: var(--hub-app);
  border-left: 1px solid var(--hub-line-strong); display: flex; flex-direction: column;
  animation: hubIn .18s ease both; max-height: 100dvh;
}
.hub-dialog-head, .hub-drawer-head { padding: 18px var(--hub-pad) 0; }
.hub-dialog-body, .hub-drawer-body { padding: 16px var(--hub-pad); overflow-y: auto; flex: 1; }
.hub-dialog-foot, .hub-drawer-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 14px var(--hub-pad); border-top: 1px solid var(--hub-line); }

.hub-menu { position: absolute; right: 0; top: calc(100% + 7px); min-width: 214px; background: var(--hub-raise); border: 1px solid var(--hub-line-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95); padding: 5px; z-index: 50; }
.hub-menu-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: none; border: 0; padding: 8px 10px; min-height: 34px; cursor: pointer; text-align: left; font-size: 13px; color: var(--hub-ink-3); transition: background var(--hub-fast); }
.hub-menu-item:hover:not(:disabled) { background: var(--hub-chip); }
.hub-menu-item:disabled { color: var(--hub-dim); cursor: default; }
.hub-menu-key { font-family: var(--hub-mono); font-size: 11.5px; color: var(--hub-faint); }

.hub-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 95;
  display: flex; align-items: center; gap: 11px; max-width: min(92vw, 520px);
  background: var(--hub-raise); border-left: 2px solid var(--hub-ok); padding: 12px 16px;
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, .95); font-size: 12.8px; animation: hubIn .18s ease both;
}
.hub-toast.is-bad { border-left-color: var(--hub-bad); }
.hub-toast.is-warn { border-left-color: var(--hub-warn); }

/* ------------------------------------------------------------ timeline */

.hub-time { display: grid; grid-template-columns: 54px 12px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
.hub-time.is-tight { grid-template-columns: 12px minmax(0, 1fr); }
.hub-time-rail { display: flex; flex-direction: column; align-items: center; }
.hub-time-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--hub-mute); margin-top: 5px; }
.hub-time-line { flex: 1; width: 1px; background: var(--hub-line-strong); }
.hub-time-when { font-family: var(--hub-mono); font-size: 12.5px; color: var(--hub-mute-2); padding-top: 3px; }
.hub-time-text { font-size: 12.8px; line-height: 1.45; }
.hub-time-meta { font-family: var(--hub-mono); font-size: 12.5px; color: var(--hub-mute-2); margin-top: 4px; }

/* --------------------------------------------------------------- misc */

.hub-bandmeter { display: flex; height: 6px; gap: 2px; }
.hub-bandmeter span { display: block; min-width: 2px; }
.hub-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.hub-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--hub-mute); }
.hub-legend-swatch { width: 6px; height: 6px; }
.hub-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hub-line-soft); font-size: 12.8px; }
.hub-kv:last-child { border-bottom: 0; }
.hub-kv-k { color: var(--hub-mute-2); font-size: 12.5px; }
.hub-kv-v { text-align: right; color: var(--hub-ink-3); min-width: 0; }

.hub-facts { display: grid; background: var(--hub-panel); }
.hub-fact { min-width: 0; padding: 12px 16px; border-left: 1px solid var(--hub-line); border-top: 1px solid var(--hub-line); margin-top: -1px; }
.hub-fact-k { font-size: 12.5px; color: var(--hub-mute-2); margin-bottom: 6px; }
.hub-fact-v { font-size: 13px; color: var(--hub-ink-3); }

.hub-chart { position: relative; }
.hub-chart svg { display: block; width: 100%; height: clamp(150px, 18vw, 200px); }
.hub-chart-axis { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--hub-mono); font-size: 11.5px; color: var(--hub-faint); }
.hub-chart-cursor { position: absolute; top: 0; bottom: 22px; width: 1px; background: rgba(255, 255, 255, .22); pointer-events: none; }
.hub-chart-tip { position: absolute; top: 0; background: var(--hub-raise); border: 1px solid var(--hub-line-strong); padding: 9px 11px; pointer-events: none; min-width: 156px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .95); }

/* ----------------------------------------------------------------- auth */

.hub-auth { display: grid; grid-template-columns: minmax(0, 1fr) 520px; min-height: 100dvh; background: var(--hub-canvas); }
.hub-auth.is-narrow { grid-template-columns: minmax(0, 1fr); }
.hub-auth-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--hub-panel); padding: clamp(32px, 4vw, 52px); }
.hub-auth.is-narrow .hub-auth-brand { display: none; }
.hub-auth-grid { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px); background-size: 92px 100%; }
.hub-auth-glow { position: absolute; top: -180px; right: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 26, .15), transparent 62%); animation: hubPulse 12s ease-in-out infinite; }
.hub-auth-hr { position: absolute; left: clamp(32px, 4vw, 52px); right: clamp(32px, 4vw, 52px); top: 50%; height: 1px; background: linear-gradient(90deg, rgba(255, 122, 26, .5), rgba(255, 122, 26, 0)); }
.hub-auth-layer { position: relative; }
.hub-auth-headline { font-size: clamp(34px, 4.2vw, 54px); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.hub-auth-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); padding-top: 26px; border-top: 1px solid var(--hub-line); }
.hub-auth-form { min-width: 0; background: var(--hub-app); display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 72px); }
.hub-auth-card { width: 100%; max-width: 392px; animation: hubIn .22s ease both; }
.hub-code { display: flex; gap: 8px; }
.hub-code-cell { flex: 1; min-width: 0; height: 56px; background: var(--hub-raise); border: 1px solid var(--hub-line-mid); display: flex; align-items: center; justify-content: center; font-family: var(--hub-mono); font-size: 22px; transition: border-color var(--hub-fast), box-shadow var(--hub-fast); }
.hub-code-cell.is-on { border-color: var(--hub-accent); box-shadow: 0 0 0 3px rgba(255, 122, 26, .14); }
.hub-code-cell.is-bad { border-color: var(--hub-bad-edge); }
.hub-code-caret { width: 1px; height: 24px; background: var(--hub-accent); animation: hubPulse 1.1s steps(2) infinite; }
.hub-code-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; background: none; color: transparent; cursor: text; font-size: 16px; }

/* --------------------------------------------------------- responsivo */

@media (max-width: 720px) {
  .hub-page { padding-bottom: 72px; }
  .hub-head { align-items: flex-start; }
  .hub-dialog { max-width: 100%; }
  .hub-drawer { width: 100%; border-left: 0; }
  .hub-toast { left: 12px; right: 12px; transform: none; max-width: none; }
  .hub-auth-form { align-items: flex-start; }
}
