/* DubLink Pro — chassi de console de estúdio.
   Painel grafite anodizado, silk-screen condensado, leitura em mono tabular,
   lâmpada tally e medidores de pico com a lei de cor real de instrumento.      */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700&family=Montserrat:wght@600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --chassis: var(--chassis);
  --panel: #1a1c20;
  --panel-hi: #212429;
  --well: #0d0e10;
  --rule: #2b2f36;
  --rule-soft: #22262c;

  --ink: #e9ecf0;
  --ink-dim: #9aa1ab;
  --silk: #767d88;

  --lamp: #ffb020;
  --lamp-ink: #ffb020;
  --tally: #ff3b21;
  --link: #8ec9ff;

  /* Marca: o mesmo gradiente da logo — ciano #06B4D2 até azul-violeta #5B62EA.
     Serve para identidade (navegação, foco, ação principal), nunca para
     estado: lâmpada, alerta e medidor continuam com a cor que significa algo. */
  --marca-a: #22C7E0;
  --marca-b: #7B84F7;
  --marca-ink: #3ED2E8;
  --marca-grad: linear-gradient(90deg, var(--marca-a), var(--marca-b));
  /* Preenchimento é mais fundo que a logo: carrega texto branco em cima. */
  --marca-fundo: linear-gradient(100deg, #0A7C91, #4A50D6);

  --met-lo: #57d68c;
  --met-ink: #57d68c;
  --met-mid: #ffc24b;
  --met-hi: #ff3b21;

  /* superfícies derivadas — nomeadas para o tema claro poder trocá-las */
  --sub: #16181c;          /* um degrau abaixo do painel */
  --sub-on: #23262b;       /* mesma superfície, selecionada */
  --barra: #1e2126;        /* trilhos superior e inferior */
  --rule-forte: #3d434b;
  --apagado: #24272c;      /* lâmpada apagada */
  --papel: #f6f5f2;        /* fundo de documento */
  --trilho: #33383f;       /* trilho do slider */
  --punho: #444a52;
  --punho-borda: #575e67;
  --ok-borda: var(--ok-borda);
  --ok-fundo: #1b2a22;
  --erro-fundo: #241a19;
  --erro-borda: #4a2a26;
  --erro-ink: #ffb6a8;     /* texto do aviso de erro */
  --sombra-topo: rgba(255,255,255,.035);
  --textura:
    linear-gradient(180deg, #191b1f 0%, #131417 220px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);

  --silkscreen: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --readout: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --prose: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gap: 11px;
  --radius: 3px;
}

/* ============================================================ tema claro ==
   Base creme com cartões brancos: o contraste de brilho separa as seções sem
   precisar de borda pesada. O grafite tem um toque de marrom para conversar
   com o creme — cinza azulado brigaria com ele.                             */
[data-tema="claro"] {
  /* Creme dois tons abaixo do alvíssimo: os cartões continuam sendo a
     superfície mais clara da tela, então a separação por brilho aumenta em
     vez de diminuir — a tela fica mais assentada, não mais apagada. */
  --chassis: #EFE9DE;
  --panel: #FBF8F3;
  --panel-hi: #FFFFFF;
  --well: #E7E0D3;
  --rule: #D5CCBC;
  --rule-soft: #E2DBCD;

  --ink: #2B2625;
  --ink-dim: #665C57;
  --silk: #6F645E;

  --lamp: #E67E22;
  --lamp-ink: #A5530F;
  --tally: #B33426;
  --link: #17627D;

  --marca-a: #06B4D2;
  --marca-b: #5B62EA;
  --marca-ink: #0A7C91;
  --marca-grad: linear-gradient(90deg, var(--marca-a), var(--marca-b));
  --marca-fundo: linear-gradient(100deg, #0A6E80, #4147C6);

  --met-lo: #2A9D8F;
  --met-ink: #1B7268;
  --met-mid: #E67E22;
  --met-hi: #B33426;

  --sub: #E9E2D5;
  --sub-on: #F7E7D0;
  --barra: #E6DFD1;
  --rule-forte: #C3B9A6;
  --apagado: #D3CBBB;
  --papel: #FFFFFF;
  --trilho: #CFC6B4;
  --punho: #FBF8F3;
  --punho-borda: #B5AA97;
  --ok-borda: #2A9D8F;
  --ok-fundo: #DFEFEC;
  --erro-fundo: #F6E3E0;
  --erro-borda: #DFC0BA;
  /* Escuro, e não o salmão do tema escuro: aquele desaparece no creme, e um
     aviso que só se lê num dos dois temas não é um aviso. */
  --erro-ink: #8C2418;
  --sombra-topo: rgba(0,0,0,.025);
  --textura: linear-gradient(180deg, #F5F1E9 0%, #EFE9DE 220px);
}


* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--chassis);
  background-image: var(--textura);
  color: var(--ink);
  font-family: var(--prose);
  font-size: 12px;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------ tipografia */
.silk {
  font-family: var(--silkscreen);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  color: var(--silk);
  font-size: 10px;
  line-height: 1.25;
}
.silk-lg { font-size: 14px; letter-spacing: .05em; color: var(--ink); }
.read {
  font-family: var(--readout);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
h1, h2, h3 { font-family: var(--silkscreen); text-transform: uppercase; letter-spacing: .05em; margin: 0; font-weight: 600; }
a { color: var(--marca-ink); }

/* ---------------------------------------------------------------- painéis */
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--sombra-topo);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10.5px;
  border-bottom: 1px solid var(--rule-soft);
}
.panel-body { padding: 10.5px; }
.stack { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.hr { height: 1px; background: var(--rule-soft); border: 0; margin: 9.5px 0; }
.dim { color: var(--ink-dim); }
.tiny { font-size: 9px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------- controles */
/* `.btn-marca` entra aqui porque ela também é usada em <a> — e um link só com
   a regra de cor herdava o fundo do botão sem o chassi: sem recuo, sem fonte,
   sem canto. Ficava um retângulo colado no texto. */
button, .btn, .btn-marca {
  font-family: var(--silkscreen);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  font-size: 10px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 7px 11px;
  cursor: pointer;
  transition: border-color .12s, color .12s, background .12s, filter .12s, transform .06s;
}

/* Só nos links. `display` aqui vale para <button> também sobrescreveria o
   `[hidden]` do navegador, que é `display: none` na folha do UA — e o botão
   "Liberar" do console, que nasce com `hidden`, passaria a aparecer sempre.
   Botão já é inline-block por padrão; quem precisa disto é o <a>. */
a.btn, a.btn-marca { display: inline-block; text-decoration: none; }
button:hover:not(:disabled), .btn:hover { border-color: var(--rule-forte); color: #fff; }
button:disabled { opacity: .38; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--marca-a); outline-offset: 2px;
}
button.on { border-color: var(--lamp); color: var(--lamp-ink); box-shadow: inset 0 0 0 1px rgba(255,176,32,.22); }
button.danger { border-color: var(--erro-borda); color: #ff8a76; }
button.ghost { background: transparent; }

input[type="text"], input[type="password"], select {
  font-family: var(--readout);
  font-size: 10px;
  color: var(--ink);
  background: var(--well);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 7px 9px;
  width: 100%;
}
input::placeholder { color: #5b626c; }
select { cursor: pointer; }
label.field { display: grid; gap: 5px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 17.5px; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2.5px; background: var(--trilho); border-radius: 1.5px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 9.5px; height: 16px; margin-top: -9px;
  background: linear-gradient(180deg, var(--punho), var(--punho));
  border: 1px solid var(--punho-borda); border-radius: 1.5px;
}
input[type="range"]::-moz-range-track { height: 2.5px; background: var(--trilho); }
input[type="range"]::-moz-range-thumb {
  width: 9.5px; height: 16px; background: var(--punho); border: 1px solid var(--punho-borda); border-radius: 1.5px;
}

/* seletor segmentado (bitrate, fonte de vídeo) */
.segments { display: flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.segments button {
  flex: 1; border: 0; border-right: 1px solid var(--rule); border-radius: 0;
  background: var(--sub); color: var(--silk); padding: 6.5px 3px; font-size: 10px; letter-spacing: .1em;
}
.segments button:last-child { border-right: 0; }
.segments button[aria-pressed="true"] {
  background: var(--sub-on); color: var(--lamp-ink);
  box-shadow: inset 0 -2px 0 var(--lamp);
}
/* Indisponível, e não desabilitado: `aria-disabled` mantém o ponteiro no botão,
   e é o ponteiro que faz o navegador mostrar o title com o motivo da trava.
   Com `disabled` de verdade o hover não acontece e a explicação não aparece. */
.segments button[aria-disabled="true"] {
  opacity: .42;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

/* ------------------------------------------------------------------ lâmpada */
.lamp {
  --glow: transparent;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--apagado);
  border: 1px solid var(--rule-forte);
  box-shadow: 0 0 0 0 var(--glow);
  flex: none;
}
.lamp.live { background: var(--tally); border-color: #ff7a66; box-shadow: 0 0 14px 2px rgba(255,59,33,.55); }
.lamp.armed { background: var(--lamp); border-color: #ffd27a; box-shadow: 0 0 12px 1px rgba(255,176,32,.4); }
.lamp.ok { background: var(--met-lo); border-color: #93e8b6; box-shadow: 0 0 10px 0 rgba(87,214,140,.35); }

/* --------------------------------------------------------------- medidores */
.meter {
  position: relative;
  height: 10.5px;
  border: 1px solid var(--rule);
  border-radius: 1.5px;
  overflow: hidden;
  /* lei de cor do instrumento: verde até -12, âmbar até -3, vermelho no topo */
  background: linear-gradient(90deg, var(--met-lo) 0 80%, var(--met-mid) 80% 95%, var(--met-hi) 95% 100%);
}
.meter .mask {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: var(--well);
  transition: left .045s linear;
}
.meter .peak {
  position: absolute; top: 0; bottom: 0; width: 1.5px; background: #fff; opacity: .8; left: 0;
  transition: left .1s linear;
}
.meter .grid {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 5px, rgba(0,0,0,.55) 5px 7px);
  pointer-events: none;
}
.meter.clip { box-shadow: 0 0 0 1px var(--tally); }
.scale {
  display: flex; justify-content: space-between;
  font-family: var(--readout); font-size: 8px; color: #565c65; margin-top: 2.5px;
}

/* --------------------------------------------------------------- utilidades */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 9.5px; align-items: baseline; }
.kv dt { font-family: var(--silkscreen); text-transform: uppercase; letter-spacing: .06em; font-size: 9px; color: var(--silk); }
.kv dd { margin: 0; font-family: var(--readout); font-size: 10px; }
.pill {
  font-family: var(--silkscreen); text-transform: uppercase; letter-spacing: .06em; font-size: 9px;
  border: 1px solid var(--rule); border-radius: 799px; padding: 2.5px 7px; color: var(--silk);
}
.notice {
  border-left: 1.5px solid var(--lamp); background: rgba(255,176,32,.06);
  padding: 7px 9.5px; font-size: 10px; color: #e2d3b4; border-radius: 0 var(--radius) var(--radius) 0;
}
.error {
  border-left: 1.5px solid var(--tally); background: rgba(255,59,33,.07);
  padding: 7px 9.5px; font-size: 10px; color: var(--erro-ink); border-radius: 0 var(--radius) var(--radius) 0;
}


/* ------------------------------------------------------------------ abas */
.tabs { display: flex; gap: 1.5px; }
.tabs button {
  border: 0; border-bottom: 1.5px solid transparent; border-radius: 0;
  background: transparent; color: var(--silk); padding: 8px 12px;
}
.tabs button:hover { color: var(--ink); border-color: var(--rule); }
.tabs button[aria-selected="true"] { color: var(--lamp-ink); border-bottom-color: var(--lamp); }

/* ---------------------------------------------------------------- script */
.script-stage {
  position: relative; min-height: 0;
  background: var(--well); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; display: flex;
}
.script-stage > * { flex: 1; min-width: 0; min-height: 0; }
.script-frame { width: 100%; height: 100%; border: 0; background: var(--well); display: block; }
.script-frame.doc { background: var(--papel); }
.script-empty { display: grid; place-content: center; gap: 6.5px; justify-items: center; padding: 24px; text-align: center; }

.script-lines {
  overflow-y: auto; padding: 9.5px 6.5px 40vh;
  font-family: var(--readout); font-size: 11px; line-height: 1.7;
}
.script-lines .ln {
  display: grid; grid-template-columns: 34px 1fr; gap: 9.5px;
  padding: 1.5px 8px 1.5px 3px; border-radius: 1.5px;
  border-left: 1.5px solid transparent;
}
.script-lines .ln[tabindex] { cursor: pointer; }
.script-lines .ln[tabindex]:hover { background: var(--sub); }
.script-lines .ln.blank { min-height: 7px; }
.script-lines .ln.cue { background: rgba(255,176,32,.11); border-left-color: var(--lamp); }
.script-lines .ln.cue .tx { color: #fff; }
.script-lines .no { color: var(--rule-forte); text-align: right; user-select: none; font-size: 9px; padding-top: 1.5px; }
.script-lines .tx { white-space: pre-wrap; word-break: break-word; }
.script-lines .tc { color: var(--link); font-size: 9px; letter-spacing: .02em; }

.script-list { display: grid; gap: 4px; }
.script-item {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px;
  padding: 6.5px 8px; background: var(--sub); border: 1px solid var(--rule); border-radius: var(--radius);
}
.script-item.active { border-color: var(--lamp); box-shadow: inset 2px 0 0 var(--lamp); }
.script-item .nm { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.script-item button { padding: 4px 7px; font-size: 9px; }

.drop {
  border: 1px dashed var(--rule); border-radius: var(--radius);
  padding: 13px; text-align: center; color: var(--silk); cursor: pointer;
  transition: border-color .12s, color .12s;
}
.drop:hover, .drop.over { border-color: var(--lamp); color: var(--lamp); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ------------------------------------------------- configuração de entrada */
.setup-veil {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 17.5px;
  background: rgba(10, 11, 13, .93); backdrop-filter: blur(4px);
}

/* --------------------------------------------------- medidor de ocupação */
/* Mesma barra da página de conta. Verde enquanto sobra sala, âmbar quando
   aperta, vermelho quando lota — a cor diz o estado antes do número. */
.barra {
  height: 5.5px; background: var(--well); border: 1px solid var(--rule);
  border-radius: 1.5px; overflow: hidden;
}
.barra > i { display: block; height: 100%; background: var(--met-lo); transition: width .3s; }
.barra.alto > i { background: var(--met-mid); }
.barra.cheio > i { background: var(--met-hi); }

/* ------------------------------------------------------- patch estéreo L/R */
.lado {
  display: inline-grid; place-items: center; flex: none;
  width: 16px; height: 16px; border-radius: 1.5px;
  font-family: var(--readout); font-size: 9px; font-weight: 600;
  background: var(--well); border: 1px solid var(--rule); color: var(--lamp);
}
.patch { display: grid; gap: 5px; }
.patch-row {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center;
  padding: 5.5px 7px; background: var(--well);
  border: 1px solid var(--rule-soft); border-radius: var(--radius);
}

/* a prévia da tela encolhe sem mexer no que é enviado */
.screen { max-height: var(--preview-max, 256px); transition: max-height .15s; }

/* --------------------------------------------------------- mudo do convidado */
.mute { display: flex; align-items: center; gap: 7px; padding: 8px 13px; }
.mute[aria-pressed="true"] {
  border-color: var(--tally); color: #ffb1a3; background: var(--erro-fundo);
}

/* ============================================================== marca ===== */
/* A imagem, quando existe, cobre o texto "DL". Se o arquivo faltar, o
   `onerror` marca o pai com .sem-img e o texto volta a aparecer — o site
   nunca fica com um quadrado quebrado.                                       */
.mark img { display: block; height: 21px; width: auto; max-width: 96px; }
.mark:has(img) { padding: 2.5px 5.5px; }
.mark img + span { display: none; }
.mark.sem-img span { display: inline; }

.plate .banner { display: block; height: auto; width: 100%; max-width: 264px; }
.plate:has(.banner) .mark,
.plate:has(.banner) h1,
.plate:has(.banner) .silk.tiny { display: none; }
.plate.sem-img .mark,
.plate.sem-img h1,
.plate.sem-img .silk.tiny { display: revert; }

/* Fundo do site é escuro: logo clara aparece, logo escura some.
   Se a sua marca for escura, troque este bloco por um fundo claro atrás dela. */
.marca-clara { background: #f4f5f7; border-radius: var(--radius); padding: 5px 8px; }

/* assinatura da marca — era um <text> dentro do SVG, virou texto de verdade */
.assinatura {
  font-family: 'Montserrat', var(--silkscreen);
  font-weight: 600; font-size: 9px; letter-spacing: .12em;
  color: #71717a; margin: -14px 0 19px 1.5px;
}
.assinatura b { color: #ff2a55; font-weight: 600; }

/* --------------------------------------------------- aviso de conexão ---- */
.alerta {
  display: inline-flex; align-items: center; gap: 5.5px;
  font-family: var(--silkscreen); text-transform: uppercase; letter-spacing: .06em;
  font-size: 9px; padding: 3px 8px; border-radius: var(--radius);
  border: 1px solid var(--tally); background: rgba(255,59,33,.1); color: #ffb1a3;
}
.alerta::before {
  content: ''; width: 5.5px; height: 5.5px; border-radius: 50%;
  background: var(--tally); animation: pisca 1.1s ease-in-out infinite;
}
.alerta.morno { border-color: var(--lamp); background: rgba(255,176,32,.1); color: #e8cf9e; }
.alerta.morno::before { background: var(--lamp); }
@keyframes pisca { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ==================================================== convidado: mudo ===== */
.mic-btn {
  display: inline-flex; align-items: center; gap: 6.5px;
  padding: 5px 9.5px; line-height: 1;
  border: 1px solid var(--ok-borda); background: var(--ok-fundo);
  color: var(--met-ink);
}
.mic-btn b {
  font-family: var(--silkscreen); text-transform: uppercase; letter-spacing: .06em;
  font-size: 10px; font-weight: 600;
}
.mic-btn:hover:not(:disabled) { border-color: #46996a; color: #7ce8a8; }
.mic-btn .corte { opacity: 0; transition: opacity .12s; }

.mic-btn[aria-pressed="true"] {
  border-color: var(--tally); color: #ff7a66;
  background: linear-gradient(180deg, var(--erro-fundo), var(--erro-fundo));
  animation: mudo-pulsa 1.6s ease-in-out infinite;
}
.mic-btn[aria-pressed="true"]:hover { border-color: #ff9c8c; color: #ffb1a3; }
.mic-btn[aria-pressed="true"] .corte { opacity: 1; }
.mic-btn[aria-pressed="true"] .corpo { opacity: .45; }
@keyframes mudo-pulsa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,33,.34); }
  50% { box-shadow: 0 0 0 5px rgba(255,59,33,0); }
}

/* ------------------------------------------------ tela cheia e layout ---- */
.fs-btn {
  position: absolute; right: 7px; bottom: 7px; z-index: 3;
  padding: 5.5px 7px; border-radius: var(--radius);
  background: rgba(10,11,13,.72); border: 1px solid var(--rule); color: var(--ink-dim);
  opacity: 0; transition: opacity .15s;
}
.stage:hover .fs-btn, .fs-btn:focus-visible { opacity: 1; }
.fs-btn:hover { color: #fff; border-color: var(--punho); }

.layout-sel button { padding: 3px 6.5px; font-size: 10px; line-height: 1; }
.stage:fullscreen { border: 0; border-radius: 0; }
.stage:fullscreen video { object-fit: contain; }

/* ----------------------------------------------- edição de script em texto */
.edit-bar {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  padding: 6.5px 8px; border-bottom: 1px solid var(--rule-soft);
}
.edit-area {
  width: 100%; height: 100%; min-height: 208px; resize: none;
  font-family: var(--readout); font-size: 11px; line-height: 1.65;
  color: var(--ink); background: var(--well);
  border: 0; border-radius: 0; padding: 11px 13px;
}
.edit-area:focus { outline: none; box-shadow: inset 0 0 0 1px var(--lamp); }

/* ================================================ abas de script ========= */
.abas {
  display: flex; align-items: flex-end; gap: 1.5px;
  padding: 0 3px; overflow-x: auto; overflow-y: hidden;
  border-bottom: 1px solid var(--rule);
  scrollbar-width: thin;
}
.abas.vazio { padding: 5.5px 8px; border-bottom-color: var(--rule-soft); }
.abas .aba-vazia { color: var(--silk); }

.aba {
  display: flex; align-items: center; gap: 5.5px; flex: none;
  max-width: 176px; padding: 5.5px 8px;
  border: 1px solid var(--rule); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--sub); color: var(--silk);
  font-family: var(--silkscreen); font-size: 10px; letter-spacing: .02em;
  text-transform: none; font-weight: 500;
  position: relative; top: 1px;
}
.aba:hover { background: var(--sub-on); color: var(--ink-dim); }
.aba[aria-selected="true"] {
  background: var(--panel); color: var(--ink);
  border-color: var(--rule); border-bottom: 1px solid var(--panel);
  box-shadow: inset 0 2px 0 var(--marca-a);
}
.aba-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aba-x {
  flex: none; width: 13px; height: 13px; line-height: 11px; text-align: center;
  border-radius: 1.5px; color: var(--silk); font-size: 12px;
}
.aba-x:hover { background: var(--erro-fundo); color: var(--tally); }


/* ------------------------------------------------------- tráfego de rede - */
.trafego { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trafego > div { display: grid; gap: 2.5px; }
.trafego b { font-size: 14px; font-weight: 500; color: var(--ink); }

/* ----------------------------------------------------- botão de tema ---- */
.tema-btn {
  display: inline-grid; place-items: center;
  width: 27px; height: 25px; padding: 0; flex: none;
}

/* =============================================== identidade da marca ===== */
/* Fio de gradiente sob o trilho superior: a assinatura da logo aparece em
   todas as telas sem competir com nada. */
.rail, .topbar { position: relative; }
.rail::after, .topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--marca-grad); opacity: .85;
}

/* A placa DL herda o gradiente em vez do âmbar. */
.mark { color: var(--marca-ink); }

/* Ação principal de cada tela: entrar, criar conta, liberar participante. */
.btn-marca {
  border: 0; color: #fff; position: relative;
  background: var(--marca-fundo);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
/* Passar o mouse clareia; clicar escurece e afunda um pixel. O par importa:
   só clarear no hover deixa o clique sem resposta, e um botão que não responde
   ao toque parece travado — a pessoa clica de novo. */
.btn-marca:hover:not(:disabled) { filter: brightness(1.12); color: #fff; }
.btn-marca:active:not(:disabled) { filter: brightness(.92); transform: translateY(1px); }
.btn-marca:disabled { filter: grayscale(.5) brightness(.8); cursor: not-allowed; }

/* Quem prefere menos movimento não recebe o afundar; a cor continua mudando. */
@media (prefers-reduced-motion: reduce) {
  .btn-marca:active:not(:disabled) { transform: none; }
}

/* Aba de navegação ativa: sublinhado com o gradiente. */
.tabs button { position: relative; }
.tabs button[aria-selected="true"] { color: var(--marca-ink); border-bottom-color: transparent; }
.tabs button[aria-selected="true"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--marca-grad);
}
