/* R141 — HISTÓRICO ÚNICO CONSOLIDADO BLITZ
   ÚNICA folha responsável pelo histórico visual em todo o site, inclusive login gratuito.
   Estrutura preservada no formato planilha original: 20 casas por linha,
   duas casas para cada minuto 00–09.

   BLITZ:
   1–7  = quadrado AMARELO + círculo AMARELO + número PRETO
   8–14 = quadrado PRETO + círculo PRETO + número BRANCO
   0    = quadrado BRANCO puro + logo BLITZ centralizada, sem círculo e sem número
   Horários = faixa CINZA em todas as cores
*/
:root{
  --history-cell:58px;
  --history-grid-min:1160px;
  --history-gap:1px;
  --history-square:#0d1117;
  --history-square-border:#303640;
  --history-empty:#0b0f14;
  --history-header:#151a21;
  --history-header-border:#424a55;
  --history-time:#3b414a;
  --history-time-border:#4a515b;
  --history-time-text:#d7dce3;
  --history-blitz-yellow:#f7c843;
  --history-blitz-yellow-border:#ffe27a;
  --history-black:#050608;
  --history-black-border:#c8cdd4;
  --history-white:#ffffff;
  --history-white-border:#ffffff;
}

#history{
  width:100%!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-gutter:stable!important;
  overscroll-behavior-x:contain!important;
  touch-action:pan-x pan-y pinch-zoom!important;
  background:transparent!important;
}
#history :is(.historyGridWrap,.historyDateSection,.historyTowerRow,.historyMinuteRow,.historyGridRows,.historyGridRow){
  width:100%!important;
  max-width:100%!important;
  min-width:var(--history-grid-min)!important;
  box-sizing:border-box!important;
}
#history .historyGridWrap,#history .historyDateSection{overflow:visible!important;}
#history .historyDateSection{content-visibility:visible!important;contain:layout style!important;}
#history .historyDateTitle{
  min-width:var(--history-grid-min)!important;
  margin:8px 0 4px!important;
  padding:5px 8px!important;
  border:1px solid #2c323a!important;
  border-radius:0!important;
  background:#080b0f!important;
  color:#aeb5bf!important;
  font-size:11px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}

/* Cabeçalho 00–09 e resumo superior. */
#history .historyTowerRow,#history .historyMinuteRow{
  display:grid!important;
  grid-template-columns:repeat(10,minmax(0,1fr))!important;
  gap:var(--history-gap)!important;
}
#history .historyTowerMinute{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(var(--history-cell),1fr))!important;
  gap:var(--history-gap)!important;
  min-width:0!important;
  border:0!important;
}
#history .historyMinuteHead{
  min-height:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid var(--history-header-border)!important;
  border-radius:2px!important;
  background:var(--history-header)!important;
  color:#eef1f5!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
}
#history .historyTowerCell{
  height:52px!important;
  min-height:52px!important;
  display:grid!important;
  grid-template-rows:1fr 16px!important;
  overflow:hidden!important;
  border:1px solid var(--history-square-border)!important;
  border-radius:2px!important;
  background:var(--history-square)!important;
}
#history .historyTowerCell :is(b,small){
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin:0!important;
  border:0!important;
}
#history .historyTowerCell b{color:#e6e9ee!important;font-weight:900!important;}
#history .historyTowerCell small{background:var(--history-time)!important;color:var(--history-time-text)!important;font-size:9px!important;}

/* Planilha física: sempre 20 casas por linha. */
#history .historyGridRows{
  display:flex!important;
  flex-direction:column!important;
  gap:var(--history-gap)!important;
}
#history .historyGridRow{
  display:grid!important;
  grid-template-columns:repeat(20,minmax(var(--history-cell),1fr))!important;
  gap:var(--history-gap)!important;
  align-items:start!important;
  overflow-anchor:none!important;
  content-visibility:visible!important;
  contain:layout style!important;
  transform:none!important;
}
#history .historyCell{
  position:relative!important;
  display:grid!important;
  grid-template-rows:auto 17px!important;
  gap:1px!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
#history .historyChip,
#history .historyCell.futureEmpty .historyChip,
#history .historyCell.empty .historyChip{
  position:relative!important;
  inset:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  aspect-ratio:1 / 1!important;
  padding:0!important;
  margin:0!important;
  border:1px solid var(--history-square-border)!important;
  border-radius:2px!important;
  background:var(--history-square)!important;
  box-shadow:none!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

/* R138: quadrado usa a cor da pedra; amarelo/preto mantêm bolinha interna; branco usa somente logo. */
#history .historyBall{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  max-width:34px!important;
  max-height:34px!important;
  aspect-ratio:1 / 1!important;
  margin:0!important;
  padding:0!important;
  border:2px solid transparent!important;
  border-radius:50%!important;
  box-shadow:none!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:-.02em!important;
}

/* BLITZ 1–7: classe lógica 'red', apresentação amarela. */
body[data-page-source="blitz"] #history .historyChip.red,
body.sourceIsBlitz #history .historyChip.red,
#history .historyCell.red .historyChip.red{
  background:var(--history-blitz-yellow)!important;
  border-color:var(--history-blitz-yellow-border)!important;
}
body[data-page-source="blitz"] #history .historyBall.red,
body.sourceIsBlitz #history .historyBall.red,
#history .historyCell.red .historyBall.red{
  background:var(--history-blitz-yellow)!important;
  border-color:#111!important;
  color:#050505!important;
  -webkit-text-fill-color:#050505!important;
  text-shadow:none!important;
}
#history .historyChip.black{
  background:var(--history-black)!important;
  border-color:var(--history-black-border)!important;
}
#history .historyBall.black{
  background:var(--history-black)!important;
  border-color:#d9dde3!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
#history .historyChip.white{
  background:#fff!important;
  border-color:#fff!important;
  box-shadow:none!important;
}
#history .historyBall.white{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:1 1 auto!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}
#history .historyWhiteImg{
  display:block!important;
  width:27px!important;
  height:27px!important;
  min-width:27px!important;
  min-height:27px!important;
  max-width:27px!important;
  max-height:27px!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Casas vazias: quadrado escuro sem preenchimento de pedra. */
#history .historyCell.futureEmpty .historyChip,#history .historyCell.empty .historyChip{
  background:var(--history-empty)!important;
  border-color:#252b33!important;
}
#history .historyCell.futureEmpty .historyBall.empty,#history .historyBall.empty{
  background:transparent!important;
  border:0!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}
/* Seleção manual: amarelo/preto mantêm bolinha; branco usa apenas a logo. */
#history .historyCell.futureEmpty.historyEmptyPicked.red .historyChip{
  background:var(--history-blitz-yellow)!important;
  border-color:var(--history-blitz-yellow-border)!important;
}
#history .historyCell.futureEmpty.historyEmptyPicked.red .historyBall{background:var(--history-blitz-yellow)!important;border-color:#111!important;color:#050505!important;-webkit-text-fill-color:#050505!important;}
#history .historyCell.futureEmpty.historyEmptyPicked.black .historyChip{
  background:var(--history-black)!important;border-color:var(--history-black-border)!important;
}
#history .historyCell.futureEmpty.historyEmptyPicked.black .historyBall{background:var(--history-black)!important;border-color:#d9dde3!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
#history .historyCell.futureEmpty.historyEmptyPicked.white .historyChip{
  background:#fff!important;border-color:#fff!important;box-shadow:none!important;
}
#history .historyCell.futureEmpty.historyEmptyPicked.white .historyBall{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  border:0!important;border-radius:0!important;background:transparent!important;color:transparent!important;-webkit-text-fill-color:transparent!important;
}

/* TODOS OS HORÁRIOS: uma única faixa cinza, sem cor por resultado. */
#history .historyTime,
#history .historyTime.empty,
#history .historyTime.red,
#history .historyTime.green,
#history .historyTime.black,
#history .historyTime.white{
  position:relative!important;
  inset:auto!important;
  z-index:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:17px!important;
  min-height:17px!important;
  max-height:17px!important;
  margin:0!important;
  padding:0 2px!important;
  border:1px solid var(--history-time-border)!important;
  border-radius:1px!important;
  background:var(--history-time)!important;
  color:var(--history-time-text)!important;
  -webkit-text-fill-color:var(--history-time-text)!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:15px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

/* Marcadores de sinais/resultados sem alterar a identidade da pedra. */
body[data-page-section="lists"] #history .historyCell[data-history-marker]{position:relative!important;isolation:isolate!important;}
body[data-page-section="lists"] #history .historyCell[data-history-marker]::after{
  content:attr(data-history-marker)!important;
  position:absolute!important;
  left:3px!important;right:3px!important;top:3px!important;
  z-index:5!important;
  min-height:14px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:1px 3px!important;
  border-radius:3px!important;
  background:#d7dbe0!important;
  border:1px solid #f0f2f4!important;
  color:#080a0d!important;
  font:900 8px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;
  pointer-events:none!important;
}
body[data-page-section="lists"] #history .historyCell.dbHistorySignal .historyChip{outline:2px solid #f7c843!important;outline-offset:-2px!important;}
body[data-page-section="lists"] #history .historyCell.dbHistoryWin .historyChip{outline:2px solid #3ecf7a!important;outline-offset:-2px!important;}
body[data-page-section="lists"] #history .historyCell.dbHistoryLoss .historyChip{outline:2px solid #6f7782!important;outline-offset:-2px!important;}

#history .historyStoneSelected .historyChip{outline:2px solid #f7c843!important;outline-offset:-2px!important;}
#history .historyStoneDimmed{opacity:.30!important;}
#history .historyLoadSentinel{display:block!important;width:100%!important;height:1px!important;min-height:1px!important;overflow:hidden!important;contain:strict!important;pointer-events:none!important;}

@media(max-width:900px){
  :root{--history-cell:54px;--history-grid-min:1080px;}
  #history .historyCell{grid-template-rows:auto 16px!important;}
  #history .historyBall{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;font-size:14px!important;}
  #history .historyWhiteImg{width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;max-width:25px!important;max-height:25px!important;border-radius:0!important;}
  #history .historyTime,#history .historyTime.empty,#history .historyTime.red,#history .historyTime.green,#history .historyTime.black,#history .historyTime.white{height:16px!important;min-height:16px!important;max-height:16px!important;font-size:9px!important;}
}


/* Demais análises do histórico, centralizadas nesta mesma folha. */
/* Painel DB R20 — histórico consolidado com pintura leve e rolagem vertical livre. */
:root{
  --history-shared-min-cell:58px;
  --history-shared-min-grid:960px;
  --history-shared-frame:#fff;
}





























html.panel-preboot body{overflow:hidden!important;}html.panel-preboot body>.mainShell{visibility:hidden!important;}
html.panel-preboot body::before{content:"Carregando painel...";position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:#070b10;color:#dfe7f2;font:700 14px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.04em;}
html:not(.panel-preboot) body>.mainShell{visibility:visible!important;}
@media(max-width:900px){
  :root{--history-shared-min-cell:50px;--history-shared-min-grid:820px;}
  
  
  
}

/* R20 — o DOM já é carregado em lotes pequenos; content-visibility/paint containment
   causavam picos de layout exatamente quando o usuário alcançava o histórico. */





/* R12 Anti-Freeze — marcadores exclusivos do histórico nas páginas de listas. */



/* R25 — o próximo sinal já colore a casa vazia com a própria cor da entrada. */












/* R38 — padrão histórico de chuva de brancos dentro de Cores por hora. */
.historyRainBlock{margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.10)}
.historyRainHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.historyRainHead>div{display:flex;flex-direction:column;gap:2px}.historyRainHead small{color:#9ca7b8}.historyRainHead>span{padding:4px 8px;border:1px solid rgba(255,255,255,.13);border-radius:999px;font-size:11px;color:#e8edf5}
.historyRainFilters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:end;margin-bottom:10px}
.historyRainFilters label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#aeb8c8}.historyRainFilters select,.historyRainFilters input,.historyRainFilters button{width:100%;min-height:34px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:#06080c;color:#f4f7fb;padding:6px 8px}.historyRainFilters button{font-weight:800;background:#151b24}
.historyRainResult{min-height:48px}.historyRainRecommendation{padding:10px 12px;border:1px solid rgba(255,255,255,.15);border-radius:10px;background:rgba(255,255,255,.035);margin-bottom:8px}.historyRainRecommendation>div{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center}.historyRainRecommendation span{font-size:11px;color:#aeb8c8}.historyRainRecommendation b{font-size:18px}.historyRainRecommendation small{grid-column:1/-1;color:#9ca7b8}
.historyRainCandidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.historyRainCandidate{display:grid;grid-template-columns:auto auto;gap:2px 8px;padding:8px 9px;border:1px solid rgba(255,255,255,.09);border-radius:9px;background:#080b10}.historyRainCandidate.best{border-color:rgba(255,255,255,.30)}.historyRainCandidate span{font-size:10px;color:#9ca7b8;text-transform:uppercase}.historyRainCandidate b{font-size:14px}.historyRainCandidate strong{grid-column:2;grid-row:1/3;align-self:center;justify-self:end}.historyRainCandidate small{grid-column:1/-1;color:#9ca7b8}.historyRainEmpty{display:flex;flex-direction:column;gap:3px;padding:9px;border:1px dashed rgba(255,255,255,.12);border-radius:9px}.historyRainEmpty small,.historyRainError{color:#9ca7b8}
@media(max-width:900px){.historyRainFilters{grid-template-columns:repeat(2,minmax(0,1fr))}.historyRainCandidates{grid-template-columns:1fr}}

/* R39 — estado do snapshot persistente de chuva */
.historyRainSnapshot{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:6px 8px;margin:7px 0;border:1px solid rgba(255,255,255,.10);background:#080b0f}.historyRainSnapshot span{font-weight:700}.historyRainSnapshot small{color:#8f9aaa}@media(max-width:700px){.historyRainSnapshot{align-items:flex-start;flex-direction:column}}

/* R44 — indicação automática + histórico persistente dos padrões de chuva */
.historyRainTwoBlocks{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.historyRainSide{border:1px solid rgba(255,255,255,.12);border-radius:10px;background:#070a0f;padding:10px;min-width:0}
.historyRainSide>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid rgba(255,255,255,.08)}
.historyRainSide>header span{font-size:11px;color:#9ca7b8}.historyRainCurrent{display:flex;flex-direction:column;gap:7px}.historyRainCurrentTop{display:flex;align-items:center;justify-content:space-between;gap:8px}.historyRainCurrentTop span{font-size:10px;letter-spacing:.08em;color:#9ca7b8}.historyRainCurrentTop em{font-style:normal;font-size:11px;color:#d8dee8}.historyRainCurrent>b{font-size:28px;line-height:1}.historyRainCurrent>strong{font-size:16px}.historyRainCurrent>small{color:#9ca7b8}.historyRainLiveStatus{padding:8px;border:1px solid rgba(255,255,255,.10);border-radius:8px;font-size:12px;font-weight:800}.historyRainLiveStatus.green{border-color:rgba(71,214,126,.45)}.historyRainLiveStatus.pending{color:#c7cfda}
.historyRainHistoryList{display:flex;flex-direction:column;gap:6px}.historyRainHistoryItem{display:grid;grid-template-columns:1fr auto;gap:2px 8px;align-items:center;padding:7px 8px;border:1px solid rgba(255,255,255,.08);border-radius:8px;background:#090d13}.historyRainHistoryItem>div{display:flex;gap:7px;align-items:baseline}.historyRainHistoryItem small{color:#8f9aaa}.historyRainHistoryItem strong{font-size:12px}.historyRainHistoryItem span{grid-column:1/-1;font-size:11px;color:#9ca7b8}.historyRainHistoryItem.green{border-color:rgba(71,214,126,.24)}.historyRainHistoryItem.red{border-color:rgba(255,74,105,.24)}
@media(max-width:900px){.historyRainTwoBlocks{grid-template-columns:1fr}}

/* R112 • Padrão de Chuva em dropdown + histórico completo com rolagem */
.historyRainDropdown{display:block;overflow:hidden;border-top:1px solid rgba(255,255,255,.10);padding-top:0;margin-top:14px}
.historyRainDropdown>.historyRainHead{list-style:none;cursor:pointer;margin:0;padding:12px 0 10px;user-select:none}
.historyRainDropdown>.historyRainHead::-webkit-details-marker{display:none}
.historyRainDropdown>.historyRainHead>span{display:inline-flex;align-items:center;gap:6px}
.historyRainDropdown>.historyRainHead>span:after{content:"▾";color:#a78bfa;transition:transform .16s ease}
.historyRainDropdown[open]>.historyRainHead>span:after{transform:rotate(180deg)}
.historyRainBody{min-width:0;max-width:100%;overflow:hidden}
.historyRainHistoryList{max-height:420px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable both-edges;padding-right:3px}
.historyRainHistoryItem{content-visibility:auto;contain-intrinsic-size:58px}
.historyRainSide{min-width:0;overflow:hidden}
@media(max-width:700px){.historyRainHistoryList{max-height:340px}}

/* R114 — padrão PLANILHA restaurado somente nos conteúdos analíticos acima do Histórico.
   Escopo deliberadamente restrito a #historyInsights/.v43HistoryInsights para não alterar
   o renderer físico das pedras nem os demais cartões do site. */
.historyDock .v43HistoryInsights,
#historyInsights.v43HistoryInsights{
  display:block!important;
  width:100%;
  min-width:0;
  margin:8px 0 10px!important;
  --history-sheet-bg:#030303;
  --history-sheet-bg2:#070707;
  --history-sheet-line:#252525;
  --history-sheet-line-soft:#181818;
  --history-sheet-text:#f2f2f2;
  --history-sheet-muted:#969696;
}

/* Cabeçalho/resumo no formato de linha de planilha. */
.v43HistoryInsights .historyAnalyticsHeader{
  display:flex;
  align-items:center;
  justify-content:center!important;
  flex-direction:column;
  gap:7px;
  padding:7px 8px;
  border:1px solid var(--history-sheet-line)!important;
  border-radius:0!important;
  background:var(--history-sheet-bg)!important;
  box-shadow:none!important;
  text-align:center!important;
}
.v43HistoryInsights .historyAnalyticsHeader>div:first-child{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
  text-align:center!important;
}
.v43HistoryInsights .historyAnalyticsHeader>div:first-child>b{
  font-size:.78rem;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.v43HistoryInsights .historyAnalyticsTotals{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  border:1px solid var(--history-sheet-line-soft);
  background:var(--history-sheet-line-soft);
}
.v43HistoryInsights .historyAnalyticsTotals span{
  min-width:0;
  padding:5px 6px;
  border:0!important;
  border-radius:0!important;
  background:var(--history-sheet-bg2)!important;
  color:#b7b7b7;
  font-size:.69rem;
  white-space:nowrap;
  text-align:center;
}
.v43HistoryInsights .historyAnalyticsTotals span b{color:#fff;font-size:.77rem}

/* Blocos principais: quadrados, compactos e separados por linhas finas. */
.v43HistoryInsights .historyAnalyticsGrid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);
  gap:7px;
  margin-top:7px;
}
.v43HistoryInsights .historyAnalyticsCard{
  min-width:0;
  padding:7px!important;
  border:1px solid var(--history-sheet-line)!important;
  border-radius:0!important;
  background:var(--history-sheet-bg)!important;
  box-shadow:none!important;
  text-align:center!important;
}
.v43HistoryInsights .historyAnalyticsCard>header{
  display:flex;
  align-items:center;
  justify-content:center!important;
  min-height:27px;
  margin:0 0 6px;
  padding:0 5px 6px;
  border-bottom:1px solid var(--history-sheet-line)!important;
  background:transparent!important;
  text-align:center!important;
}
.v43HistoryInsights .historyAnalyticsCard>header>div{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center!important;
  gap:2px;
}
.v43HistoryInsights .historyAnalyticsCard>header b{
  font-size:.74rem;
  letter-spacing:.035em;
  text-transform:uppercase;
}
.v43HistoryInsights .historyAnalyticsHeader small,
.v43HistoryInsights .historyAnalyticsCard header small,
.v43HistoryInsights .historyMuted{color:var(--history-sheet-muted)!important;font-size:.66rem}

/* CORES POR HORA — tabela Excel/planilha. */
.v43HistoryInsights .historyHourlyPair{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.v43HistoryInsights .historyHourlyTableWrap{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--history-sheet-line)!important;
  border-radius:0!important;
  background:#020202!important;
}
.v43HistoryInsights .historyHourlyTableTitle{
  padding:5px 6px;
  border-bottom:1px solid var(--history-sheet-line)!important;
  background:#080808!important;
  color:#e5e5e5!important;
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.025em;
  text-align:center!important;
}
.v43HistoryInsights .historyHourlyTable{
  width:100%;
  border-collapse:collapse!important;
  border-spacing:0!important;
  table-layout:fixed;
  font-size:.68rem;
}
.v43HistoryInsights .historyHourlyTable th,
.v43HistoryInsights .historyHourlyTable td{
  height:25px;
  padding:3px 2px!important;
  border-right:1px solid var(--history-sheet-line-soft)!important;
  border-bottom:1px solid var(--history-sheet-line-soft)!important;
  background:#050505;
  text-align:center!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.v43HistoryInsights .historyHourlyTable tr>*:last-child{border-right:0!important}
.v43HistoryInsights .historyHourlyTable tbody tr:last-child>*{border-bottom:0!important}
.v43HistoryInsights .historyHourlyTable thead th{
  position:sticky;
  top:0;
  z-index:1;
  background:#0b0b0b!important;
  color:#a8a8a8!important;
  font-size:.61rem;
  font-weight:900;
  text-transform:uppercase;
}
.v43HistoryInsights .historyHourlyTable tbody th{background:#070707!important;color:#f1f1f1!important;font-weight:900}
.v43HistoryInsights .historyHourlyTable .hourMain{background:rgba(176,24,48,.34)!important;color:#fff!important;font-weight:900}

.v43HistoryInsights .historyHourlyTable .hourBlack{background:#000!important;color:#fff!important;font-weight:900}
.v43HistoryInsights .historyHourlyTable .hourWhite{background:#e7e7e7!important;color:#080808!important;font-weight:950}

/* Brancos/sequências e estatísticas: células retas de planilha. */
.v43HistoryInsights .historyEventGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  border:1px solid var(--history-sheet-line-soft);
  background:var(--history-sheet-line-soft);
}
.v43HistoryInsights .historyEventMetric{
  min-width:0;
  min-height:56px;
  padding:6px!important;
  display:grid;
  grid-template-columns:1fr!important;
  align-content:center;
  justify-items:center!important;
  gap:2px;
  border:0!important;
  border-radius:0!important;
  background:#060606!important;
  text-align:center!important;
}
.v43HistoryInsights .historyEventMetric span{color:#a7a7a7!important;font-size:.65rem}
.v43HistoryInsights .historyEventMetric b{color:#fff!important;font-size:.88rem;white-space:nowrap}
.v43HistoryInsights .historyEventMetric small{grid-column:1!important;color:#7f7f7f!important;font-size:.59rem}

.v43HistoryInsights .historyBeforeWhiteBlock,
.v43HistoryInsights .historyWhiteTriggerBlock{
  margin-top:6px;
  padding-top:6px;
  border-top:1px solid var(--history-sheet-line)!important;
  text-align:center!important;
}
.v43HistoryInsights .historyBeforeWhiteBlock>strong,
.v43HistoryInsights .historyWhiteTriggerBlock>strong{
  display:block;
  margin-bottom:5px;
  color:#dedede;
  font-size:.67rem;
}
.v43HistoryInsights .historyBeforeWhiteBlock>div{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:1px;
  padding:1px;
  background:var(--history-sheet-line-soft);
}
.v43HistoryInsights .beforeWhiteStone{
  min-width:0;
  min-height:31px;
  display:flex;
  align-items:center;
  justify-content:center!important;
  gap:4px;
  padding:4px 5px!important;
  border:0!important;
  border-radius:0!important;
  background:#070707!important;
  color:#fff!important;
  font-size:.63rem;
  font-weight:800;
  text-align:center!important;
}
.v43HistoryInsights .beforeWhiteStone b{font-size:.75rem;color:inherit!important}

.v43HistoryInsights .historyWhiteTriggerGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  padding:1px;
  background:var(--history-sheet-line-soft);
}
.v43HistoryInsights .historyWhiteTriggerCard{
  min-width:0;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:2px 5px;
  padding:5px 6px!important;
  border:0!important;
  border-radius:0!important;
  background:#070707!important;
  text-align:center!important;
}
.v43HistoryInsights .historyWhiteTriggerCard span{color:#a0a0a0!important;font-size:.59rem}
.v43HistoryInsights .historyWhiteTriggerCard>b{font-size:.96rem;color:inherit!important}
.v43HistoryInsights .historyWhiteTriggerCard>strong{justify-self:end;color:#ffe48b!important;font-size:.69rem}
.v43HistoryInsights .historyWhiteTriggerCard>small{grid-column:1/-1;width:100%;color:#8a8a8a!important;font-size:.57rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center!important}

/* Cores DB nas células de pedra, preservando o aspecto de planilha. */
.v43HistoryInsights :is(.beforeWhiteStone,.historyWhiteTriggerCard).stone-red{background:var(--history-blitz-yellow)!important;color:#050505!important;-webkit-text-fill-color:#050505!important}
.v43HistoryInsights :is(.beforeWhiteStone,.historyWhiteTriggerCard).stone-green{background:#0b7f45!important;color:#fff!important}
.v43HistoryInsights :is(.beforeWhiteStone,.historyWhiteTriggerCard).stone-black{background:#000!important;color:#fff!important;box-shadow:inset 0 0 0 1px #555!important}
.v43HistoryInsights :is(.beforeWhiteStone,.historyWhiteTriggerCard).stone-neutral{background:#080808!important;color:#fff!important}
.v43HistoryInsights .historyWhiteTriggerCard :is(span,b,strong,small),
.v43HistoryInsights .beforeWhiteStone b{color:inherit!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}

/* PADRÃO DE CHUVA — mesma linguagem de planilha, sem cards arredondados. */
.v43HistoryInsights .historyRainBlock,
.v43HistoryInsights .historyRainDropdown{
  margin-top:7px!important;
  padding-top:0!important;
  border:1px solid var(--history-sheet-line)!important;
  border-radius:0!important;
  background:#020202!important;
  overflow:hidden;
}
.v43HistoryInsights .historyRainDropdown>.historyRainHead{
  min-height:34px;
  margin:0!important;
  padding:6px 7px!important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border-bottom:0;
  border-radius:0!important;
  background:#080808!important;
  text-align:left;
}
.v43HistoryInsights .historyRainDropdown[open]>.historyRainHead{border-bottom:1px solid var(--history-sheet-line)!important}
.v43HistoryInsights .historyRainHead>div{gap:1px}
.v43HistoryInsights .historyRainHead strong{font-size:.69rem;text-transform:uppercase;letter-spacing:.025em}
.v43HistoryInsights .historyRainHead small{color:#8d8d8d!important;font-size:.59rem}
.v43HistoryInsights .historyRainHead>span{
  padding:3px 5px!important;
  border:1px solid #303030!important;
  border-radius:0!important;
  background:#030303!important;
  color:#d7d7d7!important;
  font-size:.57rem!important;
  font-weight:800;
}
.v43HistoryInsights .historyRainBody{padding:6px!important;background:#020202!important}
.v43HistoryInsights .historyRainResult{min-height:40px}
.v43HistoryInsights .historyRainSnapshot{
  display:grid;
  grid-template-columns:1fr auto;
  gap:1px;
  align-items:center;
  margin:0 0 6px!important;
  padding:1px!important;
  border:1px solid var(--history-sheet-line-soft)!important;
  border-radius:0!important;
  background:var(--history-sheet-line-soft)!important;
}
.v43HistoryInsights .historyRainSnapshot>span,
.v43HistoryInsights .historyRainSnapshot>small{
  min-height:27px;
  display:flex;
  align-items:center;
  padding:4px 6px;
  background:#070707;
}
.v43HistoryInsights .historyRainSnapshot>span{font-size:.63rem;font-weight:800}
.v43HistoryInsights .historyRainSnapshot>small{color:#8b8b8b!important;font-size:.58rem;justify-content:flex-end}
.v43HistoryInsights .historyRainTwoBlocks{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.v43HistoryInsights .historyRainSide{
  min-width:0;
  padding:0!important;
  overflow:hidden;
  border:1px solid var(--history-sheet-line)!important;
  border-radius:0!important;
  background:#020202!important;
}
.v43HistoryInsights .historyRainSide>header{
  min-height:30px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:6px;
  margin:0!important;
  padding:5px 6px!important;
  border-bottom:1px solid var(--history-sheet-line)!important;
  background:#080808!important;
  text-align:left;
}
.v43HistoryInsights .historyRainSide>header b{font-size:.66rem;text-transform:uppercase}
.v43HistoryInsights .historyRainSide>header span{font-size:.58rem;color:#929292!important}
.v43HistoryInsights .historyRainCurrent,
.v43HistoryInsights .historyRainEmpty{padding:7px!important;border:0!important;border-radius:0!important;background:#030303!important}
.v43HistoryInsights .historyRainCurrent{gap:5px}
.v43HistoryInsights .historyRainCurrentTop{gap:6px}
.v43HistoryInsights .historyRainCurrentTop span{font-size:.57rem;color:#8d8d8d!important}
.v43HistoryInsights .historyRainCurrentTop em{font-size:.61rem;color:#ddd!important}
.v43HistoryInsights .historyRainCurrent>b{font-size:22px;line-height:1;color:#fff}
.v43HistoryInsights .historyRainCurrent>strong{font-size:.82rem}
.v43HistoryInsights .historyRainCurrent>small,
.v43HistoryInsights .historyRainEmpty small{color:#898989!important;font-size:.59rem}
.v43HistoryInsights .historyRainLiveStatus{
  padding:5px!important;
  border:1px solid #2a2a2a!important;
  border-radius:0!important;
  background:#070707!important;
  font-size:.61rem;
}
.v43HistoryInsights .historyRainLiveStatus.green{background:rgba(7,94,48,.38)!important;border-color:#176d44!important;color:#d8ffea!important}
.v43HistoryInsights .historyRainHistoryList{
  max-height:420px;
  display:block!important;
  overflow:auto;
  padding:0!important;
  border:0!important;
  background:#020202!important;
  scrollbar-gutter:stable;
}
.v43HistoryInsights .historyRainHistoryItem{
  min-height:40px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2px 7px;
  align-items:center;
  padding:5px 6px!important;
  border:0!important;
  border-bottom:1px solid var(--history-sheet-line-soft)!important;
  border-radius:0!important;
  background:#050505!important;
}
.v43HistoryInsights .historyRainHistoryItem:last-child{border-bottom:0!important}
.v43HistoryInsights .historyRainHistoryItem>div{display:flex;gap:6px;align-items:baseline;min-width:0}
.v43HistoryInsights .historyRainHistoryItem b{font-size:.66rem}
.v43HistoryInsights .historyRainHistoryItem small{font-size:.57rem;color:#858585!important}
.v43HistoryInsights .historyRainHistoryItem strong{font-size:.61rem}
.v43HistoryInsights .historyRainHistoryItem>span{grid-column:1/-1;color:#929292!important;font-size:.57rem}
.v43HistoryInsights .historyRainHistoryItem.green{box-shadow:inset 3px 0 0 #16834d!important}
.v43HistoryInsights .historyRainHistoryItem.red{box-shadow:inset 3px 0 0 #b4243d!important}
.v43HistoryInsights .historyRainError{display:block;padding:6px;color:#ff7b8f!important;font-size:.61rem}
.v43HistoryInsights .historyAnalyticsEmpty{
  padding:9px!important;
  border:1px solid var(--history-sheet-line)!important;
  border-radius:0!important;
  background:#030303!important;
  color:#929292!important;
  text-align:center;
}

@media(max-width:1180px){
  .v43HistoryInsights .historyAnalyticsGrid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .v43HistoryInsights .historyAnalyticsTotals{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v43HistoryInsights .historyHourlyPair,
  .v43HistoryInsights .historyRainTwoBlocks{grid-template-columns:1fr}
  .v43HistoryInsights .historyBeforeWhiteBlock>div{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:520px){
  .v43HistoryInsights .historyEventGrid{grid-template-columns:1fr}
  .v43HistoryInsights .historyWhiteTriggerGrid{grid-template-columns:1fr}
  .v43HistoryInsights .historyBeforeWhiteBlock>div{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v43HistoryInsights .historyRainSnapshot{grid-template-columns:1fr}
  .v43HistoryInsights .historyRainSnapshot>small{justify-content:flex-start}
}

/* R115 — Cores por hora segue o dia ativo do Histórico; o rótulo não altera o padrão planilha. */
.v43HistoryInsights .historyHourlyDayLabel{display:block;margin-top:2px;color:#8f99a8;font-size:10px;font-weight:700;letter-spacing:.02em;text-transform:none;}


/* R127 — MOBILE/TABLET PLANILHA HORIZONTAL
   Em telas <= 1024px os dados tabulares deixam de encolher. A largura lógica
   fica preservada e o usuário navega lateralmente sem deformar as colunas. */
@media(max-width:1024px){
  :root{
    --history-shared-min-cell:56px;
    --history-shared-min-grid:1140px;
  }
  .historyDock{
    min-width:0!important;
  }
  
  
  
  
  
  

  /* Conteúdos analíticos acima do histórico mantêm o layout planilha desktop. */
  #historyInsights.v43HistoryInsights>.historyAnalyticsHeader,
  #historyInsights.v43HistoryInsights>.historyAnalyticsGrid{
    width:920px!important;
    min-width:920px!important;
    max-width:none!important;
  }
  .v43HistoryInsights .historyAnalyticsGrid{
    grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr)!important;
  }
  .v43HistoryInsights .historyAnalyticsTotals{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  .v43HistoryInsights .historyHourlyPair,
  .v43HistoryInsights .historyRainTwoBlocks{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .v43HistoryInsights .historyEventGrid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .v43HistoryInsights .historyBeforeWhiteBlock>div{
    grid-template-columns:repeat(7,minmax(72px,1fr))!important;
  }
  .v43HistoryInsights .historyWhiteTriggerGrid{
    grid-template-columns:repeat(3,minmax(180px,1fr))!important;
  }
  .v43HistoryInsights .historyRainSnapshot{
    grid-template-columns:1fr auto!important;
  }

  /* Cores por hora: tabela nunca comprime colunas; coluna HORA fica visível. */
  .v43HistoryInsights .historyHourlyTableWrap{
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:thin;
  }
  .v43HistoryInsights .historyHourlyTable{
    width:100%!important;
    min-width:520px!important;
    table-layout:fixed!important;
  }
  .v43HistoryInsights .historyHourlyTable thead th:first-child,
  .v43HistoryInsights .historyHourlyTable tbody th{
    position:sticky!important;
    left:0!important;
    z-index:3!important;
    box-shadow:1px 0 0 var(--history-sheet-line)!important;
  }
  .v43HistoryInsights .historyHourlyTable thead th:first-child{
    z-index:4!important;
    background:#0b0b0b!important;
  }
  .v43HistoryInsights .historyHourlyTable tbody th{
    background:#070707!important;
  }
}

@media(max-width:600px){
  :root{
    --history-shared-min-cell:56px;
    --history-shared-min-grid:1140px;
  }
  #historyInsights.v43HistoryInsights>.historyAnalyticsHeader,
  #historyInsights.v43HistoryInsights>.historyAnalyticsGrid{
    width:900px!important;
    min-width:900px!important;
  }
  
  
}



/* R140 — histórico gratuito abaixo do token. */
body.authBody.historyFreeAuth{display:block!important;min-height:100vh!important;overflow-x:hidden!important;overflow-y:auto!important;padding:24px 16px 48px!important;}
body.authBody.historyFreeAuth .authWrap{width:min(520px,100%)!important;margin:0 auto 24px!important;}
body.authBody.historyFreeAuth .freeHistoryShell{width:min(1600px,100%)!important;margin:0 auto!important;}
body.authBody.historyFreeAuth .historyDock{width:100%!important;max-width:100%!important;padding:14px!important;border:1px solid #20262f!important;border-radius:16px!important;background:#05070a!important;box-shadow:none!important;}
body.authBody.historyFreeAuth .historyFreeIntro{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important;margin-bottom:10px!important;padding:10px 12px!important;background:#090d12!important;border:1px solid #242b34!important;}
body.authBody.historyFreeAuth .historyFreeIntro b{color:#f7c843!important;}
body.authBody.historyFreeAuth .historyFreeIntro small{color:#9da6b1!important;}
body.authBody.historyFreeAuth #history{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important;}
body.authBody.historyFreeAuth .v43HistoryInsights{max-height:none!important;overflow:visible!important;}
