/* DarkTask — Hoje e Notícias (template 09/2026)
 *
 * Medidas de DarkTask v2.dc.html (tela Hoje) e NoticiasPanel.dc.html (página
 * Notícias e leitura). Bandas de 49, 56, 72 e 98px, moldura de 25px, coluna da
 * direita de 400px (260px entre 880 e 1179). As cores vêm do tema: no Claro
 * batem 1:1 com o protótipo; o Escuro troca só o valor.
 *
 * O prefixo #dc-root existe para vencer as receitas antigas de floating-shell.css
 * e app-polish.css, que ainda estilizam botão, campo e título de forma global.
 * Carrega antes de casca.css.
 */

/* --- tons do metal e das fotos, por tema --------------------------------- */
.dtf {
  --dth-metal-a: #e8e8e8;
  --dth-metal-b: #dedede;
  --dth-metal-c: #cfcfcf;
  --dth-brilho: #ffffff;
  --dth-tom: #dcdcdc;
  --dth-tenue: var(--text-3);
}
[data-dt-theme="dark"] .dtf,
[data-dt-theme="dark"] #dtf-leitura-overlay {
  --dth-metal-a: #121212;
  --dth-metal-b: #181818;
  --dth-metal-c: #232323;
  --dth-brilho: #0d0d0d;
  --dth-tom: #1f1f1f;
}

/* A Hoje encosta nas bordas da área de conteúdo: a moldura é dela. */
html body #dc-root[data-dt-tela="hoje"] #dt-conteudo,
html[data-dt-tela="hoje"] #dt-conteudo {
  max-width: none !important;
  padding: 0 !important;
}
/* A altura desce por flex, não por porcentagem: o contêiner só tem altura
   mínima, e min-height em % de um pai de altura automática não vale nada. Com
   flex, a tela ocupa o que sobra entre o cabeçalho e a linha do tempo. */
#dc-root .dtf { animation: none; min-height: 100%; display: flex; flex-direction: column; }

#dc-root .dth,
#dc-root .dtn {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

/* =========================================================================
   TOPO — saudação (245px) e Clima (400px)
   ========================================================================= */
#dc-root .dth-topo { display: grid; grid-template-columns: minmax(0, 1fr); flex: none; }
@media (min-width: 1180px) {
  #dc-root .dth-topo { grid-template-columns: minmax(0, 1fr) 400px; }
  #dc-root .dth-hero { border-right: 1px solid var(--line); }
}

#dc-root .dth-hero {
  position: relative;
  z-index: 1;
  height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
#dc-root .dth-hero-fundo {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dth-metal-a) 0%, var(--dth-metal-b) 55%, var(--dth-metal-c) 100%);
}
#dc-root .dth-hero-brilho {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    var(--bg) 0%, var(--bg) 32%,
    color-mix(in srgb, var(--dth-brilho) 85%, transparent) 46%,
    color-mix(in srgb, var(--dth-brilho) 20%, transparent) 64%,
    transparent 78%);
}
#dc-root .dth-hero-marca {
  position: absolute; right: 40px; top: 36px;
  text-align: right;
  font: 700 11px/1.95 var(--font-ui);
  letter-spacing: 2.6px;
  color: var(--text);
  pointer-events: none;
}
#dc-root .dth-hero-copy {
  position: relative;
  padding: 24px 20px 0;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 660px;
  pointer-events: none;
}
#dc-root .dth-hero-data {
  font: 700 10.5px/1 var(--font-ui);
  letter-spacing: 2.4px;
  color: var(--dth-tenue);
}
html body #dc-root .dth-hero-titulo {
  margin: 0 !important;
  font: 300 50px/1.02 var(--font-ui) !important;
  letter-spacing: -1.8px !important;
  color: var(--text) !important;
}
/* O nome cai na linha de baixo (17/09): na largura média ele crescia até
   atropelar a frase da marca, no canto direito do herói. Agora "Boa noite," e o
   nome ficam em linhas próprias, e o herói respira do mesmo jeito em qualquer
   largura. */
/* O nome nunca é cortado nem quebrado no meio (17/09): "Filipecon / cheto"
   era o overflow-wrap:anywhere. Ele fica numa linha só, 30% menor que a
   saudação, e só encolhe além disso se não couber: o teto é a largura livre
   dividida pelo número de letras (--letras vem do feed.js) vezes a largura
   média de uma letra. A saudação continua no tamanho dela. A reserva de 180px
   é o espaço da frase da marca, que só aparece a partir de 1024px. */
html body #dc-root .dth-hero-copy { container-type: inline-size; }
html body #dc-root .dth-hero-titulo span {
  display: block; font-weight: 400 !important; color: var(--text);
  max-width: none; white-space: nowrap; overflow-wrap: normal;
  font-size: min(0.7em, calc((100cqw - var(--dth-reserva, 180px)) / (var(--letras, 8) * 0.62))) !important;
  letter-spacing: -.02em !important;
}
@media (max-width: 1023px) {
  html body #dc-root .dth-hero-copy { --dth-reserva: 0px; }
}

#dc-root .dth-add {
  position: relative;
  display: flex; align-items: stretch;
  height: 49px; flex: none;
  margin: 0; padding: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
html body #dc-root .dth-add-mais {
  width: 56px; min-width: 56px; height: auto; flex: none;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0 !important;
  border: 0 !important; border-right: 1px solid var(--line) !important; border-radius: 0 !important;
  background: transparent !important; color: var(--text-2) !important; box-shadow: none !important;
  cursor: pointer;
}
html body #dc-root .dth-add-mais:hover { background: var(--surface-2) !important; }
html body #dc-root .dth-add input {
  flex: 1; min-width: 0; height: auto; min-height: 0;
  margin: 0; padding: 0 20px !important;
  border: 0 !important; border-radius: 0 !important; outline: none !important; box-shadow: none !important;
  background: transparent !important; color: var(--text) !important;
  font: 400 14.5px/1 var(--font-ui) !important;
}
#dc-root .dth-add input::placeholder { color: var(--text-3); }
html body #dc-root .dth-add-ir {
  flex: none; height: auto; min-height: 0;
  margin: 0; padding: 0 34px !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: var(--text) !important; color: var(--bg) !important;
  font: 600 13.5px/1 var(--font-ui) !important; letter-spacing: .3px;
  cursor: pointer;
}
html body #dc-root .dth-add-ir:hover { background: color-mix(in srgb, var(--text) 86%, var(--bg)) !important; }
html body #dc-root .dth-add-ir:disabled {
  background: var(--line) !important; color: var(--text-3) !important;
  cursor: default; pointer-events: none; opacity: 1 !important;
}

/* --- Clima ---------------------------------------------------------------- */
#dc-root .dth-clima {
  height: 245px;
  display: flex; flex-direction: column;
  min-width: 0; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
html body #dc-root .dth-clima-cabeca {
  width: 100%; height: 49px; min-height: 0; flex: none;
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 0 20px !important;
  border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important;
  background: var(--bg) !important; box-shadow: none !important;
  color: var(--dth-tenue) !important; text-align: left; cursor: pointer;
}
#dc-root .dth-clima-cabeca > span { flex: 1; min-width: 0; font: 700 14px/1 var(--font-ui); color: var(--text); }
#dc-root .dth-clima-seta {
  display: inline-flex; font-style: normal;
  transform: rotate(180deg);
  transition: transform 160ms cubic-bezier(.22, .61, .36, 1);
}
#dc-root .dth-clima-corpo { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#dc-root .dth-clima-agora { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#dc-root .dth-clima-previsao { display: none; flex: 1; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Face da previsão: ao passar o mouse no painel ou tocando no cabeçalho. */
@media (hover: hover) {
  #dc-root .dth-clima:hover:has(.dth-clima-previsao) .dth-clima-agora { display: none; }
  #dc-root .dth-clima:hover .dth-clima-previsao { display: grid; }
  #dc-root .dth-clima:hover:has(.dth-clima-previsao) .dth-clima-seta { transform: none; }
  html body #dc-root .dth-clima:hover .dth-clima-cabeca { background: var(--surface-2) !important; }
}
#dc-root .dth-clima.is-previsao:has(.dth-clima-previsao) .dth-clima-agora { display: none; }
#dc-root .dth-clima.is-previsao .dth-clima-previsao { display: grid; }
#dc-root .dth-clima.is-previsao .dth-clima-seta { transform: none; }

#dc-root .dth-clima-leitura {
  height: 98px; flex: none;
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
#dc-root .dth-clima-temp { display: flex; flex-direction: column; gap: 6px; }
#dc-root .dth-clima-temp strong { font: 300 34px/1 var(--font-ui); letter-spacing: -1.4px; color: var(--text); }
#dc-root .dth-clima-temp span { font: 400 12.5px/1 var(--font-ui); color: var(--dth-tenue); }
#dc-root .dth-vao { flex: 1; }
#dc-root .dth-clima-extremos {
  display: flex; flex-direction: column; gap: 9px;
  text-align: right;
  font: 400 12px/1 var(--font-ui); color: var(--dth-tenue);
}
#dc-root .dth-clima-extremos b { font-size: 14px; font-weight: 700; color: var(--text); }

#dc-root .dth-clima-metricas {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 49px; flex: none;
  border-bottom: 1px solid var(--line);
}
#dc-root .dth-metrica {
  display: flex; align-items: center; gap: 10px;
  min-width: 0; padding: 0 20px;
  color: var(--dth-tenue);
}
#dc-root .dth-metrica + .dth-metrica { border-left: 1px solid var(--line); }
#dc-root .dth-metrica svg { flex: none; }
#dc-root .dth-metrica > span { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#dc-root .dth-metrica small { font: 400 10px/1 var(--font-ui); letter-spacing: .4px; color: var(--text-3); }
#dc-root .dth-metrica b { font: 700 12.5px/1.2 var(--font-ui); color: var(--text); overflow-wrap: anywhere; }
@media (min-width: 1180px) and (max-width: 1439px) {
  #dc-root .dth-metrica { padding: 0 12px; gap: 8px; }
}

#dc-root .dth-clima-local {
  height: 49px; flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px;
  font: 400 12px/1 var(--font-ui); color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
#dc-root .dth-clima-local svg { flex: none; color: var(--dth-tenue); }
#dc-root .dth-clima-local > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #dc-root .dth-clima-local button {
  flex: none; height: auto; min-height: 0;
  margin: 0; padding: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  font: 600 11.5px/1 var(--font-ui) !important; color: var(--text) !important;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

#dc-root .dth-dia {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px;
  padding: 0 12px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--text);
}
#dc-root .dth-dia:last-child { border-right: 0; }
#dc-root .dth-dia-nome { font: 700 10.5px/1 var(--font-ui); letter-spacing: 1.6px; text-transform: uppercase; color: var(--dth-tenue); }
#dc-root .dth-dia-temp { display: flex; align-items: baseline; gap: 7px; line-height: 1; }
#dc-root .dth-dia-temp b { font: 400 20px/1 var(--font-ui); letter-spacing: -.6px; }
#dc-root .dth-dia-temp i { font: normal 400 13px/1 var(--font-ui); color: var(--text-3); }
#dc-root .dth-dia-desc { font: 400 11.5px/1 var(--font-ui); color: var(--dth-tenue); text-align: center; }

#dc-root .dth-clima-aviso {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px;
  text-align: center;
  font: 400 12.5px/1.45 var(--font-ui); color: var(--text-2);
}
#dc-root .dth-clima-aviso svg { color: var(--dth-tenue); }
html body #dc-root .dth-clima-aviso button,
html body #dc-root .dth-estado button {
  height: 44px; min-height: 0;
  margin-top: 4px; padding: 0 22px !important;
  border: 1px solid var(--text) !important; border-radius: 0 !important;
  background: transparent !important; color: var(--text) !important; box-shadow: none !important;
  font: 600 12.5px/1 var(--font-ui) !important; cursor: pointer;
}
html body #dc-root .dth-clima-aviso button:hover,
html body #dc-root .dth-estado button:hover { background: var(--text) !important; color: var(--bg) !important; }

#dc-root .dth-girando svg { animation: dth-gira 1.2s linear infinite; }
@keyframes dth-gira { to { transform: rotate(360deg); } }

/* =========================================================================
   RESULTADOS — Notícias (4fr) e Mercados (2fr), moldura de 25px
   ========================================================================= */
#dc-root .dth-res {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 25px; margin: 25px;
}
/* No computador a fileira ocupa o que sobra da altura e cada painel rola por
   dentro; base zero para o conteúdo não empurrar a página para baixo. */
@media (min-width: 1180px) {
  #dc-root .dth-res {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr);
    grid-template-rows: minmax(0, 1fr);
    flex: 1 1 0; min-height: 420px;
  }
}

#dc-root .dth-sec {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 420px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
@media (min-width: 1180px) {
  #dc-root .dth-res > .dth-sec { min-height: 0; height: 100%; }
}
#dc-root .dth-sec.is-alvo { outline: 2px solid var(--text); outline-offset: -2px; }

#dc-root .dth-sec-cabeca {
  height: 56px; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
html body #dc-root .dth-sec-cabeca h2 {
  margin: 0 !important;
  font: 700 12px/1 var(--font-ui) !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase;
  color: var(--text) !important;
}
html body #dc-root .dth-ver-todas {
  display: flex; align-items: center; gap: 6px;
  height: auto; min-height: 0; margin: 0; padding: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  font: 400 12px/1 var(--font-ui) !important; color: var(--dth-tenue) !important;
  cursor: pointer;
}
#dc-root .dth-ver-todas svg { color: var(--text); }
html body #dc-root .dth-ver-todas:hover { color: var(--text) !important; }
#dc-root .dth-carimbo { font: 400 11px/1 var(--font-ui); color: var(--text-3); }

#dc-root .dth-abas {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 56px; flex: none;
  border-bottom: 1px solid var(--line);
}
html body #dc-root .dth-aba {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; height: auto; margin: 0; padding: 8px !important;
  border: 0 !important; border-right: 1px solid var(--line) !important; border-radius: 0 !important;
  background: var(--bg) !important; box-shadow: none !important;
  color: color-mix(in srgb, var(--text) 80%, var(--bg)) !important;
  font: 600 11px/1.25 var(--font-ui) !important; text-align: center;
  cursor: pointer;
}
html body #dc-root .dth-aba:last-child { border-right: 0 !important; }
html body #dc-root .dth-aba:not(.is-ativa):hover { background: var(--surface-2) !important; }
html body #dc-root .dth-aba.is-ativa { background: var(--text) !important; color: var(--bg) !important; }
html body #dc-root .dth-aba:active { opacity: .82; }

#dc-root .dth-lista {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 25px;
  overflow-y: auto;
  padding: 0 25px 0 0;
  border: 25px solid var(--bg);
  scroll-snap-type: y mandatory;
}
/* O recuo de 25px à direita é a reserva da barra de rolagem. No estado vazio
   não há rolagem — e sem isto a caixa ficava com 50px de folga à direita
   contra 25 à esquerda, que foi o desencontro que o dono marcou. */
#dc-root .dth-lista:has(> .dth-estado) { padding-right: 0; }
/* E o cartão de estado ocupa a altura que sobra, senão fica um respiro a mais
   embaixo do que em cima. */
#dc-root .dth-lista > .dth-estado { flex: 1 1 auto; justify-content: center; }
@media (max-width: 1179px) {
  #dc-root .dth-noticias .dth-lista { max-height: 560px; }
}

#dc-root .dth-art {
  height: 144px; flex: none;
  display: grid; grid-template-columns: 192px minmax(0, 1fr); align-items: stretch;
  border: 1px solid var(--line);
  background: var(--bg);
  scroll-snap-align: start;
  cursor: pointer;
  outline: none;
}
#dc-root .dth-art:hover { background: color-mix(in srgb, var(--text) 3%, var(--bg)); }
#dc-root .dth-art:active { background: color-mix(in srgb, var(--text) 6%, var(--bg)); }
#dc-root .dth-art:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
#dc-root .dth-art-foto {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--dth-tom);
  color: color-mix(in srgb, var(--text) 30%, var(--dth-tom));
}
#dc-root .dth-art-foto img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
#dc-root .dth-art-texto {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  min-width: 0; padding: 0 20px;
}
html body #dc-root .dth-art-titulo {
  margin: 0 !important;
  font: 600 16px/1.3 var(--font-ui) !important;
  letter-spacing: -.3px !important;
  color: var(--text) !important;
  text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
#dc-root .dth-art-meta { display: flex; align-items: center; gap: 9px; line-height: 1; min-width: 0; }
#dc-root .dth-art-meta b {
  font: 600 10.5px/1 var(--font-ui); letter-spacing: .4px; text-transform: uppercase;
  color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#dc-root .dth-art-meta span { flex: none; font: 400 11px/1 var(--font-ui); color: var(--text-3); }

#dc-root .dth-estado {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 64px 24px;
  border: 1px solid color-mix(in srgb, var(--text) 23%, var(--bg));
  text-align: center;
  color: color-mix(in srgb, var(--text) 23%, var(--bg));
}
#dc-root .dth-estado.is-erro { border-style: solid; border-color: var(--line); }
#dc-root .dth-estado.is-erro svg { color: var(--danger); }
#dc-root .dth-estado b { font: 700 15px/1 var(--font-ui); letter-spacing: -.3px; color: var(--text); }
#dc-root .dth-estado small {
  max-width: 360px;
  font: 400 12px/1.5 var(--font-ui); color: var(--dth-tenue);
  text-wrap: pretty;
}

#dc-root .dth-esq {
  height: 144px; flex: none;
  display: grid; grid-template-columns: 192px minmax(0, 1fr);
  border: 1px solid var(--line);
}
#dc-root .dth-esq i { display: block; background: var(--surface-2); animation: dth-pulso 1200ms ease-in-out infinite; }
#dc-root .dth-esq-foto { height: 100%; }
#dc-root .dth-esq-linhas { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 0 20px; }
#dc-root .dth-esq-linhas i { height: 11px; }
#dc-root .dth-esq-linhas i:last-child { height: 8px; }
@keyframes dth-pulso { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }

/* --- Mercados ------------------------------------------------------------- */
#dc-root .dth-fontes {
  height: 56px; flex: none;
  display: flex; align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font: 400 11px/1 var(--font-ui); letter-spacing: .2px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#dc-root .dth-cotas {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 25px;
  scroll-snap-type: y mandatory; scroll-padding-top: 25px;
}
#dc-root .dth-cota {
  position: relative;
  flex: 1 0 56px; min-height: 56px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line); border-bottom: 0;
  background: var(--bg);
  scroll-snap-align: start;
  overflow: hidden;
}
#dc-root .dth-cota:last-child { border-bottom: 1px solid var(--line); }
#dc-root .dth-cota-rotulo {
  font: 700 9px/1 var(--font-ui); letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--dth-tenue);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#dc-root .dth-cota-linha { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 1; }
#dc-root .dth-cota-valor {
  font: 400 14px/1 var(--font-ui); letter-spacing: -.4px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
#dc-root .dth-cota-pct { flex: none; font: 600 10px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
#dc-root .dth-cota.is-esqueleto i { display: block; height: 9px; width: 40%; background: var(--surface-2); animation: dth-pulso 1200ms ease-in-out infinite; }
#dc-root .dth-cota.is-esqueleto i + i { height: 12px; width: 62%; }
#dc-root .dth-cotas .dtf-empty {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid var(--line);
  font: 400 12px/1.45 var(--font-ui); color: var(--dth-tenue); text-align: center;
}
html body #dc-root .dth-cotas .dtf-empty button {
  height: 40px; padding: 0 18px !important;
  border: 1px solid var(--text) !important; border-radius: 0 !important;
  background: transparent !important; color: var(--text) !important; box-shadow: none !important;
  font: 600 12px/1 var(--font-ui) !important; cursor: pointer;
}

/* =========================================================================
   PÁGINA NOTÍCIAS — "Ver todas"
   ========================================================================= */
@media (min-width: 880px) {
  #dc-root .dtn { height: 100%; min-height: 0; }
}
#dc-root .dtn-cabeca {
  height: 98px; flex: none;
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 32%,
      color-mix(in srgb, var(--dth-brilho) 85%, transparent) 46%,
      color-mix(in srgb, var(--dth-brilho) 20%, transparent) 64%, transparent 78%),
    linear-gradient(90deg, var(--dth-metal-a) 0%, var(--dth-metal-b) 55%, var(--dth-metal-c) 100%);
}
#dc-root .dtn-cabeca-texto {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 9px;
  padding: 0 20px;
}
html body #dc-root .dtn-cabeca-texto h1 {
  margin: 0 !important;
  font: 700 22px/1 var(--font-ui) !important; letter-spacing: -.6px !important;
  color: var(--text) !important;
}
#dc-root .dtn-cabeca-texto span {
  font: 400 11.5px/1 var(--font-ui); color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html body #dc-root .dtn-celula {
  width: 72px; min-width: 72px; height: auto; min-height: 0; flex: none;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0 !important;
  border: 0 !important; border-left: 1px solid var(--line) !important; border-radius: 0 !important;
  background: var(--bg) !important; color: var(--text) !important; box-shadow: none !important;
  cursor: pointer;
}
html body #dc-root .dtn-celula:hover { background: var(--surface-2) !important; }
/* Atualizar e Fechar dividem o trilho da direita, alinhados à engrenagem, ao
   sino e ao relógio do cabeçalho. */
@media (min-width: 880px) {
  html body #dc-root .dtn-cabeca .dtn-celula { width: calc((var(--casca-trilho, 400px) - var(--dtc-barra, 0px)) / 2); min-width: 0; }
}
#dc-root .dtn-celula.is-busy svg { animation: dth-gira 1.2s linear infinite; }

#dc-root .dtn-corpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) {
  #dc-root .dtn-corpo { grid-template-columns: minmax(0, 1fr) 260px; overflow: hidden; }
}
@media (min-width: 1180px) {
  #dc-root .dtn-corpo { grid-template-columns: minmax(0, 1fr) 400px; }
}
#dc-root .dtn-principal { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#dc-root .dtn .dth-lista { max-height: none; }
@media (min-width: 880px) and (max-width: 1179px) {
  #dc-root .dtn .dth-abas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body #dc-root .dtn .dth-aba:nth-child(3n) { border-right: 0 !important; }
  html body #dc-root .dtn .dth-aba:nth-child(-n+3) { border-bottom: 1px solid var(--line) !important; }
}
#dc-root .dtn .dth-art { height: 156px; grid-template-columns: 220px minmax(0, 1fr); }
#dc-root .dtn .dth-esq { height: 156px; grid-template-columns: 220px minmax(0, 1fr); }

#dc-root .dtn-categorias {
  min-width: 0;
  display: flex; flex-direction: column;
  margin: 25px 25px 0 0;
  border: 1px solid var(--line); border-bottom: 0;
}
#dc-root .dtn-categorias-lista { flex: 1; display: flex; flex-direction: column; }
html body #dc-root .dtn-cat {
  flex: 1; width: 100%; min-height: 56px; height: auto;
  display: flex; align-items: center; gap: 14px;
  margin: 0; padding: 0 20px !important;
  border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important;
  background: var(--bg) !important; box-shadow: none !important;
  color: color-mix(in srgb, var(--text) 80%, var(--bg)) !important;
  text-align: left; cursor: pointer;
}
#dc-root .dtn-cat svg { flex: none; }
#dc-root .dtn-cat span { flex: 1; min-width: 0; font: 600 13.5px/1.2 var(--font-ui); }
#dc-root .dtn-cat b { flex: none; font: 400 12px/1 var(--font-ui); opacity: .7; font-variant-numeric: tabular-nums; }
html body #dc-root .dtn-cat:not(.is-ativa):hover { background: var(--surface-2) !important; }
html body #dc-root .dtn-cat.is-ativa { background: var(--text) !important; color: var(--bg) !important; }

/* =========================================================================
   LEITURA — modal grande (NoticiasPanel.dc.html)
   ========================================================================= */
html body #dc-root #dtf-leitura-overlay {
  position: fixed; inset: 0; z-index: 99990;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, .32) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  font-family: var(--font-ui);
  animation: none !important;
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura {
  display: flex; flex-direction: column;
  width: 100%; max-width: 900px; height: 100%; max-height: 100%;
  border: 1px solid color-mix(in srgb, var(--text) 19%, var(--bg));
  background: var(--bg); color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22) !important;
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura-cabeca {
  height: 72px; flex: none;
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--line);
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura-origem {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  color: var(--text);
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura-origem svg { flex: none; }
html body #dc-root #dtf-leitura-overlay .dtf-leitura-fonte {
  flex: none; margin: 0 !important; padding: 0 !important;
  font: 700 11px/1 var(--font-ui) !important; letter-spacing: 1.6px !important; text-transform: uppercase;
  color: var(--text-2) !important;
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-credito {
  flex: 1; min-width: 0; margin: 0 !important;
  font: 400 11.5px/1 var(--font-ui) !important; color: var(--text-3) !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-fechar {
  position: static !important;
  width: 72px !important; height: auto !important; min-height: 0 !important; flex: none;
  display: flex; align-items: center; justify-content: center;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-left: 1px solid var(--line) !important; border-radius: 0 !important;
  background: transparent !important; color: var(--text) !important; box-shadow: none !important;
  cursor: pointer;
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-fechar:hover { background: var(--surface-2) !important; }

html body #dc-root #dtf-leitura-overlay .dtf-leitura-corpo {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 0 !important; margin: 0 !important;
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura-arte {
  flex: none;
  border-bottom: 1px solid var(--line);
  background: var(--dth-tom, var(--surface-2));
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-arte {
  display: block;
  width: 100% !important; max-width: none !important; height: auto !important;
  aspect-ratio: 16 / 9; object-fit: cover;
  margin: 0 !important; border: 0 !important; border-radius: 0 !important;
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura-foto-credito {
  height: 49px; flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  font: 400 11px/1 var(--font-ui); color: var(--text-3);
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura-foto-credito span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #dc-root #dtf-leitura-overlay .dtn-leitura-texto {
  flex: none;
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px 34px;
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-titulo {
  margin: 0 !important; padding: 0 !important;
  font: 700 32px/1.15 var(--font-ui) !important; letter-spacing: -1px !important;
  color: var(--text) !important; text-wrap: pretty;
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura-linha {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font: 700 11px/1 var(--font-ui); letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--dth-tenue, var(--text-3));
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura-linha span + span {
  font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--text-3);
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-texto {
  display: flex; flex-direction: column; gap: 18px;
  margin: 0 !important; padding: 0 !important;
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-texto p {
  margin: 0 !important;
  font: 400 15px/1.7 var(--font-ui) !important;
  color: color-mix(in srgb, var(--text) 88%, var(--bg)) !important;
  text-wrap: pretty;
}
/* A primeira linha de texto faz o papel da linha fina do protótipo. */
html body #dc-root #dtf-leitura-overlay .dtf-leitura-texto p:first-child:not([class]) {
  font-size: 17px !important; font-weight: 500 !important; line-height: 1.5 !important;
  color: color-mix(in srgb, var(--text) 80%, var(--bg)) !important;
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-foto {
  display: block; width: 100%; height: auto; margin: 0 !important; border-radius: 0 !important;
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px !important; color: var(--text-3) !important;
}
html body #dc-root #dtf-leitura-overlay .dtf-leitura-status.is-aviso,
html body #dc-root #dtf-leitura-overlay .dtf-leitura-aviso-traducao {
  display: block;
  padding: 18px 20px !important;
  border-left: 2px solid var(--text);
  background: var(--surface-2);
  font: 400 13px/1.5 var(--font-ui) !important;
  color: color-mix(in srgb, var(--text) 80%, var(--bg)) !important;
}

/* O rodapé antigo do feed.css empilhava as ações em coluna; aqui elas voltam a
   ser células lado a lado. */
html body #dc-root #dtf-leitura-overlay .dtn-leitura-rodape {
  height: 64px; flex: none;
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-top: 1px solid var(--line) !important;
  background: var(--bg) !important;
}
html body #dc-root #dtf-leitura-overlay .dtn-rodape-acao {
  width: auto !important; max-width: none !important;
  flex: none; height: auto; min-height: 0;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0 !important; padding: 0 20px !important;
  border: 0 !important; border-right: 1px solid var(--line) !important; border-radius: 0 !important;
  background: transparent !important; color: var(--text) !important; box-shadow: none !important;
  font: 600 12.5px/1 var(--font-ui) !important;
  text-decoration: none !important; white-space: nowrap;
  cursor: pointer;
}
html body #dc-root #dtf-leitura-overlay .dtn-vao { flex: 1; }
html body #dc-root #dtf-leitura-overlay .dtn-vao ~ .dtn-rodape-acao {
  border-right: 0 !important; border-left: 1px solid var(--line) !important;
  padding: 0 24px !important; font-size: 13px !important;
}
html body #dc-root #dtf-leitura-overlay .dtn-rodape-acao:hover { background: var(--surface-2) !important; }
html body #dc-root #dtf-leitura-overlay .dtn-rodape-acao.is-cheio {
  background: var(--text) !important; color: var(--bg) !important; letter-spacing: .3px;
}
html body #dc-root #dtf-leitura-overlay .dtn-rodape-acao.is-cheio:hover {
  background: color-mix(in srgb, var(--text) 86%, var(--bg)) !important;
}
html body #dc-root #dtf-leitura-overlay .dtn-leitura.is-traduzida .dtf-leitura-traduzir {
  background: var(--text) !important; color: var(--bg) !important;
}
html body #dc-root #dtf-leitura-overlay .dtn-rodape-acao:disabled { opacity: .6; cursor: default; }

/* =========================================================================
   CELULAR (< 880px)
   ========================================================================= */
@media (max-width: 879px) {
  #dc-root .dth-hero { height: auto; min-height: 228px; }
  html body #dc-root .dth-hero-titulo { font-size: 34px !important; }
  #dc-root .dth-clima { height: auto; border-top: 0; }
  #dc-root .dth-clima-previsao { min-height: 160px; }
  #dc-root .dth-res { margin: 16px; gap: 16px; }
  #dc-root .dth-abas { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  html body #dc-root .dth-aba:nth-child(2n) { border-right: 0 !important; }
  html body #dc-root .dth-aba:nth-child(-n+4) { border-bottom: 1px solid var(--line) !important; }
  #dc-root .dth-lista { border-width: 16px; padding-right: 0; gap: 16px; }
  #dc-root .dth-art,
  #dc-root .dtn .dth-art { height: auto; min-height: 132px; grid-template-columns: 104px minmax(0, 1fr); }
  #dc-root .dth-esq,
  #dc-root .dtn .dth-esq { height: 132px; grid-template-columns: 104px minmax(0, 1fr); }
  html body #dc-root .dth-art-titulo { font-size: 14.5px !important; }
  #dc-root .dth-art-texto { padding: 14px 16px; }
  #dc-root .dtn .dth-lista { overflow: visible; }
  #dc-root .dtn-categorias { margin: 0 16px 16px; }

  html body #dc-root #dtf-leitura-overlay { padding: 0; }
  html body #dc-root #dtf-leitura-overlay .dtn-leitura { border: 0; max-width: none; }
  html body #dc-root #dtf-leitura-overlay .dtn-rodape-acao span { display: none; }
  html body #dc-root #dtf-leitura-overlay .dtf-leitura-titulo { font-size: 24px !important; }
  html body #dc-root #dtf-leitura-overlay .dtn-leitura-texto { padding: 24px 20px; }
  html body #dc-root #dtf-leitura-overlay .dtn-leitura-foto-credito { padding: 0 20px; }
  html body #dc-root #dtf-leitura-overlay .dtf-leitura-texto p { font-size: 14px !important; }
  html body #dc-root #dtf-leitura-overlay .dtf-leitura-texto p:first-child:not([class]) { font-size: 15px !important; }
}
@media (max-width: 1023px) {
  #dc-root .dth-hero-marca { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #dc-root .dth-girando svg,
  #dc-root .dtn-celula.is-busy svg,
  #dc-root .dth-esq i,
  #dc-root .dth-cota.is-esqueleto i { animation: none; }
}
