/* Panic Atlas — identidade própria: globo em tela cheia, painéis de vidro flutuantes, "pulso do planeta". */
:root {
  --ink: #eef4ff; --mute: #8fa3bf; --dim: #5d6f8c;
  --glass: rgba(6, 12, 26, .74); --glass-2: rgba(10, 20, 40, .9);
  --line: rgba(120, 180, 255, .13); --line-2: rgba(120, 180, 255, .24);
  --brand-red: #ff2a3c; --amber: #ffc233; --teal: #38a9ff; --danger: #ff3b4e;
  --lvl: var(--teal);
  --gap: 12px; --hdr-h: 86px; --tb-h: 0px; --top-h: calc(var(--hdr-h) + var(--tb-h)); /* --tb-h: faixa do anúncio no topo (showcase.css) */ --left-w: 336px; --right-w: 348px; --bottom-h: 46px;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: #030712; color: var(--ink); font: 13px/1.45 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; top: 0 !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h2, h3, p, ol, ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(120, 180, 255, .18); border-radius: 8px; }
::selection { background: rgba(255, 194, 51, .35); }

/* ── fundo: aurora + globo ── */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, #07132b 0%, #030712 68%); }
.aurora i { position: absolute; border-radius: 50%; opacity: .5; will-change: transform; }
.aurora i:nth-child(1) { width: 66vw; height: 66vw; left: -21vw; top: -25vw; background: radial-gradient(closest-side, #0d5fd0 0%, rgba(13, 95, 208, .55) 45%, transparent 100%); animation: drift1 34s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 56vw; height: 56vw; right: -18vw; bottom: -26vw; background: radial-gradient(closest-side, #8a1422 0%, rgba(138, 20, 34, .55) 45%, transparent 100%); animation: drift2 41s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 46vw; height: 46vw; right: 7vw; top: -25vw; background: radial-gradient(closest-side, #23307a 0%, rgba(35, 48, 122, .55) 45%, transparent 100%); opacity: .38; animation: drift1 47s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(9vw, 7vh) scale(1.18); } }
@keyframes drift2 { to { transform: translate(-8vw, -6vh) scale(1.12); } }
#map { position: fixed; inset: 0; z-index: 1; }
/* tela de abertura: a arte do Panic Atlas enquanto o globo carrega */
.splash { position: fixed; inset: 0; z-index: 90; background: #01030a url('/brand/banner.jpg') center / contain no-repeat; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .9s ease, visibility 0s .9s; }
body.booting .splash { opacity: 1; visibility: visible; transition: none; }
/* abertura animada (public/intro.js): fundo escuro liso; o banner parado só aparece quando a abertura não roda */
.splash:not(.splash-static) { background-image: none; }
body.intro .splash { opacity: 1; visibility: visible; transition: none; pointer-events: auto; cursor: pointer; }
.splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.splash .intro-skip { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .42); font: 500 11px var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; }
body.intro .splash.intro-out { opacity: 0; transform: scale(1.18); transition: opacity .6s ease, transform .65s cubic-bezier(.4, 0, .6, 1); }
body.intro .splash.intro-out.intro-still { transform: none; }
.maplibregl-canvas { outline: none; }
.maplibregl-ctrl-attrib { background: rgba(3, 7, 18, .55) !important; color: #7c8ba3; font-size: 10px; border-radius: 8px 0 0 0; }
.maplibregl-ctrl-attrib a { color: #9fb0c8; }
.maplibregl-ctrl-attrib-button { filter: invert(1); opacity: .5; }
.maplibregl-ctrl-bottom-right { right: calc(var(--gap) * 2 + var(--right-w) + var(--ctl-w, 38px) + 8px); bottom: calc(var(--gap) + var(--bottom-h) + 6px); z-index: 3; }
body.hide-right .maplibregl-ctrl-bottom-right { right: calc(var(--gap) + var(--ctl-w, 38px) + 8px); }

/* ── vidro ── */
.glass { background: linear-gradient(180deg, rgba(10, 20, 40, .8), var(--glass)); -webkit-backdrop-filter: blur(12px) saturate(1.25); backdrop-filter: blur(12px) saturate(1.25); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 22px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); }
.booting .glass, .booting .mapctl { opacity: 0; transform: translateY(8px); }
.glass, .mapctl { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }

/* ── topo ── */
.top { position: fixed; z-index: 20; top: calc(var(--gap) + var(--tb-h)); left: var(--gap); right: var(--gap); height: var(--hdr-h); display: flex; align-items: center; gap: 18px; padding: 0 16px 0 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.beacon { position: relative; width: 30px; height: 30px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #fff2c4, var(--amber) 55%, #b46f00); display: grid; place-items: center; box-shadow: 0 0 22px rgba(255, 194, 51, .55); }
.beacon::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 34px rgba(255, 194, 51, .9); opacity: 0; animation: beacon 3.2s ease-in-out infinite; pointer-events: none; }
.beacon i { width: 9px; height: 9px; border-radius: 50%; background: #030712; }
@keyframes beacon { 50% { opacity: 1; } }
.mark { width: 38px; height: 38px; flex: none; display: block; filter: drop-shadow(0 0 10px rgba(56, 169, 255, .45)); }
/* nome em duas linhas (PANIC / ATLAS): ocupa a mesma largura do cabeçalho de antes e sobra espaço para o número principal */
.word { font: 400 13px/1.2 'Michroma', var(--display); letter-spacing: .1em; white-space: nowrap; display: grid; }
.word b { color: var(--brand-red); font-weight: 400; display: block; }

.pulse { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 30px 6px 6px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); min-width: 0; flex: 0 1 auto; }
.pulse[data-level='1'] { --lvl: #b6e84a; } .pulse[data-level='2'] { --lvl: #ffc233; } .pulse[data-level='3'] { --lvl: #ff7a2f; } .pulse[data-level='4'] { --lvl: #ff3b4e; }
.gauge { width: 62px; height: 62px; flex: none; transform: rotate(135deg); }
.gauge circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.g-track { stroke: rgba(255, 255, 255, .09); stroke-dasharray: 75 100; }
.g-arc { stroke: var(--lvl); stroke-dasharray: 1 100; transition: stroke-dasharray 1.4s cubic-bezier(.2, .8, .2, 1), stroke .6s; filter: drop-shadow(0 0 5px var(--lvl)); }
.gauge .g-core { fill: var(--lvl); stroke: none; transform-origin: 60px 60px; animation: core 2.200s ease-in-out infinite; }
@keyframes core { 50% { transform: scale(2.1); opacity: .35; } }
.pulse-main { flex: none; } /* o número principal nunca é espremido */
.pulse-pct { font: 800 34px/1 var(--display); letter-spacing: -.04em; color: var(--lvl); font-variant-numeric: tabular-nums; text-shadow: 0 0 26px color-mix(in srgb, var(--lvl) 45%, transparent); white-space: nowrap; }
.pulse-lbl { color: var(--mute); font-size: 11.500px; margin-top: 4px; white-space: nowrap; }
.pulse-lbl b { color: var(--ink); font-weight: 600; }
.crumbs { display: flex; align-items: center; gap: 4px; margin-top: 5px; flex-wrap: nowrap; }
.crumbs button { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 600; color: var(--mute); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.crumbs button.on { background: var(--lvl); border-color: var(--lvl); color: #030712; }
.crumbs button:hover { color: var(--ink); border-color: var(--ink); } .crumbs button.on:hover { color: #030712; }
.crumbs i { color: var(--dim); font-style: normal; }
.pulse-side { border-left: 1px solid var(--line); padding-left: 14px; font-size: 12px; color: var(--mute); display: grid; gap: 2px; white-space: nowrap; }
.pulse-side b { font: 600 15px var(--mono); color: var(--ink); }
.pulse-ratio { font-size: 11px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--amber); text-decoration: underline; font: inherit; cursor: pointer; }
.method-h { margin: 16px 0 8px; font: 600 15px var(--display); }
.hh-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0; }
.hh-table th { text-align: left; color: var(--mute); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 5px 8px; border-bottom: 1px solid var(--line-2); }
.hh-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hh-table td.n { font-family: var(--mono); white-space: nowrap; }
#method-hh details { margin: 8px 0; } #method-hh summary { cursor: pointer; color: var(--amber); }
#method-hh details .hh-table { display: block; max-height: 300px; overflow: auto; }
.pulse-cli { color: var(--ink); } /* o número exato da distribuidora, ao lado da estimativa de pessoas */
.pulse-side { gap: 1px; }
.pulse-level { display: flex; align-items: center; gap: 6px; color: var(--lvl); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; font-size: 10.500px; }
.pulse-level i { width: 7px; height: 7px; border-radius: 50%; background: var(--lvl); box-shadow: 0 0 10px var(--lvl); }
.hint-btn { position: absolute; top: 6px; right: 7px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--mute); font-size: 11px; line-height: 1; padding: 0; }
.hint-btn:hover { color: var(--ink); border-color: var(--ink); }

.tiles { display: flex; gap: 6px; margin-left: auto; }
.tile { min-width: 74px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; text-align: left; }
.tile b { display: block; font: 600 19px/1.1 var(--mono); letter-spacing: -.03em; }
.tile span { color: var(--mute); font-size: 10.500px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.tile.hot b { color: #ff8a5c; }
.btn-tile:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.actions { display: flex; align-items: center; gap: 7px; flex: none; }
.search { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--mute); }
.search:focus-within { border-color: var(--teal); }
.search input { width: 150px; border: 0; outline: 0; background: none; color: var(--ink); }
.search input::placeholder { color: var(--dim); }
.ibtn { height: 38px; min-width: 38px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font: 600 11px var(--mono); }
.ibtn:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .08); }
.ibtn.x-link { color: inherit; text-decoration: none; } /* perfil do Panic Atlas no X (abre em outra aba) */
.legal-list .x-follow { display: inline-flex; align-items: center; gap: 6px; }
/* celular estreito (até 420 px): o X sai do topo (lá ele espremia a porcentagem principal) e vai para a coluna de botões do mapa */
.mapctl .x-ctl { display: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-2); place-items: center; color: inherit; text-decoration: none; }
.mapctl .x-ctl:hover { border-color: var(--line-2); color: var(--amber); }
@media (max-width: 420px) { #btn-x { display: none; } .mapctl .x-ctl { display: grid; width: 36px; height: 36px; } }
/* celular bem estreito (até 340 px): a porcentagem principal cabe inteira — idioma só com o globo e número um pouco menor */
@media (max-width: 340px) { #lang-code { display: none; } .top .pulse .pulse-pct { font-size: 21px; } }
.ibtn .snd-on { display: none; } .ibtn[aria-pressed='true'] .snd-on { display: inline; } .ibtn[aria-pressed='true'] .snd-off { display: none; } .ibtn[aria-pressed='true'] { color: var(--amber); border-color: rgba(255, 194, 51, .5); }
.cta { height: 38px; padding: 0 15px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 12px; font-weight: 700; color: #1a1200; background: linear-gradient(180deg, #ffd666, var(--amber)); box-shadow: 0 6px 22px rgba(255, 194, 51, .32); transition: transform .15s, box-shadow .15s; }
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(255, 194, 51, .5); }
.btn { height: 36px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); font-weight: 600; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .1); }

/* ── painéis laterais ── */
.deck { position: fixed; z-index: 15; top: calc(var(--gap) * 2 + var(--top-h)); bottom: var(--gap); display: flex; flex-direction: column; overflow: hidden; }
.deck.left { left: var(--gap); width: var(--left-w); }
.deck.right { right: var(--gap); width: var(--right-w); }
body.hide-left .deck.left { transform: translateX(calc(-100% - 30px)); opacity: 0; pointer-events: none; }
body.hide-right .deck.right { transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.tabs { display: flex; align-items: center; gap: 2px; padding: 8px 8px 0 10px; border-bottom: 1px solid var(--line); flex: none; }
.tab { display: flex; align-items: center; gap: 7px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 9px 11px; color: var(--mute); font: 600 14px var(--display); letter-spacing: -.01em; }
.tab.active { color: var(--ink); border-bottom-color: var(--amber); }
.deck-x { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; border: 0; background: none; color: var(--dim); font-size: 17px; line-height: 1; }
.deck-x:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.count { font: 600 10.500px var(--mono); background: rgba(255, 255, 255, .08); color: var(--mute); border-radius: 999px; padding: 2px 7px; }
.count:empty { display: none; }
.count.soon { background: var(--amber); color: #1a1200; font-family: var(--body); }
.deck-scroll { overflow-y: auto; flex: 1; min-height: 0; padding-bottom: 8px; }
.tabpane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.blk { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.blk:last-child { border-bottom: 0; }
.blk h2 { font: 600 14px var(--display); letter-spacing: -.01em; }
.blk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hint { color: var(--dim); font-size: 11.500px; margin-top: 3px; line-height: 1.4; }
.link { background: none; border: 0; padding: 0; color: var(--mute); font-size: 11.500px; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.link:hover { color: var(--ink); }

.headline { display: block; width: calc(100% - 20px); margin: 10px; padding: 11px 13px; text-align: left; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c, var(--amber)) 40%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--c, var(--amber)) 16%, transparent), transparent 70%); }
.headline:hover { background: color-mix(in srgb, var(--c, var(--amber)) 14%, transparent); }
.hl-tag { display: block; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--c, var(--amber)); margin-bottom: 3px; }
.hl-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 600 15px/1.25 var(--display); letter-spacing: -.01em; }

.matrix { display: grid; gap: 3px; margin-top: 10px; }
.mrow { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 0; border-radius: 11px; background: none; text-align: left; overflow: hidden; }
.mrow:hover { background: rgba(255, 255, 255, .05); }
.mrow .ico { width: 26px; height: 26px; border-radius: 9px; background: var(--c); display: grid; place-items: center; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); transition: box-shadow .3s, background .3s; }
.mrow .ico svg { width: 15px; height: 15px; }
.mrow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.mrow .n { font: 600 12px var(--mono); color: var(--mute); }
.mrow .pp { font: 600 12px var(--mono); min-width: 54px; text-align: right; }
.mrow .pp.zero { color: var(--dim); font-weight: 400; }
.mrow .bar { position: absolute; left: 43px; right: 8px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--c); transform-origin: left; transform: scaleX(var(--w, 0)); opacity: .7; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.mrow.off { opacity: .42; }
.mrow.off .ico { background: none; box-shadow: inset 0 0 0 1.500px var(--c); }
.mrow.off .ico svg { stroke: var(--c); }

.flt-label { color: var(--mute); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; margin: 16px 0 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); border-radius: 999px; padding: 5px 11px; font-size: 12px; }
.chip b { color: var(--mute); font: 500 10.500px var(--mono); }
.chip.off { opacity: .4; background: none; }
.chip.active { background: var(--amber); border-color: var(--amber); color: #1a1200; font-weight: 700; }
.chip:hover { border-color: var(--ink); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 11px; padding: 3px; margin-top: 8px; }
.seg button { border: 0; background: none; color: var(--mute); padding: 6px 4px; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.seg button.active { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 600; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 12.500px; }
.switch input { display: none; }
.switch i { width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .12); position: relative; flex: none; transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + i { background: var(--teal); } .switch input:checked + i::after { transform: translateX(14px); }

.rank { list-style: none; display: grid; gap: 2px; margin-top: 8px; }
.rank li button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; background: none; border: 0; padding: 6px 6px; border-radius: 10px; text-align: left; }
.rank li button:hover, .rank li.sel button { background: rgba(255, 255, 255, .06); }
.rank .iso { font: 600 10.500px var(--mono); color: var(--mute); background: rgba(255, 255, 255, .07); border-radius: 6px; text-align: center; padding: 3px 0; }
.rank .nm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.rank .bar { display: flex; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .07); margin-top: 4px; overflow: hidden; }
.rank .bar i { display: block; height: 100%; }
.rank .v { text-align: right; }
.rank .v b { font: 600 12.500px var(--mono); }
.rank .v small { display: block; color: var(--dim); font-size: 10px; }
.rank .empty, .feed .empty { color: var(--dim); padding: 14px 6px; }
#spark { width: 100%; height: 54px; display: block; margin-top: 8px; }
.spark-axis { display: flex; justify-content: space-between; color: var(--dim); font: 10px var(--mono); }

/* ── feed ── */
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); opacity: .7; animation: ping 1.800s infinite; }
.offline .live-dot { background: var(--danger); } .offline .live-dot::after { display: none; }
@keyframes ping { 70%, 100% { transform: scale(3); opacity: 0; } }
.feed { list-style: none; overflow-y: auto; flex: 1; padding: 6px 7px 10px; }
.feed li button { position: relative; width: 100%; text-align: left; background: none; border: 0; border-radius: 13px; padding: 9px 10px 9px 14px; display: block; }
.feed li button::before { content: ''; position: absolute; left: 4px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--c); opacity: .85; }
.feed li button:hover, .feed li.sel button { background: rgba(255, 255, 255, .06); }
.feed li.new { animation: slideIn .5s cubic-bezier(.2, .8, .2, 1); }
.feed li.new button { background: color-mix(in srgb, var(--c) 16%, transparent); }
@keyframes slideIn { from { opacity: 0; transform: translateX(18px); } }
.feed .meta { display: flex; gap: 7px; align-items: center; font-size: 10.500px; color: var(--mute); }
.feed .cat { color: var(--c); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.feed .tier, .tier { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; font: 700 9.500px var(--mono); color: #030712; background: #9fb0c8; flex: none; }
.tier.t-a { background: #38a9ff; } .tier.t-b { background: #7fd0ff; } .tier.t-c { background: #c9b6ff; } .tier.t-d { background: #ffd666; } .tier.t-e { background: #ff9d9d; }
.feed time { margin-left: auto; flex: none; font-family: var(--mono); }
.feed .ttl { font-weight: 600; font-size: 13px; line-height: 1.35; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed .sub { color: var(--mute); font-size: 11.500px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .ppl { display: inline-block; margin-top: 5px; font: 600 11px var(--mono); color: var(--ink); background: rgba(255, 255, 255, .07); border-radius: 6px; padding: 2px 7px; }
.feed .more { color: var(--dim); text-align: center; padding: 10px; font-size: 12px; }
.badge { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 1px 6px; background: rgba(255, 255, 255, .09); color: var(--mute); }
.badge.s2 { background: rgba(255, 194, 51, .2); color: #ffd666; } .badge.s3 { background: rgba(255, 122, 47, .22); color: #ffab7a; } .badge.s4 { background: rgba(255, 59, 78, .25); color: #ff8b99; }
.chat-ribbon { background: repeating-linear-gradient(-45deg, rgba(255, 194, 51, .14), rgba(255, 194, 51, .14) 10px, rgba(255, 194, 51, .07) 10px, rgba(255, 194, 51, .07) 20px); color: var(--amber); font-size: 11.500px; font-weight: 600; text-align: center; padding: 7px; }
.chat { list-style: none; padding: 10px 14px; flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; opacity: .75; -webkit-mask-image: linear-gradient(transparent, #000 25%); mask-image: linear-gradient(transparent, #000 25%); }
.chat li small { display: block; color: var(--dim); font-size: 11px; border-left: 2px solid var(--line-2); padding-left: 6px; margin-bottom: 2px; }
.chat-foot { border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.chat-input { display: flex; gap: 6px; }
.chat-input input { flex: 1; min-width: 0; height: 36px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); padding: 0 12px; }
.chat-input button { height: 36px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); padding: 0 14px; font-weight: 600; }
.chat-input :disabled { opacity: .5; cursor: not-allowed; }

/* ── base: relógio, faixa de últimos alertas, linha do tempo ── */
.bottom { position: fixed; z-index: 14; left: calc(var(--gap) * 2 + var(--left-w)); right: calc(var(--gap) * 2 + var(--right-w)); bottom: var(--gap); height: var(--bottom-h); display: flex; align-items: center; gap: 14px; padding: 0 14px; border-radius: 16px; transition: left .4s, right .4s, opacity .7s, transform .7s; }
body.hide-left .bottom { left: var(--gap); } body.hide-right .bottom { right: var(--gap); }
.clock { font: 600 12.500px var(--mono); flex: none; }
.ticker { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.ticker-track { display: inline-flex; gap: 30px; white-space: nowrap; animation: marquee var(--dur, 70s) linear infinite; padding-left: 20px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker button { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 12.500px; }
.ticker button i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.ticker button em { font-style: normal; color: var(--mute); font-family: var(--mono); font-size: 11px; }
.ticker button:hover { color: var(--amber); }
.tl { flex: none; width: 150px; height: 26px; }
.tl-bars { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.tl-bars .col { flex: 1; display: flex; flex-direction: column-reverse; border-radius: 2px; overflow: hidden; min-width: 2px; }
.tl-bars .col i { display: block; width: 100%; }
.tl-bars .col.zero { height: 2px; background: rgba(255, 255, 255, .1); }
.viewers { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: 11.500px; white-space: nowrap; flex: none; }
.viewers b { color: var(--ink); font-family: var(--mono); }

.mapctl { position: fixed; z-index: 14; right: calc(var(--gap) * 2 + var(--right-w)); bottom: calc(var(--gap) * 2 + var(--bottom-h)); display: flex; flex-direction: column; gap: 6px; transition: right .4s, opacity .7s, transform .7s; }
body.hide-right .mapctl { right: var(--gap); }
.mapctl button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-2); display: grid; place-items: center; font-size: 18px; line-height: 1; }
.mapctl button:hover { border-color: var(--line-2); color: var(--amber); }
.mapctl button[aria-pressed='true'] { color: var(--amber); border-color: rgba(255, 194, 51, .5); }
.scope-hint { position: fixed; z-index: 13; top: calc(var(--gap) * 2 + var(--top-h) + 4px); left: 50%; transform: translateX(-50%); max-width: min(680px, calc(100vw - var(--left-w) - var(--right-w) - 90px)); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 999px; font-size: 12.500px; line-height: 1.3; }
body.hide-left.hide-right .scope-hint { max-width: min(680px, calc(100vw - 40px)); }
.scope-hint[data-level='pais'], .scope-hint[data-level='estado'] { border-color: rgba(255, 194, 51, .55); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 26px rgba(255, 194, 51, .16); }
.scope-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); flex: none; animation: core 2.200s ease-in-out infinite; }
.scope-hint b { color: var(--amber); }
.scope-hint button { flex: none; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 4px 11px; font-size: 11.500px; font-weight: 700; white-space: nowrap; }
.scope-hint button:hover { background: var(--amber); border-color: var(--amber); color: #1a1200; }
.mnav { display: none; }

/* ── cartão do alerta ── */
.maplibregl-popup { z-index: 12; max-width: min(350px, calc(100vw - 16px)) !important; }
.maplibregl-popup-content { background: rgba(9, 17, 34, .96); color: var(--ink); border: 1px solid var(--line-2); border-radius: 18px; padding: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .65); font: 13px/1.45 var(--body); overflow: hidden; cursor: grab; }
.maplibregl-popup-tip { border-top-color: rgba(120, 180, 255, .3) !important; border-bottom-color: rgba(120, 180, 255, .3) !important; }
.maplibregl-popup-close-button { color: var(--mute); font-size: 20px; right: 8px; top: 6px; }
.maplibregl-popup-close-button:hover { background: none; color: #fff; }
.card { width: 330px; max-width: calc(100vw - 28px); display: flex; flex-direction: column; max-height: min(66vh, 540px); max-height: min(66dvh, 540px); }
.card > * { flex: none; }
/* cartão arrastável: pega em qualquer parte (no toque, pelo título) */
.card-top { position: relative; touch-action: none; }
.card-top::before { content: ''; position: absolute; top: 5px; left: 50%; width: 34px; height: 4px; margin-left: -17px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.maplibregl-popup-content:hover .card-top::before { background: rgba(255, 255, 255, .45); }
.pl-pinned { position: fixed !important; z-index: 40; }
.pl-pinned .maplibregl-popup-tip { display: none; }
.pl-pinned .maplibregl-popup-content { border-radius: 18px !important; border-color: rgba(255, 194, 51, .45); box-shadow: 0 28px 70px rgba(0, 0, 0, .75); }
.pl-pinned .card-top { padding-right: 64px; }
.pl-dragging .maplibregl-popup-content { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.card-repin { display: none; position: absolute; right: 34px; top: 8px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--amber); place-items: center; padding: 0; }
.pl-pinned .card-repin { display: grid; }
.card-repin:hover { background: rgba(255, 255, 255, .09); }
.pl-leader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 11; pointer-events: none; display: none; overflow: visible; }
.pl-leader line { stroke: rgba(255, 255, 255, .8); stroke-width: 1.5; stroke-dasharray: 5 4; }
.pl-leader circle { fill: var(--amber); stroke: #030712; stroke-width: 1.5; }
.card-top { padding: 13px 36px 10px 15px; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%); border-bottom: 1px solid var(--line); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 10.500px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--c); }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.card h4 { margin: 7px 0 0; font: 600 16px/1.25 var(--display); letter-spacing: -.01em; }
.card h4 small { font: 500 12px var(--mono); color: var(--mute); margin-left: 6px; }
.card-ppl { display: flex; gap: 10px; align-items: baseline; padding: 10px 15px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.card-ppl b { font: 600 20px var(--mono); letter-spacing: -.03em; }
.card-ppl span { color: var(--mute); font-size: 11.500px; line-height: 1.35; }
.card-body { padding: 11px 15px 12px; flex: 1 1 auto; min-height: 56px; overflow-y: auto; overscroll-behavior: contain; }
.card-body p { color: #c9d6ea; margin-bottom: 10px; }
.loc-warn { margin: 0 15px 0; padding: 7px 10px; border-radius: 9px; border: 1px solid rgba(255, 59, 78, .6); background: rgba(255, 59, 78, .12); color: #ff8b99; font-size: 12px; line-height: 1.35; animation: loc-blink 1.6s ease-in-out infinite; }
.loc-warn b { color: #ff3b4e; }
@keyframes loc-blink { 0%, 100% { opacity: 1; border-color: rgba(255, 59, 78, .75); } 50% { opacity: .55; border-color: rgba(255, 59, 78, .25); } }
.loc-foot { color: #ff8b99; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(360px, 26%); flex: 0 1 auto; min-width: 0; animation: loc-blink 2.4s ease-in-out infinite; }
@media (max-width: 1100px) { .loc-foot { display: none; } }
.card-official { margin: 0 0 10px; border-left: 2px solid var(--line-2); padding-left: 9px; font-size: 12px; } .card-official summary { cursor: pointer; color: var(--mute); font-weight: 600; } .card-official p { margin: 5px 0; color: #b9c7dc; } .card-official-src { color: var(--dim) !important; } .card-official a { color: var(--teal); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 12px; margin: 0; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 15px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.card-foot a { color: var(--amber); font-weight: 700; text-decoration: none; white-space: nowrap; }
.card-foot a:hover { text-decoration: underline; }
.card-acts { flex: none; gap: 12px !important; overflow: visible !important; }
.badge.chk { border: 1px solid transparent; }
.badge.c-confirmado { background: rgba(64, 201, 138, .16); color: #7be0b0; }
.badge.c-preliminar { background: transparent; border-color: rgba(255, 194, 51, .55); color: #ffd666; border-style: dashed; }
.badge.c-medido { background: rgba(96, 165, 250, .16); color: #9cc6ff; }
.badge.c-relato { background: transparent; border-color: rgba(255, 255, 255, .3); color: var(--mute); border-style: dashed; }
.card-foot span { display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── avisos flutuantes ── */
.toasts { position: fixed; z-index: 50; right: calc(var(--gap) * 2 + var(--right-w) + var(--ctl-w, 38px) + 12px); bottom: calc(var(--gap) * 2 + var(--bottom-h)); display: flex; flex-direction: column; gap: 8px; width: 330px; pointer-events: none; }
body.hide-right .toasts { right: calc(var(--gap) + var(--ctl-w, 38px) + 12px); }
.toast { pointer-events: auto; text-align: left; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; background: rgba(9, 17, 34, .95); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 15px; padding: 10px 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 30px color-mix(in srgb, var(--c) 18%, transparent); animation: rise .4s cubic-bezier(.2, .8, .2, 1); }
.toast.out { opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }
.toast .ico { width: 28px; height: 28px; border-radius: 10px; background: var(--c); display: grid; place-items: center; }
.toast .ico svg { width: 15px; height: 15px; }
.toast b { display: block; font: 600 10px var(--mono); color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.toast span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.toast small { color: var(--mute); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* ── janelas ── */
.modal { border: 0; padding: 0; background: none; color: var(--ink); max-width: 96vw; }
.modal::backdrop { background: rgba(1, 3, 9, .8); }
.modal[open] .modal-box { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
.modal-box { width: 540px; max-width: 94vw; max-height: 88vh; overflow-y: auto; background: #071518; border: 1px solid var(--line-2); border-radius: 22px; padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 11px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.modal-box.wide { width: 900px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h3 { font: 800 23px var(--display); letter-spacing: -.03em; }
.x { background: none; border: 0; color: var(--mute); font-size: 16px; }
.modal-box label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mute); }
.modal-box input, .modal-box select, .modal-box textarea { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 11px; color: var(--ink); outline: 0; resize: vertical; }
.modal-box select option { background: #071518; }
.modal-box input:focus, .modal-box select:focus, .modal-box textarea:focus { border-color: var(--teal); }
.row { display: flex; gap: 8px; align-items: flex-end; } .row .grow { flex: 1; min-width: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.form-err { color: #ff8b99; font-size: 12px; }
.geo-results { list-style: none; display: grid; gap: 3px; }
.geo-results button { width: 100%; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 12px; }
.geo-results button:hover { border-color: var(--teal); }
.tiers { display: grid; gap: 7px; }
.tiers > div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 12.500px; color: #c9d6ea; }
.tiers .tier { width: 20px; height: 20px; font-size: 11.500px; border-radius: 6px; }
.src-table { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.src-row { display: grid; grid-template-columns: 20px minmax(0, 2.200fr) minmax(0, 1.500fr) 62px 92px; gap: 10px; align-items: center; background: #071518; padding: 8px 12px; font-size: 12px; }
.src-row.head { color: var(--mute); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; background: #0a1c20; }
.src-row .tier.bad { outline: 2px solid var(--danger); outline-offset: 1px; }
.src-row a { color: var(--ink); text-decoration: none; font-weight: 600; } .src-row a[href]:hover { text-decoration: underline; }
.src-row small { display: block; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-row .r { text-align: right; font-family: var(--mono); }
.method { display: grid; gap: 10px; color: #c9d6ea; font-size: 13px; }
.method ol { padding-left: 18px; display: grid; gap: 7px; }
.method-now { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, .03); font: 12px/1.6 var(--mono); white-space: pre-wrap; }
#lang-q { width: 100%; }
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; max-height: 52vh; overflow-y: auto; }
.langs button { text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; }
.langs button small { display: block; color: var(--dim); font-size: 10.500px; }
.langs button:hover { border-color: var(--line-2); } .langs button.active { border-color: var(--amber); background: rgba(255, 194, 51, .12); }
.picking #map { cursor: crosshair; }
.pick-banner { position: fixed; z-index: 40; top: calc(var(--gap) * 2 + var(--top-h)); left: 50%; transform: translateX(-50%); background: var(--amber); color: #1a1200; font-weight: 700; border-radius: 999px; padding: 9px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

/* tradutor do Google: escondemos a barra e o seletor dele (usamos o nosso) */
#gt-host { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
font[style] { background: none !important; box-shadow: none !important; }

/* ── responsivo ── */
@media (max-width: 1640px) { .pulse-side { display: none; } } /* em telas de notebook o detalhe ao lado do número sai; ele continua no botão "?" */
@media (max-width: 1560px) { :root { --left-w: 316px; --right-w: 328px; } .search input { width: 120px; } .tile { min-width: 66px; padding: 8px 10px; } }
@media (max-width: 1400px) { .tiles .tile:nth-child(3) { display: none; } .cta span { display: none; } .cta { padding: 0 12px; } }
@media (max-width: 1240px) { .search { display: none; } .tiles .tile:nth-child(1) { display: none; } :root { --left-w: 300px; --right-w: 312px; } .tl { display: none; } }
@media (max-width: 1080px) {
  .tiles, .pulse-side { display: none; }
  .deck.left { transform: translateX(calc(-100% - 30px)); opacity: 0; pointer-events: none; }
  body.show-left .deck.left { transform: none; opacity: 1; pointer-events: auto; z-index: 30; }
  .bottom { left: var(--gap); }
}
@media (max-width: 780px) {
  :root { --gap: 8px; --hdr-h: 62px; --bottom-h: 58px; }
  .top { gap: 10px; padding: 0 10px; border-radius: 16px; }
  .word { display: none; }
  .pulse { flex: 1; padding: 4px 26px 4px 4px; gap: 9px; border: 0; background: none; }
  .gauge { width: 46px; height: 46px; }
  .pulse-pct { font-size: 24px; } .pulse-lbl { display: none; } .crumbs { margin-top: 3px; } .crumbs button { max-width: 96px; font-size: 10.500px; padding: 1px 7px; }
  .scope-hint { left: var(--gap); right: var(--gap); transform: none; max-width: none; border-radius: 16px; flex-wrap: wrap; font-size: 12px; }
  .scope-hint .dot { display: none; } .scope-hint > span { flex: 1 1 100%; }
  #btn-sound, #btn-full, #btn-report, .bottom, .mapctl #ctl-panels { display: none; } /* só o botão do topo: os botões das janelas (Publicar, Entendi) continuam */
  .deck { top: auto; left: var(--gap) !important; right: var(--gap) !important; width: auto !important; bottom: calc(var(--gap) * 2 + var(--bottom-h)); height: 64dvh; transform: translateY(calc(100% + 90px)) !important; opacity: 0; pointer-events: none; z-index: 30; }
  body.m-left .deck.left, body.m-right .deck.right { transform: none !important; opacity: 1; pointer-events: auto; }
  .mnav { position: fixed; z-index: 35; left: var(--gap); right: var(--gap); bottom: var(--gap); height: var(--bottom-h); display: grid; grid-template-columns: repeat(3, 1fr); /* 3 abas: Map, Overview, Live feed */ border-radius: 18px; padding: 4px; }
  .mnav button { border: 0; background: none; color: var(--mute); display: grid; place-items: center; gap: 1px; font-size: 10.500px; border-radius: 13px; }
  .mnav button.active { color: var(--amber); background: rgba(255, 194, 51, .1); }
  body.m-left .toasts, body.m-right .toasts, body.m-left .mapctl, body.m-right .mapctl { display: none; }
  .mapctl { right: var(--gap) !important; bottom: calc(var(--gap) * 2 + var(--bottom-h)); }
  .mapctl button { width: 36px; height: 36px; }
  .card { max-height: min(44vh, 400px); max-height: min(44dvh, 400px); } /* cabe acima ou abaixo do ponto numa tela de celular */
  .toasts { right: var(--gap) !important; left: var(--gap); width: auto; bottom: calc(var(--gap) * 2 + var(--bottom-h) + 4px); }
  .maplibregl-ctrl-bottom-right { right: calc(var(--gap) + var(--ctl-w, 36px) + 6px) !important; bottom: calc(var(--gap) * 2 + var(--bottom-h)); }
  .src-row { grid-template-columns: 20px minmax(0, 1fr) 54px; } .src-row > :nth-child(3), .src-row > :nth-child(5) { display: none; }
  .row { flex-wrap: wrap; }
}
/* ── modo leve (celular, aparelho fraco ou escolhido no botão de raio): nada de desfoque nem de animação contínua ── */
body.lite .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgba(10, 20, 40, .96), rgba(6, 12, 26, .94)); box-shadow: 0 10px 28px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
body.lite .aurora i { animation: none; }
body.lite .beacon::after, body.lite .live-dot::after, body.lite .gauge .g-core, body.lite .scope-hint .dot { animation: none; }
body.lite .g-arc { filter: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ───────── camada LIVE CYBER ATTACKS ───────── */
:root { --cy-1: #38a9ff; --cy-2: #ffc233; --cy-3: #ff7a2f; --cy-4: #ff3b4e; } /* cores dos fluxos: troque aqui */
#ctl-cyber[aria-pressed="true"] { border-color: var(--cy-4); color: var(--cy-4); box-shadow: 0 0 14px rgba(255, 59, 78, .35); }
#cyber-panel { position: fixed; z-index: 15; right: calc(var(--gap) * 2 + var(--right-w) + var(--ctl-w, 38px) + 8px); bottom: calc(var(--gap) * 2 + var(--bottom-h)); width: 340px; max-height: min(70vh, 640px); overflow: auto; padding: 12px 14px 14px; border-radius: 16px; font-size: 12.5px; line-height: 1.4; }
#cyber-panel[hidden] { display: none; }
body.hide-right #cyber-panel { right: calc(var(--gap) + var(--ctl-w, 38px) + 8px); }
.cy-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cy-head b { font: 400 11px 'Michroma', var(--display); letter-spacing: .12em; color: var(--cy-4); }
.cy-x { background: none; border: 0; color: var(--mute); font-size: 14px; cursor: pointer; padding: 2px 4px; }
.cy-note, .cy-warn, .cy-sim { border-radius: 10px; padding: 7px 9px; margin-bottom: 8px; color: var(--mute); background: rgba(255, 255, 255, .04); }
.cy-warn { border: 1px dashed rgba(255, 194, 51, .5); color: #ffe19a; } .cy-warn code { color: var(--ink); }
.cy-sim { border: 1px solid var(--cy-2); color: #1a1300; background: var(--cy-2); font-weight: 700; }
.cy-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #40c98a; margin-right: 6px; box-shadow: 0 0 8px #40c98a; }
.cy-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.cy-chip, .cy-btn, .cy-tools select { height: 28px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); padding: 0 9px; font: inherit; font-size: 12px; cursor: pointer; }
.cy-chip { display: inline-flex; align-items: center; gap: 6px; } .cy-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cy-chip.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.cy-tools select { flex: 1 1 130px; min-width: 0; }
.cy-h, .cy-col h5 { margin: 10px 0 5px; font: 600 12.5px var(--display); color: var(--ink); } .cy-h small { font-weight: 400; color: var(--dim); }
.cy-list, .cy-adv { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.cy-list li { display: flex; align-items: center; gap: 7px; } .cy-list i { flex: none; width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.cy-list span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cy-list span b { color: var(--c); }
.cy-list em, .cy-col em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--mute); }
.cy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .cy-col p { display: flex; justify-content: space-between; gap: 6px; margin: 2px 0; }
.cy-col span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-fine, .cy-credit { color: var(--dim); font-size: 11.5px; margin: 9px 0 0; } .cy-fine b { color: var(--mute); } .cy-credit a, .cy-adv a { color: var(--teal); }
.cy-adv li { color: var(--mute); } .cy-adv small { color: var(--dim); margin-left: 6px; } .cy-rw { color: var(--cy-4); font-weight: 600; }
.cy-foot { margin-top: 10px; }
#cyber-simbar { display: none; position: fixed; z-index: 16; top: 132px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; background: var(--cy-2); color: #1a1300; font: 400 11px 'Michroma', var(--display); letter-spacing: .14em; pointer-events: none; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
body.cyber-sim #cyber-simbar { display: block; }
@media (max-width: 780px) {
  #cyber-panel { left: 8px; right: 8px !important; width: auto; bottom: calc(var(--bottom-h, 0px) + 70px); max-height: 46vh; }
  #cyber-simbar { top: 64px; font-size: 9.5px; white-space: nowrap; }
}

/* ───────── histórico e replay ───────── */
#ctl-replay[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); }
#replay-bar { position: fixed; z-index: 15; left: calc(var(--gap) * 2 + var(--left-w)); right: calc(var(--gap) * 2 + var(--right-w) + var(--ctl-w, 38px) + 8px); bottom: calc(var(--gap) * 2 + var(--bottom-h)); padding: 10px 14px 8px; border-radius: 16px; font-size: 12.5px; transition: left .4s, right .4s; }
#replay-bar[hidden] { display: none; }
body.hide-left #replay-bar { left: var(--gap); } body.hide-right #replay-bar { right: calc(var(--gap) + var(--ctl-w, 38px) + 8px); }
.rp-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-title { font: 400 11px 'Michroma', var(--display); letter-spacing: .12em; color: var(--teal); }
.rp-when { font: 600 14px var(--display); } .rp-count { color: var(--mute); flex: 1; }
.rp-live, .rp-btn, #rp-speed { height: 28px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); padding: 0 10px; font: inherit; font-size: 12px; cursor: pointer; }
body.replaying .rp-live { border-color: var(--amber); color: var(--amber); }
.rp-x { background: none; border: 0; color: var(--mute); font-size: 14px; cursor: pointer; }
#rp-chart { display: block; width: 100%; height: 34px; margin: 6px 0 0; }
.rp-row { display: flex; align-items: center; gap: 8px; } .rp-btn { width: 34px; padding: 0; }
#rp-range { flex: 1; min-width: 0; accent-color: var(--teal); height: 22px; }
.rp-axis { display: flex; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 11px; margin-top: 2px; } .rp-axis span:nth-child(2) { text-align: center; flex: 1; }
#replay-flag { display: none; position: fixed; z-index: 16; top: 86px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; background: var(--amber); color: #1a1300; font: 400 11px 'Michroma', var(--display); letter-spacing: .1em; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
body.replaying #replay-flag { display: block; }
body.replaying .live-dot { background: var(--amber); box-shadow: none; animation: none; }
body.replay-open #cyber-panel { bottom: calc(var(--gap) * 3 + var(--bottom-h) + 118px); max-height: 52vh; }
@media (max-width: 780px) {
  #replay-bar { left: 8px; right: 8px !important; bottom: calc(var(--bottom-h, 0px) + 70px); }
  #replay-flag { top: 64px; font-size: 9.5px; }
  .rp-count { flex-basis: 100%; order: 5; }
}

/* ───────── vigiar região ───────── */
#ctl-watch[aria-pressed="true"], #ctl-watch.has { border-color: var(--amber); color: var(--amber); }
#ctl-watch { position: relative; } #ctl-watch.ring::after { content: ''; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px var(--danger); }
#watch-panel { position: fixed; z-index: 17; right: calc(var(--gap) * 2 + var(--right-w) + var(--ctl-w, 38px) + 8px); bottom: calc(var(--gap) * 2 + var(--bottom-h)); width: 320px; max-height: min(70vh, 560px); overflow: auto; padding: 12px 14px 14px; border-radius: 16px; font-size: 12.5px; line-height: 1.4; }
#watch-panel[hidden] { display: none; }
body.hide-right #watch-panel { right: calc(var(--gap) + var(--ctl-w, 38px) + 8px); }
.wt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .wt-head b { font: 400 11px 'Michroma', var(--display); letter-spacing: .12em; color: var(--amber); }
.wt-x { background: none; border: 0; color: var(--mute); font-size: 14px; cursor: pointer; }
.wt-lead, .wt-fine { color: var(--mute); margin: 0 0 8px; } .wt-fine { color: var(--dim); font-size: 11.5px; margin: 10px 0 0; } .wt-fine a, .wt-list a { color: var(--teal); }
.wt-row { display: flex; gap: 6px; margin-bottom: 8px; } .wt-row select { flex: 1; min-width: 0; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); padding: 0 8px; font: inherit; font-size: 12px; }
.wt-list, .wt-recent { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.wt-list li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 9px; background: rgba(255, 255, 255, .05); } .wt-list span { flex: 1; font-weight: 600; }
.wt-list button { background: none; border: 0; color: var(--mute); cursor: pointer; }
.wt-note { border-radius: 10px; padding: 7px 9px; color: var(--mute); background: rgba(255, 255, 255, .04); display: grid; gap: 6px; } .wt-note.ok { color: #7be0b0; } .wt-note.warn { border: 1px dashed rgba(255, 194, 51, .5); color: #ffe19a; }
.wt-btn { height: 30px; border-radius: 9px; border: 1px solid var(--amber); background: var(--amber); color: #1a1300; font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; padding: 0 10px; }
.wt-h { margin: 10px 0 5px; font: 600 12.5px var(--display); } .wt-recent small { display: block; color: var(--dim); }
@media (max-width: 780px) { #watch-panel { left: 8px; right: 8px !important; width: auto; bottom: calc(var(--bottom-h, 0px) + 70px); max-height: 50vh; } }

/* ───────── fontes: licenças e retiradas ───────── */
.src-count { margin: 10px 0 8px; font-size: 12px; color: var(--mute); } .src-count b { color: var(--ink); }
.lic-a, .lic-b, .lic-c, .lic-d { font-style: normal; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 1px 6px; margin-right: 4px; white-space: nowrap; }
.lic-a { background: rgba(64, 201, 138, .16); color: #7be0b0; } .lic-b { background: rgba(96, 165, 250, .16); color: #9cc6ff; }
.lic-c { border: 1px dashed rgba(255, 255, 255, .3); color: var(--mute); } .lic-d { border: 1px dashed rgba(255, 194, 51, .55); color: #ffd666; }
.src-row small.lic { white-space: normal; margin-top: 3px; } .src-row small.lic a { color: var(--teal); font-weight: 400; }
#src-retired { margin-top: 12px; font-size: 12px; } #src-retired summary { cursor: pointer; font-weight: 600; }
.ret-list { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--mute); } .ret-list b { color: var(--ink); } .ret-list q { font-style: italic; color: var(--dim); } .ret-list a { color: var(--teal); }

.cy-check { display: flex; gap: 8px; align-items: center; color: var(--mute); margin: 0 0 8px; cursor: pointer; } .cy-check input { accent-color: var(--cy-4); }
body.cyber-focus .maplibregl-marker { opacity: 0; pointer-events: none; }

.cy-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .cy-inc li { display: grid; grid-template-columns: 10px 1fr; column-gap: 7px; align-items: start; }
.cy-inc i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-top: 5px; box-shadow: 0 0 6px var(--c); } .cy-inc .linkbtn { text-align: left; color: var(--ink); text-decoration: none; font-weight: 600; } .cy-inc .linkbtn:hover { text-decoration: underline; }
.cy-inc small { grid-column: 2; color: var(--dim); }

.cy-types p { display: flex; justify-content: space-between; gap: 6px; margin: 2px 0; }

/* ───────── ataques ao vivo, um por um ───────── */
.cs-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.cs-nums div { border-radius: 10px; background: rgba(255, 255, 255, .05); padding: 6px 8px; } .cs-nums b { display: block; font: 700 17px var(--display); font-variant-numeric: tabular-nums; } .cs-nums span { color: var(--dim); font-size: 10.5px; }
.cs-legend { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 8px; color: var(--mute); font-size: 11.5px; } .cs-legend i, .cs-row i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); margin-right: 5px; }
.cs-feed { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 2px; max-height: 246px; overflow: hidden; }
.cs-row { display: grid; grid-template-columns: 54px 1fr; gap: 6px; padding: 4px 6px; border-radius: 8px; background: rgba(255, 255, 255, .035); border-left: 2px solid var(--c); }
.cs-row:first-child { animation: cs-in .35s ease-out; }
.cs-row time { font: 500 11px var(--mono); color: var(--mute); padding-top: 1px; } .cs-row b { font-weight: 600; } .cs-row em { color: var(--c); font-style: normal; } .cs-row small { display: block; color: var(--dim); }
@keyframes cs-in { from { opacity: 0; transform: translateY(-6px); background: rgba(255, 255, 255, .16); } to { opacity: 1; transform: none; } }

/* ───────── resumo agora, crises ativas, perto de mim ───────── */
.ins-auto { color: var(--dim); font-size: 10.5px; }
.ins-text { margin-top: 7px; color: #c9d6ea; font-size: 12.5px; line-height: 1.5; }
.ins-list, .nr-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.ins-list button, .nr-list button { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 9px; background: none; border: 0; padding: 6px; border-radius: 9px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.ins-list button:hover, .nr-list button:hover { background: rgba(255, 255, 255, .06); }
.ins-main { min-width: 0; font-size: 12.5px; } .ins-main b { font-weight: 600; } .ins-main small { display: block; color: var(--dim); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nr-list .ins-main b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mute); }
.ins-dot.c-energia { background: #ffc233; } .ins-dot.c-agua { background: #38a9ff; } .ins-dot.c-internet, .ins-dot.c-servicos { background: #b388ff; } .ins-dot.c-ciber { background: #ff6ad5; }
.ins-dot.c-terremoto, .ins-dot.c-tsunami { background: #ff7a2f; } .ins-dot.c-clima { background: #2dd4bf; } .ins-dot.c-incendio { background: #ff3b4e; } .ins-dot.c-vulcao { background: #f97316; } .ins-dot.c-ataque { background: #e11d48; } .ins-dot.c-oficial { background: #9fb3c8; }
.ins-trend { font: 600 11px var(--mono); color: var(--dim); } .ins-trend.up { color: #ff8b99; }
.nr-list em { font: 600 11.5px var(--mono); color: var(--mute); font-style: normal; }
#ctl-near[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); }
#near-panel { position: fixed; z-index: 17; right: calc(var(--gap) * 2 + var(--right-w) + var(--ctl-w, 38px) + 8px); bottom: calc(var(--gap) * 2 + var(--bottom-h)); width: 330px; max-height: min(70vh, 580px); overflow: auto; padding: 12px 14px 14px; border-radius: 16px; font-size: 12.5px; }
#near-panel[hidden] { display: none; } body.hide-right #near-panel { right: calc(var(--gap) + var(--ctl-w, 38px) + 8px); }
.nr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .nr-head b { font: 400 11px 'Michroma', var(--display); letter-spacing: .12em; color: var(--teal); }
.nr-x { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 14px; }
.nr-radii { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.nr-chip { height: 27px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); padding: 0 9px; font: inherit; font-size: 12px; cursor: pointer; } .nr-chip.on { border-color: var(--teal); color: var(--teal); }
.nr-note { color: var(--mute); margin: 4px 0 8px; line-height: 1.45; } .nr-note.warn { color: #ffe19a; }
.nr-go { height: 32px; border-radius: 10px; border: 1px solid var(--teal); background: rgba(56, 169, 255, .15); color: var(--ink); padding: 0 12px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 780px) { #near-panel { left: 8px; right: 8px !important; width: auto; bottom: calc(var(--bottom-h, 0px) + 70px); max-height: 50vh; } }

/* ───────── links legais, aviso da primeira visita, aceite do relato ───────── */
.legal-foot { display: flex; gap: 10px; white-space: nowrap; font-size: 11px; flex: 0 1 auto; min-width: 0; max-width: 34%; overflow: hidden; text-overflow: ellipsis; } /* traduzido fica longo: encolhe e corre para o lado (autofit.js), sem empurrar a faixa de alertas para fora */
.legal-foot a { color: var(--mute); text-decoration: none; } .legal-foot a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 1280px) { .legal-foot a:nth-child(n+3) { display: none; } }
@media (max-width: 900px) { .legal-foot { display: none; } }
.legal-note a { color: var(--teal); }
.dsc-alert { margin: 6px 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255, 59, 78, .55); background: rgba(255, 42, 60, .1); color: #ffd3d8; line-height: 1.5; }
.dsc-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.dsc-nums span { display: grid; text-align: center; padding: 7px 4px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--mute); font-size: 11.5px; }
.dsc-nums b { font: 800 20px/1.1 var(--display); color: var(--ink); }
.dsc-list { margin: 0 0 10px; padding-left: 18px; color: #c9d6ea; line-height: 1.5; font-size: 12.5px; } .dsc-list li { margin: 3px 0; }
#dlg-disclaimer .hint a, .rp-accept a { color: var(--teal); }
.rp-accept { display: flex !important; flex-direction: row !important; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--mute); line-height: 1.45; }
.rp-accept input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--brand-red); }
.card-report { color: var(--mute) !important; font-size: 11.5px; }
@media (max-width: 480px) { .dsc-nums { grid-template-columns: repeat(2, 1fr); } }

/* ───────── céu realista (estrelas e Sol) e botões Globo / Plano ───────── */
#sky-stars { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; }
#sky-stars[hidden] { display: none; }
.mapctl { align-items: flex-end; }
.mapctl .projsw { display: flex; gap: 4px; padding: 3px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-2); }
.mapctl .projsw button { width: 34px; height: 32px; border-radius: 10px; border-color: transparent; background: none; }
.mapctl .projsw button[aria-pressed='true'] { background: rgba(255, 194, 51, .14); border-color: rgba(255, 194, 51, .5); }

.ins-dot.c-financas { background: #fbbf24; }

/* ───────── economia e mercados: barra do topo, tabela, aba Mercados, cartão ───────── */
#fin-strip { position: fixed; z-index: 14; top: calc(var(--gap) * 2 + var(--top-h)); left: calc(var(--gap) * 2 + var(--left-w)); right: calc(var(--gap) * 2 + var(--right-w)); height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 6px 0 6px; border-radius: 14px; transition: left .4s, right .4s; }
#fin-strip[hidden] { display: none; }
body.hide-left #fin-strip { left: var(--gap); } body.hide-right #fin-strip { right: var(--gap); }
body.has-fin .scope-hint { top: calc(var(--gap) * 3 + var(--top-h) + 40px); }
.fs-open { flex: none; height: 28px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .12); color: #fde68a; font: 600 12px var(--body); cursor: pointer; }
.fs-layer select { height: 28px; max-width: 150px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--ink); font: 12px var(--body); padding: 0 6px; }
.fs-layer select option { background: #0a1426; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fs-track { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.fs-track::-webkit-scrollbar { display: none; }
.fs-chip { flex: none; display: flex; align-items: baseline; gap: 6px; height: 28px; padding: 0 9px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--ink); font: 12px var(--body); cursor: pointer; white-space: nowrap; }
.fs-chip:hover { background: rgba(255, 255, 255, .06); border-color: var(--line); }
.fs-chip b { font-weight: 600; color: var(--mute); } .fs-chip span { font-family: var(--mono); font-size: 11.5px; }
.fs-chip i { font-style: normal; font: 600 11px var(--mono); color: var(--mute); } .fs-chip i.up, .mk-chg.up { color: #4ade80; } .fs-chip i.down, .mk-chg.down { color: #f87171; }
.fs-chip.off span { color: var(--dim); font-family: var(--body); font-size: 11px; }
.fs-empty { color: var(--dim); font-size: 12px; padding-left: 4px; }
.fs-x { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 0; background: none; color: var(--dim); cursor: pointer; } .fs-x:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.spark { display: block; } .spark polyline { fill: none; stroke: #4ade80; stroke-width: 1.5; stroke-linejoin: round; } .spark.down polyline { stroke: #f87171; }
.spark .sp-mark { stroke: #fbbf24; stroke-width: 1; stroke-dasharray: 3 2; } .spark .sp-mark.m2 { stroke: #38a9ff; }
#dlg-markets .modal-box { max-width: 920px; }
.mk-g { margin: 14px 0 6px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.mk-rows { display: grid; gap: 2px; }
.mk-row { display: grid; grid-template-columns: 26px minmax(160px, 1.6fr) 1fr 1fr 96px 1fr; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.mk-row:hover { background: rgba(255, 255, 255, .04); }
.mk-row.off { grid-template-columns: 26px minmax(160px, 1.6fr) 3fr; }
.mk-pin { width: 24px; height: 24px; border-radius: 7px; border: 0; background: none; color: var(--dim); font-size: 14px; cursor: pointer; } .mk-pin.on { color: #fbbf24; }
.mk-name b { display: block; font-size: 13px; } .mk-name small, .mk-chg small, .mk-time small, .mk-off small { display: block; color: var(--dim); font-size: 11px; line-height: 1.3; }
.mk-price { font: 600 13px var(--mono); }
.mk-chg { font: 600 12.5px var(--mono); }
.mk-time { font-size: 12px; color: var(--mute); } .mk-time em { margin-left: 6px; font-style: normal; color: #fbbf24; font-size: 11px; } .mk-time a { color: var(--teal); }
.mk-off { color: var(--mute); font-size: 12.5px; }
.mk-legal { margin-top: 12px; }
.mk-tab { padding: 10px 12px 16px; display: grid; gap: 8px; font-size: 12.5px; }
.mk-layers { display: flex; flex-wrap: wrap; gap: 5px; }
.mk-layers button { height: 26px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--mute); font: 11.5px var(--body); cursor: pointer; }
.mk-layers button.on { border-color: rgba(251, 191, 36, .6); color: #fde68a; background: rgba(251, 191, 36, .1); }
.mk-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-h { margin: 8px 0 0; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); display: flex; gap: 6px; align-items: center; }
.mk-radar, .mk-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mk-radar li { padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(251, 191, 36, .25); background: rgba(251, 191, 36, .06); display: grid; gap: 3px; }
.mk-radar small { color: var(--dim); font-size: 11px; }
.mk-rel { text-align: left; background: none; border: 0; padding: 0; color: var(--teal); font: 11.5px var(--body); cursor: pointer; }
.mk-news button { width: 100%; text-align: left; display: grid; gap: 3px; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: none; color: inherit; font: inherit; cursor: pointer; }
.mk-news button:hover { background: rgba(255, 255, 255, .05); border-color: var(--line); }
.mk-news b { font-weight: 600; line-height: 1.35; } .mk-news small { color: var(--dim); font-size: 11px; }
.mk-tag { justify-self: start; display: inline-block; padding: 1px 7px; border-radius: 6px; background: rgba(251, 191, 36, .14); color: #fde68a; font: 600 10.5px var(--mono); letter-spacing: .03em; }
.mk-st { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font: 600 10.5px var(--mono); border: 1px solid var(--line-2); color: var(--mute); }
.mk-st.confirmado { border-color: rgba(74, 222, 128, .5); color: #86efac; } .mk-st.previsto { border-color: rgba(56, 169, 255, .55); color: #93c5fd; } .mk-st.rumor { border-color: rgba(248, 113, 113, .55); color: #fca5a5; }
.fin-card { margin: 0 14px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, .22); background: rgba(251, 191, 36, .05); font-size: 12px; }
.fin-top { margin-bottom: 6px; }
.fin-assets { margin-top: 8px; display: grid; gap: 6px; } .fin-assets small { color: var(--mute); }
.fin-assets div { display: flex; flex-wrap: wrap; gap: 5px; }
.fin-assets button { height: 24px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); font: 11.5px var(--body); cursor: pointer; } .fin-assets button.on { border-color: #fbbf24; color: #fde68a; }
.fin-chart { display: grid !important; gap: 4px; } .fin-chart[hidden] { display: none !important; } .fin-chart small { line-height: 1.4; }
@media (max-width: 1100px) { .mk-row { grid-template-columns: 24px 1.4fr 1fr 1fr; } .mk-row .spark, .mk-row .mk-time { display: none; } }
@media (max-width: 780px) {
  #fin-strip { left: var(--gap) !important; right: var(--gap) !important; top: calc(var(--gap) + var(--top-h) + 6px); }
  .fs-layer { display: none; }
  .mk-row { grid-template-columns: 24px 1fr auto; } .mk-row .mk-chg { grid-column: 3; }
  .mk-row .mk-price { grid-column: 3; grid-row: 1; }
}
.mk-gnote { margin: -2px 0 6px; color: var(--dim); font-size: 11.5px; }

.mk-imp { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font: 600 10.5px var(--mono); border: 1px solid var(--line-2); color: var(--mute); }
.mk-imp.alto { border-color: rgba(248, 113, 113, .6); color: #fca5a5; background: rgba(248, 113, 113, .08); } .mk-imp.medio { border-color: rgba(251, 191, 36, .55); color: #fde68a; }
.mk-top button { border-color: rgba(251, 191, 36, .28) !important; background: rgba(251, 191, 36, .05); }
.mk-why { color: #c9d6ea !important; font-size: 11.5px !important; line-height: 1.4; }
.fin-rel { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; color: var(--mute); font-size: 11.5px; } .fin-rel .stars { font-style: normal; letter-spacing: 2px; color: #fbbf24; }
.fin-why { margin: 0 0 8px; font-size: 12px; line-height: 1.45; color: #d7e2f2; } .fin-why small { color: var(--dim); }

/* ═════════ Mercados — visual de terminal financeiro (v2) ═════════ */
:root { --up: #34d399; --down: #f87171; --gold: #fbbf24; --mk-line: rgba(148, 197, 255, .12); --mk-card: rgba(255, 255, 255, .035); }
.ai-ico { display: block; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.chg { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font: 700 11px var(--mono); white-space: nowrap; background: rgba(255, 255, 255, .06); color: var(--mute); }
.chg.up { color: var(--up); background: rgba(52, 211, 153, .12); } .chg.down { color: var(--down); background: rgba(248, 113, 113, .12); }
.area polyline { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.area.up polyline { stroke: var(--up); } .area.down polyline { stroke: var(--down); }
.area.up .g0 { stop-color: var(--up); stop-opacity: .35; } .area.down .g0 { stop-color: var(--down); stop-opacity: .32; }
.area .g1 { stop-color: #000; stop-opacity: 0; }
.area .dot { fill: #fff; } .area .area-empty { stroke: var(--line-2); stroke-dasharray: 3 3; }
.area .sp-mark { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 2; } .area .sp-mark.m2 { stroke: #38a9ff; }

/* barra do topo */
#fin-strip { height: 44px; padding: 0 6px; gap: 6px; border-radius: 16px; overflow: hidden; }
.fs-open { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(251, 191, 36, .5); background: linear-gradient(180deg, rgba(251, 191, 36, .2), rgba(251, 191, 36, .06)); color: #fde68a; font: 700 12px var(--body); letter-spacing: .02em; }
.fs-open .live-dot { width: 7px; height: 7px; }
.fs-track { position: relative; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 94%, transparent); }
.fs-run { display: flex; gap: 4px; width: max-content; }
.fs-run.marquee { animation: fs-scroll var(--fs-dur, 40s) linear infinite; }
.fs-track:hover .fs-run.marquee { animation-play-state: paused; }
@keyframes fs-scroll { to { transform: translateX(-50%); } }
.fs-gap { flex: none; width: 24px; }
.fs-chip { height: 34px; padding: 0 10px 0 7px; gap: 8px; align-items: center; border-radius: 11px; }
.fs-chip .fs-txt { display: grid; line-height: 1.1; text-align: left; }
.fs-chip .fs-txt b { font: 600 10.5px var(--body); color: var(--mute); letter-spacing: .02em; }
.fs-chip .fs-p { font: 700 12.5px var(--mono); color: var(--ink); }
.fs-chip .area { opacity: .9; }
.fs-chip .fs-wait { color: var(--dim); font-size: 10.5px; }
.fs-chip.flash-up { animation: flash-up 1.4s ease-out; } .fs-chip.flash-down { animation: flash-down 1.4s ease-out; }
@keyframes flash-up { 0% { background: rgba(52, 211, 153, .35); } 100% { background: transparent; } }
@keyframes flash-down { 0% { background: rgba(248, 113, 113, .35); } 100% { background: transparent; } }

/* painel Mercados */
.mk-box { width: 1040px !important; background: radial-gradient(1200px 400px at 20% -10%, rgba(251, 191, 36, .07), transparent 60%), linear-gradient(180deg, #071226, #040a17) !important; border-color: rgba(251, 191, 36, .22) !important; }
.mk-box .modal-head h3 { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.mk-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(52, 211, 153, .4); color: var(--up); font: 700 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.mk-upd { margin-left: auto; margin-right: 8px; color: var(--dim); font: 11.5px var(--mono); }
.mk-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--mk-line); width: max-content; max-width: 100%; overflow-x: auto; }
.mk-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 10px; border: 0; background: none; color: var(--mute); font: 600 13px var(--body); cursor: pointer; white-space: nowrap; }
.mk-tabs button i { font: 700 10px var(--mono); font-style: normal; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--dim); }
.mk-tabs button.on { background: linear-gradient(180deg, rgba(251, 191, 36, .22), rgba(251, 191, 36, .08)); color: #fde68a; box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .35); }
.mk-tabs button.on i { background: rgba(251, 191, 36, .2); color: #fde68a; }
.mk-hero { position: relative; padding: 16px 18px 14px; border-radius: 18px; border: 1px solid var(--mk-line); background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); overflow: hidden; }
.mk-hero::before { content: ""; position: absolute; inset: -40% 40% auto -10%; height: 260px; background: radial-gradient(closest-side, rgba(52, 211, 153, .14), transparent); pointer-events: none; }
.mk-hero.down::before { background: radial-gradient(closest-side, rgba(248, 113, 113, .14), transparent); }
.mh-head { position: relative; display: flex; align-items: center; gap: 12px; }
.mh-id h4 { margin: 0; font: 800 20px var(--display); letter-spacing: -.02em; } .mh-id small { color: var(--mute); font-size: 12px; }
.mh-pin { margin-left: auto; height: 30px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--mute); font: 600 12px var(--body); cursor: pointer; } .mh-pin.on { color: var(--gold); border-color: rgba(251, 191, 36, .5); }
.mh-price { position: relative; display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; flex-wrap: wrap; }
.mh-price > span:first-child { font: 800 36px/1 var(--mono); letter-spacing: -.03em; }
.mh-price .chg { font-size: 13px; padding: 4px 10px; } .mh-price small { color: var(--dim); font-size: 11.5px; }
.mh-chart { position: relative; height: 220px; margin: 6px -4px 0; }
.bc { display: block; width: 100%; height: 220px; touch-action: none; }
.bc-grid { stroke: rgba(148, 197, 255, .08); } .bc-yl, .bc-xl { fill: var(--dim); font: 10.5px var(--mono); }
.bc-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; } .bc.up .bc-line { stroke: var(--up); } .bc.down .bc-line { stroke: var(--down); }
.bc.up .g0 { stop-color: var(--up); stop-opacity: .32; } .bc.down .g0 { stop-color: var(--down); stop-opacity: .3; } .bc .g1 { stop-color: #000; stop-opacity: 0; }
.bc-last { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 2 4; }
.bc-dot { fill: #fff; } .bc-pulse { fill: none; stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: bc-pulse 1.8s ease-out infinite; }
@keyframes bc-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.bc-cross { stroke: rgba(255, 255, 255, .35); stroke-dasharray: 3 3; } .bc-hdot { fill: var(--gold); stroke: #000; }
.bc-tip { position: absolute; top: 4px; width: 120px; padding: 6px 9px; border-radius: 10px; background: rgba(4, 10, 23, .92); border: 1px solid rgba(251, 191, 36, .35); display: grid; gap: 1px; pointer-events: none; }
.bc-tip[hidden] { display: none; }
.bc-tip b { font: 700 13px var(--mono); } .bc-tip span { color: var(--mute); font-size: 11px; }
.bc-empty { display: grid; place-items: center; height: 100%; color: var(--dim); font-size: 12.5px; border: 1px dashed var(--mk-line); border-radius: 12px; text-align: center; padding: 0 20px; }
.mh-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.mh-stats > span { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--mk-line); display: grid; gap: 2px; min-width: 0; }
.mh-stats small { color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; } .mh-stats b { font: 700 12.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mh-stats a { color: var(--teal); font-family: var(--body); }
.mh-off { position: relative; padding: 18px 4px 6px; } .mh-off b { color: var(--gold); } .mh-off p { margin: 6px 0 0; color: var(--mute); }
.mk-heat { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-heat .hm { flex: 1 1 120px; display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 12px; border: 0; color: #fff; font: 600 12px var(--body); cursor: pointer; }
.mk-heat .hm.up { background: rgba(16, 185, 129, var(--k)); } .mk-heat .hm.down { background: rgba(239, 68, 68, var(--k)); } .mk-heat .hm.flat { background: rgba(148, 163, 184, .2); }
.mk-heat .hm span { margin-left: auto; font: 800 12.5px var(--mono); }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mk-tile { position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 12px 6px; border-radius: 16px; border: 1px solid var(--mk-line); background: var(--mk-card); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; overflow: hidden; }
.mk-tile:hover { transform: translateY(-2px); border-color: rgba(148, 197, 255, .3); background: rgba(255, 255, 255, .055); }
.mk-tile.sel { border-color: rgba(251, 191, 36, .6); box-shadow: 0 0 0 1px rgba(251, 191, 36, .25), 0 10px 30px rgba(0, 0, 0, .35); }
.mk-tile .ai-ico { grid-row: 1 / 3; }
.mt-name { min-width: 0; grid-column: 2 / 4; } .mt-name b { display: block; font-size: 13.5px; } .mt-name small { display: block; color: var(--dim); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-price { grid-column: 2; font: 700 15px var(--mono); }
.mk-tile .chg { grid-column: 3; grid-row: 2; justify-self: end; }
.mk-tile .mt-area { grid-column: 1 / -1; width: 100%; height: 34px; margin: 2px 0 0; }
.mk-tile.off { opacity: .62; } .mk-tile.off:hover { opacity: .85; }
.mt-lock { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 11px; padding: 4px 0 6px; }
.mk-src { color: var(--dim); font-size: 11px; line-height: 1.6; margin: 4px 0 0; } .mk-src a { color: var(--teal); }

/* aba Mercados (painel da direita) */
.mk-pulse { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pz { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; align-items: center; padding: 9px 9px 4px; border-radius: 14px; border: 1px solid var(--mk-line); background: var(--mk-card); color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.pz:hover { border-color: rgba(148, 197, 255, .3); }
.pz > span:nth-child(2) { display: grid; min-width: 0; } .pz b { font-size: 11px; color: var(--mute); font-weight: 600; } .pz > span:nth-child(2) span { font: 700 12.5px var(--mono); }
.pz .chg { grid-column: 1 / -1; justify-self: start; font-size: 10.5px; }
.pz .pz-area { grid-column: 1 / -1; width: 100%; height: 26px; }
.mk-cta { width: 100%; height: 36px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, .5); background: linear-gradient(90deg, rgba(251, 191, 36, .22), rgba(251, 191, 36, .05)); color: #fde68a; font: 700 13px var(--body); cursor: pointer; }
.mk-cta:hover { background: linear-gradient(90deg, rgba(251, 191, 36, .32), rgba(251, 191, 36, .1)); }
.mk-actions { display: grid; gap: 6px; }
.rd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: rd-ping 2s infinite; }
@keyframes rd-ping { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .6); } 70% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); } }
.mk-radar li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: start; }
.mk-radar li > div { display: grid; gap: 3px; } .rd-ico { font-size: 16px; }
.mk-quiet { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--mk-line); color: var(--dim); font-size: 12px; }
.mk-news .nw { position: relative; display: grid; gap: 5px; padding: 10px 12px 10px 14px; border-radius: 12px; border: 1px solid var(--mk-line); background: var(--mk-card); overflow: hidden; }
.mk-news .nw::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc, var(--gold)); opacity: .8; }
.mk-news .nw.imp-alto { border-color: rgba(248, 113, 113, .35); background: linear-gradient(90deg, rgba(248, 113, 113, .08), rgba(255, 255, 255, .02)); }
.mk-news .nw.imp-medio { border-color: rgba(251, 191, 36, .28); }
.mk-news .nw.is-cripto { background: linear-gradient(90deg, rgba(247, 147, 26, .1), rgba(255, 255, 255, .02)); }
.mk-news .nw.big b { font-size: 13.5px; }
.nw-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nw-cat { font: 700 10.5px var(--mono); letter-spacing: .04em; color: var(--tc, var(--gold)); text-transform: uppercase; }
.nw-rel { margin-left: auto; font-size: 8px; letter-spacing: 2px; color: var(--gold); } .nw-rel i { font-style: normal; color: rgba(255, 255, 255, .14); }
.nw-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* "há X min" no alto de cada notícia do Mercados, à direita (como na Transmissão ao vivo) */
.nw-top .nw-right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; } /* relevância + hora: sempre juntas, à direita */
.nw-top .nw-right .nw-rel { margin-left: 0; }
.nw-top .nw-ago { font: 600 11px var(--mono); color: var(--mute); }
.nw-assets { display: flex; gap: 2px; flex: none; }
.fin-card { border-left: 3px solid var(--tc, var(--gold)); }
.fin-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fin-rel .meter { display: inline-flex; gap: 3px; } .fin-rel .meter i { width: 16px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); } .fin-rel .meter i.on { background: linear-gradient(90deg, #fbbf24, #f97316); }
.fin-assets button { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 780px) {
  .mk-box { width: 100% !important; }
  .mh-price > span:first-child { font-size: 28px; }
  .mh-stats { grid-template-columns: 1fr 1fr; }
  .mk-grid { grid-template-columns: 1fr 1fr; }
  .mk-tile { grid-template-columns: 26px 1fr; } .mk-tile .chg { grid-column: 2; grid-row: auto; justify-self: start; }
  .fs-chip .area { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fs-run.marquee, .bc-pulse, .rd-dot { animation: none; } }
body.lite .bc-pulse, body.lite .rd-dot { animation: none; }
.fs-track { overflow: hidden; display: block; }
.mk-news button.nw { width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }

.nw-art { justify-self: start; padding: 1px 7px; border-radius: 6px; background: rgba(56, 169, 255, .14); color: #93c5fd; font: 700 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.mk-all { margin-left: auto; color: var(--teal); font: 600 11px var(--body); text-transform: none; letter-spacing: 0; text-decoration: none; }
.mk-arts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mk-arts a { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(56, 169, 255, .25); background: linear-gradient(160deg, rgba(56, 169, 255, .09), rgba(255, 255, 255, .02)); color: inherit; text-decoration: none; }
.mk-arts a:hover { border-color: rgba(56, 169, 255, .5); }
.mk-arts b { display: block; font-size: 13px; line-height: 1.35; } .mk-arts small { display: block; margin-top: 3px; color: var(--mute); font-size: 11.5px; line-height: 1.4; }
.fin-art { display: block; margin: 0 0 8px; padding: 8px 11px; border-radius: 10px; background: rgba(56, 169, 255, .12); border: 1px solid rgba(56, 169, 255, .35); color: #bfdbfe; font-weight: 600; font-size: 12.5px; text-decoration: none; }
.fin-art:hover { background: rgba(56, 169, 255, .2); }

/* ───────── cartão e painel de mercados: ajustes de layout ───────── */
.card-body .loc-warn { margin: 12px 0 0; }
.card-body .fin-card { margin: 4px 0 12px; }
.card .kv dd, .fin-card .kv dd { min-width: 0; overflow-wrap: anywhere; }
.fin-card .kv { margin: 0; }
.fin-card .fin-why { margin: 4px 0 8px; }
.card-foot { flex-wrap: wrap; row-gap: 6px; }
.card-acts { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
/* abas do painel da direita: cabem as três (Ao vivo · Mercados · Chat) sem quebrar */
/* em qualquer idioma: se os nomes traduzidos não couberem numa linha, as abas descem para a linha de baixo
   (nada de cortar o texto nem de rolar para o lado); o ✕ do painel fica fixo no canto */
.tabs { position: relative; gap: 0; row-gap: 2px; flex-wrap: wrap; padding: 6px 34px 0 8px; overflow: visible; }
.tab { flex: none; white-space: nowrap; gap: 5px; padding: 8px 8px 10px; font-size: 13.5px; }
.tab .count { padding: 1px 6px; font-size: 10px; }
.tab .count.soon { font-size: 9.5px; padding: 1px 6px; }
.tabs .deck-x { position: absolute; top: 9px; right: 6px; margin: 0; flex: none; }
@media (max-width: 380px) { .tab { padding: 8px 6px 10px; font-size: 13px; } .tabs { padding-left: 6px; } }
/* aba Mercados mais estreita: pulso em 1 coluna quando o painel for estreito */
@media (max-width: 1280px) { .mk-pulse { grid-template-columns: 1fr 1fr; } .pz .pz-area { height: 22px; } }
@container (max-width: 300px) { .mk-pulse { grid-template-columns: 1fr; } }
.mk-news .nw b { overflow-wrap: anywhere; }
.nw-foot small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* celular: com um cartão aberto, os botões do mapa saem da frente (ficavam por cima do cartão) */
@media (max-width: 780px) { body:has(.maplibregl-popup) .mapctl { opacity: 0; pointer-events: none; transform: translateX(16px); } }
/* celular: o cartão vira uma folha fixa acima da barra de navegação (antes descia atrás dela e escondia o rodapé) */
@media (max-width: 780px) {
  .maplibregl-popup { position: fixed !important; left: 8px !important; right: 8px !important; top: auto !important; bottom: calc(env(safe-area-inset-bottom, 0px) + 74px) !important; transform: none !important; max-width: none !important; z-index: 40; }
  .maplibregl-popup-tip { display: none !important; }
  .maplibregl-popup .card { width: auto; max-width: none; max-height: min(64dvh, 560px); }
  .maplibregl-popup .card-top { padding-top: 12px; }
  .maplibregl-popup .card h4 { font-size: 15px; }
  .pl-leader { display: none !important; }
}
@media (max-width: 780px) {
  body:has(.maplibregl-popup) .scope-hint { display: none !important; } /* a dica do topo cobria o título do cartão */
  .maplibregl-popup .card-foot > span:first-child { flex: 1 1 100%; }
  .maplibregl-popup .card-acts { flex: 1 1 100%; justify-content: space-between; gap: 8px !important; }
}

/* aba Mercados: a própria aba rola (roda do mouse, toque e teclado); antes o conteúdo passava da altura e era cortado */
#tab-mercados { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#tab-mercados > .mk-tab { flex: none; }

/* ───────── período no topo (Tudo · 1 h · 12 h · 24 h) ───────── */
.time-seg { flex: none; margin: 0; grid-auto-columns: auto; border-radius: 12px; height: 38px; align-items: stretch; }
.time-seg button { padding: 0 11px; font-size: 12.5px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.time-seg button:hover { color: var(--ink); }
.time-seg button.active { background: var(--amber); color: #1a1200; }
@media (max-width: 1240px) { .time-seg button { padding: 0 8px; } }
@media (max-width: 780px) {
  /* celular: fica logo abaixo do topo, à esquerda; o aviso de escopo desce um pouco */
  .time-seg { position: absolute; z-index: 19; top: calc(100% + 6px); left: 0; height: 34px; background: rgba(10, 16, 32, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .time-seg button { padding: 0 10px; font-size: 12px; }
  .scope-hint { top: calc(var(--gap) + var(--top-h) + 46px); }
  /* com a faixa de cotações visível (ela fica logo abaixo do topo), o período desce para baixo dela */
  body:has(#fin-strip:not([hidden])) .time-seg { top: calc(100% + 56px); } /* o topo (com desfoque) é a referência da posição */
  body:has(#fin-strip:not([hidden])) .scope-hint { top: calc(var(--gap) + var(--top-h) + 96px); }
  body:has(.maplibregl-popup) .time-seg, body.m-left .time-seg, body.m-right .time-seg { display: none; }
}

/* ───────── aba Mercados sem rolagem para o lado ─────────
   As linhas "cidade · fonte · hora" (sem quebra) faziam a coluna da grade ficar mais larga que o painel:
   o conteúdo passava ~10 px por baixo da barra de rolagem e era preciso rolar para o lado. Agora cada coluna
   pode encolher até a largura do painel e o texto longo termina em "…". */
#tab-mercados { overflow-x: hidden; }
.mk-tab, .mk-news, .mk-radar, .mk-arts, .mk-news .nw, .mk-radar li > div { grid-template-columns: minmax(0, 1fr); }
.mk-tab > *, .mk-news li, .mk-news .nw > *, .mk-radar li > div > *, .nw-foot, .mk-arts li { min-width: 0; }
.mk-radar li { grid-template-columns: 22px minmax(0, 1fr); }
.mk-arts a { grid-template-columns: 18px minmax(0, 1fr); }
.mk-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pz > span:nth-child(2) span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-layers button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-actions > * { max-width: 100%; }

/* ───────── botões do mapa em várias colunas (telas baixas) — a disposição é calculada em app.js ───────── */
.mapctl.mc-grid { display: grid; grid-auto-columns: auto; gap: 6px; justify-items: end; align-items: end; }

/* aviso do topo ("A porcentagem acima é do…"): centrado na área livre do mapa, sem cobrir a coluna de botões */
@media (min-width: 781px) {
  .scope-hint { left: calc(var(--gap) * 2 + var(--left-w)); right: calc(var(--gap) * 3 + var(--right-w) + 84px); transform: none; margin-inline: auto; width: fit-content; max-width: 680px; }
  body.hide-left .scope-hint { left: var(--gap); }
  body.hide-right .scope-hint { right: calc(var(--gap) * 2 + 84px); }
  body.hide-left.hide-right .scope-hint { max-width: 680px; }
}
@media (min-width: 781px) and (max-width: 1080px) { .scope-hint { left: var(--gap); } }

/* aba Ao vivo: a linha "fonte · local" termina em "…" dentro do painel (antes passava da borda e era cortada) */
.feed .sub { display: block; }
/* celular: os avisos de alerta novo ficam ao lado da coluna de botões do mapa, sem cobrir o zoom */
@media (max-width: 780px) { .toasts { right: calc(var(--gap) + var(--ctl-w, 36px) + 8px) !important; } }

/* tablet / celular deitado (781–1080 px): o painel esquerdo vira gaveta, então a faixa de cotações e a barra do
   histórico começam na borda (antes ficava um vão de ~320 px à esquerda) */
@media (min-width: 781px) and (max-width: 1080px) { #fin-strip, #replay-bar { left: var(--gap); } }
/* topo: quando falta largura, a frase sob o número termina em "…" em vez de passar por baixo dos botões ao lado */
.pulse { overflow: hidden; }
.pulse-main { flex: 0 1 auto; min-width: 0; }
/* a frase sob o número: curta; se a tradução for mais longa, quebra em até 2 linhas em vez de virar "…" */
.pulse-lbl { white-space: normal; line-height: 1.2; max-width: 190px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* notebooks (1081–1660 px): topo um pouco mais compacto para a frase sob o número caber */
/* o detalhe ao lado do número (clientes sem serviço, fonte) só aparece quando cabe; senão fica no botão "?" */
@media (max-width: 1880px) { .pulse-side { display: none; } }
@media (max-width: 1660px) and (min-width: 1081px) {
  .top { gap: 12px; }
  .cta span { display: none; } .cta { padding: 0 12px; }
  .time-seg button { padding: 0 8px; }
  .tile { min-width: 0; padding: 8px 9px; }
  .ibtn { min-width: 36px; padding: 0 8px; }
}

/* Painel de mercados: as abas de categoria quebram em linhas (antes era preciso rolar para o lado para achar as últimas) */
.mk-tabs { flex-wrap: wrap; width: auto; overflow: visible; }
.mk-tabs button { flex: 0 1 auto; }
.mh-stats b a { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 780px) { .mk-tabs button { height: 30px; padding: 0 10px; font-size: 12.5px; } }
/* aba Mercados: quando chegou a última cotação de cripto e quando vem a próxima */
.mk-stamp { margin: -2px 0 0; color: var(--dim); font: 11px var(--mono); }
.mk-stamp:empty { display: none; }

/* ───────── ícones reais: bandeiras (moedas e índices) e logotipos (criptomoedas) ───────── */
.ai-img { position: relative; display: inline-block; flex: none; vertical-align: middle; }
.ai-img > img.ai-flag, .ai-img > img.ai-logo { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #0b1220; }
.ai-img > img.ai-flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.ai-img > img.ai-sub, .ai-img > .ai-badge { position: absolute; right: -2px; bottom: -2px; width: 44%; height: 44%; border-radius: 50%; box-shadow: 0 0 0 1.5px #0b1220; }
.ai-img > template { display: none; }
/* Panorama: bandeira do país no lugar da sigla */
.rank .iso.flag { padding: 0; background: none; line-height: 0; }
.rank .iso.flag img { width: 30px; height: 22px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }

/* ───────── aviso de texto feito por IA (título e resumo reescritos a partir da fonte) ───────── */
.badge.ai-b { background: rgba(167, 139, 250, .16); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, .4); }
.ai-note { margin: -2px 0 10px !important; padding: 7px 10px; border-radius: 9px; border: 1px solid rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .08); color: #d6ccfb !important; font-size: 11.5px; line-height: 1.4; }
.ai-note b { color: #c4b5fd; }
.ai-tag { flex: none; display: inline-block; padding: 0 5px; border-radius: 5px; border: 1px solid rgba(167, 139, 250, .45); color: #c4b5fd; font: 700 9.5px/15px var(--mono); letter-spacing: .03em; }
.mk-news .ai-tag { justify-self: start; }
/* preço do ativo numa linha só ("US$ 64.948", não "US$" em cima e o número embaixo) */
.mt-price, .pz > span:nth-child(2) span, .fs-chip .fs-p { white-space: nowrap; }
@media (max-width: 780px) { .mt-price { font-size: 14px; overflow: hidden; text-overflow: ellipsis; } }

/* ───────── calculadora de conversão ───────── */
.fs-conv { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 10px; border: 1px solid rgba(56, 169, 255, .5); background: linear-gradient(180deg, rgba(56, 169, 255, .2), rgba(56, 169, 255, .06)); color: #bfdbfe; font: 700 12px var(--body); cursor: pointer; white-space: nowrap; }
.fs-conv:hover { background: rgba(56, 169, 255, .28); }
@media (max-width: 1500px) { .fs-conv span { display: none; } .fs-conv { padding: 0 9px; } } /* faixa estreita: só o ícone (o nome fica na dica) */
.mk-cta2 { border-color: rgba(56, 169, 255, .5); background: linear-gradient(90deg, rgba(56, 169, 255, .2), rgba(56, 169, 255, .05)); color: #bfdbfe; }
.cv-box { width: 520px; gap: 12px; }
.cv-lead { margin: -4px 0 0; }
.cv-row { display: grid; gap: 5px; }
.cv-row input { font: 700 22px var(--mono) !important; padding: 10px 12px !important; }
.cv-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.cv-side { display: grid; gap: 5px; min-width: 0; }
.cv-lbl { font-size: 12px; color: var(--mute); }
.cv-pick { display: flex; align-items: center; gap: 9px; width: 100%; min-width: 0; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--ink); text-align: left; cursor: pointer; }
.cv-pick:hover, .cv-pick.open { border-color: var(--teal); }
.cv-pick > span:not(.ai-img) { display: grid; min-width: 0; flex: 1; line-height: 1.2; }
.cv-pick b { font: 700 14px var(--mono); } .cv-pick small { color: var(--mute); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-pick i { font-style: normal; color: var(--dim); }
.cv-swap { width: 40px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--amber); font-size: 18px; cursor: pointer; }
.cv-swap:hover { border-color: var(--amber); }
.cv-list { border: 1px solid var(--line-2); border-radius: 14px; background: #06121a; padding: 8px; display: grid; gap: 6px; }
.cv-q { width: 100%; }
.cv-opts { max-height: 290px; overflow-y: auto; display: grid; gap: 2px; overscroll-behavior: contain; }
.cv-g { margin: 8px 4px 2px; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cv-opts button { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr); align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.cv-opts button:hover { background: rgba(255, 255, 255, .06); } .cv-opts button.on { background: rgba(56, 169, 255, .14); }
.cv-opts b { font: 700 12.5px var(--mono); overflow: hidden; text-overflow: ellipsis; } .cv-opts span:not(.ai-img) { color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-out { border-radius: 16px; padding: 14px 16px; background: linear-gradient(160deg, rgba(56, 169, 255, .1), rgba(255, 255, 255, .02)); border: 1px solid rgba(56, 169, 255, .25); }
.cv-res { display: grid; gap: 2px; } .cv-res small { color: var(--mute); font: 13px var(--mono); }
.cv-res b { font: 800 30px/1.15 var(--mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.cv-rate { margin: 8px 0 0; color: #c9d6ea; font: 12px var(--mono); }
.cv-src { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.cv-src li { display: flex; gap: 7px; align-items: flex-start; color: var(--dim); font-size: 11.5px; line-height: 1.4; } .cv-src li b { color: var(--mute); font-weight: 600; }
.cv-src li.old em { color: #fbbf24; font-style: normal; }
.cv-fine { margin: 0; color: var(--dim); font-size: 11px; line-height: 1.45; }
@media (max-width: 780px) {
  .cv-box { width: 100%; }
  .cv-res b { font-size: 24px; }
  .cv-pick small { display: none; }
  .cv-opts button { grid-template-columns: 22px 54px minmax(0, 1fr); }
}

/* ───────── tipo de cotação: ao vivo · há X · atrasada · referência ───────── */
.fr { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; font: 700 10px/16px var(--mono); letter-spacing: .03em; white-space: nowrap; border: 1px solid transparent; }
.fr i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; animation: core 1.6s ease-in-out infinite; }
.fr-live { color: #4ade80; border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .1); text-transform: uppercase; }
.fr-recent { color: #93c5fd; border-color: rgba(147, 197, 253, .35); background: rgba(147, 197, 253, .07); }
.fr-late { color: #fbbf24; border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); text-transform: uppercase; }
.fr-ref { color: #a8b3c7; border-color: rgba(168, 179, 199, .35); background: rgba(168, 179, 199, .06); text-transform: uppercase; }
.frd { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.frd.fr-live { background: #4ade80; box-shadow: 0 0 6px #4ade80; } .frd.fr-recent { background: #93c5fd; } .frd.fr-late { background: #fbbf24; } .frd.fr-ref { background: #7c8aa3; }
.mk-tile .mt-fr { grid-column: 1 / -1; grid-row: 4; justify-self: start; line-height: 0; }
.mk-tile .mt-area { grid-row: 3; }
.mh-price .fr { font-size: 10.5px; }
.cv-src .fr { vertical-align: 1px; margin-right: 2px; }
/* períodos do gráfico, busca e moeda do país em foco */
.mh-range { position: relative; display: flex; gap: 4px; margin: 6px 0 0; }
.mh-range button { height: 26px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--mute); font: 600 11.5px var(--body); cursor: pointer; }
.mh-range button.on { border-color: rgba(251, 191, 36, .6); color: #fde68a; background: rgba(251, 191, 36, .1); }
.mk-search { width: 100%; height: 40px; padding: 0 14px !important; border-radius: 12px !important; font-size: 14px; }
.mk-found { margin: 0 0 6px; color: var(--mute); font-size: 12px; }
.mk-cur { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(56, 169, 255, .3); background: linear-gradient(160deg, rgba(56, 169, 255, .1), rgba(255, 255, 255, .02)); }
.mk-cur > div { display: grid; gap: 2px; min-width: 0; }
.mk-cur small { color: var(--mute); font-size: 11px; } .mk-cur b { font-size: 13px; } .mk-cur span.notranslate { font: 600 12px var(--mono); color: #c9d6ea; overflow-wrap: anywhere; }
.mk-cur .fr { justify-self: start; }
.mk-cur .btn { height: 30px; padding: 0 10px; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .fr i { animation: none; } }
/* painel Mercados estreito: horário de atualização embaixo do título, botões sem quebrar */
@media (max-width: 560px) { .mk-box .modal-head { flex-wrap: wrap; } .mk-upd { order: 3; flex-basis: 100%; margin: 0; } }
.mh-range button, .mh-pin { white-space: nowrap; }

/* ───────── mapa de calor financeiro ───────── */
.fs-heat { border-color: rgba(74, 222, 128, .45); background: linear-gradient(180deg, rgba(74, 222, 128, .16), rgba(74, 222, 128, .04)); color: #bbf7d0; }
.mk-cta3 { border-color: rgba(74, 222, 128, .45); background: linear-gradient(90deg, rgba(74, 222, 128, .18), rgba(74, 222, 128, .04)); color: #bbf7d0; }
.hm-box { width: 1180px !important; max-width: 96vw; background: linear-gradient(180deg, #06111f, #040a17) !important; gap: 10px; }
.hm-ctl { display: grid; gap: 6px; }
.hm-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hm-lbl { flex: none; width: 72px; color: var(--mute); font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.hm-chips button { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--mute); font: 600 12px var(--body); cursor: pointer; white-space: nowrap; }
.hm-chips button:hover { color: var(--ink); }
.hm-chips button.on { border-color: rgba(251, 191, 36, .6); color: #fde68a; background: rgba(251, 191, 36, .12); }
.hm-check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; margin-left: 6px; font-size: 12px !important; color: var(--mute); cursor: pointer; }
.hm-warn { padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .08); color: #fde68a; font-size: 12.5px; }
.hm-legend { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--mute); font: 11px var(--mono); }
.hm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hm-legend i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; }
.hm-legend .hl-na { background: #2b3446; }
.hm-chart { height: min(62vh, 640px); min-height: 320px; border-radius: 14px; overflow: hidden; background: #020817; border: 1px solid var(--mk-line); }
.hm-stats { display: grid; gap: 10px; }
.hs-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hs-nums span { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--mk-line); color: var(--dim); font-size: 11px; }
.hs-nums b { font: 800 18px var(--mono); color: var(--ink); }
.hm-box .up { color: #4ade80 !important; } .hm-box .down { color: #f87171 !important; }
.hs-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hs-lists h5 { margin: 0 0 4px; color: var(--mute); font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.hs-lists button { width: 100%; display: grid; grid-template-columns: 18px 64px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 8px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.hs-lists button:hover { background: rgba(255, 255, 255, .05); }
.hs-lists b { font: 700 12px var(--mono); overflow: hidden; text-overflow: ellipsis; } .hs-lists span:not(.ai-img) { color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-lists em { font: 700 12px var(--mono); font-style: normal; }
.hm-detail { padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(251, 191, 36, .3); background: linear-gradient(160deg, rgba(251, 191, 36, .06), rgba(255, 255, 255, .02)); display: grid; gap: 8px; }
.hd-head { display: flex; align-items: center; gap: 12px; } .hd-head > div { flex: 1; min-width: 0; }
.hd-head h4 { margin: 0; font: 800 18px var(--display); } .hd-head h4 small { color: var(--mute); font: 600 12px var(--mono); margin-left: 6px; } .hd-head > div > small { color: var(--dim); font-size: 12px; }
.hd-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .hd-price b { font: 800 26px var(--mono); } .hd-price > span:last-child { font: 700 13px var(--mono); }
.hd-meta { color: var(--dim); font-size: 11.5px; }
.hd-chart { position: relative; min-height: 220px; }
.hd-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-fine { margin: 0; color: var(--dim); font-size: 11px; line-height: 1.45; }
@media (max-width: 780px) {
  .hm-box { width: 100% !important; max-width: 100vw; padding: 14px 12px !important; }
  .hm-lbl { width: 100%; }
  .hm-chips button { height: 30px; padding: 0 9px; } /* os 17 períodos quebram em linhas (nada de rolar para o lado) */
  .hm-chart { min-height: 300px; }
  .hs-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-lists { grid-template-columns: 1fr; }
  .hm-check { margin-left: 0; }
}
.mk-cur-acts { display: grid; gap: 4px; }
/* mapa de calor: a janela rola; o mapa e os blocos não são espremidos pela coluna da janela */
.hm-box > * { flex: none; }

/* camada dos cartões de alerta: mesma posição do mapa (tela toda), fora dele para o tradutor automático alcançar */
#popup-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
#popup-layer > * { pointer-events: auto; }

/* ───────── ataques cibernéticos: painel na aba "Cyber attacks" do painel da esquerda ───────── */
/* modo vídeo (/?video=1): só o globo e a camada do vídeo (public/video.js, que fica FORA do body, junto com a .splash).
   html.pa-video-ui → o site inteiro aparece, como o visitante vê (parte "como funciona" do vídeo);
   html.pa-vintro   → a abertura oficial da marca (public/intro.js controlada quadro a quadro);
   html.pa-stage    → o site vira uma tela flutuando em 3D sobre as estrelas (transform no body, controlado pelo vídeo). */
html.pa-video:not(.pa-video-ui) body > :not(#map) { display: none !important; }
html.pa-video #map { position: fixed; inset: 0; }
html.pa-video:not(.pa-vintro) .splash { display: none !important; }
html.pa-vintro .splash { opacity: 1 !important; visibility: visible !important; transition: none !important; pointer-events: none !important; }
html.pa-video-ui body > :not(#map) { opacity: var(--ui-o, 1); }
html.pa-stage { overflow: hidden; background-color: #01030a; }
html.pa-stage body { position: relative; width: 100vw; height: 100vh; overflow: hidden; transform-origin: 50% 50%; border-radius: var(--stage-r, 0); box-shadow: 0 0 0 1px rgba(120, 170, 255, var(--stage-edge, 0)), 0 3vmin 12vmin rgba(0, 0, 0, .7), 0 0 10vmin rgba(60, 130, 255, calc(var(--stage-edge, 0) * .45)); }
.cy-sec { display: contents; } /* partes do painel (redesenhadas separadamente) não mudam o layout */
#ltab-cyber #cyber-panel { position: static; width: auto; max-height: none; overflow: visible; padding: 12px 14px 16px; border-radius: 0; background: none; box-shadow: none; border: 0; }
.tab-cyber .cy-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 8px #ff3b4e; animation: core 1.6s ease-in-out infinite; }
.tab-cyber .count { background: rgba(255, 59, 78, .18); color: #ff8b99; }
.cy-switch { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 11.5px; color: var(--mute); user-select: none; }
.cy-switch input { display: none; }
.cy-switch i { position: relative; width: 32px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .2s; flex: none; }
.cy-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cy-switch input:checked + i { background: #ff3b4e; } .cy-switch input:checked + i::after { transform: translateX(14px); }
/* ───────── chamar atenção para os ataques ao vivo: aba vermelha cheia + escudo vermelho com radar, "LIVE" e tremidinha ───────── */
@keyframes cy-pill { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 78, .75), 0 0 12px rgba(255, 59, 78, .85); } 70% { box-shadow: 0 0 0 9px rgba(255, 59, 78, 0), 0 0 18px rgba(255, 59, 78, .95); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0), 0 0 12px rgba(255, 59, 78, .85); } }
@keyframes cy-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 78, .85), 0 0 16px rgba(255, 59, 78, .9); } 75% { box-shadow: 0 0 0 16px rgba(255, 59, 78, 0), 0 0 22px rgba(255, 59, 78, 1); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0), 0 0 16px rgba(255, 59, 78, .9); } }
@keyframes cy-ring { 0% { transform: scale(1); opacity: .95; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes cy-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .2; } }
@keyframes cy-wiggle { 0%, 84%, 100% { transform: none; } 86% { transform: rotate(-14deg) scale(1.12); } 89% { transform: rotate(12deg) scale(1.12); } 92% { transform: rotate(-9deg) scale(1.08); } 95% { transform: rotate(6deg) scale(1.04); } }

/* aba "Cyber attacks": pílula vermelha cheia, texto branco, bolinha branca piscando */
.tab.tab-cyber { color: #fff; font-weight: 800; background: linear-gradient(180deg, #ff5263, #d8132c); border: 0; border-radius: 999px; padding: 5px 11px 5px 9px; margin: 3px 0 5px 4px; align-self: center; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); animation: cy-pill 1.3s ease-out infinite; }
.tab.tab-cyber:hover { filter: brightness(1.12); color: #fff; }
.tab.tab-cyber.active { outline: 2px solid #fff; outline-offset: 2px; color: #fff; }
.tab.tab-cyber .cy-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: cy-blink .9s steps(1, end) infinite; }
.tab.tab-cyber .count { background: #fff; color: #d8132c; font-weight: 800; text-shadow: none; }
.tab.tab-cyber .count { display: none; } /* o número de ataques por minuto já aparece dentro do painel; na aba ele empurrava a pílula para fora da barra */

/* escudo perto do mapa: botão vermelho cheio, ondas de radar saindo, selo "LIVE" piscando e uma tremidinha a cada ~5 s */
#ctl-cyber, #ctl-cyber[aria-pressed] { position: relative; color: #fff; background: radial-gradient(circle at 50% 30%, #ff7480, #e3132f 72%); border: 1px solid #ffc2c8; animation: cy-ping 1.3s ease-out infinite, cy-wiggle 5s ease-in-out 1s infinite; }
#ctl-cyber:hover { color: #fff; border-color: #fff; filter: brightness(1.12); }
#ctl-cyber svg { width: 19px; height: 19px; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .7)); }
#ctl-cyber::before { content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid #ff3b4e; animation: cy-ring 1.3s ease-out .65s infinite; pointer-events: none; }
#ctl-cyber::after { content: 'LIVE'; position: absolute; top: -8px; left: -12px; padding: 2px 4px; border-radius: 5px; background: #fff; color: #e3132f; font: 800 8.5px/1 var(--display, sans-serif); letter-spacing: .04em; box-shadow: 0 0 8px rgba(255, 59, 78, .9); animation: cy-blink .9s steps(1, end) infinite; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .tab.tab-cyber, .tab.tab-cyber .cy-dot, #ctl-cyber, #ctl-cyber::before, #ctl-cyber::after { animation: none; }
  .tab.tab-cyber { box-shadow: 0 0 14px rgba(255, 59, 78, .9); }
  #ctl-cyber { box-shadow: 0 0 18px rgba(255, 59, 78, 1); }
  #ctl-cyber::before { display: none; }
}

/* texto cortado que corre para o lado (autofit.js): sem "…" enquanto rola */
.af-run { text-overflow: clip !important; cursor: default; }

/* rodapé: os links jurídicos ficam num botão "Info" (cabe em qualquer idioma; a faixa de alertas não some) */
.ticker { min-width: 160px; }
.legal-menu { position: relative; flex: none; font-size: 11.5px; }
.legal-menu summary { list-style: none; cursor: pointer; color: var(--mute); padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; user-select: none; }
.legal-menu summary::-webkit-details-marker { display: none; }
.legal-menu summary:hover, .legal-menu[open] summary { color: var(--ink); border-color: var(--amber); }
.legal-list { position: absolute; z-index: 40; right: 0; bottom: calc(100% + 10px); display: flex; flex-direction: column; gap: 2px; padding: 7px; min-width: 190px; max-width: min(320px, 90vw); background: var(--glass-2); border: 1px solid var(--line-2); border-radius: 13px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.legal-list a { color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.legal-list a:hover { background: rgba(255, 255, 255, .07); color: var(--amber); }
.loc-foot { max-width: min(300px, 22%); }
/* rodapé traduzido: a faixa de alertas tem prioridade; "online · atualizado…" encolhe parado (texto completo no mouse) */
.ticker { flex: 1 1 280px; min-width: 200px; }
.viewers { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1500px) { .viewers .vw-more { display: none; } }
/* menu de baixo do celular traduzido ("Transmissão ao vivo"): até 2 linhas, juntinhas, sem estourar o botão */
@media (max-width: 780px) { .mnav button span { line-height: 1.08; text-align: center; max-width: 100%; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
/* feed traduzido: se o horário ("il y a 8 minutes") não couber ao lado das etiquetas, desce para a linha de baixo */
.feed .meta { flex-wrap: wrap; row-gap: 3px; }
.feed time { white-space: nowrap; }
/* prioridade no rodapé: alertas > Info > contador ("● 3 online" nunca some); aviso de localização só com espaço de sobra */
.viewers { flex: none; }
@media (max-width: 1700px) { .loc-foot { display: none; } }
