/* ODDS ATLAS r50 — leitura clara. Estilos aditivos; sem alterar lógica de apostas. */
body.atlas-theme-light{--text:#10213c;--muted:#42536b;--border:#b5c8e1;--good:#087345;--bad:#b2243a;--warn:#845500}
body.atlas-theme-light :is(.card,.atlas-placeholder,.atlas-assistant,.atlas-match-card,.atlas-r50-game,.atlas-r45-bet,.atlas-game-accordion){color:#10213c}
body.atlas-theme-light :is(.card,.atlas-placeholder,.atlas-match-card,.atlas-r50-game,.atlas-r45-bet,.atlas-game-accordion) small,
body.atlas-theme-light :is(.card,.atlas-placeholder,.atlas-match-card,.atlas-r50-game,.atlas-r45-bet,.atlas-game-accordion) p,
body.atlas-theme-light :is(.card,.atlas-placeholder,.atlas-match-card,.atlas-r50-game,.atlas-r45-bet,.atlas-game-accordion) label,
body.atlas-theme-light :is(.atlas-game-summary,.atlas-compact-analysis,.atlas-data-row,.atlas-line-metrics) :is(span,small){color:#42536b}
body.atlas-theme-light :is(.atlas-line-metrics,.atlas-game-summary,.atlas-card-row,.atlas-match-head) b{color:#10213c}
body.atlas-theme-light :is(.atlas-match-card,.atlas-r50-game,.atlas-r45-bet,.atlas-compact-analysis,.atlas-kpi){border-color:#b5c8e1}
body.atlas-theme-light :is(input,textarea,select){background:#fff;color:#10213c;border-color:#96aecb}
body.atlas-theme-light input::placeholder,body.atlas-theme-light textarea::placeholder{color:#52627a;opacity:1}
body.atlas-theme-light :is(.drawer-nav,.drawer-submenu) button{color:#10213c!important}
body.atlas-theme-light :is(.drawer-nav,.atlas-game-summary,.atlas-compact-line,.atlas-game-tab,.atlas-r50-game summary):focus-visible{outline:3px solid #145bf2;outline-offset:2px}
/* Pesquisa era escura sobre o novo tema; manter fundo legível e o azul das ações. */
body.atlas-theme-light.atlas-home #atlasAssistant,
body.atlas-theme-light #atlasAssistant{background:#fff!important;border:1px solid #b5c8e1!important;color:#10213c!important}
body.atlas-theme-light #atlasAssistant :is(h2,p,.section-title,.atlas-query-note){color:#10213c!important;opacity:1!important}
body.atlas-theme-light #atlasAssistant .section-title p{color:#42536b!important}
body.atlas-theme-light #atlasAssistant .atlas-query-row input{background:#f8fbff!important;color:#10213c!important;border-color:#96aecb!important}
body.atlas-theme-light #atlasAssistant .atlas-query-row .btn:not(.primary){background:#eef4fc!important;color:#10213c!important;border-color:#96aecb!important}
body.atlas-theme-light #atlasAssistant .atlas-query-row .btn.primary{background:#145bf2!important;color:#fff!important;border-color:#145bf2!important}
body.atlas-theme-light .atlas-query-result{background:#f8fbff!important;color:#10213c!important}
body.atlas-theme-light .atlas-finance-period{background:#fff!important;color:#10213c!important}
body.atlas-theme-light .atlas-finance-period :is(span,small){color:#42536b!important}
body.atlas-theme-light .atlas-finance-period strong{color:#10213c}
body.atlas-theme-light :is(.atlas-line-row,.atlas-line-metrics,.atlas-match-card,.atlas-review-market-grid) :is(small,span){opacity:1}
body.atlas-theme-light .atlas-line-metrics small{color:#42536b}
body.atlas-theme-light .atlas-match-head span{color:#42536b}
/* Botão PWA só existe quando o browser dispara beforeinstallprompt. */
#installAppBtn[hidden],#installAppBtn.hidden{display:none!important}
/* Triagem compacta e navegável no telemóvel e computador */
.atlas-r50-triage{display:grid;gap:12px;margin-top:12px}
.atlas-r50-note,.atlas-r50-hint,.atlas-r50-support{font-size:.82rem;line-height:1.55;color:var(--muted)}
.atlas-r50-note{margin:0 0 4px}
.atlas-r50-game{border:1px solid var(--border);border-radius:15px;background:var(--panel);overflow:hidden}
.atlas-r50-game[open]{border-color:var(--accent)}
.atlas-r50-game>summary{list-style:none;cursor:pointer;padding:14px;display:flex;justify-content:space-between;align-items:start;gap:12px}
.atlas-r50-game>summary::-webkit-details-marker{display:none}
.atlas-r50-game>summary>b{transition:transform .15s ease}
.atlas-r50-game[open]>summary>b{transform:rotate(180deg)}
.atlas-r50-head{display:grid;gap:5px;min-width:0}.atlas-r50-head strong{font-size:.98rem;line-height:1.45;overflow-wrap:anywhere}
.atlas-r50-head small,.atlas-r50-head>span{font-size:.8rem;color:var(--muted);line-height:1.4}
.atlas-r50-body{padding:12px;border-top:1px solid var(--border)}
.atlas-r50-tabs{display:flex;gap:6px;overflow-x:auto;padding:3px 0 10px}
.atlas-r50-tab,.atlas-r50-line{flex:0 0 auto;min-height:42px;border:1px solid var(--border);border-radius:10px;background:var(--panel2);color:var(--text);padding:8px 11px;cursor:pointer;font:inherit;font-size:.82rem}
.atlas-r50-tab.is-selected,.atlas-r50-line.is-selected{background:#145bf2;border-color:#145bf2;color:#fff}
.atlas-r50-lines{display:flex;gap:7px;flex-wrap:wrap;padding:10px 0}
.atlas-r50-line-detail{display:grid;gap:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--panel2)}
.atlas-r50-line-detail>strong{font-size:.9rem}
.atlas-r50-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.atlas-r50-metrics>span{display:grid;gap:5px;padding:10px;border:1px solid var(--border);border-radius:10px;min-width:0}
.atlas-r50-metrics small{font-size:.73rem;color:var(--muted)}
.atlas-r50-metrics b{font-size:1rem;overflow-wrap:anywhere}
.atlas-r50-empty{padding:12px;border:1px dashed var(--border);border-radius:10px;color:var(--muted)}
.atlas-r50-game [hidden]{display:none!important}
body.atlas-theme-light .atlas-r50-game{background:#fff;color:#10213c;border-color:#b5c8e1}
body.atlas-theme-light .atlas-r50-line-detail{background:#f8fbff;border-color:#b5c8e1}
body.atlas-theme-light .atlas-r50-head :is(small,span),body.atlas-theme-light .atlas-r50-game :is(.atlas-r50-hint,.atlas-r50-support,.atlas-r50-metrics small){color:#42536b}
body.atlas-theme-light .atlas-r50-tab:not(.is-selected),body.atlas-theme-light .atlas-r50-line:not(.is-selected){background:#edf3fb;color:#10213c;border-color:#b5c8e1}
body.atlas-theme-light :is(.atlas-r50-tab,.atlas-r50-line).is-selected{background:#145bf2;color:#fff}
.atlas-r50-game>summary:focus-visible,.atlas-r50-tab:focus-visible,.atlas-r50-line:focus-visible{outline:3px solid #5590f4;outline-offset:2px}
@media(max-width:520px){.atlas-r50-game>summary{padding:12px}.atlas-r50-body{padding:10px}.atlas-r50-metrics{gap:5px}.atlas-r50-metrics>span{padding:8px}}

/* r50 header: novos atalhos com destaque e foco visível, sem suprimir anteriores. */
.atlas-hero-strip .atlas-pillar-link[data-atlas-pillar="triage"],
.atlas-hero-strip .atlas-pillar-link[data-atlas-pillar^="top-"] {
  border:1px solid #42634c;
  border-radius:999px;
  padding:6px 10px;
  background:#122d23;
  color:#fff;
  font-weight:650;
  white-space:normal;
  text-align:left;
}
.atlas-hero-strip .atlas-pillar-link[data-atlas-pillar^="top-"] {background:#163229;}
body.atlas-theme-light .atlas-hero-strip .atlas-pillar-link[data-atlas-pillar="triage"],
body.atlas-theme-light .atlas-hero-strip .atlas-pillar-link[data-atlas-pillar^="top-"] {
  background:#e9f3fc;
  border-color:#7999bf;
  color:#123253;
}
.atlas-hero-strip .atlas-pillar-link:focus-visible {outline:3px solid #209bfa;outline-offset:3px;}
@media (max-width:700px){
 .atlas-hero-strip{gap:6px;}
 .atlas-hero-strip .atlas-pillar-link[data-atlas-pillar="triage"],
 .atlas-hero-strip .atlas-pillar-link[data-atlas-pillar^="top-"] {font-size:.83rem;padding:7px 10px;}
}

/* Nao apresentar guia de instalacao quando a instalabilidade nao esta confirmada. */
#atlasInstallGuide[hidden]{display:none!important}
