/* ==========================================================================
   Em Contexto — branco/preto + dark mode, pílulas FATO (verde) e FAKE (vermelho),
   e coluna lateral no desktop com contagem por candidato.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #0f1419;
  --muted: #536471;
  --line: #eff3f4;
  --line-strong: #cfd9de;
  --soft: #f7f9f9;
  --chip: #eff3f4;
  --strong: #0f1419;
  --on-strong: #ffffff;
  --hover: rgba(15, 20, 25, .03);
  --glass: rgba(255, 255, 255, .82);
  --shadow: 0 8px 28px rgba(15, 20, 25, .12);
  --fact: #15803d;
  --fact-soft: rgba(21, 128, 61, .1);
  --fake: #dc2626;
  --fake-soft: rgba(220, 38, 38, .1);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, .1);
  --radius: 16px;
  --col: 840px;
  --rail: 316px;
  --rail-gap: 24px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #000000;
  --text: #e7e9ea;
  --muted: #8b9096;
  --line: #2f3336;
  --line-strong: #536471;
  --soft: #16181c;
  --chip: #202327;
  --strong: #e7e9ea;
  --on-strong: #000000;
  --hover: rgba(231, 233, 234, .03);
  --glass: rgba(0, 0, 0, .72);
  --shadow: 0 8px 28px rgba(0, 0, 0, .6);
  --fact: #16a34a;
  --fact-soft: rgba(34, 197, 94, .14);
  --fake: #ef4444;
  --fake-soft: rgba(239, 68, 68, .14);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, .14);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-padding-top: 120px; }
body { margin: 0; font-size: 15px; line-height: 1.5; background: var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--strong); color: var(--on-strong); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.icon { flex-shrink: 0; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 10px; top: 10px; transform: translateY(-200%); background: var(--strong); color: var(--on-strong); padding: 10px 14px; z-index: 50; border-radius: 999px; }
.skip:focus { transform: none; }

/* ---------- Cabeçalho ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead-row { height: 56px; max-width: var(--col); margin: auto; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.brand { font-size: 1.3rem; letter-spacing: -.045em; font-weight: 800; white-space: nowrap; margin-right: 6px; }
.brand span { font-weight: 400; }
.search-pill {
  flex: 1; min-width: 0; height: 40px;
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: var(--chip); border: 1px solid transparent; border-radius: 999px;
  color: var(--muted); font-size: .9rem; text-align: left;
  transition: border-color .15s, background .15s;
}
.search-pill svg { width: 18px; height: 18px; flex-shrink: 0; }
.search-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-pill:hover { border-color: var(--line-strong); }
.search-pill[aria-expanded=true], .search-pill.has-filter { background: var(--bg); border-color: var(--text); color: var(--text); }
.icon-button {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  color: var(--text); transition: background .15s;
}
.icon-button svg { width: 22px; height: 22px; }
.icon-button:hover { background: var(--chip); }
.icon-button.small { width: 34px; height: 34px; }
.icon-button.small svg { width: 18px; height: 18px; }
.alert-count {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  line-height: 16px; border-radius: 999px; background: var(--strong); color: var(--on-strong);
  font-size: 10px; font-weight: 700; text-align: center;
}

/* Abas (X: "Para você / Seguindo") */
.tabs { max-width: var(--col); margin: auto; display: flex; }
.tab { flex: 1; height: 48px; position: relative; color: var(--muted); font-weight: 600; font-size: .92rem; transition: background .15s; }
.tab:hover { background: var(--hover); }
.tab span { display: inline-flex; align-items: center; gap: 6px; height: 100%; position: relative; }
.tab.active { color: var(--text); font-weight: 750; }
.tab.active span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--text); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* Painéis (busca avançada e sobre) */
.header-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(var(--col), 100%); max-height: calc(100dvh - 120px); overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  padding: 16px; z-index: 21;
}
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 15; }
.search-form { display: flex; flex-direction: column; gap: 12px; }
.search-field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 16px; border: 1.5px solid var(--text); border-radius: 999px; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--text); }
.search-field input::placeholder { color: var(--muted); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-filter-toggle {
  width: 100%; min-height: 38px; padding: 6px 12px;
  border-radius: 12px; background: var(--soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--text);
  transition: border-color .15s, background .15s;
}
.search-filter-toggle:hover { border-color: var(--line-strong); }
.search-filter-toggle.has-active { border-color: var(--text); }
.sft-action { display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; color: var(--muted); font-weight: 700; }
.filter-groups { display: flex; flex-direction: column; gap: 14px; padding-top: 2px; }
.filter-group h3 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.panel-results { font-size: .8rem; color: var(--muted); margin-left: auto; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.panel-heading h2 { font-size: 1.1rem; font-weight: 800; }

/* ---------- Botões e chips ---------- */
.button {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px; border-radius: 999px; background: var(--strong); color: var(--on-strong);
  border: 1px solid var(--strong); font-size: .9rem; font-weight: 700; transition: opacity .15s;
}
.button:hover { opacity: .85; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--chip); opacity: 1; }
.text-button { font-size: .88rem; font-weight: 700; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.chip {
  height: 34px; padding: 0 11px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--chip); border: 1px solid transparent; font-size: .82rem; font-weight: 600; color: var(--text);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--line-strong); }
.chip.active { background: var(--strong); color: var(--on-strong); }
.chip.v-true.active { background: var(--fact); color: #fff; border-color: var(--fact); }
.chip.v-false.active { background: var(--fake); color: #fff; border-color: var(--fake); }
.chip.with-avatar { padding-left: 4px; }
.chip-icon { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; }
.chip-icon.true { background: var(--fact); border-color: var(--fact); color: #fff; }
.chip-icon.false { background: var(--fake); border-color: var(--fake); color: #fff; }
.chip.v-true.active .chip-icon.true { background: #fff; border-color: #fff; color: var(--fact); }
.chip.v-false.active .chip-icon.false { background: #fff; border-color: #fff; color: var(--fake); }
.chip-icon.imprecise { border-style: dashed; }
.chip-icon.unsubstantiated { border-style: dotted; }
.chip-sep { width: 1px; height: 20px; background: var(--line-strong); flex-shrink: 0; margin: 0 2px; }

/* Barra de chips: no desktop quebra em linhas para mostrar todos sem cortar; no mobile desliza */
.chips {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.chips.dragging { cursor: grabbing; user-select: none; }

/* ---------- Avatar (foto oficial ou iniciais) ---------- */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--strong); color: var(--on-strong);
  font-weight: 800; font-size: .9rem; letter-spacing: -.02em; user-select: none;
}
.avatar.has-photo { background: var(--chip); border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.avatar.xs { width: 26px; height: 26px; font-size: .62rem; }
.avatar.sm { width: 34px; height: 34px; font-size: .72rem; background: var(--chip); color: var(--text); }
.avatar.md { width: 42px; height: 42px; font-size: .85rem; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.05rem; }

/* ---------- Layout principal: Feed sempre centralizado + Coluna Lateral à direita ---------- */
.page-layout {
  max-width: calc(var(--col) + (var(--rail) + var(--rail-gap)) * 2);
  margin: 0 auto; padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr minmax(0, var(--col)) 1fr;
  align-items: start;
}
.page-shell {
  grid-column: 2; width: 100%; min-height: 100vh;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
main:focus { outline: none; }

/* ---------- Coluna lateral de contagem por candidato (Web/Desktop) ---------- */
.stats-rail {
  grid-column: 3; justify-self: start;
  width: min(var(--rail), 100%);
  margin-left: var(--rail-gap);
  padding: 12px 0 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.rail-card {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rail-title { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.rail-sub { font-size: .76rem; font-weight: 700; color: var(--muted); }
.candidate-stat-list { display: flex; flex-direction: column; gap: 12px; }
.candidate-stat-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s;
}
.candidate-stat-card.is-selected { border-color: var(--text); }
.candidate-stat-head {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border-radius: 10px; padding: 2px; transition: opacity .15s;
}
.candidate-stat-head:hover { opacity: .85; }
.candidate-stat-meta { display: flex; flex-direction: column; min-width: 0; }
.candidate-stat-meta strong { font-size: .95rem; font-weight: 800; }

/* Barra proporcional verde / vermelha / âmbar / cinza */
.stat-bar {
  height: 6px; border-radius: 999px; overflow: hidden;
  background: var(--chip); display: flex; gap: 2px;
}
.stat-bar-seg.v-true { background: var(--fact); }
.stat-bar-seg.v-false { background: var(--fake); }
.stat-bar-seg.v-imprecise { background: var(--warn); }
.stat-bar-seg.v-unsubstantiated { background: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stat-pill {
  padding: 7px 9px; border-radius: 10px;
  background: var(--soft); border: 1px solid transparent;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  text-align: left; transition: border-color .15s, background .15s, transform .1s;
}
.stat-pill:hover { border-color: var(--line-strong); }
.stat-pill.v-true { background: var(--fact-soft); }
.stat-pill.v-false { background: var(--fake-soft); }
.stat-pill.v-true.active { background: var(--fact); color: #fff; border-color: var(--fact); }
.stat-pill.v-false.active { background: var(--fake); color: #fff; border-color: var(--fake); }
.stat-pill.v-imprecise.active, .stat-pill.v-unsubstantiated.active { background: var(--strong); color: var(--on-strong); }
.stat-pill-top { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.stat-dot.v-true { background: var(--fact); }
.stat-dot.v-false { background: var(--fake); }
.stat-dot.v-imprecise { background: var(--warn); }
.stat-pill.active .stat-dot { background: currentColor; }
.stat-label { font-size: .72rem; font-weight: 650; white-space: nowrap; }
.stat-num { font-size: .88rem; font-weight: 800; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.rail-clear {
  width: 100%; height: 34px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: .8rem; font-weight: 700;
}
.rail-clear:hover { background: var(--bg); }
.rail-sources { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.rail-subtitle { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rail-source-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rail-source-chip {
  height: 30px; padding: 0 11px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600;
}
.rail-source-chip:hover { border-color: var(--line-strong); }
.rail-source-chip.active { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.rail-note { font-size: .74rem; color: var(--muted); line-height: 1.45; }

/* ---------- Card "Em alta no Google" (Trends) ---------- */
.trend-head-title { display: inline-flex; align-items: center; gap: 7px; }
.trend-head-title .icon { color: var(--fact); }
.trend-list { display: flex; flex-direction: column; gap: 8px; }
.trend-link {
  display: block;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
  transition: border-color .15s, background .15s;
}
.trend-link:hover { border-color: var(--line-strong); background: var(--hover); }
.trend-item { display: flex; flex-direction: column; gap: 3px; }
.trend-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: .72rem; }
.trend-rank { font-weight: 700; color: var(--muted); }
.trend-active {
  margin-left: auto;
  padding: 1px 6px; border-radius: 999px;
  background: var(--fact-soft); color: var(--fact);
  font-size: .68rem; font-weight: 800;
}
.trend-title { font-size: .9rem; font-weight: 800; line-height: 1.28; color: var(--text); }
.trend-stats { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.trend-vol { font-size: .75rem; font-weight: 650; color: var(--muted); }
.trend-growth {
  font-size: .72rem; font-weight: 800; color: var(--fact);
  background: var(--fact-soft); padding: 1px 6px; border-radius: 6px;
}
.trend-related {
  font-size: .72rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.search-trends { display: none; }

/* ---------- Seção "Por candidato" recolhível no topo do feed (somente quando a coluna lateral some, <=1200px) ---------- */
.mobile-stats { display: none; }
.mstat-toggle {
  width: 100%; min-height: 46px; padding: 6px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  text-align: left;
}
.mstat-toggle:hover { background: var(--hover); }
.mstat-title { font-size: .9rem; font-weight: 800; }
.mstat-summary { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mstat-summary::-webkit-scrollbar { display: none; }
.mstat-mini {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--line);
  padding: 2px 6px 2px 2px; border-radius: 999px;
}
.mstat-mini .avatar.xs { width: 22px; height: 22px; }
.mstat-mini-name { font-size: .75rem; font-weight: 750; }
.mstat-badge {
  min-width: 18px; height: 17px; padding: 0 4px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums;
}
.mstat-badge.v-true { background: var(--fact); }
.mstat-badge.v-false { background: var(--fake); }
.mstat-action {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .73rem; font-weight: 700; color: var(--muted);
  padding: 4px 7px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
}
.mstat-body { padding: 4px 10px 10px; border-top: 1px solid var(--line); }
.mstat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.mstat-col {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.mstat-col.is-selected { border-color: var(--text); }
.mstat-col .candidate-stat-head { min-height: 40px; }
.mstat-col .candidate-stat-meta strong { font-size: .82rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mstat-col .candidate-stat-meta .small { font-size: .71rem; }
.mstat-rows { display: flex; flex-direction: column; gap: 5px; }
.mstat-hint { margin-top: 8px; font-size: .72rem; color: var(--muted); text-align: center; }

/* ---------- Feed ---------- */
.pinned {
  width: calc(100% - 32px); margin: 12px 16px 0; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft);
}
.pinned.live { background: var(--strong); color: var(--on-strong); border-color: var(--strong); }
.pinned-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.pinned.live .pinned-icon { background: transparent; border: 1.5px solid currentColor; }
.pinned-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pinned-text strong { font-size: .92rem; }
.pinned-text span { font-size: .82rem; color: var(--muted); }
.pinned.live .pinned-text span { color: inherit; opacity: .75; }

.check-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px;
  padding: 14px 16px 6px; border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .15s;
}
.check-card:hover { background: var(--hover); }
.card-head { display: flex; align-items: center; gap: 4px; font-size: .9rem; min-width: 0; white-space: nowrap; }
.card-head .candidate { font-weight: 750; overflow: hidden; text-overflow: ellipsis; }
.card-head .muted { flex-shrink: 0; }
.source-tag {
  margin-left: auto; flex-shrink: 0; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: .72rem; font-weight: 700; color: var(--muted);
}
.statement { font-size: 1.02rem; font-weight: 500; line-height: 1.45; margin-top: 4px; overflow-wrap: anywhere; }
.statement a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-verdict { margin-top: 10px; }
.summary {
  margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-actions { display: flex; gap: 4px; margin: 4px 0 0 -10px; }
.action {
  height: 38px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: .8rem; font-weight: 600; transition: background .15s, color .15s;
}
.action:hover { background: var(--chip); color: var(--text); }
.action.primary { color: var(--text); }
.feed-load { padding: 20px; text-align: center; }
.feed-end { padding: 28px; text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .2em; }

/* ---------- Selo de classificação: FATO (verde), FAKE (vermelho) e demais ---------- */
.verdict {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px 3px 4px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5;
  border: 1.5px solid var(--text); color: var(--text); background: transparent;
}
.verdict-icon { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--text); color: var(--bg); }
.verdict.true { background: var(--fact); color: #ffffff; border-color: var(--fact); }
.verdict.true .verdict-icon { background: #ffffff; color: var(--fact); }
.verdict.false { background: var(--fake); color: #ffffff; border-color: var(--fake); }
.verdict.false .verdict-icon { background: #ffffff; color: var(--fake); }
.verdict.misleading, .verdict.context { border-style: dashed; }
.verdict.misleading .verdict-icon, .verdict.context .verdict-icon { background: transparent; color: var(--text); border: 1.5px dashed var(--text); }
.verdict.unsubstantiated, .verdict.other { border-color: var(--line-strong); background: var(--chip); }
.verdict.unsubstantiated .verdict-icon, .verdict.other .verdict-icon { background: transparent; color: var(--text); border: 1.5px dotted var(--text); }
.verdict.large { font-size: 1.05rem; padding: 6px 16px 6px 6px; gap: 10px; }
.verdict.large .verdict-icon { width: 30px; height: 30px; }

/* Nova checagem (pílula flutuante estilo X) */
.update-slot { position: sticky; top: 118px; z-index: 5; height: 0; display: flex; justify-content: center; }
.new-checks {
  margin-top: 10px; height: 38px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--strong); color: var(--on-strong); font-size: .85rem; font-weight: 700;
  box-shadow: var(--shadow); animation: drop .3s ease-out;
}
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }

/* Estados vazios e carregamento */
.empty { padding: 48px 24px; text-align: center; max-width: 440px; margin: auto; }
.empty h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.empty p { margin-top: 8px; color: var(--muted); }
.empty .button { margin-top: 20px; }
.skeleton .check-card { cursor: default; }
.avatar.sk, .sk-lines i { background: var(--chip); animation: pulse 1.4s ease-in-out infinite; }
.sk-lines { display: flex; flex-direction: column; gap: 9px; padding: 4px 0 14px; }
.sk-lines i { display: block; height: 12px; border-radius: 6px; width: 100%; }
.notice { padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; font-size: .85rem; margin: 10px 0; }

/* ---------- Sobre / fontes ---------- */
.side-section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.side-section h2 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.source-list li { display: flex; align-items: center; gap: 12px; }
.source-list li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.source-name { font-weight: 700; font-size: .92rem; }
.source-info { font-size: .8rem; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex-shrink: 0; }
.status-dot.ok { background: var(--fact); border-color: var(--fact); }
.method-list { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--muted); }
.method-list li + li { margin-top: 4px; }
.about-panel > .source-info { display: block; padding-top: 12px; }
.site-footer { padding: 14px 0 2px; font-size: .78rem; color: var(--muted); }
.site-footer p { margin-top: 4px; }

/* ---------- Detalhe ---------- */
body.is-detail .update-slot { display: none; }
.detail-top { height: 52px; display: flex; align-items: center; gap: 16px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.detail-top strong { font-size: 1.1rem; font-weight: 800; }
.detail { padding: 16px 16px 24px; }
.detail-author { display: flex; align-items: center; gap: 12px; }
.detail-author > div { display: flex; flex-direction: column; }
.detail-author strong { font-size: 1rem; }
.detail-author .muted { font-size: .85rem; }
.detail-statement { margin: 16px 0 18px; font-size: clamp(1.3rem, 4.2vw, 1.6rem); line-height: 1.35; font-weight: 600; letter-spacing: -.015em; overflow-wrap: anywhere; }
.verdict-card {
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--soft);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.verdict-card.k-true { background: var(--fact-soft); border-color: var(--fact); }
.verdict-card.k-false { background: var(--fake-soft); border-color: var(--fake); }
.verdict-card-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.verdict-card p { font-size: .9rem; opacity: .9; }
.verdict-card a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.detail-section { margin-top: 12px; padding: 18px; background: var(--soft); border-radius: var(--radius); overflow-wrap: anywhere; }
.detail-section h2 { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.emoji { width: 32px; height: 32px; border-radius: 10px; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.detail-section p { font-size: 1rem; line-height: 1.7; }
.detail-section p + p { margin-top: 10px; }
.detail-section h3 { font-size: .92rem; margin: 14px 0 6px; }
.section-note { font-size: .78rem !important; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 6px; }
.section-why p:not(.section-note) { border-left: 3px solid var(--line-strong); padding-left: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.compare-list { display: flex; flex-direction: column; gap: 10px; }
.compare-item { padding: 14px; background: var(--bg); border-radius: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.compare-item p { font-size: .9rem; color: var(--muted); }
.evidence-list { padding-left: 18px; margin: 0; }
.evidence-list li { margin: 8px 0; }
.evidence-list a { text-decoration: underline; font-weight: 600; }
.detail-footnote { font-size: .78rem; color: var(--muted); margin-top: 18px; }
.detail-history { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; font-size: .85rem; }
.detail-history summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; }
.history-entry { padding: 10px 0; border-top: 1px solid var(--line); }
.history-entry p { color: var(--muted); margin-top: 4px; }
#detail-update { padding: 0 16px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px; background: var(--strong); color: var(--on-strong);
  font-size: .85rem; font-weight: 600; max-width: calc(100% - 32px); overflow-wrap: anywhere; z-index: 40; box-shadow: var(--shadow);
}

/* ---------- Responsividade ---------- */
.bottom-nav { display: none; }
@media (max-width: 1520px) and (min-width: 1201px) {
  :root { --col: 720px; --rail: 276px; --rail-gap: 16px; }
}
@media (max-width: 1200px) {
  .page-layout { display: block; max-width: var(--col); padding: 0; }
  .stats-rail { display: none; }
  .mobile-stats {
    display: block;
    margin: 10px 16px 0;
    background: var(--soft); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
  }
  .search-trends {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .search-trends .rail-card {
    background: transparent;
    border: 0;
    padding: 0;
  }
}
@media (max-width: 700px) {
  .desktop-only { display: none; }
  .page-shell { border: 0; padding-bottom: 96px; }
  .masthead-row { padding: 0 12px; gap: 10px; }
  .brand { font-size: 1.2rem; margin-right: 0; }
  .header-panel { width: 100%; border-left: 0; border-right: 0; max-height: calc(100dvh - 104px - 90px); }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .bottom-nav {
    display: flex; position: fixed; z-index: 25;
    left: 50%; transform: translateX(-50%);
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: min(360px, calc(100% - 32px)); height: 60px; padding: 6px;
    justify-content: space-between; gap: 4px;
    background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  }
  .bottom-nav button { flex: 1; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--text); transition: background .15s; }
  .bottom-nav button:active { background: var(--chip); }
  .bottom-nav button svg { width: 24px; height: 24px; }
  .bottom-nav .alert-count { top: 6px; right: calc(50% - 20px); }
  #nav-home { background: var(--strong); color: var(--on-strong); }
  body.is-detail #nav-home { background: transparent; color: var(--text); }
  .check-card { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px 14px 4px; }
  .check-card > .avatar { width: 40px; height: 40px; font-size: .82rem; }
  .card-head { font-size: .86rem; }
  .statement { font-size: 1rem; }
  .action span { display: none; }
  .action.primary span { display: inline; }
  .card-actions { gap: 2px; }
  .detail { padding: 14px 14px 24px; }
  .detail-actions .button { flex: 1; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.05rem; }
  .search-pill { padding: 0 12px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
