/* ===== V10.0 — Meu Caça Duplo: mesa de análise (docs/MESA.md) =====
   Camada carregada depois de temas.css. Mesmo prefixo dos temas (§ = html[data-tema]:not(#_t1):not(#_t2))
   para vencer as regras antigas do .mycd-view. Cores sempre pelas variáveis --t-* e --lamp-*. */

html[data-tema]:not(#_t1):not(#_t2) .mesa-view{
  --mesa-acento:var(--mycd-accent,var(--t-verde));
  --lamp-verde:#4AD28F; --lamp-ambar:#F2B544; --lamp-ciano:#46C9E8; --lamp-magenta:#F06BC4; --lamp-laranja:#FF8A4C; --lamp-violeta:#A98BFF;
  --lamp-brilho:1;
  font-family:var(--t-fonte);color:var(--t-texto);padding-bottom:40px;
}
html[data-tema="clean"]:not(#_t1):not(#_t2) .mesa-view{
  --mesa-acento:color-mix(in srgb,var(--mycd-accent,#0E7442) 62%,#000);
  --lamp-verde:#0E7442; --lamp-ambar:#8F5400; --lamp-ciano:#0B6680; --lamp-magenta:#9C2474; --lamp-laranja:#A9431A; --lamp-violeta:#5B3FC4;
  --lamp-brilho:0;
}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view[data-mycd-lights="off"]{--mesa-acento:var(--t-texto3)}

/* topo */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-topo{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin:6px 0 18px;padding-bottom:16px;border-bottom:1px solid var(--t-borda)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-titulo h1{font-size:clamp(30px,4.4vw,46px)!important;font-weight:800!important;font-stretch:125%;letter-spacing:-.01em!important;line-height:1!important;margin:4px 0 8px!important;color:var(--t-texto)!important;-webkit-text-fill-color:currentColor!important;background:none!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-dono{margin:0!important;font-size:14px!important;font-weight:700!important;color:var(--mesa-acento)!important;-webkit-text-fill-color:currentColor!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-sub{margin:0!important;max-width:62ch;font-size:15px!important;line-height:1.5!important;color:var(--t-texto2)!important}
/* V10.2: botão da Central de aprendizagem, à direita do cabeçalho; abas logo abaixo */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-topo{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"titulo aprender" "abas abas";align-items:end;column-gap:28px;row-gap:16px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-titulo{grid-area:titulo}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aprender{grid-area:aprender;align-self:center;display:flex;align-items:center;gap:14px;max-width:390px;padding:14px 18px 14px 14px;border-radius:18px;text-decoration:none;color:var(--t-texto);background:linear-gradient(135deg,color-mix(in srgb,var(--mesa-acento) 20%,var(--t-sup)),var(--t-sup));border:1.5px solid color-mix(in srgb,var(--mesa-acento) 60%,transparent);box-shadow:var(--t-sombra);transition:transform .15s ease,box-shadow .15s ease}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aprender:hover{transform:translateY(-2px);box-shadow:var(--t-sombra-hover)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aprender-icone{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--mesa-acento);color:var(--t-fundo);font-size:17px;padding-left:3px}
html[data-tema="clean"]:not(#_t1):not(#_t2) .mesa-view .mesa-aprender-icone{color:#fff}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aprender-texto{display:grid;gap:4px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aprender-texto strong{font-size:16px;font-weight:800;line-height:1.2;color:var(--t-texto)!important;-webkit-text-fill-color:currentColor!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aprender-texto small{font-size:13px!important;line-height:1.4;color:var(--t-texto2)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-abas{grid-area:abas;justify-self:start;display:flex;gap:4px;padding:4px;border-radius:999px;background:var(--t-sup);border:1px solid var(--t-borda)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aba{appearance:none;border:0;background:none;color:var(--t-texto2);font:700 14px/1 var(--t-fonte);padding:10px 16px;border-radius:999px;cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aba.active{background:var(--mesa-acento);color:var(--t-fundo)}
html[data-tema="clean"]:not(#_t1):not(#_t2) .mesa-view .mesa-aba.active{color:#fff}

/* barra: dias + montagens */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-barra{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:18px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-datas{display:flex;gap:6px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-datas button{appearance:none;display:grid;gap:2px;min-width:72px;padding:9px 12px;border-radius:12px;border:1px solid var(--t-borda);background:var(--t-sup);color:var(--t-texto);cursor:pointer;text-align:left;font-family:var(--t-fonte)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-datas button small{font-size:12px!important;color:var(--t-texto3)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-datas button b{font-size:16px;font-weight:800;font-stretch:125%}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-datas button.active{border-color:var(--mesa-acento);box-shadow:inset 0 0 0 1px var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-montagens{display:flex;gap:6px;flex-wrap:wrap}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-montagens :is(button,span){appearance:none;font:700 13px/1 var(--t-fonte);padding:9px 13px;border-radius:999px;border:1px solid var(--t-borda2);background:none;color:var(--t-texto2);cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-montagens [aria-pressed="true"]{background:var(--t-sup2);border-color:var(--mesa-acento);color:var(--t-texto)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-montagem-propria{cursor:default!important;border-style:dashed!important}

/* grade principal */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-grade{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px;align-items:start}

/* quadro */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-quadro{position:sticky;top:84px;max-height:calc(100vh - 100px);overflow:auto;overscroll-behavior:contain;background:var(--t-sup);border:1px solid var(--t-borda);border-radius:var(--t-raio-secao);box-shadow:var(--t-sombra);padding:6px 14px 14px;scrollbar-width:thin}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-quadro-topo{position:sticky;top:-6px;z-index:2;display:flex;align-items:center;gap:10px;padding:12px 0 10px;background:var(--t-sup);border-bottom:1px solid var(--t-borda)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-quadro-topo strong{font-size:15px;font-weight:800}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-salvo{margin-left:auto;font-size:12px;color:var(--t-texto3)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-fechar{display:none;appearance:none;border:0;background:var(--t-sup2);color:var(--t-texto);width:36px;height:36px;border-radius:50%;font-size:22px;line-height:1;cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-bloco{border-bottom:1px solid var(--t-borda);padding:4px 0}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-bloco>summary{list-style:none;cursor:pointer;display:flex;align-items:baseline;gap:8px;padding:12px 0;font-weight:800;font-size:14px;color:var(--t-texto)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-bloco>summary::-webkit-details-marker{display:none}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-bloco>summary::after{content:"+";margin-left:auto;font-weight:700;color:var(--t-texto3)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-bloco[open]>summary::after{content:"–"}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-bloco>summary em{font-style:normal;font-weight:500;font-size:12px;color:var(--t-texto3)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-quadro-rodape{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-quadro-rodape small{font-size:12px;color:var(--t-texto3)!important;text-align:right}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-link{appearance:none;border:0;background:none;padding:6px 0;color:var(--t-texto2);font:700 13px/1.2 var(--t-fonte);text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* luzes no quadro */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-luzes{display:grid;gap:6px;padding-bottom:10px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz{border:1px solid var(--t-borda);border-radius:12px;padding:8px 10px;background:var(--t-entrada)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz.ligada{border-color:var(--t-borda2)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-linha{display:flex;align-items:center;gap:8px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-chave{display:flex;align-items:center;gap:9px;flex:1;min-width:0;cursor:pointer;font-size:14px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-chave input{width:18px;height:18px;accent-color:var(--mesa-acento);margin:0;flex:none}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-chave b{font-weight:700;color:var(--t-texto)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz:not(.ligada) .luz-chave b{color:var(--t-texto2);font-weight:600}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ordem{display:flex;gap:2px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ordem button{appearance:none;width:28px;height:28px;border-radius:8px;border:1px solid var(--t-borda);background:var(--t-sup);color:var(--t-texto2);font-size:13px;cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ordem button:disabled{opacity:.35;cursor:default}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-detalhe{display:grid;gap:8px;padding:10px 0 2px 27px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ajuste{display:grid;gap:6px;font-size:13px;color:var(--t-texto2)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ajuste b{color:var(--t-texto)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ajuste input[type=range],html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-campo input[type=range]{width:100%;accent-color:var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ajuste select,html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-seletor select{font:600 14px var(--t-fonte);color:var(--t-texto);background:var(--t-sup);border:1px solid var(--t-borda2);border-radius:10px;padding:7px 10px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ajuste-texto{margin:0!important;font-size:13px!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-extra{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-peso{display:flex;border:1px solid var(--t-borda2);border-radius:10px;overflow:hidden}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-peso button{appearance:none;border:0;background:none;color:var(--t-texto2);font:600 12px/1 var(--t-fonte);padding:8px 9px;cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-peso button+button{border-left:1px solid var(--t-borda2)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-peso button[aria-pressed="true"]{background:var(--t-sup2);color:var(--t-texto);box-shadow:inset 0 -2px 0 var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-cor{appearance:none;display:flex;align-items:center;gap:6px;border:1px solid var(--t-borda2);background:none;color:var(--t-texto2);font:600 12px/1 var(--t-fonte);padding:7px 10px;border-radius:10px;cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ajuda summary{cursor:pointer;font-size:12px;font-weight:600;color:var(--t-texto3);width:max-content}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .luz-ajuda p{margin:6px 0 0!important;font-size:12px!important;line-height:1.45!important;color:var(--t-texto2)!important}

/* lâmpada: o elemento assinatura */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .lampada{width:14px;height:14px;border-radius:50%;flex:none;background:var(--c);box-shadow:0 0 calc(10px*var(--lamp-brilho)) color-mix(in srgb,var(--c) 70%,transparent),inset 0 -2px 3px rgba(0,0,0,.25)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .cor-verde{--c:var(--lamp-verde)} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .cor-ambar{--c:var(--lamp-ambar)} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .cor-ciano{--c:var(--lamp-ciano)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .cor-magenta{--c:var(--lamp-magenta)} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .cor-laranja{--c:var(--lamp-laranja)} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .cor-violeta{--c:var(--lamp-violeta)}

/* filtros */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-filtros{display:grid;gap:16px;padding-bottom:14px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-campo{display:grid;gap:8px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-rotulo{font-size:13px;font-weight:700;color:var(--t-texto)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-rotulo b{color:var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-dica{font-size:12px!important;color:var(--t-texto3)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-fichas{display:flex;flex-wrap:wrap;gap:6px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .ficha{appearance:none;display:inline-flex;align-items:center;gap:6px;font:600 13px/1.2 var(--t-fonte);padding:7px 10px;border-radius:10px;border:1px solid var(--t-borda2);background:none;color:var(--t-texto);cursor:pointer;text-align:left}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .ficha small{font-size:11px!important;color:var(--t-texto3)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .ficha[aria-pressed="true"]{background:color-mix(in srgb,var(--mesa-acento) 14%,transparent);border-color:var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .ficha.fora-do-dia{opacity:.7;border-style:dashed}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .ficha.do-perfil{cursor:default;border-style:dashed;color:var(--t-texto2)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .ficha b{font-weight:800;color:var(--t-texto3)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-busca{position:relative}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-busca input{width:100%;box-sizing:border-box;font:500 14px var(--t-fonte);color:var(--t-texto);background:var(--t-entrada);border:1px solid var(--t-borda2);border-radius:var(--t-raio-campo);padding:10px 12px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-sugestoes{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:5;display:grid;background:var(--t-sup);border:1px solid var(--t-borda2);border-radius:12px;box-shadow:var(--t-sombra);overflow:hidden}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-sugestoes button{appearance:none;border:0;background:none;text-align:left;padding:10px 12px;font:600 14px var(--t-fonte);color:var(--t-texto);cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-sugestoes button:hover,html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-sugestoes button:focus-visible{background:var(--t-sup2)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-chaves{display:grid;gap:8px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-chaves label,html[data-tema]:not(#_t1):not(#_t2) label.mesa-chaves{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--t-texto);cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-chaves input{width:18px;height:18px;margin:0;accent-color:var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-chaves span{color:var(--t-texto)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-indicadores{display:grid;gap:6px;padding-bottom:12px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .indicador{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:10px;border:1px solid var(--t-borda)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .indicador label{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .indicador input{width:18px;height:18px;margin:0;accent-color:var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .indicador:not(.ligado) span{color:var(--t-texto2)!important}

/* cor da mesa (as antigas iluminações do Meu Caça Duplo) */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-cores{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding-bottom:10px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-cores button{appearance:none;display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;border:1px solid var(--t-borda2);background:none;color:var(--t-texto);font:600 13px/1.2 var(--t-fonte);cursor:pointer;text-align:left}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-cores button i{width:16px;height:16px;border-radius:50%;flex:none}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-cores [data-mycd-theme-choice="iron"] i{background:linear-gradient(135deg,#ff3146 50%,#ffc548 50%)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-cores [data-mycd-theme-choice="hulk"] i{background:linear-gradient(135deg,#60ff54 50%,#a555ff 50%)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-cores [data-mycd-theme-choice="blue"] i{background:#20d8ff}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-cores [data-mycd-theme-choice="pink"] i{background:#ff3db8}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-cores [data-mycd-theme-choice="penelope"] i{background:#ff6cb8}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-cores button.active{border-color:var(--mesa-acento);box-shadow:inset 0 0 0 1px var(--mesa-acento)}

/* coluna dos jogos */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogos-topo{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-resumo{margin:0!important;font-size:15px!important;font-weight:700;color:var(--t-texto)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-controles{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-seletor{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--t-texto2)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-seletor span{color:var(--t-texto2)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-modo{display:flex;border:1px solid var(--t-borda2);border-radius:10px;overflow:hidden}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-modo button{appearance:none;border:0;background:none;color:var(--t-texto2);font:700 13px/1 var(--t-fonte);padding:9px 12px;cursor:pointer}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-modo button[aria-pressed="true"]{background:var(--t-sup2);color:var(--t-texto);box-shadow:inset 0 -2px 0 var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-ajustar{display:none;appearance:none;border:0;background:var(--mesa-acento);color:var(--t-fundo);font:800 14px/1 var(--t-fonte);padding:11px 16px;border-radius:999px;cursor:pointer;white-space:nowrap}
html[data-tema="clean"]:not(#_t1):not(#_t2) .mesa-view .mesa-ajustar{color:#fff}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-legenda{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:2px 0 10px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .legenda-titulo{font-size:12px;font-weight:700;color:var(--t-texto3)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aviso-ordem{margin:0 0 12px!important;font-size:13px!important;color:var(--t-texto2)!important;padding:8px 12px;border-left:3px solid var(--mesa-acento);background:var(--t-sup)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-lista{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-lista.modo-lista{grid-template-columns:1fr;gap:6px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-vazio{grid-column:1/-1;display:grid;gap:6px;justify-items:start;padding:28px;border:1px dashed var(--t-borda2);border-radius:var(--t-raio-card);background:var(--t-sup)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-vazio strong{font-size:16px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-vazio span{font-size:14px;color:var(--t-texto2)}

/* lâmpadas nos jogos */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .lamp{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;line-height:1;padding:5px 9px 5px 7px;border-radius:999px;border:1px solid transparent;color:var(--t-texto3)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .lamp i{width:10px;height:10px;border-radius:50%;flex:none;border:1.5px solid color-mix(in srgb,var(--c) 55%,transparent);box-sizing:border-box}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .lamp.acesa{color:var(--t-texto);border-color:color-mix(in srgb,var(--c) 45%,transparent);background:color-mix(in srgb,var(--c) 12%,transparent)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .lamp.acesa i{background:var(--c);border-color:var(--c);box-shadow:0 0 calc(8px*var(--lamp-brilho)) var(--c)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .lamp.sem-dado i{border:1.5px dashed var(--t-texto3)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .lamp.sem-dado{opacity:.7}

/* cartão do jogo */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo{position:relative;display:grid;gap:12px;align-content:start;padding:14px 16px;border-radius:var(--t-raio-card);background:var(--t-sup);border:1px solid var(--t-borda);box-shadow:var(--t-sombra)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.destaque{border-color:var(--mesa-acento);box-shadow:var(--t-sombra),0 0 0 1px var(--mesa-acento),0 0 calc(26px*var(--lamp-brilho)) -8px var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.destaque::before{content:"Acendeu sua mesa";position:absolute;top:-10px;right:14px;font:800 11px/1 var(--t-fonte);padding:5px 9px;border-radius:999px;background:var(--mesa-acento);color:var(--t-fundo)}
html[data-tema="clean"]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.destaque::before{color:#fff}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-topo{display:flex;align-items:center;gap:10px;min-width:0}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-fav .match-favorite{margin:0!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-hora-grande{font-size:20px;font-weight:800;font-stretch:125%;color:var(--t-hora)!important;-webkit-text-fill-color:currentColor!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-liga{flex:1;min-width:0;font-size:12px;color:var(--t-texto2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-oficial{font-size:11px;font-weight:800;padding:4px 7px;border-radius:999px;background:var(--t-verde-suave);color:var(--t-verde)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-times{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;font-size:15px;font-weight:700}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-times>span{display:flex;align-items:center;gap:7px;min-width:0}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-times>span:last-of-type{justify-content:flex-start;text-align:right;flex-direction:row-reverse}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-times em{font-style:normal;font-weight:600;font-size:13px;color:var(--t-texto3)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-times .team-logo{width:24px;height:24px;object-fit:contain;flex:none}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-resultado{grid-column:1/-1;display:flex;justify-content:center;gap:8px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-lampadas{display:flex;flex-wrap:wrap;gap:6px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-medidores{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;padding-top:2px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .medidor{display:grid;grid-template-columns:1fr auto;gap:4px 8px;font-size:12px;align-items:baseline}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .medidor span{color:var(--t-texto2)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .medidor b{font-weight:800;color:var(--t-texto)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .medidor i{grid-column:1/-1;height:5px;border-radius:5px;background:linear-gradient(90deg,var(--mesa-acento) var(--v),var(--t-borda) var(--v))}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .medidor.sem-dado b{color:var(--t-texto3);font-weight:600}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-porque{margin:0!important;font-size:13px!important;line-height:1.5!important;color:var(--t-texto2)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-rodape{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--t-borda)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-nota{display:grid;justify-items:center;min-width:64px;padding:6px 10px;border-radius:var(--t-raio-placa);background:var(--t-placa-fundo);border:1px solid var(--t-placa-borda);box-shadow:var(--t-placa-brilho)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-nota small{font-size:10px!important;font-weight:700;color:var(--t-placa-rotulo)!important}
html[data-tema="clean"]:not(#_t1):not(#_t2) .mesa-view .mj-nota small{color:#fff!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-nota strong{font-size:20px;font-weight:800;font-stretch:125%;line-height:1.1;color:var(--t-placa-num)!important;-webkit-text-fill-color:currentColor!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-mesa{display:grid;line-height:1.2}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-mesa small{font-size:11px!important;color:var(--t-texto3)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-mesa strong{font-size:15px;font-weight:800;color:var(--mesa-acento)!important;-webkit-text-fill-color:currentColor!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-mesa span{font-size:12px;color:var(--t-texto2)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-tv{margin-left:auto;font-size:12px}

/* modo lista */
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha{grid-template-columns:34px 64px minmax(0,1.4fr) minmax(0,1fr) 54px 70px;align-items:center;gap:12px;padding:10px 14px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha.destaque::before{display:none}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-hora{display:grid;line-height:1.15}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-hora strong{font-size:16px;font-weight:800;font-stretch:125%;color:var(--t-hora)!important;-webkit-text-fill-color:currentColor!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-hora small{font-size:11px!important;color:var(--t-texto3)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-confronto{display:grid;gap:3px;min-width:0}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-confronto small{font-size:11px!important;color:var(--t-texto3)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-confronto>span{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;flex-wrap:wrap}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-confronto em{font-style:normal;color:var(--t-texto3)!important;font-size:12px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-confronto .team-logo{width:18px;height:18px;object-fit:contain}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-lampadas.compacta{gap:4px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-lampadas.compacta .lamp{padding:4px 7px 4px 5px;font-size:11px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-placar-mesa{display:grid;justify-items:center;line-height:1}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-placar-mesa b{font-size:20px;font-weight:800;font-stretch:125%;color:var(--mesa-acento)}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-placar-mesa small{font-size:11px!important;color:var(--t-texto3)!important}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-nota{min-width:0;padding:5px 8px}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-nota small{display:none}

html[data-tema]:not(#_t1):not(#_t2) .mesa-view .sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-tema]:not(#_t1):not(#_t2) .mesa-view :is(button,select,input,summary):focus-visible{outline:2px solid var(--t-foco);outline-offset:2px}

/* tablet e celular: o quadro vira gaveta inferior */
@media (max-width:1000px){
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-grade{grid-template-columns:1fr}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-ajustar{display:inline-flex}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-fechar{display:block}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-quadro{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:1001;max-height:86vh;border-radius:20px 20px 0 0;transform:translateY(105%);transition:transform .25s ease;visibility:hidden}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-quadro.aberto{transform:none;visibility:visible}
  html[data-tema]:not(#_t1):not(#_t2) body.mesa-quadro-aberto{overflow:hidden}
  html[data-tema]:not(#_t1):not(#_t2) body.mesa-quadro-aberto .mesa-view::after{content:"";position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.5)}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha{grid-template-columns:30px 56px minmax(0,1fr) 62px;grid-template-areas:"fav hora conf nota" "luz luz luz mesa"}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-fav{grid-area:fav} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-hora{grid-area:hora} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-confronto{grid-area:conf}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-nota{grid-area:nota} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-lampadas{grid-area:luz} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo.linha .mj-placar-mesa{grid-area:mesa}
}
@media (max-width:640px){
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-topo{grid-template-columns:1fr;grid-template-areas:"titulo" "aprender" "abas"}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aprender{max-width:none;width:100%}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-abas{width:100%} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-aba{flex:1}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-barra{gap:10px}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-datas{width:100%} html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-datas button{flex:1;min-width:0;padding:8px}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-montagens{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:4px;scrollbar-width:none}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-montagens :is(button,span){white-space:nowrap}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-lista{grid-template-columns:1fr}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-controles{width:100%}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-ajustar{flex:1;justify-content:center}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-seletor span{display:none}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mj-medidores{grid-template-columns:1fr 1fr}
  html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-jogo{padding:12px 13px}
}
@media (prefers-reduced-motion:reduce){html[data-tema]:not(#_t1):not(#_t2) .mesa-view .mesa-quadro{transition:none}}
