/* Painel (Início) — faixa de céu animado no topo, conforme o tempo agora em Caçapava.
   Posições de estrelas e gotas sorteadas uma vez e fixadas via nth-child (a CSP não aceita style inline).
   Estrutura: .ceu.cena-<nome> > .ceu-fundos (um degradê por cena; só o ativo fica visível, com transição),
   .ceu-cena (sol, raios, lua, estrelas, nuvens, chuva, clarão), .ceu-veu (escurece o lado do texto) e .ceu-texto.
   Cenas: sol, parcial, nublado, chuva, tempestade, amanhecer, entardecer, noite, noite-nublada, noite-chuva. */

.ceu {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 170px; border-radius: 20px; margin: 4px 0 16px;
  color: #fff; background: #1B2A55;
}
.ceu > div { position: absolute; inset: 0; }
.ceu-fundos > i, .ceu-cena > *, .ceu-cena .ceu-estrelas, .ceu-cena .ceu-chuva { position: absolute; }
.ceu-fundos > i { inset: 0; opacity: 0; transition: opacity .6s ease; }
.ceu-cena > * { opacity: 0; transition: opacity .6s ease, top .6s ease, filter .6s ease; }

/* ---------- céus (degradês) ---------- */
.ceu-fundos .f-sol { background: linear-gradient(180deg, #1F6CC8 0%, #4F97E0 55%, #8CC3F0 100%); }
.ceu-fundos .f-parcial { background: linear-gradient(180deg, #2E6BB0 0%, #6198CC 55%, #9DBEDC 100%); }
.ceu-fundos .f-nublado { background: linear-gradient(180deg, #5A6B7E 0%, #7F8E9E 55%, #A3AEBA 100%); }
.ceu-fundos .f-chuva { background: linear-gradient(180deg, #333F4D 0%, #4A5562 55%, #606B77 100%); }
.ceu-fundos .f-tempestade { background: linear-gradient(180deg, #1C222C 0%, #2C333E 55%, #3E4550 100%); }
.ceu-fundos .f-amanhecer { background: linear-gradient(180deg, #34477F 0%, #B4708A 50%, #F2A774 85%, #F7C88E 100%); }
.ceu-fundos .f-entardecer { background: linear-gradient(180deg, #27306A 0%, #9C4F86 45%, #E77C5A 80%, #F3A35E 100%); }
.ceu-fundos .f-noite { background: linear-gradient(180deg, #030817 0%, #0B1636 55%, #17264F 100%); }
.ceu-fundos .f-noite-nublada { background: linear-gradient(180deg, #10151F 0%, #1D2431 55%, #2B3443 100%); }
.cena-sol .f-sol, .cena-parcial .f-parcial, .cena-nublado .f-nublado, .cena-chuva .f-chuva,
.cena-tempestade .f-tempestade, .cena-amanhecer .f-amanhecer, .cena-entardecer .f-entardecer,
.cena-noite .f-noite, .cena-noite-nublada .f-noite-nublada, .cena-noite-chuva .f-noite-nublada { opacity: 1; }

/* ---------- sol ---------- */
.ceu-sol {
  width: 74px; height: 74px; right: 19%; top: 48px; border-radius: 50%;
  background: radial-gradient(circle, #FFF8D6 0%, #FFE07A 45%, #FFC83D 70%, rgba(255, 200, 61, 0) 72%);
  box-shadow: 0 0 40px 14px rgba(255, 214, 102, .45);
  animation: ceu-brilho 6s ease-in-out infinite alternate;
}
.ceu-raios {
  width: 190px; height: 190px; right: calc(19% - 58px); top: -10px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 236, 170, .30) 0deg 5deg, rgba(255, 236, 170, 0) 5deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  animation: ceu-girar 70s linear infinite;
}
.cena-sol .ceu-sol, .cena-sol .ceu-raios, .cena-parcial .ceu-sol, .cena-parcial .ceu-raios { opacity: 1; }
.cena-amanhecer .ceu-sol, .cena-entardecer .ceu-sol { opacity: 1; top: 104px; filter: hue-rotate(-18deg) saturate(1.3); }
.cena-amanhecer .ceu-raios, .cena-entardecer .ceu-raios { opacity: .55; top: 46px; }
@keyframes ceu-girar { to { transform: rotate(360deg); } }
@keyframes ceu-brilho { from { box-shadow: 0 0 34px 10px rgba(255, 214, 102, .38); } to { box-shadow: 0 0 52px 20px rgba(255, 214, 102, .55); } }

/* ---------- lua e estrelas ---------- */
.ceu-lua {
  width: 46px; height: 46px; right: 20%; top: 52px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #FFFDF2 0%, #EDE6CF 60%, #D9D0B4 100%);
  box-shadow: 0 0 30px 8px rgba(255, 250, 225, .28);
}
.cena-noite .ceu-lua { opacity: 1; }
.cena-noite-nublada .ceu-lua, .cena-noite-chuva .ceu-lua { opacity: .35; filter: blur(2px); }
.ceu-estrelas { inset: 0; opacity: 0; transition: opacity .6s ease; }
.cena-noite .ceu-estrelas { opacity: 1; }
.cena-noite-nublada .ceu-estrelas { opacity: .25; }
.ceu-estrelas i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 4px 1px rgba(255, 255, 255, .6);
  animation: ceu-cintilar 3s ease-in-out infinite alternate;
}
@keyframes ceu-cintilar { from { opacity: .25; } to { opacity: 1; } }

.ceu-estrelas i:nth-child(1) { left: 32.8%; top: 15.2%; width: 3px; height: 3px; animation-duration: 3.6s; animation-delay: -0.3s; }
.ceu-estrelas i:nth-child(2) { left: 10.9%; top: 47.1%; width: 1.5px; height: 1.5px; animation-duration: 4.3s; animation-delay: -0.9s; }
.ceu-estrelas i:nth-child(3) { left: 43.2%; top: 9.2%; width: 3px; height: 3px; animation-duration: 2.0s; animation-delay: -1.7s; }
.ceu-estrelas i:nth-child(4) { left: 13.8%; top: 20.5%; width: 3px; height: 3px; animation-duration: 3.5s; animation-delay: -3.8s; }
.ceu-estrelas i:nth-child(5) { left: 57.6%; top: 7.7%; width: 2px; height: 2px; animation-duration: 2.4s; animation-delay: -2.2s; }
.ceu-estrelas i:nth-child(6) { left: 29.5%; top: 14.7%; width: 2px; height: 2px; animation-duration: 2.1s; animation-delay: -1.2s; }
.ceu-estrelas i:nth-child(7) { left: 11.8%; top: 46.3%; width: 1.5px; height: 1.5px; animation-duration: 2.3s; animation-delay: -0.4s; }
.ceu-estrelas i:nth-child(8) { left: 55.6%; top: 49.8%; width: 2px; height: 2px; animation-duration: 3.1s; animation-delay: -2.1s; }
.ceu-estrelas i:nth-child(9) { left: 46.2%; top: 72.3%; width: 2px; height: 2px; animation-duration: 2.8s; animation-delay: -1.0s; }
.ceu-estrelas i:nth-child(10) { left: 68.4%; top: 22.1%; width: 2px; height: 2px; animation-duration: 3.4s; animation-delay: -2.1s; }
.ceu-estrelas i:nth-child(11) { left: 71.3%; top: 25.3%; width: 2.5px; height: 2.5px; animation-duration: 4.4s; animation-delay: -0.5s; }
.ceu-estrelas i:nth-child(12) { left: 17.7%; top: 29.3%; width: 1.5px; height: 1.5px; animation-duration: 4.3s; animation-delay: -1.7s; }
.ceu-estrelas i:nth-child(13) { left: 74.6%; top: 46.4%; width: 2px; height: 2px; animation-duration: 4.2s; animation-delay: -1.3s; }
.ceu-estrelas i:nth-child(14) { left: 58.5%; top: 46.9%; width: 2px; height: 2px; animation-duration: 3.0s; animation-delay: -3.4s; }
.ceu-estrelas i:nth-child(15) { left: 47.0%; top: 53.1%; width: 3px; height: 3px; animation-duration: 2.0s; animation-delay: -2.8s; }
.ceu-estrelas i:nth-child(16) { left: 96.3%; top: 64.8%; width: 2px; height: 2px; animation-duration: 2.6s; animation-delay: -1.5s; }
.ceu-estrelas i:nth-child(17) { left: 4.1%; top: 38.2%; width: 1.5px; height: 1.5px; animation-duration: 2.3s; animation-delay: -0.5s; }
.ceu-estrelas i:nth-child(18) { left: 22.7%; top: 25.3%; width: 2.5px; height: 2.5px; animation-duration: 3.8s; animation-delay: -1.6s; }
.ceu-estrelas i:nth-child(19) { left: 9.7%; top: 37.2%; width: 2.5px; height: 2.5px; animation-duration: 3.3s; animation-delay: -3.5s; }
.ceu-estrelas i:nth-child(20) { left: 84.1%; top: 24.6%; width: 2.5px; height: 2.5px; animation-duration: 2.9s; animation-delay: -1.4s; }
.ceu-estrelas i:nth-child(21) { left: 93.0%; top: 15.2%; width: 2px; height: 2px; animation-duration: 2.3s; animation-delay: -0.9s; }
.ceu-estrelas i:nth-child(22) { left: 3.1%; top: 65.5%; width: 2px; height: 2px; animation-duration: 2.3s; animation-delay: -1.1s; }
.ceu-estrelas i:nth-child(23) { left: 41.8%; top: 31.3%; width: 3px; height: 3px; animation-duration: 3.3s; animation-delay: -3.8s; }
.ceu-estrelas i:nth-child(24) { left: 92.3%; top: 52.5%; width: 3px; height: 3px; animation-duration: 3.8s; animation-delay: -1.8s; }
.ceu-estrelas i:nth-child(25) { left: 39.3%; top: 33.5%; width: 1.5px; height: 1.5px; animation-duration: 2.1s; animation-delay: -2.5s; }
.ceu-estrelas i:nth-child(26) { left: 20.1%; top: 76.9%; width: 3px; height: 3px; animation-duration: 3.0s; animation-delay: -0.4s; }
.ceu-estrelas i:nth-child(27) { left: 7.0%; top: 4.0%; width: 2px; height: 2px; animation-duration: 2.2s; animation-delay: -0.4s; }
.ceu-estrelas i:nth-child(28) { left: 60.3%; top: 9.2%; width: 2px; height: 2px; animation-duration: 2.4s; animation-delay: -1.5s; }

/* ---------- nuvens ---------- */
.ceu-nuvem {
  height: 34px; border-radius: 34px; background: rgba(255, 255, 255, .92);
  animation: ceu-deslizar 60s ease-in-out infinite alternate;
}
.ceu-nuvem::before, .ceu-nuvem::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.ceu-nuvem::before { width: 46%; height: 150%; left: 14%; bottom: 30%; }
.ceu-nuvem::after { width: 36%; height: 120%; right: 14%; bottom: 35%; }
@keyframes ceu-deslizar { from { transform: translateX(-30px); } to { transform: translateX(40px); } }
.ceu-nuvem:nth-child(1) { width: 140px; right: 4%; top: 72px; animation-duration: 55s; }
.ceu-nuvem:nth-child(2) { width: 110px; right: 26%; top: 38px; animation-duration: 70s; animation-delay: -20s; }
.ceu-nuvem:nth-child(3) { width: 90px; right: 42%; top: 98px; animation-duration: 64s; animation-delay: -35s; }
.ceu-nuvem:nth-child(4) { width: 170px; left: 6%; top: 24px; animation-duration: 80s; animation-delay: -10s; }
.ceu-nuvem:nth-child(5) { width: 150px; left: 30%; top: 110px; animation-duration: 75s; animation-delay: -48s; }
.ceu-nuvem:nth-child(6) { width: 200px; right: 10%; top: 4px; animation-duration: 90s; animation-delay: -5s; }
.ceu-nuvens { inset: 0; opacity: 1; }
.ceu-nuvens .ceu-nuvem { position: absolute; opacity: 0; transition: opacity .6s ease, background-color .6s ease; }
/* parcial: 3 nuvens brancas do lado direito */
.cena-parcial .ceu-nuvem:nth-child(-n+3) { opacity: .95; }
.cena-amanhecer .ceu-nuvem:nth-child(2), .cena-entardecer .ceu-nuvem:nth-child(3) { opacity: .55; background: rgba(255, 214, 190, .8); }
/* nublado: todas, cinza-claro */
.cena-nublado .ceu-nuvem { opacity: .85; background: rgba(226, 232, 239, .9); }
/* chuva/tempestade: nuvens escuras */
.cena-chuva .ceu-nuvem, .cena-tempestade .ceu-nuvem { opacity: .9; background: rgba(104, 114, 128, .95); }
.cena-tempestade .ceu-nuvem { background: rgba(70, 78, 92, .95); }
/* noite nublada / com chuva */
.cena-noite-nublada .ceu-nuvem, .cena-noite-chuva .ceu-nuvem { opacity: .85; background: rgba(62, 72, 92, .92); }

/* ---------- chuva ---------- */
.ceu-chuva { inset: 0; opacity: 0; transition: opacity .6s ease; }
.cena-chuva .ceu-chuva, .cena-tempestade .ceu-chuva, .cena-noite-chuva .ceu-chuva { opacity: 1; }
.ceu-chuva i {
  position: absolute; top: -24px; width: 1.5px; height: 18px; border-radius: 1px;
  background: linear-gradient(180deg, rgba(210, 225, 255, 0), rgba(210, 225, 255, .75));
  animation: ceu-cair .9s linear infinite; animation-play-state: paused;
}
.cena-chuva .ceu-chuva i, .cena-tempestade .ceu-chuva i, .cena-noite-chuva .ceu-chuva i { animation-play-state: running; }
.cena-tempestade .ceu-chuva i { animation-duration: .6s; }
@keyframes ceu-cair { from { transform: translate(0, 0) rotate(12deg); } to { transform: translate(-36px, 210px) rotate(12deg); } }

.ceu-chuva i:nth-child(1) { left: 99.4%; height: 14px; animation-duration: 0.95s; animation-delay: -0.57s; }
.ceu-chuva i:nth-child(2) { left: 88.3%; height: 20px; animation-duration: 1.15s; animation-delay: -0.56s; }
.ceu-chuva i:nth-child(3) { left: 32.4%; height: 18px; animation-duration: 0.72s; animation-delay: -0.90s; }
.ceu-chuva i:nth-child(4) { left: 49.8%; height: 16px; animation-duration: 1.00s; animation-delay: -0.62s; }
.ceu-chuva i:nth-child(5) { left: 98.9%; height: 22px; animation-duration: 0.91s; animation-delay: -0.18s; }
.ceu-chuva i:nth-child(6) { left: 95.1%; height: 14px; animation-duration: 1.03s; animation-delay: -0.36s; }
.ceu-chuva i:nth-child(7) { left: 72.4%; height: 16px; animation-duration: 0.78s; animation-delay: -0.44s; }
.ceu-chuva i:nth-child(8) { left: 37.0%; height: 22px; animation-duration: 0.76s; animation-delay: -0.65s; }
.ceu-chuva i:nth-child(9) { left: 34.3%; height: 16px; animation-duration: 0.76s; animation-delay: -0.97s; }
.ceu-chuva i:nth-child(10) { left: 83.8%; height: 16px; animation-duration: 1.06s; animation-delay: -0.89s; }
.ceu-chuva i:nth-child(11) { left: 20.8%; height: 14px; animation-duration: 0.90s; animation-delay: -0.88s; }
.ceu-chuva i:nth-child(12) { left: 82.2%; height: 22px; animation-duration: 0.89s; animation-delay: -0.23s; }
.ceu-chuva i:nth-child(13) { left: 99.5%; height: 18px; animation-duration: 0.87s; animation-delay: -1.12s; }
.ceu-chuva i:nth-child(14) { left: 99.3%; height: 16px; animation-duration: 0.83s; animation-delay: -0.26s; }
.ceu-chuva i:nth-child(15) { left: 48.9%; height: 22px; animation-duration: 0.82s; animation-delay: -0.58s; }
.ceu-chuva i:nth-child(16) { left: 87.4%; height: 14px; animation-duration: 0.89s; animation-delay: -0.78s; }
.ceu-chuva i:nth-child(17) { left: 86.8%; height: 16px; animation-duration: 0.71s; animation-delay: -0.47s; }
.ceu-chuva i:nth-child(18) { left: 49.7%; height: 18px; animation-duration: 0.74s; animation-delay: -0.95s; }
.ceu-chuva i:nth-child(19) { left: 9.0%; height: 20px; animation-duration: 1.12s; animation-delay: -0.87s; }
.ceu-chuva i:nth-child(20) { left: 41.7%; height: 16px; animation-duration: 1.12s; animation-delay: -0.87s; }
.ceu-chuva i:nth-child(21) { left: 103.3%; height: 20px; animation-duration: 0.66s; animation-delay: -0.71s; }
.ceu-chuva i:nth-child(22) { left: 83.9%; height: 20px; animation-duration: 0.72s; animation-delay: -0.99s; }
.ceu-chuva i:nth-child(23) { left: 68.4%; height: 16px; animation-duration: 0.83s; animation-delay: -0.66s; }
.ceu-chuva i:nth-child(24) { left: 2.2%; height: 14px; animation-duration: 1.05s; animation-delay: -0.87s; }
.ceu-chuva i:nth-child(25) { left: 54.8%; height: 16px; animation-duration: 1.12s; animation-delay: -0.52s; }
.ceu-chuva i:nth-child(26) { left: 85.9%; height: 18px; animation-duration: 0.76s; animation-delay: -0.30s; }
.ceu-chuva i:nth-child(27) { left: 52.1%; height: 22px; animation-duration: 1.03s; animation-delay: -0.39s; }
.ceu-chuva i:nth-child(28) { left: 43.6%; height: 18px; animation-duration: 0.72s; animation-delay: -1.09s; }
.ceu-chuva i:nth-child(29) { left: 93.4%; height: 22px; animation-duration: 0.98s; animation-delay: -0.98s; }
.ceu-chuva i:nth-child(30) { left: 43.7%; height: 22px; animation-duration: 1.11s; animation-delay: -0.60s; }
.ceu-chuva i:nth-child(31) { left: 15.8%; height: 16px; animation-duration: 0.91s; animation-delay: -1.05s; }
.ceu-chuva i:nth-child(32) { left: 63.3%; height: 16px; animation-duration: 1.04s; animation-delay: -0.18s; }
.ceu-chuva i:nth-child(33) { left: 49.2%; height: 18px; animation-duration: 1.01s; animation-delay: -0.67s; }
.ceu-chuva i:nth-child(34) { left: 71.0%; height: 14px; animation-duration: 0.92s; animation-delay: -0.58s; }
.ceu-chuva i:nth-child(35) { left: 91.9%; height: 14px; animation-duration: 0.68s; animation-delay: -0.23s; }
.ceu-chuva i:nth-child(36) { left: 80.3%; height: 14px; animation-duration: 0.90s; animation-delay: -0.67s; }
.ceu-chuva i:nth-child(37) { left: 46.1%; height: 22px; animation-duration: 0.96s; animation-delay: -0.61s; }
.ceu-chuva i:nth-child(38) { left: 20.7%; height: 20px; animation-duration: 0.79s; animation-delay: -0.61s; }
.ceu-chuva i:nth-child(39) { left: 52.8%; height: 18px; animation-duration: 0.77s; animation-delay: -0.63s; }
.ceu-chuva i:nth-child(40) { left: 96.0%; height: 20px; animation-duration: 1.10s; animation-delay: -0.24s; }
.ceu-chuva i:nth-child(41) { left: 14.3%; height: 14px; animation-duration: 0.71s; animation-delay: -0.53s; }
.ceu-chuva i:nth-child(42) { left: 69.8%; height: 18px; animation-duration: 0.86s; animation-delay: -0.26s; }

/* ---------- clarão (tempestade): raro e suave ---------- */
.ceu-clarao { inset: 0; background: rgba(235, 240, 255, 1); opacity: 0; }
.cena-tempestade .ceu-clarao { animation: ceu-clarao 9s linear infinite; }
@keyframes ceu-clarao {
  0%, 90%, 100% { opacity: 0; }
  91% { opacity: .2; } 92% { opacity: .04; } 93.5% { opacity: .16; } 96% { opacity: 0; }
}

/* ---------- véu e texto (contraste ≥ 4,5:1 do branco em todos os céus) ---------- */
/* degradê sem quebra (vários pontos, curva suave): sem linha vertical em céus lisos */
.ceu-veu { background: linear-gradient(90deg, rgba(4, 10, 26, .62) 0%, rgba(4, 10, 26, .57) 28%, rgba(4, 10, 26, .46) 46%, rgba(4, 10, 26, .28) 62%, rgba(4, 10, 26, .12) 76%, rgba(4, 10, 26, .03) 87%, rgba(4, 10, 26, 0) 94%); }
.ceu-texto {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px 22px 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.ceu-texto h1 { margin: 0; color: #fff; font-size: 30px; line-height: 1.1; }
.ceu-linha { margin: 0; font-size: 14px; font-weight: 500; color: #fff; max-width: 62ch; }
.ceu-linha .icone { vertical-align: -3px; margin-right: 4px; }
.ceu-topo { position: absolute; top: 12px; right: 14px; display: flex; gap: 6px; align-items: center; }
.ceu-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 600; color: #fff; text-shadow: none;
  background: rgba(4, 10, 26, .55); border: 1px solid rgba(255, 255, 255, .28);
}
.ceu-chip.simulacao { background: rgba(184, 137, 58, .92); border-color: rgba(255, 255, 255, .4); color: #111318; }
button.ceu-chip { cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; }
button.ceu-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* simulação (admin): fileira de chips logo abaixo da faixa */
.ceu-simular { display: flex; gap: 6px; overflow-x: auto; margin: -8px 0 16px; padding: 2px 0 6px; scrollbar-width: thin; }
.ceu-simular[hidden] { display: none; }
.ceu-simular button {
  flex: none; border: 1px solid var(--border-strong); background: var(--surface-1); color: var(--text-primary);
  border-radius: 99px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.ceu-simular button[aria-pressed="true"] { background: var(--ativo-fundo); color: var(--ativo-texto); border-color: transparent; }

@media (max-width: 760px) {
  .ceu { min-height: 150px; border-radius: 16px; }
  .ceu-texto { padding: 46px 16px 12px; }
  .ceu-texto h1 { font-size: 24px; }
  .ceu-linha { font-size: 13px; }
  .ceu-veu { background: linear-gradient(90deg, rgba(4, 10, 26, .64) 0%, rgba(4, 10, 26, .6) 60%, rgba(4, 10, 26, .5) 100%); }
  .ceu-sol { width: 56px; height: 56px; right: 7%; top: 52px; }
  .ceu-raios { right: calc(7% - 67px); top: -15px; }
  .ceu-lua { right: 8%; top: 54px; width: 38px; height: 38px; }
}

/* sem movimento: cena parada */
@media (prefers-reduced-motion: reduce) {
  .ceu *, .ceu *::before, .ceu *::after { animation: none !important; transition: none !important; }
  .cena-chuva .ceu-chuva i, .cena-tempestade .ceu-chuva i, .cena-noite-chuva .ceu-chuva i { transform: translateY(70px) rotate(12deg); }
}

.ceu > .ceu-topo { inset: 12px 14px auto auto; }
.ceu-chip[hidden] { display: none; }

/* ---------- cena em WebGL (public/ceu-webgl.js) ----------
   O canvas entra como primeiro filho da faixa; com .ceu-webgl as camadas CSS somem (ficam de reserva). */
.ceu > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.ceu > .ceu-fundos, .ceu > .ceu-cena { z-index: 0; }
.ceu > .ceu-veu { z-index: 1; }
.ceu > .ceu-texto { z-index: 2; }
.ceu > .ceu-topo { z-index: 3; }
.ceu.ceu-webgl > .ceu-fundos, .ceu.ceu-webgl > .ceu-cena { display: none; }

/* ---------- texto em fluxo (a faixa cresce se a linha quebrar) e trechos clicáveis ---------- */
.ceu > .ceu-texto { position: relative; inset: auto; min-height: inherit; padding-top: 48px; }
.ceu-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 2px; }
.ceu-link {
  display: inline-block; max-width: 100%; line-height: 1.5;
  min-height: 32px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; color: #fff; text-align: left; text-shadow: inherit;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.ceu-link:hover { text-decoration-color: #fff; }
.ceu-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.ceu-link .icone { vertical-align: -3px; margin: 0 1px; }
.ceu-seta { font-size: 18px; line-height: 1; margin-left: 4px; display: inline-block; }
@media (max-width: 760px) {
  .ceu-link { min-height: 40px; padding: 8px 0; font-size: 13px; }
  .ceu-links { gap: 0 14px; }
}

/* ---------- janelas "Previsão de amanhã/hoje" e "Produção de hoje" ---------- */
.ceu-dlg { width: min(560px, calc(100vw - 24px)); }
@media (max-width: 760px) { .ceu-dlg { width: 100%; } }
.ceu-dlg .painel { margin: 12px 0 8px; }
.ceu-dlg-resumo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 12px; }
.ceu-dlg-temp { font-size: 26px; font-weight: 600; line-height: 1.1; }
.ceu-dlg-itens { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-left: auto; font-size: 13px; color: var(--text-secondary); }
.ceu-dlg-item { display: inline-flex; align-items: center; gap: 4px; }
.ceu-dlg-horas { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.ceu-dlg-hora {
  flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px;
  border-radius: 10px; background: var(--surface-2); font-size: 12px;
}
.ceu-dlg-sub { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin: 10px 0 6px; }
.ceu-dlg-usinas { display: grid; gap: 6px; }
.ceu-dlg-usina { display: grid; grid-template-columns: 112px 1fr 76px; gap: 10px; align-items: center; font-size: 13px; }
.ceu-dlg-usina .num { text-align: right; font-weight: 600; }
.ceu-dlg-link { display: inline-flex; align-items: center; min-height: 40px; font-weight: 600; font-size: 13px; }
/* gráfico hora a hora das janelas: legenda de linha (cheia e tracejada) e linha-resumo */
.legenda .leg-linha { width: 16px; height: 2px; border-radius: 1px; }
.legenda .leg-tracejada { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; }
.ceu-dlg-comparacao { font-size: 13px; margin: 2px 0 8px; }
.ceu-dlg-comparacao .nota { margin-top: 4px; }
